Struct nvidia_video_codec_sdk::sys::nvEncodeAPI::_NV_ENC_PIC_PARAMS
source · #[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
impl _NV_ENC_PIC_PARAMS
sourcepub fn end_of_stream() -> Self
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
impl Clone for _NV_ENC_PIC_PARAMS
source§fn clone(&self) -> _NV_ENC_PIC_PARAMS
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for _NV_ENC_PIC_PARAMS
impl Default for _NV_ENC_PIC_PARAMS
impl Copy for _NV_ENC_PIC_PARAMS
Auto Trait Implementations§
impl RefUnwindSafe for _NV_ENC_PIC_PARAMS
impl !Send for _NV_ENC_PIC_PARAMS
impl !Sync for _NV_ENC_PIC_PARAMS
impl Unpin for _NV_ENC_PIC_PARAMS
impl UnwindSafe for _NV_ENC_PIC_PARAMS
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