asf-enc.c File Reference

Go to the source code of this file.

Functions

static void put_guid (ByteIOContext *s, const GUID *g)
static void put_str16_nolen (ByteIOContext *s, const char *tag)
static void put_str16 (ByteIOContext *s, const char *tag)
static int64_t put_header (ByteIOContext *pb, const GUID *g)
static void end_header (ByteIOContext *pb, int64_t pos)
static void put_chunk (AVFormatContext *s, int type, int payload_length, int flags)
static int64_t unix_to_file_time (int ti)
static int asf_write_header1 (AVFormatContext *s, int64_t file_size, int64_t data_chunk_size)
static int asf_write_header (AVFormatContext *s)
static int asf_write_stream_header (AVFormatContext *s)
static int put_payload_parsing_info (AVFormatContext *s, unsigned int sendtime, unsigned int duration, int nb_payloads, int padsize)
static void flush_packet (AVFormatContext *s)
static void put_payload_header (AVFormatContext *s, ASFStream *stream, int presentation_time, int m_obj_size, int m_obj_offset, int payload_len, int flags)
static void put_frame (AVFormatContext *s, ASFStream *stream, AVStream *avst, int timestamp, const uint8_t *buf, int m_obj_size, int flags)
static int asf_write_packet (AVFormatContext *s, AVPacket *pkt)
static int asf_write_index (AVFormatContext *s, ASFIndex *index, uint16_t max, uint32_t count)
static int asf_write_trailer (AVFormatContext *s)

Variables

static const AVCodecTag codec_asf_bmp_tags []
AVOutputFormat asf_muxer
AVOutputFormat asf_stream_muxer


Function Documentation

static void put_guid ( ByteIOContext s,
const GUID g 
) [static]

Definition at line 199 of file asf-enc.c.

Referenced by asf_write_header1(), asf_write_index(), and put_header().

static void put_str16_nolen ( ByteIOContext s,
const char *  tag 
) [static]

Definition at line 212 of file asf-enc.c.

Referenced by asf_write_header1(), and put_str16().

static void put_str16 ( ByteIOContext s,
const char *  tag 
) [static]

Definition at line 206 of file asf-enc.c.

Referenced by asf_write_header1().

static int64_t put_header ( ByteIOContext pb,
const GUID g 
) [static]

Definition at line 222 of file asf-enc.c.

static void end_header ( ByteIOContext pb,
int64_t  pos 
) [static]

Definition at line 233 of file asf-enc.c.

Referenced by asf_write_header1().

static void put_chunk ( AVFormatContext s,
int  type,
int  payload_length,
int  flags 
) [static]

Definition at line 244 of file asf-enc.c.

Referenced by asf_write_header1(), asf_write_trailer(), and flush_packet().

static int64_t unix_to_file_time ( int  ti  )  [static]

Definition at line 260 of file asf-enc.c.

Referenced by asf_write_header1().

static int asf_write_header1 ( AVFormatContext s,
int64_t  file_size,
int64_t  data_chunk_size 
) [static]

Definition at line 270 of file asf-enc.c.

Referenced by asf_write_header(), and asf_write_trailer().

static int asf_write_header ( AVFormatContext s  )  [static]

Definition at line 488 of file asf-enc.c.

Referenced by asf_write_stream_header().

static int asf_write_stream_header ( AVFormatContext s  )  [static]

Definition at line 520 of file asf-enc.c.

static int put_payload_parsing_info ( AVFormatContext s,
unsigned int  sendtime,
unsigned int  duration,
int  nb_payloads,
int  padsize 
) [static]

Definition at line 529 of file asf-enc.c.

Referenced by flush_packet().

static void flush_packet ( AVFormatContext s  )  [static]

static void put_payload_header ( AVFormatContext s,
ASFStream stream,
int  presentation_time,
int  m_obj_size,
int  m_obj_offset,
int  payload_len,
int  flags 
) [static]

Definition at line 614 of file asf-enc.c.

Referenced by put_frame().

static void put_frame ( AVFormatContext s,
ASFStream stream,
AVStream avst,
int  timestamp,
const uint8_t *  buf,
int  m_obj_size,
int  flags 
) [static]

Definition at line 651 of file asf-enc.c.

Referenced by asf_write_packet().

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

Definition at line 720 of file asf-enc.c.

static int asf_write_index ( AVFormatContext s,
ASFIndex index,
uint16_t  max,
uint32_t  count 
) [static]

Definition at line 767 of file asf-enc.c.

Referenced by asf_write_trailer().

static int asf_write_trailer ( AVFormatContext s  )  [static]

Definition at line 786 of file asf-enc.c.


Variable Documentation

const AVCodecTag codec_asf_bmp_tags[] [static]

Initial value:

 {
    { CODEC_ID_MPEG4, MKTAG('M', 'P', '4', 'S') },
    { CODEC_ID_MPEG4, MKTAG('M', '4', 'S', '2') },
    { CODEC_ID_MSMPEG4V3, MKTAG('M', 'P', '4', '3') },
    { CODEC_ID_NONE, 0 },
}

Definition at line 190 of file asf-enc.c.

Initial value:

 {
    "asf",
    "asf format",
    "video/x-ms-asf",
    "asf,wmv,wma",
    sizeof(ASFContext),
#ifdef CONFIG_LIBMP3LAME
    CODEC_ID_MP3,
#else
    CODEC_ID_MP2,
#endif
    CODEC_ID_MSMPEG4V3,
    asf_write_header,
    asf_write_packet,
    asf_write_trailer,
    .flags = AVFMT_GLOBALHEADER,
    .codec_tag= (const AVCodecTag*[]){codec_asf_bmp_tags, codec_bmp_tags, codec_wav_tags, 0},
}

Definition at line 817 of file asf-enc.c.

Initial value:

 {
    "asf_stream",
    "asf format",
    "video/x-ms-asf",
    "asf,wmv,wma",
    sizeof(ASFContext),
#ifdef CONFIG_LIBMP3LAME
    CODEC_ID_MP3,
#else
    CODEC_ID_MP2,
#endif
    CODEC_ID_MSMPEG4V3,
    asf_write_stream_header,
    asf_write_packet,
    asf_write_trailer,
    .flags = AVFMT_GLOBALHEADER,
    .codec_tag= (const AVCodecTag*[]){codec_asf_bmp_tags, codec_bmp_tags, codec_wav_tags, 0},
}

Definition at line 838 of file asf-enc.c.


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