Crate nvidia_video_codec_sdk
source ·Expand description
Bindings for the NVIDIA Video Codec SDK.
The raw bindings can be found in sys
.
Parts of the API have been wrapped in safe
.
Feel free to contribute!
Encoding
See NVIDIA Video Codec SDK - Video Encoder API Programming Guide.
The main entrypoint for the encoder API is the Encoder
type.
Usage follows this structure:
- Initialize an
Encoder
with an encode device (such as CUDA). - Configure the encoder and start a
Session
. - Create input
Buffer
s (orRegisteredResource
) and outputBitstream
s. - Encode frames with
Session::encode_picture
.
See the mentioned types for more info on how to use each.
Decoding
There is no safe wrapper yet.
Re-exports
pub use safe::*;
Modules
- Safe wrapper around the raw bindings.
- Auto-generated bindings to NVIDIA Video Codec SDK.