aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Klaassen <clawsoon-at-yahoo.com@ffmpeg.org>2020-09-24 15:00:52 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2020-09-27 09:14:46 -0400
commita6e72fb46d0601d0fcf44c93c32dd472599b5984 (patch)
tree778bad1641dfb85fcd3e38a711f2f47f1dad03b3
parenta3a6b56200e2899769175291837a178f20e1e95a (diff)
downloadffmpeg-a6e72fb46d0601d0fcf44c93c32dd472599b5984.tar.gz
vf_colorspace: Added linear trc.
This patch adds the coefficients for the linear gamma function (1,0,1,0) to the colorspace filter. Signed-off-by: Andrew Klaassen <clawsoon@yahoo.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
-rw-r--r--libavfilter/vf_colorspace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c
index 34f13d9d3c..39af74c221 100644
--- a/libavfilter/vf_colorspace.c
+++ b/libavfilter/vf_colorspace.c
@@ -179,6 +179,7 @@ static const struct TransferCharacteristics transfer_characteristics[AVCOL_TRC_N
[AVCOL_TRC_GAMMA28] = { 1.0, 0.0, 1.0 / 2.8, 0.0 },
[AVCOL_TRC_SMPTE170M] = { 1.099, 0.018, 0.45, 4.5 },
[AVCOL_TRC_SMPTE240M] = { 1.1115, 0.0228, 0.45, 4.0 },
+ [AVCOL_TRC_LINEAR] = { 1.0, 0.0, 1.0, 0.0 },
[AVCOL_TRC_IEC61966_2_1] = { 1.055, 0.0031308, 1.0 / 2.4, 12.92 },
[AVCOL_TRC_IEC61966_2_4] = { 1.099, 0.018, 0.45, 4.5 },
[AVCOL_TRC_BT2020_10] = { 1.099, 0.018, 0.45, 4.5 },
@@ -990,6 +991,7 @@ static const AVOption colorspace_options[] = {
ENUM("gamma28", AVCOL_TRC_GAMMA28, "trc"),
ENUM("smpte170m", AVCOL_TRC_SMPTE170M, "trc"),
ENUM("smpte240m", AVCOL_TRC_SMPTE240M, "trc"),
+ ENUM("linear", AVCOL_TRC_LINEAR, "trc"),
ENUM("srgb", AVCOL_TRC_IEC61966_2_1, "trc"),
ENUM("iec61966-2-1", AVCOL_TRC_IEC61966_2_1, "trc"),
ENUM("xvycc", AVCOL_TRC_IEC61966_2_4, "trc"),