Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -26,6 +26,11 @@ |
| 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) |
| ... | ... |
@@ -20,6 +20,9 @@ |
| 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 @@ |
| 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, |
| ... | ... |
@@ -20,6 +20,8 @@ |
| 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};
|
| ... | ... |
@@ -27,6 +27,10 @@ |
| 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 },
|
| ... | ... |
@@ -25,6 +25,9 @@ |
| 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); |
| ... | ... |
@@ -25,6 +25,9 @@ |
| 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 };
|
| ... | ... |
@@ -17,6 +17,10 @@ |
| 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 {
|
| ... | ... |
@@ -25,6 +25,8 @@ |
| 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 *); |
| ... | ... |
@@ -23,6 +23,10 @@ |
| 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 |
| ... | ... |
@@ -26,6 +26,9 @@ |
| 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)) |