Struct cros_codecs::decoders::h264::picture::PictureData
source · [−]pub struct PictureData {Show 31 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,
reference: Reference,
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,
is_second_field: bool,
other_field: Option<Weak<RefCell<Self>>>,
pub timestamp: u64,
}
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
reference: Reference
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
is_second_field: bool
other_field: Option<Weak<RefCell<Self>>>
timestamp: u64
Implementations
sourceimpl PictureData
impl PictureData
pub fn new_non_existing(frame_num: i32, timestamp: u64) -> Self
pub fn new_from_slice(slice: &Slice<&[u8]>, sps: &Sps, timestamp: u64) -> Self
sourcepub fn is_ref(&self) -> bool
pub fn is_ref(&self) -> bool
Whether the current picture is a reference, either ShortTerm or LongTerm.
sourcepub fn is_second_field(&self) -> bool
pub fn is_second_field(&self) -> bool
Whether this picture is a second field.
sourcepub fn set_reference(&mut self, reference: Reference, apply_to_other_field: bool)
pub fn set_reference(&mut self, reference: Reference, apply_to_other_field: bool)
Mark the picture as a reference picture.
sourcepub fn other_field_unchecked(&self) -> Rc<RefCell<Self>>
pub fn other_field_unchecked(&self) -> Rc<RefCell<Self>>
Returns the other field when we know it must be there.
sourcepub fn other_field(&self) -> Option<&Weak<RefCell<PictureData>>>
pub fn other_field(&self) -> Option<&Weak<RefCell<PictureData>>>
Get a reference to the picture’s other field, if any.
sourcepub fn set_second_field_to(&mut self, other_field: &Rc<RefCell<Self>>)
pub fn set_second_field_to(&mut self, other_field: &Rc<RefCell<Self>>)
Set this picture’s second field.
sourcepub fn is_second_field_of_complementary_ref_pair(&self) -> bool
pub fn is_second_field_of_complementary_ref_pair(&self) -> bool
Whether the current picture is the second field of a complementary ref pair.
sourcepub fn set_first_field_to(&mut self, other_field: &Rc<RefCell<Self>>)
pub fn set_first_field_to(&mut self, other_field: &Rc<RefCell<Self>>)
Set this picture’s first field.
Trait Implementations
sourceimpl Debug for PictureData
impl Debug for PictureData
sourceimpl Default for PictureData
impl Default for PictureData
sourcefn default() -> PictureData
fn default() -> PictureData
Returns the “default value” for a type. Read more
sourceimpl FrameInfo for PictureData
impl FrameInfo for PictureData
sourcefn display_resolution(&self) -> Resolution
fn display_resolution(&self) -> Resolution
Returns the display resolution of this frame.
Auto Trait Implementations
impl !RefUnwindSafe for PictureData
impl !Send for PictureData
impl !Sync for PictureData
impl Unpin for PictureData
impl !UnwindSafe for PictureData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more