mpeg.c File Reference

Go to the source code of this file.

Classes

struct  MpegDemuxContext

Functions

static int cdxa_probe (AVProbeData *p)
static int check_pes (uint8_t *p, uint8_t *end)
static int mpegps_probe (AVProbeData *p)
static int mpegps_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int64_t get_pts (ByteIOContext *pb, int c)
static int find_next_start_code (ByteIOContext *pb, int *size_ptr, int32_t *header_state)
static int find_prev_start_code (ByteIOContext *pb, int *size_ptr)
static long mpegps_psm_parse (MpegDemuxContext *m, ByteIOContext *pb)
 Extracts stream types from a program stream map According to ISO/IEC 13818-1 ('MPEG-2 Systems') table 2-35.
static int mpegps_read_pes_header (AVFormatContext *s, int64_t *ppos, int *pstart_code, int64_t *ppts, int64_t *pdts)
static int mpegps_read_packet (AVFormatContext *s, AVPacket *pkt)
static int mpegps_read_close (AVFormatContext *s)
static int64_t mpegps_read_dts (AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit)

Variables

AVInputFormat mpegps_demuxer


Function Documentation

static int cdxa_probe ( AVProbeData p  )  [static]

Definition at line 35 of file mpeg.c.

static int check_pes ( uint8_t *  p,
uint8_t *  end 
) [static]

Definition at line 47 of file mpeg.c.

static int mpegps_probe ( AVProbeData p  )  [static]

Definition at line 67 of file mpeg.c.

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

Definition at line 106 of file mpeg.c.

static int64_t get_pts ( ByteIOContext pb,
int  c 
) [static]

Definition at line 127 of file mpeg.c.

static int find_next_start_code ( ByteIOContext pb,
int *  size_ptr,
int32_t header_state 
) [static]

Definition at line 142 of file mpeg.c.

Referenced by mpegps_read_pes_header().

static int find_prev_start_code ( ByteIOContext pb,
int *  size_ptr 
) [static]

Definition at line 171 of file mpeg.c.

static long mpegps_psm_parse ( MpegDemuxContext m,
ByteIOContext pb 
) [static]

Extracts stream types from a program stream map According to ISO/IEC 13818-1 ('MPEG-2 Systems') table 2-35.

Returns:
number of bytes occupied by PSM in the bitstream

Definition at line 210 of file mpeg.c.

Referenced by mpegps_read_pes_header().

static int mpegps_read_pes_header ( AVFormatContext s,
int64_t ppos,
int *  pstart_code,
int64_t ppts,
int64_t pdts 
) [static]

Definition at line 241 of file mpeg.c.

Referenced by mpegps_read_dts(), and mpegps_read_packet().

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

Definition at line 411 of file mpeg.c.

static int mpegps_read_close ( AVFormatContext s  )  [static]

Definition at line 551 of file mpeg.c.

static int64_t mpegps_read_dts ( AVFormatContext s,
int  stream_index,
int64_t ppos,
int64_t  pos_limit 
) [static]

Definition at line 556 of file mpeg.c.


Variable Documentation

Initial value:

 {
    "mpeg",
    "MPEG PS format",
    sizeof(MpegDemuxContext),
    mpegps_probe,
    mpegps_read_header,
    mpegps_read_packet,
    mpegps_read_close,
    NULL, 
    mpegps_read_dts,
    .flags = AVFMT_SHOW_IDS,
}

Definition at line 588 of file mpeg.c.


Generated on Sat Dec 18 05:15:54 2010 for MythTV by  doxygen 1.5.5