|
| struct | ArrayIterator |
| | Wrapped array iterator. More...
|
| struct | ArraySentinel |
| | Policy based sentinel marker. More...
|
| class | ArrayView |
| | C-array (FFmpeg) wrapper witch can iterate over collection and represents any element via light-weight view U. More...
|
| class | AudioCodecContext |
| | Audio-specific parameters shared by audio encoders and decoders. More...
|
| class | AudioDecoderContext |
| | Decodes audio packets into sample buffers. More...
|
| class | AudioEncoderContext |
| | Encodes audio samples into packets. More...
|
| class | AudioResampler |
| | Converts audio between sample rates, sample formats and channel layouts. More...
|
| class | AudioSamples |
| | One buffer of decoded audio samples. More...
|
| class | AvcppCategory |
| | The AvcppCategory class Describes internal AvCpp errors. More...
|
| class | BufferRef |
| | Light weight wrapper for the FFmpeg AVBufferRef functionality. More...
|
| class | BufferRefView |
| | Non-owning view for the nested AVBufferRef. More...
|
| class | BufferSinkFilterContext |
| | Exit point of a filter graph. More...
|
| class | BufferSrcFilterContext |
| | Entry point of a filter graph. More...
|
| class | ChannelLayout |
| | Owning channel layout. More...
|
| class | ChannelLayoutView |
| | Non-owning view of an AVChannelLayout. More...
|
| class | Codec |
| | Codec descriptor. More...
|
| class | CodecContext2 |
| | Base class for audio and video codec contexts. More...
|
| class | CodecContextBase |
| | Base class that fixes the direction and media type of a codec context. More...
|
| class | CodecParameters |
| | Owning codec parameters. More...
|
| class | CodecParametersView |
| | The CodecParametersView class. More...
|
| struct | CustomIO |
| | Interface class to customize IO operations with FormatContext. More...
|
| struct | DefaultNextElement |
| | This functor uses simple notation to take next element from linked list. More...
|
| struct | DefaultResetPtr |
| | This functor used by default to set new pointer that will be wrapped by W wrapper. More...
|
| struct | DefaultWrapperCast |
| | This functor used by default to take access to raw pointer that wrapped by W wrapper. More...
|
| class | Dictionary |
| | Implements interface to access to the AVDictionary entity. More...
|
| class | DictionaryArray |
| | Array of Dictinaries wrapper. More...
|
| struct | EmptyDeleter |
| | Deleter that does nothing. More...
|
| struct | EqualComparator |
| | Predicate that compares an element with a stored value. More...
|
| class | Exception |
| | The AvException class Default exception that thows from function that does not accept error code storage. More...
|
| class | FfmpegCategory |
| | The FfmpegCategory class Describers FFmpeg internal errors. More...
|
| class | Filter |
| | A filter descriptor: the static description of one filter. More...
|
| class | FilterContext |
| | One filter instance inside a graph. More...
|
| class | FilterGraph |
| | A filter graph: filters, the links between them, and their configuration. More...
|
| class | FilterPadList |
| | Pads of a filter: its inputs or its outputs. More...
|
| struct | Format |
| | Common interface of input and output format descriptors. More...
|
| class | FormatContext |
| | Container context: the entry point for demuxing, muxing and seeking. More...
|
| class | Frame |
| | CRTP base that gives a frame type its copy and move assignment. More...
|
| class | FrameCommon |
| | Common interface of video frames and audio samples. More...
|
| class | FrameSideData |
| | Simple view for the AVFrameSideData elements. More...
|
| class | GenericCodecContext |
| | The GenericCodecContext class to copy contexts from input streams to output one. More...
|
| struct | IncrementNextElement |
| | This functor uses increment operation to take next element in list/array. More...
|
| class | InputFormat |
| | Demuxer descriptor. More...
|
| class | LinkedListWrapper |
| | Universal wrapper for one directional linked list elements. More...
|
| class | noncopyable |
| | Base class that deletes copying and assignment. More...
|
| struct | NullDeleter |
| | This deleter does nothing. More...
|
| class | OptionalErrorCode |
| | Carries the caller's choice between exceptions and error codes. More...
|
| class | OutputFormat |
| | Muxer descriptor. More...
|
| class | Packet |
| | Compressed data and its metadata. More...
|
| class | PacketSideData |
| | Simple view for the AVPacketSideData elements. More...
|
| class | PixelFormat |
| | The PixelFormat class is a simple wrapper for AVPixelFormat that allow to acces it it properties. More...
|
| struct | PtrDeleter |
| | This deleter simple call 'delete' operator. More...
|
| class | Rational |
| | Rational number: a numerator and a denominator. More...
|
| class | Rect |
| | Rectangle: a position and a size. More...
|
| struct | ReferenceSelector |
| struct | ReferenceSelector< T, U, false > |
| | Selects a value as the dereference result. More...
|
| struct | ReferenceSelector< T, U, true > |
| | Selects a reference as the dereference result. More...
|
| class | SampleFormat |
| | The SampleFormat class is a simple proxy class for AVSampleFormat. More...
|
| class | ScopedValue |
| | Functor to take next element in list/array. More...
|
| class | ScopeOutAction |
| | The ScopeOutAction class - guard-type class that allows points callback that will be called at the scope out. More...
|
| struct | SentinelEndPolicy |
| | Sentinel policy that defines well-known range end pointer. More...
|
| struct | SentinelUntilPolicy |
| | Sentinel policy that defines well-known sequence end marker, like '\0' at the C-string end or special value like NULL. More...
|
| struct | SmartDeleter |
| | Template facade over the per-type deleters of namespace v1. More...
|
| class | Stream |
| | One stream inside a container. More...
|
| class | SubtitleCodecContext |
| | Base class for subtitle codec contexts. More...
|
| class | SubtitleDecoderContext |
| | Decodes subtitle packets into subtitle frames. More...
|
| class | SubtitleEncoderContext |
| | Encodes subtitle frames into packets. More...
|
| class | SubtitleFrame |
| | Owning, move-only subtitle frame. More...
|
| class | SubtitleRect |
| | Non-owning view over AVSubtitleRect. More...
|
| class | Timestamp |
| | The Timestamp class represents timestamp value and it timebase. More...
|
| class | VideoCodecContext |
| | Video-specific parameters shared by video encoders and decoders. More...
|
| class | VideoDecoderContext |
| | Decodes video packets into frames. More...
|
| class | VideoEncoderContext |
| | Encodes video frames into packets. More...
|
| class | VideoFrame |
| | One video frame. More...
|
| class | VideoRescaler |
| | Converts video frames between sizes and pixel formats. More...
|
|
| enum class | Errors {
NoError = 0
, Generic
, Unallocated
, InvalidArgument
,
OutOfRange
, CantAllocateFrame
, CodecStreamInvalid
, CodecInvalidDirection
,
CodecAlreadyOpened
, CodecIsNotOpened
, CodecInvalid
, CodecNotOpened
,
CodecInvalidDecodeProc
, CodecInvalidEncodeProc
, CodecDecodingOffsetToLarge
, CodecInvalidForEncode
,
CodecInvalidForDecoce
, CodecInvalidMediaType
, FrameInvalid
, DictOutOfRage
,
DictNoKey
, BufferReadonly
, FormatCantAddStream
, FormatAlreadyOpened
,
FormatNullOutputFormat
, FormatWrongCountOfStreamOptions
, FormatNoStreams
, FormatInvalidStreamIndex
,
FormatNotOpened
, FormatInvalidDirection
, FormatHeaderNotWriten
, FormatCodecUnsupported
,
ResamplerInvalidParameters
, ResamplerNotInited
, ResamplerInputChanges
, ResamplerOutputChanges
,
RescalerInvalidParameters
, RescalerInternalSwsError
, FilterNotInFilterGraph
, FilterGraphDescriptionEmpty
,
IncorrectBufferSrcFilter
, IncorrectBufferSrcMediaType
, IncorrectBufferSinkFilter
, IncorrectBufferSinkMediaType
,
MixBufferSinkAccess
, CodecUnsupportedOperation
, HardwareDeviceUnavailable
, HardwareDeviceInvalid
,
HardwareConfigNotFound
, HardwareFramesInvalid
, HardwareTransferUnsupported
, HardwareCodecNotFound
} |
| | Errors the library raises itself, as opposed to FFmpeg's return codes. More...
|
| enum class | Direction { Invalid = -1
, Encoding
, Decoding
} |
| | Direction a codec or a stream is used in. More...
|
| enum class | FilterMediaType { Unknown
, Video
, Audio
} |
| | Media type a filter works with. More...
|
| enum | { RationalMaxPrecision = 5
} |
| enum | SwsFlags {
SwsFlagAuto = 0
, SwsFlagFastBilinear = SWS_FAST_BILINEAR
, SwsFlagBilinear = SWS_BILINEAR
, SwsFlagBicubic = SWS_BICUBIC
,
SwsFlagExprerimental = SWS_X
, SwsFlagNeighbor = SWS_POINT
, SwsFlagArea = SWS_AREA
, SwsFlagBicublin = SWS_BICUBLIN
,
SwsFlagGauss = SWS_GAUSS
, SwsFlagSinc = SWS_SINC
, SwsFlagLanczos = SWS_LANCZOS
, SwsFlagSpline = SWS_SPLINE
,
SwsFlagPrintInfo = SWS_PRINT_INFO
, SwsFlagAccurateRnd = SWS_ACCURATE_RND
, SwsFlagFullChromaInt = SWS_FULL_CHR_H_INT
, SwsFlagFullChromaInp = SWS_FULL_CHR_H_INP
,
SwsFlagBitexact = SWS_BITEXACT
, SwsFlagErrorDiffusion = SWS_ERROR_DIFFUSION
} |
| | Scaling algorithms and options of libswscale. More...
|
|
| void | init () |
| | Initialize all subsystems the library needs.
|
| const AvcppCategory & | avcpp_category () |
| | Error category of the library's own errors.
|
| FfmpegCategory & | ffmpeg_category () |
| | Error category that wraps FFmpeg return codes.
|
| std::error_condition | make_error_condition (av::Errors errc) noexcept |
| | Build an error condition from an avcpp error.
|
| std::error_code | make_error_code (av::Errors errc) noexcept |
| | Build an error code from an avcpp error.
|
| std::error_code | make_avcpp_error (Errors code) |
| | Build an error code from an avcpp error.
|
| std::error_condition | make_avcpp_condition (Errors code) |
| | Build an error condition from an avcpp error.
|
| std::error_code | make_ffmpeg_error (int code) |
| | Build an error code from an FFmpeg return value.
|
| std::error_condition | make_ffmpeg_condition (int code) |
| | Build an error condition from an FFmpeg return value.
|
| template<typename Exception = av::Exception> |
| void | throw_error_code (const std::error_code &ec) |
| | Throw an exception carrying the given error code.
|
| template<typename Exception = av::Exception> |
| void | throw_error_code (Errors errc) |
| | Throw an exception carrying an avcpp error.
|
| OptionalErrorCode | throws () |
| | Helper to construct null OptionalErrorCode object.
|
| template<typename Category, typename Exception = av::Exception> |
| void | throws_if (OptionalErrorCode ec, int errcode, const Category &cat) |
| | Throw or store an error, depending on what the caller passed.
|
| template<typename T, typename Exception = av::Exception> |
| void | throws_if (OptionalErrorCode ec, T errcode) |
| | Throw or store an error code, depending on the caller's choice.
|
| void | clear_if (OptionalErrorCode ec) |
| | clear_if - clear error code if it is not av::throws()
|
| bool | is_error (OptionalErrorCode ec) |
| | Whether an error was stored in the caller's variable.
|
| int64_t | gettime () |
| | Get the current time in microseconds.
|
| int | usleep (unsigned usec) |
| | Sleep for a period of time.
|
| template<typename R, typename T> |
| R | lexical_cast (const T &v) |
| | Convert a value through its stream representation.
|
| void | set_logging_level (int32_t level) |
| | This method can be used to turn up or down FFmpeg's logging level.
|
| void | set_logging_level (const std::string &level) |
| | Like.
|
| void | dumpBinaryBuffer (uint8_t *buffer, int buffer_size, int width=16) |
| | dump_binary_buffer Dump binary buffer to std out in HEX view
|
| std::string | error2string (int error) |
| | C++ verstion of the av_err2str().
|
| std::string_view | wrap2sview (const char *value) noexcept |
| | Wraps a nullable C string into a string_view without copying.
|
| template<typename T> |
| std::unique_ptr< T, void(*)(void *)> | malloc (size_t size) |
| | Allocate memory with the FFmpeg allocator.
|
| template<typename T> |
| std::unique_ptr< T, void(*)(void *)> | mallocz (size_t size) |
| | Allocate zeroed memory with the FFmpeg allocator.
|
| template<typename T> |
| std::unique_ptr< T, void(*)(void *)> | memdup (const void *p, size_t size) |
| | Copy a memory block using the FFmpeg allocator.
|
| std::unique_ptr< char, void(*)(void *)> | strdup (std::string_view value) |
| | Duplicates a string using the FFmpeg allocator.
|
| template<typename T> |
| void | freep (T *&ptr) noexcept |
| | Frees a buffer allocated by the FFmpeg allocator and resets the pointer.
|
| template<class U> |
| auto | make_array_view_size (auto *ptr, std::size_t size) |
| | Helper to create array view with well-known size.
|
| template<class U> |
| auto | make_array_view_until (auto *ptr, auto value) |
| | Helper to create array view with end marker.
|
template<typename T, typename L>
requires std::ranges::range<L> && requires(L& r) { std::ranges::empty(r); } |
| T | guessValue (const T &value, L list) |
| | Select more approptiate value from given value list.
|
| template<typename T, typename L, typename C> |
| T | guessValue (const T &value, const L *list, C endListComparator) |
| | Select more approptiate value from given value list.
|
| template<typename T, typename Container> |
| void | array_to_container (const T *array, std::size_t nelements, Container &container) |
| | Append a fixed number of array elements to a container.
|
| template<typename T, typename Container, typename Callable> |
| void | array_to_container (const T *array, std::size_t nelements, Container &container, Callable convert) |
| | Append converted array elements to a container.
|
| template<typename T, typename Container, typename Compare> |
| void | array_to_container (const T *array, Container &container, Compare isEnd) |
| | Append elements until the predicate reports the end of the list.
|
| template<typename T, typename Container, typename Compare, typename Callable> |
| void | array_to_container (const T *array, Container &container, Compare isEnd, Callable convert) |
| | Append converted elements until the predicate reports the end of the list.
|
| void | hex_dump (FILE *f, const uint8_t *buf, std::size_t size) |
| | Write a hexadecimal dump of a buffer to a C stream.
|
| void | hex_dump_log (void *avcl, int level, const uint8_t *buf, std::size_t size) |
| | Write a hexadecimal dump of a buffer through the FFmpeg log system.
|
| void | hex_dump (FILE *f, std::span< const uint8_t > buf) |
| | Write a hexadecimal dump of a span to a C stream.
|
| void | hex_dump_log (void *avcl, int level, std::span< const uint8_t > buf) |
| | Write a hexadecimal dump of a span through the FFmpeg log system.
|
| std::string | channel_name (AVChannel channel) |
| | Name of a speaker position.
|
| std::string | channel_description (AVChannel channel) |
| | Human-readable description of a speaker position.
|
| AVChannel | channel_from_string (const std::string &name) |
| | Look a speaker position up by name.
|
| AVChannel | channel_from_string (const char *name) |
| | Look a speaker position up by a C string name.
|
| Codec | findEncodingCodec (AVCodecID id) |
| | Find an encoder by codec identifier.
|
| Codec | findEncodingCodec (const std::string &name) |
| | Find an encoder by name.
|
| Codec | findDecodingCodec (AVCodecID id) |
| | Find a decoder by codec identifier.
|
| Codec | findDecodingCodec (const std::string &name) |
| | Find a decoder by name.
|
| Codec | findEncodingCodec (const OutputFormat &format, bool isVideo=true) |
| | Find the encoder a muxer uses when the caller does not choose one.
|
| Codec | guessEncodingCodec (OutputFormat format, const char *name, const char *url, const char *mime, AVMediaType mediaType) |
| | Guess the encoder for an output from its hints.
|
| OutputFormat | guessOutputFormat (const std::string &name, const std::string &url=std::string(), const std::string &mime=std::string()) |
| | Find the muxer FFmpeg would pick for this output.
|
| template<typename T> |
| auto | operator/ (T num, Rational value) -> std::enable_if_t< std::is_floating_point_v< T >||std::is_integral_v< T >, Rational > |
| | Divide a number by a rational.
|
| template<typename T> |
| auto | operator/ (Rational value, T num) -> std::enable_if_t< std::is_floating_point_v< T >||std::is_integral_v< T >, Rational > |
| | Divide a rational by a number.
|
| std::ostream & | operator<< (std::ostream &stream, const Rational &value) |
| | Print the rational as "numerator/denominator".
|
| std::istream & | operator>> (std::istream &stream, Rational &value) |
| | Read a rational written as "numerator/denominator".
|
| bool | operator> (const Timestamp &left, const Timestamp &right) noexcept |
| | Compare two timestamps, taking their time bases into account.
|
| bool | operator< (const Timestamp &left, const Timestamp &right) noexcept |
| | Compare two timestamps, taking their time bases into account.
|
| bool | operator== (const Timestamp &left, const Timestamp &right) noexcept |
| | Compare two timestamps, taking their time bases into account.
|
| bool | operator!= (const Timestamp &left, const Timestamp &right) noexcept |
| | Compare two timestamps.
|
| bool | operator>= (const Timestamp &left, const Timestamp &right) noexcept |
| | Compare two timestamps.
|
| bool | operator<= (const Timestamp &left, const Timestamp &right) noexcept |
| | Compare two timestamps.
|
| Timestamp | operator+ (const Timestamp &left, const Timestamp &right) noexcept |
| | Add two timestamps, aligning the time bases.
|
| Timestamp | operator- (const Timestamp &left, const Timestamp &right) noexcept |
| | Subtract two timestamps, aligning the time bases.
|
| Timestamp | operator* (const Timestamp &left, const Timestamp &right) noexcept |
| | Multiply two timestamps.
|
| Timestamp | operator/ (const Timestamp &left, const Timestamp &right) noexcept |
| | Divide two timestamps.
|
| std::ostream & | operator<< (std::ostream &ost, const Timestamp &ts) |
| | Print the timestamp as "value*timebase", or NO_PTS.
|
Every public type and function lives in av, usually as a thin RAII wrapper over the corresponding FFmpeg type. Wrappers do not copy data unless the documentation of the specific method says so; ownership and lifetime are stated per class and per method.
Call av::init() before anything else.