@pproenca/ffmpeg-darwin-arm64 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +28 -0
- package/lib/libSvtAv1Enc.a +0 -0
- package/lib/libaom.a +0 -0
- package/lib/libavcodec.a +0 -0
- package/lib/libavdevice.a +0 -0
- package/lib/libavfilter.a +0 -0
- package/lib/libavformat.a +0 -0
- package/lib/libavutil.a +0 -0
- package/lib/libdav1d.a +0 -0
- package/lib/libogg.a +0 -0
- package/lib/libopus.a +0 -0
- package/lib/libswresample.a +0 -0
- package/lib/libswscale.a +0 -0
- package/lib/libvorbis.a +0 -0
- package/lib/libvorbisenc.a +0 -0
- package/lib/libvorbisfile.a +0 -0
- package/lib/libvpx.a +0 -0
- package/lib/pkgconfig/SvtAv1Enc.pc +12 -0
- package/lib/pkgconfig/aom.pc +14 -0
- package/lib/pkgconfig/dav1d.pc +9 -0
- package/lib/pkgconfig/libavcodec.pc +14 -0
- package/lib/pkgconfig/libavdevice.pc +14 -0
- package/lib/pkgconfig/libavfilter.pc +14 -0
- package/lib/pkgconfig/libavformat.pc +14 -0
- package/lib/pkgconfig/libavutil.pc +14 -0
- package/lib/pkgconfig/libswresample.pc +14 -0
- package/lib/pkgconfig/libswscale.pc +14 -0
- package/lib/pkgconfig/ogg.pc +14 -0
- package/lib/pkgconfig/opus.pc +16 -0
- package/lib/pkgconfig/vorbis.pc +15 -0
- package/lib/pkgconfig/vorbisenc.pc +14 -0
- package/lib/pkgconfig/vorbisfile.pc +14 -0
- package/lib/pkgconfig/vpx.pc +14 -0
- package/package.json +2 -3
- package/include/aom/aom.h +0 -127
- package/include/aom/aom_codec.h +0 -594
- package/include/aom/aom_decoder.h +0 -257
- package/include/aom/aom_encoder.h +0 -1154
- package/include/aom/aom_external_partition.h +0 -452
- package/include/aom/aom_frame_buffer.h +0 -84
- package/include/aom/aom_image.h +0 -462
- package/include/aom/aom_integer.h +0 -60
- package/include/aom/aomcx.h +0 -2288
- package/include/aom/aomdx.h +0 -607
- package/include/dav1d/common.h +0 -94
- package/include/dav1d/data.h +0 -117
- package/include/dav1d/dav1d.h +0 -329
- package/include/dav1d/headers.h +0 -444
- package/include/dav1d/picture.h +0 -157
- package/include/dav1d/version.h +0 -50
- package/include/libavcodec/ac3_parser.h +0 -36
- package/include/libavcodec/adts_parser.h +0 -37
- package/include/libavcodec/avcodec.h +0 -3128
- package/include/libavcodec/avdct.h +0 -88
- package/include/libavcodec/avfft.h +0 -149
- package/include/libavcodec/bsf.h +0 -332
- package/include/libavcodec/codec.h +0 -382
- package/include/libavcodec/codec_desc.h +0 -134
- package/include/libavcodec/codec_id.h +0 -669
- package/include/libavcodec/codec_par.h +0 -248
- package/include/libavcodec/d3d11va.h +0 -109
- package/include/libavcodec/defs.h +0 -337
- package/include/libavcodec/dirac.h +0 -135
- package/include/libavcodec/dv_profile.h +0 -82
- package/include/libavcodec/dxva2.h +0 -90
- package/include/libavcodec/jni.h +0 -67
- package/include/libavcodec/mediacodec.h +0 -103
- package/include/libavcodec/packet.h +0 -887
- package/include/libavcodec/qsv.h +0 -109
- package/include/libavcodec/vdpau.h +0 -171
- package/include/libavcodec/version.h +0 -45
- package/include/libavcodec/version_major.h +0 -52
- package/include/libavcodec/videotoolbox.h +0 -85
- package/include/libavcodec/vorbis_parser.h +0 -74
- package/include/libavdevice/avdevice.h +0 -397
- package/include/libavdevice/version.h +0 -45
- package/include/libavdevice/version_major.h +0 -43
- package/include/libavfilter/avfilter.h +0 -1379
- package/include/libavfilter/buffersink.h +0 -173
- package/include/libavfilter/buffersrc.h +0 -215
- package/include/libavfilter/version.h +0 -48
- package/include/libavfilter/version_major.h +0 -40
- package/include/libavformat/avformat.h +0 -3107
- package/include/libavformat/avio.h +0 -831
- package/include/libavformat/version.h +0 -47
- package/include/libavformat/version_major.h +0 -54
- package/include/libavutil/adler32.h +0 -63
- package/include/libavutil/aes.h +0 -69
- package/include/libavutil/aes_ctr.h +0 -99
- package/include/libavutil/ambient_viewing_environment.h +0 -72
- package/include/libavutil/attributes.h +0 -173
- package/include/libavutil/audio_fifo.h +0 -187
- package/include/libavutil/avassert.h +0 -78
- package/include/libavutil/avconfig.h +0 -6
- package/include/libavutil/avstring.h +0 -428
- package/include/libavutil/avutil.h +0 -362
- package/include/libavutil/base64.h +0 -72
- package/include/libavutil/blowfish.h +0 -82
- package/include/libavutil/bprint.h +0 -254
- package/include/libavutil/bswap.h +0 -105
- package/include/libavutil/buffer.h +0 -322
- package/include/libavutil/camellia.h +0 -70
- package/include/libavutil/cast5.h +0 -80
- package/include/libavutil/channel_layout.h +0 -751
- package/include/libavutil/common.h +0 -589
- package/include/libavutil/cpu.h +0 -145
- package/include/libavutil/crc.h +0 -102
- package/include/libavutil/csp.h +0 -150
- package/include/libavutil/des.h +0 -81
- package/include/libavutil/detection_bbox.h +0 -108
- package/include/libavutil/dict.h +0 -241
- package/include/libavutil/display.h +0 -109
- package/include/libavutil/dovi_meta.h +0 -396
- package/include/libavutil/downmix_info.h +0 -115
- package/include/libavutil/encryption_info.h +0 -205
- package/include/libavutil/error.h +0 -129
- package/include/libavutil/eval.h +0 -140
- package/include/libavutil/executor.h +0 -67
- package/include/libavutil/ffversion.h +0 -5
- package/include/libavutil/fifo.h +0 -242
- package/include/libavutil/file.h +0 -62
- package/include/libavutil/film_grain_params.h +0 -322
- package/include/libavutil/frame.h +0 -1175
- package/include/libavutil/hash.h +0 -264
- package/include/libavutil/hdr_dynamic_metadata.h +0 -376
- package/include/libavutil/hdr_dynamic_vivid_metadata.h +0 -346
- package/include/libavutil/hmac.h +0 -99
- package/include/libavutil/hwcontext.h +0 -598
- package/include/libavutil/hwcontext_cuda.h +0 -74
- package/include/libavutil/hwcontext_d3d11va.h +0 -178
- package/include/libavutil/hwcontext_d3d12va.h +0 -142
- package/include/libavutil/hwcontext_drm.h +0 -169
- package/include/libavutil/hwcontext_dxva2.h +0 -75
- package/include/libavutil/hwcontext_mediacodec.h +0 -61
- package/include/libavutil/hwcontext_opencl.h +0 -100
- package/include/libavutil/hwcontext_qsv.h +0 -87
- package/include/libavutil/hwcontext_vaapi.h +0 -117
- package/include/libavutil/hwcontext_vdpau.h +0 -44
- package/include/libavutil/hwcontext_videotoolbox.h +0 -106
- package/include/libavutil/hwcontext_vulkan.h +0 -382
- package/include/libavutil/iamf.h +0 -690
- package/include/libavutil/imgutils.h +0 -377
- package/include/libavutil/intfloat.h +0 -77
- package/include/libavutil/intreadwrite.h +0 -677
- package/include/libavutil/lfg.h +0 -81
- package/include/libavutil/log.h +0 -387
- package/include/libavutil/lzo.h +0 -66
- package/include/libavutil/macros.h +0 -80
- package/include/libavutil/mastering_display_metadata.h +0 -137
- package/include/libavutil/mathematics.h +0 -300
- package/include/libavutil/md5.h +0 -89
- package/include/libavutil/mem.h +0 -607
- package/include/libavutil/motion_vector.h +0 -57
- package/include/libavutil/murmur3.h +0 -115
- package/include/libavutil/opt.h +0 -1187
- package/include/libavutil/parseutils.h +0 -197
- package/include/libavutil/pixdesc.h +0 -440
- package/include/libavutil/pixelutils.h +0 -51
- package/include/libavutil/pixfmt.h +0 -716
- package/include/libavutil/random_seed.h +0 -57
- package/include/libavutil/rational.h +0 -225
- package/include/libavutil/rc4.h +0 -69
- package/include/libavutil/replaygain.h +0 -50
- package/include/libavutil/ripemd.h +0 -83
- package/include/libavutil/samplefmt.h +0 -269
- package/include/libavutil/sha.h +0 -90
- package/include/libavutil/sha512.h +0 -92
- package/include/libavutil/spherical.h +0 -243
- package/include/libavutil/stereo3d.h +0 -325
- package/include/libavutil/tea.h +0 -71
- package/include/libavutil/threadmessage.h +0 -115
- package/include/libavutil/time.h +0 -56
- package/include/libavutil/timecode.h +0 -199
- package/include/libavutil/timestamp.h +0 -85
- package/include/libavutil/tree.h +0 -137
- package/include/libavutil/twofish.h +0 -70
- package/include/libavutil/tx.h +0 -210
- package/include/libavutil/uuid.h +0 -146
- package/include/libavutil/version.h +0 -124
- package/include/libavutil/video_enc_params.h +0 -171
- package/include/libavutil/video_hint.h +0 -107
- package/include/libavutil/xtea.h +0 -94
- package/include/libswresample/swresample.h +0 -587
- package/include/libswresample/version.h +0 -46
- package/include/libswresample/version_major.h +0 -31
- package/include/libswscale/swscale.h +0 -460
- package/include/libswscale/version.h +0 -44
- package/include/libswscale/version_major.h +0 -35
- package/include/ogg/config_types.h +0 -26
- package/include/ogg/ogg.h +0 -209
- package/include/ogg/os_types.h +0 -158
- package/include/opus/opus.h +0 -1099
- package/include/opus/opus_defines.h +0 -830
- package/include/opus/opus_multistream.h +0 -660
- package/include/opus/opus_projection.h +0 -568
- package/include/opus/opus_types.h +0 -166
- package/include/svt-av1/EbDebugMacros.h +0 -88
- package/include/svt-av1/EbSvtAv1.h +0 -462
- package/include/svt-av1/EbSvtAv1Enc.h +0 -1112
- package/include/svt-av1/EbSvtAv1ErrorCodes.h +0 -67
- package/include/svt-av1/EbSvtAv1ExtFrameBuf.h +0 -64
- package/include/svt-av1/EbSvtAv1Formats.h +0 -126
- package/include/svt-av1/EbSvtAv1Metadata.h +0 -156
- package/include/vorbis/codec.h +0 -242
- package/include/vorbis/vorbisenc.h +0 -435
- package/include/vorbis/vorbisfile.h +0 -205
- package/include/vpx/vp8.h +0 -136
- package/include/vpx/vp8cx.h +0 -1118
- package/include/vpx/vp8dx.h +0 -228
- package/include/vpx/vpx_codec.h +0 -475
- package/include/vpx/vpx_decoder.h +0 -367
- package/include/vpx/vpx_encoder.h +0 -1150
- package/include/vpx/vpx_ext_ratectrl.h +0 -590
- package/include/vpx/vpx_frame_buffer.h +0 -83
- package/include/vpx/vpx_image.h +0 -221
- package/include/vpx/vpx_integer.h +0 -40
- package/include/vpx/vpx_tpl.h +0 -68
- /package/{include → lib/pkgconfig}/index.js +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright(c) 2019 Intel Corporation
|
|
3
|
-
*
|
|
4
|
-
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
5
|
-
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
6
|
-
* was not distributed with this source code in the LICENSE file, you can
|
|
7
|
-
* obtain it at https://www.aomedia.org/license/software-license. If the Alliance for Open
|
|
8
|
-
* Media Patent License 1.0 was not distributed with this source code in the
|
|
9
|
-
* PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
#ifndef EbSvtAv1ErrorCodes_h
|
|
13
|
-
#define EbSvtAv1ErrorCodes_h
|
|
14
|
-
|
|
15
|
-
#ifdef __cplusplus
|
|
16
|
-
extern "C" {
|
|
17
|
-
#endif // __cplusplus
|
|
18
|
-
|
|
19
|
-
#define CHECK_REPORT_ERROR(cond, app_callback_ptr, errorCode) \
|
|
20
|
-
{ \
|
|
21
|
-
if (!(cond)) { \
|
|
22
|
-
(app_callback_ptr)->error_handler(((app_callback_ptr)->handle), (errorCode)); \
|
|
23
|
-
while (1) \
|
|
24
|
-
; \
|
|
25
|
-
} \
|
|
26
|
-
}
|
|
27
|
-
#define CHECK_REPORT_ERROR_NC(app_callback_ptr, errorCode) \
|
|
28
|
-
{ \
|
|
29
|
-
{ \
|
|
30
|
-
(app_callback_ptr)->error_handler(((app_callback_ptr)->handle), (errorCode)); \
|
|
31
|
-
while (1) \
|
|
32
|
-
; \
|
|
33
|
-
} \
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
typedef enum ENCODER_ERROR_CODES {
|
|
37
|
-
|
|
38
|
-
EB_ENC_CL_ERROR2 = 0x0501,
|
|
39
|
-
|
|
40
|
-
EB_ENC_EC_ERROR2 = 0x0701,
|
|
41
|
-
EB_ENC_EC_ERROR29 = 0x0722,
|
|
42
|
-
EB_ENC_RC_ERROR2 = 0x1401,
|
|
43
|
-
//EB_ENC_PM_ERRORS = 0x1300,
|
|
44
|
-
|
|
45
|
-
EB_ENC_PM_ERROR1 = 0x1301,
|
|
46
|
-
EB_ENC_PM_ERROR4 = 0x1304,
|
|
47
|
-
EB_ENC_PM_ERROR5 = 0x1305,
|
|
48
|
-
EB_ENC_PM_ERROR6 = 0x1306,
|
|
49
|
-
EB_ENC_PM_ERROR7 = 0x1307,
|
|
50
|
-
EB_ENC_PM_ERROR8 = 0x1308,
|
|
51
|
-
EB_ENC_PM_ERROR9 = 0x1309,
|
|
52
|
-
EB_ENC_PM_ERROR10 = 0x130a,
|
|
53
|
-
EB_ENC_ROB_OF_ERROR = 0x1601,
|
|
54
|
-
//EB_ENC_PD_ERRORS = 0x2100,
|
|
55
|
-
EB_ENC_PD_ERROR1 = 0x2100,
|
|
56
|
-
EB_ENC_PD_ERROR2 = 0x2101,
|
|
57
|
-
EB_ENC_PD_ERROR3 = 0x2102,
|
|
58
|
-
EB_ENC_PD_ERROR5 = 0x2104,
|
|
59
|
-
EB_ENC_PD_ERROR7 = 0x2106,
|
|
60
|
-
EB_ENC_PD_ERROR8 = 0x2107,
|
|
61
|
-
} ENCODER_ERROR_CODES;
|
|
62
|
-
|
|
63
|
-
#ifdef __cplusplus
|
|
64
|
-
}
|
|
65
|
-
#endif // __cplusplus
|
|
66
|
-
|
|
67
|
-
#endif // EbSvtAv1ErrorCodes_h
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright(c) 2019 Intel Corporation
|
|
3
|
-
*
|
|
4
|
-
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
5
|
-
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
6
|
-
* was not distributed with this source code in the LICENSE file, you can
|
|
7
|
-
* obtain it at https://www.aomedia.org/license/software-license. If the Alliance for Open
|
|
8
|
-
* Media Patent License 1.0 was not distributed with this source code in the
|
|
9
|
-
* PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
#ifndef EbSvtAv1ExtFrameBuf_h
|
|
13
|
-
#define EbSvtAv1ExtFrameBuf_h
|
|
14
|
-
|
|
15
|
-
#ifdef __cplusplus
|
|
16
|
-
extern "C" {
|
|
17
|
-
#endif // __cplusplus
|
|
18
|
-
|
|
19
|
-
#include <stdint.h>
|
|
20
|
-
|
|
21
|
-
/*!\brief External frame buffer
|
|
22
|
-
*
|
|
23
|
-
* This structure holds allocated frame buffers used by the decoder.
|
|
24
|
-
*/
|
|
25
|
-
typedef struct EbExtFrameBuf {
|
|
26
|
-
/* Pointer to the memory allocates externally for the codec
|
|
27
|
-
* picture buffer */
|
|
28
|
-
uint8_t *buffer;
|
|
29
|
-
|
|
30
|
-
/* Size of the memory allocates externally for the codec
|
|
31
|
-
* picture buffer */
|
|
32
|
-
uint32_t buffer_size;
|
|
33
|
-
|
|
34
|
-
/* Pointer to private data associated with allocating the memory */
|
|
35
|
-
void *private_data;
|
|
36
|
-
} EbExtFrameBuf;
|
|
37
|
-
|
|
38
|
-
/* Callback function to allocate frame buffer.
|
|
39
|
-
*
|
|
40
|
-
* This function is called by the decoder to allocate the
|
|
41
|
-
* data for the frame buffer.
|
|
42
|
-
* Parameters:
|
|
43
|
-
* @ *frame_buf pointer to the frame buffer structure to be allocated
|
|
44
|
-
* @ min_size requested data size in bytes.
|
|
45
|
-
* @ private_data is the private data that can be used by the allocator*/
|
|
46
|
-
typedef int (*EbAllocateFrameBuffer)(EbExtFrameBuf *frame_buf, uint32_t min_size, void *private_data);
|
|
47
|
-
|
|
48
|
-
/* Callback function to release frame buffer.
|
|
49
|
-
*
|
|
50
|
-
* This function is called by the decoder to release the
|
|
51
|
-
* data for the frame buffer. THe buffer should not be used
|
|
52
|
-
* by the decoder.
|
|
53
|
-
*
|
|
54
|
-
* Parameters:
|
|
55
|
-
* @ *frame_buf pointer to the frame buffer structure to be allocated
|
|
56
|
-
* @ min_size requested data size in bytes.
|
|
57
|
-
* @ private_data is the private data that can be used by the allocator*/
|
|
58
|
-
typedef int (*EbReleaseFrameBuffer)(EbExtFrameBuf *fb, void *private_data);
|
|
59
|
-
|
|
60
|
-
#ifdef __cplusplus
|
|
61
|
-
}
|
|
62
|
-
#endif // __cplusplus
|
|
63
|
-
|
|
64
|
-
#endif // EbDecApi_h
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright(c) 2019 Intel Corporation
|
|
3
|
-
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
|
|
4
|
-
*
|
|
5
|
-
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
6
|
-
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
7
|
-
* was not distributed with this source code in the LICENSE file, you can
|
|
8
|
-
* obtain it at https://www.aomedia.org/license/software-license. If the Alliance for Open
|
|
9
|
-
* Media Patent License 1.0 was not distributed with this source code in the
|
|
10
|
-
* PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
#ifndef EbSvtAv1Formats_h
|
|
14
|
-
#define EbSvtAv1Formats_h
|
|
15
|
-
|
|
16
|
-
#ifdef __cplusplus
|
|
17
|
-
extern "C" {
|
|
18
|
-
#endif // __cplusplus
|
|
19
|
-
|
|
20
|
-
/*!\brief List of supported color primaries */
|
|
21
|
-
typedef enum EbColorPrimaries {
|
|
22
|
-
EB_CICP_CP_RESERVED_0 = 0, /**< For future use */
|
|
23
|
-
EB_CICP_CP_BT_709 = 1, /**< BT.709 */
|
|
24
|
-
EB_CICP_CP_UNSPECIFIED = 2, /**< Unspecified */
|
|
25
|
-
EB_CICP_CP_RESERVED_3 = 3, /**< For future use */
|
|
26
|
-
EB_CICP_CP_BT_470_M = 4, /**< BT.470 System M (historical) */
|
|
27
|
-
EB_CICP_CP_BT_470_B_G = 5, /**< BT.470 System B, G (historical) */
|
|
28
|
-
EB_CICP_CP_BT_601 = 6, /**< BT.601 */
|
|
29
|
-
EB_CICP_CP_SMPTE_240 = 7, /**< SMPTE 240 */
|
|
30
|
-
EB_CICP_CP_GENERIC_FILM = 8, /**< Generic film (color filters using illuminant C) */
|
|
31
|
-
EB_CICP_CP_BT_2020 = 9, /**< BT.2020, BT.2100 */
|
|
32
|
-
EB_CICP_CP_XYZ = 10, /**< SMPTE 428 (CIE 1921 XYZ) */
|
|
33
|
-
EB_CICP_CP_SMPTE_431 = 11, /**< SMPTE RP 431-2 */
|
|
34
|
-
EB_CICP_CP_SMPTE_432 = 12, /**< SMPTE EG 432-1 */
|
|
35
|
-
EB_CICP_CP_RESERVED_13 = 13, /**< For future use (values 13 - 21) */
|
|
36
|
-
EB_CICP_CP_EBU_3213 = 22, /**< EBU Tech. 3213-E */
|
|
37
|
-
EB_CICP_CP_RESERVED_23 = 23, /**< For future use (values 23 - 255) */
|
|
38
|
-
EB_CICP_CP_RESERVED_24 = 24, /**< For future use (values 24 - 255) */
|
|
39
|
-
EB_CICP_CP_RESERVED_25 = 25, /**< For future use (values 25 - 255) */
|
|
40
|
-
EB_CICP_CP_RESERVED_26 = 26 /**< For future use (values 26 - 255) */
|
|
41
|
-
} EbColorPrimaries; /**< alias for enum aom_color_primaries */
|
|
42
|
-
|
|
43
|
-
/*!\brief List of supported transfer functions */
|
|
44
|
-
typedef enum EbTransferCharacteristics {
|
|
45
|
-
EB_CICP_TC_RESERVED_0 = 0, /**< For future use */
|
|
46
|
-
EB_CICP_TC_BT_709 = 1, /**< BT.709 */
|
|
47
|
-
EB_CICP_TC_UNSPECIFIED = 2, /**< Unspecified */
|
|
48
|
-
EB_CICP_TC_RESERVED_3 = 3, /**< For future use */
|
|
49
|
-
EB_CICP_TC_BT_470_M = 4, /**< BT.470 System M (historical) */
|
|
50
|
-
EB_CICP_TC_BT_470_B_G = 5, /**< BT.470 System B, G (historical) */
|
|
51
|
-
EB_CICP_TC_BT_601 = 6, /**< BT.601 */
|
|
52
|
-
EB_CICP_TC_SMPTE_240 = 7, /**< SMPTE 240 M */
|
|
53
|
-
EB_CICP_TC_LINEAR = 8, /**< Linear */
|
|
54
|
-
EB_CICP_TC_LOG_100 = 9, /**< Logarithmic (100 : 1 range) */
|
|
55
|
-
EB_CICP_TC_LOG_100_SQRT10 = 10, /**< Logarithmic (100 * Sqrt(10) : 1 range) */
|
|
56
|
-
EB_CICP_TC_IEC_61966 = 11, /**< IEC 61966-2-4 */
|
|
57
|
-
EB_CICP_TC_BT_1361 = 12, /**< BT.1361 */
|
|
58
|
-
EB_CICP_TC_SRGB = 13, /**< sRGB or sYCC*/
|
|
59
|
-
EB_CICP_TC_BT_2020_10_BIT = 14, /**< BT.2020 10-bit systems */
|
|
60
|
-
EB_CICP_TC_BT_2020_12_BIT = 15, /**< BT.2020 12-bit systems */
|
|
61
|
-
EB_CICP_TC_SMPTE_2084 = 16, /**< SMPTE ST 2084, ITU BT.2100 PQ */
|
|
62
|
-
EB_CICP_TC_SMPTE_428 = 17, /**< SMPTE ST 428 */
|
|
63
|
-
EB_CICP_TC_HLG = 18, /**< BT.2100 HLG, ARIB STD-B67 */
|
|
64
|
-
EB_CICP_TC_RESERVED_19 = 19, /**< For future use (values 19-255) */
|
|
65
|
-
EB_CICP_TC_RESERVED_20 = 20, /**< For future use (values 20-255) */
|
|
66
|
-
EB_CICP_TC_RESERVED_21 = 21, /**< For future use (values 21-255) */
|
|
67
|
-
EB_CICP_TC_RESERVED_22 = 22, /**< For future use (values 22-255) */
|
|
68
|
-
EB_CICP_TC_RESERVED_23 = 23 /**< For future use (values 23-255) */
|
|
69
|
-
} EbTransferCharacteristics; /**< alias for enum aom_transfer_function */
|
|
70
|
-
|
|
71
|
-
/*!\brief List of supported matrix coefficients */
|
|
72
|
-
typedef enum EbMatrixCoefficients {
|
|
73
|
-
EB_CICP_MC_IDENTITY = 0, /**< Identity matrix */
|
|
74
|
-
EB_CICP_MC_BT_709 = 1, /**< BT.709 */
|
|
75
|
-
EB_CICP_MC_UNSPECIFIED = 2, /**< Unspecified */
|
|
76
|
-
EB_CICP_MC_RESERVED_3 = 3, /**< For future use */
|
|
77
|
-
EB_CICP_MC_FCC = 4, /**< US FCC 73.628 */
|
|
78
|
-
EB_CICP_MC_BT_470_B_G = 5, /**< BT.470 System B, G (historical) */
|
|
79
|
-
EB_CICP_MC_BT_601 = 6, /**< BT.601 */
|
|
80
|
-
EB_CICP_MC_SMPTE_240 = 7, /**< SMPTE 240 M */
|
|
81
|
-
EB_CICP_MC_SMPTE_YCGCO = 8, /**< YCgCo */
|
|
82
|
-
EB_CICP_MC_BT_2020_NCL = 9, /**< BT.2020 non-constant luminance, BT.2100 YCbCr */
|
|
83
|
-
EB_CICP_MC_BT_2020_CL = 10, /**< BT.2020 constant luminance */
|
|
84
|
-
EB_CICP_MC_SMPTE_2085 = 11, /**< SMPTE ST 2085 YDzDx */
|
|
85
|
-
EB_CICP_MC_CHROMAT_NCL = 12, /**< Chromaticity-derived non-constant luminance */
|
|
86
|
-
EB_CICP_MC_CHROMAT_CL = 13, /**< Chromaticity-derived constant luminance */
|
|
87
|
-
EB_CICP_MC_ICTCP = 14, /**< BT.2100 ICtCp */
|
|
88
|
-
EB_CICP_MC_RESERVED_15 = 15, /**< For future use (values 15-255) */
|
|
89
|
-
EB_CICP_MC_RESERVED_16 = 16, /**< For future use (values 16-255) */
|
|
90
|
-
EB_CICP_MC_RESERVED_17 = 17, /**< For future use (values 17-255) */
|
|
91
|
-
EB_CICP_MC_RESERVED_18 = 18 /**< For future use (values 18-255) */
|
|
92
|
-
} EbMatrixCoefficients;
|
|
93
|
-
|
|
94
|
-
/*!\brief List of supported color range */
|
|
95
|
-
typedef enum EbColorRange {
|
|
96
|
-
EB_CR_STUDIO_RANGE = 0, /**< Y [16..235], UV [16..240] */
|
|
97
|
-
EB_CR_FULL_RANGE = 1 /**< YUV/RGB [0..255] */
|
|
98
|
-
} EbColorRange; /**< alias for enum aom_color_range */
|
|
99
|
-
|
|
100
|
-
/* AV1 bit depth */
|
|
101
|
-
typedef enum EbBitDepth {
|
|
102
|
-
EB_EIGHT_BIT = 8,
|
|
103
|
-
EB_TEN_BIT = 10,
|
|
104
|
-
EB_TWELVE_BIT = 12,
|
|
105
|
-
EB_FOURTEEN_BIT = 14, // Not supported
|
|
106
|
-
EB_SIXTEEN_BIT = 16, // Not supported
|
|
107
|
-
EB_THIRTYTWO_BIT = 32, // Not supported
|
|
108
|
-
} EbBitDepth;
|
|
109
|
-
|
|
110
|
-
/* AV1 Chroma Format */
|
|
111
|
-
typedef enum EbColorFormat { EB_YUV400, EB_YUV420, EB_YUV422, EB_YUV444 } EbColorFormat;
|
|
112
|
-
|
|
113
|
-
/*!\brief List of chroma sample positions */
|
|
114
|
-
typedef enum EbChromaSamplePosition {
|
|
115
|
-
EB_CSP_UNKNOWN = 0, /**< Unknown */
|
|
116
|
-
EB_CSP_VERTICAL = 1, /**< Horizontally co-located with luma(0, 0)*/
|
|
117
|
-
/**< sample, between two vertical samples */
|
|
118
|
-
EB_CSP_COLOCATED = 2, /**< Co-located with luma(0, 0) sample */
|
|
119
|
-
EB_CSP_RESERVED = 3 /**< Reserved value */
|
|
120
|
-
} EbChromaSamplePosition; /**< alias for enum aom_transfer_function */
|
|
121
|
-
|
|
122
|
-
#ifdef __cplusplus
|
|
123
|
-
}
|
|
124
|
-
#endif // __cplusplus
|
|
125
|
-
|
|
126
|
-
#endif // EbSvtAv1Formats_h
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2021, Alliance for Open Media. All rights reserved
|
|
3
|
-
*
|
|
4
|
-
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
5
|
-
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
6
|
-
* was not distributed with this source code in the LICENSE file, you can
|
|
7
|
-
* obtain it at https://www.aomedia.org/license/software-license. If the Alliance for Open
|
|
8
|
-
* Media Patent License 1.0 was not distributed with this source code in the
|
|
9
|
-
* PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
#ifndef EbSvtAv1Metadata_h
|
|
13
|
-
#define EbSvtAv1Metadata_h
|
|
14
|
-
|
|
15
|
-
#ifdef __cplusplus
|
|
16
|
-
extern "C" {
|
|
17
|
-
#endif // __cplusplus
|
|
18
|
-
|
|
19
|
-
#include <stdio.h>
|
|
20
|
-
#include <string.h> //for 'memcpy'
|
|
21
|
-
#include "EbSvtAv1.h"
|
|
22
|
-
#include "EbSvtAv1Enc.h"
|
|
23
|
-
|
|
24
|
-
struct EbBufferHeaderType;
|
|
25
|
-
|
|
26
|
-
typedef enum EbAv1MetadataType {
|
|
27
|
-
EB_AV1_METADATA_TYPE_AOM_RESERVED_0 = 0,
|
|
28
|
-
EB_AV1_METADATA_TYPE_HDR_CLL = 1,
|
|
29
|
-
EB_AV1_METADATA_TYPE_HDR_MDCV = 2,
|
|
30
|
-
EB_AV1_METADATA_TYPE_SCALABILITY = 3,
|
|
31
|
-
EB_AV1_METADATA_TYPE_ITUT_T35 = 4,
|
|
32
|
-
EB_AV1_METADATA_TYPE_TIMECODE = 5,
|
|
33
|
-
EB_AV1_METADATA_TYPE_FRAME_SIZE = 6,
|
|
34
|
-
} EbAv1MetadataType;
|
|
35
|
-
|
|
36
|
-
/*!\brief Metadata payload. */
|
|
37
|
-
typedef struct SvtMetadata {
|
|
38
|
-
uint32_t type; /**< Metadata type */
|
|
39
|
-
uint8_t *payload; /**< Metadata payload data */
|
|
40
|
-
size_t sz; /**< Metadata payload size */
|
|
41
|
-
} SvtMetadataT;
|
|
42
|
-
|
|
43
|
-
/*!\brief Array of aom_metadata structs for an image. */
|
|
44
|
-
typedef struct SvtMetadataArray {
|
|
45
|
-
size_t sz; /* Number of metadata structs in the list */
|
|
46
|
-
SvtMetadataT **metadata_array; /* Array of metadata structs */
|
|
47
|
-
} SvtMetadataArrayT;
|
|
48
|
-
|
|
49
|
-
/*!\brief Frame size struct in metadata. */
|
|
50
|
-
typedef struct SvtMetadataFrameSize {
|
|
51
|
-
uint16_t width; /**< pixel width of frame */
|
|
52
|
-
uint16_t height; /**< pixel height of frame */
|
|
53
|
-
uint16_t disp_width; /**< display pixel width of frame */
|
|
54
|
-
uint16_t disp_height; /**< display pixel height of frame */
|
|
55
|
-
uint16_t stride; /**< pixel stride of frame */
|
|
56
|
-
uint16_t subsampling_x; /**< subsampling of Cb/Cr in width */
|
|
57
|
-
uint16_t subsampling_y; /**< subsampling of Cb/Cr in height */
|
|
58
|
-
} SvtMetadataFrameSizeT;
|
|
59
|
-
|
|
60
|
-
/*!\brief Allocate memory for SvtMetadataT struct.
|
|
61
|
-
*
|
|
62
|
-
* Allocates storage for the metadata payload, sets its type and copies the
|
|
63
|
-
* payload data into the SvtMetadataT struct. A metadata payload buffer of size
|
|
64
|
-
* sz is allocated and sz bytes are copied from data into the payload buffer.
|
|
65
|
-
*
|
|
66
|
-
* \param[in] type Metadata type
|
|
67
|
-
* \param[in] data Metadata data pointer
|
|
68
|
-
* \param[in] sz Metadata size
|
|
69
|
-
*
|
|
70
|
-
* \return Returns the newly allocated SvtMetadataT struct. If data is NULL,
|
|
71
|
-
* sz is 0, or memory allocation fails, it returns NULL.
|
|
72
|
-
*/
|
|
73
|
-
EB_API SvtMetadataT *svt_metadata_alloc(const uint32_t type, const uint8_t *data, const size_t sz);
|
|
74
|
-
|
|
75
|
-
/*!\brief Free metadata struct.
|
|
76
|
-
*
|
|
77
|
-
* Free metadata struct and its buffer.
|
|
78
|
-
*
|
|
79
|
-
* \param[in] ptr Metadata struct pointer
|
|
80
|
-
*/
|
|
81
|
-
EB_API void svt_metadata_free(void *ptr);
|
|
82
|
-
|
|
83
|
-
/*!\brief Alloc memory for SvtMetadataArrayT struct.
|
|
84
|
-
*
|
|
85
|
-
* Allocate memory for SvtMetadataArrayT struct.
|
|
86
|
-
* If sz is 0 the SvtMetadataArrayT struct's internal buffer list will be
|
|
87
|
-
* NULL, but the SvtMetadataArrayT struct itself will still be allocated.
|
|
88
|
-
* Returns a pointer to the allocated struct or NULL on failure.
|
|
89
|
-
*
|
|
90
|
-
* \param[in] sz Size of internal metadata list buffer
|
|
91
|
-
*/
|
|
92
|
-
EB_API SvtMetadataArrayT *svt_metadata_array_alloc(const size_t sz);
|
|
93
|
-
|
|
94
|
-
/*!\brief Free metadata array struct.
|
|
95
|
-
*
|
|
96
|
-
* Free metadata array struct and all metadata structs inside.
|
|
97
|
-
*
|
|
98
|
-
* \param[in] arr Metadata array struct pointer
|
|
99
|
-
*/
|
|
100
|
-
EB_API void svt_metadata_array_free(void *arr);
|
|
101
|
-
|
|
102
|
-
/*!\brief Add metadata to image.
|
|
103
|
-
*
|
|
104
|
-
* Adds metadata to EbBufferHeaderType.
|
|
105
|
-
* Function makes a copy of the provided data parameter.
|
|
106
|
-
* Metadata insertion point is controlled by insert_flag.
|
|
107
|
-
*
|
|
108
|
-
* \param[in] buffer Buffer descriptor
|
|
109
|
-
* \param[in] type Metadata type
|
|
110
|
-
* \param[in] data Metadata contents
|
|
111
|
-
* \param[in] sz Metadata contents size
|
|
112
|
-
*
|
|
113
|
-
* \return Returns 0 on success. If buffer or data is NULL, sz is 0, or memory
|
|
114
|
-
* allocation fails, it returns -1.
|
|
115
|
-
*/
|
|
116
|
-
EB_API int svt_add_metadata(struct EbBufferHeaderType *buffer, const uint32_t type, const uint8_t *data,
|
|
117
|
-
const size_t sz);
|
|
118
|
-
|
|
119
|
-
/*!\brief Return metadata size.
|
|
120
|
-
*
|
|
121
|
-
* Returns the metadata size of the selected metadata given by type
|
|
122
|
-
*
|
|
123
|
-
* \param[in] metadata Metadata array struct pointer
|
|
124
|
-
* \param[in] type Metadata type descriptor
|
|
125
|
-
*/
|
|
126
|
-
EB_API size_t svt_metadata_size(SvtMetadataArrayT *metadata, const EbAv1MetadataType type);
|
|
127
|
-
|
|
128
|
-
/*!\brief Parse string into EbSvtAv1MasteringDisplayInfo struct.
|
|
129
|
-
*
|
|
130
|
-
* Splits a string in the format of "G(x,y)B(x,y)R(x,Y)WP(x,y)L(max,min)" into
|
|
131
|
-
* a EbSvtAv1MasteringDisplayInfo struct.
|
|
132
|
-
*
|
|
133
|
-
* \param[in] mdi Pointer to EbSvtAv1MasteringDisplayInfo struct
|
|
134
|
-
* \param[in] md_str String to parse
|
|
135
|
-
*
|
|
136
|
-
* \return Returns 1 on success. 0 on failure.
|
|
137
|
-
*/
|
|
138
|
-
EB_API int svt_aom_parse_mastering_display(struct EbSvtAv1MasteringDisplayInfo *mdi, const char *md_str);
|
|
139
|
-
|
|
140
|
-
/*!\brief Parse string into EbContentLightLevel struct.
|
|
141
|
-
*
|
|
142
|
-
* Splits a string in the format of "max_cll,max_fall" into
|
|
143
|
-
* a EbContentLightLevel struct.
|
|
144
|
-
*
|
|
145
|
-
* \param[in] cll Pointer to EbContentLightLevel struct
|
|
146
|
-
* \param[in] cll_str String to parse
|
|
147
|
-
*
|
|
148
|
-
* \return Returns 1 on success. 0 on failure.
|
|
149
|
-
*/
|
|
150
|
-
EB_API int svt_aom_parse_content_light_level(struct EbContentLightLevel *cll, const char *cll_str);
|
|
151
|
-
|
|
152
|
-
#ifdef __cplusplus
|
|
153
|
-
}
|
|
154
|
-
#endif // __cplusplus
|
|
155
|
-
|
|
156
|
-
#endif // EbSvtAv1Metadata_h
|
package/include/vorbis/codec.h
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
/********************************************************************
|
|
2
|
-
* *
|
|
3
|
-
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
|
|
4
|
-
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
|
|
5
|
-
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
|
|
6
|
-
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
|
|
7
|
-
* *
|
|
8
|
-
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
|
|
9
|
-
* by the Xiph.Org Foundation https://xiph.org/ *
|
|
10
|
-
|
|
11
|
-
********************************************************************
|
|
12
|
-
|
|
13
|
-
function: libvorbis codec headers
|
|
14
|
-
|
|
15
|
-
********************************************************************/
|
|
16
|
-
|
|
17
|
-
#ifndef _vorbis_codec_h_
|
|
18
|
-
#define _vorbis_codec_h_
|
|
19
|
-
|
|
20
|
-
#ifdef __cplusplus
|
|
21
|
-
extern "C"
|
|
22
|
-
{
|
|
23
|
-
#endif /* __cplusplus */
|
|
24
|
-
|
|
25
|
-
#include <ogg/ogg.h>
|
|
26
|
-
|
|
27
|
-
typedef struct vorbis_info{
|
|
28
|
-
int version;
|
|
29
|
-
int channels;
|
|
30
|
-
long rate;
|
|
31
|
-
|
|
32
|
-
/* The below bitrate declarations are *hints*.
|
|
33
|
-
Combinations of the three values carry the following implications:
|
|
34
|
-
|
|
35
|
-
all three set to the same value:
|
|
36
|
-
implies a fixed rate bitstream
|
|
37
|
-
only nominal set:
|
|
38
|
-
implies a VBR stream that averages the nominal bitrate. No hard
|
|
39
|
-
upper/lower limit
|
|
40
|
-
upper and or lower set:
|
|
41
|
-
implies a VBR bitstream that obeys the bitrate limits. nominal
|
|
42
|
-
may also be set to give a nominal rate.
|
|
43
|
-
none set:
|
|
44
|
-
the coder does not care to speculate.
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
long bitrate_upper;
|
|
48
|
-
long bitrate_nominal;
|
|
49
|
-
long bitrate_lower;
|
|
50
|
-
long bitrate_window;
|
|
51
|
-
|
|
52
|
-
void *codec_setup;
|
|
53
|
-
} vorbis_info;
|
|
54
|
-
|
|
55
|
-
/* vorbis_dsp_state buffers the current vorbis audio
|
|
56
|
-
analysis/synthesis state. The DSP state belongs to a specific
|
|
57
|
-
logical bitstream ****************************************************/
|
|
58
|
-
typedef struct vorbis_dsp_state{
|
|
59
|
-
int analysisp;
|
|
60
|
-
vorbis_info *vi;
|
|
61
|
-
|
|
62
|
-
float **pcm;
|
|
63
|
-
float **pcmret;
|
|
64
|
-
int pcm_storage;
|
|
65
|
-
int pcm_current;
|
|
66
|
-
int pcm_returned;
|
|
67
|
-
|
|
68
|
-
int preextrapolate;
|
|
69
|
-
int eofflag;
|
|
70
|
-
|
|
71
|
-
long lW;
|
|
72
|
-
long W;
|
|
73
|
-
long nW;
|
|
74
|
-
long centerW;
|
|
75
|
-
|
|
76
|
-
ogg_int64_t granulepos;
|
|
77
|
-
ogg_int64_t sequence;
|
|
78
|
-
|
|
79
|
-
ogg_int64_t glue_bits;
|
|
80
|
-
ogg_int64_t time_bits;
|
|
81
|
-
ogg_int64_t floor_bits;
|
|
82
|
-
ogg_int64_t res_bits;
|
|
83
|
-
|
|
84
|
-
void *backend_state;
|
|
85
|
-
} vorbis_dsp_state;
|
|
86
|
-
|
|
87
|
-
typedef struct vorbis_block{
|
|
88
|
-
/* necessary stream state for linking to the framing abstraction */
|
|
89
|
-
float **pcm; /* this is a pointer into local storage */
|
|
90
|
-
oggpack_buffer opb;
|
|
91
|
-
|
|
92
|
-
long lW;
|
|
93
|
-
long W;
|
|
94
|
-
long nW;
|
|
95
|
-
int pcmend;
|
|
96
|
-
int mode;
|
|
97
|
-
|
|
98
|
-
int eofflag;
|
|
99
|
-
ogg_int64_t granulepos;
|
|
100
|
-
ogg_int64_t sequence;
|
|
101
|
-
vorbis_dsp_state *vd; /* For read-only access of configuration */
|
|
102
|
-
|
|
103
|
-
/* local storage to avoid remallocing; it's up to the mapping to
|
|
104
|
-
structure it */
|
|
105
|
-
void *localstore;
|
|
106
|
-
long localtop;
|
|
107
|
-
long localalloc;
|
|
108
|
-
long totaluse;
|
|
109
|
-
struct alloc_chain *reap;
|
|
110
|
-
|
|
111
|
-
/* bitmetrics for the frame */
|
|
112
|
-
long glue_bits;
|
|
113
|
-
long time_bits;
|
|
114
|
-
long floor_bits;
|
|
115
|
-
long res_bits;
|
|
116
|
-
|
|
117
|
-
void *internal;
|
|
118
|
-
|
|
119
|
-
} vorbis_block;
|
|
120
|
-
|
|
121
|
-
/* vorbis_block is a single block of data to be processed as part of
|
|
122
|
-
the analysis/synthesis stream; it belongs to a specific logical
|
|
123
|
-
bitstream, but is independent from other vorbis_blocks belonging to
|
|
124
|
-
that logical bitstream. *************************************************/
|
|
125
|
-
|
|
126
|
-
struct alloc_chain{
|
|
127
|
-
void *ptr;
|
|
128
|
-
struct alloc_chain *next;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
/* vorbis_info contains all the setup information specific to the
|
|
132
|
-
specific compression/decompression mode in progress (eg,
|
|
133
|
-
psychoacoustic settings, channel setup, options, codebook
|
|
134
|
-
etc). vorbis_info and substructures are in backends.h.
|
|
135
|
-
*********************************************************************/
|
|
136
|
-
|
|
137
|
-
/* the comments are not part of vorbis_info so that vorbis_info can be
|
|
138
|
-
static storage */
|
|
139
|
-
typedef struct vorbis_comment{
|
|
140
|
-
/* unlimited user comment fields. libvorbis writes 'libvorbis'
|
|
141
|
-
whatever vendor is set to in encode */
|
|
142
|
-
char **user_comments;
|
|
143
|
-
int *comment_lengths;
|
|
144
|
-
int comments;
|
|
145
|
-
char *vendor;
|
|
146
|
-
|
|
147
|
-
} vorbis_comment;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/* libvorbis encodes in two abstraction layers; first we perform DSP
|
|
151
|
-
and produce a packet (see docs/analysis.txt). The packet is then
|
|
152
|
-
coded into a framed OggSquish bitstream by the second layer (see
|
|
153
|
-
docs/framing.txt). Decode is the reverse process; we sync/frame
|
|
154
|
-
the bitstream and extract individual packets, then decode the
|
|
155
|
-
packet back into PCM audio.
|
|
156
|
-
|
|
157
|
-
The extra framing/packetizing is used in streaming formats, such as
|
|
158
|
-
files. Over the net (such as with UDP), the framing and
|
|
159
|
-
packetization aren't necessary as they're provided by the transport
|
|
160
|
-
and the streaming layer is not used */
|
|
161
|
-
|
|
162
|
-
/* Vorbis PRIMITIVES: general ***************************************/
|
|
163
|
-
|
|
164
|
-
extern void vorbis_info_init(vorbis_info *vi);
|
|
165
|
-
extern void vorbis_info_clear(vorbis_info *vi);
|
|
166
|
-
extern int vorbis_info_blocksize(vorbis_info *vi,int zo);
|
|
167
|
-
extern void vorbis_comment_init(vorbis_comment *vc);
|
|
168
|
-
extern void vorbis_comment_add(vorbis_comment *vc, const char *comment);
|
|
169
|
-
extern void vorbis_comment_add_tag(vorbis_comment *vc,
|
|
170
|
-
const char *tag, const char *contents);
|
|
171
|
-
extern char *vorbis_comment_query(vorbis_comment *vc, const char *tag, int count);
|
|
172
|
-
extern int vorbis_comment_query_count(vorbis_comment *vc, const char *tag);
|
|
173
|
-
extern void vorbis_comment_clear(vorbis_comment *vc);
|
|
174
|
-
|
|
175
|
-
extern int vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb);
|
|
176
|
-
extern int vorbis_block_clear(vorbis_block *vb);
|
|
177
|
-
extern void vorbis_dsp_clear(vorbis_dsp_state *v);
|
|
178
|
-
extern double vorbis_granule_time(vorbis_dsp_state *v,
|
|
179
|
-
ogg_int64_t granulepos);
|
|
180
|
-
|
|
181
|
-
extern const char *vorbis_version_string(void);
|
|
182
|
-
|
|
183
|
-
/* Vorbis PRIMITIVES: analysis/DSP layer ****************************/
|
|
184
|
-
|
|
185
|
-
extern int vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi);
|
|
186
|
-
extern int vorbis_commentheader_out(vorbis_comment *vc, ogg_packet *op);
|
|
187
|
-
extern int vorbis_analysis_headerout(vorbis_dsp_state *v,
|
|
188
|
-
vorbis_comment *vc,
|
|
189
|
-
ogg_packet *op,
|
|
190
|
-
ogg_packet *op_comm,
|
|
191
|
-
ogg_packet *op_code);
|
|
192
|
-
extern float **vorbis_analysis_buffer(vorbis_dsp_state *v,int vals);
|
|
193
|
-
extern int vorbis_analysis_wrote(vorbis_dsp_state *v,int vals);
|
|
194
|
-
extern int vorbis_analysis_blockout(vorbis_dsp_state *v,vorbis_block *vb);
|
|
195
|
-
extern int vorbis_analysis(vorbis_block *vb,ogg_packet *op);
|
|
196
|
-
|
|
197
|
-
extern int vorbis_bitrate_addblock(vorbis_block *vb);
|
|
198
|
-
extern int vorbis_bitrate_flushpacket(vorbis_dsp_state *vd,
|
|
199
|
-
ogg_packet *op);
|
|
200
|
-
|
|
201
|
-
/* Vorbis PRIMITIVES: synthesis layer *******************************/
|
|
202
|
-
extern int vorbis_synthesis_idheader(ogg_packet *op);
|
|
203
|
-
extern int vorbis_synthesis_headerin(vorbis_info *vi,vorbis_comment *vc,
|
|
204
|
-
ogg_packet *op);
|
|
205
|
-
|
|
206
|
-
extern int vorbis_synthesis_init(vorbis_dsp_state *v,vorbis_info *vi);
|
|
207
|
-
extern int vorbis_synthesis_restart(vorbis_dsp_state *v);
|
|
208
|
-
extern int vorbis_synthesis(vorbis_block *vb,ogg_packet *op);
|
|
209
|
-
extern int vorbis_synthesis_trackonly(vorbis_block *vb,ogg_packet *op);
|
|
210
|
-
extern int vorbis_synthesis_blockin(vorbis_dsp_state *v,vorbis_block *vb);
|
|
211
|
-
extern int vorbis_synthesis_pcmout(vorbis_dsp_state *v,float ***pcm);
|
|
212
|
-
extern int vorbis_synthesis_lapout(vorbis_dsp_state *v,float ***pcm);
|
|
213
|
-
extern int vorbis_synthesis_read(vorbis_dsp_state *v,int samples);
|
|
214
|
-
extern long vorbis_packet_blocksize(vorbis_info *vi,ogg_packet *op);
|
|
215
|
-
|
|
216
|
-
extern int vorbis_synthesis_halfrate(vorbis_info *v,int flag);
|
|
217
|
-
extern int vorbis_synthesis_halfrate_p(vorbis_info *v);
|
|
218
|
-
|
|
219
|
-
/* Vorbis ERRORS and return codes ***********************************/
|
|
220
|
-
|
|
221
|
-
#define OV_FALSE -1
|
|
222
|
-
#define OV_EOF -2
|
|
223
|
-
#define OV_HOLE -3
|
|
224
|
-
|
|
225
|
-
#define OV_EREAD -128
|
|
226
|
-
#define OV_EFAULT -129
|
|
227
|
-
#define OV_EIMPL -130
|
|
228
|
-
#define OV_EINVAL -131
|
|
229
|
-
#define OV_ENOTVORBIS -132
|
|
230
|
-
#define OV_EBADHEADER -133
|
|
231
|
-
#define OV_EVERSION -134
|
|
232
|
-
#define OV_ENOTAUDIO -135
|
|
233
|
-
#define OV_EBADPACKET -136
|
|
234
|
-
#define OV_EBADLINK -137
|
|
235
|
-
#define OV_ENOSEEK -138
|
|
236
|
-
|
|
237
|
-
#ifdef __cplusplus
|
|
238
|
-
}
|
|
239
|
-
#endif /* __cplusplus */
|
|
240
|
-
|
|
241
|
-
#endif
|
|
242
|
-
|