Browse Source

lavf: move ff_codec_get_tag() and ff_codec_get_id() definitions to internal.h

tags/n1.1
Justin Ruggles 13 years ago
parent
commit
bfe5454cd2
18 changed files with 9 additions and 16 deletions
  1. +1
    -1
      libavformat/aiff.h
  2. +0
    -1
      libavformat/au.c
  3. +0
    -1
      libavformat/cafdec.c
  4. +0
    -1
      libavformat/gxfenc.c
  5. +3
    -0
      libavformat/internal.h
  6. +0
    -1
      libavformat/isom.c
  7. +0
    -1
      libavformat/lxfdec.c
  8. +0
    -1
      libavformat/nsvdec.c
  9. +1
    -1
      libavformat/nut.h
  10. +1
    -0
      libavformat/nutdec.c
  11. +1
    -0
      libavformat/nutenc.c
  12. +0
    -1
      libavformat/omadec.c
  13. +0
    -2
      libavformat/riff.h
  14. +0
    -1
      libavformat/rmdec.c
  15. +0
    -1
      libavformat/rsodec.c
  16. +0
    -1
      libavformat/smjpegenc.c
  17. +1
    -1
      libavformat/swf.h
  18. +1
    -1
      libavformat/voc.h

+ 1
- 1
libavformat/aiff.h View File

@@ -28,7 +28,7 @@
#define AVFORMAT_AIFF_H #define AVFORMAT_AIFF_H


#include "avformat.h" #include "avformat.h"
#include "riff.h"
#include "internal.h"


static const AVCodecTag ff_codec_aiff_tags[] = { static const AVCodecTag ff_codec_aiff_tags[] = {
{ AV_CODEC_ID_PCM_S16BE, MKTAG('N','O','N','E') }, { AV_CODEC_ID_PCM_S16BE, MKTAG('N','O','N','E') },


+ 0
- 1
libavformat/au.c View File

@@ -31,7 +31,6 @@
#include "internal.h" #include "internal.h"
#include "avio_internal.h" #include "avio_internal.h"
#include "pcm.h" #include "pcm.h"
#include "riff.h"


/* if we don't know the size in advance */ /* if we don't know the size in advance */
#define AU_UNKNOWN_SIZE ((uint32_t)(~0)) #define AU_UNKNOWN_SIZE ((uint32_t)(~0))


+ 0
- 1
libavformat/cafdec.c View File

@@ -27,7 +27,6 @@


#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "riff.h"
#include "isom.h" #include "isom.h"
#include "mov_chan.h" #include "mov_chan.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"


+ 0
- 1
libavformat/gxfenc.c View File

@@ -24,7 +24,6 @@
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "gxf.h" #include "gxf.h"
#include "riff.h"
#include "audiointerleave.h" #include "audiointerleave.h"


#define GXF_AUDIO_PACKET_SIZE 65536 #define GXF_AUDIO_PACKET_SIZE 65536


+ 3
- 0
libavformat/internal.h View File

@@ -354,5 +354,8 @@ void ff_compute_frame_duration(int *pnum, int *pden, AVStream *st,


int ff_get_audio_frame_size(AVCodecContext *enc, int size, int mux); int ff_get_audio_frame_size(AVCodecContext *enc, int size, int mux);


unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum AVCodecID id);

enum AVCodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);


#endif /* AVFORMAT_INTERNAL_H */ #endif /* AVFORMAT_INTERNAL_H */

+ 0
- 1
libavformat/isom.c View File

@@ -26,7 +26,6 @@
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "isom.h" #include "isom.h"
#include "riff.h"
#include "libavcodec/mpeg4audio.h" #include "libavcodec/mpeg4audio.h"
#include "libavcodec/mpegaudiodata.h" #include "libavcodec/mpegaudiodata.h"




+ 0
- 1
libavformat/lxfdec.c View File

@@ -22,7 +22,6 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "riff.h"


#define LXF_PACKET_HEADER_SIZE 60 #define LXF_PACKET_HEADER_SIZE 60
#define LXF_HEADER_DATA_SIZE 120 #define LXF_HEADER_DATA_SIZE 120


+ 0
- 1
libavformat/nsvdec.c View File

@@ -23,7 +23,6 @@
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "riff.h"
#include "libavutil/dict.h" #include "libavutil/dict.h"


//#define DEBUG_DUMP_INDEX // XXX dumbdriving-271.nsv breaks with it commented!! //#define DEBUG_DUMP_INDEX // XXX dumbdriving-271.nsv breaks with it commented!!


+ 1
- 1
libavformat/nut.h View File

@@ -26,7 +26,7 @@
//#include "libavutil/adler32.h" //#include "libavutil/adler32.h"
//#include "libavcodec/mpegaudio.h" //#include "libavcodec/mpegaudio.h"
#include "avformat.h" #include "avformat.h"
#include "riff.h"
#include "internal.h"
#include "metadata.h" #include "metadata.h"


#define MAIN_STARTCODE (0x7A561F5F04ADULL + (((uint64_t)('N'<<8) + 'M')<<48)) #define MAIN_STARTCODE (0x7A561F5F04ADULL + (((uint64_t)('N'<<8) + 'M')<<48))


+ 1
- 0
libavformat/nutdec.c View File

@@ -27,6 +27,7 @@
#include "libavutil/tree.h" #include "libavutil/tree.h"
#include "avio_internal.h" #include "avio_internal.h"
#include "nut.h" #include "nut.h"
#include "riff.h"


#undef NDEBUG #undef NDEBUG
#include <assert.h> #include <assert.h>


+ 1
- 0
libavformat/nutenc.c View File

@@ -27,6 +27,7 @@
#include "nut.h" #include "nut.h"
#include "internal.h" #include "internal.h"
#include "avio_internal.h" #include "avio_internal.h"
#include "riff.h"


static int find_expected_header(AVCodecContext *c, int size, int key_frame, static int find_expected_header(AVCodecContext *c, int size, int key_frame,
uint8_t out[64]) uint8_t out[64])


+ 0
- 1
libavformat/omadec.c View File

@@ -47,7 +47,6 @@
#include "libavutil/des.h" #include "libavutil/des.h"
#include "oma.h" #include "oma.h"
#include "pcm.h" #include "pcm.h"
#include "riff.h"
#include "id3v2.h" #include "id3v2.h"






+ 0
- 2
libavformat/riff.h View File

@@ -54,8 +54,6 @@ int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size);
extern const AVCodecTag ff_codec_bmp_tags[]; extern const AVCodecTag ff_codec_bmp_tags[];
extern const AVCodecTag ff_codec_wav_tags[]; extern const AVCodecTag ff_codec_wav_tags[];


unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum AVCodecID id);
enum AVCodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);
void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale); void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);


int ff_read_riff_info(AVFormatContext *s, int64_t size); int ff_read_riff_info(AVFormatContext *s, int64_t size);


+ 0
- 1
libavformat/rmdec.c View File

@@ -25,7 +25,6 @@
#include "libavutil/dict.h" #include "libavutil/dict.h"
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "riff.h"
#include "rmsipr.h" #include "rmsipr.h"
#include "rm.h" #include "rm.h"




+ 0
- 1
libavformat/rsodec.c View File

@@ -25,7 +25,6 @@
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "pcm.h" #include "pcm.h"
#include "riff.h"
#include "rso.h" #include "rso.h"


static int rso_read_header(AVFormatContext *s) static int rso_read_header(AVFormatContext *s)


+ 0
- 1
libavformat/smjpegenc.c View File

@@ -26,7 +26,6 @@


#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "riff.h"
#include "smjpeg.h" #include "smjpeg.h"


typedef struct SMJPEGMuxContext { typedef struct SMJPEGMuxContext {


+ 1
- 1
libavformat/swf.h View File

@@ -26,7 +26,7 @@
#include "libavutil/fifo.h" #include "libavutil/fifo.h"
#include "avformat.h" #include "avformat.h"
#include "avio.h" #include "avio.h"
#include "riff.h" /* for CodecTag */
#include "internal.h"


/* should have a generic way to indicate probable size */ /* should have a generic way to indicate probable size */
#define DUMMY_FILE_SIZE (100 * 1024 * 1024) #define DUMMY_FILE_SIZE (100 * 1024 * 1024)


+ 1
- 1
libavformat/voc.h View File

@@ -23,7 +23,7 @@
#define AVFORMAT_VOC_H #define AVFORMAT_VOC_H


#include "avformat.h" #include "avformat.h"
#include "riff.h" /* for CodecTag */
#include "internal.h"


typedef struct voc_dec_context { typedef struct voc_dec_context {
int64_t remaining_size; int64_t remaining_size;


Loading…
Cancel
Save