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  av::Errors {
  av::Errors::NoError = 0, av::Errors::Generic, av::Errors::Unallocated, av::Errors::InvalidArgument,
  av::Errors::OutOfRange, av::Errors::CantAllocateFrame, av::Errors::CodecStreamInvalid, av::Errors::CodecInvalidDirection,
  av::Errors::CodecAlreadyOpened, av::Errors::CodecIsNotOpened, av::Errors::CodecInvalid, av::Errors::CodecNotOpened,
  av::Errors::CodecInvalidDecodeProc, av::Errors::CodecInvalidEncodeProc, av::Errors::CodecDecodingOffsetToLarge, av::Errors::CodecInvalidForEncode,
  av::Errors::CodecInvalidForDecoce, av::Errors::CodecInvalidMediaType, av::Errors::FrameInvalid, av::Errors::DictOutOfRage,
  av::Errors::DictNoKey, av::Errors::FormatCantAddStream, av::Errors::FormatAlreadyOpened, av::Errors::FormatNullOutputFormat,
  av::Errors::FormatWrongCountOfStreamOptions, av::Errors::FormatNoStreams, av::Errors::FormatInvalidStreamIndex, av::Errors::FormatNotOpened,
  av::Errors::FormatInvalidDirection, av::Errors::FormatHeaderNotWriten, av::Errors::FormatCodecUnsupported, av::Errors::ResamplerInvalidParameters,
  av::Errors::ResamplerNotInited, av::Errors::ResamplerInputChanges, av::Errors::ResamplerOutputChanges, av::Errors::RescalerInvalidParameters,
  av::Errors::RescalerInternalSwsError, av::Errors::FilterNotInFilterGraph, av::Errors::FilterGraphDescriptionEmpty, av::Errors::IncorrectBufferSrcFilter,
  av::Errors::IncorrectBufferSrcMediaType, av::Errors::IncorrectBufferSinkFilter, av::Errors::IncorrectBufferSinkMediaType, av::Errors::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)