#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "riff.h"
#include "asf.h"
#include "mpegts.h"
Go to the source code of this file.
Definition in file wtv.c.
| #define MEDIASUBTYPE_BASE_GUID 0x00,0x00,0x10,0x00,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71 |
| #define PRI_GUID "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x" |
| #define WTV_CHUNK_START 0x40000 |
| #define WTV_PAD8 | ( | x | ) | (((x) + 7) & ~7) |
Referenced by parse_chunks(), and read_packet().
| anonymous enum |
| static enum CodecID ff_codec_guid_get_id | ( | const AVCodecGuid * | guids, | |
| ff_asf_guid | guid | |||
| ) | [static] |
| static int is_zero | ( | uint8_t * | v, | |
| int | n | |||
| ) | [static] |
| static AVStream* new_stream | ( | AVFormatContext * | s, | |
| AVStream * | st, | |||
| int | sid, | |||
| int | codec_type | |||
| ) | [static] |
Initialise stream.
| st | Stream to initialise, or NULL to create and initialise new stream |
Definition at line 201 of file wtv.c.
Referenced by parse_media_type().
| static int parse_chunks | ( | AVFormatContext * | s, | |
| int | mode, | |||
| int64_t | seekts, | |||
| int * | len_ptr | |||
| ) | [static] |
Parse WTV chunks.
| mode | SEEK_TO_DATA, SEEK_TO_BYTE, SEEK_TO_PTS | |
| seekts | either byte position or timestamp | |
| [out] | len | Length of data chunk |
Definition at line 353 of file wtv.c.
Referenced by read_header(), read_packet(), and read_seek2().
| static AVStream* parse_media_type | ( | AVFormatContext * | s, | |
| AVStream * | st, | |||
| int | sid, | |||
| ff_asf_guid | mediatype, | |||
| ff_asf_guid | subtype, | |||
| ff_asf_guid | formattype, | |||
| int | size | |||
| ) | [static] |
parse Media Type structure and populate stream
| st | Stream, or NULL to create new stream | |
| mediatype | Mediatype GUID | |
| subtype | Subtype GUID | |
| formattype | Format GUID | |
| size | Size of format buffer |
Definition at line 232 of file wtv.c.
Referenced by parse_chunks().
| static void parse_mpeg1waveformatex | ( | AVStream * | st | ) | [static] |
Parse MPEG1WAVEFORMATEX extradata structure.
Definition at line 178 of file wtv.c.
Referenced by parse_media_type().
| static int parse_videoinfoheader2 | ( | AVFormatContext * | s, | |
| AVStream * | st | |||
| ) | [static] |
parse VIDEOINFOHEADER2 structure
Definition at line 165 of file wtv.c.
Referenced by parse_media_type().
| static int read_header | ( | AVFormatContext * | s, | |
| AVFormatParameters * | ap | |||
| ) | [static] |
| static int read_packet | ( | AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) | [static] |
| static int read_probe | ( | AVProbeData * | p | ) | [static] |
| static int read_seek2 | ( | AVFormatContext * | s, | |
| int | stream_index, | |||
| int64_t | min_ts, | |||
| int64_t | ts, | |||
| int64_t | max_ts, | |||
| int | flags | |||
| ) | [static] |
const AVCodecGuid audio_guids[] [static] |
Initial value:
{
{CODEC_ID_AC3, {0x2C,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
{CODEC_ID_EAC3, {0xAF,0x87,0xFB,0xA7,0x02,0x2D,0xFB,0x42,0xA4,0xD4,0x05,0xCD,0x93,0x84,0x3B,0xDD}},
{CODEC_ID_MP2, {0x2B,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
{CODEC_ID_NONE}
}
const ff_asf_guid data_guid [static] |
Initial value:
{0x95,0xC3,0xD2,0xC2,0x7E,0x9A,0xDA,0x11,0x8B,0xF7,0x00,0x07,0xE9,0x5E,0xAD,0x8D}
Definition at line 78 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid EVENTID_AudioDescriptorSpanningEvent [static] |
Initial value:
{0x1C,0xD4,0x7B,0x10,0xDA,0xA6,0x91,0x46,0x83,0x69,0x11,0xB2,0xCD,0xAA,0x28,0x8E}
Definition at line 88 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid EVENTID_CSDescriptorSpanningEvent [static] |
Initial value:
{0xD9,0x79,0xE7,0xEf,0xF0,0x97,0x86,0x47,0x80,0x0D,0x95,0xCF,0x50,0x5D,0xDC,0x66}
Definition at line 92 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid EVENTID_CtxADescriptorSpanningEvent [static] |
Initial value:
{0xE6,0xA2,0xB4,0x3A,0x47,0x42,0x34,0x4B,0x89,0x6C,0x30,0xAF,0xA5,0xD2,0x1C,0x24}
Definition at line 90 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid EVENTID_DVBScramblingControlSpanningEvent [static] |
Initial value:
{0xC4,0xE1,0xD4,0x4B,0xA1,0x90,0x09,0x41,0x82,0x36,0x27,0xF0,0x0E,0x7D,0xCC,0x5B}
Definition at line 94 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid EVENTID_LanguageSpanningEvent [static] |
Initial value:
{0x6D,0x66,0x92,0xE2,0x02,0x9C,0x8D,0x44,0xAA,0x8D,0x78,0x1A,0x93,0xFD,0xC3,0x95}
Definition at line 86 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid EVENTID_StreamIDSpanningEvent [static] |
Initial value:
{0x68,0xAB,0xF1,0xCA,0x53,0xE1,0x41,0x4D,0xA6,0xB3,0xA7,0xC9,0x98,0xDB,0x75,0xEE}
Definition at line 96 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid EVENTID_SubtitleSpanningEvent [static] |
Initial value:
{0x48,0xC0,0xCE,0x5D,0xB9,0xD0,0x63,0x41,0x87,0x2C,0x4F,0x32,0x22,0x3B,0xE8,0x8A}
Definition at line 84 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid EVENTID_TeletextSpanningEvent [static] |
Initial value:
{0x50,0xD9,0x99,0x95,0x33,0x5F,0x17,0x46,0xAF,0x7C,0x1E,0x54,0xB5,0x10,0xDA,0xA3}
Definition at line 98 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid format_cpfilters_processed [static] |
Initial value:
{0x6F,0xB3,0x39,0x67,0x5F,0x1D,0xC2,0x4A,0x81,0x92,0x28,0xBB,0x0E,0x73,0xD1,0x6A}
Definition at line 133 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid format_mpeg2_video [static] |
Initial value:
{0xE3,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}
Definition at line 139 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid format_none [static] |
Initial value:
{0xD6,0x17,0x64,0x0F,0x18,0xC3,0xD0,0x11,0xA4,0x3F,0x00,0xA0,0xC9,0x22,0x31,0x96}
Definition at line 141 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid format_videoinfo2 [static] |
Initial value:
{0xA0,0x76,0x2A,0xF7,0x0A,0xEB,0xD0,0x11,0xAC,0xE4,0x00,0x00,0xC0,0xCC,0x16,0xBA}
Definition at line 137 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid format_waveformatex [static] |
Initial value:
{0x81,0x9F,0x58,0x05,0x56,0xC3,0xCE,0x11,0xBF,0x01,0x00,0xAA,0x00,0x55,0x59,0x5A}
Definition at line 135 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediasubtype_cpfilters_processed [static] |
Initial value:
{0x28,0xBD,0xAD,0x46,0xD0,0x6F,0x96,0x47,0x93,0xB2,0x15,0x5C,0x51,0xDC,0x04,0x8D}
Definition at line 121 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediasubtype_dtvccdata [static] |
Initial value:
{0xAA,0xDD,0x2A,0xF5,0xF0,0x36,0xF5,0x43,0x95,0xEA,0x6D,0x86,0x64,0x84,0x26,0x2A}
Definition at line 127 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediasubtype_dvb_subtitle [static] |
Initial value:
{0xC3,0xCB,0xFF,0x34,0xB3,0xD5,0x71,0x41,0x90,0x02,0xD4,0xC6,0x03,0x01,0x69,0x7F}
Definition at line 123 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediasubtype_mpeg1payload [static] |
Initial value:
{0x81,0xEB,0x36,0xE4,0x4F,0x52,0xCE,0x11,0x9F,0x53,0x00,0x20,0xAF,0x0B,0xA7,0x70}
Definition at line 111 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediasubtype_mpeg2_sections [static] |
Initial value:
{0x79,0x85,0x9F,0x4A,0xF8,0x6B,0x92,0x43,0x8A,0x6D,0xD2,0xDD,0x09,0xFA,0x78,0x61}
Definition at line 129 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediasubtype_teletext [static] |
Initial value:
{0xE3,0x76,0x2A,0xF7,0x0A,0xEB,0xD0,0x11,0xAC,0xE4,0x00,0x00,0xC0,0xCC,0x16,0xBA}
Definition at line 125 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediatype_audio [static] |
Initial value:
{'a','u','d','s',MEDIASUBTYPE_BASE_GUID}
Definition at line 107 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediatype_mpeg2_pes [static] |
Initial value:
{0x20,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}
Definition at line 115 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediatype_mpeg2_sections [static] |
Initial value:
{0x6C,0x17,0x5F,0x45,0x06,0x4B,0xCE,0x47,0x9A,0xEF,0x8C,0xAE,0xF7,0x3D,0xF7,0xB5}
Definition at line 113 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediatype_mstvcaption [static] |
Initial value:
{0x89,0x8A,0x8B,0xB8,0x49,0xB0,0x80,0x4C,0xAD,0xCF,0x58,0x98,0x98,0x5E,0x22,0xC1}
Definition at line 117 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid mediatype_video [static] |
Initial value:
{'v','i','d','s',MEDIASUBTYPE_BASE_GUID}
Definition at line 109 of file wtv.c.
Referenced by parse_media_type().
const ff_asf_guid meta_guid [static] |
const ff_asf_guid stream2_guid [static] |
Initial value:
{0xA2,0xC3,0xD2,0xC2,0x7E,0x9A,0xDA,0x11,0x8B,0xF7,0x00,0x07,0xE9,0x5E,0xAD,0x8D}
Definition at line 82 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid stream_guid [static] |
Initial value:
{0xED,0xA4,0x13,0x23,0x2D,0xBF,0x4F,0x45,0xAD,0x8A,0xD9,0x5B,0xA7,0xF9,0x1F,0xEE}
Definition at line 80 of file wtv.c.
Referenced by parse_chunks().
const ff_asf_guid timestamp_guid [static] |
Initial value:
{0x5B,0x05,0xE6,0x1B,0x97,0xA9,0x49,0x43,0x88,0x17,0x1A,0x65,0x5A,0x29,0x8A,0x97}
Definition at line 76 of file wtv.c.
Referenced by parse_chunks().
const AVCodecGuid video_guids[] [static] |
Initial value:
{
{CODEC_ID_MPEG2VIDEO, {0x26,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
{CODEC_ID_NONE}
}
Initial value:
{
.name = "wtv",
.long_name = NULL_IF_CONFIG_SMALL("Windows Television (WTV)"),
.priv_data_size = sizeof(WtvContext),
.read_probe = read_probe,
.read_header = read_header,
.read_packet = read_packet,
.read_seek2 = read_seek2,
.flags = AVFMT_SHOW_IDS|AVFMT_TS_DISCONT,
}
const ff_asf_guid wtv_guid [static] |
Initial value:
{0xB7,0xD8,0x00,0x20,0x37,0x49,0xDA,0x11,0xA6,0x4E,0x00,0x07,0xE9,0x5E,0xAD,0x8D}
Definition at line 72 of file wtv.c.
Referenced by read_probe().
1.5.6