mpegenc.c File Reference

Go to the source code of this file.

Classes

struct  PacketDesc
class  StreamInfo
struct  MpegMuxContext

Functions

static int put_pack_header (AVFormatContext *ctx, uint8_t *buf, int64_t timestamp)
static int put_system_header (AVFormatContext *ctx, uint8_t *buf, int only_for_stream_id)
static int get_system_header_size (AVFormatContext *ctx)
static int mpeg_mux_init (AVFormatContext *ctx)
static void put_timestamp (ByteIOContext *pb, int id, int64_t timestamp)
static int get_vcd_padding_size (AVFormatContext *ctx, int64_t pts)
static int get_packet_payload_size (AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts)
static void put_padding_packet (AVFormatContext *ctx, ByteIOContext *pb, int packet_bytes)
static int get_nb_frames (AVFormatContext *ctx, StreamInfo *stream, int len)
static int flush_packet (AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts, int64_t scr, int trailer_size)
static void put_vcd_padding_sector (AVFormatContext *ctx)
static int64_t get_vcd_scr (AVFormatContext *ctx, int stream_index, int64_t pts)
static int remove_decoded_packets (AVFormatContext *ctx, int64_t scr)
static int output_packet (AVFormatContext *ctx, int flush)
static int mpeg_mux_write_packet (AVFormatContext *ctx, AVPacket *pkt)
static int mpeg_mux_end (AVFormatContext *ctx)

Variables

AVOutputFormat mpeg1vcd_muxer
AVOutputFormat mpeg2dvd_muxer
AVOutputFormat mpeg2svcd_muxer
AVOutputFormat mpeg2vob_muxer
AVOutputFormat mpeg1system_muxer


Function Documentation

static int put_pack_header ( AVFormatContext ctx,
uint8_t *  buf,
int64_t  timestamp 
) [static]

Definition at line 84 of file mpegenc.c.

Referenced by flush_packet().

static int put_system_header ( AVFormatContext ctx,
uint8_t *  buf,
int  only_for_stream_id 
) [static]

Definition at line 120 of file mpegenc.c.

Referenced by flush_packet().

static int get_system_header_size ( AVFormatContext ctx  )  [static]

Definition at line 267 of file mpegenc.c.

Referenced by mpeg_mux_init().

static int mpeg_mux_init ( AVFormatContext ctx  )  [static]

Definition at line 290 of file mpegenc.c.

static void put_timestamp ( ByteIOContext pb,
int  id,
int64_t  timestamp 
) [inline, static]

Definition at line 485 of file mpegenc.c.

Referenced by flush_packet().

static int get_vcd_padding_size ( AVFormatContext ctx,
int64_t  pts 
) [static]

Definition at line 498 of file mpegenc.c.

Referenced by output_packet().

static int get_packet_payload_size ( AVFormatContext ctx,
int  stream_index,
int64_t  pts,
int64_t  dts 
) [static]

Definition at line 524 of file mpegenc.c.

static void put_padding_packet ( AVFormatContext ctx,
ByteIOContext pb,
int  packet_bytes 
) [static]

Definition at line 607 of file mpegenc.c.

Referenced by flush_packet().

static int get_nb_frames ( AVFormatContext ctx,
StreamInfo stream,
int  len 
) [static]

Definition at line 624 of file mpegenc.c.

Referenced by flush_packet().

static int flush_packet ( AVFormatContext ctx,
int  stream_index,
int64_t  pts,
int64_t  dts,
int64_t  scr,
int  trailer_size 
) [static]

Definition at line 639 of file mpegenc.c.

static void put_vcd_padding_sector ( AVFormatContext ctx  )  [static]

Definition at line 943 of file mpegenc.c.

Referenced by output_packet().

static int64_t get_vcd_scr ( AVFormatContext ctx,
int  stream_index,
int64_t  pts 
) [static]

Definition at line 969 of file mpegenc.c.

static int remove_decoded_packets ( AVFormatContext ctx,
int64_t  scr 
) [static]

Definition at line 990 of file mpegenc.c.

Referenced by output_packet().

static int output_packet ( AVFormatContext ctx,
int  flush 
) [static]

Definition at line 1018 of file mpegenc.c.

Referenced by mpeg_mux_end(), and mpeg_mux_write_packet().

static int mpeg_mux_write_packet ( AVFormatContext ctx,
AVPacket pkt 
) [static]

Definition at line 1141 of file mpegenc.c.

static int mpeg_mux_end ( AVFormatContext ctx  )  [static]

Definition at line 1192 of file mpegenc.c.


Variable Documentation

Initial value:

 {
    "vcd",
    "MPEG1 System format (VCD)",
    "video/mpeg",
    NULL,
    sizeof(MpegMuxContext),
    CODEC_ID_MP2,
    CODEC_ID_MPEG1VIDEO,
    mpeg_mux_init,
    mpeg_mux_write_packet,
    mpeg_mux_end,
}

Definition at line 1236 of file mpegenc.c.

Initial value:

 {
    "dvd",
    "MPEG2 PS format (DVD VOB)",
    "video/mpeg",
    "dvd",
    sizeof(MpegMuxContext),
    CODEC_ID_MP2,
    CODEC_ID_MPEG2VIDEO,
    mpeg_mux_init,
    mpeg_mux_write_packet,
    mpeg_mux_end,
}

Definition at line 1282 of file mpegenc.c.

Initial value:

 {
    "svcd",
    "MPEG2 PS format (VOB)",
    "video/mpeg",
    "vob",
    sizeof(MpegMuxContext),
    CODEC_ID_MP2,
    CODEC_ID_MPEG2VIDEO,
    mpeg_mux_init,
    mpeg_mux_write_packet,
    mpeg_mux_end,
}

Definition at line 1266 of file mpegenc.c.

Initial value:

 {
    "vob",
    "MPEG2 PS format (VOB)",
    "video/mpeg",
    "vob",
    sizeof(MpegMuxContext),
    CODEC_ID_MP2,
    CODEC_ID_MPEG2VIDEO,
    mpeg_mux_init,
    mpeg_mux_write_packet,
    mpeg_mux_end,
}

Definition at line 1250 of file mpegenc.c.

Initial value:

 {
    "mpeg",
    "MPEG1 System format",
    "video/mpeg",
    "mpg,mpeg",
    sizeof(MpegMuxContext),
    CODEC_ID_MP2,
    CODEC_ID_MPEG1VIDEO,
    mpeg_mux_init,
    mpeg_mux_write_packet,
    mpeg_mux_end,
}

Definition at line 1222 of file mpegenc.c.


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