avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Namespaces | Macros | Functions
frame.cpp File Reference
#include "frame.h"
#include <libavutil/version.h>
#include <libavutil/imgutils.h>
#include <libavutil/avassert.h>
Include dependency graph for frame.cpp:

Namespaces

 av
 
 av::frame
 
 av::frame::priv
 

Macros

#define CHECK_CHANNELS_CONSISTENCY(frame)
 
#define FRAME_SWAP(x)   swap(x, other.x)
 

Functions

void av::frame::priv::channel_layout_copy (AVFrame &dst, const AVFrame &src)
 
int64_t av::frame::get_best_effort_timestamp (const AVFrame *frame)
 
uint64_t av::frame::get_channel_layout (const AVFrame *frame)
 
void av::frame::set_channel_layout (AVFrame *frame, uint64_t layout)
 
static int av::frame::get_channels (const AVFrame *frame)
 
static bool av::frame::is_valid_channel_layout (const AVFrame *frame)
 
static int av::frame::get_sample_rate (const AVFrame *frame)
 
static void av::frame::set_sample_rate (AVFrame *frame, int sampleRate)
 
template<typename LookupProc >
static PixelFormat av::adjustJpegPixelFormat (AVFrame *frame, LookupProc &&proc)
 

Macro Definition Documentation

◆ CHECK_CHANNELS_CONSISTENCY

#define CHECK_CHANNELS_CONSISTENCY (   frame)
Value:
av_assert2(!(frame)->channel_layout || \
(frame)->channels == \
av_get_channel_layout_nb_channels((frame)->channel_layout))

◆ FRAME_SWAP

#define FRAME_SWAP (   x)    swap(x, other.x)