diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2018-07-25 16:44:50 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2018-08-06 18:35:52 +0200 |
commit | e467179cfbe270c4b59b10f859b6925668d59583 (patch) | |
tree | 0966e8ab8d44bdbe65e15dc83f6ce1361d587f5b /libavfilter/colorspace.h | |
parent | ce7ca726b2cae0eeb4a4e688c5c7d0ea05776832 (diff) | |
download | ffmpeg-e467179cfbe270c4b59b10f859b6925668d59583.tar.gz |
vf_tonemap[_opencl]: Move determine_signal_peak() to a shared file
The two functions are identical. Use the shared LumaCoeffients type too.
Diffstat (limited to 'libavfilter/colorspace.h')
-rw-r--r-- | libavfilter/colorspace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/colorspace.h b/libavfilter/colorspace.h index 9d45ee2366..75705ecfc7 100644 --- a/libavfilter/colorspace.h +++ b/libavfilter/colorspace.h @@ -21,6 +21,9 @@ #define AVFILTER_COLORSPACE_H #include "libavutil/common.h" +#include "libavutil/frame.h" + +#define REFERENCE_WHITE 100.0f struct LumaCoefficients { double cr, cg, cb; @@ -40,4 +43,7 @@ void ff_matrix_mul_3x3(double dst[3][3], void ff_fill_rgb2xyz_table(const struct PrimaryCoefficients *coeffs, const struct WhitepointCoefficients *wp, double rgb2xyz[3][3]); + +double ff_determine_signal_peak(AVFrame *in); + #endif |