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.
- Bitstream
Lock - An RAII lock on the output bitstream buffer.
- Buffer
- Abstraction around input buffer allocated using the NVIDIA Video Encoder API.
- Buffer
Lock - 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. - Encode
Error - Wrapper struct around
NVENCSTATUS
. - Encode
Picture Params - Optional parameters for
Session::encode_picture
. - Encoder
- Entrypoint for the Encoder API.
- Encoder
Init Params - A safe wrapper for
NV_ENC_INITIALIZE_PARAMS
, which is the encoder initialize parameter. - Registered
Resource - Abstraction for a registered and mapped external resource.
- Session
- An encoding session to create input/output buffers and encode frames.
Enums§
- Codec
Picture Params - Codec specific picture parameters
- Error
Kind - Wrapper enum around
NVENCSTATUS
.
Traits§
- Encoder
Input - If a type implements this trait it means it is a valid input buffer for the encoding API.
- Encoder
Output - If a type implements this trait it means it is a valid output buffer for the encoding API.