avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Classes | Namespaces | Macros | Functions | Variables
avutils.h File Reference
#include "avconfig.h"
#include <ranges>
#include <string>
#include <vector>
#include <deque>
#include <memory>
#include <mutex>
#include <sstream>
#include <algorithm>
#include <functional>
#include <type_traits>
#include "ffmpeg.h"
#include "avtime.h"
Include dependency graph for avutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  av::noncopyable
 
struct  av::EmptyDeleter
 
struct  av::v1::AvDeleter
 
struct  av::v2::SmartDeleter
 
class  av::ScopedValue< T, V >
 Functor to take next element in list/array. More...
 
class  av::ScopeOutAction
 The ScopeOutAction class - guard-type class that allows points callback that will be called at the scope out. More...
 
struct  av::EqualComparator< T >
 

Namespaces

 av
 
 av::v1
 The AvDeleter struct Unified delete functor for variois FFMPEG/libavformat/libavcodec and so on resource allocators.
 
 av::v2
 

Macros

#define setFFmpegLoggingLevel   set_logging_level
 

Functions

template<typename R , typename T >
av::lexical_cast (const T &v)
 
void av::set_logging_level (int32_t level)
 This method can be used to turn up or down FFmpeg's logging level. More...
 
void av::set_logging_level (const std::string &level)
 Like. More...
 
void av::dumpBinaryBuffer (uint8_t *buffer, int buffer_size, int width=16)
 dump_binary_buffer Dump binary buffer to std out in HEX view More...
 
string av::error2string (int error)
 C++ verstion of the av_err2str() More...
 
template<typename T >
std::unique_ptr< T, void(*)(void *)> av::malloc (size_t size)
 
template<typename T >
std::unique_ptr< T, void(*)(void *)> av::mallocz (size_t size)
 
template<typename T >
std::unique_ptr< T, void(*)(void *)> av::memdup (const void *p, size_t size)
 
template<typename T , typename L , typename C >
av::guessValue (const T &value, const L *list, C endListComparator)
 Select more approptiate value from given value list. More...
 
template<typename T , typename Container >
void av::array_to_container (const T *array, std::size_t nelements, Container &container)
 
template<typename T , typename Container , typename Callable >
void av::array_to_container (const T *array, std::size_t nelements, Container &container, Callable convert)
 
template<typename T , typename Container , typename Compare >
void av::array_to_container (const T *array, Container &container, Compare isEnd)
 
template<typename T , typename Container , typename Compare , typename Callable >
void av::array_to_container (const T *array, Container &container, Compare isEnd, Callable convert)
 
void av::hex_dump (FILE *f, const uint8_t *buf, std::size_t size)
 
void av::hex_dump_log (void *avcl, int level, const uint8_t *buf, std::size_t size)
 

Variables

constexpr auto av::NoPts = static_cast<int64_t>(AV_NOPTS_VALUE)
 
constexpr auto av::TimeBase = static_cast<int>(AV_TIME_BASE)
 
constexpr auto av::TimeBaseQ = AVRational{1, AV_TIME_BASE}
 

Macro Definition Documentation

◆ setFFmpegLoggingLevel

#define setFFmpegLoggingLevel   set_logging_level