summaryrefslogtreecommitdiff
path: root/libavfilter/vf_colorspace.c
Commit message (Collapse)AuthorAge
* avfilter/vf_colorspace: fix memmory leaksPaul B Mahol2019-10-18
| | | | Fixes #8303
* lavfi/colorspace: typedef ThreadData as all other filtersJun Zhao2019-10-10
| | | | | | | typedef ThreadData as all other filters. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avfilter: add av_cold where it is missingPaul B Mahol2019-10-03
|
* avfilter: Support EBU Tech. 3213-E primaries valuesRaphaël Zumer2019-09-01
| | | | | Signed-off-by: Raphaël Zumer <rzumer@tebako.net> Signed-off-by: James Almer <jamrial@gmail.com>
* libavfilter/vf_colorspace.c: fix demarcation point of gamma linearize functionYonglin Luo2019-07-03
| | | | | | | | | | | | | | | | The linearize function (usually refered to EOTF) is the inverse of delinearize function (usually referred to OETF). Demarcation point of EOTF should be beta*delta, but the actual value used now in the source code is beta. For ITU Rec.709, they are 0.081 (0.018*4.5) and 0.018 respectively (beta = 0.018 and delta = 4.5), and they correspond to pixel value 5 and 21 for an 8-bit image. Linearized result of pixel within that range (5-21) will be different, but this commit will make linearize function of the filter more accurate in the mathematical sense. Signed-off-by: Yonglin Luo <vincenluo@tencent.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavfi/colorspace: move some functions to common fileRuiling Song2019-03-22
| | | | | | | These functions can be reused by other colorspace filters, so move them to common file. No functional changes. Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* avfilter/vf_colorspace: fix typo in commentPaul B Mahol2018-09-17
|
* lavfi/colorspace: Add namespace prefix to global functionsMark Thompson2018-06-28
|
* lavfi: make vf_colorspace use functions from colorspace.cRuiling Song2018-06-21
| | | | | | These functions are shared among colorspace related filters. Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* vf_colorspace: Add a pixdesc API alias name for bt2020nc color spaceVittorio Giovara2017-06-09
|
* vf_colorspace: Add support for jedec p22 primariesVittorio Giovara2017-06-07
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* vf_colorspace: Add support for smpte248 color primariesVittorio Giovara2017-06-07
|
* vf_colorspace: Add support for gbr color spaceVittorio Giovara2017-06-06
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* vf_colorspace: Forbid odd dimensionsVittorio Giovara2016-11-28
| | | | | | This prevents writing past bounds. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* vf_colorspace: Add support for film primariesVittorio Giovara2016-11-01
| | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vf_colorspace: Add support for smpte 431/432 (dci/display p3) primariesVittorio Giovara2016-11-01
| | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vf_colorspace: Add support for ycgco color spaceVittorio Giovara2016-11-01
| | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vf_colorspace: Add support for iec61966-2.4 (xvYCC) transferVittorio Giovara2016-10-31
| | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vf_colorspace: Add support for iec61966-2.1 (sRGB) transferVittorio Giovara2016-10-24
| | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vf_colorspace: don't spam console with warnings if range is unspecified.Ronald S. Bultje2016-10-24
|
* avfilter/vf_colorspace: fix range for output colorspace optionJames Almer2016-09-28
| | | | | Rreviewed-by: BBB Signed-off-by: James Almer <jamrial@gmail.com>
* vf_colorspace: Interpret unspecified color range as limited rangeVittorio Giovara2016-09-19
| | | | | | | | | | | | This is the assumption that is made in pixel format conversion do throughout the code (in particular swscale), and BT-specifications mandate. Add a warning to inform the user that an automatic selection is being made. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vf_colorspace: Add modern names for color range optionVittorio Giovara2016-09-14
| | | | | | Allows to use values returned from API and from ffprobe directly. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* vf_colorspace: Add BT-names for gamma22/28 transfer optionVittorio Giovara2016-09-13
| | | | | | | Allows to use values returned from API and from ffprobe directly. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vf_colorspace: Allow overriding input color propertiesVittorio Giovara2016-09-04
| | | | | | | | | | The filter needs input frames with color properties filled out by the decoder. Since this is not always possible, add input options to the filter so that user may override color space, color primaries, transfer characteristics, and color range, as well as a generic option to set all properties at once. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* avfilter: make use of ff_filter_get_nb_threadsPaul B Mahol2016-08-29
|
* vf_colorspace: Add support for full range yuvVittorio Giovara2016-08-27
| | | | | | | | | | | | | | | Whenever a full range video is input, since the YUVJ* formats are not listed as supported for this filter, a range reduction takes place through the auto-inserted format filter, forcing the conversion to operate on a limited range, However the filter handles full range videos perfectly fine, so adding support to YUVJ* formats will allow skipping a conversion step, while providing completely identical results. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vf_colorspace: Check av_frame_copy_props() return valueVittorio Giovara2016-08-27
| | | | | | | This function can potentially allocate memory. Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vf_colorspace: don't enable passthrough if bitdepth doesn't match.Ronald S. Bultje2016-05-10
| | | | | | | Also check return value of av_frame_copy() in passthrough mode, so that if a copy fails (as it did here, because bitdepth didn't match), the filter doesn't return success, which would mean sending an uninitialized framebuffer further down the filtergraph.
* vf_colorspace: fix range order.Ronald S. Bultje2016-05-10
|
* vf_colorspace: make whitepoint adaptation mode configurable.Ronald S. Bultje2016-05-10
| | | | | Also add von kries whitepoint adaptation, and add 'identity' to turn whitepoint adaptation off.
* vf_colorspace: add floyd-steinberg dithering option to full conversion.Ronald S. Bultje2016-05-10
|
* lavfi: new colorspace conversion filter.Ronald S. Bultje2016-04-12
The intent here is similar to colormatrix, but it's LGPLv2.1-or-later (instead of GPLv2.0) and supports gamma/chromaticity correction.