pub(crate) fn new(
        parser: &Vp9Parser,
        uncompressed_header_size: usize,
        compressed_header_size: usize,
        tile_size: usize,
        data: Vec<u8>,
    ) -> Self {
        Self {
            data,
            profile: parser.profile,
            show_existing_frame: parser.show_existing_frame,
            frame_to_show_map_idx: parser.frame_to_show_map_idx,
            last_frame_type: parser.last_frame_type,
            frame_type: parser.frame_type,
            show_frame: parser.show_existing_frame,
            error_resilient_mode: parser.error_resilient_mode,
            intra_only: parser.intra_only,
            reset_frame_context: parser.reset_frame_context,
            ref_frame_indices: parser.ref_frame_indices,
            ref_frame_sign_bias: parser.ref_frame_sign_bias,
            allow_high_precision_mv: parser.allow_high_precision_mv,
            refresh_frame_context: parser.refresh_frame_context,
            refresh_frame_flags: parser.refresh_frame_flags,
            frame_parallel_decoding_mode: parser.frame_parallel_decoding_mode,
            frame_context_idx: parser.frame_context_idx,
            uncompressed_header_size,
            compressed_header_size,
            tile_size,
            color_depth: parser.color_depth,
            color_space: parser.color_space,
            color_range: parser.color_range,
            subsampling_x: parser.subsampling_x,
            subsampling_y: parser.subsampling_y,
            width: parser.width,
            height: parser.height,
            render_width: parser.render_width,
            render_height: parser.render_height,
            mi_cols: parser.mi_cols,
            mi_rows: parser.mi_rows,
            tile_rows_log2: parser.tile_rows_log2,
            tile_cols_log2: parser.tile_cols_log2,
            interpolation_filter: parser.interpolation_filter,
            loop_filter_level: parser.loop_filter_level,
            loop_filter_sharpness: parser.loop_filter_sharpness,
            loop_filter_delta_enabled: parser.loop_filter_delta_enabled,
            update_ref_delta: parser.update_ref_delta,
            loop_filter_ref_deltas: parser.loop_filter_ref_deltas,
            update_mode_delta: parser.update_mode_delta,
            loop_filter_mode_deltas: parser.loop_filter_mode_deltas,
            base_q_idx: parser.base_q_idx,
            delta_q_y_dc: parser.delta_q_y_dc,
            delta_q_uv_dc: parser.delta_q_uv_dc,
            delta_q_uv_ac: parser.delta_q_uv_ac,
            lossless: parser.lossless,
            segmentation_enabled: parser.segmentation_enabled,
            segmentation_update_map: parser.segmentation_update_map,
            segment_tree_probs: parser.segment_tree_probs,
            segment_pred_probs: parser.segment_pred_probs,
            segmentation_temporal_update: parser.segmentation_temporal_update,
            segmentation_update_data: parser.segmentation_update_data,
            segmentation_abs_or_delta_update: parser.segmentation_abs_or_delta_update,
            segment_feature_active: parser.segment_feature_active,
            segment_feature_data: parser.segment_feature_data,
        }
    }
/// Creates a frame from the parser state.
Creates a frame from the parser state.
Creates a frame from the parser state .
pub(crate) fn new(
        parser: &Vp9Parser,
        uncompressed_header_size: usize,
        compressed_header_size: usize,
        tile_size: usize,
        data: Vec<u8>,
    ) -> Self {
        Self {
            data,
            profile: parser.profile,
            show_existing_frame: parser.show_existing_frame,
            frame_to_show_map_idx: parser.frame_to_show_map_idx,
            last_frame_type: parser.last_frame_type,
            frame_type: parser.frame_type,
            show_frame: parser.show_existing_frame,
            error_resilient_mode: parser.error_resilient_mode,
            intra_only: parser.intra_only,
            reset_frame_context: parser.reset_frame_context,
            ref_frame_indices: parser.ref_frame_indices,
            ref_frame_sign_bias: parser.ref_frame_sign_bias,
            allow_high_precision_mv: parser.allow_high_precision_mv,
            refresh_frame_context: parser.refresh_frame_context,
            refresh_frame_flags: parser.refresh_frame_flags,
            frame_parallel_decoding_mode: parser.frame_parallel_decoding_mode,
            frame_context_idx: parser.frame_context_idx,
            uncompressed_header_size,
            compressed_header_size,
            tile_size,
            color_depth: parser.color_depth,
            color_space: parser.color_space,
            color_range: parser.color_range,
            subsampling_x: parser.subsampling_x,
            subsampling_y: parser.subsampling_y,
            width: parser.width,
            height: parser.height,
            render_width: parser.render_width,
            render_height: parser.render_height,
            mi_cols: parser.mi_cols,
            mi_rows: parser.mi_rows,
            tile_rows_log2: parser.tile_rows_log2,
            tile_cols_log2: parser.tile_cols_log2,
            interpolation_filter: parser.interpolation_filter,
            loop_filter_level: parser.loop_filter_level,
            loop_filter_sharpness: parser.loop_filter_sharpness,
            loop_filter_delta_enabled: parser.loop_filter_delta_enabled,
            update_ref_delta: parser.update_ref_delta,
            loop_filter_ref_deltas: parser.loop_filter_ref_deltas,
            update_mode_delta: parser.update_mode_delta,
            loop_filter_mode_deltas: parser.loop_filter_mode_deltas,
            base_q_idx: parser.base_q_idx,
            delta_q_y_dc: parser.delta_q_y_dc,
            delta_q_uv_dc: parser.delta_q_uv_dc,
            delta_q_uv_ac: parser.delta_q_uv_ac,
            lossless: parser.lossless,
            segmentation_enabled: parser.segmentation_enabled,
            segmentation_update_map: parser.segmentation_update_map,
            segment_tree_probs: parser.segment_tree_probs,
            segment_pred_probs: parser.segment_pred_probs,
            segmentation_temporal_update: parser.segmentation_temporal_update,
            segmentation_update_data: parser.segmentation_update_data,
            segmentation_abs_or_delta_update: parser.segmentation_abs_or_delta_update,
            segment_feature_active: parser.segment_feature_active,
            segment_feature_data: parser.segment_feature_data,
        }
    }
pub ( crate ) fn new ( parser : & Vp9Parser , uncompressed_header_size : usize , compressed_header_size : usize , tile_size : usize , data : Vec < u8 > , ) -> Self { Self { data , profile : parser . profile , show_existing_frame : parser . show_existing_frame , frame_to_show_map_idx : parser . frame_to_show_map_idx , last_frame_type : parser . last_frame_type , frame_type : parser . frame_type , show_frame : parser . show_existing_frame , error_resilient_mode : parser . error_resilient_mode , intra_only : parser . intra_only , reset_frame_context : parser . reset_frame_context , ref_frame_indices : parser . ref_frame_indices , ref_frame_sign_bias : parser . ref_frame_sign_bias , allow_high_precision_mv : parser . allow_high_precision_mv , refresh_frame_context : parser . refresh_frame_context , refresh_frame_flags : parser . refresh_frame_flags , frame_parallel_decoding_mode : parser . frame_parallel_decoding_mode , frame_context_idx : parser . frame_context_idx , uncompressed_header_size , compressed_header_size , tile_size , color_depth : parser . color_depth , color_space : parser . color_space , color_range : parser . color_range , subsampling_x : parser . subsampling_x , subsampling_y : parser . subsampling_y , width : parser . width , height : parser . height , render_width : parser . render_width , render_height : parser . render_height , mi_cols : parser . mi_cols , mi_rows : parser . mi_rows , tile_rows_log2 : parser . tile_rows_log2 , tile_cols_log2 : parser . tile_cols_log2 , interpolation_filter : parser . interpolation_filter , loop_filter_level : parser . loop_filter_level , loop_filter_sharpness : parser . loop_filter_sharpness , loop_filter_delta_enabled : parser . loop_filter_delta_enabled , update_ref_delta : parser . update_ref_delta , loop_filter_ref_deltas : parser . loop_filter_ref_deltas , update_mode_delta : parser . update_mode_delta , loop_filter_mode_deltas : parser . loop_filter_mode_deltas , base_q_idx : parser . base_q_idx , delta_q_y_dc : parser . delta_q_y_dc , delta_q_uv_dc : parser . delta_q_uv_dc , delta_q_uv_ac : parser . delta_q_uv_ac , lossless : parser . lossless , segmentation_enabled : parser . segmentation_enabled , segmentation_update_map : parser . segmentation_update_map , segment_tree_probs : parser . segment_tree_probs , segment_pred_probs : parser . segment_pred_probs , segmentation_temporal_update : parser . segmentation_temporal_update , segmentation_update_data : parser . segmentation_update_data , segmentation_abs_or_delta_update : parser . segmentation_abs_or_delta_update , segment_feature_active : parser . segment_feature_active , segment_feature_data : parser . segment_feature_data , } }
Creates a frame from the parser state.
Creates a frame from the parser state .
parser
&Vp9Parser
uncompressed_header_size
usize
compressed_header_size
usize
tile_size
usize
data
Vec<u8>
parser
&Vp9Parser
uncompressed_header_size
usize
compressed_header_size
usize
tile_size
usize
data
Vec<u8>