diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2020-04-11 21:09:03 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2020-04-23 08:05:56 +0800 |
commit | 446dac9ccf0bc8ae723929e3c2e87395753c3d5c (patch) | |
tree | 14f56cc7e5aef033376be96b45001421dac2d9c7 /libavformat | |
parent | 1483cfa8177176b3d5d1c611424058bb9b59cf9f (diff) | |
download | ffmpeg-446dac9ccf0bc8ae723929e3c2e87395753c3d5c.tar.gz |
lavf/dump: dump DOVI side data
dump DOVI side data.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dump.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c index 220f404d65..5e9a03185f 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -27,6 +27,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/log.h" #include "libavutil/mastering_display_metadata.h" +#include "libavutil/dovi_meta.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" #include "libavutil/avstring.h" @@ -387,6 +388,20 @@ static void dump_spherical(void *ctx, AVCodecParameters *par, AVPacketSideData * } } +static void dump_dovi_conf(void *ctx, AVPacketSideData* sd) +{ + AVDOVIDecoderConfigurationRecord *dovi = (AVDOVIDecoderConfigurationRecord *)sd->data; + + av_log(ctx, AV_LOG_INFO, "version: %d.%d, profile: %d, level: %d, " + "rpu flag: %d, el flag: %d, bl flag: %d, compatibility id: %d", + dovi->dv_version_major, dovi->dv_version_minor, + dovi->dv_profile, dovi->dv_level, + dovi->rpu_present_flag, + dovi->el_present_flag, + dovi->bl_present_flag, + dovi->dv_bl_signal_compatibility_id); +} + static void dump_sidedata(void *ctx, AVStream *st, const char *indent) { int i; @@ -449,6 +464,10 @@ static void dump_sidedata(void *ctx, AVStream *st, const char *indent) case AV_PKT_DATA_ICC_PROFILE: av_log(ctx, AV_LOG_INFO, "ICC Profile"); break; + case AV_PKT_DATA_DOVI_CONF: + av_log(ctx, AV_LOG_INFO, "DOVI configuration record: "); + dump_dovi_conf(ctx, &sd); + break; default: av_log(ctx, AV_LOG_INFO, "unknown side data type %d (%d bytes)", sd.type, sd.size); |