18#include "libavformat/avformat.h"
35 typename std::remove_pointer<
36 decltype(AVFormatContext::iformat)
38 >::value,
const T, T>::type;
83 const char*
name() const noexcept {
93 return RAW_GET(long_name,
nullptr);
167class InputFormat :
public Format<avcpp_format_const<AVInputFormat>>
173 InputFormat() =
default;
201class OutputFormat :
public Format<avcpp_format_const<AVOutputFormat>>
207 OutputFormat() =
default;
217 const std::string& url = std::string(),
218 const std::string& mime = std::string()) noexcept;
230 const
std::
string& url =
std::
string(),
231 const
std::
string& mime =
std::
string()) noexcept;
258 const
std::
string& url =
std::
string(),
259 const
std::
string& mime =
std::
string());
Codec descriptor.
Definition codec.h:32
FFmpeg types re-exported for the public API and small value wrappers.
#define RAW_GET(field, def)
Read an AVCodecContext-style field through a possibly empty raw pointer.
Definition ffmpeg.h:114
Root namespace of the library.
Definition audioresampler.h:19
typename std::conditional< std::is_const< typename std::remove_pointer< decltype(AVFormatContext::iformat) >::type >::value, const T, T >::type avcpp_format_const
Const or non-const FFmpeg format type, depending on the FFmpeg version.
Definition format.h:33
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.
class Codec FmtCodec
Forward declaration of av::Codec, so this header need not include it.
Definition format.h:41
Base for wrappers that own a pointer to an FFmpeg object.
Definition ffmpeg.h:38
void reset(T *raw=nullptr)
Replace the stored pointer.
Definition ffmpeg.h:71
T * m_raw
The wrapped pointer; owned by the derived class, not by this template.
Definition ffmpeg.h:105
FFWrapperPtr()=default
Create an empty wrapper; isNull() is true.