pub struct Frame { /* private fields */ }
Expand description

A VP9 frame.

Implementations

Returns a slice into the data of the compressed header.

Returns a slice into the data of the compressed header and tile data.

Returns a slice into the data of the tile data.

The profile the frame is using.

Indicates that the frame indexed by frame_to_show_map_idx is to be displayed. The frame contains no actual frame data.

Specifies the frame to be displayed. It is only available if show_existing_frame is true.

The frame type of the previous frame.

The frame type of this frame.

Indicates that the frame is to be displayed.

Indicates that error resilient mode is enabled.

Error resilient mode allows the syntax of a frame to be decoded independently of previous frames.

Indicates that a frame is an intra-only frame.

A key frame is different to an intra-only frame even though both only use intra prediction. The difference is that a key frame fully resets the decoding process.

Specifies whether the frame context should be reset to default values.

The indices of the used reference frames.

Last reference frame index.

Golden reference frame index.

Alternate reference frame index.

Specifies the intended direction of the motion vector in time for each reference frame.

Specifies the precision of the motion vectors.

False = quarter precision, True = eighth precision.

Specifies that the probabilities computed for this frame should be stored for reference by future frames.

Contains a bitmask that specifies which reference frame slots will be updated with the current frame after it is decoded.

First bit = first frame (1). Last bit = last frame (8).

Specifies if parallel decoding mode is activated.

Specifies which frame context to use.

The size of the uncompressed header.

The size of the uncompressed header.

The size of the tile data.

The color depth of the frame.

The color space of the frame.

The color range of the frame.

The subsampling the frame is using.

Indicates if sub sampling is used along the x axis.

Indicates if sub sampling is used along the y axis.

The width of the frame.

The height of the frame.

A hint for the application for the desired width to render.

A hint for the application for the desired height to render.

A variable holding the vertical location of the block in units of 8x8 pixels.

A variable holding the horizontal location of the block in units of 8x8 pixels.

The base 2 logarithm of the height of each tile (where the height is measured in units of 8x8 blocks)

The base 2 logarithm of the width of each tile (where the width is measured in units of 8x8 blocks)

The type of filter used in inter prediction.

The loop filter strength.

The loop filter sharpness.

Indicates that the filter level depends on the mode and reference frame used to predict a block.

Indicates that the the bitstream contains the syntax element loop_filter_ref_delta.

Contains the adjustment needed for the filter level based on the chosen reference frame.

Indicates that the the bitstream contains the syntax element loop_filter_mode_deltas.

Contains the adjustment needed for the filter level based on the chosen mode.

The base frame qindex. This is used for Y AC coefficients and as the base value for the other quantizers.

The Y DC quantizer relative to base_q_idx.

The UV DC quantizer relative to base_q_idx.

The UV AC quantizer relative to base_q_idx.

Indicates that the frame is coded using a special 4x4 transform designed for encoding frames that are bit-identical with the original frames.

Specifies that this frame makes use of the segmentation tool.

Specifies that the segmentation map should be updated during the decoding of this frame.

The probability values to be used when decoding segment_id.

The probability values to be used when decoding seg_id_predicted.

Indicates that the updates to the segmentation map are coded relative to the existing segmentation map.

Indicates that new parameters are about to be specified for each segment.

Indicates that the segmentation parameters represent the actual values to be used, otherwise the segmentation parameters represent adjustments relative to the standard values.

Indicates that the corresponding feature is used in a segment.

Specifies the values of the active features of a segment.

Destroys the frame and returns the underlying data buffer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.