22 #ifndef AVUTIL_PIXDESC_H 23 #define AVUTIL_PIXDESC_H 60 #if FF_API_PLUS1_MINUS1 128 #define AV_PIX_FMT_FLAG_BE (1 << 0) 132 #define AV_PIX_FMT_FLAG_PAL (1 << 1) 136 #define AV_PIX_FMT_FLAG_BITSTREAM (1 << 2) 140 #define AV_PIX_FMT_FLAG_HWACCEL (1 << 3) 144 #define AV_PIX_FMT_FLAG_PLANAR (1 << 4) 148 #define AV_PIX_FMT_FLAG_RGB (1 << 5) 166 #define AV_PIX_FMT_FLAG_PSEUDOPAL (1 << 6) 181 #define AV_PIX_FMT_FLAG_ALPHA (1 << 7) 186 #define AV_PIX_FMT_FLAG_BAYER (1 << 8) 192 #define AV_PIX_FMT_FLAG_FLOAT (1 << 9) 242 int av_pix_fmt_get_chroma_sub_sample(
enum AVPixelFormat pix_fmt,
243 int *h_shift,
int *v_shift);
254 const char *av_color_range_name(
enum AVColorRange range);
259 int av_color_range_from_name(
const char *name);
269 int av_color_primaries_from_name(
const char *name);
279 int av_color_transfer_from_name(
const char *name);
284 const char *av_color_space_name(
enum AVColorSpace space);
289 int av_color_space_from_name(
const char *name);
299 int av_chroma_location_from_name(
const char *name);
332 char *av_get_pix_fmt_string(
char *buf,
int buf_size,
351 void av_read_image_line(uint16_t *dst,
const uint8_t *data[4],
353 int x,
int y,
int c,
int w,
int read_pal_component);
369 void av_write_image_line(
const uint16_t *src, uint8_t *data[4],
371 int x,
int y,
int c,
int w);
383 #define FF_LOSS_RESOLUTION 0x0001 384 #define FF_LOSS_DEPTH 0x0002 385 #define FF_LOSS_COLORSPACE 0x0004 386 #define FF_LOSS_ALPHA 0x0008 387 #define FF_LOSS_COLORQUANT 0x0010 388 #define FF_LOSS_CHROMA 0x0020 408 int av_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt, 431 enum AVPixelFormat src_pix_fmt,
int has_alpha,
int *loss_ptr);
attribute_deprecated int offset_plus1
deprecated, use offset instead
Definition: pixdesc.h:68
int plane
Which of the 4 planes contains the component.
Definition: pixdesc.h:35
const char * alias
Alternative comma-separated names.
Definition: pixdesc.h:122
uint8_t log2_chroma_w
Amount to shift the luma width right to find the chroma width.
Definition: pixdesc.h:92
AVColorTransferCharacteristic
Color Transfer Characteristic.
Definition: pixfmt.h:444
Macro definitions for various function/variable attributes.
AVColorSpace
YUV colorspace type.
Definition: pixfmt.h:473
AVColorRange
MPEG vs JPEG YUV range.
Definition: pixfmt.h:496
AVColorPrimaries
Chromaticity coordinates of the source primaries.
Definition: pixfmt.h:420
uint8_t log2_chroma_h
Amount to shift the luma height right to find the chroma height.
Definition: pixdesc.h:101
Libavutil version macros.
uint64_t flags
Combination of AV_PIX_FMT_FLAG_...
Definition: pixdesc.h:106
uint8_t nb_components
The number of components each pixel has, (1-4)
Definition: pixdesc.h:83
attribute_deprecated int step_minus1
deprecated, use step instead
Definition: pixdesc.h:62
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
Definition: pixdesc.h:81
int shift
Number of least significant bits that must be shifted away to get the value.
Definition: pixdesc.h:53
int offset
Number of elements before the component of the first pixel.
Definition: pixdesc.h:47
attribute_deprecated int depth_minus1
deprecated, use depth instead
Definition: pixdesc.h:65
AVChromaLocation
Location of chroma samples.
Definition: pixfmt.h:518
int depth
Number of bits in the component.
Definition: pixdesc.h:58
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60
int step
Number of elements between 2 horizontally consecutive pixels.
Definition: pixdesc.h:41