From: Niklas Haas <ffmpeg@haasn.xyz> To: ffmpeg-devel@ffmpeg.org Cc: Niklas Haas <git@haasn.dev> Subject: [FFmpeg-devel] [PATCH v2 5/5] fftools/ffprobe: implement dv_md_compression Date: Thu, 18 Jul 2024 12:55:02 +0200 Message-ID: <20240718105502.232604-5-ffmpeg@haasn.xyz> (raw) In-Reply-To: <20240718105502.232604-1-ffmpeg@haasn.xyz> From: Niklas Haas <git@haasn.dev> --- fftools/ffprobe.c | 9 +++++++++ tests/ref/fate/matroska-dovi-write-config7 | 1 + tests/ref/fate/matroska-dovi-write-config8 | 1 + 3 files changed, 11 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 0b7d4ce0d7..f9bc830f33 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2603,6 +2603,7 @@ static void print_pkt_side_data(WriterContext *w, print_dynamic_hdr10_plus(w, metadata); } else if (sd->type == AV_PKT_DATA_DOVI_CONF) { AVDOVIDecoderConfigurationRecord *dovi = (AVDOVIDecoderConfigurationRecord *)sd->data; + const char *comp = "unknown"; print_int("dv_version_major", dovi->dv_version_major); print_int("dv_version_minor", dovi->dv_version_minor); print_int("dv_profile", dovi->dv_profile); @@ -2611,6 +2612,14 @@ static void print_pkt_side_data(WriterContext *w, print_int("el_present_flag", dovi->el_present_flag); print_int("bl_present_flag", dovi->bl_present_flag); print_int("dv_bl_signal_compatibility_id", dovi->dv_bl_signal_compatibility_id); + switch (dovi->dv_md_compression) + { + case AV_DOVI_COMPRESSION_NONE: comp = "none"; break; + case AV_DOVI_COMPRESSION_LIMITED: comp = "limited"; break; + case AV_DOVI_COMPRESSION_RESERVED: comp = "reserved"; break; + case AV_DOVI_COMPRESSION_EXTENDED: comp = "extended"; break; + } + print_str("dv_md_compression", comp); } else if (sd->type == AV_PKT_DATA_AUDIO_SERVICE_TYPE) { enum AVAudioServiceType *t = (enum AVAudioServiceType *)sd->data; print_int("service_type", *t); diff --git a/tests/ref/fate/matroska-dovi-write-config7 b/tests/ref/fate/matroska-dovi-write-config7 index dc5b73a44e..5f3e000279 100644 --- a/tests/ref/fate/matroska-dovi-write-config7 +++ b/tests/ref/fate/matroska-dovi-write-config7 @@ -45,5 +45,6 @@ rpu_present_flag=1 el_present_flag=1 bl_present_flag=0 dv_bl_signal_compatibility_id=6 +dv_md_compression=none [/SIDE_DATA] [/STREAM] diff --git a/tests/ref/fate/matroska-dovi-write-config8 b/tests/ref/fate/matroska-dovi-write-config8 index 44ca015e0e..85899d5f6d 100644 --- a/tests/ref/fate/matroska-dovi-write-config8 +++ b/tests/ref/fate/matroska-dovi-write-config8 @@ -64,5 +64,6 @@ rpu_present_flag=1 el_present_flag=0 bl_present_flag=1 dv_bl_signal_compatibility_id=4 +dv_md_compression=none [/SIDE_DATA] [/STREAM] -- 2.45.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2024-07-18 10:55 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-07-18 10:54 [FFmpeg-devel] [PATCH v2 1/5] avutil/dovi_meta: add dv_md_compression to cfg record Niklas Haas 2024-07-18 10:54 ` [FFmpeg-devel] [PATCH v2 2/5] avformat/dovi_isom: implement dv_md_compression Niklas Haas 2024-07-18 10:55 ` [FFmpeg-devel] [PATCH v2 3/5] avformat/mpegts: " Niklas Haas 2024-07-18 10:55 ` [FFmpeg-devel] [PATCH v2 4/5] avformat/dump: " Niklas Haas 2024-07-18 10:55 ` Niklas Haas [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240718105502.232604-5-ffmpeg@haasn.xyz \ --to=ffmpeg@haasn.xyz \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=git@haasn.dev \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git