From: Cosmin Stejerean via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> To: "ffmpeg-devel@ffmpeg.org" <ffmpeg-devel@ffmpeg.org> Cc: "Cosmin Stejerean" <cosmin@cosmin.at> Subject: [FFmpeg-devel] [PATCH v3 2/5] avcodec/dovi_rpuenc - guard metadata compression Date: Thu, 23 May 2024 19:50:24 +0000 Message-ID: <0101018fa701338b-9788938f-7752-4af2-b15b-f90d1d3f4e0c-000000@us-west-2.amazonses.com> (raw) In-Reply-To: <20240523195019.64019-1-cosmin@cosmin.at> From: Cosmin Stejerean <cosmin@cosmin.at> Guard use_prev_vdr_rpu by the new enable_compression field since not all clients support this. Separately output when vdr_dm_metadata_changed == 0 fails the DV verifier so turn that off unconditionally for now. --- libavcodec/dovi_rpuenc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/dovi_rpuenc.c b/libavcodec/dovi_rpuenc.c index 3c3e0f84c0..26ed25733a 100644 --- a/libavcodec/dovi_rpuenc.c +++ b/libavcodec/dovi_rpuenc.c @@ -512,8 +512,12 @@ int ff_dovi_rpu_generate(DOVIContext *s, const AVDOVIMetadata *metadata, } } - vdr_dm_metadata_changed = !s->color || memcmp(s->color, color, sizeof(*color)); - use_prev_vdr_rpu = !memcmp(&s->vdr[vdr_rpu_id]->mapping, mapping, sizeof(*mapping)); + // the output when vdr_dm_metadata_changed is 0 fails the DV verifier + // force it to 1 until we can get some samples or documentation on correct syntax + vdr_dm_metadata_changed = 1; // !s->color || memcmp(s->color, color, sizeof(*color)); + + // not all clients support metadata compression + use_prev_vdr_rpu = s->enable_compression && !memcmp(&s->vdr[vdr_rpu_id]->mapping, mapping, sizeof(*mapping)); buffer_size = 12 /* vdr seq info */ + 5 /* CRC32 + terminator */; buffer_size += num_ext_blocks_v1 * 13; -- 2.42.1 _______________________________________________ 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".
next prev parent reply other threads:[~2024-05-23 19:50 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <20240523195019.64019-1-cosmin@cosmin.at> 2024-05-23 19:50 ` [FFmpeg-devel] [PATCH v3 0/5] avcodec/dovi - disable metadata compression by default Cosmin Stejerean via ffmpeg-devel 2024-06-18 19:21 ` Niklas Haas [not found] ` <7CD3ACDC-B8C6-433C-8122-7BE26306B1E8@cosmin.at> 2024-06-20 14:41 ` Cosmin Stejerean via ffmpeg-devel [not found] ` <20240523195019.64019-3-cosmin@cosmin.at> 2024-05-23 19:50 ` Cosmin Stejerean via ffmpeg-devel [this message] [not found] ` <20240523195019.64019-2-cosmin@cosmin.at> 2024-05-23 19:50 ` [FFmpeg-devel] [PATCH v3 1/5] avcodec/dovi_rpu - field and macro for metadata compression Cosmin Stejerean via ffmpeg-devel [not found] ` <20240523195019.64019-4-cosmin@cosmin.at> 2024-05-23 19:50 ` [FFmpeg-devel] [PATCH v3 3/5] avcodec/libaomenc - switch to DOVI_ENCODING_OPTS Cosmin Stejerean via ffmpeg-devel [not found] ` <20240523195019.64019-6-cosmin@cosmin.at> 2024-05-23 19:50 ` [FFmpeg-devel] [PATCH v3 5/5] avcodec/libx265 " Cosmin Stejerean via ffmpeg-devel [not found] ` <20240523195019.64019-5-cosmin@cosmin.at> 2024-05-23 19:50 ` [FFmpeg-devel] [PATCH v3 4/5] avcodec/libsvtav1 " Cosmin Stejerean via ffmpeg-devel
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=0101018fa701338b-9788938f-7752-4af2-b15b-f90d1d3f4e0c-000000@us-west-2.amazonses.com \ --to=ffmpeg-devel@ffmpeg.org \ --cc=cosmin@cosmin.at \ /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