Audacity
3.2.0
modules
import-export
mod-ffmpeg
lib-ffmpeg-support
impl
avutil
AVUtilFunctionsLoader.cpp
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
AVUtilFunctionLoader.cpp
6
7
Dmitry Vedenko
8
9
**********************************************************************/
10
11
#include "
AVUtilFunctionsLoader.h
"
12
13
#include <wx/dynlib.h>
14
15
#include "
AVUtilFunctions.h
"
16
#include "
impl/DynamicLibraryHelpers.h
"
17
18
19
bool
LoadAVUtilFunctions
(
20
const
wxDynamicLibrary& lib,
AVUtilFunctions
& functions)
21
{
22
RESOLVE
(
av_malloc
);
23
RESOLVE
(
av_free
);
24
RESOLVE
(
av_strdup
);
25
RESOLVE
(
av_dict_free
);
26
RESOLVE
(
av_dict_get
);
27
RESOLVE
(
av_dict_set
);
28
RESOLVE
(
av_dict_copy
);
29
RESOLVE
(
av_get_bytes_per_sample
);
30
RESOLVE
(
av_log_set_callback
);
31
RESOLVE
(
av_log_default_callback
);
32
33
RESOLVE
(
av_rescale_q
);
34
RESOLVE
(
av_frame_alloc
);
35
RESOLVE
(
av_frame_free
);
36
RESOLVE
(
av_samples_get_buffer_size
);
37
RESOLVE
(
av_strerror
);
38
39
GET_SYMBOL
(
av_get_default_channel_layout
);
40
GET_SYMBOL
(
av_channel_layout_default
);
41
42
return
GetAVVersion
(lib,
"avutil_version"
, functions.
AVUtilVersion
);
43
}
AVUtilFunctions.h
LoadAVUtilFunctions
bool LoadAVUtilFunctions(const wxDynamicLibrary &lib, AVUtilFunctions &functions)
Definition:
AVUtilFunctionsLoader.cpp:19
AVUtilFunctionsLoader.h
GetAVVersion
bool GetAVVersion(const wxDynamicLibrary &lib, const char *name, FFMPegVersion &version)
Definition:
DynamicLibraryHelpers.cpp:19
DynamicLibraryHelpers.h
RESOLVE
#define RESOLVE(name)
Requires the named function to be found in the library, else load fails.
Definition:
DynamicLibraryHelpers.h:19
GET_SYMBOL
#define GET_SYMBOL(name)
Does not require the named function to be found in the library.
Definition:
DynamicLibraryHelpers.h:17
av_get_bytes_per_sample
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt)
av_free
void av_free(void *ptr)
av_log_set_callback
void av_log_set_callback(void(*callback)(void *, int, const char *, va_list))
av_dict_free
void av_dict_free(AVDictionary **m)
av_dict_get
AVDictionaryEntry * av_dict_get(FF_CONST_AVUTIL53 AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
av_strerror
int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
av_log_default_callback
void av_log_default_callback(void *avcl, int level, const char *fmt, va_list vl)
av_strdup
char * av_strdup(const char *s) av_malloc_attrib
av_dict_set
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
av_frame_free
void av_frame_free(AVFrame **frame)
av_samples_get_buffer_size
int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples, enum AVSampleFormat sample_fmt, int align)
av_malloc
void * av_malloc(size_t size) av_malloc_attrib av_alloc_size(1)
av_frame_alloc
AVFrame * av_frame_alloc(void)
av_dict_copy
void av_dict_copy(AVDictionary **dst, FF_CONST_AVUTIL53 AVDictionary *src, int flags)
av_get_default_channel_layout
int64_t av_get_default_channel_layout(int nb_channels)
av_rescale_q
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const
av_channel_layout_default
void av_channel_layout_default(AVChannelLayout *ch_layout, int nb_channels)
AVUtilFunctions
Definition:
AVUtilFunctions.h:19
AVUtilFunctions::AVUtilVersion
FFMPegVersion AVUtilVersion
Definition:
AVUtilFunctions.h:20
Generated by
1.9.3