#include "libavutil/fifo.h"#include "libavcodec/put_bits.h"#include "avformat.h"#include "mpeg.h"#include <assert.h>Go to the source code of this file.
| typedef struct PacketDesc PacketDesc |
| 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 647 of file mpegenc.c.
Referenced by output_packet().
| static int get_nb_frames | ( | AVFormatContext * | ctx, | |
| StreamInfo * | stream, | |||
| int | len | |||
| ) | [static] |
Definition at line 632 of file mpegenc.c.
Referenced by flush_packet().
| static int get_system_header_size | ( | AVFormatContext * | ctx | ) | [static] |
Definition at line 266 of file mpegenc.c.
Referenced by mpeg_mux_init().
| static int get_vcd_padding_size | ( | AVFormatContext * | ctx, | |
| int64_t | pts | |||
| ) | [static] |
Definition at line 506 of file mpegenc.c.
Referenced by output_packet().
| static int mpeg_mux_end | ( | AVFormatContext * | ctx | ) | [static] |
| static int mpeg_mux_init | ( | AVFormatContext * | ctx | ) | [static] |
| static int mpeg_mux_write_packet | ( | AVFormatContext * | ctx, | |
| AVPacket * | pkt | |||
| ) | [static] |
| static int output_packet | ( | AVFormatContext * | ctx, | |
| int | flush | |||
| ) | [static] |
Definition at line 1026 of file mpegenc.c.
Referenced by mpeg_mux_end(), and mpeg_mux_write_packet().
| static int put_pack_header | ( | AVFormatContext * | ctx, | |
| uint8_t * | buf, | |||
| int64_t | timestamp | |||
| ) | [static] |
Definition at line 83 of file mpegenc.c.
Referenced by flush_packet().
| static void put_padding_packet | ( | AVFormatContext * | ctx, | |
| AVIOContext * | pb, | |||
| int | packet_bytes | |||
| ) | [static] |
Definition at line 615 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 119 of file mpegenc.c.
Referenced by flush_packet().
| static void put_timestamp | ( | AVIOContext * | pb, | |
| int | id, | |||
| int64_t | timestamp | |||
| ) | [inline, static] |
Definition at line 493 of file mpegenc.c.
Referenced by flush_packet().
| static void put_vcd_padding_sector | ( | AVFormatContext * | ctx | ) | [static] |
Definition at line 951 of file mpegenc.c.
Referenced by output_packet().
| static int remove_decoded_packets | ( | AVFormatContext * | ctx, | |
| int64_t | scr | |||
| ) | [static] |
Definition at line 998 of file mpegenc.c.
Referenced by output_packet().
{
"mpeg",
NULL_IF_CONFIG_SMALL("MPEG-1 System format"),
"video/mpeg",
"mpg,mpeg",
sizeof(MpegMuxContext),
CODEC_ID_MP2,
CODEC_ID_MPEG1VIDEO,
mpeg_mux_init,
mpeg_mux_write_packet,
mpeg_mux_end,
}
{
"vcd",
NULL_IF_CONFIG_SMALL("MPEG-1 System format (VCD)"),
"video/mpeg",
NULL,
sizeof(MpegMuxContext),
CODEC_ID_MP2,
CODEC_ID_MPEG1VIDEO,
mpeg_mux_init,
mpeg_mux_write_packet,
mpeg_mux_end,
}
{
"dvd",
NULL_IF_CONFIG_SMALL("MPEG-2 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,
}
{
"svcd",
NULL_IF_CONFIG_SMALL("MPEG-2 PS format (VOB)"),
"video/mpeg",
"vob",
sizeof(MpegMuxContext),
CODEC_ID_MP2,
CODEC_ID_MPEG2VIDEO,
mpeg_mux_init,
mpeg_mux_write_packet,
mpeg_mux_end,
}
{
"vob",
NULL_IF_CONFIG_SMALL("MPEG-2 PS format (VOB)"),
"video/mpeg",
"vob",
sizeof(MpegMuxContext),
CODEC_ID_MP2,
CODEC_ID_MPEG2VIDEO,
mpeg_mux_init,
mpeg_mux_write_packet,
mpeg_mux_end,
}
1.7.1