AVPixFmtDescriptor Struct Reference
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes of an image.
More...
#include <pixdesc.h>
|
Data Fields |
uint8_t | nb_channels |
| The number of components each pixel has, (1-4).
|
uint8_t | log2_chroma_w |
| Amount to shift the luma width right to find the chroma width.
|
uint8_t | log2_chroma_h |
| Amount to shift the luma height right to find the chroma height.
|
uint8_t | flags |
AVComponentDescriptor | comp [4] |
| parameters that describe how pixels are packed
|
Detailed Description
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes of an image.
It also stores the subsampling factors and number of components.
- Note:
- This is separate of the colorspace (RGB, YCbCr, YPbPr, JPEG-style YUV and all the YUV variants) AVPixFmtDescriptor just stores how values are stored not what these values represent.
Definition at line 43 of file pixdesc.h.
Field Documentation
parameters that describe how pixels are packed
Definition at line 62 of file pixdesc.h.
Referenced by read_line().
Amount to shift the luma height right to find the chroma height.
For YV12 this is 1 for example. chroma_height= -((-luma_height) >> log2_chroma_h) The note above is needed to ensure rounding up.
Definition at line 60 of file pixdesc.h.
Amount to shift the luma width right to find the chroma width.
For YV12 this is 1 for example. chroma_width = -((-luma_width) >> log2_chroma_w) The note above is needed to ensure rounding up. chroma_width = -((-luma_width )>>log2_chroma_w)
Definition at line 52 of file pixdesc.h.
The number of components each pixel has, (1-4).
Definition at line 44 of file pixdesc.h.
The documentation for this struct was generated from the following file: