libavformat/raw.c File Reference

#include "avformat.h"
#include "ac3_parser.h"
#include "raw.h"

Go to the source code of this file.

Defines

#define RAW_PACKET_SIZE   1024
#define SEQ_START_CODE   0x000001b3
#define GOP_START_CODE   0x000001b8
#define PICTURE_START_CODE   0x00000100
#define SLICE_START_CODE   0x00000101
#define PACK_START_CODE   0x000001ba
#define VIDEO_ID   0x000001e0
#define AUDIO_ID   0x000001c0
#define VISUAL_OBJECT_START_CODE   0x000001b5
#define VOP_START_CODE   0x000001b6
#define PCMINPUTDEF(name, long_name, ext, codec)
#define PCMOUTPUTDEF(name, long_name, ext, codec)
#define PCMDEF(name, long_name, ext, codec)
#define BE_DEF(s)   NULL
#define LE_DEF(s)   s

Functions

static int raw_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int raw_read_packet (AVFormatContext *s, AVPacket *pkt)
static int raw_read_partial_packet (AVFormatContext *s, AVPacket *pkt)
static int ingenient_read_packet (AVFormatContext *s, AVPacket *pkt)
static int raw_read_close (AVFormatContext *s)
int pcm_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
static int ac3_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int shorten_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int flac_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int dts_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int aac_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int video_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int mpegvideo_probe (AVProbeData *p)
static int mpeg4video_probe (AVProbeData *probe_packet)
static int h263_probe (AVProbeData *p)
static int h261_probe (AVProbeData *p)
static int ac3_probe (AVProbeData *p)
static int flac_probe (AVProbeData *p)
 PCMDEF (s16le,"pcm signed 16 bit little endian format", LE_DEF("sw"), CODEC_ID_PCM_S16LE)

Variables

AVInputFormat shorten_demuxer
AVInputFormat flac_demuxer
AVInputFormat dts_demuxer
AVInputFormat aac_demuxer
AVInputFormat h261_demuxer
AVInputFormat h263_demuxer
AVInputFormat m4v_demuxer
AVInputFormat h264_demuxer
AVInputFormat mpegvideo_demuxer
AVInputFormat mjpeg_demuxer
AVInputFormat ingenient_demuxer
AVInputFormat vc1_demuxer
AVInputFormat rawvideo_demuxer


Define Documentation

#define AUDIO_ID   0x000001c0

Definition at line 337 of file raw.c.

#define BE_DEF (  )     NULL

Definition at line 814 of file raw.c.

#define GOP_START_CODE   0x000001b8

Definition at line 332 of file raw.c.

#define LE_DEF (  )     s

Definition at line 815 of file raw.c.

#define PACK_START_CODE   0x000001ba

Definition at line 335 of file raw.c.

#define PCMDEF ( name,
long_name,
ext,
codec   ) 

Definition at line 807 of file raw.c.

#define PCMINPUTDEF ( name,
long_name,
ext,
codec   ) 

Value:

AVInputFormat pcm_ ## name ## _demuxer = {\
    #name,\
    long_name,\
    0,\
    NULL,\
    raw_read_header,\
    raw_read_packet,\
    raw_read_close,\
    pcm_read_seek,\
    .flags= AVFMT_GENERIC_INDEX,\
    .extensions = ext,\
    .value = codec,\
};

Definition at line 766 of file raw.c.

#define PCMOUTPUTDEF ( name,
long_name,
ext,
codec   ) 

Value:

AVOutputFormat pcm_ ## name ## _muxer = {\
    #name,\
    long_name,\
    NULL,\
    ext,\
    0,\
    codec,\
    0,\
    NULL,\
    raw_write_packet,\
    .flags= AVFMT_NOTIMESTAMPS,\
};

Definition at line 781 of file raw.c.

#define PICTURE_START_CODE   0x00000100

Definition at line 333 of file raw.c.

#define RAW_PACKET_SIZE   1024

Definition at line 104 of file raw.c.

Referenced by raw_read_packet(), raw_read_partial_packet(), and rm_read_packet().

#define SEQ_START_CODE   0x000001b3

Definition at line 331 of file raw.c.

#define SLICE_START_CODE   0x00000101

Definition at line 334 of file raw.c.

Referenced by mpegvideo_probe().

#define VIDEO_ID   0x000001e0

Definition at line 336 of file raw.c.

#define VISUAL_OBJECT_START_CODE   0x000001b5

Definition at line 363 of file raw.c.

Referenced by mpeg4video_probe().

#define VOP_START_CODE   0x000001b6

Definition at line 364 of file raw.c.

Referenced by mpeg4video_probe().


Function Documentation

static int aac_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 288 of file raw.c.

static int ac3_probe ( AVProbeData p  )  [static]

Definition at line 416 of file raw.c.

static int ac3_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 223 of file raw.c.

static int dts_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 271 of file raw.c.

static int flac_probe ( AVProbeData p  )  [static]

Definition at line 444 of file raw.c.

static int flac_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 255 of file raw.c.

static int h261_probe ( AVProbeData p  )  [static]

Definition at line 403 of file raw.c.

static int h263_probe ( AVProbeData p  )  [static]

Definition at line 390 of file raw.c.

static int ingenient_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 152 of file raw.c.

static int mpeg4video_probe ( AVProbeData probe_packet  )  [static]

Definition at line 366 of file raw.c.

static int mpegvideo_probe ( AVProbeData p  )  [static]

Definition at line 339 of file raw.c.

int pcm_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
)

Definition at line 192 of file raw.c.

Referenced by aiff_read_seek(), mmf_read_seek(), and wav_read_seek().

PCMDEF ( s16le  ,
"pcm signed 16 bit little endian format"  ,
LE_DEF("sw")  ,
CODEC_ID_PCM_S16LE   
)

Definition at line 819 of file raw.c.

static int raw_read_close ( AVFormatContext s  )  [static]

Definition at line 187 of file raw.c.

static int raw_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 64 of file raw.c.

static int raw_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 106 of file raw.c.

static int raw_read_partial_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 131 of file raw.c.

static int shorten_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 239 of file raw.c.

static int video_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 305 of file raw.c.


Variable Documentation

Initial value:

 {
    "aac",
    "ADTS AAC",
    0,
    NULL,
    aac_read_header,
    raw_read_partial_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "aac",
}

Definition at line 530 of file raw.c.

Initial value:

 {
    "dts",
    "raw dts",
    0,
    NULL,
    dts_read_header,
    raw_read_partial_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "dts",
}

Definition at line 518 of file raw.c.

Initial value:

 {
    "flac",
    "raw flac",
    0,
    flac_probe,
    flac_read_header,
    raw_read_partial_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "flac",
}

Definition at line 462 of file raw.c.

Initial value:

 {
    "h261",
    "raw h261",
    0,
    h261_probe,
    video_read_header,
    raw_read_partial_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "h261",
    .value = CODEC_ID_H261,
}

Definition at line 557 of file raw.c.

Initial value:

Definition at line 585 of file raw.c.

Initial value:

 {
    "h264",
    "raw H264 video format",
    0,
    NULL ,
    video_read_header,
    raw_read_partial_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "h26l,h264,264", 
    .value = CODEC_ID_H264,
}

Definition at line 641 of file raw.c.

Initial value:

 {
    "ingenient",
    "Ingenient MJPEG",
    0,
    NULL,
    video_read_header,
    ingenient_read_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "cgi", 
    .value = CODEC_ID_MJPEG,
}

Definition at line 724 of file raw.c.

Initial value:

 {
    "m4v",
    "raw MPEG4 video format",
    0,
    mpeg4video_probe, 
    video_read_header,
    raw_read_partial_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "m4v", 
    .value = CODEC_ID_MPEG4,
}

Definition at line 613 of file raw.c.

Initial value:

 {
    "mjpeg",
    "MJPEG video",
    0,
    NULL,
    video_read_header,
    raw_read_partial_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "mjpg,mjpeg",
    .value = CODEC_ID_MJPEG,
}

Definition at line 711 of file raw.c.

Initial value:

Definition at line 669 of file raw.c.

Initial value:

 {
    "rawvideo",
    "raw video format",
    0,
    NULL,
    raw_read_header,
    rawvideo_read_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "yuv,cif,qcif,rgb",
    .value = CODEC_ID_RAWVIDEO,
}

Definition at line 867 of file raw.c.

Initial value:

 {
    "shn",
    "raw shorten",
    0,
    NULL,
    shorten_read_header,
    raw_read_partial_packet,
    raw_read_close,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "shn",
}

Definition at line 450 of file raw.c.

Initial value:

 {
    "vc1",
    "raw vc1",
    0,
    NULL ,
    video_read_header,
    raw_read_partial_packet,
    raw_read_close,
    .extensions = "vc1",
    .value = CODEC_ID_VC1,
}

Definition at line 752 of file raw.c.


Generated on Thu Apr 2 07:15:42 2009 for ffmpeg by  doxygen 1.5.6