pub struct SpsSccExtensionPaletteMode {
pub palette_max_size: u64,
pub delta_palette_max_predictor_size: u64,
pub sps_palette_predictor_initializers: Option<Vec<Vec<u64>>>,
}
Expand description
Directly part of SpsSccExtension
.
Fields§
§palette_max_size: u64
Specifies the maximum allowed palette size.
delta_palette_max_predictor_size: u64
Specifies the difference between the maximum allowed palette predictor size and the maximum allowed palette size.
Defines PaletteMaxPredictorSize
.
sps_palette_predictor_initializers: Option<Vec<Vec<u64>>>
sps_palette_predictor_initializer[comp][i]
, if sps_palette_predictor_initializers_present_flag
is true
.
Specifies the value of the comp
-th component of the i
-th
palette entry in the SPS that is used to initialize the array PredictorPaletteEntries.
The value of sps_palette_predictor_initializer[0][i]
is in range [0, (1 << BitDepthY) − 1
].
See BitDepthY
.
The values of sps_palette_predictor_initializer[1][i]
and sps_palette_predictor_initializer[2][i]
is in range [0, (1 << BitDepthC) − 1
].
See BitDepthC
.
Implementations§
Source§impl SpsSccExtensionPaletteMode
impl SpsSccExtensionPaletteMode
Sourcepub fn palette_max_predictor_size(&self) -> u64
pub fn palette_max_predictor_size(&self) -> u64
PaletteMaxPredictorSize = palette_max_size + delta_palette_max_predictor_size
(7-35)
ISO/IEC 23008-2 - 7.4.3.2.3
Trait Implementations§
Source§impl Clone for SpsSccExtensionPaletteMode
impl Clone for SpsSccExtensionPaletteMode
Source§fn clone(&self) -> SpsSccExtensionPaletteMode
fn clone(&self) -> SpsSccExtensionPaletteMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more