FFmpeg
Loading...
Searching...
No Matches
colorspace.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 Ronald S. Bultje <rsbultje@gmail.com>
3 * This file is part of FFmpeg.
4 *
5 * FFmpeg is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * FFmpeg is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with FFmpeg; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef AVFILTER_COLORSPACE_H
21#define AVFILTER_COLORSPACE_H
22
23#include "libavutil/csp.h"
24#include "libavutil/frame.h"
25#include "libavutil/pixfmt.h"
26
27#define REFERENCE_WHITE 100.0f
28
29void ff_matrix_invert_3x3(const double in[3][3], double out[3][3]);
30void ff_matrix_mul_3x3(double dst[3][3],
31 const double src1[3][3], const double src2[3][3]);
32void ff_matrix_mul_3x3_vec(double dst[3], const double vec[3], const double mat[3][3]);
35 double rgb2xyz[3][3]);
37 double rgb2yuv[3][3]);
39void ff_update_hdr_metadata(AVFrame *in, double peak);
40
41#endif
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:97
static FILE * out
static void fn rgb2yuv(uint8_t *_yuv[3], const ptrdiff_t yuv_stride[3], int16_t *rgb[3], ptrdiff_t s, int w, int h, const int16_t rgb2yuv_coeffs[3][3][8], const int16_t yuv_offset[8])
Colorspace value utility functions for libavutil.
reference-counted frame API
AVCIExy AVWhitepointCoefficients
Struct defining white point location in terms of CIE 1931 chromaticity x and y.
Definition csp.h:72
const pixel * src2
void ff_matrix_mul_3x3(double dst[3][3], const double src1[3][3], const double src2[3][3])
Definition colorspace.c:54
void ff_fill_rgb2xyz_table(const AVPrimaryCoefficients *coeffs, const AVWhitepointCoefficients *wp, double rgb2xyz[3][3])
Definition colorspace.c:79
void ff_matrix_mul_3x3_vec(double dst[3], const double vec[3], const double mat[3][3])
Definition colorspace.c:66
double ff_determine_signal_peak(AVFrame *in)
Definition colorspace.c:155
void ff_matrix_invert_3x3(const double in[3][3], double out[3][3])
Definition colorspace.c:27
void ff_update_hdr_metadata(AVFrame *in, double peak)
Definition colorspace.c:180
void ff_fill_rgb2yuv_table(const AVLumaCoefficients *coeffs, double rgb2yuv[3][3])
Definition colorspace.c:127
pixel format definitions
This structure describes decoded (raw) audio or video data.
Definition frame.h:479
Struct containing luma coefficients to be used for RGB to YUV/YCoCg, or similar calculations.
Definition csp.h:48
Struct defining the red, green, and blue primary locations in terms of CIE 1931 chromaticity x and y.
Definition csp.h:64
#define src1
Definition h264pred.c:141