Module safe

Module safe 

Source
Expand description

Safe wrapper around the raw bindings.

Largely unfinished, so you might still have to dip into sys for the missing functionality.

Re-exports§

pub use api::ENCODE_API;

Structs§

Bitstream
Abstraction around the output bitstream buffer that is used as the output of the encoding.
BitstreamLock
An RAII lock on the output bitstream buffer.
Buffer
Abstraction around input buffer allocated using the NVIDIA Video Encoder API.
BufferLock
An RAII lock on the input buffer.
ENCODE_API
A lazy static for the Encoder API.
EncodeAPI
An instance of the NvEncodeAPI interface, containing function pointers which should be used to interface with the rest of the Encoder API.
EncodeError
Wrapper struct around NVENCSTATUS.
EncodePictureParams
Optional parameters for Session::encode_picture.
Encoder
Entrypoint for the Encoder API.
EncoderInitParams
A safe wrapper for NV_ENC_INITIALIZE_PARAMS, which is the encoder initialize parameter.
RegisteredResource
Abstraction for a registered and mapped external resource.
Session
An encoding session to create input/output buffers and encode frames.

Enums§

CodecPictureParams
Codec specific picture parameters
ErrorKind
Wrapper enum around NVENCSTATUS.

Traits§

EncoderInput
If a type implements this trait it means it is a valid input buffer for the encoding API.
EncoderOutput
If a type implements this trait it means it is a valid output buffer for the encoding API.