Commit 99545457 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

include all prerequisites in header files

Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c2d08dc0
......@@ -23,6 +23,9 @@
#ifndef AAC_AC3_PARSER_H
#define AAC_AC3_PARSER_H
#include <stdint.h>
#include "avcodec.h"
typedef struct AACAC3ParseContext {
uint8_t *inbuf_ptr;
int frame_size;
......
......@@ -25,6 +25,8 @@
* Atrac 3 AKA RealAudio 8 compatible decoder data
*/
#include <stdint.h>
/* VLC tables */
static const uint8_t huffcode1[9] = {
......
......@@ -26,6 +26,11 @@
#ifndef BITSTREAM_H
#define BITSTREAM_H
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include "common.h"
#include "bswap.h"
#include "log.h"
#if defined(ALT_BITSTREAM_READER_LE) && !defined(ALT_BITSTREAM_READER)
......
......@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "avcodec.h"
typedef struct BMPContext {
AVFrame picture;
} BMPContext;
......
......@@ -22,6 +22,8 @@
#ifndef FFMPEG_BYTESTREAM_H
#define FFMPEG_BYTESTREAM_H
#include "common.h"
#define DEF(name, bytes, read, write)\
static av_always_inline unsigned int bytestream_get_ ## name(uint8_t **b){\
(*b) += bytes;\
......
......@@ -26,6 +26,8 @@
* Cook AKA RealAudio G2 compatible decoderdata
*/
#include <stdint.h>
/* various data tables */
static const int expbits_tab[8] = {
......
......@@ -24,6 +24,8 @@
* @file dcadata.c
*/
#include <stdint.h>
/* Generic tables */
static const uint32_t dca_sample_rates[16] =
......
......@@ -20,6 +20,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdint.h>
#include <stdlib.h>
#define TMODE_COUNT 4
static const uint8_t tmode_vlc_bits[TMODE_COUNT] = { 3, 3, 3, 2 };
static const uint16_t tmode_codes[TMODE_COUNT][4] = {
......
......@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdint.h>
static const uint8_t dnxhd_1238_luma_weigth[] = {
0, 32, 32, 33, 34, 33, 33, 33,
33, 33, 33, 33, 33, 35, 37, 37,
......
......@@ -24,6 +24,9 @@
* Constants for DV codec.
*/
#include "avcodec.h"
#include "rational.h"
/*
* DVprofile is used to express the differences between various
* DV flavors. For now it's primarily used for differentiating
......
......@@ -27,6 +27,8 @@
* @author Michael Niedermayer <michaelni@gmx.at>
*/
#include "dsputil.h"
#define FAAN_POSTSCALE
void ff_faandct(DCTELEM * data);
......
......@@ -28,6 +28,9 @@
* @author Michael Niedermayer <michaelni@gmx.at> and Alex Beregszaszi
*/
#include <stdint.h>
#include "bitstream.h"
#define INVALID_VLC 0x80000000
extern const uint8_t ff_golomb_vlc_len[512];
......
......@@ -24,6 +24,9 @@
* H.261 tables.
*/
#include <stdint.h>
#include "h261.h"
// H.261 VLC table for macroblock addressing
static const uint8_t h261_mba_code[35] = {
1, 3, 2, 3,
......
......@@ -19,4 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "parser.h"
int ff_h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size);
......@@ -26,6 +26,8 @@
* H.263 tables.
*/
#include <stdint.h>
#include "mpegvideo.h"
/* intra MCBPC, mb_type = (intra), then (intraq) */
const uint8_t intra_MCBPC_code[9] = { 1, 1, 2, 3, 1, 1, 2, 3, 1 };
......
......@@ -27,6 +27,10 @@
* @author Michael Niedermayer <michaelni@gmx.at>
*/
#include <stdint.h>
#include "mpegvideo.h"
#include "rational.h"
#define VERT_PRED 0
#define HOR_PRED 1
#define DC_PRED 2
......
......@@ -22,6 +22,8 @@
*
*/
#include <stdint.h>
static const uint16_t band_tab[33] = {
0, 3, 6, 9, 12, 16, 20, 24, 29, 34, 40,
46, 53, 60, 68, 76, 84, 93, 102, 111, 121, 131,
......
......@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdint.h>
#define IR2_CODES 143
static const uint16_t ir2_codes[IR2_CODES][2] = {
#ifdef ALT_BITSTREAM_READER_LE
......
......@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdint.h>
static const uint32_t correction[] = {
0x00000000, 0x00000202, 0xfffffdfe, 0x000002ff, 0xfffffd01, 0xffffff03, 0x000000fd, 0x00000404,
0xfffffbfc, 0x00000501, 0xfffffaff, 0x00000105, 0xfffffefb, 0x000003fc, 0xfffffc04, 0x000005fe,
......
......@@ -29,6 +29,7 @@
#define JPEGLSDEC_H
#include "mjpeg.h"
#include "mjpegdec.h"
/**
* Decode LSE block with initialization parameters
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment