Audacity
3.2.0
modules
import-export
mod-ffmpeg
lib-ffmpeg-support
impl
avformat
AVFormatFunctionsLoader.cpp
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
AVFormatFunctionsLoader.cpp
6
7
Dmitry Vedenko
8
9
**********************************************************************/
10
11
#include "
AVFormatFunctionsLoader.h
"
12
13
#include <wx/dynlib.h>
14
15
#include "
AVFormatFunctions.h
"
16
#include "
impl/DynamicLibraryHelpers.h
"
17
18
19
bool
LoadAVFormatFunctions
(
20
const
wxDynamicLibrary& lib,
AVFormatFunctions
& functions)
21
{
22
RESOLVE
(
avformat_find_stream_info
);
23
RESOLVE
(
av_read_frame
);
24
RESOLVE
(
av_seek_frame
);
25
RESOLVE
(
avformat_close_input
);
26
RESOLVE
(
avformat_write_header
);
27
RESOLVE
(
av_interleaved_write_frame
);
28
RESOLVE
(
avformat_new_stream
);
29
RESOLVE
(
avformat_alloc_context
);
30
RESOLVE
(
av_write_trailer
);
31
RESOLVE
(
av_codec_get_tag
);
32
RESOLVE
(
avformat_open_input
);
33
RESOLVE
(
avio_size
);
34
RESOLVE
(
avio_alloc_context
);
35
RESOLVE
(
av_guess_format
);
36
RESOLVE
(
avformat_free_context
);
37
38
GET_SYMBOL
(
av_oformat_next
);
39
GET_SYMBOL
(
av_register_all
);
40
GET_SYMBOL
(
avio_context_free
);
41
GET_SYMBOL
(
av_muxer_iterate
);
42
43
return
GetAVVersion
(lib,
"avformat_version"
, functions.
AVFormatVersion
);
44
}
AVFormatFunctions.h
LoadAVFormatFunctions
bool LoadAVFormatFunctions(const wxDynamicLibrary &lib, AVFormatFunctions &functions)
Definition:
AVFormatFunctionsLoader.cpp:19
AVFormatFunctionsLoader.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
avformat_open_input
int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputFormat *fmt, AVDictionary **options)
av_codec_get_tag
unsigned int av_codec_get_tag(const struct AVCodecTag *const *tags, enum AVCodecID id)
avio_alloc_context
AVIOContext * avio_alloc_context(unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int(*read_packet)(void *opaque, uint8_t *buf, int buf_size), int(*write_packet)(void *opaque, uint8_t *buf, int buf_size), int64_t(*seek)(void *opaque, int64_t offset, int whence))
av_interleaved_write_frame
int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)
avio_size
int64_t avio_size(AVIOContext *s)
av_read_frame
int av_read_frame(AVFormatContext *s, AVPacket *pkt)
avformat_write_header
int avformat_write_header(AVFormatContext *s, AVDictionary **options)
av_write_trailer
int av_write_trailer(AVFormatContext *s)
avformat_new_stream
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
av_oformat_next
AVOutputFormat * av_oformat_next(AVOutputFormat *f)
av_register_all
void av_register_all(void)
av_seek_frame
int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
avformat_alloc_context
AVFormatContext * avformat_alloc_context(void)
avformat_free_context
void avformat_free_context(AVFormatContext *s)
av_guess_format
AVOutputFormat * av_guess_format(const char *short_name, const char *filename, const char *mime_type)
avformat_find_stream_info
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
avformat_close_input
void avformat_close_input(AVFormatContext **s)
avio_context_free
void avio_context_free(AVIOContext **s)
av_muxer_iterate
const AVOutputFormat * av_muxer_iterate(void **opaque)
AVFormatFunctions
Definition:
AVFormatFunctions.h:18
AVFormatFunctions::AVFormatVersion
FFMPegVersion AVFormatVersion
Definition:
AVFormatFunctions.h:19
Generated by
1.9.3