1 | # 1 "libavcodec/cabac.c" |
---|
2 | # 1 "libavcodec/cabac.c" 1 |
---|
3 | # 1 "<built-in>" 1 |
---|
4 | # 1 "<built-in>" 3 |
---|
5 | # 139 "<built-in>" 3 |
---|
6 | # 1 "<command line>" 1 |
---|
7 | # 1 "<built-in>" 2 |
---|
8 | # 1 "libavcodec/cabac.c" 2 |
---|
9 | # 27 "libavcodec/cabac.c" |
---|
10 | # 1 "/usr/include/string.h" 1 3 4 |
---|
11 | # 61 "/usr/include/string.h" 3 4 |
---|
12 | # 1 "/usr/include/_types.h" 1 3 4 |
---|
13 | # 27 "/usr/include/_types.h" 3 4 |
---|
14 | # 1 "/usr/include/sys/_types.h" 1 3 4 |
---|
15 | # 32 "/usr/include/sys/_types.h" 3 4 |
---|
16 | # 1 "/usr/include/sys/cdefs.h" 1 3 4 |
---|
17 | # 417 "/usr/include/sys/cdefs.h" 3 4 |
---|
18 | # 1 "/usr/include/sys/_symbol_aliasing.h" 1 3 4 |
---|
19 | # 418 "/usr/include/sys/cdefs.h" 2 3 4 |
---|
20 | # 494 "/usr/include/sys/cdefs.h" 3 4 |
---|
21 | # 1 "/usr/include/sys/_posix_availability.h" 1 3 4 |
---|
22 | # 495 "/usr/include/sys/cdefs.h" 2 3 4 |
---|
23 | # 33 "/usr/include/sys/_types.h" 2 3 4 |
---|
24 | # 1 "/usr/include/machine/_types.h" 1 3 4 |
---|
25 | # 32 "/usr/include/machine/_types.h" 3 4 |
---|
26 | # 1 "/usr/include/i386/_types.h" 1 3 4 |
---|
27 | # 37 "/usr/include/i386/_types.h" 3 4 |
---|
28 | typedef signed char __int8_t; |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | typedef unsigned char __uint8_t; |
---|
33 | typedef short __int16_t; |
---|
34 | typedef unsigned short __uint16_t; |
---|
35 | typedef int __int32_t; |
---|
36 | typedef unsigned int __uint32_t; |
---|
37 | typedef long long __int64_t; |
---|
38 | typedef unsigned long long __uint64_t; |
---|
39 | |
---|
40 | typedef long __darwin_intptr_t; |
---|
41 | typedef unsigned int __darwin_natural_t; |
---|
42 | # 70 "/usr/include/i386/_types.h" 3 4 |
---|
43 | typedef int __darwin_ct_rune_t; |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | typedef union { |
---|
50 | char __mbstate8[128]; |
---|
51 | long long _mbstateL; |
---|
52 | } __mbstate_t; |
---|
53 | |
---|
54 | typedef __mbstate_t __darwin_mbstate_t; |
---|
55 | |
---|
56 | |
---|
57 | typedef int __darwin_ptrdiff_t; |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | typedef long unsigned int __darwin_size_t; |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | |
---|
69 | typedef __builtin_va_list __darwin_va_list; |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | |
---|
74 | |
---|
75 | typedef int __darwin_wchar_t; |
---|
76 | |
---|
77 | |
---|
78 | |
---|
79 | |
---|
80 | typedef __darwin_wchar_t __darwin_rune_t; |
---|
81 | |
---|
82 | |
---|
83 | typedef int __darwin_wint_t; |
---|
84 | |
---|
85 | |
---|
86 | |
---|
87 | |
---|
88 | typedef unsigned long __darwin_clock_t; |
---|
89 | typedef __uint32_t __darwin_socklen_t; |
---|
90 | typedef long __darwin_ssize_t; |
---|
91 | typedef long __darwin_time_t; |
---|
92 | # 33 "/usr/include/machine/_types.h" 2 3 4 |
---|
93 | # 34 "/usr/include/sys/_types.h" 2 3 4 |
---|
94 | # 58 "/usr/include/sys/_types.h" 3 4 |
---|
95 | struct __darwin_pthread_handler_rec |
---|
96 | { |
---|
97 | void (*__routine)(void *); |
---|
98 | void *__arg; |
---|
99 | struct __darwin_pthread_handler_rec *__next; |
---|
100 | }; |
---|
101 | struct _opaque_pthread_attr_t { long __sig; char __opaque[36]; }; |
---|
102 | struct _opaque_pthread_cond_t { long __sig; char __opaque[24]; }; |
---|
103 | struct _opaque_pthread_condattr_t { long __sig; char __opaque[4]; }; |
---|
104 | struct _opaque_pthread_mutex_t { long __sig; char __opaque[40]; }; |
---|
105 | struct _opaque_pthread_mutexattr_t { long __sig; char __opaque[8]; }; |
---|
106 | struct _opaque_pthread_once_t { long __sig; char __opaque[4]; }; |
---|
107 | struct _opaque_pthread_rwlock_t { long __sig; char __opaque[124]; }; |
---|
108 | struct _opaque_pthread_rwlockattr_t { long __sig; char __opaque[12]; }; |
---|
109 | struct _opaque_pthread_t { long __sig; struct __darwin_pthread_handler_rec *__cleanup_stack; char __opaque[596]; }; |
---|
110 | # 94 "/usr/include/sys/_types.h" 3 4 |
---|
111 | typedef __int64_t __darwin_blkcnt_t; |
---|
112 | typedef __int32_t __darwin_blksize_t; |
---|
113 | typedef __int32_t __darwin_dev_t; |
---|
114 | typedef unsigned int __darwin_fsblkcnt_t; |
---|
115 | typedef unsigned int __darwin_fsfilcnt_t; |
---|
116 | typedef __uint32_t __darwin_gid_t; |
---|
117 | typedef __uint32_t __darwin_id_t; |
---|
118 | typedef __uint64_t __darwin_ino64_t; |
---|
119 | |
---|
120 | typedef __darwin_ino64_t __darwin_ino_t; |
---|
121 | |
---|
122 | |
---|
123 | |
---|
124 | typedef __darwin_natural_t __darwin_mach_port_name_t; |
---|
125 | typedef __darwin_mach_port_name_t __darwin_mach_port_t; |
---|
126 | typedef __uint16_t __darwin_mode_t; |
---|
127 | typedef __int64_t __darwin_off_t; |
---|
128 | typedef __int32_t __darwin_pid_t; |
---|
129 | typedef struct _opaque_pthread_attr_t |
---|
130 | __darwin_pthread_attr_t; |
---|
131 | typedef struct _opaque_pthread_cond_t |
---|
132 | __darwin_pthread_cond_t; |
---|
133 | typedef struct _opaque_pthread_condattr_t |
---|
134 | __darwin_pthread_condattr_t; |
---|
135 | typedef unsigned long __darwin_pthread_key_t; |
---|
136 | typedef struct _opaque_pthread_mutex_t |
---|
137 | __darwin_pthread_mutex_t; |
---|
138 | typedef struct _opaque_pthread_mutexattr_t |
---|
139 | __darwin_pthread_mutexattr_t; |
---|
140 | typedef struct _opaque_pthread_once_t |
---|
141 | __darwin_pthread_once_t; |
---|
142 | typedef struct _opaque_pthread_rwlock_t |
---|
143 | __darwin_pthread_rwlock_t; |
---|
144 | typedef struct _opaque_pthread_rwlockattr_t |
---|
145 | __darwin_pthread_rwlockattr_t; |
---|
146 | typedef struct _opaque_pthread_t |
---|
147 | *__darwin_pthread_t; |
---|
148 | typedef __uint32_t __darwin_sigset_t; |
---|
149 | typedef __int32_t __darwin_suseconds_t; |
---|
150 | typedef __uint32_t __darwin_uid_t; |
---|
151 | typedef __uint32_t __darwin_useconds_t; |
---|
152 | typedef unsigned char __darwin_uuid_t[16]; |
---|
153 | typedef char __darwin_uuid_string_t[37]; |
---|
154 | # 28 "/usr/include/_types.h" 2 3 4 |
---|
155 | # 39 "/usr/include/_types.h" 3 4 |
---|
156 | typedef int __darwin_nl_item; |
---|
157 | typedef int __darwin_wctrans_t; |
---|
158 | |
---|
159 | |
---|
160 | |
---|
161 | typedef unsigned long __darwin_wctype_t; |
---|
162 | # 62 "/usr/include/string.h" 2 3 4 |
---|
163 | |
---|
164 | |
---|
165 | # 1 "/usr/include/Availability.h" 1 3 4 |
---|
166 | # 141 "/usr/include/Availability.h" 3 4 |
---|
167 | # 1 "/usr/include/AvailabilityInternal.h" 1 3 4 |
---|
168 | # 142 "/usr/include/Availability.h" 2 3 4 |
---|
169 | # 65 "/usr/include/string.h" 2 3 4 |
---|
170 | |
---|
171 | |
---|
172 | |
---|
173 | typedef __darwin_size_t size_t; |
---|
174 | # 80 "/usr/include/string.h" 3 4 |
---|
175 | void *memchr(const void *, int, size_t); |
---|
176 | int memcmp(const void *, const void *, size_t); |
---|
177 | void *memcpy(void *, const void *, size_t); |
---|
178 | void *memmove(void *, const void *, size_t); |
---|
179 | void *memset(void *, int, size_t); |
---|
180 | char *strcat(char *, const char *); |
---|
181 | char *strchr(const char *, int); |
---|
182 | int strcmp(const char *, const char *); |
---|
183 | int strcoll(const char *, const char *); |
---|
184 | char *strcpy(char *, const char *); |
---|
185 | size_t strcspn(const char *, const char *); |
---|
186 | char *strerror(int) __asm("_" "strerror" "$UNIX2003"); |
---|
187 | size_t strlen(const char *); |
---|
188 | char *strncat(char *, const char *, size_t); |
---|
189 | int strncmp(const char *, const char *, size_t); |
---|
190 | char *strncpy(char *, const char *, size_t); |
---|
191 | char *strpbrk(const char *, const char *); |
---|
192 | char *strrchr(const char *, int); |
---|
193 | size_t strspn(const char *, const char *); |
---|
194 | char *strstr(const char *, const char *); |
---|
195 | char *strtok(char *, const char *); |
---|
196 | size_t strxfrm(char *, const char *, size_t); |
---|
197 | # 114 "/usr/include/string.h" 3 4 |
---|
198 | char *strtok_r(char *, const char *, char **); |
---|
199 | # 126 "/usr/include/string.h" 3 4 |
---|
200 | int strerror_r(int, char *, size_t); |
---|
201 | char *strdup(const char *); |
---|
202 | void *memccpy(void *, const void *, int, size_t); |
---|
203 | # 140 "/usr/include/string.h" 3 4 |
---|
204 | char *stpcpy(char *, const char *); |
---|
205 | char *stpncpy(char *, const char *, size_t) __attribute__((visibility("default"))); |
---|
206 | char *strndup(const char *, size_t) __attribute__((visibility("default"))); |
---|
207 | size_t strnlen(const char *, size_t) __attribute__((visibility("default"))); |
---|
208 | char *strsignal(int sig); |
---|
209 | # 155 "/usr/include/string.h" 3 4 |
---|
210 | typedef __darwin_ssize_t ssize_t; |
---|
211 | |
---|
212 | |
---|
213 | |
---|
214 | void *memmem(const void *, size_t, const void *, size_t) __attribute__((visibility("default"))); |
---|
215 | void memset_pattern4(void *, const void *, size_t) __attribute__((visibility("default"))); |
---|
216 | void memset_pattern8(void *, const void *, size_t) __attribute__((visibility("default"))); |
---|
217 | void memset_pattern16(void *, const void *, size_t) __attribute__((visibility("default"))); |
---|
218 | |
---|
219 | char *strcasestr(const char *, const char *); |
---|
220 | char *strnstr(const char *, const char *, size_t); |
---|
221 | size_t strlcat(char *, const char *, size_t); |
---|
222 | size_t strlcpy(char *, const char *, size_t); |
---|
223 | void strmode(int, char *); |
---|
224 | char *strsep(char **, const char *); |
---|
225 | |
---|
226 | |
---|
227 | void swab(const void * restrict, void * restrict, ssize_t); |
---|
228 | |
---|
229 | |
---|
230 | |
---|
231 | |
---|
232 | |
---|
233 | |
---|
234 | |
---|
235 | |
---|
236 | # 1 "/usr/include/strings.h" 1 3 4 |
---|
237 | # 74 "/usr/include/strings.h" 3 4 |
---|
238 | int bcmp(const void *, const void *, size_t) ; |
---|
239 | void bcopy(const void *, void *, size_t) ; |
---|
240 | void bzero(void *, size_t) ; |
---|
241 | char *index(const char *, int) ; |
---|
242 | char *rindex(const char *, int) ; |
---|
243 | |
---|
244 | |
---|
245 | int ffs(int); |
---|
246 | int strcasecmp(const char *, const char *); |
---|
247 | int strncasecmp(const char *, const char *, size_t); |
---|
248 | |
---|
249 | |
---|
250 | |
---|
251 | |
---|
252 | |
---|
253 | int ffsl(long) __attribute__((visibility("default"))); |
---|
254 | int fls(int) __attribute__((visibility("default"))); |
---|
255 | int flsl(long) __attribute__((visibility("default"))); |
---|
256 | |
---|
257 | |
---|
258 | |
---|
259 | # 1 "/usr/include/string.h" 1 3 4 |
---|
260 | # 95 "/usr/include/strings.h" 2 3 4 |
---|
261 | # 181 "/usr/include/string.h" 2 3 4 |
---|
262 | # 190 "/usr/include/string.h" 3 4 |
---|
263 | # 1 "/usr/include/secure/_string.h" 1 3 4 |
---|
264 | # 32 "/usr/include/secure/_string.h" 3 4 |
---|
265 | # 1 "/usr/include/secure/_common.h" 1 3 4 |
---|
266 | # 33 "/usr/include/secure/_string.h" 2 3 4 |
---|
267 | # 58 "/usr/include/secure/_string.h" 3 4 |
---|
268 | static __inline void * |
---|
269 | __inline_memcpy_chk (void *__dest, const void *__src, size_t __len) |
---|
270 | { |
---|
271 | return __builtin___memcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); |
---|
272 | } |
---|
273 | |
---|
274 | |
---|
275 | |
---|
276 | |
---|
277 | |
---|
278 | |
---|
279 | static __inline void * |
---|
280 | __inline_memmove_chk (void *__dest, const void *__src, size_t __len) |
---|
281 | { |
---|
282 | return __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); |
---|
283 | } |
---|
284 | |
---|
285 | |
---|
286 | |
---|
287 | |
---|
288 | |
---|
289 | |
---|
290 | static __inline void * |
---|
291 | __inline_memset_chk (void *__dest, int __val, size_t __len) |
---|
292 | { |
---|
293 | return __builtin___memset_chk (__dest, __val, __len, __builtin_object_size (__dest, 0)); |
---|
294 | } |
---|
295 | |
---|
296 | |
---|
297 | |
---|
298 | |
---|
299 | |
---|
300 | |
---|
301 | static __inline char * |
---|
302 | __inline_strcpy_chk (char *restrict __dest, const char *restrict __src) |
---|
303 | { |
---|
304 | return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); |
---|
305 | } |
---|
306 | |
---|
307 | |
---|
308 | |
---|
309 | |
---|
310 | |
---|
311 | |
---|
312 | |
---|
313 | static __inline char * |
---|
314 | __inline_stpcpy_chk (char *__dest, const char *__src) |
---|
315 | { |
---|
316 | return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); |
---|
317 | } |
---|
318 | |
---|
319 | |
---|
320 | |
---|
321 | |
---|
322 | |
---|
323 | |
---|
324 | static __inline char * |
---|
325 | __inline_stpncpy_chk (char *restrict __dest, const char *restrict __src, |
---|
326 | size_t __len) |
---|
327 | { |
---|
328 | return __builtin___stpncpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); |
---|
329 | } |
---|
330 | |
---|
331 | |
---|
332 | |
---|
333 | |
---|
334 | |
---|
335 | |
---|
336 | |
---|
337 | static __inline char * |
---|
338 | __inline_strncpy_chk (char *restrict __dest, const char *restrict __src, |
---|
339 | size_t __len) |
---|
340 | { |
---|
341 | return __builtin___strncpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); |
---|
342 | } |
---|
343 | |
---|
344 | |
---|
345 | |
---|
346 | |
---|
347 | |
---|
348 | |
---|
349 | static __inline char * |
---|
350 | __inline_strcat_chk (char *restrict __dest, const char *restrict __src) |
---|
351 | { |
---|
352 | return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); |
---|
353 | } |
---|
354 | |
---|
355 | |
---|
356 | |
---|
357 | |
---|
358 | |
---|
359 | |
---|
360 | |
---|
361 | static __inline char * |
---|
362 | __inline_strncat_chk (char *restrict __dest, const char *restrict __src, |
---|
363 | size_t __len) |
---|
364 | { |
---|
365 | return __builtin___strncat_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); |
---|
366 | } |
---|
367 | # 191 "/usr/include/string.h" 2 3 4 |
---|
368 | # 28 "libavcodec/cabac.c" 2 |
---|
369 | |
---|
370 | # 1 "./libavutil/common.h" 1 |
---|
371 | # 29 "./libavutil/common.h" |
---|
372 | # 1 "/usr/include/ctype.h" 1 3 4 |
---|
373 | # 69 "/usr/include/ctype.h" 3 4 |
---|
374 | # 1 "/usr/include/runetype.h" 1 3 4 |
---|
375 | # 53 "/usr/include/runetype.h" 3 4 |
---|
376 | typedef __darwin_ct_rune_t ct_rune_t; |
---|
377 | |
---|
378 | |
---|
379 | |
---|
380 | |
---|
381 | typedef __darwin_rune_t rune_t; |
---|
382 | |
---|
383 | |
---|
384 | |
---|
385 | |
---|
386 | |
---|
387 | typedef __darwin_wchar_t wchar_t; |
---|
388 | |
---|
389 | |
---|
390 | |
---|
391 | |
---|
392 | |
---|
393 | typedef __darwin_wint_t wint_t; |
---|
394 | # 81 "/usr/include/runetype.h" 3 4 |
---|
395 | typedef struct { |
---|
396 | __darwin_rune_t __min; |
---|
397 | __darwin_rune_t __max; |
---|
398 | __darwin_rune_t __map; |
---|
399 | __uint32_t *__types; |
---|
400 | } _RuneEntry; |
---|
401 | |
---|
402 | typedef struct { |
---|
403 | int __nranges; |
---|
404 | _RuneEntry *__ranges; |
---|
405 | } _RuneRange; |
---|
406 | |
---|
407 | typedef struct { |
---|
408 | char __name[14]; |
---|
409 | __uint32_t __mask; |
---|
410 | } _RuneCharClass; |
---|
411 | |
---|
412 | typedef struct { |
---|
413 | char __magic[8]; |
---|
414 | char __encoding[32]; |
---|
415 | |
---|
416 | __darwin_rune_t (*__sgetrune)(const char *, __darwin_size_t, char const **); |
---|
417 | int (*__sputrune)(__darwin_rune_t, char *, __darwin_size_t, char **); |
---|
418 | __darwin_rune_t __invalid_rune; |
---|
419 | |
---|
420 | __uint32_t __runetype[(1 <<8 )]; |
---|
421 | __darwin_rune_t __maplower[(1 <<8 )]; |
---|
422 | __darwin_rune_t __mapupper[(1 <<8 )]; |
---|
423 | |
---|
424 | |
---|
425 | |
---|
426 | |
---|
427 | |
---|
428 | |
---|
429 | _RuneRange __runetype_ext; |
---|
430 | _RuneRange __maplower_ext; |
---|
431 | _RuneRange __mapupper_ext; |
---|
432 | |
---|
433 | void *__variable; |
---|
434 | int __variable_len; |
---|
435 | |
---|
436 | |
---|
437 | |
---|
438 | |
---|
439 | int __ncharclasses; |
---|
440 | _RuneCharClass *__charclasses; |
---|
441 | } _RuneLocale; |
---|
442 | |
---|
443 | |
---|
444 | |
---|
445 | |
---|
446 | extern _RuneLocale _DefaultRuneLocale; |
---|
447 | extern _RuneLocale *_CurrentRuneLocale; |
---|
448 | # 70 "/usr/include/ctype.h" 2 3 4 |
---|
449 | # 146 "/usr/include/ctype.h" 3 4 |
---|
450 | unsigned long ___runetype(__darwin_ct_rune_t); |
---|
451 | __darwin_ct_rune_t ___tolower(__darwin_ct_rune_t); |
---|
452 | __darwin_ct_rune_t ___toupper(__darwin_ct_rune_t); |
---|
453 | |
---|
454 | |
---|
455 | static __inline int |
---|
456 | isascii(int _c) |
---|
457 | { |
---|
458 | return ((_c & ~0x7F) == 0); |
---|
459 | } |
---|
460 | # 165 "/usr/include/ctype.h" 3 4 |
---|
461 | int __maskrune(__darwin_ct_rune_t, unsigned long); |
---|
462 | |
---|
463 | |
---|
464 | |
---|
465 | static __inline int |
---|
466 | __istype(__darwin_ct_rune_t _c, unsigned long _f) |
---|
467 | { |
---|
468 | |
---|
469 | |
---|
470 | |
---|
471 | return (isascii(_c) ? !!(_DefaultRuneLocale.__runetype[_c] & _f) |
---|
472 | : !!__maskrune(_c, _f)); |
---|
473 | |
---|
474 | } |
---|
475 | |
---|
476 | static __inline __darwin_ct_rune_t |
---|
477 | __isctype(__darwin_ct_rune_t _c, unsigned long _f) |
---|
478 | { |
---|
479 | |
---|
480 | |
---|
481 | |
---|
482 | return (_c < 0 || _c >= (1 <<8 )) ? 0 : |
---|
483 | !!(_DefaultRuneLocale.__runetype[_c] & _f); |
---|
484 | |
---|
485 | } |
---|
486 | # 205 "/usr/include/ctype.h" 3 4 |
---|
487 | __darwin_ct_rune_t __toupper(__darwin_ct_rune_t); |
---|
488 | __darwin_ct_rune_t __tolower(__darwin_ct_rune_t); |
---|
489 | |
---|
490 | |
---|
491 | |
---|
492 | static __inline int |
---|
493 | __wcwidth(__darwin_ct_rune_t _c) |
---|
494 | { |
---|
495 | unsigned int _x; |
---|
496 | |
---|
497 | if (_c == 0) |
---|
498 | return (0); |
---|
499 | _x = (unsigned int)__maskrune(_c, 0xe0000000L|0x00040000L); |
---|
500 | if ((_x & 0xe0000000L) != 0) |
---|
501 | return ((_x & 0xe0000000L) >> 30); |
---|
502 | return ((_x & 0x00040000L) != 0 ? 1 : -1); |
---|
503 | } |
---|
504 | |
---|
505 | |
---|
506 | |
---|
507 | |
---|
508 | |
---|
509 | |
---|
510 | static __inline int |
---|
511 | isalnum(int _c) |
---|
512 | { |
---|
513 | return (__istype(_c, 0x00000100L|0x00000400L)); |
---|
514 | } |
---|
515 | |
---|
516 | static __inline int |
---|
517 | isalpha(int _c) |
---|
518 | { |
---|
519 | return (__istype(_c, 0x00000100L)); |
---|
520 | } |
---|
521 | |
---|
522 | static __inline int |
---|
523 | isblank(int _c) |
---|
524 | { |
---|
525 | return (__istype(_c, 0x00020000L)); |
---|
526 | } |
---|
527 | |
---|
528 | static __inline int |
---|
529 | iscntrl(int _c) |
---|
530 | { |
---|
531 | return (__istype(_c, 0x00000200L)); |
---|
532 | } |
---|
533 | |
---|
534 | |
---|
535 | static __inline int |
---|
536 | isdigit(int _c) |
---|
537 | { |
---|
538 | return (__isctype(_c, 0x00000400L)); |
---|
539 | } |
---|
540 | |
---|
541 | static __inline int |
---|
542 | isgraph(int _c) |
---|
543 | { |
---|
544 | return (__istype(_c, 0x00000800L)); |
---|
545 | } |
---|
546 | |
---|
547 | static __inline int |
---|
548 | islower(int _c) |
---|
549 | { |
---|
550 | return (__istype(_c, 0x00001000L)); |
---|
551 | } |
---|
552 | |
---|
553 | static __inline int |
---|
554 | isprint(int _c) |
---|
555 | { |
---|
556 | return (__istype(_c, 0x00040000L)); |
---|
557 | } |
---|
558 | |
---|
559 | static __inline int |
---|
560 | ispunct(int _c) |
---|
561 | { |
---|
562 | return (__istype(_c, 0x00002000L)); |
---|
563 | } |
---|
564 | |
---|
565 | static __inline int |
---|
566 | isspace(int _c) |
---|
567 | { |
---|
568 | return (__istype(_c, 0x00004000L)); |
---|
569 | } |
---|
570 | |
---|
571 | static __inline int |
---|
572 | isupper(int _c) |
---|
573 | { |
---|
574 | return (__istype(_c, 0x00008000L)); |
---|
575 | } |
---|
576 | |
---|
577 | |
---|
578 | static __inline int |
---|
579 | isxdigit(int _c) |
---|
580 | { |
---|
581 | return (__isctype(_c, 0x00010000L)); |
---|
582 | } |
---|
583 | |
---|
584 | static __inline int |
---|
585 | toascii(int _c) |
---|
586 | { |
---|
587 | return (_c & 0x7F); |
---|
588 | } |
---|
589 | |
---|
590 | static __inline int |
---|
591 | tolower(int _c) |
---|
592 | { |
---|
593 | return (__tolower(_c)); |
---|
594 | } |
---|
595 | |
---|
596 | static __inline int |
---|
597 | toupper(int _c) |
---|
598 | { |
---|
599 | return (__toupper(_c)); |
---|
600 | } |
---|
601 | |
---|
602 | |
---|
603 | static __inline int |
---|
604 | digittoint(int _c) |
---|
605 | { |
---|
606 | return (__maskrune(_c, 0x0F)); |
---|
607 | } |
---|
608 | |
---|
609 | static __inline int |
---|
610 | ishexnumber(int _c) |
---|
611 | { |
---|
612 | return (__istype(_c, 0x00010000L)); |
---|
613 | } |
---|
614 | |
---|
615 | static __inline int |
---|
616 | isideogram(int _c) |
---|
617 | { |
---|
618 | return (__istype(_c, 0x00080000L)); |
---|
619 | } |
---|
620 | |
---|
621 | static __inline int |
---|
622 | isnumber(int _c) |
---|
623 | { |
---|
624 | return (__istype(_c, 0x00000400L)); |
---|
625 | } |
---|
626 | |
---|
627 | static __inline int |
---|
628 | isphonogram(int _c) |
---|
629 | { |
---|
630 | return (__istype(_c, 0x00200000L)); |
---|
631 | } |
---|
632 | |
---|
633 | static __inline int |
---|
634 | isrune(int _c) |
---|
635 | { |
---|
636 | return (__istype(_c, 0xFFFFFFF0L)); |
---|
637 | } |
---|
638 | |
---|
639 | static __inline int |
---|
640 | isspecial(int _c) |
---|
641 | { |
---|
642 | return (__istype(_c, 0x00100000L)); |
---|
643 | } |
---|
644 | # 30 "./libavutil/common.h" 2 |
---|
645 | # 1 "/usr/include/errno.h" 1 3 4 |
---|
646 | # 23 "/usr/include/errno.h" 3 4 |
---|
647 | # 1 "/usr/include/sys/errno.h" 1 3 4 |
---|
648 | # 75 "/usr/include/sys/errno.h" 3 4 |
---|
649 | extern int * __error(void); |
---|
650 | # 24 "/usr/include/errno.h" 2 3 4 |
---|
651 | # 31 "./libavutil/common.h" 2 |
---|
652 | # 1 "/usr/include/inttypes.h" 1 3 4 |
---|
653 | # 247 "/usr/include/inttypes.h" 3 4 |
---|
654 | # 1 "/usr/bin/../lib/clang/3.0/include/stdint.h" 1 3 4 |
---|
655 | # 33 "/usr/bin/../lib/clang/3.0/include/stdint.h" 3 4 |
---|
656 | # 1 "/usr/include/stdint.h" 1 3 4 |
---|
657 | # 20 "/usr/include/stdint.h" 3 4 |
---|
658 | typedef signed char int8_t; |
---|
659 | |
---|
660 | |
---|
661 | |
---|
662 | |
---|
663 | typedef short int16_t; |
---|
664 | |
---|
665 | |
---|
666 | |
---|
667 | |
---|
668 | typedef int int32_t; |
---|
669 | |
---|
670 | |
---|
671 | |
---|
672 | |
---|
673 | typedef long long int64_t; |
---|
674 | |
---|
675 | |
---|
676 | |
---|
677 | |
---|
678 | typedef unsigned char uint8_t; |
---|
679 | |
---|
680 | |
---|
681 | |
---|
682 | |
---|
683 | typedef unsigned short uint16_t; |
---|
684 | |
---|
685 | |
---|
686 | |
---|
687 | |
---|
688 | typedef unsigned int uint32_t; |
---|
689 | |
---|
690 | |
---|
691 | |
---|
692 | |
---|
693 | typedef unsigned long long uint64_t; |
---|
694 | |
---|
695 | |
---|
696 | |
---|
697 | typedef int8_t int_least8_t; |
---|
698 | typedef int16_t int_least16_t; |
---|
699 | typedef int32_t int_least32_t; |
---|
700 | typedef int64_t int_least64_t; |
---|
701 | typedef uint8_t uint_least8_t; |
---|
702 | typedef uint16_t uint_least16_t; |
---|
703 | typedef uint32_t uint_least32_t; |
---|
704 | typedef uint64_t uint_least64_t; |
---|
705 | |
---|
706 | |
---|
707 | |
---|
708 | typedef int8_t int_fast8_t; |
---|
709 | typedef int16_t int_fast16_t; |
---|
710 | typedef int32_t int_fast32_t; |
---|
711 | typedef int64_t int_fast64_t; |
---|
712 | typedef uint8_t uint_fast8_t; |
---|
713 | typedef uint16_t uint_fast16_t; |
---|
714 | typedef uint32_t uint_fast32_t; |
---|
715 | typedef uint64_t uint_fast64_t; |
---|
716 | |
---|
717 | |
---|
718 | |
---|
719 | |
---|
720 | |
---|
721 | |
---|
722 | typedef long intptr_t; |
---|
723 | |
---|
724 | |
---|
725 | |
---|
726 | |
---|
727 | typedef unsigned long uintptr_t; |
---|
728 | |
---|
729 | |
---|
730 | |
---|
731 | |
---|
732 | |
---|
733 | |
---|
734 | |
---|
735 | typedef long long int intmax_t; |
---|
736 | # 106 "/usr/include/stdint.h" 3 4 |
---|
737 | typedef long long unsigned int uintmax_t; |
---|
738 | # 34 "/usr/bin/../lib/clang/3.0/include/stdint.h" 2 3 4 |
---|
739 | # 248 "/usr/include/inttypes.h" 2 3 4 |
---|
740 | # 260 "/usr/include/inttypes.h" 3 4 |
---|
741 | extern intmax_t imaxabs(intmax_t j); |
---|
742 | |
---|
743 | |
---|
744 | typedef struct { |
---|
745 | intmax_t quot; |
---|
746 | intmax_t rem; |
---|
747 | } imaxdiv_t; |
---|
748 | |
---|
749 | extern imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom); |
---|
750 | |
---|
751 | |
---|
752 | extern intmax_t strtoimax(const char * restrict nptr, char ** restrict endptr, int base); |
---|
753 | extern uintmax_t strtoumax(const char * restrict nptr, char ** restrict endptr, int base); |
---|
754 | # 282 "/usr/include/inttypes.h" 3 4 |
---|
755 | extern intmax_t wcstoimax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base); |
---|
756 | extern uintmax_t wcstoumax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base); |
---|
757 | # 32 "./libavutil/common.h" 2 |
---|
758 | # 1 "/usr/bin/../lib/clang/3.0/include/limits.h" 1 3 4 |
---|
759 | # 38 "/usr/bin/../lib/clang/3.0/include/limits.h" 3 4 |
---|
760 | # 1 "/usr/include/limits.h" 1 3 4 |
---|
761 | # 64 "/usr/include/limits.h" 3 4 |
---|
762 | # 1 "/usr/include/machine/limits.h" 1 3 4 |
---|
763 | |
---|
764 | |
---|
765 | |
---|
766 | |
---|
767 | |
---|
768 | # 1 "/usr/include/i386/limits.h" 1 3 4 |
---|
769 | # 40 "/usr/include/i386/limits.h" 3 4 |
---|
770 | # 1 "/usr/include/i386/_limits.h" 1 3 4 |
---|
771 | # 41 "/usr/include/i386/limits.h" 2 3 4 |
---|
772 | # 7 "/usr/include/machine/limits.h" 2 3 4 |
---|
773 | # 65 "/usr/include/limits.h" 2 3 4 |
---|
774 | # 1 "/usr/include/sys/syslimits.h" 1 3 4 |
---|
775 | # 66 "/usr/include/limits.h" 2 3 4 |
---|
776 | # 39 "/usr/bin/../lib/clang/3.0/include/limits.h" 2 3 4 |
---|
777 | # 33 "./libavutil/common.h" 2 |
---|
778 | # 1 "/usr/include/math.h" 1 3 4 |
---|
779 | # 28 "/usr/include/math.h" 3 4 |
---|
780 | # 1 "/usr/include/architecture/i386/math.h" 1 3 4 |
---|
781 | # 49 "/usr/include/architecture/i386/math.h" 3 4 |
---|
782 | typedef float float_t; |
---|
783 | typedef double double_t; |
---|
784 | # 108 "/usr/include/architecture/i386/math.h" 3 4 |
---|
785 | extern int __math_errhandling ( void ); |
---|
786 | # 128 "/usr/include/architecture/i386/math.h" 3 4 |
---|
787 | extern int __fpclassifyf(float ); |
---|
788 | extern int __fpclassifyd(double ); |
---|
789 | extern int __fpclassify (long double); |
---|
790 | # 163 "/usr/include/architecture/i386/math.h" 3 4 |
---|
791 | static __inline__ int __inline_isfinitef (float ) __attribute__ ((always_inline)); |
---|
792 | static __inline__ int __inline_isfinited (double ) __attribute__ ((always_inline)); |
---|
793 | static __inline__ int __inline_isfinite (long double) __attribute__ ((always_inline)); |
---|
794 | static __inline__ int __inline_isinff (float ) __attribute__ ((always_inline)); |
---|
795 | static __inline__ int __inline_isinfd (double ) __attribute__ ((always_inline)); |
---|
796 | static __inline__ int __inline_isinf (long double) __attribute__ ((always_inline)); |
---|
797 | static __inline__ int __inline_isnanf (float ) __attribute__ ((always_inline)); |
---|
798 | static __inline__ int __inline_isnand (double ) __attribute__ ((always_inline)); |
---|
799 | static __inline__ int __inline_isnan (long double) __attribute__ ((always_inline)); |
---|
800 | static __inline__ int __inline_isnormalf (float ) __attribute__ ((always_inline)); |
---|
801 | static __inline__ int __inline_isnormald (double ) __attribute__ ((always_inline)); |
---|
802 | static __inline__ int __inline_isnormal (long double) __attribute__ ((always_inline)); |
---|
803 | static __inline__ int __inline_signbitf (float ) __attribute__ ((always_inline)); |
---|
804 | static __inline__ int __inline_signbitd (double ) __attribute__ ((always_inline)); |
---|
805 | static __inline__ int __inline_signbit (long double) __attribute__ ((always_inline)); |
---|
806 | |
---|
807 | static __inline__ int __inline_isinff( float __x ) { return __builtin_fabsf(__x) == __builtin_inff(); } |
---|
808 | static __inline__ int __inline_isinfd( double __x ) { return __builtin_fabs(__x) == __builtin_inf(); } |
---|
809 | static __inline__ int __inline_isinf( long double __x ) { return __builtin_fabsl(__x) == __builtin_infl(); } |
---|
810 | static __inline__ int __inline_isfinitef( float __x ) { return __x == __x && __builtin_fabsf(__x) != __builtin_inff(); } |
---|
811 | static __inline__ int __inline_isfinited( double __x ) { return __x == __x && __builtin_fabs(__x) != __builtin_inf(); } |
---|
812 | static __inline__ int __inline_isfinite( long double __x ) { return __x == __x && __builtin_fabsl(__x) != __builtin_infl(); } |
---|
813 | static __inline__ int __inline_isnanf( float __x ) { return __x != __x; } |
---|
814 | static __inline__ int __inline_isnand( double __x ) { return __x != __x; } |
---|
815 | static __inline__ int __inline_isnan( long double __x ) { return __x != __x; } |
---|
816 | static __inline__ int __inline_signbitf( float __x ) { union{ float __f; unsigned int __u; }__u; __u.__f = __x; return (int)(__u.__u >> 31); } |
---|
817 | static __inline__ int __inline_signbitd( double __x ) { union{ double __f; unsigned int __u[2]; }__u; __u.__f = __x; return (int)(__u.__u[1] >> 31); } |
---|
818 | static __inline__ int __inline_signbit( long double __x ){ union{ long double __ld; struct{ unsigned int __m[2]; short __sexp; }__p; }__u; __u.__ld = __x; return (int) (((unsigned short) __u.__p.__sexp) >> 15); } |
---|
819 | static __inline__ int __inline_isnormalf( float __x ) { float fabsf = __builtin_fabsf(__x); if( __x != __x ) return 0; return fabsf < __builtin_inff() && fabsf >= 1.17549435e-38F; } |
---|
820 | static __inline__ int __inline_isnormald( double __x ) { double fabsf = __builtin_fabs(__x); if( __x != __x ) return 0; return fabsf < __builtin_inf() && fabsf >= 2.2250738585072014e-308; } |
---|
821 | static __inline__ int __inline_isnormal( long double __x ) { long double fabsf = __builtin_fabsl(__x); if( __x != __x ) return 0; return fabsf < __builtin_infl() && fabsf >= 3.36210314311209350626e-4932L; } |
---|
822 | # 253 "/usr/include/architecture/i386/math.h" 3 4 |
---|
823 | extern double acos( double ); |
---|
824 | extern float acosf( float ); |
---|
825 | |
---|
826 | extern double asin( double ); |
---|
827 | extern float asinf( float ); |
---|
828 | |
---|
829 | extern double atan( double ); |
---|
830 | extern float atanf( float ); |
---|
831 | |
---|
832 | extern double atan2( double, double ); |
---|
833 | extern float atan2f( float, float ); |
---|
834 | |
---|
835 | extern double cos( double ); |
---|
836 | extern float cosf( float ); |
---|
837 | |
---|
838 | extern double sin( double ); |
---|
839 | extern float sinf( float ); |
---|
840 | |
---|
841 | extern double tan( double ); |
---|
842 | extern float tanf( float ); |
---|
843 | |
---|
844 | extern double acosh( double ); |
---|
845 | extern float acoshf( float ); |
---|
846 | |
---|
847 | extern double asinh( double ); |
---|
848 | extern float asinhf( float ); |
---|
849 | |
---|
850 | extern double atanh( double ); |
---|
851 | extern float atanhf( float ); |
---|
852 | |
---|
853 | extern double cosh( double ); |
---|
854 | extern float coshf( float ); |
---|
855 | |
---|
856 | extern double sinh( double ); |
---|
857 | extern float sinhf( float ); |
---|
858 | |
---|
859 | extern double tanh( double ); |
---|
860 | extern float tanhf( float ); |
---|
861 | |
---|
862 | extern double exp ( double ); |
---|
863 | extern float expf ( float ); |
---|
864 | |
---|
865 | extern double exp2 ( double ); |
---|
866 | extern float exp2f ( float ); |
---|
867 | |
---|
868 | extern double expm1 ( double ); |
---|
869 | extern float expm1f ( float ); |
---|
870 | |
---|
871 | extern double log ( double ); |
---|
872 | extern float logf ( float ); |
---|
873 | |
---|
874 | extern double log10 ( double ); |
---|
875 | extern float log10f ( float ); |
---|
876 | |
---|
877 | extern double log2 ( double ); |
---|
878 | extern float log2f ( float ); |
---|
879 | |
---|
880 | extern double log1p ( double ); |
---|
881 | extern float log1pf ( float ); |
---|
882 | |
---|
883 | extern double logb ( double ); |
---|
884 | extern float logbf ( float ); |
---|
885 | |
---|
886 | extern double modf ( double, double * ); |
---|
887 | extern float modff ( float, float * ); |
---|
888 | |
---|
889 | extern double ldexp ( double, int ); |
---|
890 | extern float ldexpf ( float, int ); |
---|
891 | |
---|
892 | extern double frexp ( double, int * ); |
---|
893 | extern float frexpf ( float, int * ); |
---|
894 | |
---|
895 | extern int ilogb ( double ); |
---|
896 | extern int ilogbf ( float ); |
---|
897 | |
---|
898 | extern double scalbn ( double, int ); |
---|
899 | extern float scalbnf ( float, int ); |
---|
900 | |
---|
901 | extern double scalbln ( double, long int ); |
---|
902 | extern float scalblnf ( float, long int ); |
---|
903 | |
---|
904 | extern double fabs( double ); |
---|
905 | extern float fabsf( float ); |
---|
906 | |
---|
907 | extern double cbrt( double ); |
---|
908 | extern float cbrtf( float ); |
---|
909 | |
---|
910 | extern double hypot ( double, double ); |
---|
911 | extern float hypotf ( float, float ); |
---|
912 | |
---|
913 | extern double pow ( double, double ); |
---|
914 | extern float powf ( float, float ); |
---|
915 | |
---|
916 | extern double sqrt( double ); |
---|
917 | extern float sqrtf( float ); |
---|
918 | |
---|
919 | extern double erf( double ); |
---|
920 | extern float erff( float ); |
---|
921 | |
---|
922 | extern double erfc( double ); |
---|
923 | extern float erfcf( float ); |
---|
924 | |
---|
925 | |
---|
926 | |
---|
927 | |
---|
928 | |
---|
929 | |
---|
930 | extern double lgamma( double ); |
---|
931 | extern float lgammaf( float ); |
---|
932 | |
---|
933 | extern double tgamma( double ); |
---|
934 | extern float tgammaf( float ); |
---|
935 | |
---|
936 | extern double ceil ( double ); |
---|
937 | extern float ceilf ( float ); |
---|
938 | |
---|
939 | extern double floor ( double ); |
---|
940 | extern float floorf ( float ); |
---|
941 | |
---|
942 | extern double nearbyint ( double ); |
---|
943 | extern float nearbyintf ( float ); |
---|
944 | |
---|
945 | extern double rint ( double ); |
---|
946 | extern float rintf ( float ); |
---|
947 | |
---|
948 | extern long int lrint ( double ); |
---|
949 | extern long int lrintf ( float ); |
---|
950 | |
---|
951 | extern double round ( double ); |
---|
952 | extern float roundf ( float ); |
---|
953 | |
---|
954 | extern long int lround ( double ); |
---|
955 | extern long int lroundf ( float ); |
---|
956 | |
---|
957 | |
---|
958 | |
---|
959 | extern long long int llrint ( double ); |
---|
960 | extern long long int llrintf ( float ); |
---|
961 | extern long long int llround ( double ); |
---|
962 | extern long long int llroundf ( float ); |
---|
963 | |
---|
964 | |
---|
965 | extern double trunc ( double ); |
---|
966 | extern float truncf ( float ); |
---|
967 | |
---|
968 | extern double fmod ( double, double ); |
---|
969 | extern float fmodf ( float, float ); |
---|
970 | |
---|
971 | extern double remainder ( double, double ); |
---|
972 | extern float remainderf ( float, float ); |
---|
973 | |
---|
974 | extern double remquo ( double, double, int * ); |
---|
975 | extern float remquof ( float, float, int * ); |
---|
976 | |
---|
977 | extern double copysign ( double, double ); |
---|
978 | extern float copysignf ( float, float ); |
---|
979 | |
---|
980 | extern double nan( const char * ); |
---|
981 | extern float nanf( const char * ); |
---|
982 | |
---|
983 | extern double nextafter ( double, double ); |
---|
984 | extern float nextafterf ( float, float ); |
---|
985 | |
---|
986 | extern double fdim ( double, double ); |
---|
987 | extern float fdimf ( float, float ); |
---|
988 | |
---|
989 | extern double fmax ( double, double ); |
---|
990 | extern float fmaxf ( float, float ); |
---|
991 | |
---|
992 | extern double fmin ( double, double ); |
---|
993 | extern float fminf ( float, float ); |
---|
994 | |
---|
995 | extern double fma ( double, double, double ); |
---|
996 | extern float fmaf ( float, float, float ); |
---|
997 | |
---|
998 | extern long double acosl(long double); |
---|
999 | extern long double asinl(long double); |
---|
1000 | extern long double atanl(long double); |
---|
1001 | extern long double atan2l(long double, long double); |
---|
1002 | extern long double cosl(long double); |
---|
1003 | extern long double sinl(long double); |
---|
1004 | extern long double tanl(long double); |
---|
1005 | extern long double acoshl(long double); |
---|
1006 | extern long double asinhl(long double); |
---|
1007 | extern long double atanhl(long double); |
---|
1008 | extern long double coshl(long double); |
---|
1009 | extern long double sinhl(long double); |
---|
1010 | extern long double tanhl(long double); |
---|
1011 | extern long double expl(long double); |
---|
1012 | extern long double exp2l(long double); |
---|
1013 | extern long double expm1l(long double); |
---|
1014 | extern long double logl(long double); |
---|
1015 | extern long double log10l(long double); |
---|
1016 | extern long double log2l(long double); |
---|
1017 | extern long double log1pl(long double); |
---|
1018 | extern long double logbl(long double); |
---|
1019 | extern long double modfl(long double, long double *); |
---|
1020 | extern long double ldexpl(long double, int); |
---|
1021 | extern long double frexpl(long double, int *); |
---|
1022 | extern int ilogbl(long double); |
---|
1023 | extern long double scalbnl(long double, int); |
---|
1024 | extern long double scalblnl(long double, long int); |
---|
1025 | extern long double fabsl(long double); |
---|
1026 | extern long double cbrtl(long double); |
---|
1027 | extern long double hypotl(long double, long double); |
---|
1028 | extern long double powl(long double, long double); |
---|
1029 | extern long double sqrtl(long double); |
---|
1030 | extern long double erfl(long double); |
---|
1031 | extern long double erfcl(long double); |
---|
1032 | |
---|
1033 | |
---|
1034 | |
---|
1035 | |
---|
1036 | |
---|
1037 | |
---|
1038 | extern long double lgammal(long double); |
---|
1039 | |
---|
1040 | extern long double tgammal(long double); |
---|
1041 | extern long double ceill(long double); |
---|
1042 | extern long double floorl(long double); |
---|
1043 | extern long double nearbyintl(long double); |
---|
1044 | extern long double rintl(long double); |
---|
1045 | extern long int lrintl(long double); |
---|
1046 | extern long double roundl(long double); |
---|
1047 | extern long int lroundl(long double); |
---|
1048 | |
---|
1049 | |
---|
1050 | |
---|
1051 | extern long long int llrintl(long double); |
---|
1052 | extern long long int llroundl(long double); |
---|
1053 | |
---|
1054 | |
---|
1055 | extern long double truncl(long double); |
---|
1056 | extern long double fmodl(long double, long double); |
---|
1057 | extern long double remainderl(long double, long double); |
---|
1058 | extern long double remquol(long double, long double, int *); |
---|
1059 | extern long double copysignl(long double, long double); |
---|
1060 | extern long double nanl(const char *); |
---|
1061 | extern long double nextafterl(long double, long double); |
---|
1062 | extern double nexttoward(double, long double); |
---|
1063 | extern float nexttowardf(float, long double); |
---|
1064 | extern long double nexttowardl(long double, long double); |
---|
1065 | extern long double fdiml(long double, long double); |
---|
1066 | extern long double fmaxl(long double, long double); |
---|
1067 | extern long double fminl(long double, long double); |
---|
1068 | extern long double fmal(long double, long double, long double); |
---|
1069 | # 507 "/usr/include/architecture/i386/math.h" 3 4 |
---|
1070 | extern double __inf( void ); |
---|
1071 | extern float __inff( void ); |
---|
1072 | extern long double __infl( void ); |
---|
1073 | extern float __nan( void ); |
---|
1074 | |
---|
1075 | |
---|
1076 | extern double j0 ( double ); |
---|
1077 | |
---|
1078 | extern double j1 ( double ); |
---|
1079 | |
---|
1080 | extern double jn ( int, double ); |
---|
1081 | |
---|
1082 | extern double y0 ( double ); |
---|
1083 | |
---|
1084 | extern double y1 ( double ); |
---|
1085 | |
---|
1086 | extern double yn ( int, double ); |
---|
1087 | |
---|
1088 | extern double scalb ( double, double ); |
---|
1089 | # 543 "/usr/include/architecture/i386/math.h" 3 4 |
---|
1090 | extern int signgam; |
---|
1091 | # 558 "/usr/include/architecture/i386/math.h" 3 4 |
---|
1092 | extern long int rinttol ( double ); |
---|
1093 | |
---|
1094 | |
---|
1095 | extern long int roundtol ( double ); |
---|
1096 | # 570 "/usr/include/architecture/i386/math.h" 3 4 |
---|
1097 | struct exception { |
---|
1098 | int type; |
---|
1099 | char *name; |
---|
1100 | double arg1; |
---|
1101 | double arg2; |
---|
1102 | double retval; |
---|
1103 | }; |
---|
1104 | # 29 "/usr/include/math.h" 2 3 4 |
---|
1105 | # 34 "./libavutil/common.h" 2 |
---|
1106 | # 1 "/usr/include/stdio.h" 1 3 4 |
---|
1107 | # 73 "/usr/include/stdio.h" 3 4 |
---|
1108 | typedef __darwin_va_list va_list; |
---|
1109 | # 85 "/usr/include/stdio.h" 3 4 |
---|
1110 | typedef __darwin_off_t fpos_t; |
---|
1111 | # 96 "/usr/include/stdio.h" 3 4 |
---|
1112 | struct __sbuf { |
---|
1113 | unsigned char *_base; |
---|
1114 | int _size; |
---|
1115 | }; |
---|
1116 | |
---|
1117 | |
---|
1118 | struct __sFILEX; |
---|
1119 | # 130 "/usr/include/stdio.h" 3 4 |
---|
1120 | typedef struct __sFILE { |
---|
1121 | unsigned char *_p; |
---|
1122 | int _r; |
---|
1123 | int _w; |
---|
1124 | short _flags; |
---|
1125 | short _file; |
---|
1126 | struct __sbuf _bf; |
---|
1127 | int _lbfsize; |
---|
1128 | |
---|
1129 | |
---|
1130 | void *_cookie; |
---|
1131 | int (*_close)(void *); |
---|
1132 | int (*_read) (void *, char *, int); |
---|
1133 | fpos_t (*_seek) (void *, fpos_t, int); |
---|
1134 | int (*_write)(void *, const char *, int); |
---|
1135 | |
---|
1136 | |
---|
1137 | struct __sbuf _ub; |
---|
1138 | struct __sFILEX *_extra; |
---|
1139 | int _ur; |
---|
1140 | |
---|
1141 | |
---|
1142 | unsigned char _ubuf[3]; |
---|
1143 | unsigned char _nbuf[1]; |
---|
1144 | |
---|
1145 | |
---|
1146 | struct __sbuf _lb; |
---|
1147 | |
---|
1148 | |
---|
1149 | int _blksize; |
---|
1150 | fpos_t _offset; |
---|
1151 | } FILE; |
---|
1152 | |
---|
1153 | |
---|
1154 | extern FILE *__stdinp; |
---|
1155 | extern FILE *__stdoutp; |
---|
1156 | extern FILE *__stderrp; |
---|
1157 | # 239 "/usr/include/stdio.h" 3 4 |
---|
1158 | void clearerr(FILE *); |
---|
1159 | int fclose(FILE *); |
---|
1160 | int feof(FILE *); |
---|
1161 | int ferror(FILE *); |
---|
1162 | int fflush(FILE *); |
---|
1163 | int fgetc(FILE *); |
---|
1164 | int fgetpos(FILE * restrict, fpos_t *); |
---|
1165 | char *fgets(char * restrict, int, FILE *); |
---|
1166 | |
---|
1167 | |
---|
1168 | |
---|
1169 | FILE *fopen(const char * restrict, const char * restrict) __asm("_" "fopen" "$UNIX2003"); |
---|
1170 | |
---|
1171 | int fprintf(FILE * restrict, const char * restrict, ...) __attribute__((__format__ (__printf__, 2, 3))); |
---|
1172 | int fputc(int, FILE *); |
---|
1173 | int fputs(const char * restrict, FILE * restrict) __asm("_" "fputs" "$UNIX2003"); |
---|
1174 | size_t fread(void * restrict, size_t, size_t, FILE * restrict); |
---|
1175 | FILE *freopen(const char * restrict, const char * restrict, |
---|
1176 | FILE * restrict) __asm("_" "freopen" "$UNIX2003"); |
---|
1177 | int fscanf(FILE * restrict, const char * restrict, ...) __attribute__((__format__ (__scanf__, 2, 3))); |
---|
1178 | int fseek(FILE *, long, int); |
---|
1179 | int fsetpos(FILE *, const fpos_t *); |
---|
1180 | long ftell(FILE *); |
---|
1181 | size_t fwrite(const void * restrict, size_t, size_t, FILE * restrict) __asm("_" "fwrite" "$UNIX2003"); |
---|
1182 | int getc(FILE *); |
---|
1183 | int getchar(void); |
---|
1184 | char *gets(char *); |
---|
1185 | void perror(const char *); |
---|
1186 | int printf(const char * restrict, ...) __attribute__((__format__ (__printf__, 1, 2))); |
---|
1187 | int putc(int, FILE *); |
---|
1188 | int putchar(int); |
---|
1189 | int puts(const char *); |
---|
1190 | int remove(const char *); |
---|
1191 | int rename (const char *, const char *); |
---|
1192 | void rewind(FILE *); |
---|
1193 | int scanf(const char * restrict, ...) __attribute__((__format__ (__scanf__, 1, 2))); |
---|
1194 | void setbuf(FILE * restrict, char * restrict); |
---|
1195 | int setvbuf(FILE * restrict, char * restrict, int, size_t); |
---|
1196 | int sprintf(char * restrict, const char * restrict, ...) __attribute__((__format__ (__printf__, 2, 3))); |
---|
1197 | int sscanf(const char * restrict, const char * restrict, ...) __attribute__((__format__ (__scanf__, 2, 3))); |
---|
1198 | FILE *tmpfile(void); |
---|
1199 | char *tmpnam(char *); |
---|
1200 | int ungetc(int, FILE *); |
---|
1201 | int vfprintf(FILE * restrict, const char * restrict, va_list) __attribute__((__format__ (__printf__, 2, 0))); |
---|
1202 | int vprintf(const char * restrict, va_list) __attribute__((__format__ (__printf__, 1, 0))); |
---|
1203 | int vsprintf(char * restrict, const char * restrict, va_list) __attribute__((__format__ (__printf__, 2, 0))); |
---|
1204 | # 300 "/usr/include/stdio.h" 3 4 |
---|
1205 | char *ctermid(char *); |
---|
1206 | |
---|
1207 | |
---|
1208 | |
---|
1209 | |
---|
1210 | |
---|
1211 | FILE *fdopen(int, const char *) __asm("_" "fdopen" "$UNIX2003"); |
---|
1212 | |
---|
1213 | int fileno(FILE *); |
---|
1214 | # 319 "/usr/include/stdio.h" 3 4 |
---|
1215 | int pclose(FILE *); |
---|
1216 | |
---|
1217 | |
---|
1218 | |
---|
1219 | FILE *popen(const char *, const char *) __asm("_" "popen" "$UNIX2003"); |
---|
1220 | # 341 "/usr/include/stdio.h" 3 4 |
---|
1221 | int __srget(FILE *); |
---|
1222 | int __svfscanf(FILE *, const char *, va_list) __attribute__((__format__ (__scanf__, 2, 0))); |
---|
1223 | int __swbuf(int, FILE *); |
---|
1224 | # 352 "/usr/include/stdio.h" 3 4 |
---|
1225 | static __inline int __sputc(int _c, FILE *_p) { |
---|
1226 | if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) |
---|
1227 | return (*_p->_p++ = _c); |
---|
1228 | else |
---|
1229 | return (__swbuf(_c, _p)); |
---|
1230 | } |
---|
1231 | # 378 "/usr/include/stdio.h" 3 4 |
---|
1232 | void flockfile(FILE *); |
---|
1233 | int ftrylockfile(FILE *); |
---|
1234 | void funlockfile(FILE *); |
---|
1235 | int getc_unlocked(FILE *); |
---|
1236 | int getchar_unlocked(void); |
---|
1237 | int putc_unlocked(int, FILE *); |
---|
1238 | int putchar_unlocked(int); |
---|
1239 | |
---|
1240 | |
---|
1241 | |
---|
1242 | int getw(FILE *); |
---|
1243 | int putw(int, FILE *); |
---|
1244 | |
---|
1245 | |
---|
1246 | char *tempnam(const char *, const char *) __asm("_" "tempnam" "$UNIX2003"); |
---|
1247 | # 414 "/usr/include/stdio.h" 3 4 |
---|
1248 | typedef __darwin_off_t off_t; |
---|
1249 | |
---|
1250 | |
---|
1251 | |
---|
1252 | int fseeko(FILE *, off_t, int); |
---|
1253 | off_t ftello(FILE *); |
---|
1254 | |
---|
1255 | |
---|
1256 | |
---|
1257 | |
---|
1258 | |
---|
1259 | int snprintf(char * restrict, size_t, const char * restrict, ...) __attribute__((__format__ (__printf__, 3, 4))); |
---|
1260 | int vfscanf(FILE * restrict, const char * restrict, va_list) __attribute__((__format__ (__scanf__, 2, 0))); |
---|
1261 | int vscanf(const char * restrict, va_list) __attribute__((__format__ (__scanf__, 1, 0))); |
---|
1262 | int vsnprintf(char * restrict, size_t, const char * restrict, va_list) __attribute__((__format__ (__printf__, 3, 0))); |
---|
1263 | int vsscanf(const char * restrict, const char * restrict, va_list) __attribute__((__format__ (__scanf__, 2, 0))); |
---|
1264 | # 446 "/usr/include/stdio.h" 3 4 |
---|
1265 | int dprintf(int, const char * restrict, ...) __attribute__((__format__ (__printf__, 2, 3))) __attribute__((visibility("default"))); |
---|
1266 | int vdprintf(int, const char * restrict, va_list) __attribute__((__format__ (__printf__, 2, 0))) __attribute__((visibility("default"))); |
---|
1267 | ssize_t getdelim(char ** restrict, size_t * restrict, int, FILE * restrict) __attribute__((visibility("default"))); |
---|
1268 | ssize_t getline(char ** restrict, size_t * restrict, FILE * restrict) __attribute__((visibility("default"))); |
---|
1269 | # 459 "/usr/include/stdio.h" 3 4 |
---|
1270 | extern const int sys_nerr; |
---|
1271 | extern const char *const sys_errlist[]; |
---|
1272 | |
---|
1273 | int asprintf(char **, const char *, ...) __attribute__((__format__ (__printf__, 2, 3))); |
---|
1274 | char *ctermid_r(char *); |
---|
1275 | char *fgetln(FILE *, size_t *); |
---|
1276 | const char *fmtcheck(const char *, const char *); |
---|
1277 | int fpurge(FILE *); |
---|
1278 | void setbuffer(FILE *, char *, int); |
---|
1279 | int setlinebuf(FILE *); |
---|
1280 | int vasprintf(char **, const char *, va_list) __attribute__((__format__ (__printf__, 2, 0))); |
---|
1281 | FILE *zopen(const char *, const char *, int); |
---|
1282 | |
---|
1283 | |
---|
1284 | |
---|
1285 | |
---|
1286 | |
---|
1287 | FILE *funopen(const void *, |
---|
1288 | int (*)(void *, char *, int), |
---|
1289 | int (*)(void *, const char *, int), |
---|
1290 | fpos_t (*)(void *, fpos_t, int), |
---|
1291 | int (*)(void *)); |
---|
1292 | # 499 "/usr/include/stdio.h" 3 4 |
---|
1293 | # 1 "/usr/include/secure/_stdio.h" 1 3 4 |
---|
1294 | # 45 "/usr/include/secure/_stdio.h" 3 4 |
---|
1295 | extern int __sprintf_chk (char * restrict, int, size_t, |
---|
1296 | const char * restrict, ...) |
---|
1297 | ; |
---|
1298 | |
---|
1299 | |
---|
1300 | |
---|
1301 | |
---|
1302 | extern int __snprintf_chk (char * restrict, size_t, int, size_t, |
---|
1303 | const char * restrict, ...) |
---|
1304 | ; |
---|
1305 | |
---|
1306 | |
---|
1307 | |
---|
1308 | |
---|
1309 | |
---|
1310 | extern int __vsprintf_chk (char * restrict, int, size_t, |
---|
1311 | const char * restrict, va_list) |
---|
1312 | ; |
---|
1313 | |
---|
1314 | |
---|
1315 | |
---|
1316 | |
---|
1317 | extern int __vsnprintf_chk (char * restrict, size_t, int, size_t, |
---|
1318 | const char * restrict, va_list) |
---|
1319 | ; |
---|
1320 | # 500 "/usr/include/stdio.h" 2 3 4 |
---|
1321 | # 35 "./libavutil/common.h" 2 |
---|
1322 | # 1 "/usr/include/stdlib.h" 1 3 4 |
---|
1323 | # 65 "/usr/include/stdlib.h" 3 4 |
---|
1324 | # 1 "/usr/include/sys/wait.h" 1 3 4 |
---|
1325 | # 79 "/usr/include/sys/wait.h" 3 4 |
---|
1326 | typedef enum { |
---|
1327 | P_ALL, |
---|
1328 | P_PID, |
---|
1329 | P_PGID |
---|
1330 | } idtype_t; |
---|
1331 | |
---|
1332 | |
---|
1333 | |
---|
1334 | |
---|
1335 | |
---|
1336 | |
---|
1337 | typedef __darwin_pid_t pid_t; |
---|
1338 | |
---|
1339 | |
---|
1340 | |
---|
1341 | |
---|
1342 | typedef __darwin_id_t id_t; |
---|
1343 | # 116 "/usr/include/sys/wait.h" 3 4 |
---|
1344 | # 1 "/usr/include/sys/signal.h" 1 3 4 |
---|
1345 | # 73 "/usr/include/sys/signal.h" 3 4 |
---|
1346 | # 1 "/usr/include/sys/appleapiopts.h" 1 3 4 |
---|
1347 | # 74 "/usr/include/sys/signal.h" 2 3 4 |
---|
1348 | |
---|
1349 | |
---|
1350 | |
---|
1351 | |
---|
1352 | |
---|
1353 | |
---|
1354 | |
---|
1355 | # 1 "/usr/include/machine/signal.h" 1 3 4 |
---|
1356 | # 32 "/usr/include/machine/signal.h" 3 4 |
---|
1357 | # 1 "/usr/include/i386/signal.h" 1 3 4 |
---|
1358 | # 39 "/usr/include/i386/signal.h" 3 4 |
---|
1359 | typedef int sig_atomic_t; |
---|
1360 | # 55 "/usr/include/i386/signal.h" 3 4 |
---|
1361 | # 1 "/usr/include/i386/_structs.h" 1 3 4 |
---|
1362 | # 56 "/usr/include/i386/signal.h" 2 3 4 |
---|
1363 | # 33 "/usr/include/machine/signal.h" 2 3 4 |
---|
1364 | # 82 "/usr/include/sys/signal.h" 2 3 4 |
---|
1365 | # 148 "/usr/include/sys/signal.h" 3 4 |
---|
1366 | # 1 "/usr/include/sys/_structs.h" 1 3 4 |
---|
1367 | # 57 "/usr/include/sys/_structs.h" 3 4 |
---|
1368 | # 1 "/usr/include/machine/_structs.h" 1 3 4 |
---|
1369 | # 29 "/usr/include/machine/_structs.h" 3 4 |
---|
1370 | # 1 "/usr/include/i386/_structs.h" 1 3 4 |
---|
1371 | # 38 "/usr/include/i386/_structs.h" 3 4 |
---|
1372 | # 1 "/usr/include/mach/i386/_structs.h" 1 3 4 |
---|
1373 | # 43 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1374 | struct __darwin_i386_thread_state |
---|
1375 | { |
---|
1376 | unsigned int __eax; |
---|
1377 | unsigned int __ebx; |
---|
1378 | unsigned int __ecx; |
---|
1379 | unsigned int __edx; |
---|
1380 | unsigned int __edi; |
---|
1381 | unsigned int __esi; |
---|
1382 | unsigned int __ebp; |
---|
1383 | unsigned int __esp; |
---|
1384 | unsigned int __ss; |
---|
1385 | unsigned int __eflags; |
---|
1386 | unsigned int __eip; |
---|
1387 | unsigned int __cs; |
---|
1388 | unsigned int __ds; |
---|
1389 | unsigned int __es; |
---|
1390 | unsigned int __fs; |
---|
1391 | unsigned int __gs; |
---|
1392 | }; |
---|
1393 | # 89 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1394 | struct __darwin_fp_control |
---|
1395 | { |
---|
1396 | unsigned short __invalid :1, |
---|
1397 | __denorm :1, |
---|
1398 | __zdiv :1, |
---|
1399 | __ovrfl :1, |
---|
1400 | __undfl :1, |
---|
1401 | __precis :1, |
---|
1402 | :2, |
---|
1403 | __pc :2, |
---|
1404 | |
---|
1405 | |
---|
1406 | |
---|
1407 | |
---|
1408 | |
---|
1409 | __rc :2, |
---|
1410 | |
---|
1411 | |
---|
1412 | |
---|
1413 | |
---|
1414 | |
---|
1415 | |
---|
1416 | :1, |
---|
1417 | :3; |
---|
1418 | }; |
---|
1419 | typedef struct __darwin_fp_control __darwin_fp_control_t; |
---|
1420 | # 147 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1421 | struct __darwin_fp_status |
---|
1422 | { |
---|
1423 | unsigned short __invalid :1, |
---|
1424 | __denorm :1, |
---|
1425 | __zdiv :1, |
---|
1426 | __ovrfl :1, |
---|
1427 | __undfl :1, |
---|
1428 | __precis :1, |
---|
1429 | __stkflt :1, |
---|
1430 | __errsumm :1, |
---|
1431 | __c0 :1, |
---|
1432 | __c1 :1, |
---|
1433 | __c2 :1, |
---|
1434 | __tos :3, |
---|
1435 | __c3 :1, |
---|
1436 | __busy :1; |
---|
1437 | }; |
---|
1438 | typedef struct __darwin_fp_status __darwin_fp_status_t; |
---|
1439 | # 191 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1440 | struct __darwin_mmst_reg |
---|
1441 | { |
---|
1442 | char __mmst_reg[10]; |
---|
1443 | char __mmst_rsrv[6]; |
---|
1444 | }; |
---|
1445 | # 210 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1446 | struct __darwin_xmm_reg |
---|
1447 | { |
---|
1448 | char __xmm_reg[16]; |
---|
1449 | }; |
---|
1450 | # 232 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1451 | struct __darwin_i386_float_state |
---|
1452 | { |
---|
1453 | int __fpu_reserved[2]; |
---|
1454 | struct __darwin_fp_control __fpu_fcw; |
---|
1455 | struct __darwin_fp_status __fpu_fsw; |
---|
1456 | __uint8_t __fpu_ftw; |
---|
1457 | __uint8_t __fpu_rsrv1; |
---|
1458 | __uint16_t __fpu_fop; |
---|
1459 | __uint32_t __fpu_ip; |
---|
1460 | __uint16_t __fpu_cs; |
---|
1461 | __uint16_t __fpu_rsrv2; |
---|
1462 | __uint32_t __fpu_dp; |
---|
1463 | __uint16_t __fpu_ds; |
---|
1464 | __uint16_t __fpu_rsrv3; |
---|
1465 | __uint32_t __fpu_mxcsr; |
---|
1466 | __uint32_t __fpu_mxcsrmask; |
---|
1467 | struct __darwin_mmst_reg __fpu_stmm0; |
---|
1468 | struct __darwin_mmst_reg __fpu_stmm1; |
---|
1469 | struct __darwin_mmst_reg __fpu_stmm2; |
---|
1470 | struct __darwin_mmst_reg __fpu_stmm3; |
---|
1471 | struct __darwin_mmst_reg __fpu_stmm4; |
---|
1472 | struct __darwin_mmst_reg __fpu_stmm5; |
---|
1473 | struct __darwin_mmst_reg __fpu_stmm6; |
---|
1474 | struct __darwin_mmst_reg __fpu_stmm7; |
---|
1475 | struct __darwin_xmm_reg __fpu_xmm0; |
---|
1476 | struct __darwin_xmm_reg __fpu_xmm1; |
---|
1477 | struct __darwin_xmm_reg __fpu_xmm2; |
---|
1478 | struct __darwin_xmm_reg __fpu_xmm3; |
---|
1479 | struct __darwin_xmm_reg __fpu_xmm4; |
---|
1480 | struct __darwin_xmm_reg __fpu_xmm5; |
---|
1481 | struct __darwin_xmm_reg __fpu_xmm6; |
---|
1482 | struct __darwin_xmm_reg __fpu_xmm7; |
---|
1483 | char __fpu_rsrv4[14*16]; |
---|
1484 | int __fpu_reserved1; |
---|
1485 | }; |
---|
1486 | |
---|
1487 | |
---|
1488 | struct __darwin_i386_avx_state |
---|
1489 | { |
---|
1490 | int __fpu_reserved[2]; |
---|
1491 | struct __darwin_fp_control __fpu_fcw; |
---|
1492 | struct __darwin_fp_status __fpu_fsw; |
---|
1493 | __uint8_t __fpu_ftw; |
---|
1494 | __uint8_t __fpu_rsrv1; |
---|
1495 | __uint16_t __fpu_fop; |
---|
1496 | __uint32_t __fpu_ip; |
---|
1497 | __uint16_t __fpu_cs; |
---|
1498 | __uint16_t __fpu_rsrv2; |
---|
1499 | __uint32_t __fpu_dp; |
---|
1500 | __uint16_t __fpu_ds; |
---|
1501 | __uint16_t __fpu_rsrv3; |
---|
1502 | __uint32_t __fpu_mxcsr; |
---|
1503 | __uint32_t __fpu_mxcsrmask; |
---|
1504 | struct __darwin_mmst_reg __fpu_stmm0; |
---|
1505 | struct __darwin_mmst_reg __fpu_stmm1; |
---|
1506 | struct __darwin_mmst_reg __fpu_stmm2; |
---|
1507 | struct __darwin_mmst_reg __fpu_stmm3; |
---|
1508 | struct __darwin_mmst_reg __fpu_stmm4; |
---|
1509 | struct __darwin_mmst_reg __fpu_stmm5; |
---|
1510 | struct __darwin_mmst_reg __fpu_stmm6; |
---|
1511 | struct __darwin_mmst_reg __fpu_stmm7; |
---|
1512 | struct __darwin_xmm_reg __fpu_xmm0; |
---|
1513 | struct __darwin_xmm_reg __fpu_xmm1; |
---|
1514 | struct __darwin_xmm_reg __fpu_xmm2; |
---|
1515 | struct __darwin_xmm_reg __fpu_xmm3; |
---|
1516 | struct __darwin_xmm_reg __fpu_xmm4; |
---|
1517 | struct __darwin_xmm_reg __fpu_xmm5; |
---|
1518 | struct __darwin_xmm_reg __fpu_xmm6; |
---|
1519 | struct __darwin_xmm_reg __fpu_xmm7; |
---|
1520 | char __fpu_rsrv4[14*16]; |
---|
1521 | int __fpu_reserved1; |
---|
1522 | char __avx_reserved1[64]; |
---|
1523 | struct __darwin_xmm_reg __fpu_ymmh0; |
---|
1524 | struct __darwin_xmm_reg __fpu_ymmh1; |
---|
1525 | struct __darwin_xmm_reg __fpu_ymmh2; |
---|
1526 | struct __darwin_xmm_reg __fpu_ymmh3; |
---|
1527 | struct __darwin_xmm_reg __fpu_ymmh4; |
---|
1528 | struct __darwin_xmm_reg __fpu_ymmh5; |
---|
1529 | struct __darwin_xmm_reg __fpu_ymmh6; |
---|
1530 | struct __darwin_xmm_reg __fpu_ymmh7; |
---|
1531 | }; |
---|
1532 | # 402 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1533 | struct __darwin_i386_exception_state |
---|
1534 | { |
---|
1535 | __uint16_t __trapno; |
---|
1536 | __uint16_t __cpu; |
---|
1537 | __uint32_t __err; |
---|
1538 | __uint32_t __faultvaddr; |
---|
1539 | }; |
---|
1540 | # 422 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1541 | struct __darwin_x86_debug_state32 |
---|
1542 | { |
---|
1543 | unsigned int __dr0; |
---|
1544 | unsigned int __dr1; |
---|
1545 | unsigned int __dr2; |
---|
1546 | unsigned int __dr3; |
---|
1547 | unsigned int __dr4; |
---|
1548 | unsigned int __dr5; |
---|
1549 | unsigned int __dr6; |
---|
1550 | unsigned int __dr7; |
---|
1551 | }; |
---|
1552 | # 454 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1553 | struct __darwin_x86_thread_state64 |
---|
1554 | { |
---|
1555 | __uint64_t __rax; |
---|
1556 | __uint64_t __rbx; |
---|
1557 | __uint64_t __rcx; |
---|
1558 | __uint64_t __rdx; |
---|
1559 | __uint64_t __rdi; |
---|
1560 | __uint64_t __rsi; |
---|
1561 | __uint64_t __rbp; |
---|
1562 | __uint64_t __rsp; |
---|
1563 | __uint64_t __r8; |
---|
1564 | __uint64_t __r9; |
---|
1565 | __uint64_t __r10; |
---|
1566 | __uint64_t __r11; |
---|
1567 | __uint64_t __r12; |
---|
1568 | __uint64_t __r13; |
---|
1569 | __uint64_t __r14; |
---|
1570 | __uint64_t __r15; |
---|
1571 | __uint64_t __rip; |
---|
1572 | __uint64_t __rflags; |
---|
1573 | __uint64_t __cs; |
---|
1574 | __uint64_t __fs; |
---|
1575 | __uint64_t __gs; |
---|
1576 | }; |
---|
1577 | # 509 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1578 | struct __darwin_x86_float_state64 |
---|
1579 | { |
---|
1580 | int __fpu_reserved[2]; |
---|
1581 | struct __darwin_fp_control __fpu_fcw; |
---|
1582 | struct __darwin_fp_status __fpu_fsw; |
---|
1583 | __uint8_t __fpu_ftw; |
---|
1584 | __uint8_t __fpu_rsrv1; |
---|
1585 | __uint16_t __fpu_fop; |
---|
1586 | |
---|
1587 | |
---|
1588 | __uint32_t __fpu_ip; |
---|
1589 | __uint16_t __fpu_cs; |
---|
1590 | |
---|
1591 | __uint16_t __fpu_rsrv2; |
---|
1592 | |
---|
1593 | |
---|
1594 | __uint32_t __fpu_dp; |
---|
1595 | __uint16_t __fpu_ds; |
---|
1596 | |
---|
1597 | __uint16_t __fpu_rsrv3; |
---|
1598 | __uint32_t __fpu_mxcsr; |
---|
1599 | __uint32_t __fpu_mxcsrmask; |
---|
1600 | struct __darwin_mmst_reg __fpu_stmm0; |
---|
1601 | struct __darwin_mmst_reg __fpu_stmm1; |
---|
1602 | struct __darwin_mmst_reg __fpu_stmm2; |
---|
1603 | struct __darwin_mmst_reg __fpu_stmm3; |
---|
1604 | struct __darwin_mmst_reg __fpu_stmm4; |
---|
1605 | struct __darwin_mmst_reg __fpu_stmm5; |
---|
1606 | struct __darwin_mmst_reg __fpu_stmm6; |
---|
1607 | struct __darwin_mmst_reg __fpu_stmm7; |
---|
1608 | struct __darwin_xmm_reg __fpu_xmm0; |
---|
1609 | struct __darwin_xmm_reg __fpu_xmm1; |
---|
1610 | struct __darwin_xmm_reg __fpu_xmm2; |
---|
1611 | struct __darwin_xmm_reg __fpu_xmm3; |
---|
1612 | struct __darwin_xmm_reg __fpu_xmm4; |
---|
1613 | struct __darwin_xmm_reg __fpu_xmm5; |
---|
1614 | struct __darwin_xmm_reg __fpu_xmm6; |
---|
1615 | struct __darwin_xmm_reg __fpu_xmm7; |
---|
1616 | struct __darwin_xmm_reg __fpu_xmm8; |
---|
1617 | struct __darwin_xmm_reg __fpu_xmm9; |
---|
1618 | struct __darwin_xmm_reg __fpu_xmm10; |
---|
1619 | struct __darwin_xmm_reg __fpu_xmm11; |
---|
1620 | struct __darwin_xmm_reg __fpu_xmm12; |
---|
1621 | struct __darwin_xmm_reg __fpu_xmm13; |
---|
1622 | struct __darwin_xmm_reg __fpu_xmm14; |
---|
1623 | struct __darwin_xmm_reg __fpu_xmm15; |
---|
1624 | char __fpu_rsrv4[6*16]; |
---|
1625 | int __fpu_reserved1; |
---|
1626 | }; |
---|
1627 | |
---|
1628 | |
---|
1629 | struct __darwin_x86_avx_state64 |
---|
1630 | { |
---|
1631 | int __fpu_reserved[2]; |
---|
1632 | struct __darwin_fp_control __fpu_fcw; |
---|
1633 | struct __darwin_fp_status __fpu_fsw; |
---|
1634 | __uint8_t __fpu_ftw; |
---|
1635 | __uint8_t __fpu_rsrv1; |
---|
1636 | __uint16_t __fpu_fop; |
---|
1637 | |
---|
1638 | |
---|
1639 | __uint32_t __fpu_ip; |
---|
1640 | __uint16_t __fpu_cs; |
---|
1641 | |
---|
1642 | __uint16_t __fpu_rsrv2; |
---|
1643 | |
---|
1644 | |
---|
1645 | __uint32_t __fpu_dp; |
---|
1646 | __uint16_t __fpu_ds; |
---|
1647 | |
---|
1648 | __uint16_t __fpu_rsrv3; |
---|
1649 | __uint32_t __fpu_mxcsr; |
---|
1650 | __uint32_t __fpu_mxcsrmask; |
---|
1651 | struct __darwin_mmst_reg __fpu_stmm0; |
---|
1652 | struct __darwin_mmst_reg __fpu_stmm1; |
---|
1653 | struct __darwin_mmst_reg __fpu_stmm2; |
---|
1654 | struct __darwin_mmst_reg __fpu_stmm3; |
---|
1655 | struct __darwin_mmst_reg __fpu_stmm4; |
---|
1656 | struct __darwin_mmst_reg __fpu_stmm5; |
---|
1657 | struct __darwin_mmst_reg __fpu_stmm6; |
---|
1658 | struct __darwin_mmst_reg __fpu_stmm7; |
---|
1659 | struct __darwin_xmm_reg __fpu_xmm0; |
---|
1660 | struct __darwin_xmm_reg __fpu_xmm1; |
---|
1661 | struct __darwin_xmm_reg __fpu_xmm2; |
---|
1662 | struct __darwin_xmm_reg __fpu_xmm3; |
---|
1663 | struct __darwin_xmm_reg __fpu_xmm4; |
---|
1664 | struct __darwin_xmm_reg __fpu_xmm5; |
---|
1665 | struct __darwin_xmm_reg __fpu_xmm6; |
---|
1666 | struct __darwin_xmm_reg __fpu_xmm7; |
---|
1667 | struct __darwin_xmm_reg __fpu_xmm8; |
---|
1668 | struct __darwin_xmm_reg __fpu_xmm9; |
---|
1669 | struct __darwin_xmm_reg __fpu_xmm10; |
---|
1670 | struct __darwin_xmm_reg __fpu_xmm11; |
---|
1671 | struct __darwin_xmm_reg __fpu_xmm12; |
---|
1672 | struct __darwin_xmm_reg __fpu_xmm13; |
---|
1673 | struct __darwin_xmm_reg __fpu_xmm14; |
---|
1674 | struct __darwin_xmm_reg __fpu_xmm15; |
---|
1675 | char __fpu_rsrv4[6*16]; |
---|
1676 | int __fpu_reserved1; |
---|
1677 | char __avx_reserved1[64]; |
---|
1678 | struct __darwin_xmm_reg __fpu_ymmh0; |
---|
1679 | struct __darwin_xmm_reg __fpu_ymmh1; |
---|
1680 | struct __darwin_xmm_reg __fpu_ymmh2; |
---|
1681 | struct __darwin_xmm_reg __fpu_ymmh3; |
---|
1682 | struct __darwin_xmm_reg __fpu_ymmh4; |
---|
1683 | struct __darwin_xmm_reg __fpu_ymmh5; |
---|
1684 | struct __darwin_xmm_reg __fpu_ymmh6; |
---|
1685 | struct __darwin_xmm_reg __fpu_ymmh7; |
---|
1686 | struct __darwin_xmm_reg __fpu_ymmh8; |
---|
1687 | struct __darwin_xmm_reg __fpu_ymmh9; |
---|
1688 | struct __darwin_xmm_reg __fpu_ymmh10; |
---|
1689 | struct __darwin_xmm_reg __fpu_ymmh11; |
---|
1690 | struct __darwin_xmm_reg __fpu_ymmh12; |
---|
1691 | struct __darwin_xmm_reg __fpu_ymmh13; |
---|
1692 | struct __darwin_xmm_reg __fpu_ymmh14; |
---|
1693 | struct __darwin_xmm_reg __fpu_ymmh15; |
---|
1694 | }; |
---|
1695 | # 751 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1696 | struct __darwin_x86_exception_state64 |
---|
1697 | { |
---|
1698 | __uint16_t __trapno; |
---|
1699 | __uint16_t __cpu; |
---|
1700 | __uint32_t __err; |
---|
1701 | __uint64_t __faultvaddr; |
---|
1702 | }; |
---|
1703 | # 771 "/usr/include/mach/i386/_structs.h" 3 4 |
---|
1704 | struct __darwin_x86_debug_state64 |
---|
1705 | { |
---|
1706 | __uint64_t __dr0; |
---|
1707 | __uint64_t __dr1; |
---|
1708 | __uint64_t __dr2; |
---|
1709 | __uint64_t __dr3; |
---|
1710 | __uint64_t __dr4; |
---|
1711 | __uint64_t __dr5; |
---|
1712 | __uint64_t __dr6; |
---|
1713 | __uint64_t __dr7; |
---|
1714 | }; |
---|
1715 | # 39 "/usr/include/i386/_structs.h" 2 3 4 |
---|
1716 | # 48 "/usr/include/i386/_structs.h" 3 4 |
---|
1717 | struct __darwin_mcontext32 |
---|
1718 | { |
---|
1719 | struct __darwin_i386_exception_state __es; |
---|
1720 | struct __darwin_i386_thread_state __ss; |
---|
1721 | struct __darwin_i386_float_state __fs; |
---|
1722 | }; |
---|
1723 | |
---|
1724 | |
---|
1725 | struct __darwin_mcontext_avx32 |
---|
1726 | { |
---|
1727 | struct __darwin_i386_exception_state __es; |
---|
1728 | struct __darwin_i386_thread_state __ss; |
---|
1729 | struct __darwin_i386_avx_state __fs; |
---|
1730 | }; |
---|
1731 | # 86 "/usr/include/i386/_structs.h" 3 4 |
---|
1732 | struct __darwin_mcontext64 |
---|
1733 | { |
---|
1734 | struct __darwin_x86_exception_state64 __es; |
---|
1735 | struct __darwin_x86_thread_state64 __ss; |
---|
1736 | struct __darwin_x86_float_state64 __fs; |
---|
1737 | }; |
---|
1738 | |
---|
1739 | |
---|
1740 | struct __darwin_mcontext_avx64 |
---|
1741 | { |
---|
1742 | struct __darwin_x86_exception_state64 __es; |
---|
1743 | struct __darwin_x86_thread_state64 __ss; |
---|
1744 | struct __darwin_x86_avx_state64 __fs; |
---|
1745 | }; |
---|
1746 | # 130 "/usr/include/i386/_structs.h" 3 4 |
---|
1747 | typedef struct __darwin_mcontext32 *mcontext_t; |
---|
1748 | # 30 "/usr/include/machine/_structs.h" 2 3 4 |
---|
1749 | # 58 "/usr/include/sys/_structs.h" 2 3 4 |
---|
1750 | # 75 "/usr/include/sys/_structs.h" 3 4 |
---|
1751 | struct __darwin_sigaltstack |
---|
1752 | { |
---|
1753 | void *ss_sp; |
---|
1754 | __darwin_size_t ss_size; |
---|
1755 | int ss_flags; |
---|
1756 | }; |
---|
1757 | # 128 "/usr/include/sys/_structs.h" 3 4 |
---|
1758 | struct __darwin_ucontext |
---|
1759 | { |
---|
1760 | int uc_onstack; |
---|
1761 | __darwin_sigset_t uc_sigmask; |
---|
1762 | struct __darwin_sigaltstack uc_stack; |
---|
1763 | struct __darwin_ucontext *uc_link; |
---|
1764 | __darwin_size_t uc_mcsize; |
---|
1765 | struct __darwin_mcontext32 *uc_mcontext; |
---|
1766 | |
---|
1767 | |
---|
1768 | |
---|
1769 | }; |
---|
1770 | # 218 "/usr/include/sys/_structs.h" 3 4 |
---|
1771 | typedef struct __darwin_sigaltstack stack_t; |
---|
1772 | # 227 "/usr/include/sys/_structs.h" 3 4 |
---|
1773 | typedef struct __darwin_ucontext ucontext_t; |
---|
1774 | # 149 "/usr/include/sys/signal.h" 2 3 4 |
---|
1775 | |
---|
1776 | |
---|
1777 | |
---|
1778 | |
---|
1779 | |
---|
1780 | |
---|
1781 | |
---|
1782 | |
---|
1783 | typedef __darwin_pthread_attr_t pthread_attr_t; |
---|
1784 | |
---|
1785 | |
---|
1786 | |
---|
1787 | |
---|
1788 | typedef __darwin_sigset_t sigset_t; |
---|
1789 | # 172 "/usr/include/sys/signal.h" 3 4 |
---|
1790 | typedef __darwin_uid_t uid_t; |
---|
1791 | |
---|
1792 | |
---|
1793 | union sigval { |
---|
1794 | |
---|
1795 | int sival_int; |
---|
1796 | void *sival_ptr; |
---|
1797 | }; |
---|
1798 | |
---|
1799 | |
---|
1800 | |
---|
1801 | |
---|
1802 | |
---|
1803 | struct sigevent { |
---|
1804 | int sigev_notify; |
---|
1805 | int sigev_signo; |
---|
1806 | union sigval sigev_value; |
---|
1807 | void (*sigev_notify_function)(union sigval); |
---|
1808 | pthread_attr_t *sigev_notify_attributes; |
---|
1809 | }; |
---|
1810 | |
---|
1811 | |
---|
1812 | typedef struct __siginfo { |
---|
1813 | int si_signo; |
---|
1814 | int si_errno; |
---|
1815 | int si_code; |
---|
1816 | pid_t si_pid; |
---|
1817 | uid_t si_uid; |
---|
1818 | int si_status; |
---|
1819 | void *si_addr; |
---|
1820 | union sigval si_value; |
---|
1821 | long si_band; |
---|
1822 | unsigned long __pad[7]; |
---|
1823 | } siginfo_t; |
---|
1824 | # 286 "/usr/include/sys/signal.h" 3 4 |
---|
1825 | union __sigaction_u { |
---|
1826 | void (*__sa_handler)(int); |
---|
1827 | void (*__sa_sigaction)(int, struct __siginfo *, |
---|
1828 | void *); |
---|
1829 | }; |
---|
1830 | |
---|
1831 | |
---|
1832 | struct __sigaction { |
---|
1833 | union __sigaction_u __sigaction_u; |
---|
1834 | void (*sa_tramp)(void *, int, int, siginfo_t *, void *); |
---|
1835 | sigset_t sa_mask; |
---|
1836 | int sa_flags; |
---|
1837 | }; |
---|
1838 | |
---|
1839 | |
---|
1840 | |
---|
1841 | |
---|
1842 | struct sigaction { |
---|
1843 | union __sigaction_u __sigaction_u; |
---|
1844 | sigset_t sa_mask; |
---|
1845 | int sa_flags; |
---|
1846 | }; |
---|
1847 | # 348 "/usr/include/sys/signal.h" 3 4 |
---|
1848 | typedef void (*sig_t)(int); |
---|
1849 | # 365 "/usr/include/sys/signal.h" 3 4 |
---|
1850 | struct sigvec { |
---|
1851 | void (*sv_handler)(int); |
---|
1852 | int sv_mask; |
---|
1853 | int sv_flags; |
---|
1854 | }; |
---|
1855 | # 384 "/usr/include/sys/signal.h" 3 4 |
---|
1856 | struct sigstack { |
---|
1857 | char *ss_sp; |
---|
1858 | int ss_onstack; |
---|
1859 | }; |
---|
1860 | # 407 "/usr/include/sys/signal.h" 3 4 |
---|
1861 | void (*signal(int, void (*)(int)))(int); |
---|
1862 | # 117 "/usr/include/sys/wait.h" 2 3 4 |
---|
1863 | # 1 "/usr/include/sys/resource.h" 1 3 4 |
---|
1864 | # 77 "/usr/include/sys/resource.h" 3 4 |
---|
1865 | # 1 "/usr/include/sys/_structs.h" 1 3 4 |
---|
1866 | # 100 "/usr/include/sys/_structs.h" 3 4 |
---|
1867 | struct timeval |
---|
1868 | { |
---|
1869 | __darwin_time_t tv_sec; |
---|
1870 | __darwin_suseconds_t tv_usec; |
---|
1871 | }; |
---|
1872 | # 78 "/usr/include/sys/resource.h" 2 3 4 |
---|
1873 | # 89 "/usr/include/sys/resource.h" 3 4 |
---|
1874 | typedef __uint64_t rlim_t; |
---|
1875 | # 151 "/usr/include/sys/resource.h" 3 4 |
---|
1876 | struct rusage { |
---|
1877 | struct timeval ru_utime; |
---|
1878 | struct timeval ru_stime; |
---|
1879 | # 162 "/usr/include/sys/resource.h" 3 4 |
---|
1880 | long ru_maxrss; |
---|
1881 | |
---|
1882 | long ru_ixrss; |
---|
1883 | long ru_idrss; |
---|
1884 | long ru_isrss; |
---|
1885 | long ru_minflt; |
---|
1886 | long ru_majflt; |
---|
1887 | long ru_nswap; |
---|
1888 | long ru_inblock; |
---|
1889 | long ru_oublock; |
---|
1890 | long ru_msgsnd; |
---|
1891 | long ru_msgrcv; |
---|
1892 | long ru_nsignals; |
---|
1893 | long ru_nvcsw; |
---|
1894 | long ru_nivcsw; |
---|
1895 | |
---|
1896 | |
---|
1897 | }; |
---|
1898 | # 222 "/usr/include/sys/resource.h" 3 4 |
---|
1899 | struct rlimit { |
---|
1900 | rlim_t rlim_cur; |
---|
1901 | rlim_t rlim_max; |
---|
1902 | }; |
---|
1903 | # 245 "/usr/include/sys/resource.h" 3 4 |
---|
1904 | int getpriority(int, id_t); |
---|
1905 | |
---|
1906 | int getiopolicy_np(int, int) __attribute__((visibility("default"))); |
---|
1907 | |
---|
1908 | int getrlimit(int, struct rlimit *) __asm("_" "getrlimit" "$UNIX2003"); |
---|
1909 | int getrusage(int, struct rusage *); |
---|
1910 | int setpriority(int, id_t, int); |
---|
1911 | |
---|
1912 | int setiopolicy_np(int, int, int) __attribute__((visibility("default"))); |
---|
1913 | |
---|
1914 | int setrlimit(int, const struct rlimit *) __asm("_" "setrlimit" "$UNIX2003"); |
---|
1915 | # 118 "/usr/include/sys/wait.h" 2 3 4 |
---|
1916 | # 193 "/usr/include/sys/wait.h" 3 4 |
---|
1917 | # 1 "/usr/include/machine/endian.h" 1 3 4 |
---|
1918 | # 35 "/usr/include/machine/endian.h" 3 4 |
---|
1919 | # 1 "/usr/include/i386/endian.h" 1 3 4 |
---|
1920 | # 99 "/usr/include/i386/endian.h" 3 4 |
---|
1921 | # 1 "/usr/include/sys/_endian.h" 1 3 4 |
---|
1922 | # 124 "/usr/include/sys/_endian.h" 3 4 |
---|
1923 | # 1 "/usr/include/libkern/_OSByteOrder.h" 1 3 4 |
---|
1924 | # 66 "/usr/include/libkern/_OSByteOrder.h" 3 4 |
---|
1925 | # 1 "/usr/include/libkern/i386/_OSByteOrder.h" 1 3 4 |
---|
1926 | # 44 "/usr/include/libkern/i386/_OSByteOrder.h" 3 4 |
---|
1927 | static inline |
---|
1928 | __uint16_t |
---|
1929 | _OSSwapInt16( |
---|
1930 | __uint16_t _data |
---|
1931 | ) |
---|
1932 | { |
---|
1933 | return ((_data << 8) | (_data >> 8)); |
---|
1934 | } |
---|
1935 | |
---|
1936 | static inline |
---|
1937 | __uint32_t |
---|
1938 | _OSSwapInt32( |
---|
1939 | __uint32_t _data |
---|
1940 | ) |
---|
1941 | { |
---|
1942 | |
---|
1943 | return __builtin_bswap32(_data); |
---|
1944 | |
---|
1945 | |
---|
1946 | |
---|
1947 | |
---|
1948 | } |
---|
1949 | |
---|
1950 | |
---|
1951 | static inline |
---|
1952 | __uint64_t |
---|
1953 | _OSSwapInt64( |
---|
1954 | __uint64_t _data |
---|
1955 | ) |
---|
1956 | { |
---|
1957 | return __builtin_bswap64(_data); |
---|
1958 | } |
---|
1959 | # 67 "/usr/include/libkern/_OSByteOrder.h" 2 3 4 |
---|
1960 | # 125 "/usr/include/sys/_endian.h" 2 3 4 |
---|
1961 | # 100 "/usr/include/i386/endian.h" 2 3 4 |
---|
1962 | # 36 "/usr/include/machine/endian.h" 2 3 4 |
---|
1963 | # 194 "/usr/include/sys/wait.h" 2 3 4 |
---|
1964 | |
---|
1965 | |
---|
1966 | |
---|
1967 | |
---|
1968 | |
---|
1969 | |
---|
1970 | |
---|
1971 | union wait { |
---|
1972 | int w_status; |
---|
1973 | |
---|
1974 | |
---|
1975 | |
---|
1976 | struct { |
---|
1977 | |
---|
1978 | unsigned int w_Termsig:7, |
---|
1979 | w_Coredump:1, |
---|
1980 | w_Retcode:8, |
---|
1981 | w_Filler:16; |
---|
1982 | |
---|
1983 | |
---|
1984 | |
---|
1985 | |
---|
1986 | |
---|
1987 | |
---|
1988 | |
---|
1989 | } w_T; |
---|
1990 | |
---|
1991 | |
---|
1992 | |
---|
1993 | |
---|
1994 | |
---|
1995 | struct { |
---|
1996 | |
---|
1997 | unsigned int w_Stopval:8, |
---|
1998 | w_Stopsig:8, |
---|
1999 | w_Filler:16; |
---|
2000 | |
---|
2001 | |
---|
2002 | |
---|
2003 | |
---|
2004 | |
---|
2005 | |
---|
2006 | } w_S; |
---|
2007 | }; |
---|
2008 | # 255 "/usr/include/sys/wait.h" 3 4 |
---|
2009 | pid_t wait(int *) __asm("_" "wait" "$UNIX2003"); |
---|
2010 | pid_t waitpid(pid_t, int *, int) __asm("_" "waitpid" "$UNIX2003"); |
---|
2011 | |
---|
2012 | int waitid(idtype_t, id_t, siginfo_t *, int) __asm("_" "waitid" "$UNIX2003"); |
---|
2013 | |
---|
2014 | |
---|
2015 | pid_t wait3(int *, int, struct rusage *); |
---|
2016 | pid_t wait4(pid_t, int *, int, struct rusage *); |
---|
2017 | # 66 "/usr/include/stdlib.h" 2 3 4 |
---|
2018 | |
---|
2019 | # 1 "/usr/include/alloca.h" 1 3 4 |
---|
2020 | # 36 "/usr/include/alloca.h" 3 4 |
---|
2021 | void *alloca(size_t); |
---|
2022 | # 68 "/usr/include/stdlib.h" 2 3 4 |
---|
2023 | # 97 "/usr/include/stdlib.h" 3 4 |
---|
2024 | typedef struct { |
---|
2025 | int quot; |
---|
2026 | int rem; |
---|
2027 | } div_t; |
---|
2028 | |
---|
2029 | typedef struct { |
---|
2030 | long quot; |
---|
2031 | long rem; |
---|
2032 | } ldiv_t; |
---|
2033 | |
---|
2034 | |
---|
2035 | typedef struct { |
---|
2036 | long long quot; |
---|
2037 | long long rem; |
---|
2038 | } lldiv_t; |
---|
2039 | # 134 "/usr/include/stdlib.h" 3 4 |
---|
2040 | extern int __mb_cur_max; |
---|
2041 | # 145 "/usr/include/stdlib.h" 3 4 |
---|
2042 | void abort(void) __attribute__((__noreturn__)); |
---|
2043 | int abs(int) __attribute__((__const__)); |
---|
2044 | int atexit(void (*)(void)); |
---|
2045 | double atof(const char *); |
---|
2046 | int atoi(const char *); |
---|
2047 | long atol(const char *); |
---|
2048 | |
---|
2049 | long long |
---|
2050 | atoll(const char *); |
---|
2051 | |
---|
2052 | void *bsearch(const void *, const void *, size_t, |
---|
2053 | size_t, int (*)(const void *, const void *)); |
---|
2054 | void *calloc(size_t, size_t); |
---|
2055 | div_t div(int, int) __attribute__((__const__)); |
---|
2056 | void exit(int) __attribute__((__noreturn__)); |
---|
2057 | void free(void *); |
---|
2058 | char *getenv(const char *); |
---|
2059 | long labs(long) __attribute__((__const__)); |
---|
2060 | ldiv_t ldiv(long, long) __attribute__((__const__)); |
---|
2061 | |
---|
2062 | long long |
---|
2063 | llabs(long long); |
---|
2064 | lldiv_t lldiv(long long, long long); |
---|
2065 | |
---|
2066 | void *malloc(size_t); |
---|
2067 | int mblen(const char *, size_t); |
---|
2068 | size_t mbstowcs(wchar_t * restrict , const char * restrict, size_t); |
---|
2069 | int mbtowc(wchar_t * restrict, const char * restrict, size_t); |
---|
2070 | int posix_memalign(void **, size_t, size_t) __attribute__((visibility("default"))); |
---|
2071 | void qsort(void *, size_t, size_t, |
---|
2072 | int (*)(const void *, const void *)); |
---|
2073 | int rand(void); |
---|
2074 | void *realloc(void *, size_t); |
---|
2075 | void srand(unsigned); |
---|
2076 | double strtod(const char *, char **) __asm("_" "strtod" "$UNIX2003"); |
---|
2077 | float strtof(const char *, char **) __asm("_" "strtof" "$UNIX2003"); |
---|
2078 | long strtol(const char *, char **, int); |
---|
2079 | long double |
---|
2080 | strtold(const char *, char **) ; |
---|
2081 | |
---|
2082 | long long |
---|
2083 | strtoll(const char *, char **, int); |
---|
2084 | |
---|
2085 | unsigned long |
---|
2086 | strtoul(const char *, char **, int); |
---|
2087 | |
---|
2088 | unsigned long long |
---|
2089 | strtoull(const char *, char **, int); |
---|
2090 | |
---|
2091 | int system(const char *) __asm("_" "system" "$UNIX2003"); |
---|
2092 | size_t wcstombs(char * restrict, const wchar_t * restrict, size_t); |
---|
2093 | int wctomb(char *, wchar_t); |
---|
2094 | |
---|
2095 | |
---|
2096 | void _Exit(int) __attribute__((__noreturn__)); |
---|
2097 | long a64l(const char *); |
---|
2098 | double drand48(void); |
---|
2099 | char *ecvt(double, int, int *restrict, int *restrict); |
---|
2100 | double erand48(unsigned short[3]); |
---|
2101 | char *fcvt(double, int, int *restrict, int *restrict); |
---|
2102 | char *gcvt(double, int, char *); |
---|
2103 | int getsubopt(char **, char * const *, char **); |
---|
2104 | int grantpt(int); |
---|
2105 | |
---|
2106 | char *initstate(unsigned, char *, size_t); |
---|
2107 | |
---|
2108 | |
---|
2109 | |
---|
2110 | long jrand48(unsigned short[3]); |
---|
2111 | char *l64a(long); |
---|
2112 | void lcong48(unsigned short[7]); |
---|
2113 | long lrand48(void); |
---|
2114 | char *mktemp(char *); |
---|
2115 | int mkstemp(char *); |
---|
2116 | long mrand48(void); |
---|
2117 | long nrand48(unsigned short[3]); |
---|
2118 | int posix_openpt(int); |
---|
2119 | char *ptsname(int); |
---|
2120 | int putenv(char *) __asm("_" "putenv" "$UNIX2003"); |
---|
2121 | long random(void); |
---|
2122 | int rand_r(unsigned *); |
---|
2123 | |
---|
2124 | char *realpath(const char * restrict, char * restrict) __asm("_" "realpath" "$DARWIN_EXTSN"); |
---|
2125 | |
---|
2126 | |
---|
2127 | |
---|
2128 | unsigned short |
---|
2129 | *seed48(unsigned short[3]); |
---|
2130 | int setenv(const char *, const char *, int) __asm("_" "setenv" "$UNIX2003"); |
---|
2131 | |
---|
2132 | void setkey(const char *) __asm("_" "setkey" "$UNIX2003"); |
---|
2133 | |
---|
2134 | |
---|
2135 | |
---|
2136 | char *setstate(const char *); |
---|
2137 | void srand48(long); |
---|
2138 | |
---|
2139 | void srandom(unsigned); |
---|
2140 | |
---|
2141 | |
---|
2142 | |
---|
2143 | int unlockpt(int); |
---|
2144 | |
---|
2145 | int unsetenv(const char *) __asm("_" "unsetenv" "$UNIX2003"); |
---|
2146 | |
---|
2147 | |
---|
2148 | |
---|
2149 | |
---|
2150 | |
---|
2151 | |
---|
2152 | |
---|
2153 | # 1 "/usr/include/machine/types.h" 1 3 4 |
---|
2154 | # 35 "/usr/include/machine/types.h" 3 4 |
---|
2155 | # 1 "/usr/include/i386/types.h" 1 3 4 |
---|
2156 | # 80 "/usr/include/i386/types.h" 3 4 |
---|
2157 | typedef unsigned char u_int8_t; |
---|
2158 | |
---|
2159 | |
---|
2160 | |
---|
2161 | |
---|
2162 | typedef unsigned short u_int16_t; |
---|
2163 | |
---|
2164 | |
---|
2165 | |
---|
2166 | |
---|
2167 | typedef unsigned int u_int32_t; |
---|
2168 | |
---|
2169 | |
---|
2170 | |
---|
2171 | |
---|
2172 | typedef unsigned long long u_int64_t; |
---|
2173 | |
---|
2174 | |
---|
2175 | |
---|
2176 | |
---|
2177 | typedef int32_t register_t; |
---|
2178 | # 114 "/usr/include/i386/types.h" 3 4 |
---|
2179 | typedef u_int64_t user_addr_t; |
---|
2180 | typedef u_int64_t user_size_t; |
---|
2181 | typedef int64_t user_ssize_t; |
---|
2182 | typedef int64_t user_long_t; |
---|
2183 | typedef u_int64_t user_ulong_t; |
---|
2184 | typedef int64_t user_time_t; |
---|
2185 | typedef int64_t user_off_t; |
---|
2186 | |
---|
2187 | |
---|
2188 | |
---|
2189 | |
---|
2190 | |
---|
2191 | |
---|
2192 | |
---|
2193 | typedef u_int64_t syscall_arg_t; |
---|
2194 | # 36 "/usr/include/machine/types.h" 2 3 4 |
---|
2195 | # 256 "/usr/include/stdlib.h" 2 3 4 |
---|
2196 | |
---|
2197 | |
---|
2198 | typedef __darwin_dev_t dev_t; |
---|
2199 | |
---|
2200 | |
---|
2201 | |
---|
2202 | |
---|
2203 | typedef __darwin_mode_t mode_t; |
---|
2204 | |
---|
2205 | |
---|
2206 | |
---|
2207 | u_int32_t |
---|
2208 | arc4random(void); |
---|
2209 | void arc4random_addrandom(unsigned char * , int ); |
---|
2210 | void arc4random_buf(void * , size_t ) __attribute__((visibility("default"))); |
---|
2211 | void arc4random_stir(void); |
---|
2212 | u_int32_t |
---|
2213 | arc4random_uniform(u_int32_t ) __attribute__((visibility("default"))); |
---|
2214 | |
---|
2215 | int atexit_b(void (^)(void)) __attribute__((visibility("default"))); |
---|
2216 | void *bsearch_b(const void *, const void *, size_t, |
---|
2217 | size_t, int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
2218 | |
---|
2219 | |
---|
2220 | |
---|
2221 | char *cgetcap(char *, const char *, int); |
---|
2222 | int cgetclose(void); |
---|
2223 | int cgetent(char **, char **, const char *); |
---|
2224 | int cgetfirst(char **, char **); |
---|
2225 | int cgetmatch(const char *, const char *); |
---|
2226 | int cgetnext(char **, char **); |
---|
2227 | int cgetnum(char *, const char *, long *); |
---|
2228 | int cgetset(const char *); |
---|
2229 | int cgetstr(char *, const char *, char **); |
---|
2230 | int cgetustr(char *, const char *, char **); |
---|
2231 | |
---|
2232 | int daemon(int, int) __asm("_" "daemon" "$1050") __attribute__((deprecated,visibility("default"))); |
---|
2233 | char *devname(dev_t, mode_t); |
---|
2234 | char *devname_r(dev_t, mode_t, char *buf, int len); |
---|
2235 | char *getbsize(int *, long *); |
---|
2236 | int getloadavg(double [], int); |
---|
2237 | const char |
---|
2238 | *getprogname(void); |
---|
2239 | |
---|
2240 | int heapsort(void *, size_t, size_t, |
---|
2241 | int (*)(const void *, const void *)); |
---|
2242 | |
---|
2243 | int heapsort_b(void *, size_t, size_t, |
---|
2244 | int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
2245 | |
---|
2246 | int mergesort(void *, size_t, size_t, |
---|
2247 | int (*)(const void *, const void *)); |
---|
2248 | |
---|
2249 | int mergesort_b(void *, size_t, size_t, |
---|
2250 | int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
2251 | |
---|
2252 | void psort(void *, size_t, size_t, |
---|
2253 | int (*)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
2254 | |
---|
2255 | void psort_b(void *, size_t, size_t, |
---|
2256 | int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
2257 | |
---|
2258 | void psort_r(void *, size_t, size_t, void *, |
---|
2259 | int (*)(void *, const void *, const void *)) __attribute__((visibility("default"))); |
---|
2260 | |
---|
2261 | void qsort_b(void *, size_t, size_t, |
---|
2262 | int (^)(const void *, const void *)) __attribute__((visibility("default"))); |
---|
2263 | |
---|
2264 | void qsort_r(void *, size_t, size_t, void *, |
---|
2265 | int (*)(void *, const void *, const void *)); |
---|
2266 | int radixsort(const unsigned char **, int, const unsigned char *, |
---|
2267 | unsigned); |
---|
2268 | void setprogname(const char *); |
---|
2269 | int sradixsort(const unsigned char **, int, const unsigned char *, |
---|
2270 | unsigned); |
---|
2271 | void sranddev(void); |
---|
2272 | void srandomdev(void); |
---|
2273 | void *reallocf(void *, size_t); |
---|
2274 | |
---|
2275 | long long |
---|
2276 | strtoq(const char *, char **, int); |
---|
2277 | unsigned long long |
---|
2278 | strtouq(const char *, char **, int); |
---|
2279 | |
---|
2280 | extern char *suboptarg; |
---|
2281 | void *valloc(size_t); |
---|
2282 | # 36 "./libavutil/common.h" 2 |
---|
2283 | |
---|
2284 | # 1 "./libavutil/attributes.h" 1 |
---|
2285 | # 38 "./libavutil/common.h" 2 |
---|
2286 | # 1 "./libavutil/avconfig.h" 1 |
---|
2287 | # 39 "./libavutil/common.h" 2 |
---|
2288 | # 65 "./libavutil/common.h" |
---|
2289 | extern const uint8_t ff_log2_tab[256]; |
---|
2290 | |
---|
2291 | extern const uint8_t av_reverse[256]; |
---|
2292 | |
---|
2293 | static __attribute__((always_inline)) inline __attribute__((const)) int av_log2_c(unsigned int v) |
---|
2294 | { |
---|
2295 | int n = 0; |
---|
2296 | if (v & 0xffff0000) { |
---|
2297 | v >>= 16; |
---|
2298 | n += 16; |
---|
2299 | } |
---|
2300 | if (v & 0xff00) { |
---|
2301 | v >>= 8; |
---|
2302 | n += 8; |
---|
2303 | } |
---|
2304 | n += ff_log2_tab[v]; |
---|
2305 | |
---|
2306 | return n; |
---|
2307 | } |
---|
2308 | |
---|
2309 | static __attribute__((always_inline)) inline __attribute__((const)) int av_log2_16bit_c(unsigned int v) |
---|
2310 | { |
---|
2311 | int n = 0; |
---|
2312 | if (v & 0xff00) { |
---|
2313 | v >>= 8; |
---|
2314 | n += 8; |
---|
2315 | } |
---|
2316 | n += ff_log2_tab[v]; |
---|
2317 | |
---|
2318 | return n; |
---|
2319 | } |
---|
2320 | |
---|
2321 | |
---|
2322 | |
---|
2323 | # 1 "./config.h" 1 |
---|
2324 | # 99 "./libavutil/common.h" 2 |
---|
2325 | # 1 "./libavutil/intmath.h" 1 |
---|
2326 | # 28 "./libavutil/intmath.h" |
---|
2327 | extern const uint32_t ff_inverse[257]; |
---|
2328 | |
---|
2329 | |
---|
2330 | |
---|
2331 | |
---|
2332 | |
---|
2333 | # 1 "./libavutil/x86/intmath.h" 1 |
---|
2334 | # 34 "./libavutil/intmath.h" 2 |
---|
2335 | # 55 "./libavutil/intmath.h" |
---|
2336 | # 1 "./libavutil/common.h" 1 |
---|
2337 | # 56 "./libavutil/intmath.h" 2 |
---|
2338 | |
---|
2339 | extern const uint8_t ff_sqrt_tab[256]; |
---|
2340 | |
---|
2341 | static inline __attribute__((const)) unsigned int ff_sqrt(unsigned int a) |
---|
2342 | { |
---|
2343 | unsigned int b; |
---|
2344 | |
---|
2345 | if (a < 255) return (ff_sqrt_tab[a + 1] - 1) >> 4; |
---|
2346 | else if (a < (1 << 12)) b = ff_sqrt_tab[a >> 4] >> 2; |
---|
2347 | |
---|
2348 | else if (a < (1 << 14)) b = ff_sqrt_tab[a >> 6] >> 1; |
---|
2349 | else if (a < (1 << 16)) b = ff_sqrt_tab[a >> 8] ; |
---|
2350 | |
---|
2351 | else { |
---|
2352 | int s = (31 - __builtin_clz((a >> 16)|1)) >> 1; |
---|
2353 | unsigned int c = a >> (s + 2); |
---|
2354 | b = ff_sqrt_tab[c >> (s + 8)]; |
---|
2355 | b = ({ int ret, dmy; __asm__ volatile( "mull %3" :"=d"(ret), "=a"(dmy) :"1"(c), "g"(ff_inverse[b]) ); ret; }) + (b << s); |
---|
2356 | } |
---|
2357 | |
---|
2358 | return b - (a < b * b); |
---|
2359 | } |
---|
2360 | # 100 "./libavutil/common.h" 2 |
---|
2361 | |
---|
2362 | |
---|
2363 | |
---|
2364 | # 1 "./libavutil/common.h" 1 |
---|
2365 | # 104 "./libavutil/common.h" 2 |
---|
2366 | |
---|
2367 | |
---|
2368 | |
---|
2369 | |
---|
2370 | |
---|
2371 | |
---|
2372 | |
---|
2373 | |
---|
2374 | static __attribute__((always_inline)) inline __attribute__((const)) int av_clip_c(int a, int amin, int amax) |
---|
2375 | { |
---|
2376 | if (a < amin) return amin; |
---|
2377 | else if (a > amax) return amax; |
---|
2378 | else return a; |
---|
2379 | } |
---|
2380 | |
---|
2381 | |
---|
2382 | |
---|
2383 | |
---|
2384 | |
---|
2385 | |
---|
2386 | static __attribute__((always_inline)) inline __attribute__((const)) uint8_t av_clip_uint8_c(int a) |
---|
2387 | { |
---|
2388 | if (a&(~0xFF)) return (-a)>>31; |
---|
2389 | else return a; |
---|
2390 | } |
---|
2391 | |
---|
2392 | |
---|
2393 | |
---|
2394 | |
---|
2395 | |
---|
2396 | |
---|
2397 | static __attribute__((always_inline)) inline __attribute__((const)) int8_t av_clip_int8_c(int a) |
---|
2398 | { |
---|
2399 | if ((a+0x80) & ~0xFF) return (a>>31) ^ 0x7F; |
---|
2400 | else return a; |
---|
2401 | } |
---|
2402 | |
---|
2403 | |
---|
2404 | |
---|
2405 | |
---|
2406 | |
---|
2407 | |
---|
2408 | static __attribute__((always_inline)) inline __attribute__((const)) uint16_t av_clip_uint16_c(int a) |
---|
2409 | { |
---|
2410 | if (a&(~0xFFFF)) return (-a)>>31; |
---|
2411 | else return a; |
---|
2412 | } |
---|
2413 | |
---|
2414 | |
---|
2415 | |
---|
2416 | |
---|
2417 | |
---|
2418 | |
---|
2419 | static __attribute__((always_inline)) inline __attribute__((const)) int16_t av_clip_int16_c(int a) |
---|
2420 | { |
---|
2421 | if ((a+0x8000) & ~0xFFFF) return (a>>31) ^ 0x7FFF; |
---|
2422 | else return a; |
---|
2423 | } |
---|
2424 | |
---|
2425 | |
---|
2426 | |
---|
2427 | |
---|
2428 | |
---|
2429 | |
---|
2430 | static __attribute__((always_inline)) inline __attribute__((const)) int32_t av_clipl_int32_c(int64_t a) |
---|
2431 | { |
---|
2432 | if ((a+0x80000000u) & ~(0xFFFFFFFFULL)) return (a>>63) ^ 0x7FFFFFFF; |
---|
2433 | else return a; |
---|
2434 | } |
---|
2435 | |
---|
2436 | |
---|
2437 | |
---|
2438 | |
---|
2439 | |
---|
2440 | |
---|
2441 | |
---|
2442 | static __attribute__((always_inline)) inline __attribute__((const)) unsigned av_clip_uintp2_c(int a, int p) |
---|
2443 | { |
---|
2444 | if (a & ~((1<<p) - 1)) return -a >> 31 & ((1<<p) - 1); |
---|
2445 | else return a; |
---|
2446 | } |
---|
2447 | # 193 "./libavutil/common.h" |
---|
2448 | static __attribute__((always_inline)) inline __attribute__((const)) float av_clipf_c(float a, float amin, float amax) |
---|
2449 | { |
---|
2450 | if (a < amin) return amin; |
---|
2451 | else if (a > amax) return amax; |
---|
2452 | else return a; |
---|
2453 | } |
---|
2454 | |
---|
2455 | |
---|
2456 | |
---|
2457 | |
---|
2458 | |
---|
2459 | static __attribute__((always_inline)) inline __attribute__((const)) int av_ceil_log2_c(int x) |
---|
2460 | { |
---|
2461 | return (31 - __builtin_clz(((x - 1) << 1)|1)); |
---|
2462 | } |
---|
2463 | |
---|
2464 | |
---|
2465 | |
---|
2466 | |
---|
2467 | |
---|
2468 | |
---|
2469 | static __attribute__((always_inline)) inline __attribute__((const)) int av_popcount_c(uint32_t x) |
---|
2470 | { |
---|
2471 | x -= (x >> 1) & 0x55555555; |
---|
2472 | x = (x & 0x33333333) + ((x >> 2) & 0x33333333); |
---|
2473 | x = (x + (x >> 4)) & 0x0F0F0F0F; |
---|
2474 | x += x >> 8; |
---|
2475 | return (x + (x >> 16)) & 0x3F; |
---|
2476 | } |
---|
2477 | # 339 "./libavutil/common.h" |
---|
2478 | # 1 "./libavutil/mem.h" 1 |
---|
2479 | # 30 "./libavutil/mem.h" |
---|
2480 | # 1 "./libavutil/error.h" 1 |
---|
2481 | # 27 "./libavutil/error.h" |
---|
2482 | # 1 "/usr/include/errno.h" 1 3 4 |
---|
2483 | # 28 "./libavutil/error.h" 2 |
---|
2484 | # 1 "./libavutil/avutil.h" 1 |
---|
2485 | # 74 "./libavutil/avutil.h" |
---|
2486 | unsigned avutil_version(void); |
---|
2487 | |
---|
2488 | |
---|
2489 | |
---|
2490 | |
---|
2491 | const char *avutil_configuration(void); |
---|
2492 | |
---|
2493 | |
---|
2494 | |
---|
2495 | |
---|
2496 | const char *avutil_license(void); |
---|
2497 | |
---|
2498 | enum AVMediaType { |
---|
2499 | AVMEDIA_TYPE_UNKNOWN = -1, |
---|
2500 | AVMEDIA_TYPE_VIDEO, |
---|
2501 | AVMEDIA_TYPE_AUDIO, |
---|
2502 | AVMEDIA_TYPE_DATA, |
---|
2503 | AVMEDIA_TYPE_SUBTITLE, |
---|
2504 | AVMEDIA_TYPE_ATTACHMENT, |
---|
2505 | AVMEDIA_TYPE_NB |
---|
2506 | }; |
---|
2507 | # 114 "./libavutil/avutil.h" |
---|
2508 | enum AVPictureType { |
---|
2509 | AV_PICTURE_TYPE_NONE = 0, |
---|
2510 | AV_PICTURE_TYPE_I, |
---|
2511 | AV_PICTURE_TYPE_P, |
---|
2512 | AV_PICTURE_TYPE_B, |
---|
2513 | AV_PICTURE_TYPE_S, |
---|
2514 | AV_PICTURE_TYPE_SI, |
---|
2515 | AV_PICTURE_TYPE_SP, |
---|
2516 | AV_PICTURE_TYPE_BI, |
---|
2517 | }; |
---|
2518 | # 132 "./libavutil/avutil.h" |
---|
2519 | char av_get_picture_type_char(enum AVPictureType pict_type); |
---|
2520 | |
---|
2521 | |
---|
2522 | # 1 "./libavutil/common.h" 1 |
---|
2523 | # 135 "./libavutil/avutil.h" 2 |
---|
2524 | # 1 "./libavutil/error.h" 1 |
---|
2525 | # 136 "./libavutil/avutil.h" 2 |
---|
2526 | # 1 "./libavutil/mathematics.h" 1 |
---|
2527 | # 27 "./libavutil/mathematics.h" |
---|
2528 | # 1 "./libavutil/rational.h" 1 |
---|
2529 | # 38 "./libavutil/rational.h" |
---|
2530 | typedef struct AVRational{ |
---|
2531 | int num; |
---|
2532 | int den; |
---|
2533 | } AVRational; |
---|
2534 | # 50 "./libavutil/rational.h" |
---|
2535 | static inline int av_cmp_q(AVRational a, AVRational b){ |
---|
2536 | const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den; |
---|
2537 | |
---|
2538 | if(tmp) return ((tmp ^ a.den ^ b.den)>>63)|1; |
---|
2539 | else if(b.den && a.den) return 0; |
---|
2540 | else if(a.num && b.num) return (a.num>>31) - (b.num>>31); |
---|
2541 | else return (-2147483647 -1); |
---|
2542 | } |
---|
2543 | |
---|
2544 | |
---|
2545 | |
---|
2546 | |
---|
2547 | |
---|
2548 | |
---|
2549 | static inline double av_q2d(AVRational a){ |
---|
2550 | return a.num / (double) a.den; |
---|
2551 | } |
---|
2552 | # 78 "./libavutil/rational.h" |
---|
2553 | int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max); |
---|
2554 | |
---|
2555 | |
---|
2556 | |
---|
2557 | |
---|
2558 | |
---|
2559 | |
---|
2560 | |
---|
2561 | AVRational av_mul_q(AVRational b, AVRational c) __attribute__((const)); |
---|
2562 | |
---|
2563 | |
---|
2564 | |
---|
2565 | |
---|
2566 | |
---|
2567 | |
---|
2568 | |
---|
2569 | AVRational av_div_q(AVRational b, AVRational c) __attribute__((const)); |
---|
2570 | |
---|
2571 | |
---|
2572 | |
---|
2573 | |
---|
2574 | |
---|
2575 | |
---|
2576 | |
---|
2577 | AVRational av_add_q(AVRational b, AVRational c) __attribute__((const)); |
---|
2578 | |
---|
2579 | |
---|
2580 | |
---|
2581 | |
---|
2582 | |
---|
2583 | |
---|
2584 | |
---|
2585 | AVRational av_sub_q(AVRational b, AVRational c) __attribute__((const)); |
---|
2586 | # 120 "./libavutil/rational.h" |
---|
2587 | AVRational av_d2q(double d, int max) __attribute__((const)); |
---|
2588 | |
---|
2589 | |
---|
2590 | |
---|
2591 | |
---|
2592 | |
---|
2593 | int av_nearer_q(AVRational q, AVRational q1, AVRational q2); |
---|
2594 | |
---|
2595 | |
---|
2596 | |
---|
2597 | |
---|
2598 | |
---|
2599 | |
---|
2600 | int av_find_nearest_q_idx(AVRational q, const AVRational* q_list); |
---|
2601 | # 28 "./libavutil/mathematics.h" 2 |
---|
2602 | # 60 "./libavutil/mathematics.h" |
---|
2603 | enum AVRounding { |
---|
2604 | AV_ROUND_ZERO = 0, |
---|
2605 | AV_ROUND_INF = 1, |
---|
2606 | AV_ROUND_DOWN = 2, |
---|
2607 | AV_ROUND_UP = 3, |
---|
2608 | AV_ROUND_NEAR_INF = 5, |
---|
2609 | }; |
---|
2610 | |
---|
2611 | |
---|
2612 | |
---|
2613 | |
---|
2614 | |
---|
2615 | |
---|
2616 | int64_t __attribute__((const)) av_gcd(int64_t a, int64_t b); |
---|
2617 | |
---|
2618 | |
---|
2619 | |
---|
2620 | |
---|
2621 | |
---|
2622 | int64_t av_rescale(int64_t a, int64_t b, int64_t c) __attribute__((const)); |
---|
2623 | |
---|
2624 | |
---|
2625 | |
---|
2626 | |
---|
2627 | |
---|
2628 | int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding) __attribute__((const)); |
---|
2629 | |
---|
2630 | |
---|
2631 | |
---|
2632 | |
---|
2633 | int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) __attribute__((const)); |
---|
2634 | |
---|
2635 | |
---|
2636 | |
---|
2637 | |
---|
2638 | |
---|
2639 | |
---|
2640 | |
---|
2641 | int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b); |
---|
2642 | # 110 "./libavutil/mathematics.h" |
---|
2643 | int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod); |
---|
2644 | # 137 "./libavutil/avutil.h" 2 |
---|
2645 | |
---|
2646 | # 1 "./libavutil/intfloat_readwrite.h" 1 |
---|
2647 | # 28 "./libavutil/intfloat_readwrite.h" |
---|
2648 | typedef struct AVExtFloat { |
---|
2649 | uint8_t exponent[2]; |
---|
2650 | uint8_t mantissa[8]; |
---|
2651 | } AVExtFloat; |
---|
2652 | |
---|
2653 | double av_int2dbl(int64_t v) __attribute__((const)); |
---|
2654 | float av_int2flt(int32_t v) __attribute__((const)); |
---|
2655 | double av_ext2dbl(const AVExtFloat ext) __attribute__((const)); |
---|
2656 | int64_t av_dbl2int(double d) __attribute__((const)); |
---|
2657 | int32_t av_flt2int(float d) __attribute__((const)); |
---|
2658 | AVExtFloat av_dbl2ext(double d) __attribute__((const)); |
---|
2659 | # 139 "./libavutil/avutil.h" 2 |
---|
2660 | # 1 "./libavutil/log.h" 1 |
---|
2661 | # 24 "./libavutil/log.h" |
---|
2662 | # 1 "/usr/bin/../lib/clang/3.0/include/stdarg.h" 1 3 4 |
---|
2663 | # 48 "/usr/bin/../lib/clang/3.0/include/stdarg.h" 3 4 |
---|
2664 | typedef __builtin_va_list __gnuc_va_list; |
---|
2665 | # 25 "./libavutil/log.h" 2 |
---|
2666 | # 1 "./libavutil/avutil.h" 1 |
---|
2667 | # 26 "./libavutil/log.h" 2 |
---|
2668 | |
---|
2669 | |
---|
2670 | |
---|
2671 | |
---|
2672 | |
---|
2673 | |
---|
2674 | typedef struct { |
---|
2675 | |
---|
2676 | |
---|
2677 | |
---|
2678 | |
---|
2679 | const char* class_name; |
---|
2680 | |
---|
2681 | |
---|
2682 | |
---|
2683 | |
---|
2684 | |
---|
2685 | const char* (*item_name)(void* ctx); |
---|
2686 | |
---|
2687 | |
---|
2688 | |
---|
2689 | |
---|
2690 | |
---|
2691 | |
---|
2692 | const struct AVOption *option; |
---|
2693 | |
---|
2694 | |
---|
2695 | |
---|
2696 | |
---|
2697 | |
---|
2698 | |
---|
2699 | |
---|
2700 | int version; |
---|
2701 | |
---|
2702 | |
---|
2703 | |
---|
2704 | |
---|
2705 | |
---|
2706 | int log_level_offset_offset; |
---|
2707 | |
---|
2708 | |
---|
2709 | |
---|
2710 | |
---|
2711 | |
---|
2712 | |
---|
2713 | |
---|
2714 | int parent_log_context_offset; |
---|
2715 | |
---|
2716 | |
---|
2717 | |
---|
2718 | |
---|
2719 | |
---|
2720 | const struct AVOption* (*opt_find)(void *obj, const char *name, const char *unit, |
---|
2721 | int opt_flags, int search_flags); |
---|
2722 | } AVClass; |
---|
2723 | # 133 "./libavutil/log.h" |
---|
2724 | void av_log(void *avcl, int level, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4))); |
---|
2725 | |
---|
2726 | |
---|
2727 | |
---|
2728 | |
---|
2729 | void av_vlog(void *avcl, int level, const char *fmt, va_list); |
---|
2730 | int av_log_get_level(void); |
---|
2731 | void av_log_set_level(int); |
---|
2732 | void av_log_set_callback(void (*)(void*, int, const char*, va_list)); |
---|
2733 | void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl); |
---|
2734 | const char* av_default_item_name(void* ctx); |
---|
2735 | # 165 "./libavutil/log.h" |
---|
2736 | void av_log_set_flags(int arg); |
---|
2737 | # 140 "./libavutil/avutil.h" 2 |
---|
2738 | # 1 "./libavutil/pixfmt.h" 1 |
---|
2739 | # 60 "./libavutil/pixfmt.h" |
---|
2740 | enum PixelFormat { |
---|
2741 | PIX_FMT_NONE= -1, |
---|
2742 | PIX_FMT_YUV420P, |
---|
2743 | PIX_FMT_YUYV422, |
---|
2744 | PIX_FMT_RGB24, |
---|
2745 | PIX_FMT_BGR24, |
---|
2746 | PIX_FMT_YUV422P, |
---|
2747 | PIX_FMT_YUV444P, |
---|
2748 | PIX_FMT_YUV410P, |
---|
2749 | PIX_FMT_YUV411P, |
---|
2750 | PIX_FMT_GRAY8, |
---|
2751 | PIX_FMT_MONOWHITE, |
---|
2752 | PIX_FMT_MONOBLACK, |
---|
2753 | PIX_FMT_PAL8, |
---|
2754 | PIX_FMT_YUVJ420P, |
---|
2755 | PIX_FMT_YUVJ422P, |
---|
2756 | PIX_FMT_YUVJ444P, |
---|
2757 | PIX_FMT_XVMC_MPEG2_MC, |
---|
2758 | PIX_FMT_XVMC_MPEG2_IDCT, |
---|
2759 | PIX_FMT_UYVY422, |
---|
2760 | PIX_FMT_UYYVYY411, |
---|
2761 | PIX_FMT_BGR8, |
---|
2762 | PIX_FMT_BGR4, |
---|
2763 | PIX_FMT_BGR4_BYTE, |
---|
2764 | PIX_FMT_RGB8, |
---|
2765 | PIX_FMT_RGB4, |
---|
2766 | PIX_FMT_RGB4_BYTE, |
---|
2767 | PIX_FMT_NV12, |
---|
2768 | PIX_FMT_NV21, |
---|
2769 | |
---|
2770 | PIX_FMT_ARGB, |
---|
2771 | PIX_FMT_RGBA, |
---|
2772 | PIX_FMT_ABGR, |
---|
2773 | PIX_FMT_BGRA, |
---|
2774 | |
---|
2775 | PIX_FMT_GRAY16BE, |
---|
2776 | PIX_FMT_GRAY16LE, |
---|
2777 | PIX_FMT_YUV440P, |
---|
2778 | PIX_FMT_YUVJ440P, |
---|
2779 | PIX_FMT_YUVA420P, |
---|
2780 | PIX_FMT_VDPAU_H264, |
---|
2781 | PIX_FMT_VDPAU_MPEG1, |
---|
2782 | PIX_FMT_VDPAU_MPEG2, |
---|
2783 | PIX_FMT_VDPAU_WMV3, |
---|
2784 | PIX_FMT_VDPAU_VC1, |
---|
2785 | PIX_FMT_RGB48BE, |
---|
2786 | PIX_FMT_RGB48LE, |
---|
2787 | |
---|
2788 | PIX_FMT_RGB565BE, |
---|
2789 | PIX_FMT_RGB565LE, |
---|
2790 | PIX_FMT_RGB555BE, |
---|
2791 | PIX_FMT_RGB555LE, |
---|
2792 | |
---|
2793 | PIX_FMT_BGR565BE, |
---|
2794 | PIX_FMT_BGR565LE, |
---|
2795 | PIX_FMT_BGR555BE, |
---|
2796 | PIX_FMT_BGR555LE, |
---|
2797 | |
---|
2798 | PIX_FMT_VAAPI_MOCO, |
---|
2799 | PIX_FMT_VAAPI_IDCT, |
---|
2800 | PIX_FMT_VAAPI_VLD, |
---|
2801 | |
---|
2802 | PIX_FMT_YUV420P16LE, |
---|
2803 | PIX_FMT_YUV420P16BE, |
---|
2804 | PIX_FMT_YUV422P16LE, |
---|
2805 | PIX_FMT_YUV422P16BE, |
---|
2806 | PIX_FMT_YUV444P16LE, |
---|
2807 | PIX_FMT_YUV444P16BE, |
---|
2808 | PIX_FMT_VDPAU_MPEG4, |
---|
2809 | PIX_FMT_DXVA2_VLD, |
---|
2810 | |
---|
2811 | PIX_FMT_RGB444LE, |
---|
2812 | PIX_FMT_RGB444BE, |
---|
2813 | PIX_FMT_BGR444LE, |
---|
2814 | PIX_FMT_BGR444BE, |
---|
2815 | PIX_FMT_GRAY8A, |
---|
2816 | PIX_FMT_BGR48BE, |
---|
2817 | PIX_FMT_BGR48LE, |
---|
2818 | |
---|
2819 | |
---|
2820 | |
---|
2821 | |
---|
2822 | PIX_FMT_YUV420P9BE, |
---|
2823 | PIX_FMT_YUV420P9LE, |
---|
2824 | PIX_FMT_YUV420P10BE, |
---|
2825 | PIX_FMT_YUV420P10LE, |
---|
2826 | PIX_FMT_YUV422P10BE, |
---|
2827 | PIX_FMT_YUV422P10LE, |
---|
2828 | PIX_FMT_YUV444P9BE, |
---|
2829 | PIX_FMT_YUV444P9LE, |
---|
2830 | PIX_FMT_YUV444P10BE, |
---|
2831 | PIX_FMT_YUV444P10LE, |
---|
2832 | |
---|
2833 | PIX_FMT_NB, |
---|
2834 | }; |
---|
2835 | # 141 "./libavutil/avutil.h" 2 |
---|
2836 | # 29 "./libavutil/error.h" 2 |
---|
2837 | # 86 "./libavutil/error.h" |
---|
2838 | int av_strerror(int errnum, char *errbuf, size_t errbuf_size); |
---|
2839 | # 31 "./libavutil/mem.h" 2 |
---|
2840 | # 82 "./libavutil/mem.h" |
---|
2841 | void *av_malloc(unsigned int size) __attribute__((__malloc__)) ; |
---|
2842 | # 96 "./libavutil/mem.h" |
---|
2843 | void *av_realloc(void *ptr, unsigned int size) ; |
---|
2844 | # 106 "./libavutil/mem.h" |
---|
2845 | void *av_realloc_f(void *ptr, size_t nelem, size_t elsize); |
---|
2846 | # 116 "./libavutil/mem.h" |
---|
2847 | void av_free(void *ptr); |
---|
2848 | # 126 "./libavutil/mem.h" |
---|
2849 | void *av_mallocz(unsigned int size) __attribute__((__malloc__)) ; |
---|
2850 | # 138 "./libavutil/mem.h" |
---|
2851 | void *av_calloc(size_t nmemb, size_t size) __attribute__((__malloc__)); |
---|
2852 | |
---|
2853 | |
---|
2854 | |
---|
2855 | |
---|
2856 | |
---|
2857 | |
---|
2858 | |
---|
2859 | char *av_strdup(const char *s) __attribute__((__malloc__)); |
---|
2860 | # 155 "./libavutil/mem.h" |
---|
2861 | void av_freep(void *ptr); |
---|
2862 | # 164 "./libavutil/mem.h" |
---|
2863 | void av_dynarray_add(void *tab_ptr, int *nb_ptr, void *elem); |
---|
2864 | |
---|
2865 | |
---|
2866 | |
---|
2867 | |
---|
2868 | |
---|
2869 | static inline int av_size_mult(size_t a, size_t b, size_t *r) |
---|
2870 | { |
---|
2871 | size_t t = a * b; |
---|
2872 | |
---|
2873 | |
---|
2874 | if ((a | b) >= ((size_t)1 << (sizeof(size_t) * 4)) && a && t / a != b) |
---|
2875 | return (-(22)); |
---|
2876 | *r = t; |
---|
2877 | return 0; |
---|
2878 | } |
---|
2879 | # 340 "./libavutil/common.h" 2 |
---|
2880 | |
---|
2881 | |
---|
2882 | # 1 "./libavutil/internal.h" 1 |
---|
2883 | # 35 "./libavutil/internal.h" |
---|
2884 | # 1 "/usr/bin/../lib/clang/3.0/include/stddef.h" 1 3 4 |
---|
2885 | # 31 "/usr/bin/../lib/clang/3.0/include/stddef.h" 3 4 |
---|
2886 | typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t; |
---|
2887 | # 36 "./libavutil/internal.h" 2 |
---|
2888 | # 1 "/usr/include/assert.h" 1 3 4 |
---|
2889 | # 37 "./libavutil/internal.h" 2 |
---|
2890 | |
---|
2891 | |
---|
2892 | # 1 "./libavutil/timer.h" 1 |
---|
2893 | # 38 "./libavutil/timer.h" |
---|
2894 | # 1 "./libavutil/x86/timer.h" 1 |
---|
2895 | # 28 "./libavutil/x86/timer.h" |
---|
2896 | static inline uint64_t read_time(void) |
---|
2897 | { |
---|
2898 | uint32_t a, d; |
---|
2899 | __asm__ volatile("rdtsc" : "=a" (a), "=d" (d)); |
---|
2900 | return ((uint64_t)d << 32) + a; |
---|
2901 | } |
---|
2902 | # 39 "./libavutil/timer.h" 2 |
---|
2903 | # 40 "./libavutil/internal.h" 2 |
---|
2904 | # 1 "./libavutil/cpu.h" 1 |
---|
2905 | # 47 "./libavutil/cpu.h" |
---|
2906 | int av_get_cpu_flags(void); |
---|
2907 | |
---|
2908 | |
---|
2909 | |
---|
2910 | |
---|
2911 | |
---|
2912 | void av_force_cpu_flags(int flags); |
---|
2913 | |
---|
2914 | |
---|
2915 | |
---|
2916 | int ff_get_cpu_flags_arm(void); |
---|
2917 | int ff_get_cpu_flags_ppc(void); |
---|
2918 | int ff_get_cpu_flags_x86(void); |
---|
2919 | # 41 "./libavutil/internal.h" 2 |
---|
2920 | # 1 "./libavutil/dict.h" 1 |
---|
2921 | # 36 "./libavutil/dict.h" |
---|
2922 | typedef struct { |
---|
2923 | char *key; |
---|
2924 | char *value; |
---|
2925 | } AVDictionaryEntry; |
---|
2926 | |
---|
2927 | typedef struct AVDictionary AVDictionary; |
---|
2928 | # 51 "./libavutil/dict.h" |
---|
2929 | AVDictionaryEntry * |
---|
2930 | av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags); |
---|
2931 | # 64 "./libavutil/dict.h" |
---|
2932 | int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags); |
---|
2933 | # 74 "./libavutil/dict.h" |
---|
2934 | void av_dict_copy(AVDictionary **dst, AVDictionary *src, int flags); |
---|
2935 | |
---|
2936 | |
---|
2937 | |
---|
2938 | |
---|
2939 | void av_dict_free(AVDictionary **m); |
---|
2940 | # 42 "./libavutil/internal.h" 2 |
---|
2941 | |
---|
2942 | struct AVDictionary { |
---|
2943 | int count; |
---|
2944 | AVDictionaryEntry *elems; |
---|
2945 | }; |
---|
2946 | # 178 "./libavutil/internal.h" |
---|
2947 | # 1 "./libavutil/libm.h" 1 |
---|
2948 | # 179 "./libavutil/internal.h" 2 |
---|
2949 | # 236 "./libavutil/internal.h" |
---|
2950 | static __attribute__((always_inline)) inline void emms_c(void) |
---|
2951 | { |
---|
2952 | if(av_get_cpu_flags() & 0x0001) |
---|
2953 | __asm__ volatile ("emms" ::: "memory"); |
---|
2954 | } |
---|
2955 | # 343 "./libavutil/common.h" 2 |
---|
2956 | # 30 "libavcodec/cabac.c" 2 |
---|
2957 | # 1 "libavcodec/get_bits.h" 1 |
---|
2958 | # 31 "libavcodec/get_bits.h" |
---|
2959 | # 1 "/usr/include/assert.h" 1 3 4 |
---|
2960 | # 32 "libavcodec/get_bits.h" 2 |
---|
2961 | # 1 "./libavutil/bswap.h" 1 |
---|
2962 | # 46 "./libavutil/bswap.h" |
---|
2963 | # 1 "./libavutil/x86/bswap.h" 1 |
---|
2964 | # 32 "./libavutil/x86/bswap.h" |
---|
2965 | static __attribute__((always_inline)) inline __attribute__((const)) unsigned av_bswap16(unsigned x) |
---|
2966 | { |
---|
2967 | __asm__("rorw $8, %w0" : "+r"(x)); |
---|
2968 | return x; |
---|
2969 | } |
---|
2970 | |
---|
2971 | |
---|
2972 | static __attribute__((always_inline)) inline __attribute__((const)) uint32_t av_bswap32(uint32_t x) |
---|
2973 | { |
---|
2974 | |
---|
2975 | __asm__("bswap %0" : "+r" (x)); |
---|
2976 | |
---|
2977 | |
---|
2978 | |
---|
2979 | |
---|
2980 | |
---|
2981 | |
---|
2982 | return x; |
---|
2983 | } |
---|
2984 | # 47 "./libavutil/bswap.h" 2 |
---|
2985 | # 75 "./libavutil/bswap.h" |
---|
2986 | static inline uint64_t __attribute__((const)) av_bswap64(uint64_t x) |
---|
2987 | { |
---|
2988 | |
---|
2989 | |
---|
2990 | |
---|
2991 | |
---|
2992 | |
---|
2993 | union { |
---|
2994 | uint64_t ll; |
---|
2995 | uint32_t l[2]; |
---|
2996 | } w, r; |
---|
2997 | w.ll = x; |
---|
2998 | r.l[0] = av_bswap32 (w.l[1]); |
---|
2999 | r.l[1] = av_bswap32 (w.l[0]); |
---|
3000 | return r.ll; |
---|
3001 | |
---|
3002 | } |
---|
3003 | # 33 "libavcodec/get_bits.h" 2 |
---|
3004 | # 1 "./libavutil/common.h" 1 |
---|
3005 | # 34 "libavcodec/get_bits.h" 2 |
---|
3006 | # 1 "./libavutil/intreadwrite.h" 1 |
---|
3007 | # 27 "./libavutil/intreadwrite.h" |
---|
3008 | typedef union { |
---|
3009 | uint64_t u64; |
---|
3010 | uint32_t u32[2]; |
---|
3011 | uint16_t u16[4]; |
---|
3012 | uint8_t u8 [8]; |
---|
3013 | double f64; |
---|
3014 | float f32[2]; |
---|
3015 | } __attribute__((may_alias)) av_alias64; |
---|
3016 | |
---|
3017 | typedef union { |
---|
3018 | uint32_t u32; |
---|
3019 | uint16_t u16[2]; |
---|
3020 | uint8_t u8 [4]; |
---|
3021 | float f32; |
---|
3022 | } __attribute__((may_alias)) av_alias32; |
---|
3023 | |
---|
3024 | typedef union { |
---|
3025 | uint16_t u16; |
---|
3026 | uint8_t u8 [2]; |
---|
3027 | } __attribute__((may_alias)) av_alias16; |
---|
3028 | # 70 "./libavutil/intreadwrite.h" |
---|
3029 | # 1 "./libavutil/x86/intreadwrite.h" 1 |
---|
3030 | # 33 "./libavutil/x86/intreadwrite.h" |
---|
3031 | static __attribute__((always_inline)) inline void AV_COPY64(void *d, const void *s) |
---|
3032 | { |
---|
3033 | __asm__("movq %1, %%mm0 \n\t" |
---|
3034 | "movq %%mm0, %0 \n\t" |
---|
3035 | : "=m"(*(uint64_t*)d) |
---|
3036 | : "m" (*(const uint64_t*)s) |
---|
3037 | : "mm0"); |
---|
3038 | } |
---|
3039 | |
---|
3040 | |
---|
3041 | static __attribute__((always_inline)) inline void AV_SWAP64(void *a, void *b) |
---|
3042 | { |
---|
3043 | __asm__("movq %1, %%mm0 \n\t" |
---|
3044 | "movq %0, %%mm1 \n\t" |
---|
3045 | "movq %%mm0, %0 \n\t" |
---|
3046 | "movq %%mm1, %1 \n\t" |
---|
3047 | : "+m"(*(uint64_t*)a), "+m"(*(uint64_t*)b) |
---|
3048 | ::"mm0", "mm1"); |
---|
3049 | } |
---|
3050 | |
---|
3051 | |
---|
3052 | static __attribute__((always_inline)) inline void AV_ZERO64(void *d) |
---|
3053 | { |
---|
3054 | __asm__("pxor %%mm0, %%mm0 \n\t" |
---|
3055 | "movq %%mm0, %0 \n\t" |
---|
3056 | : "=m"(*(uint64_t*)d) |
---|
3057 | :: "mm0"); |
---|
3058 | } |
---|
3059 | |
---|
3060 | |
---|
3061 | |
---|
3062 | |
---|
3063 | |
---|
3064 | |
---|
3065 | static __attribute__((always_inline)) inline void AV_COPY128(void *d, const void *s) |
---|
3066 | { |
---|
3067 | struct v {uint64_t v[2];}; |
---|
3068 | |
---|
3069 | __asm__("movaps %1, %%xmm0 \n\t" |
---|
3070 | "movaps %%xmm0, %0 \n\t" |
---|
3071 | : "=m"(*(struct v*)d) |
---|
3072 | : "m" (*(const struct v*)s) |
---|
3073 | : "xmm0"); |
---|
3074 | } |
---|
3075 | |
---|
3076 | |
---|
3077 | |
---|
3078 | |
---|
3079 | |
---|
3080 | |
---|
3081 | static __attribute__((always_inline)) inline void AV_ZERO128(void *d) |
---|
3082 | { |
---|
3083 | struct v {uint64_t v[2];}; |
---|
3084 | |
---|
3085 | __asm__("pxor %%xmm0, %%xmm0 \n\t" |
---|
3086 | "movdqa %%xmm0, %0 \n\t" |
---|
3087 | : "=m"(*(struct v*)d) |
---|
3088 | :: "xmm0"); |
---|
3089 | } |
---|
3090 | # 71 "./libavutil/intreadwrite.h" 2 |
---|
3091 | # 188 "./libavutil/intreadwrite.h" |
---|
3092 | union unaligned_64 { uint64_t l; } __attribute__((packed)) __attribute__((may_alias)); |
---|
3093 | union unaligned_32 { uint32_t l; } __attribute__((packed)) __attribute__((may_alias)); |
---|
3094 | union unaligned_16 { uint16_t l; } __attribute__((packed)) __attribute__((may_alias)); |
---|
3095 | # 35 "libavcodec/get_bits.h" 2 |
---|
3096 | |
---|
3097 | # 1 "libavcodec/mathops.h" 1 |
---|
3098 | # 25 "libavcodec/mathops.h" |
---|
3099 | # 1 "./libavutil/common.h" 1 |
---|
3100 | # 26 "libavcodec/mathops.h" 2 |
---|
3101 | # 39 "libavcodec/mathops.h" |
---|
3102 | # 1 "libavcodec/x86/mathops.h" 1 |
---|
3103 | # 26 "libavcodec/x86/mathops.h" |
---|
3104 | # 1 "./libavutil/common.h" 1 |
---|
3105 | # 27 "libavcodec/x86/mathops.h" 2 |
---|
3106 | |
---|
3107 | |
---|
3108 | |
---|
3109 | |
---|
3110 | static __attribute__((always_inline)) inline __attribute__((const)) int MULL(int a, int b, unsigned shift) |
---|
3111 | { |
---|
3112 | int rt, dummy; |
---|
3113 | __asm__ ( |
---|
3114 | "imull %3 \n\t" |
---|
3115 | "shrdl %4, %%edx, %%eax \n\t" |
---|
3116 | :"=a"(rt), "=d"(dummy) |
---|
3117 | :"a"(a), "rm"(b), "ci"((uint8_t)shift) |
---|
3118 | ); |
---|
3119 | return rt; |
---|
3120 | } |
---|
3121 | |
---|
3122 | |
---|
3123 | static __attribute__((always_inline)) inline __attribute__((const)) int MULH(int a, int b) |
---|
3124 | { |
---|
3125 | int rt, dummy; |
---|
3126 | __asm__ ( |
---|
3127 | "imull %3" |
---|
3128 | :"=d"(rt), "=a"(dummy) |
---|
3129 | :"a"(a), "rm"(b) |
---|
3130 | ); |
---|
3131 | return rt; |
---|
3132 | } |
---|
3133 | |
---|
3134 | |
---|
3135 | static __attribute__((always_inline)) inline __attribute__((const)) int64_t MUL64(int a, int b) |
---|
3136 | { |
---|
3137 | int64_t rt; |
---|
3138 | __asm__ ( |
---|
3139 | "imull %2" |
---|
3140 | :"=A"(rt) |
---|
3141 | :"a"(a), "rm"(b) |
---|
3142 | ); |
---|
3143 | return rt; |
---|
3144 | } |
---|
3145 | # 104 "libavcodec/x86/mathops.h" |
---|
3146 | static inline int32_t NEG_SSR32( int32_t a, int8_t s){ |
---|
3147 | __asm__ ("sarl %1, %0\n\t" |
---|
3148 | : "+r" (a) |
---|
3149 | : "ic" ((uint8_t)(-s)) |
---|
3150 | ); |
---|
3151 | return a; |
---|
3152 | } |
---|
3153 | |
---|
3154 | |
---|
3155 | static inline uint32_t NEG_USR32(uint32_t a, int8_t s){ |
---|
3156 | __asm__ ("shrl %1, %0\n\t" |
---|
3157 | : "+r" (a) |
---|
3158 | : "ic" ((uint8_t)(-s)) |
---|
3159 | ); |
---|
3160 | return a; |
---|
3161 | } |
---|
3162 | # 40 "libavcodec/mathops.h" 2 |
---|
3163 | # 59 "libavcodec/mathops.h" |
---|
3164 | static __attribute__((always_inline)) inline unsigned UMULH(unsigned a, unsigned b){ |
---|
3165 | return ((uint64_t)(a) * (uint64_t)(b))>>32; |
---|
3166 | } |
---|
3167 | # 89 "libavcodec/mathops.h" |
---|
3168 | static inline __attribute__((const)) int mid_pred(int a, int b, int c) |
---|
3169 | { |
---|
3170 | # 100 "libavcodec/mathops.h" |
---|
3171 | if(a>b){ |
---|
3172 | if(c>b){ |
---|
3173 | if(c>a) b=a; |
---|
3174 | else b=c; |
---|
3175 | } |
---|
3176 | }else{ |
---|
3177 | if(b>c){ |
---|
3178 | if(c>a) b=c; |
---|
3179 | else b=a; |
---|
3180 | } |
---|
3181 | } |
---|
3182 | return b; |
---|
3183 | |
---|
3184 | } |
---|
3185 | |
---|
3186 | |
---|
3187 | |
---|
3188 | static inline __attribute__((const)) int sign_extend(int val, unsigned bits) |
---|
3189 | { |
---|
3190 | return (val << ((8 * sizeof(int)) - bits)) >> ((8 * sizeof(int)) - bits); |
---|
3191 | } |
---|
3192 | |
---|
3193 | |
---|
3194 | |
---|
3195 | static inline __attribute__((const)) unsigned zero_extend(unsigned val, unsigned bits) |
---|
3196 | { |
---|
3197 | return (val << ((8 * sizeof(int)) - bits)) >> ((8 * sizeof(int)) - bits); |
---|
3198 | } |
---|
3199 | # 37 "libavcodec/get_bits.h" 2 |
---|
3200 | # 53 "libavcodec/get_bits.h" |
---|
3201 | typedef struct GetBitContext { |
---|
3202 | const uint8_t *buffer, *buffer_end; |
---|
3203 | |
---|
3204 | int index; |
---|
3205 | |
---|
3206 | |
---|
3207 | |
---|
3208 | |
---|
3209 | |
---|
3210 | |
---|
3211 | int size_in_bits; |
---|
3212 | } GetBitContext; |
---|
3213 | |
---|
3214 | |
---|
3215 | |
---|
3216 | typedef struct VLC { |
---|
3217 | int bits; |
---|
3218 | int16_t (*table)[2]; |
---|
3219 | int table_size, table_allocated; |
---|
3220 | } VLC; |
---|
3221 | |
---|
3222 | typedef struct RL_VLC_ELEM { |
---|
3223 | int16_t level; |
---|
3224 | int8_t len; |
---|
3225 | uint8_t run; |
---|
3226 | } RL_VLC_ELEM; |
---|
3227 | # 169 "libavcodec/get_bits.h" |
---|
3228 | static inline int get_bits_count(const GetBitContext *s){ |
---|
3229 | return s->index; |
---|
3230 | } |
---|
3231 | |
---|
3232 | static inline void skip_bits_long(GetBitContext *s, int n){ |
---|
3233 | s->index += n; |
---|
3234 | } |
---|
3235 | # 257 "libavcodec/get_bits.h" |
---|
3236 | static inline int get_xbits(GetBitContext *s, int n){ |
---|
3237 | register int sign; |
---|
3238 | register int32_t cache; |
---|
3239 | unsigned int re_index = (s)->index; __attribute__((unused)) unsigned int re_cache; |
---|
3240 | re_cache = av_bswap32((((const union unaligned_32 *) (((const uint8_t *)(s)->buffer)+(re_index>>3)))->l)) << (re_index&0x07); |
---|
3241 | cache = ((uint32_t)re_cache); |
---|
3242 | sign = ~cache >> 31; |
---|
3243 | re_index += (n); |
---|
3244 | (s)->index = re_index; |
---|
3245 | return (NEG_USR32(sign ^ cache, n) ^ sign) - sign; |
---|
3246 | } |
---|
3247 | |
---|
3248 | static inline int get_sbits(GetBitContext *s, int n){ |
---|
3249 | register int tmp; |
---|
3250 | unsigned int re_index = (s)->index; __attribute__((unused)) unsigned int re_cache; |
---|
3251 | re_cache = av_bswap32((((const union unaligned_32 *) (((const uint8_t *)(s)->buffer)+(re_index>>3)))->l)) << (re_index&0x07); |
---|
3252 | tmp = NEG_SSR32(re_cache, n); |
---|
3253 | re_index += (n); |
---|
3254 | (s)->index = re_index; |
---|
3255 | return tmp; |
---|
3256 | } |
---|
3257 | |
---|
3258 | |
---|
3259 | |
---|
3260 | |
---|
3261 | static inline unsigned int get_bits(GetBitContext *s, int n){ |
---|
3262 | register int tmp; |
---|
3263 | unsigned int re_index = (s)->index; __attribute__((unused)) unsigned int re_cache; |
---|
3264 | re_cache = av_bswap32((((const union unaligned_32 *) (((const uint8_t *)(s)->buffer)+(re_index>>3)))->l)) << (re_index&0x07); |
---|
3265 | tmp = NEG_USR32(re_cache, n); |
---|
3266 | re_index += (n); |
---|
3267 | (s)->index = re_index; |
---|
3268 | return tmp; |
---|
3269 | } |
---|
3270 | |
---|
3271 | |
---|
3272 | |
---|
3273 | |
---|
3274 | static inline unsigned int show_bits(GetBitContext *s, int n){ |
---|
3275 | register int tmp; |
---|
3276 | unsigned int re_index = (s)->index; __attribute__((unused)) unsigned int re_cache; |
---|
3277 | re_cache = av_bswap32((((const union unaligned_32 *) (((const uint8_t *)(s)->buffer)+(re_index>>3)))->l)) << (re_index&0x07); |
---|
3278 | tmp = NEG_USR32(re_cache, n); |
---|
3279 | return tmp; |
---|
3280 | } |
---|
3281 | |
---|
3282 | static inline void skip_bits(GetBitContext *s, int n){ |
---|
3283 | |
---|
3284 | unsigned int re_index = (s)->index; __attribute__((unused)) unsigned int re_cache; |
---|
3285 | re_cache = av_bswap32((((const union unaligned_32 *) (((const uint8_t *)(s)->buffer)+(re_index>>3)))->l)) << (re_index&0x07); |
---|
3286 | re_index += (n); |
---|
3287 | (s)->index = re_index; |
---|
3288 | } |
---|
3289 | |
---|
3290 | static inline unsigned int get_bits1(GetBitContext *s){ |
---|
3291 | |
---|
3292 | unsigned int index = s->index; |
---|
3293 | uint8_t result = s->buffer[index>>3]; |
---|
3294 | |
---|
3295 | |
---|
3296 | |
---|
3297 | |
---|
3298 | result <<= index & 7; |
---|
3299 | result >>= 8 - 1; |
---|
3300 | |
---|
3301 | index++; |
---|
3302 | s->index = index; |
---|
3303 | |
---|
3304 | return result; |
---|
3305 | |
---|
3306 | |
---|
3307 | |
---|
3308 | } |
---|
3309 | |
---|
3310 | static inline unsigned int show_bits1(GetBitContext *s){ |
---|
3311 | return show_bits(s, 1); |
---|
3312 | } |
---|
3313 | |
---|
3314 | static inline void skip_bits1(GetBitContext *s){ |
---|
3315 | skip_bits(s, 1); |
---|
3316 | } |
---|
3317 | |
---|
3318 | |
---|
3319 | |
---|
3320 | |
---|
3321 | static inline unsigned int get_bits_long(GetBitContext *s, int n){ |
---|
3322 | if (n <= 25) return get_bits(s, n); |
---|
3323 | else { |
---|
3324 | |
---|
3325 | |
---|
3326 | |
---|
3327 | |
---|
3328 | int ret = get_bits(s, 16) << (n-16); |
---|
3329 | return ret | get_bits(s, n-16); |
---|
3330 | |
---|
3331 | } |
---|
3332 | } |
---|
3333 | |
---|
3334 | |
---|
3335 | |
---|
3336 | |
---|
3337 | static inline int get_sbits_long(GetBitContext *s, int n) { |
---|
3338 | return sign_extend(get_bits_long(s, n), n); |
---|
3339 | } |
---|
3340 | |
---|
3341 | |
---|
3342 | |
---|
3343 | |
---|
3344 | static inline unsigned int show_bits_long(GetBitContext *s, int n){ |
---|
3345 | if (n <= 25) return show_bits(s, n); |
---|
3346 | else { |
---|
3347 | GetBitContext gb = *s; |
---|
3348 | return get_bits_long(&gb, n); |
---|
3349 | } |
---|
3350 | } |
---|
3351 | |
---|
3352 | static inline int check_marker(GetBitContext *s, const char *msg) |
---|
3353 | { |
---|
3354 | int bit = get_bits1(s); |
---|
3355 | if (!bit) |
---|
3356 | av_log(((void*)0), 32, "Marker bit missing %s\n", msg); |
---|
3357 | |
---|
3358 | return bit; |
---|
3359 | } |
---|
3360 | # 391 "libavcodec/get_bits.h" |
---|
3361 | static inline void init_get_bits(GetBitContext *s, |
---|
3362 | const uint8_t *buffer, int bit_size) |
---|
3363 | { |
---|
3364 | int buffer_size = (bit_size+7)>>3; |
---|
3365 | if (buffer_size < 0 || bit_size < 0) { |
---|
3366 | buffer_size = bit_size = 0; |
---|
3367 | buffer = ((void*)0); |
---|
3368 | } |
---|
3369 | |
---|
3370 | s->buffer = buffer; |
---|
3371 | s->size_in_bits = bit_size; |
---|
3372 | s->buffer_end = buffer + buffer_size; |
---|
3373 | |
---|
3374 | s->index = 0; |
---|
3375 | |
---|
3376 | |
---|
3377 | |
---|
3378 | |
---|
3379 | |
---|
3380 | } |
---|
3381 | |
---|
3382 | static inline void align_get_bits(GetBitContext *s) |
---|
3383 | { |
---|
3384 | int n = -get_bits_count(s) & 7; |
---|
3385 | if (n) skip_bits(s, n); |
---|
3386 | } |
---|
3387 | # 427 "libavcodec/get_bits.h" |
---|
3388 | int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes, |
---|
3389 | const void *bits, int bits_wrap, int bits_size, |
---|
3390 | const void *codes, int codes_wrap, int codes_size, |
---|
3391 | const void *symbols, int symbols_wrap, int symbols_size, |
---|
3392 | int flags); |
---|
3393 | |
---|
3394 | |
---|
3395 | void free_vlc(VLC *vlc); |
---|
3396 | # 514 "libavcodec/get_bits.h" |
---|
3397 | static __attribute__((always_inline)) inline int get_vlc2(GetBitContext *s, int16_t (*table)[2], |
---|
3398 | int bits, int max_depth) |
---|
3399 | { |
---|
3400 | int code; |
---|
3401 | |
---|
3402 | unsigned int re_index = (s)->index; __attribute__((unused)) unsigned int re_cache; |
---|
3403 | re_cache = av_bswap32((((const union unaligned_32 *) (((const uint8_t *)(s)->buffer)+(re_index>>3)))->l)) << (re_index&0x07); |
---|
3404 | |
---|
3405 | do { int n, nb_bits; unsigned int index; index = NEG_USR32(re_cache, bits); code = table[index][0]; n = table[index][1]; if (max_depth > 1 && n < 0) { re_index += (bits); re_cache = av_bswap32((((const union unaligned_32 *) (((const uint8_t *)(s)->buffer)+(re_index>>3)))->l)) << (re_index&0x07); nb_bits = -n; index = NEG_USR32(re_cache, nb_bits) + code; code = table[index][0]; n = table[index][1]; if (max_depth > 2 && n < 0) { re_index += (nb_bits); re_cache = av_bswap32((((const union unaligned_32 *) (((const uint8_t *)(s)->buffer)+(re_index>>3)))->l)) << (re_index&0x07); nb_bits = -n; index = NEG_USR32(re_cache, nb_bits) + code; code = table[index][0]; n = table[index][1]; } } do { re_cache <<= (n); re_index += (n); } while (0); } while (0); |
---|
3406 | |
---|
3407 | (s)->index = re_index; |
---|
3408 | return code; |
---|
3409 | } |
---|
3410 | |
---|
3411 | static inline int decode012(GetBitContext *gb){ |
---|
3412 | int n; |
---|
3413 | n = get_bits1(gb); |
---|
3414 | if (n == 0) |
---|
3415 | return 0; |
---|
3416 | else |
---|
3417 | return get_bits1(gb) + 1; |
---|
3418 | } |
---|
3419 | |
---|
3420 | static inline int decode210(GetBitContext *gb){ |
---|
3421 | if (get_bits1(gb)) |
---|
3422 | return 0; |
---|
3423 | else |
---|
3424 | return 2 - get_bits1(gb); |
---|
3425 | } |
---|
3426 | |
---|
3427 | static inline int get_bits_left(GetBitContext *gb) |
---|
3428 | { |
---|
3429 | return gb->size_in_bits - get_bits_count(gb); |
---|
3430 | } |
---|
3431 | # 31 "libavcodec/cabac.c" 2 |
---|
3432 | # 1 "libavcodec/cabac.h" 1 |
---|
3433 | # 30 "libavcodec/cabac.h" |
---|
3434 | # 1 "/usr/bin/../lib/clang/3.0/include/stddef.h" 1 3 4 |
---|
3435 | # 31 "libavcodec/cabac.h" 2 |
---|
3436 | |
---|
3437 | # 1 "libavcodec/put_bits.h" 1 |
---|
3438 | # 31 "libavcodec/put_bits.h" |
---|
3439 | # 1 "/usr/include/assert.h" 1 3 4 |
---|
3440 | # 32 "libavcodec/put_bits.h" 2 |
---|
3441 | |
---|
3442 | # 1 "./libavutil/common.h" 1 |
---|
3443 | # 34 "libavcodec/put_bits.h" 2 |
---|
3444 | # 43 "libavcodec/put_bits.h" |
---|
3445 | typedef struct PutBitContext { |
---|
3446 | |
---|
3447 | |
---|
3448 | |
---|
3449 | |
---|
3450 | uint32_t bit_buf; |
---|
3451 | int bit_left; |
---|
3452 | uint8_t *buf, *buf_ptr, *buf_end; |
---|
3453 | |
---|
3454 | int size_in_bits; |
---|
3455 | } PutBitContext; |
---|
3456 | |
---|
3457 | |
---|
3458 | |
---|
3459 | |
---|
3460 | |
---|
3461 | |
---|
3462 | |
---|
3463 | static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size) |
---|
3464 | { |
---|
3465 | if(buffer_size < 0) { |
---|
3466 | buffer_size = 0; |
---|
3467 | buffer = ((void*)0); |
---|
3468 | } |
---|
3469 | |
---|
3470 | s->size_in_bits= 8*buffer_size; |
---|
3471 | s->buf = buffer; |
---|
3472 | s->buf_end = s->buf + buffer_size; |
---|
3473 | |
---|
3474 | |
---|
3475 | |
---|
3476 | |
---|
3477 | |
---|
3478 | s->buf_ptr = s->buf; |
---|
3479 | s->bit_left=32; |
---|
3480 | s->bit_buf=0; |
---|
3481 | |
---|
3482 | } |
---|
3483 | |
---|
3484 | |
---|
3485 | |
---|
3486 | |
---|
3487 | static inline int put_bits_count(PutBitContext *s) |
---|
3488 | { |
---|
3489 | |
---|
3490 | |
---|
3491 | |
---|
3492 | return (s->buf_ptr - s->buf) * 8 + 32 - s->bit_left; |
---|
3493 | |
---|
3494 | } |
---|
3495 | |
---|
3496 | |
---|
3497 | |
---|
3498 | |
---|
3499 | static inline void flush_put_bits(PutBitContext *s) |
---|
3500 | { |
---|
3501 | |
---|
3502 | |
---|
3503 | |
---|
3504 | |
---|
3505 | if (s->bit_left < 32) |
---|
3506 | s->bit_buf<<= s->bit_left; |
---|
3507 | |
---|
3508 | while (s->bit_left < 32) { |
---|
3509 | |
---|
3510 | |
---|
3511 | |
---|
3512 | |
---|
3513 | |
---|
3514 | *s->buf_ptr++=s->bit_buf >> 24; |
---|
3515 | s->bit_buf<<=8; |
---|
3516 | |
---|
3517 | s->bit_left+=8; |
---|
3518 | } |
---|
3519 | s->bit_left=32; |
---|
3520 | s->bit_buf=0; |
---|
3521 | |
---|
3522 | } |
---|
3523 | # 130 "libavcodec/put_bits.h" |
---|
3524 | void align_put_bits(PutBitContext *s); |
---|
3525 | |
---|
3526 | |
---|
3527 | |
---|
3528 | |
---|
3529 | |
---|
3530 | |
---|
3531 | void ff_put_string(PutBitContext *pb, const char *string, int terminate_string); |
---|
3532 | |
---|
3533 | |
---|
3534 | |
---|
3535 | |
---|
3536 | |
---|
3537 | |
---|
3538 | void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length); |
---|
3539 | |
---|
3540 | |
---|
3541 | |
---|
3542 | |
---|
3543 | |
---|
3544 | |
---|
3545 | static inline void put_bits(PutBitContext *s, int n, unsigned int value) |
---|
3546 | |
---|
3547 | { |
---|
3548 | unsigned int bit_buf; |
---|
3549 | int bit_left; |
---|
3550 | |
---|
3551 | |
---|
3552 | ((void)0); |
---|
3553 | |
---|
3554 | bit_buf = s->bit_buf; |
---|
3555 | bit_left = s->bit_left; |
---|
3556 | # 180 "libavcodec/put_bits.h" |
---|
3557 | if (n < bit_left) { |
---|
3558 | bit_buf = (bit_buf<<n) | value; |
---|
3559 | bit_left-=n; |
---|
3560 | } else { |
---|
3561 | bit_buf<<=bit_left; |
---|
3562 | bit_buf |= value >> (n - bit_left); |
---|
3563 | |
---|
3564 | |
---|
3565 | |
---|
3566 | |
---|
3567 | |
---|
3568 | *(uint32_t *)s->buf_ptr = av_bswap32(bit_buf); |
---|
3569 | |
---|
3570 | s->buf_ptr+=4; |
---|
3571 | bit_left+=32 - n; |
---|
3572 | bit_buf = value; |
---|
3573 | } |
---|
3574 | |
---|
3575 | |
---|
3576 | s->bit_buf = bit_buf; |
---|
3577 | s->bit_left = bit_left; |
---|
3578 | } |
---|
3579 | # 267 "libavcodec/put_bits.h" |
---|
3580 | static inline void put_sbits(PutBitContext *pb, int n, int32_t value) |
---|
3581 | { |
---|
3582 | ((void)0); |
---|
3583 | |
---|
3584 | put_bits(pb, n, value & ((1<<n)-1)); |
---|
3585 | } |
---|
3586 | |
---|
3587 | |
---|
3588 | |
---|
3589 | |
---|
3590 | static void __attribute__((unused)) put_bits32(PutBitContext *s, uint32_t value) |
---|
3591 | { |
---|
3592 | int lo = value & 0xffff; |
---|
3593 | int hi = value >> 16; |
---|
3594 | |
---|
3595 | |
---|
3596 | |
---|
3597 | |
---|
3598 | put_bits(s, 16, hi); |
---|
3599 | put_bits(s, 16, lo); |
---|
3600 | |
---|
3601 | } |
---|
3602 | |
---|
3603 | |
---|
3604 | |
---|
3605 | |
---|
3606 | |
---|
3607 | static inline uint8_t* put_bits_ptr(PutBitContext *s) |
---|
3608 | { |
---|
3609 | |
---|
3610 | |
---|
3611 | |
---|
3612 | return s->buf_ptr; |
---|
3613 | |
---|
3614 | } |
---|
3615 | |
---|
3616 | |
---|
3617 | |
---|
3618 | |
---|
3619 | |
---|
3620 | static inline void skip_put_bytes(PutBitContext *s, int n) |
---|
3621 | { |
---|
3622 | ((void)0); |
---|
3623 | |
---|
3624 | |
---|
3625 | |
---|
3626 | |
---|
3627 | ((void)0); |
---|
3628 | s->buf_ptr += n; |
---|
3629 | |
---|
3630 | } |
---|
3631 | |
---|
3632 | |
---|
3633 | |
---|
3634 | |
---|
3635 | |
---|
3636 | |
---|
3637 | static inline void skip_put_bits(PutBitContext *s, int n) |
---|
3638 | { |
---|
3639 | |
---|
3640 | |
---|
3641 | |
---|
3642 | s->bit_left -= n; |
---|
3643 | s->buf_ptr-= 4*(s->bit_left>>5); |
---|
3644 | s->bit_left &= 31; |
---|
3645 | |
---|
3646 | } |
---|
3647 | |
---|
3648 | |
---|
3649 | |
---|
3650 | |
---|
3651 | |
---|
3652 | |
---|
3653 | static inline void set_put_bits_buffer_size(PutBitContext *s, int size) |
---|
3654 | { |
---|
3655 | s->buf_end= s->buf + size; |
---|
3656 | } |
---|
3657 | # 33 "libavcodec/cabac.h" 2 |
---|
3658 | |
---|
3659 | |
---|
3660 | # 1 "/usr/include/assert.h" 1 3 4 |
---|
3661 | # 36 "libavcodec/cabac.h" 2 |
---|
3662 | |
---|
3663 | |
---|
3664 | |
---|
3665 | |
---|
3666 | typedef struct CABACContext{ |
---|
3667 | int low; |
---|
3668 | int range; |
---|
3669 | int outstanding_count; |
---|
3670 | |
---|
3671 | |
---|
3672 | |
---|
3673 | const uint8_t *bytestream_start; |
---|
3674 | const uint8_t *bytestream; |
---|
3675 | const uint8_t *bytestream_end; |
---|
3676 | PutBitContext pb; |
---|
3677 | }CABACContext; |
---|
3678 | |
---|
3679 | extern uint8_t ff_h264_mlps_state[4*64]; |
---|
3680 | extern uint8_t ff_h264_lps_range[4*2*64]; |
---|
3681 | extern uint8_t ff_h264_mps_state[2*64]; |
---|
3682 | extern uint8_t ff_h264_lps_state[2*64]; |
---|
3683 | extern const uint8_t ff_h264_norm_shift[512]; |
---|
3684 | |
---|
3685 | |
---|
3686 | |
---|
3687 | # 1 "libavcodec/x86/cabac.h" 1 |
---|
3688 | # 24 "libavcodec/x86/cabac.h" |
---|
3689 | # 1 "libavcodec/cabac.h" 1 |
---|
3690 | # 25 "libavcodec/x86/cabac.h" 2 |
---|
3691 | |
---|
3692 | # 1 "./libavutil/x86_cpu.h" 1 |
---|
3693 | # 57 "./libavutil/x86_cpu.h" |
---|
3694 | typedef int32_t x86_reg; |
---|
3695 | # 27 "libavcodec/x86/cabac.h" 2 |
---|
3696 | # 88 "libavcodec/x86/cabac.h" |
---|
3697 | static __attribute__((always_inline)) inline int get_cabac_inline_x86(CABACContext *c, |
---|
3698 | uint8_t *const state) |
---|
3699 | { |
---|
3700 | int bit, low, range, tmp; |
---|
3701 | |
---|
3702 | __asm__ volatile( |
---|
3703 | "movl %a6(%5), %2 \n\t" |
---|
3704 | "movl %a7(%5), %1 \n\t" |
---|
3705 | "movzbl ""(%4)"" , ""%0"" \n\t" "mov ""%2"" , ""%3"" \n\t" "and $0xC0 , ""%2"" \n\t" "movzbl ""_" "ff_h264_lps_range""(""%0"", ""%2"", 2), ""%2"" \n\t" "sub ""%2"" , ""%3"" \n\t" "mov ""%3"" , %%ecx \n\t" "shl $17 , ""%3"" \n\t" "sub ""%1"" , ""%3"" \n\t" "sar $31 , ""%3"" \n\t" "sub %%ecx , ""%2"" \n\t" "and ""%3"" , ""%2"" \n\t" "add %%ecx , ""%2"" \n\t" "shl $17 , %%ecx \n\t" "and ""%3"" , %%ecx \n\t" "sub %%ecx , ""%1"" \n\t" "xor ""%3"" , ""%0"" \n\t" "movzbl " "_" "ff_h264_norm_shift" "(""%2""), %%ecx \n\t" "shl %%cl , ""%2"" \n\t" "movzbl ""_" "ff_h264_mlps_state""+128(""%0""), ""%3"" \n\t" "mov ""%b3"" , ""(%4)"" \n\t" "shl %%cl , ""%1"" \n\t" "test ""%w1"" , ""%w1"" \n\t" " jnz 1f \n\t" "mov ""%a8""(""%5""), %%""ecx"" \n\t" "movzwl (%%""ecx"") , ""%3"" \n\t" "bswap ""%3"" \n\t" "shr $15 , ""%3"" \n\t" "sub $0xFFFF , ""%3"" \n\t" "add $2 , %%""ecx"" \n\t" "mov %%""ecx"" , ""%a8" "(""%5"") \n\t" "lea -1(""%1"") , %%ecx \n\t" "xor ""%1"" , %%ecx \n\t" "shr $15 , %%ecx \n\t" "movzbl " "_" "ff_h264_norm_shift" "(%%ecx), %%ecx \n\t" "neg %%ecx \n\t" "add $7 , %%ecx \n\t" "shl %%cl , ""%3"" \n\t" "add ""%3"" , ""%1"" \n\t" "1: \n\t" |
---|
3706 | |
---|
3707 | "movl %2, %a6(%5) \n\t" |
---|
3708 | "movl %1, %a7(%5) \n\t" |
---|
3709 | |
---|
3710 | :"=&r"(bit), "=&r"(low), "=&r"(range), "=&q"(tmp) |
---|
3711 | :"r"(state), "r"(c), |
---|
3712 | "i"(__builtin_offsetof(CABACContext, range)), "i"(__builtin_offsetof(CABACContext, low)), |
---|
3713 | "i"(__builtin_offsetof(CABACContext, bytestream)) |
---|
3714 | : "%""ecx", "memory" |
---|
3715 | ); |
---|
3716 | return bit & 1; |
---|
3717 | } |
---|
3718 | |
---|
3719 | |
---|
3720 | |
---|
3721 | static __attribute__((always_inline)) inline int get_cabac_bypass_sign_x86(CABACContext *c, int val) |
---|
3722 | { |
---|
3723 | x86_reg tmp; |
---|
3724 | __asm__ volatile( |
---|
3725 | "movl %a3(%2), %k1 \n\t" |
---|
3726 | "movl %a4(%2), %%eax \n\t" |
---|
3727 | "shl $17, %k1 \n\t" |
---|
3728 | "add %%eax, %%eax \n\t" |
---|
3729 | "sub %k1, %%eax \n\t" |
---|
3730 | "cltd \n\t" |
---|
3731 | "and %%edx, %k1 \n\t" |
---|
3732 | "add %k1, %%eax \n\t" |
---|
3733 | "xor %%edx, %%ecx \n\t" |
---|
3734 | "sub %%edx, %%ecx \n\t" |
---|
3735 | "test %%ax, %%ax \n\t" |
---|
3736 | " jnz 1f \n\t" |
---|
3737 | "mov %a5(%2), %1 \n\t" |
---|
3738 | "subl $0xFFFF, %%eax \n\t" |
---|
3739 | "movzwl (%1), %%edx \n\t" |
---|
3740 | "bswap %%edx \n\t" |
---|
3741 | "shrl $15, %%edx \n\t" |
---|
3742 | "add $2, %1 \n\t" |
---|
3743 | "addl %%edx, %%eax \n\t" |
---|
3744 | "mov %1, %a5(%2) \n\t" |
---|
3745 | "1: \n\t" |
---|
3746 | "movl %%eax, %a4(%2) \n\t" |
---|
3747 | |
---|
3748 | :"+c"(val), "=&r"(tmp) |
---|
3749 | :"r"(c), |
---|
3750 | "i"(__builtin_offsetof(CABACContext, range)), "i"(__builtin_offsetof(CABACContext, low)), |
---|
3751 | "i"(__builtin_offsetof(CABACContext, bytestream)) |
---|
3752 | : "%eax", "%edx", "memory" |
---|
3753 | ); |
---|
3754 | return val; |
---|
3755 | } |
---|
3756 | # 61 "libavcodec/cabac.h" 2 |
---|
3757 | |
---|
3758 | |
---|
3759 | void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size); |
---|
3760 | void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size); |
---|
3761 | void ff_init_cabac_states(CABACContext *c); |
---|
3762 | |
---|
3763 | |
---|
3764 | static inline void put_cabac_bit(CABACContext *c, int b){ |
---|
3765 | put_bits(&c->pb, 1, b); |
---|
3766 | for(;c->outstanding_count; c->outstanding_count--){ |
---|
3767 | put_bits(&c->pb, 1, 1-b); |
---|
3768 | } |
---|
3769 | } |
---|
3770 | |
---|
3771 | static inline void renorm_cabac_encoder(CABACContext *c){ |
---|
3772 | while(c->range < 0x100){ |
---|
3773 | |
---|
3774 | if(c->low<0x100){ |
---|
3775 | put_cabac_bit(c, 0); |
---|
3776 | }else if(c->low<0x200){ |
---|
3777 | c->outstanding_count++; |
---|
3778 | c->low -= 0x100; |
---|
3779 | }else{ |
---|
3780 | put_cabac_bit(c, 1); |
---|
3781 | c->low -= 0x200; |
---|
3782 | } |
---|
3783 | |
---|
3784 | c->range+= c->range; |
---|
3785 | c->low += c->low; |
---|
3786 | } |
---|
3787 | } |
---|
3788 | # 265 "libavcodec/cabac.h" |
---|
3789 | static void refill(CABACContext *c){ |
---|
3790 | |
---|
3791 | c->low+= (c->bytestream[0]<<9) + (c->bytestream[1]<<1); |
---|
3792 | |
---|
3793 | |
---|
3794 | |
---|
3795 | c->low -= ((1<<16)-1); |
---|
3796 | c->bytestream+= 16/8; |
---|
3797 | } |
---|
3798 | |
---|
3799 | static inline void renorm_cabac_decoder(CABACContext *c){ |
---|
3800 | while(c->range < 0x100){ |
---|
3801 | c->range+= c->range; |
---|
3802 | c->low+= c->low; |
---|
3803 | if(!(c->low & ((1<<16)-1))) |
---|
3804 | refill(c); |
---|
3805 | } |
---|
3806 | } |
---|
3807 | |
---|
3808 | static inline void renorm_cabac_decoder_once(CABACContext *c){ |
---|
3809 | int shift= (uint32_t)(c->range - 0x100)>>31; |
---|
3810 | c->range<<= shift; |
---|
3811 | c->low <<= shift; |
---|
3812 | if(!(c->low & ((1<<16)-1))) |
---|
3813 | refill(c); |
---|
3814 | } |
---|
3815 | # 335 "libavcodec/cabac.h" |
---|
3816 | static int __attribute__((noinline)) __attribute__((unused)) get_cabac_noinline(CABACContext *c, uint8_t * const state){ |
---|
3817 | return get_cabac_inline_x86(c,state); |
---|
3818 | } |
---|
3819 | |
---|
3820 | static int __attribute__((unused)) get_cabac(CABACContext *c, uint8_t * const state){ |
---|
3821 | return get_cabac_inline_x86(c,state); |
---|
3822 | } |
---|
3823 | |
---|
3824 | static int __attribute__((unused)) get_cabac_bypass(CABACContext *c){ |
---|
3825 | int range; |
---|
3826 | c->low += c->low; |
---|
3827 | |
---|
3828 | if(!(c->low & ((1<<16)-1))) |
---|
3829 | refill(c); |
---|
3830 | |
---|
3831 | range= c->range<<(16 +1); |
---|
3832 | if(c->low < range){ |
---|
3833 | return 0; |
---|
3834 | }else{ |
---|
3835 | c->low -= range; |
---|
3836 | return 1; |
---|
3837 | } |
---|
3838 | } |
---|
3839 | # 381 "libavcodec/cabac.h" |
---|
3840 | static int __attribute__((unused)) get_cabac_terminate(CABACContext *c){ |
---|
3841 | c->range -= 2; |
---|
3842 | if(c->low < c->range<<(16 +1)){ |
---|
3843 | renorm_cabac_decoder_once(c); |
---|
3844 | return 0; |
---|
3845 | }else{ |
---|
3846 | return c->bytestream - c->bytestream_start; |
---|
3847 | } |
---|
3848 | } |
---|
3849 | # 32 "libavcodec/cabac.c" 2 |
---|
3850 | |
---|
3851 | static const uint8_t lps_range[64][4]= { |
---|
3852 | {128,176,208,240}, {128,167,197,227}, {128,158,187,216}, {123,150,178,205}, |
---|
3853 | {116,142,169,195}, {111,135,160,185}, {105,128,152,175}, {100,122,144,166}, |
---|
3854 | { 95,116,137,158}, { 90,110,130,150}, { 85,104,123,142}, { 81, 99,117,135}, |
---|
3855 | { 77, 94,111,128}, { 73, 89,105,122}, { 69, 85,100,116}, { 66, 80, 95,110}, |
---|
3856 | { 62, 76, 90,104}, { 59, 72, 86, 99}, { 56, 69, 81, 94}, { 53, 65, 77, 89}, |
---|
3857 | { 51, 62, 73, 85}, { 48, 59, 69, 80}, { 46, 56, 66, 76}, { 43, 53, 63, 72}, |
---|
3858 | { 41, 50, 59, 69}, { 39, 48, 56, 65}, { 37, 45, 54, 62}, { 35, 43, 51, 59}, |
---|
3859 | { 33, 41, 48, 56}, { 32, 39, 46, 53}, { 30, 37, 43, 50}, { 29, 35, 41, 48}, |
---|
3860 | { 27, 33, 39, 45}, { 26, 31, 37, 43}, { 24, 30, 35, 41}, { 23, 28, 33, 39}, |
---|
3861 | { 22, 27, 32, 37}, { 21, 26, 30, 35}, { 20, 24, 29, 33}, { 19, 23, 27, 31}, |
---|
3862 | { 18, 22, 26, 30}, { 17, 21, 25, 28}, { 16, 20, 23, 27}, { 15, 19, 22, 25}, |
---|
3863 | { 14, 18, 21, 24}, { 14, 17, 20, 23}, { 13, 16, 19, 22}, { 12, 15, 18, 21}, |
---|
3864 | { 12, 14, 17, 20}, { 11, 14, 16, 19}, { 11, 13, 15, 18}, { 10, 12, 15, 17}, |
---|
3865 | { 10, 12, 14, 16}, { 9, 11, 13, 15}, { 9, 11, 12, 14}, { 8, 10, 12, 14}, |
---|
3866 | { 8, 9, 11, 13}, { 7, 9, 11, 12}, { 7, 9, 10, 12}, { 7, 8, 10, 11}, |
---|
3867 | { 6, 8, 9, 11}, { 6, 7, 9, 10}, { 6, 7, 8, 9}, { 2, 2, 2, 2}, |
---|
3868 | }; |
---|
3869 | |
---|
3870 | uint8_t ff_h264_mlps_state[4*64]; |
---|
3871 | uint8_t ff_h264_lps_range[4*2*64]; |
---|
3872 | uint8_t ff_h264_lps_state[2*64]; |
---|
3873 | uint8_t ff_h264_mps_state[2*64]; |
---|
3874 | |
---|
3875 | static const uint8_t mps_state[64]= { |
---|
3876 | 1, 2, 3, 4, 5, 6, 7, 8, |
---|
3877 | 9,10,11,12,13,14,15,16, |
---|
3878 | 17,18,19,20,21,22,23,24, |
---|
3879 | 25,26,27,28,29,30,31,32, |
---|
3880 | 33,34,35,36,37,38,39,40, |
---|
3881 | 41,42,43,44,45,46,47,48, |
---|
3882 | 49,50,51,52,53,54,55,56, |
---|
3883 | 57,58,59,60,61,62,62,63, |
---|
3884 | }; |
---|
3885 | |
---|
3886 | static const uint8_t lps_state[64]= { |
---|
3887 | 0, 0, 1, 2, 2, 4, 4, 5, |
---|
3888 | 6, 7, 8, 9, 9,11,11,12, |
---|
3889 | 13,13,15,15,16,16,18,18, |
---|
3890 | 19,19,21,21,22,22,23,24, |
---|
3891 | 24,25,26,26,27,27,28,29, |
---|
3892 | 29,30,30,30,31,32,32,33, |
---|
3893 | 33,33,34,34,35,35,35,36, |
---|
3894 | 36,36,37,37,37,38,38,63, |
---|
3895 | }; |
---|
3896 | # 90 "libavcodec/cabac.c" |
---|
3897 | const uint8_t ff_h264_norm_shift[512]= { |
---|
3898 | 9,8,7,7,6,6,6,6,5,5,5,5,5,5,5,5, |
---|
3899 | 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, |
---|
3900 | 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, |
---|
3901 | 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, |
---|
3902 | 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, |
---|
3903 | 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, |
---|
3904 | 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, |
---|
3905 | 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, |
---|
3906 | 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
---|
3907 | 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
---|
3908 | 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
---|
3909 | 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
---|
3910 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
---|
3911 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
---|
3912 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
---|
3913 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
---|
3914 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
---|
3915 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
---|
3916 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
---|
3917 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
---|
3918 | }; |
---|
3919 | |
---|
3920 | |
---|
3921 | |
---|
3922 | |
---|
3923 | |
---|
3924 | void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size){ |
---|
3925 | init_put_bits(&c->pb, buf, buf_size); |
---|
3926 | |
---|
3927 | c->low= 0; |
---|
3928 | c->range= 0x1FE; |
---|
3929 | c->outstanding_count= 0; |
---|
3930 | |
---|
3931 | |
---|
3932 | |
---|
3933 | |
---|
3934 | c->pb.bit_left++; |
---|
3935 | } |
---|
3936 | |
---|
3937 | |
---|
3938 | |
---|
3939 | |
---|
3940 | |
---|
3941 | void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size){ |
---|
3942 | c->bytestream_start= |
---|
3943 | c->bytestream= buf; |
---|
3944 | c->bytestream_end= buf + buf_size; |
---|
3945 | |
---|
3946 | |
---|
3947 | c->low = (*c->bytestream++)<<18; |
---|
3948 | c->low+= (*c->bytestream++)<<10; |
---|
3949 | |
---|
3950 | |
---|
3951 | |
---|
3952 | c->low+= ((*c->bytestream++)<<2) + 2; |
---|
3953 | c->range= 0x1FE; |
---|
3954 | } |
---|
3955 | |
---|
3956 | void ff_init_cabac_states(CABACContext *c){ |
---|
3957 | int i, j; |
---|
3958 | |
---|
3959 | for(i=0; i<64; i++){ |
---|
3960 | for(j=0; j<4; j++){ |
---|
3961 | ff_h264_lps_range[j*2*64+2*i+0]= |
---|
3962 | ff_h264_lps_range[j*2*64+2*i+1]= lps_range[i][j]; |
---|
3963 | } |
---|
3964 | |
---|
3965 | ff_h264_mlps_state[128+2*i+0]= |
---|
3966 | ff_h264_mps_state[2*i+0]= 2*mps_state[i]+0; |
---|
3967 | ff_h264_mlps_state[128+2*i+1]= |
---|
3968 | ff_h264_mps_state[2*i+1]= 2*mps_state[i]+1; |
---|
3969 | |
---|
3970 | if( i ){ |
---|
3971 | ff_h264_lps_state[2*i+0]= |
---|
3972 | ff_h264_mlps_state[128-2*i-1]= 2*lps_state[i]+0; |
---|
3973 | ff_h264_lps_state[2*i+1]= |
---|
3974 | ff_h264_mlps_state[128-2*i-2]= 2*lps_state[i]+1; |
---|
3975 | }else{ |
---|
3976 | ff_h264_lps_state[2*i+0]= |
---|
3977 | ff_h264_mlps_state[128-2*i-1]= 1; |
---|
3978 | ff_h264_lps_state[2*i+1]= |
---|
3979 | ff_h264_mlps_state[128-2*i-2]= 0; |
---|
3980 | } |
---|
3981 | } |
---|
3982 | } |
---|