Mercurial > libavformat.hg
comparison internal.h @ 5946:28ca2d77f997 libavformat
Move the internal function declarations in avformat.h to internal.h.
author | stefano |
---|---|
date | Sun, 11 Apr 2010 21:44:23 +0000 |
parents | fd37c39041cd |
children | b740f4918397 |
comparison
equal
deleted
inserted
replaced
5945:0abde6943674 | 5946:28ca2d77f997 |
---|---|
21 #ifndef AVFORMAT_INTERNAL_H | 21 #ifndef AVFORMAT_INTERNAL_H |
22 #define AVFORMAT_INTERNAL_H | 22 #define AVFORMAT_INTERNAL_H |
23 | 23 |
24 #include <stdint.h> | 24 #include <stdint.h> |
25 #include "avformat.h" | 25 #include "avformat.h" |
26 | |
27 void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem); | |
28 | |
29 #ifdef __GNUC__ | |
30 #define dynarray_add(tab, nb_ptr, elem)\ | |
31 do {\ | |
32 __typeof__(tab) _tab = (tab);\ | |
33 __typeof__(elem) _elem = (elem);\ | |
34 (void)sizeof(**_tab == _elem); /* check that types are compatible */\ | |
35 ff_dynarray_add((intptr_t **)_tab, nb_ptr, (intptr_t)_elem);\ | |
36 } while(0) | |
37 #else | |
38 #define dynarray_add(tab, nb_ptr, elem)\ | |
39 do {\ | |
40 ff_dynarray_add((intptr_t **)(tab), nb_ptr, (intptr_t)(elem));\ | |
41 } while(0) | |
42 #endif | |
43 | |
44 time_t mktimegm(struct tm *tm); | |
45 struct tm *brktimegm(time_t secs, struct tm *tm); | |
46 const char *small_strptime(const char *p, const char *fmt, | |
47 struct tm *dt); | |
26 | 48 |
27 char *ff_data_to_hex(char *buf, const uint8_t *src, int size, int lowercase); | 49 char *ff_data_to_hex(char *buf, const uint8_t *src, int size, int lowercase); |
28 | 50 |
29 void ff_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx); | 51 void ff_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx); |
30 | 52 |