Skip to main content

NV_ENCODE_API_FUNCTION_LIST

Struct NV_ENCODE_API_FUNCTION_LIST 

Source
#[repr(C)]
pub struct NV_ENCODE_API_FUNCTION_LIST {
Show 46 fields pub version: u32, pub reserved: u32, pub nvEncOpenEncodeSession: *const c_void, pub nvEncGetEncodeGUIDCount: *const c_void, pub nvEncGetEncodeProfileGUIDCount: *const c_void, pub nvEncGetEncodeProfileGUIDs: *const c_void, pub nvEncGetEncodeGUIDs: *const c_void, pub nvEncGetInputFormatCount: *const c_void, pub nvEncGetInputFormats: *const c_void, pub nvEncGetEncodeCaps: *const c_void, pub nvEncGetEncodePresetCount: *const c_void, pub nvEncGetEncodePresetGUIDs: *const c_void, pub nvEncGetEncodePresetConfig: *const c_void, pub nvEncInitializeEncoder: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_INITIALIZE_PARAMS) -> NVENCSTATUS>, pub nvEncCreateInputBuffer: *const c_void, pub nvEncDestroyInputBuffer: *const c_void, pub nvEncCreateBitstreamBuffer: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_CREATE_BITSTREAM_BUFFER) -> NVENCSTATUS>, pub nvEncDestroyBitstreamBuffer: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> NVENCSTATUS>, pub nvEncEncodePicture: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_PIC_PARAMS) -> NVENCSTATUS>, pub nvEncLockBitstream: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_LOCK_BITSTREAM) -> NVENCSTATUS>, pub nvEncUnlockBitstream: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> NVENCSTATUS>, pub nvEncLockInputBuffer: *const c_void, pub nvEncUnlockInputBuffer: *const c_void, pub nvEncGetEncodeStats: *const c_void, pub nvEncGetSequenceParams: *const c_void, pub nvEncRegisterAsyncEvent: *const c_void, pub nvEncUnregisterAsyncEvent: *const c_void, pub nvEncMapInputResource: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_MAP_INPUT_RESOURCE) -> NVENCSTATUS>, pub nvEncUnmapInputResource: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> NVENCSTATUS>, pub nvEncDestroyEncoder: Option<unsafe extern "C" fn(*mut c_void) -> NVENCSTATUS>, pub nvEncInvalidateRefFrames: *const c_void, pub nvEncOpenEncodeSessionEx: Option<unsafe extern "C" fn(*mut NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS, *mut *mut c_void) -> NVENCSTATUS>, pub nvEncRegisterResource: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_REGISTER_RESOURCE) -> NVENCSTATUS>, pub nvEncUnregisterResource: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> NVENCSTATUS>, pub nvEncReconfigureEncoder: *const c_void, pub reserved1: *const c_void, pub nvEncCreateMVBuffer: *const c_void, pub nvEncDestroyMVBuffer: *const c_void, pub nvEncRunMotionEstimationOnly: *const c_void, pub nvEncGetLastErrorString: *const c_void, pub nvEncSetIOCudaStreams: *const c_void, pub nvEncGetEncodePresetConfigEx: Option<unsafe extern "C" fn(*mut c_void, GUID, GUID, NV_ENC_TUNING_INFO, *mut NV_ENC_PRESET_CONFIG) -> NVENCSTATUS>, pub nvEncGetSequenceParamEx: *const c_void, pub nvEncRestoreEncoderState: *const c_void, pub nvEncLookaheadPicture: *const c_void, pub reserved2: [*const c_void; 275],
}
Expand description

Subset of the NV_ENCODE_API_FUNCTION_LIST that we actually call.

Fields§

§version: u32§reserved: u32§nvEncOpenEncodeSession: *const c_void§nvEncGetEncodeGUIDCount: *const c_void§nvEncGetEncodeProfileGUIDCount: *const c_void§nvEncGetEncodeProfileGUIDs: *const c_void§nvEncGetEncodeGUIDs: *const c_void§nvEncGetInputFormatCount: *const c_void§nvEncGetInputFormats: *const c_void§nvEncGetEncodeCaps: *const c_void§nvEncGetEncodePresetCount: *const c_void§nvEncGetEncodePresetGUIDs: *const c_void§nvEncGetEncodePresetConfig: *const c_void§nvEncInitializeEncoder: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_INITIALIZE_PARAMS) -> NVENCSTATUS>§nvEncCreateInputBuffer: *const c_void§nvEncDestroyInputBuffer: *const c_void§nvEncCreateBitstreamBuffer: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_CREATE_BITSTREAM_BUFFER) -> NVENCSTATUS>§nvEncDestroyBitstreamBuffer: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> NVENCSTATUS>§nvEncEncodePicture: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_PIC_PARAMS) -> NVENCSTATUS>§nvEncLockBitstream: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_LOCK_BITSTREAM) -> NVENCSTATUS>§nvEncUnlockBitstream: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> NVENCSTATUS>§nvEncLockInputBuffer: *const c_void§nvEncUnlockInputBuffer: *const c_void§nvEncGetEncodeStats: *const c_void§nvEncGetSequenceParams: *const c_void§nvEncRegisterAsyncEvent: *const c_void§nvEncUnregisterAsyncEvent: *const c_void§nvEncMapInputResource: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_MAP_INPUT_RESOURCE) -> NVENCSTATUS>§nvEncUnmapInputResource: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> NVENCSTATUS>§nvEncDestroyEncoder: Option<unsafe extern "C" fn(*mut c_void) -> NVENCSTATUS>§nvEncInvalidateRefFrames: *const c_void§nvEncOpenEncodeSessionEx: Option<unsafe extern "C" fn(*mut NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS, *mut *mut c_void) -> NVENCSTATUS>§nvEncRegisterResource: Option<unsafe extern "C" fn(*mut c_void, *mut NV_ENC_REGISTER_RESOURCE) -> NVENCSTATUS>§nvEncUnregisterResource: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> NVENCSTATUS>§nvEncReconfigureEncoder: *const c_void§reserved1: *const c_void§nvEncCreateMVBuffer: *const c_void§nvEncDestroyMVBuffer: *const c_void§nvEncRunMotionEstimationOnly: *const c_void§nvEncGetLastErrorString: *const c_void§nvEncSetIOCudaStreams: *const c_void§nvEncGetEncodePresetConfigEx: Option<unsafe extern "C" fn(*mut c_void, GUID, GUID, NV_ENC_TUNING_INFO, *mut NV_ENC_PRESET_CONFIG) -> NVENCSTATUS>§nvEncGetSequenceParamEx: *const c_void§nvEncRestoreEncoderState: *const c_void§nvEncLookaheadPicture: *const c_void§reserved2: [*const c_void; 275]

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more