pub struct Pcm {
pub pcm_sample_bit_depth_luma_minus1: u8,
pub pcm_sample_bit_depth_chroma_minus1: u8,
pub log2_min_pcm_luma_coding_block_size_minus3: u64,
pub log2_diff_max_min_pcm_luma_coding_block_size: u64,
pub pcm_loop_filter_disabled_flag: bool,
}Expand description
Directly part of SPS RBSP.
Fields§
§pcm_sample_bit_depth_luma_minus1: u8Defines PcmBitDepth_Y.
pcm_sample_bit_depth_chroma_minus1: u8Defines PcmBitDepth_C.
log2_min_pcm_luma_coding_block_size_minus3: u64This value plus 3 specifies the minimum size of coding blocks with pcm_flag equal to true.
Defines Log2MinIpcmCbSizeY.
log2_diff_max_min_pcm_luma_coding_block_size: u64Specifies the difference between the maximum and minimum size of coding blocks with pcm_flag equal to true.
Defines Log2MaxIpcmCbSizeY.
pcm_loop_filter_disabled_flag: boolSpecifies whether the loop filter process is disabled on reconstructed
samples in a coding unit with pcm_flag equal to true.
Implementations§
Source§impl Pcm
impl Pcm
Sourcepub fn pcm_bit_depth_y(&self) -> u8
pub fn pcm_bit_depth_y(&self) -> u8
Specifies the number of bits used to represent each of PCM sample values of the luma component.
The value of PcmBitDepthY is less than or equal to the value of BitDepthY.
PcmBitDepthY = pcm_sample_bit_depth_luma_minus1 + 1 (7-25)
ISO/IEC 23008-2 - 7.4.3.2.1
Sourcepub fn pcm_bit_depth_c(&self) -> u8
pub fn pcm_bit_depth_c(&self) -> u8
Specifies the number of bits used to represent each of PCM sample values of the chroma components.
The value of PcmBitDepthC is less than or equal to the value of BitDepthC.
When ChromaArrayType is equal to 0, decoders shall ignore its value.
PcmBitDepthC = pcm_sample_bit_depth_chroma_minus1 + 1 (7-26)
ISO/IEC 23008-2 - 7.4.3.2.1
Sourcepub fn log2_min_ipcm_cb_size_y(&self) -> u64
pub fn log2_min_ipcm_cb_size_y(&self) -> u64
The value is range
[Min(MinCbLog2SizeY, 5), Min(CtbLog2SizeY, 5)].
Log2MinIpcmCbSizeY = log2_min_pcm_luma_coding_block_size_minus3 + 3
ISO/IEC 23008-2 - 7.4.3.2.1
Sourcepub fn log2_max_ipcm_cb_size_y(&self) -> u64
pub fn log2_max_ipcm_cb_size_y(&self) -> u64
The value is less than or equal to Min(CtbLog2SizeY, 5).
Log2MaxIpcmCbSizeY = log2_diff_max_min_pcm_luma_coding_block_size + Log2MinIpcmCbSizeY
ISO/IEC 23008-2 - 7.4.3.2.1