-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathavutil_shim.h
87 lines (80 loc) · 5.55 KB
/
avutil_shim.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include <errno.h>
#include <stddef.h>
#include <libavutil/avutil.h>
#include <libavutil/common.h>
#include <libavutil/error.h>
#include <libavutil/opt.h>
#include <libavutil/timestamp.h>
#include <libavutil/pixdesc.h>
#include <libavutil/imgutils.h>
#include <libavutil/channel_layout.h>
const int64_t swift_AV_NOPTS_VALUE = AV_NOPTS_VALUE;
/* Audio channel layout */
const uint64_t swift_AV_CH_LAYOUT_NATIVE = AV_CH_LAYOUT_NATIVE;
const uint64_t swift_AV_CH_LAYOUT_MONO = AV_CH_LAYOUT_MONO;
const uint64_t swift_AV_CH_LAYOUT_STEREO = AV_CH_LAYOUT_STEREO;
const uint64_t swift_AV_CH_LAYOUT_2POINT1 = AV_CH_LAYOUT_2POINT1;
const uint64_t swift_AV_CH_LAYOUT_2_1 = AV_CH_LAYOUT_2_1;
const uint64_t swift_AV_CH_LAYOUT_SURROUND = AV_CH_LAYOUT_SURROUND;
const uint64_t swift_AV_CH_LAYOUT_3POINT1 = AV_CH_LAYOUT_3POINT1;
const uint64_t swift_AV_CH_LAYOUT_4POINT0 = AV_CH_LAYOUT_4POINT0;
const uint64_t swift_AV_CH_LAYOUT_4POINT1 = AV_CH_LAYOUT_4POINT1;
const uint64_t swift_AV_CH_LAYOUT_2_2 = AV_CH_LAYOUT_2_2;
const uint64_t swift_AV_CH_LAYOUT_QUAD = AV_CH_LAYOUT_QUAD;
const uint64_t swift_AV_CH_LAYOUT_5POINT0 = AV_CH_LAYOUT_5POINT0;
const uint64_t swift_AV_CH_LAYOUT_5POINT1 = AV_CH_LAYOUT_5POINT1;
const uint64_t swift_AV_CH_LAYOUT_5POINT0_BACK = AV_CH_LAYOUT_5POINT0_BACK;
const uint64_t swift_AV_CH_LAYOUT_5POINT1_BACK = AV_CH_LAYOUT_5POINT1_BACK;
const uint64_t swift_AV_CH_LAYOUT_6POINT0 = AV_CH_LAYOUT_6POINT0;
const uint64_t swift_AV_CH_LAYOUT_6POINT0_FRONT = AV_CH_LAYOUT_6POINT0_FRONT;
const uint64_t swift_AV_CH_LAYOUT_HEXAGONAL = AV_CH_LAYOUT_HEXAGONAL;
const uint64_t swift_AV_CH_LAYOUT_6POINT1 = AV_CH_LAYOUT_6POINT1;
const uint64_t swift_AV_CH_LAYOUT_6POINT1_BACK = AV_CH_LAYOUT_6POINT1_BACK;
const uint64_t swift_AV_CH_LAYOUT_6POINT1_FRONT = AV_CH_LAYOUT_6POINT1_FRONT;
const uint64_t swift_AV_CH_LAYOUT_7POINT0 = AV_CH_LAYOUT_7POINT0;
const uint64_t swift_AV_CH_LAYOUT_7POINT0_FRONT = AV_CH_LAYOUT_7POINT0_FRONT;
const uint64_t swift_AV_CH_LAYOUT_7POINT1 = AV_CH_LAYOUT_7POINT1;
const uint64_t swift_AV_CH_LAYOUT_7POINT1_WIDE = AV_CH_LAYOUT_7POINT1_WIDE;
const uint64_t swift_AV_CH_LAYOUT_7POINT1_WIDE_BACK = AV_CH_LAYOUT_7POINT1_WIDE_BACK;
const uint64_t swift_AV_CH_LAYOUT_OCTAGONAL = AV_CH_LAYOUT_OCTAGONAL;
const uint64_t swift_AV_CH_LAYOUT_HEXADECAGONAL = AV_CH_LAYOUT_HEXADECAGONAL;
const uint64_t swift_AV_CH_LAYOUT_STEREO_DOWNMIX = AV_CH_LAYOUT_STEREO_DOWNMIX;
/* error handling */
static inline int swift_AVERROR(int errnum) {
return AVERROR(errnum);
}
static inline int swift_AVUNERROR(int errnum) {
return AVUNERROR(errnum);
}
const int swift_AVERROR_BSF_NOT_FOUND = AVERROR_BSF_NOT_FOUND; ///< Bitstream filter not found
const int swift_AVERROR_BUG = AVERROR_BUG; ///< Internal bug, also see AVERROR_BUG2
const int swift_AVERROR_BUFFER_TOO_SMALL = AVERROR_BUFFER_TOO_SMALL; ///< Buffer too small
const int swift_AVERROR_DECODER_NOT_FOUND = AVERROR_DECODER_NOT_FOUND; ///< Decoder not found
const int swift_AVERROR_DEMUXER_NOT_FOUND = AVERROR_DEMUXER_NOT_FOUND; ///< Demuxer not found
const int swift_AVERROR_ENCODER_NOT_FOUND = AVERROR_ENCODER_NOT_FOUND; ///< Encoder not found
const int swift_AVERROR_EOF = AVERROR_EOF; ///< End of file
const int swift_AVERROR_EXIT = AVERROR_EXIT; ///< Immediate exit was requested; the called function should not be restarted
const int swift_AVERROR_EXTERNAL = AVERROR_EXTERNAL; ///< Generic error in an external library
const int swift_AVERROR_FILTER_NOT_FOUND = AVERROR_FILTER_NOT_FOUND; ///< Filter not found
const int swift_AVERROR_INVALIDDATA = AVERROR_INVALIDDATA; ///< Invalid data found when processing input
const int swift_AVERROR_MUXER_NOT_FOUND = AVERROR_MUXER_NOT_FOUND; ///< Muxer not found
const int swift_AVERROR_OPTION_NOT_FOUND = AVERROR_OPTION_NOT_FOUND; ///< Option not found
const int swift_AVERROR_PATCHWELCOME = AVERROR_PATCHWELCOME; ///< Not yet implemented in FFmpeg, patches welcome
const int swift_AVERROR_PROTOCOL_NOT_FOUND = AVERROR_PROTOCOL_NOT_FOUND; ///< Protocol not found
const int swift_AVERROR_STREAM_NOT_FOUND = AVERROR_STREAM_NOT_FOUND; ///< Stream not found
/**
* This is semantically identical to AVERROR_BUG
* it has been introduced in Libav after our AVERROR_BUG and with a modified value.
*/
const int swift_AVERROR_BUG2 = AVERROR_BUG2;
const int swift_AVERROR_UNKNOWN = AVERROR_UNKNOWN; ///< Unknown error, typically from an external library
const int swift_AVERROR_EXPERIMENTAL = AVERROR_EXPERIMENTAL; ///< Requested feature is flagged experimental. Set strict_std_compliance if you really want to use it.
const int swift_AVERROR_INPUT_CHANGED = AVERROR_INPUT_CHANGED; ///< Input changed between calls. Reconfiguration is required. (can be OR-ed with AVERROR_OUTPUT_CHANGED)
const int swift_AVERROR_OUTPUT_CHANGED = AVERROR_OUTPUT_CHANGED; ///< Output changed between calls. Reconfiguration is required. (can be OR-ed with AVERROR_INPUT_CHANGED)
/* HTTP & RTSP errors */
const int swift_AVERROR_HTTP_BAD_REQUEST = AVERROR_HTTP_BAD_REQUEST;
const int swift_AVERROR_HTTP_UNAUTHORIZED = AVERROR_HTTP_UNAUTHORIZED;
const int swift_AVERROR_HTTP_FORBIDDEN = AVERROR_HTTP_FORBIDDEN;
const int swift_AVERROR_HTTP_NOT_FOUND = AVERROR_HTTP_NOT_FOUND;
const int swift_AVERROR_HTTP_OTHER_4XX = AVERROR_HTTP_OTHER_4XX;
const int swift_AVERROR_HTTP_SERVER_ERROR = AVERROR_HTTP_SERVER_ERROR;