@pproenca/ffmpeg-darwin-arm64-gpl 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.
Files changed (234) hide show
  1. package/LICENSE +117 -0
  2. package/lib/libSvtAv1Enc.a +0 -0
  3. package/lib/libaom.a +0 -0
  4. package/lib/libavcodec.a +0 -0
  5. package/lib/libavdevice.a +0 -0
  6. package/lib/libavfilter.a +0 -0
  7. package/lib/libavformat.a +0 -0
  8. package/lib/libavutil.a +0 -0
  9. package/lib/libdav1d.a +0 -0
  10. package/lib/libmp3lame.a +0 -0
  11. package/lib/libogg.a +0 -0
  12. package/lib/libopus.a +0 -0
  13. package/lib/libpostproc.a +0 -0
  14. package/lib/libswresample.a +0 -0
  15. package/lib/libswscale.a +0 -0
  16. package/lib/libvorbis.a +0 -0
  17. package/lib/libvorbisenc.a +0 -0
  18. package/lib/libvorbisfile.a +0 -0
  19. package/lib/libvpx.a +0 -0
  20. package/lib/libx264.a +0 -0
  21. package/lib/libx265.a +0 -0
  22. package/lib/pkgconfig/SvtAv1Enc.pc +12 -0
  23. package/lib/pkgconfig/aom.pc +14 -0
  24. package/lib/pkgconfig/dav1d.pc +9 -0
  25. package/lib/pkgconfig/libavcodec.pc +14 -0
  26. package/lib/pkgconfig/libavdevice.pc +14 -0
  27. package/lib/pkgconfig/libavfilter.pc +14 -0
  28. package/lib/pkgconfig/libavformat.pc +14 -0
  29. package/lib/pkgconfig/libavutil.pc +14 -0
  30. package/lib/pkgconfig/libpostproc.pc +14 -0
  31. package/lib/pkgconfig/libswresample.pc +14 -0
  32. package/lib/pkgconfig/libswscale.pc +14 -0
  33. package/lib/pkgconfig/mp3lame.pc +11 -0
  34. package/lib/pkgconfig/ogg.pc +14 -0
  35. package/lib/pkgconfig/opus.pc +16 -0
  36. package/lib/pkgconfig/vorbis.pc +15 -0
  37. package/lib/pkgconfig/vorbisenc.pc +14 -0
  38. package/lib/pkgconfig/vorbisfile.pc +14 -0
  39. package/lib/pkgconfig/vpx.pc +14 -0
  40. package/lib/pkgconfig/x264.pc +11 -0
  41. package/lib/pkgconfig/x265.pc +11 -0
  42. package/package.json +2 -3
  43. package/include/aom/aom.h +0 -127
  44. package/include/aom/aom_codec.h +0 -594
  45. package/include/aom/aom_decoder.h +0 -257
  46. package/include/aom/aom_encoder.h +0 -1154
  47. package/include/aom/aom_external_partition.h +0 -452
  48. package/include/aom/aom_frame_buffer.h +0 -84
  49. package/include/aom/aom_image.h +0 -462
  50. package/include/aom/aom_integer.h +0 -60
  51. package/include/aom/aomcx.h +0 -2288
  52. package/include/aom/aomdx.h +0 -607
  53. package/include/dav1d/common.h +0 -94
  54. package/include/dav1d/data.h +0 -117
  55. package/include/dav1d/dav1d.h +0 -329
  56. package/include/dav1d/headers.h +0 -444
  57. package/include/dav1d/picture.h +0 -157
  58. package/include/dav1d/version.h +0 -50
  59. package/include/lame/lame.h +0 -1342
  60. package/include/libavcodec/ac3_parser.h +0 -36
  61. package/include/libavcodec/adts_parser.h +0 -37
  62. package/include/libavcodec/avcodec.h +0 -3128
  63. package/include/libavcodec/avdct.h +0 -88
  64. package/include/libavcodec/avfft.h +0 -149
  65. package/include/libavcodec/bsf.h +0 -332
  66. package/include/libavcodec/codec.h +0 -382
  67. package/include/libavcodec/codec_desc.h +0 -134
  68. package/include/libavcodec/codec_id.h +0 -669
  69. package/include/libavcodec/codec_par.h +0 -248
  70. package/include/libavcodec/d3d11va.h +0 -109
  71. package/include/libavcodec/defs.h +0 -337
  72. package/include/libavcodec/dirac.h +0 -135
  73. package/include/libavcodec/dv_profile.h +0 -82
  74. package/include/libavcodec/dxva2.h +0 -90
  75. package/include/libavcodec/jni.h +0 -67
  76. package/include/libavcodec/mediacodec.h +0 -103
  77. package/include/libavcodec/packet.h +0 -887
  78. package/include/libavcodec/qsv.h +0 -109
  79. package/include/libavcodec/vdpau.h +0 -171
  80. package/include/libavcodec/version.h +0 -45
  81. package/include/libavcodec/version_major.h +0 -52
  82. package/include/libavcodec/videotoolbox.h +0 -85
  83. package/include/libavcodec/vorbis_parser.h +0 -74
  84. package/include/libavdevice/avdevice.h +0 -397
  85. package/include/libavdevice/version.h +0 -45
  86. package/include/libavdevice/version_major.h +0 -43
  87. package/include/libavfilter/avfilter.h +0 -1379
  88. package/include/libavfilter/buffersink.h +0 -173
  89. package/include/libavfilter/buffersrc.h +0 -215
  90. package/include/libavfilter/version.h +0 -48
  91. package/include/libavfilter/version_major.h +0 -40
  92. package/include/libavformat/avformat.h +0 -3107
  93. package/include/libavformat/avio.h +0 -831
  94. package/include/libavformat/version.h +0 -47
  95. package/include/libavformat/version_major.h +0 -54
  96. package/include/libavutil/adler32.h +0 -63
  97. package/include/libavutil/aes.h +0 -69
  98. package/include/libavutil/aes_ctr.h +0 -99
  99. package/include/libavutil/ambient_viewing_environment.h +0 -72
  100. package/include/libavutil/attributes.h +0 -173
  101. package/include/libavutil/audio_fifo.h +0 -187
  102. package/include/libavutil/avassert.h +0 -78
  103. package/include/libavutil/avconfig.h +0 -6
  104. package/include/libavutil/avstring.h +0 -428
  105. package/include/libavutil/avutil.h +0 -362
  106. package/include/libavutil/base64.h +0 -72
  107. package/include/libavutil/blowfish.h +0 -82
  108. package/include/libavutil/bprint.h +0 -254
  109. package/include/libavutil/bswap.h +0 -105
  110. package/include/libavutil/buffer.h +0 -322
  111. package/include/libavutil/camellia.h +0 -70
  112. package/include/libavutil/cast5.h +0 -80
  113. package/include/libavutil/channel_layout.h +0 -751
  114. package/include/libavutil/common.h +0 -589
  115. package/include/libavutil/cpu.h +0 -145
  116. package/include/libavutil/crc.h +0 -102
  117. package/include/libavutil/csp.h +0 -150
  118. package/include/libavutil/des.h +0 -81
  119. package/include/libavutil/detection_bbox.h +0 -108
  120. package/include/libavutil/dict.h +0 -241
  121. package/include/libavutil/display.h +0 -109
  122. package/include/libavutil/dovi_meta.h +0 -396
  123. package/include/libavutil/downmix_info.h +0 -115
  124. package/include/libavutil/encryption_info.h +0 -205
  125. package/include/libavutil/error.h +0 -129
  126. package/include/libavutil/eval.h +0 -140
  127. package/include/libavutil/executor.h +0 -67
  128. package/include/libavutil/ffversion.h +0 -5
  129. package/include/libavutil/fifo.h +0 -242
  130. package/include/libavutil/file.h +0 -62
  131. package/include/libavutil/film_grain_params.h +0 -322
  132. package/include/libavutil/frame.h +0 -1175
  133. package/include/libavutil/hash.h +0 -264
  134. package/include/libavutil/hdr_dynamic_metadata.h +0 -376
  135. package/include/libavutil/hdr_dynamic_vivid_metadata.h +0 -346
  136. package/include/libavutil/hmac.h +0 -99
  137. package/include/libavutil/hwcontext.h +0 -598
  138. package/include/libavutil/hwcontext_cuda.h +0 -74
  139. package/include/libavutil/hwcontext_d3d11va.h +0 -178
  140. package/include/libavutil/hwcontext_d3d12va.h +0 -142
  141. package/include/libavutil/hwcontext_drm.h +0 -169
  142. package/include/libavutil/hwcontext_dxva2.h +0 -75
  143. package/include/libavutil/hwcontext_mediacodec.h +0 -61
  144. package/include/libavutil/hwcontext_opencl.h +0 -100
  145. package/include/libavutil/hwcontext_qsv.h +0 -87
  146. package/include/libavutil/hwcontext_vaapi.h +0 -117
  147. package/include/libavutil/hwcontext_vdpau.h +0 -44
  148. package/include/libavutil/hwcontext_videotoolbox.h +0 -106
  149. package/include/libavutil/hwcontext_vulkan.h +0 -382
  150. package/include/libavutil/iamf.h +0 -690
  151. package/include/libavutil/imgutils.h +0 -377
  152. package/include/libavutil/intfloat.h +0 -77
  153. package/include/libavutil/intreadwrite.h +0 -677
  154. package/include/libavutil/lfg.h +0 -81
  155. package/include/libavutil/log.h +0 -387
  156. package/include/libavutil/lzo.h +0 -66
  157. package/include/libavutil/macros.h +0 -80
  158. package/include/libavutil/mastering_display_metadata.h +0 -137
  159. package/include/libavutil/mathematics.h +0 -300
  160. package/include/libavutil/md5.h +0 -89
  161. package/include/libavutil/mem.h +0 -607
  162. package/include/libavutil/motion_vector.h +0 -57
  163. package/include/libavutil/murmur3.h +0 -115
  164. package/include/libavutil/opt.h +0 -1187
  165. package/include/libavutil/parseutils.h +0 -197
  166. package/include/libavutil/pixdesc.h +0 -440
  167. package/include/libavutil/pixelutils.h +0 -51
  168. package/include/libavutil/pixfmt.h +0 -716
  169. package/include/libavutil/random_seed.h +0 -57
  170. package/include/libavutil/rational.h +0 -225
  171. package/include/libavutil/rc4.h +0 -69
  172. package/include/libavutil/replaygain.h +0 -50
  173. package/include/libavutil/ripemd.h +0 -83
  174. package/include/libavutil/samplefmt.h +0 -269
  175. package/include/libavutil/sha.h +0 -90
  176. package/include/libavutil/sha512.h +0 -92
  177. package/include/libavutil/spherical.h +0 -243
  178. package/include/libavutil/stereo3d.h +0 -325
  179. package/include/libavutil/tea.h +0 -71
  180. package/include/libavutil/threadmessage.h +0 -115
  181. package/include/libavutil/time.h +0 -56
  182. package/include/libavutil/timecode.h +0 -199
  183. package/include/libavutil/timestamp.h +0 -85
  184. package/include/libavutil/tree.h +0 -137
  185. package/include/libavutil/twofish.h +0 -70
  186. package/include/libavutil/tx.h +0 -210
  187. package/include/libavutil/uuid.h +0 -146
  188. package/include/libavutil/version.h +0 -124
  189. package/include/libavutil/video_enc_params.h +0 -171
  190. package/include/libavutil/video_hint.h +0 -107
  191. package/include/libavutil/xtea.h +0 -94
  192. package/include/libpostproc/postprocess.h +0 -107
  193. package/include/libpostproc/version.h +0 -46
  194. package/include/libpostproc/version_major.h +0 -31
  195. package/include/libswresample/swresample.h +0 -587
  196. package/include/libswresample/version.h +0 -46
  197. package/include/libswresample/version_major.h +0 -31
  198. package/include/libswscale/swscale.h +0 -460
  199. package/include/libswscale/version.h +0 -44
  200. package/include/libswscale/version_major.h +0 -35
  201. package/include/ogg/config_types.h +0 -26
  202. package/include/ogg/ogg.h +0 -209
  203. package/include/ogg/os_types.h +0 -158
  204. package/include/opus/opus.h +0 -1099
  205. package/include/opus/opus_defines.h +0 -830
  206. package/include/opus/opus_multistream.h +0 -660
  207. package/include/opus/opus_projection.h +0 -568
  208. package/include/opus/opus_types.h +0 -166
  209. package/include/svt-av1/EbDebugMacros.h +0 -88
  210. package/include/svt-av1/EbSvtAv1.h +0 -462
  211. package/include/svt-av1/EbSvtAv1Enc.h +0 -1112
  212. package/include/svt-av1/EbSvtAv1ErrorCodes.h +0 -67
  213. package/include/svt-av1/EbSvtAv1ExtFrameBuf.h +0 -64
  214. package/include/svt-av1/EbSvtAv1Formats.h +0 -126
  215. package/include/svt-av1/EbSvtAv1Metadata.h +0 -156
  216. package/include/vorbis/codec.h +0 -242
  217. package/include/vorbis/vorbisenc.h +0 -435
  218. package/include/vorbis/vorbisfile.h +0 -205
  219. package/include/vpx/vp8.h +0 -136
  220. package/include/vpx/vp8cx.h +0 -1118
  221. package/include/vpx/vp8dx.h +0 -228
  222. package/include/vpx/vpx_codec.h +0 -475
  223. package/include/vpx/vpx_decoder.h +0 -367
  224. package/include/vpx/vpx_encoder.h +0 -1150
  225. package/include/vpx/vpx_ext_ratectrl.h +0 -590
  226. package/include/vpx/vpx_frame_buffer.h +0 -83
  227. package/include/vpx/vpx_image.h +0 -221
  228. package/include/vpx/vpx_integer.h +0 -40
  229. package/include/vpx/vpx_tpl.h +0 -68
  230. package/include/x264.h +0 -1027
  231. package/include/x264_config.h +0 -6
  232. package/include/x265.h +0 -2737
  233. package/include/x265_config.h +0 -34
  234. /package/{include → lib/pkgconfig}/index.js +0 -0
package/include/ogg/ogg.h DELETED
@@ -1,209 +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-2007 *
9
- * by the Xiph.Org Foundation http://www.xiph.org/ *
10
- * *
11
- ********************************************************************
12
-
13
- function: toplevel libogg include
14
-
15
- ********************************************************************/
16
- #ifndef _OGG_H
17
- #define _OGG_H
18
-
19
- #ifdef __cplusplus
20
- extern "C" {
21
- #endif
22
-
23
- #include <stddef.h>
24
- #include <ogg/os_types.h>
25
-
26
- typedef struct {
27
- void *iov_base;
28
- size_t iov_len;
29
- } ogg_iovec_t;
30
-
31
- typedef struct {
32
- long endbyte;
33
- int endbit;
34
-
35
- unsigned char *buffer;
36
- unsigned char *ptr;
37
- long storage;
38
- } oggpack_buffer;
39
-
40
- /* ogg_page is used to encapsulate the data in one Ogg bitstream page *****/
41
-
42
- typedef struct {
43
- unsigned char *header;
44
- long header_len;
45
- unsigned char *body;
46
- long body_len;
47
- } ogg_page;
48
-
49
- /* ogg_stream_state contains the current encode/decode state of a logical
50
- Ogg bitstream **********************************************************/
51
-
52
- typedef struct {
53
- unsigned char *body_data; /* bytes from packet bodies */
54
- long body_storage; /* storage elements allocated */
55
- long body_fill; /* elements stored; fill mark */
56
- long body_returned; /* elements of fill returned */
57
-
58
-
59
- int *lacing_vals; /* The values that will go to the segment table */
60
- ogg_int64_t *granule_vals; /* granulepos values for headers. Not compact
61
- this way, but it is simple coupled to the
62
- lacing fifo */
63
- long lacing_storage;
64
- long lacing_fill;
65
- long lacing_packet;
66
- long lacing_returned;
67
-
68
- unsigned char header[282]; /* working space for header encode */
69
- int header_fill;
70
-
71
- int e_o_s; /* set when we have buffered the last packet in the
72
- logical bitstream */
73
- int b_o_s; /* set after we've written the initial page
74
- of a logical bitstream */
75
- long serialno;
76
- long pageno;
77
- ogg_int64_t packetno; /* sequence number for decode; the framing
78
- knows where there's a hole in the data,
79
- but we need coupling so that the codec
80
- (which is in a separate abstraction
81
- layer) also knows about the gap */
82
- ogg_int64_t granulepos;
83
-
84
- } ogg_stream_state;
85
-
86
- /* ogg_packet is used to encapsulate the data and metadata belonging
87
- to a single raw Ogg/Vorbis packet *************************************/
88
-
89
- typedef struct {
90
- unsigned char *packet;
91
- long bytes;
92
- long b_o_s;
93
- long e_o_s;
94
-
95
- ogg_int64_t granulepos;
96
-
97
- ogg_int64_t packetno; /* sequence number for decode; the framing
98
- knows where there's a hole in the data,
99
- but we need coupling so that the codec
100
- (which is in a separate abstraction
101
- layer) also knows about the gap */
102
- } ogg_packet;
103
-
104
- typedef struct {
105
- unsigned char *data;
106
- int storage;
107
- int fill;
108
- int returned;
109
-
110
- int unsynced;
111
- int headerbytes;
112
- int bodybytes;
113
- } ogg_sync_state;
114
-
115
- /* Ogg BITSTREAM PRIMITIVES: bitstream ************************/
116
-
117
- extern void oggpack_writeinit(oggpack_buffer *b);
118
- extern int oggpack_writecheck(oggpack_buffer *b);
119
- extern void oggpack_writetrunc(oggpack_buffer *b,long bits);
120
- extern void oggpack_writealign(oggpack_buffer *b);
121
- extern void oggpack_writecopy(oggpack_buffer *b,void *source,long bits);
122
- extern void oggpack_reset(oggpack_buffer *b);
123
- extern void oggpack_writeclear(oggpack_buffer *b);
124
- extern void oggpack_readinit(oggpack_buffer *b,unsigned char *buf,int bytes);
125
- extern void oggpack_write(oggpack_buffer *b,unsigned long value,int bits);
126
- extern long oggpack_look(oggpack_buffer *b,int bits);
127
- extern long oggpack_look1(oggpack_buffer *b);
128
- extern void oggpack_adv(oggpack_buffer *b,int bits);
129
- extern void oggpack_adv1(oggpack_buffer *b);
130
- extern long oggpack_read(oggpack_buffer *b,int bits);
131
- extern long oggpack_read1(oggpack_buffer *b);
132
- extern long oggpack_bytes(oggpack_buffer *b);
133
- extern long oggpack_bits(oggpack_buffer *b);
134
- extern unsigned char *oggpack_get_buffer(oggpack_buffer *b);
135
-
136
- extern void oggpackB_writeinit(oggpack_buffer *b);
137
- extern int oggpackB_writecheck(oggpack_buffer *b);
138
- extern void oggpackB_writetrunc(oggpack_buffer *b,long bits);
139
- extern void oggpackB_writealign(oggpack_buffer *b);
140
- extern void oggpackB_writecopy(oggpack_buffer *b,void *source,long bits);
141
- extern void oggpackB_reset(oggpack_buffer *b);
142
- extern void oggpackB_writeclear(oggpack_buffer *b);
143
- extern void oggpackB_readinit(oggpack_buffer *b,unsigned char *buf,int bytes);
144
- extern void oggpackB_write(oggpack_buffer *b,unsigned long value,int bits);
145
- extern long oggpackB_look(oggpack_buffer *b,int bits);
146
- extern long oggpackB_look1(oggpack_buffer *b);
147
- extern void oggpackB_adv(oggpack_buffer *b,int bits);
148
- extern void oggpackB_adv1(oggpack_buffer *b);
149
- extern long oggpackB_read(oggpack_buffer *b,int bits);
150
- extern long oggpackB_read1(oggpack_buffer *b);
151
- extern long oggpackB_bytes(oggpack_buffer *b);
152
- extern long oggpackB_bits(oggpack_buffer *b);
153
- extern unsigned char *oggpackB_get_buffer(oggpack_buffer *b);
154
-
155
- /* Ogg BITSTREAM PRIMITIVES: encoding **************************/
156
-
157
- extern int ogg_stream_packetin(ogg_stream_state *os, ogg_packet *op);
158
- extern int ogg_stream_iovecin(ogg_stream_state *os, ogg_iovec_t *iov,
159
- int count, long e_o_s, ogg_int64_t granulepos);
160
- extern int ogg_stream_pageout(ogg_stream_state *os, ogg_page *og);
161
- extern int ogg_stream_pageout_fill(ogg_stream_state *os, ogg_page *og, int nfill);
162
- extern int ogg_stream_flush(ogg_stream_state *os, ogg_page *og);
163
- extern int ogg_stream_flush_fill(ogg_stream_state *os, ogg_page *og, int nfill);
164
-
165
- /* Ogg BITSTREAM PRIMITIVES: decoding **************************/
166
-
167
- extern int ogg_sync_init(ogg_sync_state *oy);
168
- extern int ogg_sync_clear(ogg_sync_state *oy);
169
- extern int ogg_sync_reset(ogg_sync_state *oy);
170
- extern int ogg_sync_destroy(ogg_sync_state *oy);
171
- extern int ogg_sync_check(ogg_sync_state *oy);
172
-
173
- extern char *ogg_sync_buffer(ogg_sync_state *oy, long size);
174
- extern int ogg_sync_wrote(ogg_sync_state *oy, long bytes);
175
- extern long ogg_sync_pageseek(ogg_sync_state *oy,ogg_page *og);
176
- extern int ogg_sync_pageout(ogg_sync_state *oy, ogg_page *og);
177
- extern int ogg_stream_pagein(ogg_stream_state *os, ogg_page *og);
178
- extern int ogg_stream_packetout(ogg_stream_state *os,ogg_packet *op);
179
- extern int ogg_stream_packetpeek(ogg_stream_state *os,ogg_packet *op);
180
-
181
- /* Ogg BITSTREAM PRIMITIVES: general ***************************/
182
-
183
- extern int ogg_stream_init(ogg_stream_state *os,int serialno);
184
- extern int ogg_stream_clear(ogg_stream_state *os);
185
- extern int ogg_stream_reset(ogg_stream_state *os);
186
- extern int ogg_stream_reset_serialno(ogg_stream_state *os,int serialno);
187
- extern int ogg_stream_destroy(ogg_stream_state *os);
188
- extern int ogg_stream_check(ogg_stream_state *os);
189
- extern int ogg_stream_eos(ogg_stream_state *os);
190
-
191
- extern void ogg_page_checksum_set(ogg_page *og);
192
-
193
- extern int ogg_page_version(const ogg_page *og);
194
- extern int ogg_page_continued(const ogg_page *og);
195
- extern int ogg_page_bos(const ogg_page *og);
196
- extern int ogg_page_eos(const ogg_page *og);
197
- extern ogg_int64_t ogg_page_granulepos(const ogg_page *og);
198
- extern int ogg_page_serialno(const ogg_page *og);
199
- extern long ogg_page_pageno(const ogg_page *og);
200
- extern int ogg_page_packets(const ogg_page *og);
201
-
202
- extern void ogg_packet_clear(ogg_packet *op);
203
-
204
-
205
- #ifdef __cplusplus
206
- }
207
- #endif
208
-
209
- #endif /* _OGG_H */
@@ -1,158 +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-2002 *
9
- * by the Xiph.Org Foundation http://www.xiph.org/ *
10
- * *
11
- ********************************************************************
12
-
13
- function: Define a consistent set of types on each platform.
14
-
15
- ********************************************************************/
16
- #ifndef _OS_TYPES_H
17
- #define _OS_TYPES_H
18
-
19
- /* make it easy on the folks that want to compile the libs with a
20
- different malloc than stdlib */
21
- #define _ogg_malloc malloc
22
- #define _ogg_calloc calloc
23
- #define _ogg_realloc realloc
24
- #define _ogg_free free
25
-
26
- #if defined(_WIN32)
27
-
28
- # if defined(__CYGWIN__)
29
- # include <stdint.h>
30
- typedef int16_t ogg_int16_t;
31
- typedef uint16_t ogg_uint16_t;
32
- typedef int32_t ogg_int32_t;
33
- typedef uint32_t ogg_uint32_t;
34
- typedef int64_t ogg_int64_t;
35
- typedef uint64_t ogg_uint64_t;
36
- # elif defined(__MINGW32__)
37
- # include <sys/types.h>
38
- typedef short ogg_int16_t;
39
- typedef unsigned short ogg_uint16_t;
40
- typedef int ogg_int32_t;
41
- typedef unsigned int ogg_uint32_t;
42
- typedef long long ogg_int64_t;
43
- typedef unsigned long long ogg_uint64_t;
44
- # elif defined(__MWERKS__)
45
- typedef long long ogg_int64_t;
46
- typedef unsigned long long ogg_uint64_t;
47
- typedef int ogg_int32_t;
48
- typedef unsigned int ogg_uint32_t;
49
- typedef short ogg_int16_t;
50
- typedef unsigned short ogg_uint16_t;
51
- # else
52
- # if defined(_MSC_VER) && (_MSC_VER >= 1800) /* MSVC 2013 and newer */
53
- # include <stdint.h>
54
- typedef int16_t ogg_int16_t;
55
- typedef uint16_t ogg_uint16_t;
56
- typedef int32_t ogg_int32_t;
57
- typedef uint32_t ogg_uint32_t;
58
- typedef int64_t ogg_int64_t;
59
- typedef uint64_t ogg_uint64_t;
60
- # else
61
- /* MSVC/Borland */
62
- typedef __int64 ogg_int64_t;
63
- typedef __int32 ogg_int32_t;
64
- typedef unsigned __int32 ogg_uint32_t;
65
- typedef unsigned __int64 ogg_uint64_t;
66
- typedef __int16 ogg_int16_t;
67
- typedef unsigned __int16 ogg_uint16_t;
68
- # endif
69
- # endif
70
-
71
- #elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */
72
-
73
- # include <sys/types.h>
74
- typedef int16_t ogg_int16_t;
75
- typedef u_int16_t ogg_uint16_t;
76
- typedef int32_t ogg_int32_t;
77
- typedef u_int32_t ogg_uint32_t;
78
- typedef int64_t ogg_int64_t;
79
- typedef u_int64_t ogg_uint64_t;
80
-
81
- #elif defined(__HAIKU__)
82
-
83
- /* Haiku */
84
- # include <sys/types.h>
85
- typedef short ogg_int16_t;
86
- typedef unsigned short ogg_uint16_t;
87
- typedef int ogg_int32_t;
88
- typedef unsigned int ogg_uint32_t;
89
- typedef long long ogg_int64_t;
90
- typedef unsigned long long ogg_uint64_t;
91
-
92
- #elif defined(__BEOS__)
93
-
94
- /* Be */
95
- # include <inttypes.h>
96
- typedef int16_t ogg_int16_t;
97
- typedef uint16_t ogg_uint16_t;
98
- typedef int32_t ogg_int32_t;
99
- typedef uint32_t ogg_uint32_t;
100
- typedef int64_t ogg_int64_t;
101
- typedef uint64_t ogg_uint64_t;
102
-
103
- #elif defined (__EMX__)
104
-
105
- /* OS/2 GCC */
106
- typedef short ogg_int16_t;
107
- typedef unsigned short ogg_uint16_t;
108
- typedef int ogg_int32_t;
109
- typedef unsigned int ogg_uint32_t;
110
- typedef long long ogg_int64_t;
111
- typedef unsigned long long ogg_uint64_t;
112
-
113
-
114
- #elif defined (DJGPP)
115
-
116
- /* DJGPP */
117
- typedef short ogg_int16_t;
118
- typedef int ogg_int32_t;
119
- typedef unsigned int ogg_uint32_t;
120
- typedef long long ogg_int64_t;
121
- typedef unsigned long long ogg_uint64_t;
122
-
123
- #elif defined(R5900)
124
-
125
- /* PS2 EE */
126
- typedef long ogg_int64_t;
127
- typedef unsigned long ogg_uint64_t;
128
- typedef int ogg_int32_t;
129
- typedef unsigned ogg_uint32_t;
130
- typedef short ogg_int16_t;
131
-
132
- #elif defined(__SYMBIAN32__)
133
-
134
- /* Symbian GCC */
135
- typedef signed short ogg_int16_t;
136
- typedef unsigned short ogg_uint16_t;
137
- typedef signed int ogg_int32_t;
138
- typedef unsigned int ogg_uint32_t;
139
- typedef long long int ogg_int64_t;
140
- typedef unsigned long long int ogg_uint64_t;
141
-
142
- #elif defined(__TMS320C6X__)
143
-
144
- /* TI C64x compiler */
145
- typedef signed short ogg_int16_t;
146
- typedef unsigned short ogg_uint16_t;
147
- typedef signed int ogg_int32_t;
148
- typedef unsigned int ogg_uint32_t;
149
- typedef long long int ogg_int64_t;
150
- typedef unsigned long long int ogg_uint64_t;
151
-
152
- #else
153
-
154
- # include <ogg/config_types.h>
155
-
156
- #endif
157
-
158
- #endif /* _OS_TYPES_H */