libavformat/asf.h File Reference

#include <stdint.h>
#include "avformat.h"
#include "metadata.h"

Go to the source code of this file.

Data Structures

struct  ASFStream
struct  ASFMainHeader
struct  ASFIndex
struct  ASFContext

Defines

#define PACKET_SIZE   3200
#define ASF_PACKET_FLAG_ERROR_CORRECTION_PRESENT   0x80
#define ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT   1
#define ASF_PPI_FLAG_SEQUENCE_FIELD_IS_BYTE   0x02
#define ASF_PPI_FLAG_SEQUENCE_FIELD_IS_WORD   0x04
#define ASF_PPI_FLAG_SEQUENCE_FIELD_IS_DWORD   0x06
#define ASF_PPI_MASK_SEQUENCE_FIELD_SIZE   0x06
#define ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE   0x08
#define ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD   0x10
#define ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_DWORD   0x18
#define ASF_PPI_MASK_PADDING_LENGTH_FIELD_SIZE   0x18
#define ASF_PPI_FLAG_PACKET_LENGTH_FIELD_IS_BYTE   0x20
#define ASF_PPI_FLAG_PACKET_LENGTH_FIELD_IS_WORD   0x40
#define ASF_PPI_FLAG_PACKET_LENGTH_FIELD_IS_DWORD   0x60
#define ASF_PPI_MASK_PACKET_LENGTH_FIELD_SIZE   0x60
#define ASF_PL_FLAG_REPLICATED_DATA_LENGTH_FIELD_IS_BYTE   0x01
#define ASF_PL_FLAG_REPLICATED_DATA_LENGTH_FIELD_IS_WORD   0x02
#define ASF_PL_FLAG_REPLICATED_DATA_LENGTH_FIELD_IS_DWORD   0x03
#define ASF_PL_MASK_REPLICATED_DATA_LENGTH_FIELD_SIZE   0x03
#define ASF_PL_FLAG_OFFSET_INTO_MEDIA_OBJECT_LENGTH_FIELD_IS_BYTE   0x04
#define ASF_PL_FLAG_OFFSET_INTO_MEDIA_OBJECT_LENGTH_FIELD_IS_WORD   0x08
#define ASF_PL_FLAG_OFFSET_INTO_MEDIA_OBJECT_LENGTH_FIELD_IS_DWORD   0x0c
#define ASF_PL_MASK_OFFSET_INTO_MEDIA_OBJECT_LENGTH_FIELD_SIZE   0x0c
#define ASF_PL_FLAG_MEDIA_OBJECT_NUMBER_LENGTH_FIELD_IS_BYTE   0x10
#define ASF_PL_FLAG_MEDIA_OBJECT_NUMBER_LENGTH_FIELD_IS_WORD   0x20
#define ASF_PL_FLAG_MEDIA_OBJECT_NUMBER_LENGTH_FIELD_IS_DWORD   0x30
#define ASF_PL_MASK_MEDIA_OBJECT_NUMBER_LENGTH_FIELD_SIZE   0x30
#define ASF_PL_FLAG_STREAM_NUMBER_LENGTH_FIELD_IS_BYTE   0x40
#define ASF_PL_MASK_STREAM_NUMBER_LENGTH_FIELD_SIZE   0xc0
#define ASF_PL_FLAG_PAYLOAD_LENGTH_FIELD_IS_BYTE   0x40
#define ASF_PL_FLAG_PAYLOAD_LENGTH_FIELD_IS_WORD   0x80
#define ASF_PL_MASK_PAYLOAD_LENGTH_FIELD_SIZE   0xc0
#define ASF_PL_FLAG_KEY_FRAME   0x80

Typedefs

typedef uint8_t GUID [16]

Functions

int ff_asf_get_packet (AVFormatContext *s, ByteIOContext *pb)
 Load a single ASF packet into the demuxer.
int ff_asf_parse_packet (AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt)
 Parse data from individual ASF packets (which were previously loaded with asf_get_packet()).

Variables

const GUID ff_asf_header
const GUID ff_asf_file_header
const GUID ff_asf_stream_header
const GUID ff_asf_ext_stream_header
const GUID ff_asf_audio_stream
const GUID ff_asf_audio_conceal_none
const GUID ff_asf_audio_conceal_spread
const GUID ff_asf_video_stream
const GUID ff_asf_video_conceal_none
const GUID ff_asf_command_stream
const GUID ff_asf_comment_header
const GUID ff_asf_codec_comment_header
const GUID ff_asf_codec_comment1_header
const GUID ff_asf_data_header
const GUID ff_asf_head1_guid
const GUID ff_asf_head2_guid
const GUID ff_asf_extended_content_header
const GUID ff_asf_simple_index_header
const GUID ff_asf_ext_stream_embed_stream_header
const GUID ff_asf_ext_stream_audio_stream
const GUID ff_asf_metadata_header
const GUID ff_asf_my_guid
const AVMetadataConv ff_asf_metadata_conv []
AVInputFormat asf_demuxer


Define Documentation

#define ASF_PACKET_FLAG_ERROR_CORRECTION_PRESENT   0x80

Definition at line 162 of file asf.h.

#define ASF_PL_FLAG_KEY_FRAME   0x80

Definition at line 221 of file asf.h.

Referenced by put_payload_header().

#define ASF_PL_FLAG_MEDIA_OBJECT_NUMBER_LENGTH_FIELD_IS_BYTE   0x10

Definition at line 209 of file asf.h.

#define ASF_PL_FLAG_MEDIA_OBJECT_NUMBER_LENGTH_FIELD_IS_DWORD   0x30

Definition at line 211 of file asf.h.

#define ASF_PL_FLAG_MEDIA_OBJECT_NUMBER_LENGTH_FIELD_IS_WORD   0x20

Definition at line 210 of file asf.h.

#define ASF_PL_FLAG_OFFSET_INTO_MEDIA_OBJECT_LENGTH_FIELD_IS_BYTE   0x04

Definition at line 204 of file asf.h.

#define ASF_PL_FLAG_OFFSET_INTO_MEDIA_OBJECT_LENGTH_FIELD_IS_DWORD   0x0c

Definition at line 206 of file asf.h.

#define ASF_PL_FLAG_OFFSET_INTO_MEDIA_OBJECT_LENGTH_FIELD_IS_WORD   0x08

Definition at line 205 of file asf.h.

#define ASF_PL_FLAG_PAYLOAD_LENGTH_FIELD_IS_BYTE   0x40

Definition at line 217 of file asf.h.

#define ASF_PL_FLAG_PAYLOAD_LENGTH_FIELD_IS_WORD   0x80

Definition at line 218 of file asf.h.

#define ASF_PL_FLAG_REPLICATED_DATA_LENGTH_FIELD_IS_BYTE   0x01

Definition at line 199 of file asf.h.

#define ASF_PL_FLAG_REPLICATED_DATA_LENGTH_FIELD_IS_DWORD   0x03

Definition at line 201 of file asf.h.

#define ASF_PL_FLAG_REPLICATED_DATA_LENGTH_FIELD_IS_WORD   0x02

Definition at line 200 of file asf.h.

#define ASF_PL_FLAG_STREAM_NUMBER_LENGTH_FIELD_IS_BYTE   0x40

Definition at line 214 of file asf.h.

#define ASF_PL_MASK_MEDIA_OBJECT_NUMBER_LENGTH_FIELD_SIZE   0x30

Definition at line 212 of file asf.h.

#define ASF_PL_MASK_OFFSET_INTO_MEDIA_OBJECT_LENGTH_FIELD_SIZE   0x0c

Definition at line 207 of file asf.h.

#define ASF_PL_MASK_PAYLOAD_LENGTH_FIELD_SIZE   0xc0

Definition at line 219 of file asf.h.

#define ASF_PL_MASK_REPLICATED_DATA_LENGTH_FIELD_SIZE   0x03

Definition at line 202 of file asf.h.

#define ASF_PL_MASK_STREAM_NUMBER_LENGTH_FIELD_SIZE   0xc0

Definition at line 215 of file asf.h.

#define ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT   1

Definition at line 181 of file asf.h.

Referenced by put_payload_parsing_info().

#define ASF_PPI_FLAG_PACKET_LENGTH_FIELD_IS_BYTE   0x20

Definition at line 193 of file asf.h.

#define ASF_PPI_FLAG_PACKET_LENGTH_FIELD_IS_DWORD   0x60

Definition at line 195 of file asf.h.

#define ASF_PPI_FLAG_PACKET_LENGTH_FIELD_IS_WORD   0x40

Definition at line 194 of file asf.h.

#define ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE   0x08

Definition at line 188 of file asf.h.

Referenced by put_payload_parsing_info().

#define ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_DWORD   0x18

Definition at line 190 of file asf.h.

#define ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD   0x10

Definition at line 189 of file asf.h.

Referenced by put_payload_parsing_info().

#define ASF_PPI_FLAG_SEQUENCE_FIELD_IS_BYTE   0x02

Definition at line 183 of file asf.h.

#define ASF_PPI_FLAG_SEQUENCE_FIELD_IS_DWORD   0x06

Definition at line 185 of file asf.h.

#define ASF_PPI_FLAG_SEQUENCE_FIELD_IS_WORD   0x04

Definition at line 184 of file asf.h.

#define ASF_PPI_MASK_PACKET_LENGTH_FIELD_SIZE   0x60

Definition at line 196 of file asf.h.

#define ASF_PPI_MASK_PADDING_LENGTH_FIELD_SIZE   0x18

Definition at line 191 of file asf.h.

#define ASF_PPI_MASK_SEQUENCE_FIELD_SIZE   0x06

Definition at line 186 of file asf.h.

#define PACKET_SIZE   3200

Definition at line 28 of file asf.h.

Referenced by asf_write_header(), flush_packet(), iff_read_packet(), and put_frame().


Typedef Documentation

typedef uint8_t GUID[16]

Definition at line 47 of file asf.h.


Function Documentation

int ff_asf_get_packet ( AVFormatContext s,
ByteIOContext pb 
)

Load a single ASF packet into the demuxer.

Parameters:
s demux context
pb context to read data from
Returns:
0 on success, <0 on error

Definition at line 551 of file asfdec.c.

Referenced by asf_read_packet().

int ff_asf_parse_packet ( AVFormatContext s,
ByteIOContext pb,
AVPacket pkt 
)

Parse data from individual ASF packets (which were previously loaded with asf_get_packet()).

Parameters:
s demux context
pb context to read data from
pkt pointer to store packet data into
Returns:
0 if data was stored in pkt, <0 on error or 1 if more ASF packets need to be loaded (through asf_get_packet())

Definition at line 697 of file asfdec.c.

Referenced by asf_read_packet().


Variable Documentation

Definition at line 1082 of file asfdec.c.

Definition at line 44 of file asf.c.

Definition at line 50 of file asf.c.

Referenced by asf_write_header1().

Definition at line 40 of file asf.c.

Referenced by asf_read_header(), and asf_write_header1().

Definition at line 73 of file asf.c.

Referenced by asf_write_header1().

Definition at line 70 of file asf.c.

Referenced by asf_read_header(), and asf_write_header1().

Definition at line 62 of file asf.c.

Referenced by asf_read_header().

Definition at line 66 of file asf.c.

Referenced by asf_read_header(), and asf_write_header1().

Definition at line 77 of file asf.c.

Referenced by asf_read_header(), and asf_write_header1().

Definition at line 101 of file asf.c.

Referenced by asf_read_header().

Definition at line 97 of file asf.c.

Referenced by asf_read_header().

Definition at line 36 of file asf.c.

Referenced by asf_read_header().

Definition at line 89 of file asf.c.

Referenced by asf_read_header(), and asf_write_header1().

Definition at line 28 of file asf.c.

Referenced by asf_read_header(), and asf_write_header1().

Definition at line 81 of file asf.c.

Referenced by asf_read_header(), and asf_write_header1().

Definition at line 85 of file asf.c.

Referenced by asf_write_header1().

Definition at line 24 of file asf.c.

Referenced by asf_probe(), asf_read_header(), and asf_write_header1().

Definition at line 116 of file asf.c.

Definition at line 105 of file asf.c.

Referenced by asf_read_header().

Definition at line 111 of file asf.c.

Referenced by asf_write_header1(), and asf_write_index().

Definition at line 93 of file asf.c.

Referenced by asf_write_index().

Definition at line 32 of file asf.c.

Referenced by asf_read_header(), and asf_write_header1().

Definition at line 58 of file asf.c.

Referenced by asf_write_header1().

Definition at line 54 of file asf.c.

Referenced by asf_read_header(), and asf_write_header1().


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8