Module avcodec

Source
Expand description

This module implements a lightweight and safe decoder interface over libavcodec. It is designed to concentrate all calls to unsafe methods in one place, while providing the same low-level access as the libavcodec functions do.

Structs§

AvBuffer
Wrapper around AVBuffer and AVBufferRef.
AvCodec
Lightweight abstraction over libavcodec’s AVCodec struct, allowing the query the capabilities of supported codecs and opening a session to work with them.
AvCodecContext
A codec context from which decoding can be performed.
AvCodecIterator
Lightweight abstraction over libavcodec’s av_codec_iterate function that can be used to enumerate all the supported codecs.
AvError
An error returned by a low-level libavcodec function.
AvFrame
An owned AVFrame, i.e. one decoded frame from libavcodec that can be converted into a destination buffer.
AvFrameBuilder
A builder for AVFrame that allows specifying buffers and image metadata.
AvPacket
An encoded input packet that can be submitted to AvCodecContext::try_send_packet.
AvPixelFormat
Simple wrapper over AVPixelFormat that provides helpful methods.
AvPixelFormatIterator
Lightweight abstraction over the array of supported pixel formats for a given codec.
AvProfile
Simple wrapper over AVProfile that provides helpful methods.
AvProfileIterator
Lightweight abstraction over the array of supported profiles for a given codec.
DecoderContextBuilder
A builder to create a AvCodecContext suitable for decoding.
Dimensions
Dimensions of a frame, used in AvCodecContext and AvFrame.
EncoderContextBuilder
A builder to create a AvCodecContext suitable for encoding.
FromAVPixelFormatError
PlaneDescriptor
A descriptor describing a subslice of buffers in AvFrameBuilder::build_owned that represents a plane’s image data.

Enums§

AvCodecOpenError
AvFrameError
TryReceiveResult

Traits§

AvBufferSource
Trait for types that can be used as data provider for a AVBuffer.