avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Classes | Namespaces | Enumerations | Functions
averror.h File Reference
#include <system_error>
#include <exception>
Include dependency graph for averror.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  av::OptionalErrorCode
 
class  av::Exception
 The AvException class Default exception that thows from function that does not accept error code storage. More...
 
class  av::AvcppCategory
 The AvcppCategory class Describes internal AvCpp errors. More...
 
class  av::FfmpegCategory
 The FfmpegCategory class Describers FFmpeg internal errors. More...
 
struct  std::is_error_condition_enum< av::Errors >
 

Namespaces

 av
 
 std
 

Enumerations

enum class  av::Errors {
  av::NoError = 0 , av::Generic , av::Unallocated , av::InvalidArgument ,
  av::OutOfRange , av::CantAllocateFrame , av::CodecStreamInvalid , av::CodecInvalidDirection ,
  av::CodecAlreadyOpened , av::CodecIsNotOpened , av::CodecInvalid , av::CodecNotOpened ,
  av::CodecInvalidDecodeProc , av::CodecInvalidEncodeProc , av::CodecDecodingOffsetToLarge , av::CodecInvalidForEncode ,
  av::CodecInvalidForDecoce , av::CodecInvalidMediaType , av::FrameInvalid , av::DictOutOfRage ,
  av::DictNoKey , av::FormatCantAddStream , av::FormatAlreadyOpened , av::FormatNullOutputFormat ,
  av::FormatWrongCountOfStreamOptions , av::FormatNoStreams , av::FormatInvalidStreamIndex , av::FormatNotOpened ,
  av::FormatInvalidDirection , av::FormatHeaderNotWriten , av::FormatCodecUnsupported , av::ResamplerInvalidParameters ,
  av::ResamplerNotInited , av::ResamplerInputChanges , av::ResamplerOutputChanges , av::RescalerInvalidParameters ,
  av::RescalerInternalSwsError , av::FilterNotInFilterGraph , av::FilterGraphDescriptionEmpty , av::IncorrectBufferSrcFilter ,
  av::IncorrectBufferSrcMediaType , av::IncorrectBufferSinkFilter , av::IncorrectBufferSinkMediaType , av::MixBufferSinkAccess
}
 

Functions

const AvcppCategory & av::avcpp_category ()
 
FfmpegCategory & av::ffmpeg_category ()
 
std::error_condition av::make_error_condition (av::Errors errc) noexcept
 
std::error_code av::make_error_code (av::Errors errc) noexcept
 
std::error_code av::make_avcpp_error (Errors code)
 
std::error_condition av::make_avcpp_condition (Errors code)
 
std::error_code av::make_ffmpeg_error (int code)
 
std::error_condition av::make_ffmpeg_condition (int code)
 
template<typename Exception = av::Exception>
void av::throw_error_code (const std::error_code &ec)
 
template<typename Exception = av::Exception>
void av::throw_error_code (Errors errc)
 
OptionalErrorCode av::throws ()
 Helper to construct null OptionalErrorCode object. More...
 
template<typename Category , typename Exception = av::Exception>
void av::throws_if (OptionalErrorCode ec, int errcode, const Category &cat)
 Throws exception if ec is av::throws() or fill error code. More...
 
template<typename T , typename Exception = av::Exception>
void av::throws_if (OptionalErrorCode ec, T errcode)
 
void av::clear_if (OptionalErrorCode ec)
 clear_if - clear error code if it is not av::throws() More...
 
bool av::is_error (OptionalErrorCode ec)