[FFmpeg-devel] [PATCH] avfilter/vf_libplacebo: clear linear target before use (PR #20486)
PR #20486 opened by ronag URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20486 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20486.patch Otherwise the target contains data from the previous frame. >From 69aa9b91b3983c0da9dfee1e3880277435aa8c25 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Wed, 10 Sep 2025 12:31:06 +0200 Subject: [PATCH] avfilter/vf_libplacebo: clear linear target before use --- libavfilter/vf_libplacebo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c index 5e0a678ff2..ba1971fb02 100644 --- a/libavfilter/vf_libplacebo.c +++ b/libavfilter/vf_libplacebo.c @@ -1035,6 +1035,7 @@ props_done: }; target.color.transfer = PL_COLOR_TRC_LINEAR; use_linear_compositor = true; +pl_render_image(s->linear_rr, NULL, &target, &opts->params); } /* Draw first frame opaque, others with blending */ -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
[FFmpeg-devel] [PATCH] More missing aliases (PR #20338)
PR #20338 opened by ronag
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20338
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20338.patch
>From 4109166438de3072f3a6a098c221e27c282ffee1 Mon Sep 17 00:00:00 2001
From: Robert Nagy
Date: Mon, 25 Aug 2025 21:15:40 +0200
Subject: [PATCH 1/2] libavcodec/options_table: gamma22 and gamma28 aliases
---
libavcodec/options_table.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
index 25da169343..32d0466432 100644
--- a/libavcodec/options_table.h
+++ b/libavcodec/options_table.h
@@ -289,7 +289,9 @@ static const AVOption avcodec_options[] = {
{"bt709","BT.709", 0, AV_OPT_TYPE_CONST, {.i64 =
AVCOL_TRC_BT709 },INT_MIN, INT_MAX, V|E|D, .unit = "color_trc_type"},
{"unknown", "Unspecified", 0, AV_OPT_TYPE_CONST, {.i64 =
AVCOL_TRC_UNSPECIFIED }, INT_MIN, INT_MAX, V|E|D, .unit = "color_trc_type"},
{"gamma22", "BT.470 M", 0, AV_OPT_TYPE_CONST, {.i64 =
AVCOL_TRC_GAMMA22 }, INT_MIN, INT_MAX, V|E|D, .unit = "color_trc_type"},
+{"bt470m", "BT.470 M", 0, AV_OPT_TYPE_CONST, {.i64 =
AVCOL_TRC_GAMMA22 }, INT_MIN, INT_MAX, V|E|D, .unit = "color_trc_type"},
{"gamma28", "BT.470 BG",0, AV_OPT_TYPE_CONST, {.i64 =
AVCOL_TRC_GAMMA28 }, INT_MIN, INT_MAX, V|E|D, .unit = "color_trc_type"},
+{"bt470bg", "BT.470 BG",0, AV_OPT_TYPE_CONST, {.i64 =
AVCOL_TRC_GAMMA28 }, INT_MIN, INT_MAX, V|E|D, .unit = "color_trc_type"},
{"smpte170m","SMPTE 170 M", 0, AV_OPT_TYPE_CONST, {.i64 =
AVCOL_TRC_SMPTE170M },INT_MIN, INT_MAX, V|E|D, .unit = "color_trc_type"},
{"smpte240m","SMPTE 240 M", 0, AV_OPT_TYPE_CONST, {.i64 =
AVCOL_TRC_SMPTE240M },INT_MIN, INT_MAX, V|E|D, .unit = "color_trc_type"},
{"linear", "Linear", 0, AV_OPT_TYPE_CONST, {.i64 =
AVCOL_TRC_LINEAR }, INT_MIN, INT_MAX, V|E|D, .unit = "color_trc_type"},
--
2.49.1
>From 96f245aa6503e1a73446e2bfae54e5dc7f61ca5f Mon Sep 17 00:00:00 2001
From: Robert Nagy
Date: Mon, 25 Aug 2025 21:15:51 +0200
Subject: [PATCH 2/2] libavfilter/libplacebo: gamma22 and gamma28 aliases
---
libavfilter/vf_libplacebo.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index c35473a44c..3fe8a4e0b2 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -1577,7 +1577,9 @@ static const AVOption libplacebo_options[] = {
{"auto", "keep the same color transfer", 0, AV_OPT_TYPE_CONST, {.i64=-1},
INT_MIN, INT_MAX, STATIC, .unit = "color_trc"},
{"bt709", NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_TRC_BT709},INT_MIN, INT_MAX, STATIC, .unit = "color_trc"},
{"unknown",NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_TRC_UNSPECIFIED}, INT_MIN, INT_MAX, STATIC, .unit = "color_trc"},
+{"gamma22",NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_TRC_GAMMA22}, INT_MIN, INT_MAX, STATIC, .unit = "color_trc"},
{"bt470m", NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_TRC_GAMMA22}, INT_MIN, INT_MAX, STATIC, .unit = "color_trc"},
+{"gamma28",NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_TRC_GAMMA28}, INT_MIN, INT_MAX, STATIC, .unit = "color_trc"},
{"bt470bg",NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_TRC_GAMMA28}, INT_MIN, INT_MAX, STATIC, .unit = "color_trc"},
{"smpte170m", NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_TRC_SMPTE170M},INT_MIN, INT_MAX, STATIC, .unit = "color_trc"},
{"smpte240m", NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_TRC_SMPTE240M},INT_MIN, INT_MAX, STATIC, .unit = "color_trc"},
--
2.49.1
___
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
[FFmpeg-devel] [PATCH] avfilter/vf_scale: add more color_matrix aliases (PR #20335)
PR #20335 opened by ronag
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20335
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20335.patch
Add more color_matrix aliases to make vf_scale consistent with e.g.
vf_setparams aliases.
>From a9fccc9b74fe5adab6f01ea4cac4edf7bf2b949b Mon Sep 17 00:00:00 2001
From: Robert Nagy
Date: Mon, 25 Aug 2025 08:49:26 +0200
Subject: [PATCH] avfilter/vf_scale: add more color_matrix aliases
Add more color_matrix aliases to make vf_scale consistent with e.g.
vf_setparams aliases.
---
libavfilter/vf_scale.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index aec765b441..1271aac389 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -1075,10 +1075,12 @@ static const AVOption scale_options[] = {
{ "bt601", NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_SPC_BT470BG},
0, 0, FLAGS, .unit = "color" },
{ "bt470", NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_SPC_BT470BG},
0, 0, FLAGS, .unit = "color" },
{ "smpte170m", NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_SPC_BT470BG},
0, 0, FLAGS, .unit = "color" },
+{ "bt470bg",NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_SPC_BT470BG},
0, 0, FLAGS, .unit = "color" },
{ "bt709", NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_SPC_BT709},
0, 0, FLAGS, .unit = "color" },
{ "fcc", NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_SPC_FCC},
0, 0, FLAGS, .unit = "color" },
{ "smpte240m", NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_SPC_SMPTE240M}, 0, 0, FLAGS, .unit = "color" },
{ "bt2020", NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_SPC_BT2020_NCL}, 0, 0, FLAGS, .unit = "color" },
+{ "bt2020nc",NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_SPC_BT2020_NCL}, 0, 0, FLAGS, .unit = "color" },
{ "in_range", "set input color range", OFFSET( in_range),
AV_OPT_TYPE_INT, {.i64 = AVCOL_RANGE_UNSPECIFIED }, 0, 2, FLAGS, .unit =
"range" },
{ "out_range", "set output color range", OFFSET(out_range),
AV_OPT_TYPE_INT, {.i64 = AVCOL_RANGE_UNSPECIFIED }, 0, 2, FLAGS, .unit =
"range" },
{ "auto",NULL, 0, AV_OPT_TYPE_CONST,
{.i64=AVCOL_RANGE_UNSPECIFIED }, 0, 0, FLAGS, .unit = "range" },
--
2.49.1
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
