From ba3e3311ef3f8b33a975535988d2305cea15d514 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Wed, 30 Jul 2014 01:09:06 +0200 Subject: avutil/frame: add av_frame_side_data_name() Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavutil/frame.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libavutil/frame.c') diff --git a/libavutil/frame.c b/libavutil/frame.c index fdfbc46753..2c62922db9 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -672,3 +672,17 @@ void av_frame_remove_side_data(AVFrame *frame, enum AVFrameSideDataType type) } } } + +const char *av_frame_side_data_name(enum AVFrameSideDataType type) +{ + switch(type) { + case AV_FRAME_DATA_PANSCAN: return "AVPanScan"; + case AV_FRAME_DATA_A53_CC: return "ATSC A53 Part 4 Closed Captions"; + case AV_FRAME_DATA_STEREO3D: return "Stereoscopic 3d metadata"; + case AV_FRAME_DATA_MATRIXENCODING: return "AVMatrixEncoding"; + case AV_FRAME_DATA_DOWNMIX_INFO: return "Metadata relevant to a downmix procedure"; + case AV_FRAME_DATA_REPLAYGAIN: return "AVReplayGain"; + case AV_FRAME_DATA_DISPLAYMATRIX: return "3x3 displaymatrix"; + } + return NULL; +} -- cgit v1.2.3