FFmpeg
|
Windows Television (WTV) demuxer. More...
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h"
#include "avformat.h"
#include "internal.h"
#include "wtv.h"
#include "mpegts.h"
Go to the source code of this file.
Data Structures | |
struct | WtvFile |
struct | WtvStream |
struct | WtvContext |
Macros | |
#define | PRI_PRETTY_GUID "%08x-%04x-%04x-%02x%02x%02x%02x%02x%02x%02x%02x" |
#define | ARG_PRETTY_GUID(g) AV_RL32(g),AV_RL16(g+4),AV_RL16(g+6),g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15] |
#define | LEN_PRETTY_GUID 34 |
#define | wtvfile_open(s, buf, buf_size, filename) wtvfile_open2(s, buf, buf_size, filename, sizeof(filename)) |
Enumerations | |
enum | { SEEK_TO_DATA = 0, SEEK_TO_PTS } |
Functions | |
static int | wtvfile_read_packet (void *opaque, uint8_t *buf, int buf_size) |
static int64_t | wtvfile_seek (void *opaque, int64_t offset, int whence) |
static int | read_ints (AVIOContext *pb, uint32_t *data, int count) |
read non-zero integers (le32) from input stream More... | |
static AVIOContext * | wtvfile_open_sector (int first_sector, uint64_t length, int depth, AVFormatContext *s) |
Open file. More... | |
static AVIOContext * | wtvfile_open2 (AVFormatContext *s, const uint8_t *buf, int buf_size, const uint8_t *filename, int filename_size) |
Open file using filename. More... | |
static void | wtvfile_close (AVIOContext *pb) |
Close file opened with wtvfile_open_sector(), or wtv_open() More... | |
static int | read_probe (AVProbeData *p) |
static int | filetime_to_iso8601 (char *buf, int buf_size, int64_t value) |
Convert win32 FILETIME to ISO-8601 string. More... | |
static int | crazytime_to_iso8601 (char *buf, int buf_size, int64_t value) |
Convert crazy time (100ns since 1 Jan 0001) to ISO-8601 string. More... | |
static int | oledate_to_iso8601 (char *buf, int buf_size, int64_t value) |
Convert OLE DATE to ISO-8601 string. More... | |
static void | get_attachment (AVFormatContext *s, AVIOContext *pb, int length) |
static void | get_tag (AVFormatContext *s, AVIOContext *pb, const char *key, int type, int length) |
static void | parse_legacy_attrib (AVFormatContext *s, AVIOContext *pb) |
Parse metadata entries. More... | |
static int | parse_videoinfoheader2 (AVFormatContext *s, AVStream *st) |
parse VIDEOINFOHEADER2 structure More... | |
static void | parse_mpeg1waveformatex (AVStream *st) |
Parse MPEG1WAVEFORMATEX extradata structure. More... | |
static AVStream * | new_stream (AVFormatContext *s, AVStream *st, int sid, int codec_type) |
Initialise stream. More... | |
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) |
parse Media Type structure and populate stream More... | |
static int | parse_chunks (AVFormatContext *s, int mode, int64_t seekts, int *len_ptr) |
Parse WTV chunks. More... | |
static int | read_header (AVFormatContext *s) |
static int | read_packet (AVFormatContext *s, AVPacket *pkt) |
static int | read_seek (AVFormatContext *s, int stream_index, int64_t ts, int flags) |
static int | read_close (AVFormatContext *s) |
Variables | |
static const ff_asf_guid | EVENTID_SubtitleSpanningEvent |
static const ff_asf_guid | EVENTID_LanguageSpanningEvent |
static const ff_asf_guid | EVENTID_AudioDescriptorSpanningEvent |
static const ff_asf_guid | EVENTID_CtxADescriptorSpanningEvent |
static const ff_asf_guid | EVENTID_CSDescriptorSpanningEvent |
static const ff_asf_guid | EVENTID_DVBScramblingControlSpanningEvent |
static const ff_asf_guid | EVENTID_StreamIDSpanningEvent |
static const ff_asf_guid | EVENTID_TeletextSpanningEvent |
static const ff_asf_guid | EVENTID_AudioTypeSpanningEvent |
static const ff_asf_guid | mediasubtype_mpeg1payload |
static const ff_asf_guid | mediatype_mpeg2_sections |
static const ff_asf_guid | mediatype_mpeg2_pes |
static const ff_asf_guid | mediatype_mstvcaption |
static const ff_asf_guid | mediasubtype_dvb_subtitle |
static const ff_asf_guid | mediasubtype_teletext |
static const ff_asf_guid | mediasubtype_dtvccdata |
static const ff_asf_guid | mediasubtype_mpeg2_sections |
static const ff_asf_guid | format_videoinfo2 |
AVInputFormat | ff_wtv_demuxer |
Detailed Description
Windows Television (WTV) demuxer.
Definition in file wtvdec.c.
Macro Definition Documentation
#define PRI_PRETTY_GUID "%08x-%04x-%04x-%02x%02x%02x%02x%02x%02x%02x%02x" |
#define wtvfile_open | ( | s, | |
buf, | |||
buf_size, | |||
filename | |||
) | wtvfile_open2(s, buf, buf_size, filename, sizeof(filename)) |
Definition at line 283 of file wtvdec.c.
Referenced by read_header().
Enumeration Type Documentation
Function Documentation
|
static |
|
static |
|
static |
|
static |
Definition at line 449 of file wtvdec.c.
Referenced by parse_legacy_attrib().
|
static |
Initialise stream.
- Parameters
-
st Stream to initialise, or NULL to create and initialise new stream
- Returns
- NULL on error
Definition at line 591 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
|
static |
Parse WTV chunks.
- Parameters
-
mode SEEK_TO_DATA or SEEK_TO_PTS seekts timestamp [out] len_ptr Length of data chunk
- Returns
- stream index of data chunk, or <0 on error
Definition at line 748 of file wtvdec.c.
Referenced by read_header(), read_packet(), and read_seek().
|
static |
|
static |
parse Media Type structure and populate stream
- Parameters
-
st Stream, or NULL to create new stream mediatype Mediatype GUID subtype Subtype GUID formattype Format GUID size Size of format buffer
- Returns
- NULL on error
Definition at line 625 of file wtvdec.c.
Referenced by parse_chunks().
Parse MPEG1WAVEFORMATEX extradata structure.
Definition at line 562 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
parse VIDEOINFOHEADER2 structure
- Returns
- bytes consumed
Definition at line 548 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
|
static |
|
static |
read non-zero integers (le32) from input stream
- Parameters
-
pb [out] data destination count maximum number of integers to read
- Returns
- total number of integers read
Definition at line 129 of file wtvdec.c.
Referenced by wtvfile_open_sector().
|
static |
|
static |
|
static |
|
static |
Close file opened with wtvfile_open_sector(), or wtv_open()
Definition at line 289 of file wtvdec.c.
Referenced by read_close(), and read_header().
|
static |
|
static |
Open file.
- Parameters
-
first_sector First sector length Length of file (bytes) depth File allocation table depth
- Returns
- NULL on error
Definition at line 146 of file wtvdec.c.
Referenced by wtvfile_open2().
- Returns
- bytes read, 0 on end of file, or <0 on error
Definition at line 64 of file wtvdec.c.
Referenced by wtvfile_open_sector().
|
static |
- Returns
- position (or file length)
Definition at line 103 of file wtvdec.c.
Referenced by wtvfile_open_sector().
Variable Documentation
|
static |
Definition at line 326 of file wtvdec.c.
Referenced by parse_chunks().
|
static |
Definition at line 338 of file wtvdec.c.
Referenced by parse_chunks().
|
static |
Definition at line 330 of file wtvdec.c.
Referenced by parse_chunks().
|
static |
Definition at line 328 of file wtvdec.c.
Referenced by parse_chunks().
|
static |
Definition at line 332 of file wtvdec.c.
Referenced by parse_chunks().
|
static |
Definition at line 324 of file wtvdec.c.
Referenced by parse_chunks().
|
static |
Definition at line 334 of file wtvdec.c.
Referenced by parse_chunks().
|
static |
Definition at line 322 of file wtvdec.c.
Referenced by parse_chunks().
|
static |
Definition at line 336 of file wtvdec.c.
Referenced by parse_chunks().
AVInputFormat ff_wtv_demuxer |
|
static |
Definition at line 364 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
Definition at line 358 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
Definition at line 354 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
Definition at line 344 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
Definition at line 360 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
Definition at line 356 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
Definition at line 348 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
Definition at line 346 of file wtvdec.c.
Referenced by parse_media_type().
|
static |
Definition at line 350 of file wtvdec.c.
Referenced by parse_media_type().
Generated on Mon Nov 18 2024 06:52:10 for FFmpeg by 1.8.11