Audacity 3.2.0
55/AVCodecImpl.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 AVCodecImpl.cpp
6
7 Dmitry Vedenko
8
9**********************************************************************/
10
11extern "C"
12{
13#include "../../avutil/52/avconfig.h"
14#include "../../ffmpeg-2.3.6-single-header.h"
15}
16
17#include <cstring>
18#include <numeric>
19
20#include "float_cast.h"
21
22#include "FFmpegFunctions.h"
23
27
28#include "../../FFmpegAPIResolver.h"
29
30namespace avcodec_55
31{
32#include "../AVCodecContextWrapperImpl.inl"
33#include "../AVCodecWrapperImpl.inl"
34#include "../AVPacketWrapperImpl.inl"
35
36const bool registered = ([]() {
38 &CreateAVCodecContextWrapper,
39 &CreateAVCodecContextWrapperFromCodec,
40 &CreateAVCodecWrapper,
41 &CreateAVPacketWrapper,
42 });
43
44 return true;
45})();
46}
47
48#include "FFmpegTypes.h"
49static_assert(
53,
54 "FFmpeg constants don't match"
55);
56
#define AUDACITY_AV_CODEC_CAP_SMALL_LAST_FRAME
Definition: FFmpegTypes.h:84
#define AUDACITY_AV_CODEC_FLAG_GLOBAL_HEADER
Definition: FFmpegTypes.h:115
#define AUDACITY_AV_CODEC_FLAG_QSCALE
Definition: FFmpegTypes.h:82
void AddAVCodecFactories(int avCodecVersion, const AVCodecFactories &factories)
static FFmpegAPIResolver & Get()
#define CODEC_CAP_SMALL_LAST_FRAME
#define CODEC_FLAG_GLOBAL_HEADER
#define CODEC_FLAG_QSCALE
const bool registered