Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -23,6 +23,9 @@ · 22 unmodified lines | ||
| 23 | 23 | #ifndef AAC_AC3_PARSER_H |
| 24 | 24 | #define AAC_AC3_PARSER_H |
| 25 | 25 | |
| 26 | +#include <stdint.h> | |
| 27 | +#include "avcodec.h" | |
| 28 | + | |
| 26 | 29 | typedef struct AACAC3ParseContext { |
| 27 | 30 | uint8_t *inbuf_ptr; |
| 28 | 31 | int frame_size; |
| @@ -25,6 +25,8 @@ · 24 unmodified lines | ||
| 25 | 25 | * Atrac 3 AKA RealAudio 8 compatible decoder data |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | +#include <stdint.h> | |
| 29 | + | |
| 28 | 30 | /* VLC tables */ |
| 29 | 31 | |
| 30 | 32 | static const uint8_t huffcode1[9] = { |
| @@ -26,6 +26,11 @@ · 25 unmodified lines | ||
| 26 | 26 | #ifndef BITSTREAM_H |
| 27 | 27 | #define BITSTREAM_H |
| 28 | 28 | |
| 29 | +#include <stdint.h> | |
| 30 | +#include <stdlib.h> | |
| 31 | +#include <assert.h> | |
| 32 | +#include "common.h" | |
| 33 | +#include "bswap.h" | |
| 29 | 34 | #include "log.h" |
| 30 | 35 | |
| 31 | 36 | #if defined(ALT_BITSTREAM_READER_LE) && !defined(ALT_BITSTREAM_READER) |
| @@ -19,6 +19,8 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include "avcodec.h" | |
| 23 | + | |
| 22 | 24 | typedef struct BMPContext { |
| 23 | 25 | AVFrame picture; |
| 24 | 26 | } BMPContext; |
| @@ -22,6 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | #ifndef FFMPEG_BYTESTREAM_H |
| 23 | 23 | #define FFMPEG_BYTESTREAM_H |
| 24 | 24 | |
| 25 | +#include "common.h" | |
| 26 | + | |
| 25 | 27 | #define DEF(name, bytes, read, write)\ |
| 26 | 28 | static av_always_inline unsigned int bytestream_get_ ## name(uint8_t **b){\ |
| 27 | 29 | (*b) += bytes;\ |
| @@ -26,6 +26,8 @@ · 25 unmodified lines | ||
| 26 | 26 | * Cook AKA RealAudio G2 compatible decoderdata |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | +#include <stdint.h> | |
| 30 | + | |
| 29 | 31 | /* various data tables */ |
| 30 | 32 | |
| 31 | 33 | static const int expbits_tab[8] = { |
| @@ -24,6 +24,8 @@ · 23 unmodified lines | ||
| 24 | 24 | * @file dcadata.c |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | +#include <stdint.h> | |
| 28 | + | |
| 27 | 29 | /* Generic tables */ |
| 28 | 30 | |
| 29 | 31 | static const uint32_t dca_sample_rates[16] = |
| @@ -20,6 +20,9 @@ · 19 unmodified lines | ||
| 20 | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | +#include <stdint.h> | |
| 24 | +#include <stdlib.h> | |
| 25 | + | |
| 23 | 26 | #define TMODE_COUNT 4 |
| 24 | 27 | static const uint8_t tmode_vlc_bits[TMODE_COUNT] = { 3, 3, 3, 2 }; |
| 25 | 28 | static const uint16_t tmode_codes[TMODE_COUNT][4] = { |
| @@ -19,6 +19,8 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include <stdint.h> | |
| 23 | + | |
| 22 | 24 | static const uint8_t dnxhd_1238_luma_weigth[] = { |
| 23 | 25 | 0, 32, 32, 33, 34, 33, 33, 33, |
| 24 | 26 | 33, 33, 33, 33, 33, 35, 37, 37, |
| @@ -24,6 +24,9 @@ · 23 unmodified lines | ||
| 24 | 24 | * Constants for DV codec. |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | +#include "avcodec.h" | |
| 28 | +#include "rational.h" | |
| 29 | + | |
| 27 | 30 | /* |
| 28 | 31 | * DVprofile is used to express the differences between various |
| 29 | 32 | * DV flavors. For now it's primarily used for differentiating |
| @@ -27,6 +27,8 @@ · 26 unmodified lines | ||
| 27 | 27 | * @author Michael Niedermayer <michaelni@gmx.at> |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | +#include "dsputil.h" | |
| 31 | + | |
| 30 | 32 | #define FAAN_POSTSCALE |
| 31 | 33 | |
| 32 | 34 | void ff_faandct(DCTELEM * data); |
| @@ -28,6 +28,9 @@ · 27 unmodified lines | ||
| 28 | 28 | * @author Michael Niedermayer <michaelni@gmx.at> and Alex Beregszaszi |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | +#include <stdint.h> | |
| 32 | +#include "bitstream.h" | |
| 33 | + | |
| 31 | 34 | #define INVALID_VLC 0x80000000 |
| 32 | 35 | |
| 33 | 36 | extern const uint8_t ff_golomb_vlc_len[512]; |
| @@ -24,6 +24,9 @@ · 23 unmodified lines | ||
| 24 | 24 | * H.261 tables. |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | +#include <stdint.h> | |
| 28 | +#include "h261.h" | |
| 29 | + | |
| 27 | 30 | // H.261 VLC table for macroblock addressing |
| 28 | 31 | static const uint8_t h261_mba_code[35] = { |
| 29 | 32 | 1, 3, 2, 3, |
| @@ -19,4 +19,6 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include "parser.h" | |
| 23 | + | |
| 22 | 24 | int ff_h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size); |
| @@ -26,6 +26,8 @@ · 25 unmodified lines | ||
| 26 | 26 | * H.263 tables. |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | +#include <stdint.h> | |
| 30 | +#include "mpegvideo.h" | |
| 29 | 31 | |
| 30 | 32 | /* intra MCBPC, mb_type = (intra), then (intraq) */ |
| 31 | 33 | const uint8_t intra_MCBPC_code[9] = { 1, 1, 2, 3, 1, 1, 2, 3, 1 }; |
| @@ -27,6 +27,10 @@ · 26 unmodified lines | ||
| 27 | 27 | * @author Michael Niedermayer <michaelni@gmx.at> |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | +#include <stdint.h> | |
| 31 | +#include "mpegvideo.h" | |
| 32 | +#include "rational.h" | |
| 33 | + | |
| 30 | 34 | #define VERT_PRED 0 |
| 31 | 35 | #define HOR_PRED 1 |
| 32 | 36 | #define DC_PRED 2 |
| @@ -22,6 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | * |
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | +#include <stdint.h> | |
| 26 | + | |
| 25 | 27 | static const uint16_t band_tab[33] = { |
| 26 | 28 | 0, 3, 6, 9, 12, 16, 20, 24, 29, 34, 40, |
| 27 | 29 | 46, 53, 60, 68, 76, 84, 93, 102, 111, 121, 131, |
| @@ -19,6 +19,8 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include <stdint.h> | |
| 23 | + | |
| 22 | 24 | #define IR2_CODES 143 |
| 23 | 25 | static const uint16_t ir2_codes[IR2_CODES][2] = { |
| 24 | 26 | #ifdef ALT_BITSTREAM_READER_LE |
| @@ -19,6 +19,8 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include <stdint.h> | |
| 23 | + | |
| 22 | 24 | static const uint32_t correction[] = { |
| 23 | 25 | 0x00000000, 0x00000202, 0xfffffdfe, 0x000002ff, 0xfffffd01, 0xffffff03, 0x000000fd, 0x00000404, |
| 24 | 26 | 0xfffffbfc, 0x00000501, 0xfffffaff, 0x00000105, 0xfffffefb, 0x000003fc, 0xfffffc04, 0x000005fe, |
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #define JPEGLSDEC_H |
| 30 | 30 | |
| 31 | 31 | #include "mjpeg.h" |
| 32 | +#include "mjpegdec.h" | |
| 32 | 33 | |
| 33 | 34 | /** |
| 34 | 35 | * Decode LSE block with initialization parameters |
| @@ -22,6 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | #ifndef MATHOPS_H |
| 23 | 23 | #define MATHOPS_H |
| 24 | 24 | |
| 25 | +#include "common.h" | |
| 26 | + | |
| 25 | 27 | #ifdef ARCH_X86_32 |
| 26 | 28 | |
| 27 | 29 | #include "i386/mathops.h" |
| @@ -20,6 +20,8 @@ · 19 unmodified lines | ||
| 20 | 20 | * |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | +#include <stdint.h> | |
| 24 | + | |
| 23 | 25 | static const int8_t mpc_idx30[] = { -1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1}; |
| 24 | 26 | static const int8_t mpc_idx31[] = { -1,-1,-1, 0, 0, 0, 1, 1, 1,-1,-1,-1, 0, 0, 0, 1, 1, 1,-1,-1,-1, 0, 0, 0, 1, 1, 1}; |
| 25 | 27 | static const int8_t mpc_idx32[] = { -1,-1,-1,-1,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1}; |
| @@ -25,6 +25,9 @@ · 24 unmodified lines | ||
| 25 | 25 | * MPEG1/2 tables. |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | +#include <stdint.h> | |
| 29 | +#include "mpegvideo.h" | |
| 30 | + | |
| 28 | 31 | const uint16_t ff_mpeg1_default_intra_matrix[64] = { |
| 29 | 32 | 8, 16, 19, 22, 26, 27, 29, 34, |
| 30 | 33 | 16, 16, 22, 24, 27, 29, 34, 37, |
| @@ -25,6 +25,9 @@ · 24 unmodified lines | ||
| 25 | 25 | * mpeg4 tables. |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | +#include <stdint.h> | |
| 29 | +#include "mpegvideo.h" | |
| 30 | + | |
| 28 | 31 | // shapes |
| 29 | 32 | #define RECT_SHAPE 0 |
| 30 | 33 | #define BIN_SHAPE 1 |
| @@ -24,6 +24,9 @@ · 23 unmodified lines | ||
| 24 | 24 | * mpeg audio layer decoder tables. |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | +#include <stdint.h> | |
| 28 | +#include "mpegaudio.h" | |
| 29 | + | |
| 27 | 30 | /*******************************************************/ |
| 28 | 31 | /* layer 3 tables */ |
| 29 | 32 | |
| @@ -27,6 +27,9 @@ · 26 unmodified lines | ||
| 27 | 27 | * Most of them come from the mpeg audio specification. |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | +#include <stdint.h> | |
| 31 | +#include "mpegaudio.h" | |
| 32 | + | |
| 30 | 33 | #define SQRT2 1.41421356237309514547 |
| 31 | 34 | |
| 32 | 35 | static const int costab32[30] = { |
| @@ -27,6 +27,10 @@ · 26 unmodified lines | ||
| 27 | 27 | * MSMPEG4 data tables. |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | +#include <stdint.h> | |
| 31 | +#include "bitstream.h" | |
| 32 | +#include "rl.h" | |
| 33 | + | |
| 30 | 34 | /* non intra picture macro block coded block pattern + mb type */ |
| 31 | 35 | static const uint32_t table_mb_non_intra[128][2] = { |
| 32 | 36 | { 0x40, 7 },{ 0x13c9, 13 },{ 0x9fd, 12 },{ 0x1fc, 15 }, |
| @@ -27,6 +27,8 @@ · 26 unmodified lines | ||
| 27 | 27 | * AVOptions |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | +#include "rational.h" | |
| 31 | + | |
| 30 | 32 | enum AVOptionType{ |
| 31 | 33 | FF_OPT_TYPE_FLAGS, |
| 32 | 34 | FF_OPT_TYPE_INT, |
| @@ -31,6 +31,8 @@ · 30 unmodified lines | ||
| 31 | 31 | #ifndef QDM2DATA_H |
| 32 | 32 | #define QDM2DATA_H |
| 33 | 33 | |
| 34 | +#include <stdint.h> | |
| 35 | + | |
| 34 | 36 | /** VLC TABLES **/ |
| 35 | 37 | |
| 36 | 38 | /* values in this table range from -1..23; adjust retrieved value by -1 */ |
| @@ -25,6 +25,10 @@ · 24 unmodified lines | ||
| 25 | 25 | * Range coder. |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | +#include <stdint.h> | |
| 29 | +#include <assert.h> | |
| 30 | +#include "common.h" | |
| 31 | + | |
| 28 | 32 | typedef struct RangeCoder{ |
| 29 | 33 | int low; |
| 30 | 34 | int range; |
| @@ -28,6 +28,8 @@ · 27 unmodified lines | ||
| 28 | 28 | * ratecontrol header. |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | +#include <stdio.h> | |
| 32 | +#include <stdint.h> | |
| 31 | 33 | #include "eval.h" |
| 32 | 34 | |
| 33 | 35 | typedef struct Predictor{ |
| @@ -6,6 +6,10 @@ · 5 unmodified lines | ||
| 6 | 6 | #ifndef AVCODEC_RL_H |
| 7 | 7 | #define AVCODEC_RL_H |
| 8 | 8 | |
| 9 | +#include <stdint.h> | |
| 10 | +#include "bitstream.h" | |
| 11 | +#include "mpegvideo.h" | |
| 12 | + | |
| 9 | 13 | /** RLTable. */ |
| 10 | 14 | typedef struct RLTable { |
| 11 | 15 | int n; ///< number of entries of table_vlc minus 1 |
| @@ -22,6 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | #ifndef RLE_H |
| 23 | 23 | #define RLE_H |
| 24 | 24 | |
| 25 | +#include <stdint.h> | |
| 26 | + | |
| 25 | 27 | /** |
| 26 | 28 | * RLE compress the row, with maximum size of out_size. Value before repeated bytes is (count ^ xor_rep) + add_rep. |
| 27 | 29 | * Value before raw bytes is (count ^ xor_raw) + add_raw. |
| @@ -22,6 +22,9 @@ · 21 unmodified lines | ||
| 22 | 22 | #ifndef RTJPEG_H |
| 23 | 23 | #define RTJPEG_H |
| 24 | 24 | |
| 25 | +#include <stdint.h> | |
| 26 | +#include <dsputil.h> | |
| 27 | + | |
| 25 | 28 | typedef struct { |
| 26 | 29 | int w, h; |
| 27 | 30 | DSPContext *dsp; |
| @@ -23,6 +23,8 @@ · 22 unmodified lines | ||
| 23 | 23 | #ifndef FF_S3TC_H |
| 24 | 24 | #define FF_S3TC_H |
| 25 | 25 | |
| 26 | +#include <stdint.h> | |
| 27 | + | |
| 26 | 28 | #define FF_S3TC_DXT1 0x31545844 |
| 27 | 29 | #define FF_S3TC_DXT3 0x33545844 |
| 28 | 30 | |
| @@ -25,6 +25,9 @@ · 24 unmodified lines | ||
| 25 | 25 | * simple idct header. |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | +#include <stdint.h> | |
| 29 | +#include "dsputil.h" | |
| 30 | + | |
| 28 | 31 | void simple_idct_put(uint8_t *dest, int line_size, DCTELEM *block); |
| 29 | 32 | void simple_idct_add(uint8_t *dest, int line_size, DCTELEM *block); |
| 30 | 33 | void ff_simple_idct_mmx(int16_t *block); |
| @@ -22,6 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | #ifndef SP5X_H |
| 23 | 23 | #define SP5X_H |
| 24 | 24 | |
| 25 | +#include <stdint.h> | |
| 26 | + | |
| 25 | 27 | static const uint8_t sp5x_data_sof[] = |
| 26 | 28 | { |
| 27 | 29 | 0xFF, 0xC0, /* SOF */ |
| @@ -29,6 +29,9 @@ · 28 unmodified lines | ||
| 29 | 29 | * svq1 code books. |
| 30 | 30 | */ |
| 31 | 31 | |
| 32 | +#include <stdint.h> | |
| 33 | +#include <stdlib.h> | |
| 34 | + | |
| 32 | 35 | /* 6x16-entry codebook for inter-coded 4x2 vectors */ |
| 33 | 36 | static const int8_t svq1_inter_codebook_4x2[768] = { |
| 34 | 37 | 7, 2, -6, -7, 7, 3, -3, -4, -7, -2, 7, 8, -8, -4, 3, 4, |
| @@ -21,6 +21,8 @@ · 20 unmodified lines | ||
| 21 | 21 | #ifndef SVQ1_VLC_H |
| 22 | 22 | #define SVQ1_VLC_H |
| 23 | 23 | |
| 24 | +#include <stdint.h> | |
| 25 | + | |
| 24 | 26 | /* values in this table range from 0..3; adjust retrieved value by +0 */ |
| 25 | 27 | static const uint8_t svq1_block_type_vlc[4][2] = { |
| 26 | 28 | /* { code, length } */ |
| @@ -28,6 +28,8 @@ · 27 unmodified lines | ||
| 28 | 28 | #ifndef TIFF_H |
| 29 | 29 | #define TIFF_H |
| 30 | 30 | |
| 31 | +#include <stdint.h> | |
| 32 | + | |
| 31 | 33 | /** abridged list of TIFF tags */ |
| 32 | 34 | enum TiffTags{ |
| 33 | 35 | TIFF_SUBFILE = 0xfe, |
| @@ -25,6 +25,9 @@ · 24 unmodified lines | ||
| 25 | 25 | #ifndef TRUEMOTION1DATA_H |
| 26 | 26 | #define TRUEMOTION1DATA_H |
| 27 | 27 | |
| 28 | +#include <stdint.h> | |
| 29 | +#include <stdlib.h> | |
| 30 | + | |
| 28 | 31 | /* Y delta tables, skinny and fat */ |
| 29 | 32 | static const int16_t ydt1[8] = { 0, -2, 2, -6, 6, -12, 12, -12 }; |
| 30 | 33 | static const int16_t ydt2[8] = { 0, -2, 4, -6, 8, -12, 12, -12 }; |
| @@ -22,6 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | #ifndef __TRUESPEECH_DATA__ |
| 23 | 23 | #define __TRUESPEECH_DATA__ |
| 24 | 24 | |
| 25 | +#include <stdint.h> | |
| 26 | + | |
| 25 | 27 | /* codebooks fo expanding input filter */ |
| 26 | 28 | static const int16_t ts_cb_0[32] = { |
| 27 | 29 | 0x8240, 0x8364, 0x84CE, 0x865D, 0x8805, 0x89DE, 0x8BD7, 0x8DF4, |
| @@ -19,6 +19,8 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include <stdint.h> | |
| 23 | + | |
| 22 | 24 | #define AC_MODES 8 |
| 23 | 25 | |
| 24 | 26 | static const int vc1_ac_sizes[AC_MODES] = { |
| @@ -28,6 +28,10 @@ · 27 unmodified lines | ||
| 28 | 28 | #ifndef VC1DATA_H |
| 29 | 29 | #define VC1DATA_H |
| 30 | 30 | |
| 31 | +#include <stdint.h> | |
| 32 | +#include "bitstream.h" | |
| 33 | +#include "rational.h" | |
| 34 | + | |
| 31 | 35 | /** Table for conversion between TTBLK and TTMB */ |
| 32 | 36 | extern const int ff_vc1_ttblk_to_tt[3][8]; |
| 33 | 37 | |
| @@ -18,6 +18,8 @@ · 17 unmodified lines | ||
| 18 | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | +#include <stdint.h> | |
| 22 | + | |
| 21 | 23 | static const uint8_t codebook0[] = { |
| 22 | 24 | 2, 10, 8, 14, 7, 12, 11, 14, 1, 5, 3, 7, 4, 9, 7, |
| 23 | 25 | 13, |
| @@ -21,6 +21,9 @@ · 20 unmodified lines | ||
| 21 | 21 | #ifndef VP3DATA_H |
| 22 | 22 | #define VP3DATA_H |
| 23 | 23 | |
| 24 | +#include <stdint.h> | |
| 25 | +#include <stdlib.h> | |
| 26 | + | |
| 24 | 27 | /* these coefficients dequantize intraframe Y plane coefficients |
| 25 | 28 | * (note: same as JPEG) */ |
| 26 | 29 | static const int16_t vp31_intra_y_dequant[64] = |
| @@ -24,6 +24,8 @@ · 23 unmodified lines | ||
| 24 | 24 | #ifndef VP5DATA_H |
| 25 | 25 | #define VP5DATA_H |
| 26 | 26 | |
| 27 | +#include <stdint.h> | |
| 28 | + | |
| 27 | 29 | static const uint8_t vp5_coeff_groups[] = { |
| 28 | 30 | -1, 0, 1, 1, 2, 1, 1, 2, |
| 29 | 31 | 2, 1, 1, 2, 2, 2, 1, 2, |
| @@ -24,6 +24,9 @@ · 23 unmodified lines | ||
| 24 | 24 | * Various WMA tables. |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | +#include <stdint.h> | |
| 28 | +#include "wma.h" | |
| 29 | + | |
| 27 | 30 | static const uint16_t wma_critical_freqs[25] = { |
| 28 | 31 | 100, 200, 300, 400, 510, 630, 770, 920, |
| 29 | 32 | 1080, 1270, 1480, 1720, 2000, 2320, 2700, 3150, |
| @@ -22,6 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | #ifndef ALLFORMATS_H |
| 23 | 23 | #define ALLFORMATS_H |
| 24 | 24 | |
| 25 | +#include "avformat.h" | |
| 26 | + | |
| 25 | 27 | extern AVInputFormat aac_demuxer; |
| 26 | 28 | extern AVInputFormat ac3_demuxer; |
| 27 | 29 | extern AVInputFormat aiff_demuxer; |
| @@ -17,6 +17,10 @@ · 16 unmodified lines | ||
| 17 | 17 | * License along with FFmpeg; if not, write to the Free Software |
| 18 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | 19 | */ |
| 20 | + | |
| 21 | +#include <stdint.h> | |
| 22 | +#include "avformat.h" | |
| 23 | + | |
| 20 | 24 | #define PACKET_SIZE 3200 |
| 21 | 25 | |
| 22 | 26 | typedef struct { |
| @@ -21,6 +21,8 @@ · 20 unmodified lines | ||
| 21 | 21 | #ifndef AVIO_H |
| 22 | 22 | #define AVIO_H |
| 23 | 23 | |
| 24 | +#include <stdint.h> | |
| 25 | + | |
| 24 | 26 | /* output byte stream handling */ |
| 25 | 27 | |
| 26 | 28 | typedef int64_t offset_t; |
| @@ -25,6 +25,8 @@ · 24 unmodified lines | ||
| 25 | 25 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | +#include "avformat.h" | |
| 29 | + | |
| 28 | 30 | typedef struct DVDemuxContext DVDemuxContext; |
| 29 | 31 | DVDemuxContext* dv_init_demux(AVFormatContext* s); |
| 30 | 32 | int dv_get_packet(DVDemuxContext*, AVPacket *); |
| @@ -24,6 +24,8 @@ · 23 unmodified lines | ||
| 24 | 24 | #ifndef FFMPEG_ISOM_H |
| 25 | 25 | #define FFMPEG_ISOM_H |
| 26 | 26 | |
| 27 | +#include "riff.h" | |
| 28 | + | |
| 27 | 29 | /* isom.c */ |
| 28 | 30 | extern const AVCodecTag ff_mp4_obj_type[]; |
| 29 | 31 | extern const AVCodecTag codec_movvideo_tags[]; |
| @@ -19,6 +19,8 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include "avformat.h" | |
| 23 | + | |
| 22 | 24 | #define TS_FEC_PACKET_SIZE 204 |
| 23 | 25 | #define TS_DVHS_PACKET_SIZE 192 |
| 24 | 26 | #define TS_PACKET_SIZE 188 |
| @@ -28,6 +28,9 @@ · 27 unmodified lines | ||
| 28 | 28 | #ifndef FF_RIFF_H |
| 29 | 29 | #define FF_RIFF_H |
| 30 | 30 | |
| 31 | +#include "avcodec.h" | |
| 32 | +#include "avio.h" | |
| 33 | + | |
| 31 | 34 | offset_t start_tag(ByteIOContext *pb, const char *tag); |
| 32 | 35 | void end_tag(ByteIOContext *pb, offset_t start); |
| 33 | 36 | |
| @@ -21,6 +21,9 @@ · 20 unmodified lines | ||
| 21 | 21 | #ifndef RTP_H |
| 22 | 22 | #define RTP_H |
| 23 | 23 | |
| 24 | +#include "avcodec.h" | |
| 25 | +#include "avformat.h" | |
| 26 | + | |
| 24 | 27 | #define RTP_MIN_PACKET_LENGTH 12 |
| 25 | 28 | #define RTP_MAX_PACKET_LENGTH 1500 /* XXX: suppress this define */ |
| 26 | 29 | |
| @@ -22,5 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | #ifndef RTP_H264_H |
| 23 | 23 | #define RTP_H264_H |
| 24 | 24 | |
| 25 | +#include "rtp_internal.h" | |
| 26 | + | |
| 25 | 27 | extern RTPDynamicProtocolHandler ff_h264_dynamic_handler; |
| 26 | 28 | #endif /* RTP_H264_H */ |
| @@ -23,6 +23,10 @@ · 22 unmodified lines | ||
| 23 | 23 | #ifndef RTP_INTERNAL_H |
| 24 | 24 | #define RTP_INTERNAL_H |
| 25 | 25 | |
| 26 | +#include <stdint.h> | |
| 27 | +#include "avcodec.h" | |
| 28 | +#include "rtp.h" | |
| 29 | + | |
| 26 | 30 | // these statistics are used for rtcp receiver reports... |
| 27 | 31 | typedef struct { |
| 28 | 32 | uint16_t max_seq; ///< highest sequence number seen |
| @@ -21,6 +21,8 @@ · 20 unmodified lines | ||
| 21 | 21 | #ifndef RTSP_H |
| 22 | 22 | #define RTSP_H |
| 23 | 23 | |
| 24 | +#include <stdint.h> | |
| 25 | +#include "avformat.h" | |
| 24 | 26 | #include "rtspcodes.h" |
| 25 | 27 | |
| 26 | 28 | enum RTSPProtocol { |
| @@ -21,6 +21,8 @@ · 20 unmodified lines | ||
| 21 | 21 | #ifndef ADLER32_H |
| 22 | 22 | #define ADLER32_H |
| 23 | 23 | |
| 24 | +#include <stdint.h> | |
| 25 | + | |
| 24 | 26 | unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, |
| 25 | 27 | unsigned int len); |
| 26 | 28 | |
| @@ -21,6 +21,8 @@ · 20 unmodified lines | ||
| 21 | 21 | #ifndef AES_H |
| 22 | 22 | #define AES_H |
| 23 | 23 | |
| 24 | +#include <stdint.h> | |
| 25 | + | |
| 24 | 26 | extern const int av_aes_size; |
| 25 | 27 | |
| 26 | 28 | struct AVAES; |
| @@ -19,6 +19,8 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include <stdint.h> | |
| 23 | + | |
| 22 | 24 | /** |
| 23 | 25 | * decodes base64 |
| 24 | 26 | * param order as strncpy() |
| @@ -26,6 +26,9 @@ · 25 unmodified lines | ||
| 26 | 26 | #ifndef __BSWAP_H__ |
| 27 | 27 | #define __BSWAP_H__ |
| 28 | 28 | |
| 29 | +#include <stdint.h> | |
| 30 | +#include "common.h" | |
| 31 | + | |
| 29 | 32 | #ifdef HAVE_BYTESWAP_H |
| 30 | 33 | #include <byteswap.h> |
| 31 | 34 | #else |
| @@ -21,6 +21,9 @@ · 20 unmodified lines | ||
| 21 | 21 | #ifndef CRC_H |
| 22 | 22 | #define CRC_H |
| 23 | 23 | |
| 24 | +#include <stdint.h> | |
| 25 | +#include <sys/types.h> | |
| 26 | + | |
| 24 | 27 | typedef uint32_t AVCRC; |
| 25 | 28 | |
| 26 | 29 | #if LIBAVUTIL_VERSION_INT < (50<<16) |
| @@ -24,6 +24,8 @@ · 23 unmodified lines | ||
| 24 | 24 | #ifndef FIFO_H |
| 25 | 25 | #define FIFO_H |
| 26 | 26 | |
| 27 | +#include <stdint.h> | |
| 28 | + | |
| 27 | 29 | typedef struct AVFifoBuffer { |
| 28 | 30 | uint8_t *buffer; |
| 29 | 31 | uint8_t *rptr, *wptr, *end; |
| @@ -29,6 +29,8 @@ · 28 unmodified lines | ||
| 29 | 29 | #ifndef INTEGER_H |
| 30 | 30 | #define INTEGER_H |
| 31 | 31 | |
| 32 | +#include <stdint.h> | |
| 33 | + | |
| 32 | 34 | #define AV_INTEGER_SIZE 8 |
| 33 | 35 | |
| 34 | 36 | typedef struct AVInteger{ |
| @@ -26,6 +26,9 @@ · 25 unmodified lines | ||
| 26 | 26 | #ifndef INTERNAL_H |
| 27 | 27 | #define INTERNAL_H |
| 28 | 28 | |
| 29 | +#include <stdint.h> | |
| 30 | +#include <assert.h> | |
| 31 | + | |
| 29 | 32 | #ifndef attribute_used |
| 30 | 33 | #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) |
| 31 | 34 | # define attribute_used __attribute__((used)) |
| @@ -19,6 +19,8 @@ · 18 unmodified lines | ||
| 19 | 19 | #ifndef INTREADWRITE_H |
| 20 | 20 | #define INTREADWRITE_H |
| 21 | 21 | |
| 22 | +#include <stdint.h> | |
| 23 | + | |
| 22 | 24 | #ifdef __GNUC__ |
| 23 | 25 | |
| 24 | 26 | struct unaligned_64 { uint64_t l; } __attribute__((packed)); |
| @@ -21,6 +21,8 @@ · 20 unmodified lines | ||
| 21 | 21 | #ifndef MD5_H |
| 22 | 22 | #define MD5_H |
| 23 | 23 | |
| 24 | +#include <stdint.h> | |
| 25 | + | |
| 24 | 26 | extern const int av_md5_size; |
| 25 | 27 | |
| 26 | 28 | struct AVMD5; |
| @@ -29,6 +29,8 @@ · 28 unmodified lines | ||
| 29 | 29 | #ifndef RATIONAL_H |
| 30 | 30 | #define RATIONAL_H |
| 31 | 31 | |
| 32 | +#include <stdint.h> | |
| 33 | + | |
| 32 | 34 | /** |
| 33 | 35 | * Rational number num/den. |
| 34 | 36 | */ |
| @@ -1,6 +1,8 @@ | ||
| 1 | 1 | #ifndef AV_SHA1_H |
| 2 | 2 | #define AV_SHA1_H |
| 3 | 3 | |
| 4 | +#include <stdint.h> | |
| 5 | + | |
| 4 | 6 | extern const int av_sha1_size; |
| 5 | 7 | |
| 6 | 8 | struct AVSHA1; |
| @@ -19,6 +19,8 @@ · 18 unmodified lines | ||
| 19 | 19 | * |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include <stdint.h> | |
| 23 | + | |
| 22 | 24 | #define MIN_EXP -126 |
| 23 | 25 | #define MAX_EXP 126 |
| 24 | 26 | #define ONE_BITS 29 |