pub struct Parser {
bit_depth: BitDepth,
subsampling_x: bool,
subsampling_y: bool,
color_space: ColorSpace,
color_range: ColorRange,
mi_cols: u32,
mi_rows: u32,
sb64_cols: u32,
sb64_rows: u32,
lf: LoopFilterParams,
seg: SegmentationParams,
reference_frame_sz: [FrameSize; 8],
}
Expand description
A VP9 bitstream parser.
Fields
bit_depth: BitDepth
subsampling_x: bool
subsampling_y: bool
color_space: ColorSpace
color_range: ColorRange
mi_cols: u32
mi_rows: u32
sb64_cols: u32
sb64_rows: u32
lf: LoopFilterParams
seg: SegmentationParams
reference_frame_sz: [FrameSize; 8]
Implementations
sourceimpl Parser
impl Parser
fn parse_superframe_hdr(
&mut self,
resource: impl AsRef<[u8]>
) -> Result<SuperframeHeader>
fn read_signed_8(r: &mut BitReader<'_>, nbits: u8) -> Result<i8>
fn parse_frame_marker(r: &mut BitReader<'_>) -> Result<()>
fn parse_profile(r: &mut BitReader<'_>, hdr: &mut Header) -> Result<()>
fn parse_frame_sync_code(r: &mut BitReader<'_>) -> Result<()>
fn parse_color_config(
&mut self,
r: &mut BitReader<'_>,
hdr: &mut Header
) -> Result<()>
fn compute_image_size(&mut self, width: u32, height: u32)
fn parse_frame_size(
&mut self,
r: &mut BitReader<'_>,
hdr: &mut Header
) -> Result<()>
fn parse_render_size(
&mut self,
r: &mut BitReader<'_>,
hdr: &mut Header
) -> Result<()>
fn parse_frame_size_with_refs(
&mut self,
r: &mut BitReader<'_>,
hdr: &mut Header
) -> Result<()>
fn read_interpolation_filter(
r: &mut BitReader<'_>,
hdr: &mut Header
) -> Result<()>
fn setup_past_independence(&mut self, hdr: &mut Header)
fn parse_loop_filter_params(
r: &mut BitReader<'_>,
lf: &mut LoopFilterParams
) -> Result<()>
fn read_delta_q(r: &mut BitReader<'_>, value: &mut i8) -> Result<()>
fn parse_quantization_params(
r: &mut BitReader<'_>,
hdr: &mut Header
) -> Result<()>
fn read_prob(r: &mut BitReader<'_>) -> Result<u8>
fn parse_segmentation_params(
r: &mut BitReader<'_>,
seg: &mut SegmentationParams
) -> Result<()>
fn calc_min_log2_tile_cols(sb64_cols: u32) -> i32
fn calc_max_log2_tile_cols(sb64_cols: u32) -> i32
fn parse_tile_info(
&mut self,
r: &mut BitReader<'_>,
hdr: &mut Header
) -> Result<()>
fn parse_frame_header(
&mut self,
resource: impl AsRef<[u8]>,
offset: usize
) -> Result<Header>
Trait Implementations
impl Eq for Parser
impl StructuralEq for Parser
impl StructuralPartialEq for Parser
Auto Trait Implementations
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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