Struct AVVideoEncParams
#[repr(C)]pub struct AVVideoEncParams {
pub nb_blocks: u32,
pub blocks_offset: usize,
pub block_size: usize,
pub type_: i32,
pub qp: i32,
pub delta_qp: [[i32; 2]; 4],
}
Expand description
Video encoding parameters for a given frame. This struct is allocated along with an optional array of per-block AVVideoBlockParams descriptors. Must be allocated with av_video_enc_params_alloc().
Fields§
§nb_blocks: u32
Number of blocks in the array.
May be 0, in which case no per-block information is present. In this case the values of blocks_offset / block_size are unspecified and should not be accessed.
blocks_offset: usize
Offset in bytes from the beginning of this structure at which the array of blocks starts.
block_size: usize
§type_: i32
Type of the parameters (the codec they are used with).
qp: i32
Base quantisation parameter for the frame. The final quantiser for a given block in a given plane is obtained from this value, possibly combined with {@code delta_qp} and the per-block delta in a manner documented for each type.
delta_qp: [[i32; 2]; 4]
Quantisation parameter offset from the base (per-frame) qp for a given plane (first index) and AC/DC coefficients (second index).
Trait Implementations§
§impl Clone for AVVideoEncParams
impl Clone for AVVideoEncParams
§fn clone(&self) -> AVVideoEncParams
fn clone(&self) -> AVVideoEncParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more