Loading...
Searching...
No Matches

Detailed Description

Describes the pixel layout properties relevant for GPU decoding. Extracted from AVPixFmtDescriptor / codec parameters.

Public Member Functions

bool is10bit () const noexcept
 

Static Public Member Functions

static PixelFormatInfo fromAVPixelFormat (AVPixelFormat fmt)
 Build from an AVPixelFormat.
 
static PixelFormatInfo fromCodecParameters (AVPixelFormat swFormat, AVPixelFormat codecparFormat, int bitsPerRawSample)
 

Public Attributes

int log2ChromaW {1}
 Horizontal chroma subsampling: 0=4:4:4, 1=4:2:2/4:2:0.
 
int log2ChromaH {1}
 Vertical chroma subsampling: 0=4:4:4/4:2:2, 1=4:2:0.
 
int bitDepth {8}
 Per-component bit depth (8, 10, 12, 16)
 
int numPlanes {2}
 Number of planes (2 for semi-planar, 3+ for planar)
 
bool hasAlpha {}
 Format includes an alpha channel.
 

Member Function Documentation

◆ fromCodecParameters()

static PixelFormatInfo score::gfx::PixelFormatInfo::fromCodecParameters ( AVPixelFormat  swFormat,
AVPixelFormat  codecparFormat,
int  bitsPerRawSample 
)
inlinestatic

Build from codec parameters, with optional sw_format override. bits_per_raw_sample from the codec is used as a hint when > 8.


The documentation for this struct was generated from the following file: