#include "libavutil/intreadwrite.h"
#include "libavutil/avassert.h"
#include "avformat.h"
#include "internal.h"
#include "wtv.h"
#include "asf.h"
Go to the source code of this file.
Definition in file wtvenc.c.
#define INDEX_BASE 0x2 |
Definition at line 36 of file wtvenc.c.
Referenced by write_header(), write_packet(), write_stream_data(), and write_timestamp().
#define MAX_NB_INDEX 10 |
#define WTV_BIGSECTOR_SIZE (1 << WTV_BIGSECTOR_BITS) |
typedef int WTVHeaderWriteFunc(AVIOContext *pb) |
enum WtvFileIndex |
static void finish_chunk | ( | AVFormatContext * | s | ) | [static] |
Definition at line 198 of file wtvenc.c.
Referenced by write_DSATTRIB_TRANSPORT_PROPERTIES_init(), write_stream_codec(), write_stream_data(), and write_sync().
static void finish_chunk_noindex | ( | AVFormatContext * | s | ) | [static] |
static int finish_file | ( | AVFormatContext * | s, | |
enum WtvFileIndex | index, | |||
int64_t | start_pos | |||
) | [static] |
Pad the remainder of a file Write out fat table.
Definition at line 605 of file wtvenc.c.
Referenced by write_trailer().
static const ff_asf_guid* get_codec_guid | ( | enum CodecID | id, | |
const AVCodecGuid * | av_guid | |||
) | [static] |
static void write_chunk_header | ( | AVFormatContext * | s, | |
const ff_asf_guid * | guid, | |||
int | length, | |||
int | stream_id | |||
) | [static] |
Write chunk header.
If header chunk (0x80000000 set) then add to list of header chunks
Definition at line 129 of file wtvenc.c.
Referenced by write_chunk_header2(), write_packet(), write_sync(), and write_timestamp().
static void write_chunk_header2 | ( | AVFormatContext * | s, | |
const ff_asf_guid * | guid, | |||
int | stream_id | |||
) | [static] |
Definition at line 151 of file wtvenc.c.
Referenced by write_DSATTRIB_TRANSPORT_PROPERTIES_init(), write_index(), write_stream_codec(), and write_stream_data().
static void write_DSATTRIB_TRANSPORT_PROPERTIES_init | ( | AVFormatContext * | s, | |
int | stream_index | |||
) | [static] |
static void write_fat | ( | AVIOContext * | pb, | |
int | start_sector, | |||
int | nb_sectors, | |||
int | shift | |||
) | [static] |
static int write_fat_sector | ( | AVFormatContext * | s, | |
int64_t | start_pos, | |||
int | nb_sectors, | |||
int | sector_bits, | |||
int | depth | |||
) | [static] |
static int write_header | ( | AVFormatContext * | s | ) | [static] |
static void write_index | ( | AVFormatContext * | s | ) | [static] |
Definition at line 176 of file wtvenc.c.
Referenced by ffm_is_avail_data(), finish_chunk(), and write_header().
static int write_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int write_pad | ( | AVIOContext * | pb, | |
int | size | |||
) | [static] |
Definition at line 109 of file wtvenc.c.
Referenced by finish_chunk_noindex(), finish_file(), write_fat(), write_header(), write_packet(), write_root_table(), write_stream_codec(), write_stream_codec_info(), write_stream_data(), write_sync(), write_table0_header_envents(), write_table0_header_legacy_attrib(), write_table0_header_time(), and write_timestamp().
static int write_root_table | ( | AVFormatContext * | s, | |
int64_t | sector_pos | |||
) | [static] |
static int write_stream_codec | ( | AVFormatContext * | s, | |
AVStream * | st | |||
) | [static] |
static int write_stream_codec_info | ( | AVFormatContext * | s, | |
AVStream * | st | |||
) | [static] |
Definition at line 206 of file wtvenc.c.
Referenced by write_stream_codec(), and write_stream_data().
static int write_stream_data | ( | AVFormatContext * | s, | |
AVStream * | st, | |||
int | flag | |||
) | [static] |
static void write_sync | ( | AVFormatContext * | s | ) | [static] |
static int write_table0_header_envents | ( | AVIOContext * | pb | ) | [static] |
static int write_table0_header_legacy_attrib | ( | AVIOContext * | pb | ) | [static] |
static int write_table0_header_time | ( | AVIOContext * | pb | ) | [static] |
static void write_table_entries_attrib | ( | AVFormatContext * | s | ) | [static] |
static void write_table_entries_events | ( | AVFormatContext * | s | ) | [static] |
static void write_table_redirector_legacy_attrib | ( | AVFormatContext * | s | ) | [static] |
static void write_tag | ( | AVIOContext * | pb, | |
const char * | key, | |||
const char * | value | |||
) | [static] |
static void write_timestamp | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int write_trailer | ( | AVFormatContext * | s | ) | [static] |
Initial value:
{ .name = "wtv", .long_name = NULL_IF_CONFIG_SMALL("Windows Television (WTV)"), .extensions = "wtv", .priv_data_size = sizeof(WtvContext), .audio_codec = CODEC_ID_AC3, .video_codec = CODEC_ID_MPEG2VIDEO, .write_header = write_header, .write_packet = write_packet, .write_trailer = write_trailer, .codec_tag = (const AVCodecTag* const []){ ff_codec_bmp_tags, ff_codec_wav_tags, 0 }, }
const ff_asf_guid index_guid [static] |
Initial value:
{0x96,0xc3,0xd2,0xc2,0x7e,0x9a,0xda,0x11,0x8b,0xf7,0x00,0x07,0xe9,0x5e,0xad,0x8d}
Definition at line 59 of file wtvenc.c.
Referenced by write_chunk_header(), and write_index().
const uint8_t legacy_attrib[] [static] |
const ff_asf_guid stream1_guid [static] |
Initial value:
{0xA1,0xC3,0xD2,0xC2,0x7E,0x9A,0xDA,0x11,0x8B,0xF7,0x00,0x07,0xE9,0x5E,0xAD,0x8D}
Definition at line 55 of file wtvenc.c.
Referenced by write_stream_codec().
const ff_asf_guid sub_wtv_guid [static] |
Initial value:
{0x8C,0xC3,0xD2,0xC2,0x7E,0x9A,0xDA,0x11,0x8B,0xF7,0x00,0x07,0xE9,0x5E,0xAD,0x8D}
Definition at line 53 of file wtvenc.c.
Referenced by write_header().
const ff_asf_guid sync_guid [static] |
Initial value:
{0x97,0xC3,0xD2,0xC2,0x7E,0x9A,0xDA,0x11,0x8B,0xF7,0x00,0x07,0xE9,0x5E,0xAD,0x8D}
Definition at line 57 of file wtvenc.c.
Referenced by write_sync().
const uint8_t table_0_header_legacy_attrib[] [static] |
const uint8_t table_0_header_time[] [static] |
const uint8_t table_0_redirector_legacy_attrib[] [static] |
const uint8_t timeline_table_0_header_events[] [static] |
const WTVRootEntryTable wtv_root_entry_table[] [static] |
Initial value:
{ { timeline_table_0_header_events, sizeof(timeline_table_0_header_events), write_table0_header_envents}, { ff_timeline_table_0_entries_Events_le16, sizeof(ff_timeline_table_0_entries_Events_le16), NULL}, { ff_timeline_le16, sizeof(ff_timeline_le16), NULL}, { table_0_header_legacy_attrib, sizeof(table_0_header_legacy_attrib), write_table0_header_legacy_attrib}, { ff_table_0_entries_legacy_attrib_le16, sizeof(ff_table_0_entries_legacy_attrib_le16), NULL}, { table_0_redirector_legacy_attrib, sizeof(table_0_redirector_legacy_attrib), NULL}, { table_0_header_time, sizeof(table_0_header_time), write_table0_header_time}, { ff_table_0_entries_time_le16, sizeof(ff_table_0_entries_time_le16), NULL}, }