avcpp 3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
av::hw::CodecRange Class Reference

Non-owning range over codecs found with av_codec_iterate().

#include <hwcontext.h>

Classes

class  iterator
 Forward iterator over the codecs FFmpeg was built with. More...

Public Member Functions

 CodecRange ()=default
 Create an empty range.
 CodecRange (AVCodecID id, DeviceType type, bool encoders) noexcept
 Describe the codecs to iterate.
iterator begin () const
 First matching codec.
iterator end () const
 End of the range.

Constructor & Destructor Documentation

◆ CodecRange()

av::hw::CodecRange::CodecRange ( AVCodecID id,
DeviceType type,
bool encoders )
inlinenoexcept
Parameters
idcodec identifier filter, or AV_CODEC_ID_NONE for any
typedevice type the codec must support
encoderstrue for encoders, false for decoders

Member Function Documentation

◆ begin()

iterator av::hw::CodecRange::begin ( ) const
inline
Returns
an iterator at the first match

◆ end()

iterator av::hw::CodecRange::end ( ) const
inline
Returns
the past-the-end iterator

The documentation for this class was generated from the following file: