#[repr(C)]pub struct CUDA_EncoderParams {
pub nv_preset: CUDA_EncodePreset,
pub tuning_info: CUDA_EncodeTuningInfo,
pub encoding_profile: CUDA_EncodeProfile,
pub rate_control_mode: CUDA_EncodeParamsRcMode,
pub multi_pass_encoding: CUDA_EncodeMultiPass,
pub const_qp: CUDA_EncodeQp,
pub average_bit_rate: i32,
pub max_bit_rate: i32,
pub target_quality: u8,
pub gop_length: i32,
pub idr_period: i32,
}
Expand description
Different parameters for CUDA video encoder.
Fields§
§nv_preset: CUDA_EncodePreset
§tuning_info: CUDA_EncodeTuningInfo
§encoding_profile: CUDA_EncodeProfile
§rate_control_mode: CUDA_EncodeParamsRcMode
§multi_pass_encoding: CUDA_EncodeMultiPass
§const_qp: CUDA_EncodeQp
QP’s for \ref ENC_PARAMS_RC_CONSTQP.
average_bit_rate: i32
target bitrate for \ref ENC_PARAMS_RC_VBR and \ref ENC_PARAMS_RC_CBR.
max_bit_rate: i32
upper bound on bitrate for \ref ENC_PARAMS_RC_VBR and \ref ENC_PARAMS_RC_CONSTQP.
target_quality: u8
value 0 - 51 where video quality decreases as targetQuality increases, used with \ref ENC_PARAMS_RC_VBR.
gop_length: i32
the number of pictures in one GOP, ensuring \ref idrPeriod >= \ref gopLength.
idr_period: i32
IDR interval, ensuring \ref idrPeriod >= \ref gopLength.
Implementations§
Source§impl CUDA_EncoderParams
impl CUDA_EncoderParams
pub fn default() -> Result<CUDA_EncoderParams>
Trait Implementations§
Source§impl Clone for CUDA_EncoderParams
impl Clone for CUDA_EncoderParams
Source§fn clone(&self) -> CUDA_EncoderParams
fn clone(&self) -> CUDA_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 CUDA_EncoderParams
impl Debug for CUDA_EncoderParams
Source§impl PartialEq for CUDA_EncoderParams
impl PartialEq for CUDA_EncoderParams
impl Copy for CUDA_EncoderParams
impl StructuralPartialEq for CUDA_EncoderParams
Auto Trait Implementations§
impl Freeze for CUDA_EncoderParams
impl RefUnwindSafe for CUDA_EncoderParams
impl Send for CUDA_EncoderParams
impl Sync for CUDA_EncoderParams
impl Unpin for CUDA_EncoderParams
impl UnwindSafe for CUDA_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