diff options
author | Ruiling Song <ruiling.song@intel.com> | 2019-01-22 14:27:01 +0800 |
---|---|---|
committer | Ruiling Song <ruiling.song@intel.com> | 2019-03-22 09:33:28 +0800 |
commit | d0f3798b4e7f9ec3142f74946f7de41b9e3485cb (patch) | |
tree | a8746039ab680a4a6a54f4cba040402f34437b1d /libavfilter/colorspace.h | |
parent | 61cb505d18b8a335bd118d88c05b9daf40eb5f9b (diff) | |
download | ffmpeg-d0f3798b4e7f9ec3142f74946f7de41b9e3485cb.tar.gz |
lavfi/colorspace: move some functions to common file
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>
Diffstat (limited to 'libavfilter/colorspace.h')
-rw-r--r-- | libavfilter/colorspace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/colorspace.h b/libavfilter/colorspace.h index 936681815a..459a5df60d 100644 --- a/libavfilter/colorspace.h +++ b/libavfilter/colorspace.h @@ -44,6 +44,10 @@ void ff_fill_rgb2xyz_table(const struct PrimaryCoefficients *coeffs, const struct WhitepointCoefficients *wp, double rgb2xyz[3][3]); +const struct LumaCoefficients *ff_get_luma_coefficients(enum AVColorSpace csp); +void ff_fill_rgb2yuv_table(const struct LumaCoefficients *coeffs, + double rgb2yuv[3][3]); + double ff_determine_signal_peak(AVFrame *in); void ff_update_hdr_metadata(AVFrame *in, double peak); |