pub struct PictureData {
Show 28 fields pub pic_order_cnt_type: u8, pub top_field_order_cnt: i32, pub bottom_field_order_cnt: i32, pub pic_order_cnt: i32, pub pic_order_cnt_msb: i32, pub pic_order_cnt_lsb: i32, pub delta_pic_order_cnt_bottom: i32, pub delta_pic_order_cnt0: i32, pub delta_pic_order_cnt1: i32, pub pic_num: i32, pub long_term_pic_num: i32, pub frame_num: i32, pub frame_num_offset: i32, pub frame_num_wrap: i32, pub long_term_frame_idx: i32, pub coded_resolution: Resolution, pub display_resolution: Resolution, pub type_: SliceType, pub nal_ref_idc: u8, pub is_idr: IsIdr, pub ref_pic_list_modification_flag_l0: i32, pub abs_diff_pic_num_minus1: i32, pub needed_for_output: bool, pub has_mmco_5: bool, pub nonexisting: bool, pub field: Field, pub ref_pic_marking: RefPicMarking, pub timestamp: u64, /* private fields */
}

Fields§

§pic_order_cnt_type: u8§top_field_order_cnt: i32§bottom_field_order_cnt: i32§pic_order_cnt: i32§pic_order_cnt_msb: i32§pic_order_cnt_lsb: i32§delta_pic_order_cnt_bottom: i32§delta_pic_order_cnt0: i32§delta_pic_order_cnt1: i32§pic_num: i32§long_term_pic_num: i32§frame_num: i32§frame_num_offset: i32§frame_num_wrap: i32§long_term_frame_idx: i32§coded_resolution: Resolution§display_resolution: Resolution§type_: SliceType§nal_ref_idc: u8§is_idr: IsIdr§ref_pic_list_modification_flag_l0: i32§abs_diff_pic_num_minus1: i32§needed_for_output: bool§has_mmco_5: bool§nonexisting: bool§field: Field§ref_pic_marking: RefPicMarking§timestamp: u64

Implementations§

source§

impl PictureData

source

pub fn new_non_existing(frame_num: i32, timestamp: u64) -> Self

source

pub fn new_from_slice(slice: &Slice<&[u8]>, sps: &Sps, timestamp: u64) -> Self

source

pub fn is_ref(&self) -> bool

Whether the current picture is a reference, either ShortTerm or LongTerm.

source

pub fn is_second_field(&self) -> bool

Whether this picture is a second field.

source

pub fn reference(&self) -> &Reference

Returns a reference to the picture’s Reference

source

pub fn set_reference( &mut self, reference: Reference, apply_to_other_field: bool )

Mark the picture as a reference picture.

source

pub fn other_field_unchecked(&self) -> Rc<RefCell<Self>>

Returns the other field when we know it must be there.

source

pub fn other_field(&self) -> Option<&Weak<RefCell<PictureData>>>

Get a reference to the picture’s other field, if any.

source

pub fn set_second_field_to(&mut self, other_field: &Rc<RefCell<Self>>)

Set this picture’s second field.

source

pub fn is_second_field_of_complementary_ref_pair(&self) -> bool

Whether the current picture is the second field of a complementary ref pair.

source

pub fn set_first_field_to(&mut self, other_field: &Rc<RefCell<Self>>)

Set this picture’s first field.

source

pub fn split_frame(pic_rc: &Rc<RefCell<Self>>) -> Rc<RefCell<Self>>

Split a frame into two complementary fields.

Trait Implementations§

source§

impl Debug for PictureData

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PictureData

source§

fn default() -> PictureData

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.