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 1/5] avcodec/dovi_rpu - field and macro for metadata compression
Date: Thu, 23 May 2024 19:50:24 +0000
Message-ID: <0101018fa70133a0-c75eef16-284e-4546-b4a9-7f547e9b1d47-000000@us-west-2.amazonses.com> (raw)
In-Reply-To: <20240523195019.64019-1-cosmin@cosmin.at>
From: Cosmin Stejerean <cosmin@cosmin.at>
Add a field to enable or disable metadata compression since not all clients support this.
Introduce DOVI_ENCODING_OPTS macro to faciliate exposing this as an option to encoders.
---
libavcodec/dovi_rpu.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/libavcodec/dovi_rpu.h b/libavcodec/dovi_rpu.h
index 8ce0c88e9d..5406425c0d 100644
--- a/libavcodec/dovi_rpu.h
+++ b/libavcodec/dovi_rpu.h
@@ -28,6 +28,11 @@
#include "libavutil/frame.h"
#include "avcodec.h"
+#define DOVI_ENCODING_OPTS(dovi) \
+ { "dolbyvision", "Enable Dolby Vision RPU coding", OFFSET(dovi.enable), AV_OPT_TYPE_BOOL, {.i64 = FF_DOVI_AUTOMATIC }, -1, 1, VE, .unit = "dovi" }, \
+ { "auto", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_DOVI_AUTOMATIC}, .flags = VE, .unit = "dovi" }, \
+ { "dv_enable_compression", "Enable Dolby Vision metadata compression", OFFSET(dovi.enable_compression), AV_OPT_TYPE_BOOL, {.i64 = 0 }, 0, 1, VE },
+
#define DOVI_MAX_DM_ID 15
typedef struct DOVIContext {
void *logctx;
@@ -71,6 +76,11 @@ typedef struct DOVIContext {
AVDOVIDmData *ext_blocks;
int num_ext_blocks;
+ /**
+ * Enable metadata compression in the output. Currently this is experimental.
+ */
+ int enable_compression;
+
/**
* Private fields internal to dovi_rpu.c
*/
--
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-2-cosmin@cosmin.at>
2024-05-23 19:50 ` Cosmin Stejerean via ffmpeg-devel [this message]
[not found] ` <20240523195019.64019-3-cosmin@cosmin.at>
2024-05-23 19:50 ` [FFmpeg-devel] [PATCH v3 2/5] avcodec/dovi_rpuenc - guard 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=0101018fa70133a0-c75eef16-284e-4546-b4a9-7f547e9b1d47-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