FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/dict.h"
#include "libavutil/mathematics.h"
#include "libavutil/parseutils.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "avlanguage.h"
#include "avio_internal.h"
#include "internal.h"
#include "riff.h"
#include "asf.h"
Go to the source code of this file.
Data Structures | |
struct | ASFPayload |
struct | ASFStream |
struct | ASFContext |
Functions | |
static void | put_str16 (AVIOContext *s, const char *tag) |
static int64_t | put_header (AVIOContext *pb, const ff_asf_guid *g) |
static void | end_header (AVIOContext *pb, int64_t pos) |
static void | put_chunk (AVFormatContext *s, int type, int payload_length, int flags) |
static int64_t | unix_to_file_time (int64_t ti) |
static int32_t | get_send_time (ASFContext *asf, int64_t pres_time, uint64_t *offset) |
static int | asf_write_markers (AVFormatContext *s) |
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 sendtime, unsigned duration, int nb_payloads, int padsize) |
static void | flush_packet (AVFormatContext *s) |
static void | put_payload_header (AVFormatContext *s, ASFStream *stream, int64_t 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, int64_t timestamp, const uint8_t *buf, int m_obj_size, int flags) |
static int | update_index (AVFormatContext *s, int start_sec, uint32_t packet_number, uint16_t packet_count, uint64_t packet_offset) |
static int | asf_write_packet (AVFormatContext *s, AVPacket *pkt) |
static int | asf_write_index (AVFormatContext *s, const ASFIndex *index, uint16_t max, uint32_t count) |
static int | asf_write_trailer (AVFormatContext *s) |
Variables | |
static const AVCodecTag | codec_asf_bmp_tags [] |
static const AVOption | asf_options [] |
#define ASF_INDEXED_INTERVAL 10000000 |
Definition at line 34 of file asfenc.c.
Referenced by asf_write_index(), and asf_write_packet().
#define ASF_INDEX_BLOCK (1<<9) |
Definition at line 35 of file asfenc.c.
Referenced by asf_write_header(), and update_index().
#define ASF_PAYLOADS_PER_PACKET 63 |
Definition at line 36 of file asfenc.c.
Referenced by put_frame().
#define ASF_PACKET_ERROR_CORRECTION_DATA_SIZE 0x2 |
Definition at line 38 of file asfenc.c.
Referenced by put_payload_parsing_info().
#define ASF_PACKET_ERROR_CORRECTION_FLAGS |
Definition at line 39 of file asfenc.c.
Referenced by put_payload_parsing_info().
#define ASF_PPI_PROPERTY_FLAGS |
Definition at line 49 of file asfenc.c.
Referenced by put_payload_parsing_info().
#define ASF_PPI_LENGTH_TYPE_FLAGS 0 |
Definition at line 55 of file asfenc.c.
Referenced by put_payload_parsing_info().
#define ASF_PAYLOAD_FLAGS ASF_PL_FLAG_PAYLOAD_LENGTH_FIELD_IS_WORD |
Definition at line 57 of file asfenc.c.
Referenced by put_payload_parsing_info().
#define PACKET_HEADER_MIN_SIZE |
Definition at line 147 of file asfenc.c.
Referenced by put_frame(), and put_payload_parsing_info().
#define ASF_PAYLOAD_REPLICATED_DATA_LENGTH 0x08 |
Definition at line 159 of file asfenc.c.
Referenced by put_payload_header().
#define PAYLOAD_HEADER_SIZE_SINGLE_PAYLOAD |
Definition at line 161 of file asfenc.c.
Referenced by put_frame().
#define PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS |
Definition at line 168 of file asfenc.c.
Referenced by put_frame().
#define SINGLE_PAYLOAD_HEADERS |
Definition at line 176 of file asfenc.c.
Referenced by put_frame().
#define MULTI_PAYLOAD_HEADERS |
Definition at line 180 of file asfenc.c.
Referenced by put_frame().
#define DATA_HEADER_SIZE 50 |
Definition at line 185 of file asfenc.c.
Referenced by asf_write_header(), asf_write_header1(), and get_send_time().
#define PREROLL_TIME 3100 |
Definition at line 262 of file asfenc.c.
Referenced by asf_write_header1(), asf_write_markers(), asf_write_packet(), and put_frame().
|
static |
Definition at line 264 of file asfenc.c.
Referenced by asf_write_header1().
|
static |
Definition at line 279 of file asfenc.c.
Referenced by asf_write_header1(), and asf_write_markers().
|
static |
Definition at line 290 of file asfenc.c.
Referenced by asf_write_header1(), and asf_write_markers().
|
static |
Definition at line 301 of file asfenc.c.
Referenced by asf_write_header1(), asf_write_trailer(), and flush_packet().
|
static |
Definition at line 318 of file asfenc.c.
Referenced by asf_write_header1().
|
static |
Definition at line 327 of file asfenc.c.
Referenced by asf_write_markers().
|
static |
Definition at line 342 of file asfenc.c.
Referenced by asf_write_header1().
|
static |
Definition at line 386 of file asfenc.c.
Referenced by asf_write_header(), and asf_write_trailer().
|
static |
Definition at line 754 of file asfenc.c.
Referenced by asf_write_stream_header().
|
static |
|
static |
Definition at line 805 of file asfenc.c.
Referenced by flush_packet().
|
static |
Definition at line 853 of file asfenc.c.
Referenced by asf_write_trailer(), and put_frame().
|
static |
Definition at line 884 of file asfenc.c.
Referenced by put_frame().
|
static |
Definition at line 915 of file asfenc.c.
Referenced by asf_write_packet().
|
static |
Definition at line 986 of file asfenc.c.
Referenced by asf_write_packet(), and asf_write_trailer().
|
static |
|
static |
Definition at line 1076 of file asfenc.c.
Referenced by asf_write_trailer().
|
static |
|
static |
|
static |