#[repr(C)]
pub struct _NV_ENC_PIC_PARAMS {
Show 30 fields pub version: u32, pub inputWidth: u32, pub inputHeight: u32, pub inputPitch: u32, pub encodePicFlags: u32, pub frameIdx: u32, pub inputTimeStamp: u64, pub inputDuration: u64, pub inputBuffer: NV_ENC_INPUT_PTR, pub outputBitstream: NV_ENC_OUTPUT_PTR, pub completionEvent: *mut c_void, pub bufferFmt: NV_ENC_BUFFER_FORMAT, pub pictureStruct: NV_ENC_PIC_STRUCT, pub pictureType: NV_ENC_PIC_TYPE, pub codecPicParams: NV_ENC_CODEC_PIC_PARAMS, pub meHintCountsPerBlock: [NVENC_EXTERNAL_ME_HINT_COUNTS_PER_BLOCKTYPE; 2], pub meExternalHints: *mut NVENC_EXTERNAL_ME_HINT, pub reserved1: [u32; 6], pub reserved2: [*mut c_void; 2], pub qpDeltaMap: *mut i8, pub qpDeltaMapSize: u32, pub reservedBitFields: u32, pub meHintRefPicDist: [u16; 2], pub alphaBuffer: NV_ENC_INPUT_PTR, pub meExternalSbHints: *mut NVENC_EXTERNAL_ME_SB_HINT, pub meSbHintsCount: u32, pub stateBufferIdx: u32, pub outputReconBuffer: NV_ENC_OUTPUT_PTR, pub reserved3: [u32; 284], pub reserved4: [*mut c_void; 57],
}

Fields§

§version: u32§inputWidth: u32§inputHeight: u32§inputPitch: u32§encodePicFlags: u32§frameIdx: u32§inputTimeStamp: u64§inputDuration: u64§inputBuffer: NV_ENC_INPUT_PTR§outputBitstream: NV_ENC_OUTPUT_PTR§completionEvent: *mut c_void§bufferFmt: NV_ENC_BUFFER_FORMAT§pictureStruct: NV_ENC_PIC_STRUCT§pictureType: NV_ENC_PIC_TYPE§codecPicParams: NV_ENC_CODEC_PIC_PARAMS§meHintCountsPerBlock: [NVENC_EXTERNAL_ME_HINT_COUNTS_PER_BLOCKTYPE; 2]§meExternalHints: *mut NVENC_EXTERNAL_ME_HINT§reserved1: [u32; 6]§reserved2: [*mut c_void; 2]§qpDeltaMap: *mut i8§qpDeltaMapSize: u32§reservedBitFields: u32§meHintRefPicDist: [u16; 2]§alphaBuffer: NV_ENC_INPUT_PTR§meExternalSbHints: *mut NVENC_EXTERNAL_ME_SB_HINT§meSbHintsCount: u32§stateBufferIdx: u32§outputReconBuffer: NV_ENC_OUTPUT_PTR§reserved3: [u32; 284]§reserved4: [*mut c_void; 57]

Implementations§

source§

impl _NV_ENC_PIC_PARAMS

source

pub fn end_of_stream() -> Self

Create an EOS empty frame that is used at the end of encoding to flush the encoder.

Trait Implementations§

source§

impl Clone for _NV_ENC_PIC_PARAMS

source§

fn clone(&self) -> _NV_ENC_PIC_PARAMS

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for _NV_ENC_PIC_PARAMS

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for _NV_ENC_PIC_PARAMS

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.