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

Unified · Split

72 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
  49. libavformat/allformats.h +2 −0
  50. libavformat/asf.h +4 −0
  51. libavformat/avio.h +2 −0
  52. libavformat/dv.h +2 −0
  53. libavformat/isom.h +2 −0
  54. libavformat/mpegts.h +2 −0
  55. libavformat/riff.h +3 −0
  56. libavformat/rtp.h +3 −0
  57. libavformat/rtp_h264.h +2 −0
  58. libavformat/rtp_internal.h +4 −0
  59. libavformat/rtsp.h +2 −0
  60. libavutil/adler32.h +2 −0
  61. libavutil/aes.h +2 −0
  62. libavutil/base64.h +2 −0
  63. libavutil/bswap.h +3 −0
  64. libavutil/crc.h +3 −0
  65. libavutil/fifo.h +2 −0
  66. libavutil/integer.h +2 −0
  67. libavutil/internal.h +3 −0
  68. libavutil/intreadwrite.h +2 −0
  69. libavutil/md5.h +2 −0
  70. libavutil/rational.h +2 −0
  71. libavutil/sha1.h +2 −0
  72. libavutil/softfloat.h +2 −0
libavcodec/aac_ac3_parser.h+3−0
@@ -23,6 +23,9 @@ · 22 unmodified lines
23#ifndef AAC_AC3_PARSER_H23#ifndef AAC_AC3_PARSER_H
24#define AAC_AC3_PARSER_H24#define AAC_AC3_PARSER_H
25 25
26#include <stdint.h>
27#include "avcodec.h"
28
26typedef struct AACAC3ParseContext {29typedef struct AACAC3ParseContext {
27 uint8_t *inbuf_ptr;30 uint8_t *inbuf_ptr;
28 int frame_size;31 int frame_size;
libavcodec/atrac3data.h+2−0
@@ -25,6 +25,8 @@ · 24 unmodified lines
25 * Atrac 3 AKA RealAudio 8 compatible decoder data25 * Atrac 3 AKA RealAudio 8 compatible decoder data
26 */26 */
27 27
28#include <stdint.h>
29
28/* VLC tables */30/* VLC tables */
29 31
30static const uint8_t huffcode1[9] = {32static const uint8_t huffcode1[9] = {
libavcodec/bitstream.h+5−0
@@ -26,6 +26,11 @@ · 25 unmodified lines
26#ifndef BITSTREAM_H26#ifndef BITSTREAM_H
27#define BITSTREAM_H27#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#include "log.h"34#include "log.h"
30 35
31#if defined(ALT_BITSTREAM_READER_LE) && !defined(ALT_BITSTREAM_READER)36#if defined(ALT_BITSTREAM_READER_LE) && !defined(ALT_BITSTREAM_READER)
libavcodec/bmp.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
21 21
22#include "avcodec.h"
23
22typedef struct BMPContext {24typedef struct BMPContext {
23 AVFrame picture;25 AVFrame picture;
24} BMPContext;26} BMPContext;
libavcodec/bytestream.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
22#ifndef FFMPEG_BYTESTREAM_H22#ifndef FFMPEG_BYTESTREAM_H
23#define FFMPEG_BYTESTREAM_H23#define FFMPEG_BYTESTREAM_H
24 24
25#include "common.h"
26
25#define DEF(name, bytes, read, write)\27#define DEF(name, bytes, read, write)\
26static av_always_inline unsigned int bytestream_get_ ## name(uint8_t **b){\28static av_always_inline unsigned int bytestream_get_ ## name(uint8_t **b){\
27 (*b) += bytes;\29 (*b) += bytes;\
libavcodec/cookdata.h+2−0
@@ -26,6 +26,8 @@ · 25 unmodified lines
26 * Cook AKA RealAudio G2 compatible decoderdata26 * Cook AKA RealAudio G2 compatible decoderdata
27 */27 */
28 28
29#include <stdint.h>
30
29/* various data tables */31/* various data tables */
30 32
31static const int expbits_tab[8] = {33static const int expbits_tab[8] = {
libavcodec/dcadata.h+2−0
@@ -24,6 +24,8 @@ · 23 unmodified lines
24 * @file dcadata.c24 * @file dcadata.c
25 */25 */
26 26
27#include <stdint.h>
28
27/* Generic tables */29/* Generic tables */
28 30
29static const uint32_t dca_sample_rates[16] =31static const uint32_t dca_sample_rates[16] =
libavcodec/dcahuff.h+3−0
@@ -20,6 +20,9 @@ · 19 unmodified lines
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA20 * 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#define TMODE_COUNT 426#define TMODE_COUNT 4
24static const uint8_t tmode_vlc_bits[TMODE_COUNT] = { 3, 3, 3, 2 };27static const uint8_t tmode_vlc_bits[TMODE_COUNT] = { 3, 3, 3, 2 };
25static const uint16_t tmode_codes[TMODE_COUNT][4] = {28static const uint16_t tmode_codes[TMODE_COUNT][4] = {
libavcodec/dnxhddata.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
21 21
22#include <stdint.h>
23
22static const uint8_t dnxhd_1238_luma_weigth[] = {24static const uint8_t dnxhd_1238_luma_weigth[] = {
23 0, 32, 32, 33, 34, 33, 33, 33,25 0, 32, 32, 33, 34, 33, 33, 33,
24 33, 33, 33, 33, 33, 35, 37, 37,26 33, 33, 33, 33, 33, 35, 37, 37,
libavcodec/dvdata.h+3−0
@@ -24,6 +24,9 @@ · 23 unmodified lines
24 * Constants for DV codec.24 * Constants for DV codec.
25 */25 */
26 26
27#include "avcodec.h"
28#include "rational.h"
29
27/*30/*
28 * DVprofile is used to express the differences between various31 * DVprofile is used to express the differences between various
29 * DV flavors. For now it's primarily used for differentiating32 * DV flavors. For now it's primarily used for differentiating
libavcodec/faandct.h+2−0
@@ -27,6 +27,8 @@ · 26 unmodified lines
27 * @author Michael Niedermayer <michaelni@gmx.at>27 * @author Michael Niedermayer <michaelni@gmx.at>
28 */28 */
29 29
30#include "dsputil.h"
31
30#define FAAN_POSTSCALE32#define FAAN_POSTSCALE
31 33
32void ff_faandct(DCTELEM * data);34void ff_faandct(DCTELEM * data);
libavcodec/golomb.h+3−0
@@ -28,6 +28,9 @@ · 27 unmodified lines
28 * @author Michael Niedermayer <michaelni@gmx.at> and Alex Beregszaszi28 * @author Michael Niedermayer <michaelni@gmx.at> and Alex Beregszaszi
29 */29 */
30 30
31#include <stdint.h>
32#include "bitstream.h"
33
31#define INVALID_VLC 0x8000000034#define INVALID_VLC 0x80000000
32 35
33extern const uint8_t ff_golomb_vlc_len[512];36extern const uint8_t ff_golomb_vlc_len[512];
libavcodec/h261data.h+3−0
@@ -24,6 +24,9 @@ · 23 unmodified lines
24 * H.261 tables.24 * H.261 tables.
25 */25 */
26 26
27#include <stdint.h>
28#include "h261.h"
29
27// H.261 VLC table for macroblock addressing30// H.261 VLC table for macroblock addressing
28static const uint8_t h261_mba_code[35] = {31static const uint8_t h261_mba_code[35] = {
29 1, 3, 2, 3,32 1, 3, 2, 3,
libavcodec/h263_parser.h+2−0
@@ -19,4 +19,6 @@ · 18 unmodified lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
21 21
22#include "parser.h"
23
22int ff_h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size);24int 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
26 * H.263 tables.26 * H.263 tables.
27 */27 */
28 28
29#include <stdint.h>
30#include "mpegvideo.h"
29 31
30/* intra MCBPC, mb_type = (intra), then (intraq) */32/* intra MCBPC, mb_type = (intra), then (intraq) */
31const uint8_t intra_MCBPC_code[9] = { 1, 1, 2, 3, 1, 1, 2, 3, 1 };33const 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
27 * @author Michael Niedermayer <michaelni@gmx.at>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#define VERT_PRED 034#define VERT_PRED 0
31#define HOR_PRED 135#define HOR_PRED 1
32#define DC_PRED 236#define DC_PRED 2
libavcodec/imcdata.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
22 *22 *
23 */23 */
24 24
25#include <stdint.h>
26
25static const uint16_t band_tab[33] = {27static const uint16_t band_tab[33] = {
26 0, 3, 6, 9, 12, 16, 20, 24, 29, 34, 40,28 0, 3, 6, 9, 12, 16, 20, 24, 29, 34, 40,
27 46, 53, 60, 68, 76, 84, 93, 102, 111, 121, 131,29 46, 53, 60, 68, 76, 84, 93, 102, 111, 121, 131,
libavcodec/indeo2data.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
21 21
22#include <stdint.h>
23
22#define IR2_CODES 14324#define IR2_CODES 143
23static const uint16_t ir2_codes[IR2_CODES][2] = {25static const uint16_t ir2_codes[IR2_CODES][2] = {
24#ifdef ALT_BITSTREAM_READER_LE26#ifdef ALT_BITSTREAM_READER_LE
libavcodec/indeo3data.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
21 21
22#include <stdint.h>
23
22static const uint32_t correction[] = {24static const uint32_t correction[] = {
23 0x00000000, 0x00000202, 0xfffffdfe, 0x000002ff, 0xfffffd01, 0xffffff03, 0x000000fd, 0x00000404,25 0x00000000, 0x00000202, 0xfffffdfe, 0x000002ff, 0xfffffd01, 0xffffff03, 0x000000fd, 0x00000404,
24 0xfffffbfc, 0x00000501, 0xfffffaff, 0x00000105, 0xfffffefb, 0x000003fc, 0xfffffc04, 0x000005fe,26 0xfffffbfc, 0x00000501, 0xfffffaff, 0x00000105, 0xfffffefb, 0x000003fc, 0xfffffc04, 0x000005fe,
libavcodec/jpeglsdec.h+1−0
@@ -29,6 +29,7 @@ · 28 unmodified lines
29#define JPEGLSDEC_H29#define JPEGLSDEC_H
30 30
31#include "mjpeg.h"31#include "mjpeg.h"
32#include "mjpegdec.h"
32 33
33/**34/**
34 * Decode LSE block with initialization parameters35 * Decode LSE block with initialization parameters
libavcodec/mathops.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
22#ifndef MATHOPS_H22#ifndef MATHOPS_H
23#define MATHOPS_H23#define MATHOPS_H
24 24
25#include "common.h"
26
25#ifdef ARCH_X86_3227#ifdef ARCH_X86_32
26 28
27#include "i386/mathops.h"29#include "i386/mathops.h"
libavcodec/mpcdata.h+2−0
@@ -20,6 +20,8 @@ · 19 unmodified lines
20 *20 *
21 */21 */
22 22
23#include <stdint.h>
24
23static 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};25static 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};
24static 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};26static 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};
25static 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};27static 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
25 * MPEG1/2 tables.25 * MPEG1/2 tables.
26 */26 */
27 27
28#include <stdint.h>
29#include "mpegvideo.h"
30
28const uint16_t ff_mpeg1_default_intra_matrix[64] = {31const uint16_t ff_mpeg1_default_intra_matrix[64] = {
29 8, 16, 19, 22, 26, 27, 29, 34,32 8, 16, 19, 22, 26, 27, 29, 34,
30 16, 16, 22, 24, 27, 29, 34, 37,33 16, 16, 22, 24, 27, 29, 34, 37,
libavcodec/mpeg4data.h+3−0
@@ -25,6 +25,9 @@ · 24 unmodified lines
25 * mpeg4 tables.25 * mpeg4 tables.
26 */26 */
27 27
28#include <stdint.h>
29#include "mpegvideo.h"
30
28// shapes31// shapes
29#define RECT_SHAPE 032#define RECT_SHAPE 0
30#define BIN_SHAPE 133#define BIN_SHAPE 1
libavcodec/mpegaudiodectab.h+3−0
@@ -24,6 +24,9 @@ · 23 unmodified lines
24 * mpeg audio layer decoder tables.24 * mpeg audio layer decoder tables.
25 */25 */
26 26
27#include <stdint.h>
28#include "mpegaudio.h"
29
27/*******************************************************/30/*******************************************************/
28/* layer 3 tables */31/* layer 3 tables */
29 32
libavcodec/mpegaudiotab.h+3−0
@@ -27,6 +27,9 @@ · 26 unmodified lines
27 * Most of them come from the mpeg audio specification.27 * Most of them come from the mpeg audio specification.
28 */28 */
29 29
30#include <stdint.h>
31#include "mpegaudio.h"
32
30#define SQRT2 1.4142135623730951454733#define SQRT2 1.41421356237309514547
31 34
32static const int costab32[30] = {35static const int costab32[30] = {
libavcodec/msmpeg4tab.h+4−0
@@ -27,6 +27,10 @@ · 26 unmodified lines
27 * MSMPEG4 data tables.27 * MSMPEG4 data tables.
28 */28 */
29 29
30#include <stdint.h>
31#include "bitstream.h"
32#include "rl.h"
33
30/* non intra picture macro block coded block pattern + mb type */34/* non intra picture macro block coded block pattern + mb type */
31static const uint32_t table_mb_non_intra[128][2] = {35static const uint32_t table_mb_non_intra[128][2] = {
32{ 0x40, 7 },{ 0x13c9, 13 },{ 0x9fd, 12 },{ 0x1fc, 15 },36{ 0x40, 7 },{ 0x13c9, 13 },{ 0x9fd, 12 },{ 0x1fc, 15 },
libavcodec/opt.h+2−0
@@ -27,6 +27,8 @@ · 26 unmodified lines
27 * AVOptions27 * AVOptions
28 */28 */
29 29
30#include "rational.h"
31
30enum AVOptionType{32enum AVOptionType{
31 FF_OPT_TYPE_FLAGS,33 FF_OPT_TYPE_FLAGS,
32 FF_OPT_TYPE_INT,34 FF_OPT_TYPE_INT,
libavcodec/qdm2data.h+2−0
@@ -31,6 +31,8 @@ · 30 unmodified lines
31#ifndef QDM2DATA_H31#ifndef QDM2DATA_H
32#define QDM2DATA_H32#define QDM2DATA_H
33 33
34#include <stdint.h>
35
34/** VLC TABLES **/36/** VLC TABLES **/
35 37
36/* values in this table range from -1..23; adjust retrieved value by -1 */38/* 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
25 * Range coder.25 * Range coder.
26 */26 */
27 27
28#include <stdint.h>
29#include <assert.h>
30#include "common.h"
31
28typedef struct RangeCoder{32typedef struct RangeCoder{
29 int low;33 int low;
30 int range;34 int range;
libavcodec/ratecontrol.h+2−0
@@ -28,6 +28,8 @@ · 27 unmodified lines
28 * ratecontrol header.28 * ratecontrol header.
29 */29 */
30 30
31#include <stdio.h>
32#include <stdint.h>
31#include "eval.h"33#include "eval.h"
32 34
33typedef struct Predictor{35typedef struct Predictor{
libavcodec/rl.h+4−0
@@ -6,6 +6,10 @@ · 5 unmodified lines
6#ifndef AVCODEC_RL_H6#ifndef AVCODEC_RL_H
7#define AVCODEC_RL_H7#define AVCODEC_RL_H
8 8
9#include <stdint.h>
10#include "bitstream.h"
11#include "mpegvideo.h"
12
9/** RLTable. */13/** RLTable. */
10typedef struct RLTable {14typedef struct RLTable {
11 int n; ///< number of entries of table_vlc minus 115 int n; ///< number of entries of table_vlc minus 1
libavcodec/rle.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
22#ifndef RLE_H22#ifndef RLE_H
23#define RLE_H23#define RLE_H
24 24
25#include <stdint.h>
26
25/**27/**
26 * RLE compress the row, with maximum size of out_size. Value before repeated bytes is (count ^ xor_rep) + add_rep.28 * RLE compress the row, with maximum size of out_size. Value before repeated bytes is (count ^ xor_rep) + add_rep.
27 * Value before raw bytes is (count ^ xor_raw) + add_raw.29 * Value before raw bytes is (count ^ xor_raw) + add_raw.
libavcodec/rtjpeg.h+3−0
@@ -22,6 +22,9 @@ · 21 unmodified lines
22#ifndef RTJPEG_H22#ifndef RTJPEG_H
23#define RTJPEG_H23#define RTJPEG_H
24 24
25#include <stdint.h>
26#include <dsputil.h>
27
25typedef struct {28typedef struct {
26 int w, h;29 int w, h;
27 DSPContext *dsp;30 DSPContext *dsp;
libavcodec/s3tc.h+2−0
@@ -23,6 +23,8 @@ · 22 unmodified lines
23#ifndef FF_S3TC_H23#ifndef FF_S3TC_H
24#define FF_S3TC_H24#define FF_S3TC_H
25 25
26#include <stdint.h>
27
26#define FF_S3TC_DXT1 0x3154584428#define FF_S3TC_DXT1 0x31545844
27#define FF_S3TC_DXT3 0x3354584429#define FF_S3TC_DXT3 0x33545844
28 30
libavcodec/simple_idct.h+3−0
@@ -25,6 +25,9 @@ · 24 unmodified lines
25 * simple idct header.25 * simple idct header.
26 */26 */
27 27
28#include <stdint.h>
29#include "dsputil.h"
30
28void simple_idct_put(uint8_t *dest, int line_size, DCTELEM *block);31void simple_idct_put(uint8_t *dest, int line_size, DCTELEM *block);
29void simple_idct_add(uint8_t *dest, int line_size, DCTELEM *block);32void simple_idct_add(uint8_t *dest, int line_size, DCTELEM *block);
30void ff_simple_idct_mmx(int16_t *block);33void ff_simple_idct_mmx(int16_t *block);
libavcodec/sp5x.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
22#ifndef SP5X_H22#ifndef SP5X_H
23#define SP5X_H23#define SP5X_H
24 24
25#include <stdint.h>
26
25static const uint8_t sp5x_data_sof[] =27static const uint8_t sp5x_data_sof[] =
26{28{
27 0xFF, 0xC0, /* SOF */29 0xFF, 0xC0, /* SOF */
libavcodec/svq1_cb.h+3−0
@@ -29,6 +29,9 @@ · 28 unmodified lines
29 * svq1 code books.29 * svq1 code books.
30 */30 */
31 31
32#include <stdint.h>
33#include <stdlib.h>
34
32/* 6x16-entry codebook for inter-coded 4x2 vectors */35/* 6x16-entry codebook for inter-coded 4x2 vectors */
33static const int8_t svq1_inter_codebook_4x2[768] = {36static const int8_t svq1_inter_codebook_4x2[768] = {
34 7, 2, -6, -7, 7, 3, -3, -4, -7, -2, 7, 8, -8, -4, 3, 4,37 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
21#ifndef SVQ1_VLC_H21#ifndef SVQ1_VLC_H
22#define SVQ1_VLC_H22#define SVQ1_VLC_H
23 23
24#include <stdint.h>
25
24/* values in this table range from 0..3; adjust retrieved value by +0 */26/* values in this table range from 0..3; adjust retrieved value by +0 */
25static const uint8_t svq1_block_type_vlc[4][2] = {27static const uint8_t svq1_block_type_vlc[4][2] = {
26 /* { code, length } */28 /* { code, length } */
libavcodec/tiff.h+2−0
@@ -28,6 +28,8 @@ · 27 unmodified lines
28#ifndef TIFF_H28#ifndef TIFF_H
29#define TIFF_H29#define TIFF_H
30 30
31#include <stdint.h>
32
31/** abridged list of TIFF tags */33/** abridged list of TIFF tags */
32enum TiffTags{34enum TiffTags{
33 TIFF_SUBFILE = 0xfe,35 TIFF_SUBFILE = 0xfe,
libavcodec/truemotion1data.h+3−0
@@ -25,6 +25,9 @@ · 24 unmodified lines
25#ifndef TRUEMOTION1DATA_H25#ifndef TRUEMOTION1DATA_H
26#define TRUEMOTION1DATA_H26#define TRUEMOTION1DATA_H
27 27
28#include <stdint.h>
29#include <stdlib.h>
30
28/* Y delta tables, skinny and fat */31/* Y delta tables, skinny and fat */
29static const int16_t ydt1[8] = { 0, -2, 2, -6, 6, -12, 12, -12 };32static const int16_t ydt1[8] = { 0, -2, 2, -6, 6, -12, 12, -12 };
30static const int16_t ydt2[8] = { 0, -2, 4, -6, 8, -12, 12, -12 };33static 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
22#ifndef __TRUESPEECH_DATA__22#ifndef __TRUESPEECH_DATA__
23#define __TRUESPEECH_DATA__23#define __TRUESPEECH_DATA__
24 24
25#include <stdint.h>
26
25/* codebooks fo expanding input filter */27/* codebooks fo expanding input filter */
26static const int16_t ts_cb_0[32] = {28static const int16_t ts_cb_0[32] = {
27 0x8240, 0x8364, 0x84CE, 0x865D, 0x8805, 0x89DE, 0x8BD7, 0x8DF4,29 0x8240, 0x8364, 0x84CE, 0x865D, 0x8805, 0x89DE, 0x8BD7, 0x8DF4,
libavcodec/vc1acdata.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
21 21
22#include <stdint.h>
23
22#define AC_MODES 824#define AC_MODES 8
23 25
24static const int vc1_ac_sizes[AC_MODES] = {26static const int vc1_ac_sizes[AC_MODES] = {
libavcodec/vc1data.h+4−0
@@ -28,6 +28,10 @@ · 27 unmodified lines
28#ifndef VC1DATA_H28#ifndef VC1DATA_H
29#define VC1DATA_H29#define VC1DATA_H
30 30
31#include <stdint.h>
32#include "bitstream.h"
33#include "rational.h"
34
31/** Table for conversion between TTBLK and TTMB */35/** Table for conversion between TTBLK and TTMB */
32extern const int ff_vc1_ttblk_to_tt[3][8];36extern const int ff_vc1_ttblk_to_tt[3][8];
33 37
libavcodec/vorbis_enc_data.h+2−0
@@ -18,6 +18,8 @@ · 17 unmodified lines
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */19 */
20 20
21#include <stdint.h>
22
21static const uint8_t codebook0[] = {23static const uint8_t codebook0[] = {
22 2, 10, 8, 14, 7, 12, 11, 14, 1, 5, 3, 7, 4, 9, 7,24 2, 10, 8, 14, 7, 12, 11, 14, 1, 5, 3, 7, 4, 9, 7,
23 13,25 13,
libavcodec/vp3data.h+3−0
@@ -21,6 +21,9 @@ · 20 unmodified lines
21#ifndef VP3DATA_H21#ifndef VP3DATA_H
22#define VP3DATA_H22#define VP3DATA_H
23 23
24#include <stdint.h>
25#include <stdlib.h>
26
24/* these coefficients dequantize intraframe Y plane coefficients27/* these coefficients dequantize intraframe Y plane coefficients
25 * (note: same as JPEG) */28 * (note: same as JPEG) */
26static const int16_t vp31_intra_y_dequant[64] =29static const int16_t vp31_intra_y_dequant[64] =
libavcodec/vp5data.h+2−0
@@ -24,6 +24,8 @@ · 23 unmodified lines
24#ifndef VP5DATA_H24#ifndef VP5DATA_H
25#define VP5DATA_H25#define VP5DATA_H
26 26
27#include <stdint.h>
28
27static const uint8_t vp5_coeff_groups[] = {29static const uint8_t vp5_coeff_groups[] = {
28 -1, 0, 1, 1, 2, 1, 1, 2,30 -1, 0, 1, 1, 2, 1, 1, 2,
29 2, 1, 1, 2, 2, 2, 1, 2,31 2, 1, 1, 2, 2, 2, 1, 2,
libavcodec/wmadata.h+3−0
@@ -24,6 +24,9 @@ · 23 unmodified lines
24 * Various WMA tables.24 * Various WMA tables.
25 */25 */
26 26
27#include <stdint.h>
28#include "wma.h"
29
27static const uint16_t wma_critical_freqs[25] = {30static const uint16_t wma_critical_freqs[25] = {
28 100, 200, 300, 400, 510, 630, 770, 920,31 100, 200, 300, 400, 510, 630, 770, 920,
29 1080, 1270, 1480, 1720, 2000, 2320, 2700, 3150,32 1080, 1270, 1480, 1720, 2000, 2320, 2700, 3150,
libavformat/allformats.h+2−0
@@ -22,6 +22,8 @@ · 21 unmodified lines
22#ifndef ALLFORMATS_H22#ifndef ALLFORMATS_H
23#define ALLFORMATS_H23#define ALLFORMATS_H
24 24
25#include "avformat.h"
26
25extern AVInputFormat aac_demuxer;27extern AVInputFormat aac_demuxer;
26extern AVInputFormat ac3_demuxer;28extern AVInputFormat ac3_demuxer;
27extern AVInputFormat aiff_demuxer;29extern AVInputFormat aiff_demuxer;
libavformat/asf.h+4−0
@@ -17,6 +17,10 @@ · 16 unmodified lines
17 * License along with FFmpeg; if not, write to the Free Software17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA18 * 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#define PACKET_SIZE 320024#define PACKET_SIZE 3200
21 25
22typedef struct {26typedef struct {
libavformat/avio.h+2−0
@@ -21,6 +21,8 @@ · 20 unmodified lines
21#ifndef AVIO_H21#ifndef AVIO_H
22#define AVIO_H22#define AVIO_H
23 23
24#include <stdint.h>
25
24/* output byte stream handling */26/* output byte stream handling */
25 27
26typedef int64_t offset_t;28typedef int64_t offset_t;
libavformat/dv.h+2−0
@@ -25,6 +25,8 @@ · 24 unmodified lines
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 */26 */
27 27
28#include "avformat.h"
29
28typedef struct DVDemuxContext DVDemuxContext;30typedef struct DVDemuxContext DVDemuxContext;
29DVDemuxContext* dv_init_demux(AVFormatContext* s);31DVDemuxContext* dv_init_demux(AVFormatContext* s);
30int dv_get_packet(DVDemuxContext*, AVPacket *);32int dv_get_packet(DVDemuxContext*, AVPacket *);
libavformat/isom.h+2−0
@@ -24,6 +24,8 @@ · 23 unmodified lines
24#ifndef FFMPEG_ISOM_H24#ifndef FFMPEG_ISOM_H
25#define FFMPEG_ISOM_H25#define FFMPEG_ISOM_H
26 26
27#include "riff.h"
28
27/* isom.c */29/* isom.c */
28extern const AVCodecTag ff_mp4_obj_type[];30extern const AVCodecTag ff_mp4_obj_type[];
29extern const AVCodecTag codec_movvideo_tags[];31extern const AVCodecTag codec_movvideo_tags[];
libavformat/mpegts.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
21 21
22#include "avformat.h"
23
22#define TS_FEC_PACKET_SIZE 20424#define TS_FEC_PACKET_SIZE 204
23#define TS_DVHS_PACKET_SIZE 19225#define TS_DVHS_PACKET_SIZE 192
24#define TS_PACKET_SIZE 18826#define TS_PACKET_SIZE 188
libavformat/riff.h+3−0
@@ -28,6 +28,9 @@ · 27 unmodified lines
28#ifndef FF_RIFF_H28#ifndef FF_RIFF_H
29#define FF_RIFF_H29#define FF_RIFF_H
30 30
31#include "avcodec.h"
32#include "avio.h"
33
31offset_t start_tag(ByteIOContext *pb, const char *tag);34offset_t start_tag(ByteIOContext *pb, const char *tag);
32void end_tag(ByteIOContext *pb, offset_t start);35void end_tag(ByteIOContext *pb, offset_t start);
33 36
libavformat/rtp.h+3−0
@@ -21,6 +21,9 @@ · 20 unmodified lines
21#ifndef RTP_H21#ifndef RTP_H
22#define RTP_H22#define RTP_H
23 23
24#include "avcodec.h"
25#include "avformat.h"
26
24#define RTP_MIN_PACKET_LENGTH 1227#define RTP_MIN_PACKET_LENGTH 12
25#define RTP_MAX_PACKET_LENGTH 1500 /* XXX: suppress this define */28#define RTP_MAX_PACKET_LENGTH 1500 /* XXX: suppress this define */
26 29
libavformat/rtp_h264.h+2−0
@@ -22,5 +22,7 @@ · 21 unmodified lines
22#ifndef RTP_H264_H22#ifndef RTP_H264_H
23#define RTP_H264_H23#define RTP_H264_H
24 24
25#include "rtp_internal.h"
26
25extern RTPDynamicProtocolHandler ff_h264_dynamic_handler;27extern RTPDynamicProtocolHandler ff_h264_dynamic_handler;
26#endif /* RTP_H264_H */28#endif /* RTP_H264_H */
libavformat/rtp_internal.h+4−0
@@ -23,6 +23,10 @@ · 22 unmodified lines
23#ifndef RTP_INTERNAL_H23#ifndef RTP_INTERNAL_H
24#define RTP_INTERNAL_H24#define RTP_INTERNAL_H
25 25
26#include <stdint.h>
27#include "avcodec.h"
28#include "rtp.h"
29
26// these statistics are used for rtcp receiver reports...30// these statistics are used for rtcp receiver reports...
27typedef struct {31typedef struct {
28 uint16_t max_seq; ///< highest sequence number seen32 uint16_t max_seq; ///< highest sequence number seen
libavformat/rtsp.h+2−0
@@ -21,6 +21,8 @@ · 20 unmodified lines
21#ifndef RTSP_H21#ifndef RTSP_H
22#define RTSP_H22#define RTSP_H
23 23
24#include <stdint.h>
25#include "avformat.h"
24#include "rtspcodes.h"26#include "rtspcodes.h"
25 27
26enum RTSPProtocol {28enum RTSPProtocol {
libavutil/adler32.h+2−0
@@ -21,6 +21,8 @@ · 20 unmodified lines
21#ifndef ADLER32_H21#ifndef ADLER32_H
22#define ADLER32_H22#define ADLER32_H
23 23
24#include <stdint.h>
25
24unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf,26unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf,
25 unsigned int len);27 unsigned int len);
26 28
libavutil/aes.h+2−0
@@ -21,6 +21,8 @@ · 20 unmodified lines
21#ifndef AES_H21#ifndef AES_H
22#define AES_H22#define AES_H
23 23
24#include <stdint.h>
25
24extern const int av_aes_size;26extern const int av_aes_size;
25 27
26struct AVAES;28struct AVAES;
libavutil/base64.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
21 21
22#include <stdint.h>
23
22/**24/**
23 * decodes base6425 * decodes base64
24 * param order as strncpy()26 * param order as strncpy()
libavutil/bswap.h+3−0
@@ -26,6 +26,9 @@ · 25 unmodified lines
26#ifndef __BSWAP_H__26#ifndef __BSWAP_H__
27#define __BSWAP_H__27#define __BSWAP_H__
28 28
29#include <stdint.h>
30#include "common.h"
31
29#ifdef HAVE_BYTESWAP_H32#ifdef HAVE_BYTESWAP_H
30#include <byteswap.h>33#include <byteswap.h>
31#else34#else
libavutil/crc.h+3−0
@@ -21,6 +21,9 @@ · 20 unmodified lines
21#ifndef CRC_H21#ifndef CRC_H
22#define CRC_H22#define CRC_H
23 23
24#include <stdint.h>
25#include <sys/types.h>
26
24typedef uint32_t AVCRC;27typedef uint32_t AVCRC;
25 28
26#if LIBAVUTIL_VERSION_INT < (50<<16)29#if LIBAVUTIL_VERSION_INT < (50<<16)
libavutil/fifo.h+2−0
@@ -24,6 +24,8 @@ · 23 unmodified lines
24#ifndef FIFO_H24#ifndef FIFO_H
25#define FIFO_H25#define FIFO_H
26 26
27#include <stdint.h>
28
27typedef struct AVFifoBuffer {29typedef struct AVFifoBuffer {
28 uint8_t *buffer;30 uint8_t *buffer;
29 uint8_t *rptr, *wptr, *end;31 uint8_t *rptr, *wptr, *end;
libavutil/integer.h+2−0
@@ -29,6 +29,8 @@ · 28 unmodified lines
29#ifndef INTEGER_H29#ifndef INTEGER_H
30#define INTEGER_H30#define INTEGER_H
31 31
32#include <stdint.h>
33
32#define AV_INTEGER_SIZE 834#define AV_INTEGER_SIZE 8
33 35
34typedef struct AVInteger{36typedef struct AVInteger{
libavutil/internal.h+3−0
@@ -26,6 +26,9 @@ · 25 unmodified lines
26#ifndef INTERNAL_H26#ifndef INTERNAL_H
27#define INTERNAL_H27#define INTERNAL_H
28 28
29#include <stdint.h>
30#include <assert.h>
31
29#ifndef attribute_used32#ifndef attribute_used
30#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)33#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
31# define attribute_used __attribute__((used))34# define attribute_used __attribute__((used))
libavutil/intreadwrite.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19#ifndef INTREADWRITE_H19#ifndef INTREADWRITE_H
20#define INTREADWRITE_H20#define INTREADWRITE_H
21 21
22#include <stdint.h>
23
22#ifdef __GNUC__24#ifdef __GNUC__
23 25
24struct unaligned_64 { uint64_t l; } __attribute__((packed));26struct unaligned_64 { uint64_t l; } __attribute__((packed));
libavutil/md5.h+2−0
@@ -21,6 +21,8 @@ · 20 unmodified lines
21#ifndef MD5_H21#ifndef MD5_H
22#define MD5_H22#define MD5_H
23 23
24#include <stdint.h>
25
24extern const int av_md5_size;26extern const int av_md5_size;
25 27
26struct AVMD5;28struct AVMD5;
libavutil/rational.h+2−0
@@ -29,6 +29,8 @@ · 28 unmodified lines
29#ifndef RATIONAL_H29#ifndef RATIONAL_H
30#define RATIONAL_H30#define RATIONAL_H
31 31
32#include <stdint.h>
33
32/**34/**
33 * Rational number num/den.35 * Rational number num/den.
34 */36 */
libavutil/sha1.h+2−0
@@ -1,6 +1,8 @@
1#ifndef AV_SHA1_H1#ifndef AV_SHA1_H
2#define AV_SHA1_H2#define AV_SHA1_H
3 3
4#include <stdint.h>
5
4extern const int av_sha1_size;6extern const int av_sha1_size;
5 7
6struct AVSHA1;8struct AVSHA1;
libavutil/softfloat.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19 *19 *
20 */20 */
21 21
22#include <stdint.h>
23
22#define MIN_EXP -12624#define MIN_EXP -126
23#define MAX_EXP 12625#define MAX_EXP 126
24#define ONE_BITS 2926#define ONE_BITS 29

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