Audacity 3.2.0
59/AVCodecImpl.cpp
Go to the documentation of this file.
1extern "C"
2{
3#include "../../avutil/57/avconfig.h"
4#include "../../ffmpeg-5.0.1-single-header.h"
5}
6
7#include <cstring>
8#include <numeric>
9
10#include "float_cast.h"
11
12#include "FFmpegFunctions.h"
13
17
18#include "../../FFmpegAPIResolver.h"
19
20namespace avcodec_59
21{
22#include "../AVCodecContextWrapperImpl.inl"
23#include "../AVCodecWrapperImpl.inl"
24#include "../AVPacketWrapperImpl.inl"
25
26const bool registered = ([]() {
28 &CreateAVCodecContextWrapper,
29 &CreateAVCodecContextWrapperFromCodec,
30 &CreateAVCodecWrapper,
31 &CreateAVPacketWrapper,
32 });
33
34 return true;
35})();
36}
37
38#include "FFmpegTypes.h"
39static_assert(
43,
44 "FFmpeg constants don't match"
45);
46
#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 AV_CODEC_FLAG_QSCALE
#define AV_CODEC_FLAG_GLOBAL_HEADER
#define AV_CODEC_CAP_SMALL_LAST_FRAME
const bool registered