avcpp 3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
format.h File Reference

Input and output format descriptors.

#include <memory>
#include <string>
#include "ffmpeg.h"
#include "libavformat/avformat.h"

Go to the source code of this file.

Classes

struct  av::Format< T >
 Common interface of input and output format descriptors. More...
class  av::InputFormat
 Demuxer descriptor. More...
class  av::OutputFormat
 Muxer descriptor. More...

Namespaces

namespace  av
 Root namespace of the library.

Typedefs

template<typename T>
using av::avcpp_format_const
 Const or non-const FFmpeg format type, depending on the FFmpeg version.
using av::FmtCodec = class Codec
 Forward declaration of av::Codec, so this header need not include it.

Functions

bool av::internal::codec_supported (const AVCodecTag *const *codecTag, const FmtCodec &codec)
 Whether a codec tag table can carry a codec.
bool av::internal::codec_supported (const AVCodecTag *const *codecTag, AVCodecID codec_id)
 Whether a codec tag table can carry a codec identifier.
OutputFormat av::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.

Function Documentation

◆ codec_supported() [1/2]

bool av::internal::codec_supported ( const AVCodecTag *const * codecTag,
AVCodecID codec_id )
Parameters
codecTagthe muxer's tag table
codec_idthe AV_CODEC_ID_* value to test
Returns
true when the table has a tag for the codec

◆ codec_supported() [2/2]

bool av::internal::codec_supported ( const AVCodecTag *const * codecTag,
const FmtCodec & codec )
Parameters
codecTagthe muxer's tag table
codecthe codec to test
Returns
true when the table has a tag for the codec