pub struct Pps {Show 17 fields
pub pic_parameter_set_id: u32,
pub seq_parameter_set_id: u32,
pub entropy_coding_mode_flag: u32,
pub bottom_field_pic_order_in_frame_present_flag: u32,
pub pic_init_qp: i32,
pub deblocking_filter_control_present_flag: u32,
pub constrained_intra_pred_flag: u32,
pub redundant_pic_cnt_present_flag: u32,
pub chroma_qp_index_offset: i32,
pub num_ref_idx_l0_default_active: u32,
pub weighted_pred_flag: u32,
pub num_ref_idx_l1_default_active: u32,
pub weighted_bipred_idc: u32,
pub transform_8x8_mode_flag: bool,
pub second_chroma_qp_index_offset: i32,
pub pic_scaling_matrix_present_flag: bool,
pub scaling_matrix: ScalingMatrix,
}Fields§
§pic_parameter_set_id: u32§seq_parameter_set_id: u32§entropy_coding_mode_flag: u32§bottom_field_pic_order_in_frame_present_flag: u32§pic_init_qp: i32§deblocking_filter_control_present_flag: u32§constrained_intra_pred_flag: u32§redundant_pic_cnt_present_flag: u32§chroma_qp_index_offset: i32§num_ref_idx_l0_default_active: u32num_ref_idx_l0_default_active_minus1 + 1(スライスヘッダで上書きされうる)。
weighted_pred_flag: u32重み付き予測(P)。1 ならスライスヘッダに pred_weight_table がある。
num_ref_idx_l1_default_active: u32num_ref_idx_l1_default_active_minus1 + 1(B)。
weighted_bipred_idc: u32重み付き双予測(B)。0=無し、1=明示、2=暗黙。
transform_8x8_mode_flag: bool8x8 変換を使ってよいか(High。MB ごとに transform_size_8x8_flag がある)。
second_chroma_qp_index_offset: i32Cr の QP オフセット(High。無ければ chroma_qp_index_offset と同じ)。
pic_scaling_matrix_present_flag: boolPPS 独自のスケーリング行列が存在するか(High Profile)。
scaling_matrix: ScalingMatrixスケーリング行列(平坦または規格既定/ストリーム指定)。
Implementations§
Source§impl Pps
impl Pps
Sourcepub fn chroma_qp_offsets(&self) -> [i32; 2]
pub fn chroma_qp_offsets(&self) -> [i32; 2]
[Cb, Cr] の QP オフセット。
Sourcepub fn effective_scaling_matrix(&self, sps: &Sps) -> ScalingMatrix
pub fn effective_scaling_matrix(&self, sps: &Sps) -> ScalingMatrix
有効なスケーリング行列(PPS に存在すれば PPS、無ければ SPS)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pps
impl RefUnwindSafe for Pps
impl Send for Pps
impl Sync for Pps
impl Unpin for Pps
impl UnsafeUnpin for Pps
impl UnwindSafe for Pps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more