pub struct Picture { /* private fields */ }
Expand description
A decoded frame.
Implementations§
source§impl Picture
impl Picture
sourcepub fn stride(&self, component: PlanarImageComponent) -> u32
pub fn stride(&self, component: PlanarImageComponent) -> u32
Stride in pixels of the component
for the decoded frame.
sourcepub fn plane_data_ptr(&self, component: PlanarImageComponent) -> *mut c_void
pub fn plane_data_ptr(&self, component: PlanarImageComponent) -> *mut c_void
Raw pointer to the data of the component
for the decoded frame.
sourcepub fn plane_data_geometry(&self, component: PlanarImageComponent) -> (u32, u32)
pub fn plane_data_geometry(&self, component: PlanarImageComponent) -> (u32, u32)
Plane geometry of the component
for the decoded frame.
This returns the stride and height.
sourcepub fn plane(&self, component: PlanarImageComponent) -> Plane
pub fn plane(&self, component: PlanarImageComponent) -> Plane
Plane data of the component
for the decoded frame.
sourcepub fn bit_depth(&self) -> usize
pub fn bit_depth(&self) -> usize
Bit depth of the plane data.
This returns 8 or 16 for the underlying integer type used for the plane data.
Check Picture::bits_per_component
for the number of bits that are used.
sourcepub fn bits_per_component(&self) -> Option<BitsPerComponent>
pub fn bits_per_component(&self) -> Option<BitsPerComponent>
Bits used per component of the plane data.
Check Picture::bit_depth
for the number of storage bits.
sourcepub fn pixel_layout(&self) -> PixelLayout
pub fn pixel_layout(&self) -> PixelLayout
Pixel layout of the frame.
sourcepub fn timestamp(&self) -> Option<i64>
pub fn timestamp(&self) -> Option<i64>
Timestamp of the frame.
This is the same timestamp as the one provided to Decoder::send_data
.
sourcepub fn duration(&self) -> i64
pub fn duration(&self) -> i64
Duration of the frame.
This is the same duration as the one provided to Decoder::send_data
or 0
if none was
provided.
sourcepub fn offset(&self) -> i64
pub fn offset(&self) -> i64
Offset of the frame.
This is the same offset as the one provided to Decoder::send_data
or -1
if none was
provided.
sourcepub fn color_primaries(&self) -> ColorPrimaries
pub fn color_primaries(&self) -> ColorPrimaries
Chromaticity coordinates of the source colour primaries.
sourcepub fn transfer_characteristic(&self) -> TransferCharacteristic
pub fn transfer_characteristic(&self) -> TransferCharacteristic
Transfer characteristics function.
sourcepub fn matrix_coefficients(&self) -> MatrixCoefficients
pub fn matrix_coefficients(&self) -> MatrixCoefficients
Matrix coefficients used in deriving luma and chroma signals from the green, blue and red or X, Y and Z primaries.
sourcepub fn color_range(&self) -> YUVRange
pub fn color_range(&self) -> YUVRange
YUV color range.
sourcepub fn chroma_location(&self) -> ChromaLocation
pub fn chroma_location(&self) -> ChromaLocation
Sample position for subsampled chroma.