Audacity 3.2.0
AVCodecFunctionsLoader.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 AVCodecFunctionsLoaders.cpp
6
7 Dmitry Vedenko
8
9**********************************************************************/
10
12
13#include <wx/dynlib.h>
14
15#include "AVCodecFunctions.h"
17
18
20 const wxDynamicLibrary& lib, AVCodecFunctions& functions)
21{
35
41 // Missing in FFmpeg 59
47 // New decoding API
52
53 return GetAVVersion(lib, "avcodec_version", functions.AVCodecVersion);
54}
bool LoadAVCodecFunctions(const wxDynamicLibrary &lib, AVCodecFunctions &functions)
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