Audacity 3.2.0
Functions
AVCodecFunctionsLoader.cpp File Reference
#include "AVCodecFunctionsLoader.h"
#include <wx/dynlib.h>
#include "AVCodecFunctions.h"
#include "impl/DynamicLibraryHelpers.h"
Include dependency graph for AVCodecFunctionsLoader.cpp:

Go to the source code of this file.

Functions

bool LoadAVCodecFunctions (const wxDynamicLibrary &lib, AVCodecFunctions &functions)
 

Function Documentation

◆ LoadAVCodecFunctions()

bool LoadAVCodecFunctions ( const wxDynamicLibrary &  lib,
AVCodecFunctions functions 
)

Definition at line 19 of file AVCodecFunctionsLoader.cpp.

21{
35
41 // Missing in FFmpeg 59
47 // New decoding API
52
53 return GetAVVersion(lib, "avcodec_version", functions.AVCodecVersion);
54}
bool GetAVVersion(const wxDynamicLibrary &lib, const char *name, FFMPegVersion &version)
#define RESOLVE(name)
Requires the named function to be found in the library, else load fails.
#define GET_SYMBOL(name)
Does not require the named function to be found in the library.
int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options)
AVCodec * avcodec_find_decoder(enum AVCodecID id)
int av_codec_is_encoder(const AVCodec *codec)
AVCodec * avcodec_find_encoder_by_name(const char *name)
AVCodec * av_codec_next(const AVCodec *c)
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
void av_packet_unref(AVPacket *pkt)
int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels, enum AVSampleFormat sample_fmt, const uint8_t *buf, int buf_size, int align)
int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, const AVPacket *avpkt)
int avcodec_is_open(AVCodecContext *s)
int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
const char * avcodec_get_name(enum AVCodecID id)
void av_init_packet(AVPacket *pkt)
int av_packet_ref(AVPacket *dst, const AVPacket *src)
AVCodec * avcodec_find_encoder(enum AVCodecID id)
void avcodec_register_all(void)
int avcodec_close(AVCodecContext *avctx)
void avcodec_free_context(AVCodecContext **avctx)
int avcodec_parameters_from_context(AVCodecParameters *par, const AVCodecContext *codec)
void av_packet_free(AVPacket **pkt)
int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)
int avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt)
int avcodec_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)
int avcodec_send_frame(AVCodecContext *avctx, const AVFrame *frame)
int avcodec_parameters_to_context(AVCodecContext *codec, const AVCodecParameters *par)
AVPacket * av_packet_alloc(void)
const AVCodec * av_codec_iterate(void **opaque)
FFMPegVersion AVCodecVersion

References av_codec_is_encoder(), av_codec_iterate(), av_codec_next(), av_init_packet(), av_packet_alloc(), av_packet_free(), av_packet_ref(), av_packet_unref(), avcodec_alloc_context3(), avcodec_close(), avcodec_decode_audio4(), avcodec_encode_audio2(), avcodec_fill_audio_frame(), avcodec_find_decoder(), avcodec_find_encoder(), avcodec_find_encoder_by_name(), avcodec_free_context(), avcodec_get_name(), avcodec_is_open(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_receive_frame(), avcodec_receive_packet(), avcodec_register_all(), avcodec_send_frame(), avcodec_send_packet(), AVCodecFunctions::AVCodecVersion, GET_SYMBOL, GetAVVersion(), and RESOLVE.

Referenced by FFmpegFunctions::Private::Load().

Here is the call graph for this function:
Here is the caller graph for this function: