Struct opencv::cudacodec::EncoderParams
source · #[repr(C)]pub struct EncoderParams {
pub nv_preset: EncodePreset,
pub tuning_info: EncodeTuningInfo,
pub encoding_profile: EncodeProfile,
pub rate_control_mode: EncodeParamsRcMode,
pub multi_pass_encoding: EncodeMultiPass,
pub const_qp: EncodeQp,
pub average_bit_rate: i32,
pub max_bit_rate: i32,
pub target_quality: u8,
pub gop_length: i32,
}
Expand description
Different parameters for CUDA video encoder.
Fields§
§nv_preset: EncodePreset
§tuning_info: EncodeTuningInfo
§encoding_profile: EncodeProfile
§rate_control_mode: EncodeParamsRcMode
§multi_pass_encoding: EncodeMultiPass
§const_qp: EncodeQp
QP’s for ENC_PARAMS_RC_CONSTQP.
average_bit_rate: i32
target bitrate for ENC_PARAMS_RC_VBR and ENC_PARAMS_RC_CBR.
max_bit_rate: i32
upper bound on bitrate for ENC_PARAMS_RC_VBR and ENC_PARAMS_RC_CONSTQP.
target_quality: u8
value 0 - 51 where video quality decreases as targetQuality increases, used with ENC_PARAMS_RC_VBR.
gop_length: i32
Implementations§
source§impl EncoderParams
impl EncoderParams
pub fn default() -> Result<EncoderParams>
Trait Implementations§
source§impl Clone for EncoderParams
impl Clone for EncoderParams
source§fn clone(&self) -> EncoderParams
fn clone(&self) -> EncoderParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EncoderParams
impl Debug for EncoderParams
source§impl PartialEq<EncoderParams> for EncoderParams
impl PartialEq<EncoderParams> for EncoderParams
source§fn eq(&self, other: &EncoderParams) -> bool
fn eq(&self, other: &EncoderParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EncoderParams
impl StructuralPartialEq for EncoderParams
Auto Trait Implementations§
impl RefUnwindSafe for EncoderParams
impl Send for EncoderParams
impl Sync for EncoderParams
impl Unpin for EncoderParams
impl UnwindSafe for EncoderParams
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more