21#ifndef SWSCALE_FORMAT_H
22#define SWSCALE_FORMAT_H
33 return !
a.num && !
a.den;
72 dst->frame_peak =
src->frame_peak;
73 dst->frame_avg =
src->frame_avg;
117 return c1->prim ==
c2->prim &&
118 c1->trc ==
c2->trc &&
144 return 1 <<
desc->log2_chroma_h;
169 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.
enum AVPixelFormat format
int width
Dimensions and format.
Append a set of operations for applying a gamut/tone mapping 3D LUT to the pixels.
Helper struct for representing a list of operations.