summaryrefslogtreecommitdiff
path: root/libavutil/color_utils.c
Commit message (Collapse)AuthorAge
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-24
| | | | | | | | | | Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavu: Adding ARIB STD-B67 (hybrid log-gamma) enum value and transfer function.Neil Birkbeck2016-06-01
| | | | | | | | | | | | | | | | | | Adding hybrid log-gamma (https://en.wikipedia.org/wiki/Hybrid_Log-Gamma) based on the standardization in ARIB STD-B67: http://www.arib.or.jp/english/html/overview/doc/2-STD-B67v1_0.pdf The choice of enum value of 18 is consistent with HEVC: http://phenix.it-sudparis.eu/jct/doc_end_user/current_document.php?id=10481 And also with latest proposal for color format in mkv: https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&q=Colour+Format+proposal The implementation assumes a nominal input range of [0, 1], which is consistent with HEVC. Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-11
| | | | | | | | * commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avutil/color_utils: Mark test_data as static constMichael Niedermayer2016-03-03
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Add test for avpriv_get_trc_function_from_trc functionNagaChaitanya Vellanki2016-03-03
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/color_utils: Add basic transfer functions for each ↵Kevin Wheatley2015-09-10
| | | | | | | | | | AVColorTransferCharacteristic Most functions are valid over a domain and range of [0.0-1.0] but some are defined over greater. This patch does not deal with AVColorRange and assumes AVCOL_RANGE_JPEG for the returned values. Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com>
* avutil: Extract gamma determination from PNG encoder for future use. Adds ↵Kevin Wheatley2015-03-05
private avpriv_get_gamma_from_trc() function to libavutil. Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>