History

include all prerequisites in header files

Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård committed 19 years ago

Commit 99545451 parent c2d08dc72 files · +180 −0Browse files

Showing the changes to libavcodec (48 of 72 files). Show all

Unified · Split

48 files
  1. libavcodec/aac_ac3_parser.h +3 −0
  2. libavcodec/atrac3data.h +2 −0
  3. libavcodec/bitstream.h +5 −0
  4. libavcodec/bmp.h +2 −0
  5. libavcodec/bytestream.h +2 −0
  6. libavcodec/cookdata.h +2 −0
  7. libavcodec/dcadata.h +2 −0
  8. libavcodec/dcahuff.h +3 −0
  9. libavcodec/dnxhddata.h +2 −0
  10. libavcodec/dvdata.h +3 −0
  11. libavcodec/faandct.h +2 −0
  12. libavcodec/golomb.h +3 −0
  13. libavcodec/h261data.h +3 −0
  14. libavcodec/h263_parser.h +2 −0
  15. libavcodec/h263data.h +2 −0
  16. libavcodec/h264data.h +4 −0
  17. libavcodec/imcdata.h +2 −0
  18. libavcodec/indeo2data.h +2 −0
  19. libavcodec/indeo3data.h +2 −0
  20. libavcodec/jpeglsdec.h +1 −0
  21. libavcodec/mathops.h +2 −0
  22. libavcodec/mpcdata.h +2 −0
  23. libavcodec/mpeg12data.h +3 −0
  24. libavcodec/mpeg4data.h +3 −0
  25. libavcodec/mpegaudiodectab.h +3 −0
  26. libavcodec/mpegaudiotab.h +3 −0
  27. libavcodec/msmpeg4tab.h +4 −0
  28. libavcodec/opt.h +2 −0
  29. libavcodec/qdm2data.h +2 −0
  30. libavcodec/rangecoder.h +4 −0
  31. libavcodec/ratecontrol.h +2 −0
  32. libavcodec/rl.h +4 −0
  33. libavcodec/rle.h +2 −0
  34. libavcodec/rtjpeg.h +3 −0
  35. libavcodec/s3tc.h +2 −0
  36. libavcodec/simple_idct.h +3 −0
  37. libavcodec/sp5x.h +2 −0
  38. libavcodec/svq1_cb.h +3 −0
  39. libavcodec/svq1_vlc.h +2 −0
  40. libavcodec/tiff.h +2 −0
  41. libavcodec/truemotion1data.h +3 −0
  42. libavcodec/truespeech_data.h +2 −0
  43. libavcodec/vc1acdata.h +2 −0
  44. libavcodec/vc1data.h +4 −0
  45. libavcodec/vorbis_enc_data.h +2 −0
  46. libavcodec/vp3data.h +3 −0
  47. libavcodec/vp5data.h +2 −0
  48. libavcodec/wmadata.h +3 −0
libavcodec/aac_ac3_parser.h+3−0
@@ -23,6 +23,9 @@ · 22 unmodified lines
2323 #ifndef AAC_AC3_PARSER_H
2424 #define AAC_AC3_PARSER_H
2525
26+#include <stdint.h>
27+#include "avcodec.h"
28+
2629 typedef struct AACAC3ParseContext {
2730 uint8_t *inbuf_ptr;
2831 int frame_size;
libavcodec/atrac3data.h+2−0
@@ -25,6 +25,8 @@ · 24 unmodified lines
2525 * Atrac 3 AKA RealAudio 8 compatible decoder data
2626 */
2727
28+#include <stdint.h>
29+
2830 /* VLC tables */
2931
3032 static const uint8_t huffcode1[9] = {
libavcodec/bitstream.h+5−0
@@ -26,6 +26,11 @@ · 25 unmodified lines
2626 #ifndef BITSTREAM_H
2727 #define BITSTREAM_H
2828
29+#include <stdint.h>
30+#include <stdlib.h>
31+#include <assert.h>
32+#include "common.h"
33+#include "bswap.h"
2934 #include "log.h"
3035
3136 #if defined(ALT_BITSTREAM_READER_LE) && !defined(ALT_BITSTREAM_READER)
libavcodec/bmp.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22+#include "avcodec.h"
23+
2224 typedef struct BMPContext {
2325 AVFrame picture;
2426 } BMPContext;
libavcodec/bytestream.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
2222 #ifndef FFMPEG_BYTESTREAM_H
2323 #define FFMPEG_BYTESTREAM_H
2424
25+#include "common.h"
26+
2527 #define DEF(name, bytes, read, write)\
2628 static av_always_inline unsigned int bytestream_get_ ## name(uint8_t **b){\
2729 (*b) += bytes;\
libavcodec/cookdata.h+2−0
@@ -26,6 +26,8 @@ · 25 unmodified lines
2626 * Cook AKA RealAudio G2 compatible decoderdata
2727 */
2828
29+#include <stdint.h>
30+
2931 /* various data tables */
3032
3133 static const int expbits_tab[8] = {
libavcodec/dcadata.h+2−0
@@ -24,6 +24,8 @@ · 23 unmodified lines
2424 * @file dcadata.c
2525 */
2626
27+#include <stdint.h>
28+
2729 /* Generic tables */
2830
2931 static const uint32_t dca_sample_rates[16] =
libavcodec/dcahuff.h+3−0
@@ -20,6 +20,9 @@ · 19 unmodified lines
2020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121 */
2222
23+#include <stdint.h>
24+#include <stdlib.h>
25+
2326 #define TMODE_COUNT 4
2427 static const uint8_t tmode_vlc_bits[TMODE_COUNT] = { 3, 3, 3, 2 };
2528 static const uint16_t tmode_codes[TMODE_COUNT][4] = {
libavcodec/dnxhddata.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22+#include <stdint.h>
23+
2224 static const uint8_t dnxhd_1238_luma_weigth[] = {
2325 0, 32, 32, 33, 34, 33, 33, 33,
2426 33, 33, 33, 33, 33, 35, 37, 37,
libavcodec/dvdata.h+3−0
@@ -24,6 +24,9 @@ · 23 unmodified lines
2424 * Constants for DV codec.
2525 */
2626
27+#include "avcodec.h"
28+#include "rational.h"
29+
2730 /*
2831 * DVprofile is used to express the differences between various
2932 * DV flavors. For now it's primarily used for differentiating
libavcodec/faandct.h+2−0
@@ -27,6 +27,8 @@ · 26 unmodified lines
2727 * @author Michael Niedermayer <michaelni@gmx.at>
2828 */
2929
30+#include "dsputil.h"
31+
3032 #define FAAN_POSTSCALE
3133
3234 void ff_faandct(DCTELEM * data);
libavcodec/golomb.h+3−0
@@ -28,6 +28,9 @@ · 27 unmodified lines
2828 * @author Michael Niedermayer <michaelni@gmx.at> and Alex Beregszaszi
2929 */
3030
31+#include <stdint.h>
32+#include "bitstream.h"
33+
3134 #define INVALID_VLC 0x80000000
3235
3336 extern const uint8_t ff_golomb_vlc_len[512];
libavcodec/h261data.h+3−0
@@ -24,6 +24,9 @@ · 23 unmodified lines
2424 * H.261 tables.
2525 */
2626
27+#include <stdint.h>
28+#include "h261.h"
29+
2730 // H.261 VLC table for macroblock addressing
2831 static const uint8_t h261_mba_code[35] = {
2932 1, 3, 2, 3,
libavcodec/h263_parser.h+2−0
@@ -19,4 +19,6 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22+#include "parser.h"
23+
2224 int ff_h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size);
libavcodec/h263data.h+2−0
@@ -26,6 +26,8 @@ · 25 unmodified lines
2626 * H.263 tables.
2727 */
2828
29+#include <stdint.h>
30+#include "mpegvideo.h"
2931
3032 /* intra MCBPC, mb_type = (intra), then (intraq) */
3133 const uint8_t intra_MCBPC_code[9] = { 1, 1, 2, 3, 1, 1, 2, 3, 1 };
libavcodec/h264data.h+4−0
@@ -27,6 +27,10 @@ · 26 unmodified lines
2727 * @author Michael Niedermayer <michaelni@gmx.at>
2828 */
2929
30+#include <stdint.h>
31+#include "mpegvideo.h"
32+#include "rational.h"
33+
3034 #define VERT_PRED 0
3135 #define HOR_PRED 1
3236 #define DC_PRED 2
libavcodec/imcdata.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
2222 *
2323 */
2424
25+#include <stdint.h>
26+
2527 static const uint16_t band_tab[33] = {
2628 0, 3, 6, 9, 12, 16, 20, 24, 29, 34, 40,
2729 46, 53, 60, 68, 76, 84, 93, 102, 111, 121, 131,
libavcodec/indeo2data.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22+#include <stdint.h>
23+
2224 #define IR2_CODES 143
2325 static const uint16_t ir2_codes[IR2_CODES][2] = {
2426 #ifdef ALT_BITSTREAM_READER_LE
libavcodec/indeo3data.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22+#include <stdint.h>
23+
2224 static const uint32_t correction[] = {
2325 0x00000000, 0x00000202, 0xfffffdfe, 0x000002ff, 0xfffffd01, 0xffffff03, 0x000000fd, 0x00000404,
2426 0xfffffbfc, 0x00000501, 0xfffffaff, 0x00000105, 0xfffffefb, 0x000003fc, 0xfffffc04, 0x000005fe,
libavcodec/jpeglsdec.h+1−0
@@ -29,6 +29,7 @@ · 28 unmodified lines
2929 #define JPEGLSDEC_H
3030
3131 #include "mjpeg.h"
32+#include "mjpegdec.h"
3233
3334 /**
3435 * Decode LSE block with initialization parameters
libavcodec/mathops.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
2222 #ifndef MATHOPS_H
2323 #define MATHOPS_H
2424
25+#include "common.h"
26+
2527 #ifdef ARCH_X86_32
2628
2729 #include "i386/mathops.h"
libavcodec/mpcdata.h+2−0
@@ -20,6 +20,8 @@ · 19 unmodified lines
2020 *
2121 */
2222
23+#include <stdint.h>
24+
2325 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};
2426 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};
2527 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};
libavcodec/mpeg12data.h+3−0
@@ -25,6 +25,9 @@ · 24 unmodified lines
2525 * MPEG1/2 tables.
2626 */
2727
28+#include <stdint.h>
29+#include "mpegvideo.h"
30+
2831 const uint16_t ff_mpeg1_default_intra_matrix[64] = {
2932 8, 16, 19, 22, 26, 27, 29, 34,
3033 16, 16, 22, 24, 27, 29, 34, 37,
libavcodec/mpeg4data.h+3−0
@@ -25,6 +25,9 @@ · 24 unmodified lines
2525 * mpeg4 tables.
2626 */
2727
28+#include <stdint.h>
29+#include "mpegvideo.h"
30+
2831 // shapes
2932 #define RECT_SHAPE 0
3033 #define BIN_SHAPE 1
libavcodec/mpegaudiodectab.h+3−0
@@ -24,6 +24,9 @@ · 23 unmodified lines
2424 * mpeg audio layer decoder tables.
2525 */
2626
27+#include <stdint.h>
28+#include "mpegaudio.h"
29+
2730 /*******************************************************/
2831 /* layer 3 tables */
2932
libavcodec/mpegaudiotab.h+3−0
@@ -27,6 +27,9 @@ · 26 unmodified lines
2727 * Most of them come from the mpeg audio specification.
2828 */
2929
30+#include <stdint.h>
31+#include "mpegaudio.h"
32+
3033 #define SQRT2 1.41421356237309514547
3134
3235 static const int costab32[30] = {
libavcodec/msmpeg4tab.h+4−0
@@ -27,6 +27,10 @@ · 26 unmodified lines
2727 * MSMPEG4 data tables.
2828 */
2929
30+#include <stdint.h>
31+#include "bitstream.h"
32+#include "rl.h"
33+
3034 /* non intra picture macro block coded block pattern + mb type */
3135 static const uint32_t table_mb_non_intra[128][2] = {
3236 { 0x40, 7 },{ 0x13c9, 13 },{ 0x9fd, 12 },{ 0x1fc, 15 },
libavcodec/opt.h+2−0
@@ -27,6 +27,8 @@ · 26 unmodified lines
2727 * AVOptions
2828 */
2929
30+#include "rational.h"
31+
3032 enum AVOptionType{
3133 FF_OPT_TYPE_FLAGS,
3234 FF_OPT_TYPE_INT,
libavcodec/qdm2data.h+2−0
@@ -31,6 +31,8 @@ · 30 unmodified lines
3131 #ifndef QDM2DATA_H
3232 #define QDM2DATA_H
3333
34+#include <stdint.h>
35+
3436 /** VLC TABLES **/
3537
3638 /* values in this table range from -1..23; adjust retrieved value by -1 */
libavcodec/rangecoder.h+4−0
@@ -25,6 +25,10 @@ · 24 unmodified lines
2525 * Range coder.
2626 */
2727
28+#include <stdint.h>
29+#include <assert.h>
30+#include "common.h"
31+
2832 typedef struct RangeCoder{
2933 int low;
3034 int range;
libavcodec/ratecontrol.h+2−0
@@ -28,6 +28,8 @@ · 27 unmodified lines
2828 * ratecontrol header.
2929 */
3030
31+#include <stdio.h>
32+#include <stdint.h>
3133 #include "eval.h"
3234
3335 typedef struct Predictor{
libavcodec/rl.h+4−0
@@ -6,6 +6,10 @@ · 5 unmodified lines
66 #ifndef AVCODEC_RL_H
77 #define AVCODEC_RL_H
88
9+#include <stdint.h>
10+#include "bitstream.h"
11+#include "mpegvideo.h"
12+
913 /** RLTable. */
1014 typedef struct RLTable {
1115 int n; ///< number of entries of table_vlc minus 1
libavcodec/rle.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
2222 #ifndef RLE_H
2323 #define RLE_H
2424
25+#include <stdint.h>
26+
2527 /**
2628 * RLE compress the row, with maximum size of out_size. Value before repeated bytes is (count ^ xor_rep) + add_rep.
2729 * Value before raw bytes is (count ^ xor_raw) + add_raw.
libavcodec/rtjpeg.h+3−0
@@ -22,6 +22,9 @@ · 21 unmodified lines
2222 #ifndef RTJPEG_H
2323 #define RTJPEG_H
2424
25+#include <stdint.h>
26+#include <dsputil.h>
27+
2528 typedef struct {
2629 int w, h;
2730 DSPContext *dsp;
libavcodec/s3tc.h+2−0
@@ -23,6 +23,8 @@ · 22 unmodified lines
2323 #ifndef FF_S3TC_H
2424 #define FF_S3TC_H
2525
26+#include <stdint.h>
27+
2628 #define FF_S3TC_DXT1 0x31545844
2729 #define FF_S3TC_DXT3 0x33545844
2830
libavcodec/simple_idct.h+3−0
@@ -25,6 +25,9 @@ · 24 unmodified lines
2525 * simple idct header.
2626 */
2727
28+#include <stdint.h>
29+#include "dsputil.h"
30+
2831 void simple_idct_put(uint8_t *dest, int line_size, DCTELEM *block);
2932 void simple_idct_add(uint8_t *dest, int line_size, DCTELEM *block);
3033 void ff_simple_idct_mmx(int16_t *block);
libavcodec/sp5x.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
2222 #ifndef SP5X_H
2323 #define SP5X_H
2424
25+#include <stdint.h>
26+
2527 static const uint8_t sp5x_data_sof[] =
2628 {
2729 0xFF, 0xC0, /* SOF */
libavcodec/svq1_cb.h+3−0
@@ -29,6 +29,9 @@ · 28 unmodified lines
2929 * svq1 code books.
3030 */
3131
32+#include <stdint.h>
33+#include <stdlib.h>
34+
3235 /* 6x16-entry codebook for inter-coded 4x2 vectors */
3336 static const int8_t svq1_inter_codebook_4x2[768] = {
3437 7, 2, -6, -7, 7, 3, -3, -4, -7, -2, 7, 8, -8, -4, 3, 4,
libavcodec/svq1_vlc.h+2−0
@@ -21,6 +21,8 @@ · 20 unmodified lines
2121 #ifndef SVQ1_VLC_H
2222 #define SVQ1_VLC_H
2323
24+#include <stdint.h>
25+
2426 /* values in this table range from 0..3; adjust retrieved value by +0 */
2527 static const uint8_t svq1_block_type_vlc[4][2] = {
2628 /* { code, length } */
libavcodec/tiff.h+2−0
@@ -28,6 +28,8 @@ · 27 unmodified lines
2828 #ifndef TIFF_H
2929 #define TIFF_H
3030
31+#include <stdint.h>
32+
3133 /** abridged list of TIFF tags */
3234 enum TiffTags{
3335 TIFF_SUBFILE = 0xfe,
libavcodec/truemotion1data.h+3−0
@@ -25,6 +25,9 @@ · 24 unmodified lines
2525 #ifndef TRUEMOTION1DATA_H
2626 #define TRUEMOTION1DATA_H
2727
28+#include <stdint.h>
29+#include <stdlib.h>
30+
2831 /* Y delta tables, skinny and fat */
2932 static const int16_t ydt1[8] = { 0, -2, 2, -6, 6, -12, 12, -12 };
3033 static const int16_t ydt2[8] = { 0, -2, 4, -6, 8, -12, 12, -12 };
libavcodec/truespeech_data.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
2222 #ifndef __TRUESPEECH_DATA__
2323 #define __TRUESPEECH_DATA__
2424
25+#include <stdint.h>
26+
2527 /* codebooks fo expanding input filter */
2628 static const int16_t ts_cb_0[32] = {
2729 0x8240, 0x8364, 0x84CE, 0x865D, 0x8805, 0x89DE, 0x8BD7, 0x8DF4,
libavcodec/vc1acdata.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22+#include <stdint.h>
23+
2224 #define AC_MODES 8
2325
2426 static const int vc1_ac_sizes[AC_MODES] = {
libavcodec/vc1data.h+4−0
@@ -28,6 +28,10 @@ · 27 unmodified lines
2828 #ifndef VC1DATA_H
2929 #define VC1DATA_H
3030
31+#include <stdint.h>
32+#include "bitstream.h"
33+#include "rational.h"
34+
3135 /** Table for conversion between TTBLK and TTMB */
3236 extern const int ff_vc1_ttblk_to_tt[3][8];
3337
libavcodec/vorbis_enc_data.h+2−0
@@ -18,6 +18,8 @@ · 17 unmodified lines
1818 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919 */
2020
21+#include <stdint.h>
22+
2123 static const uint8_t codebook0[] = {
2224 2, 10, 8, 14, 7, 12, 11, 14, 1, 5, 3, 7, 4, 9, 7,
2325 13,
libavcodec/vp3data.h+3−0
@@ -21,6 +21,9 @@ · 20 unmodified lines
2121 #ifndef VP3DATA_H
2222 #define VP3DATA_H
2323
24+#include <stdint.h>
25+#include <stdlib.h>
26+
2427 /* these coefficients dequantize intraframe Y plane coefficients
2528 * (note: same as JPEG) */
2629 static const int16_t vp31_intra_y_dequant[64] =
libavcodec/vp5data.h+2−0
@@ -24,6 +24,8 @@ · 23 unmodified lines
2424 #ifndef VP5DATA_H
2525 #define VP5DATA_H
2626
27+#include <stdint.h>
28+
2729 static const uint8_t vp5_coeff_groups[] = {
2830 -1, 0, 1, 1, 2, 1, 1, 2,
2931 2, 1, 1, 2, 2, 2, 1, 2,
libavcodec/wmadata.h+3−0
@@ -24,6 +24,9 @@ · 23 unmodified lines
2424 * Various WMA tables.
2525 */
2626
27+#include <stdint.h>
28+#include "wma.h"
29+
2730 static const uint16_t wma_critical_freqs[25] = {
2831 100, 200, 300, 400, 510, 630, 770, 920,
2932 1080, 1270, 1480, 1720, 2000, 2320, 2700, 3150,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t