21#ifndef SWSCALE_FORMAT_H
22#define SWSCALE_FORMAT_H
33 return !
a.num && !
a.den;
61#define XYZ_TRC AVCOL_TRC_SMPTE428
62#define XYZ_RGB_TRC AVCOL_TRC_GAMMA22
76 dst->frame_peak =
src->frame_peak;
77 dst->frame_avg =
src->frame_avg;
121 return c1->prim ==
c2->prim &&
122 c1->trc ==
c2->trc &&
148 return 1 <<
desc->log2_chroma_h;
179 int *out_xpos,
int *out_ypos);
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
static const char *const format[]
static AVFormatContext * ctx
Colorspace value utility functions for libavutil.
static int av_cmp_q(AVRational a, AVRational b)
Compare two rationals.
enum AVPixelFormat pixfmt
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
#define AV_PIX_FMT_FLAG_BAYER
The pixel format is following a Bayer pattern.
AVChromaLocation
Location of chroma samples.
@ AVCHROMA_LOC_UNSPECIFIED
AVColorRange
Visual content value range.
@ AVCOL_RANGE_UNSPECIFIED
AVPixelFormat
Pixel format.
AVColorPrimaries
Chromaticity coordinates of the source primaries.
AVColorTransferCharacteristic
Color Transfer Characteristic.
AVColorSpace
YUV colorspace type.
Struct containing chromaticity x and y values for the standard CIE 1931 chromaticity definition.
This structure describes decoded (raw) audio or video data.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
Struct defining the red, green, and blue primary locations in terms of CIE 1931 chromaticity x and y.
Rational number (pair of numerator and denominator).
AVPrimaryCoefficients gamut
enum AVColorPrimaries prim
enum AVColorTransferCharacteristic trc
Main external API structure.
Represents a view into a single field of frame data.
const AVFrame * avframe
Pointer to the original AVFrame, if there is a 1:1 correspondence.
int padding[4]
Number of bytes after the last pixel of each line that may be read (input frames) or written (output ...
enum AVPixelFormat format
int width
Dimensions and format.
Helper struct for representing a list of operations.
static const Backend backends[]