Libav 0.7.1
|
#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/mpeg4audio.h"
#include "avformat.h"
#include "avio_internal.h"
#include "flv.h"
Go to the source code of this file.
Data Structures | |
struct | FLVContext |
Defines | |
#define | KEYFRAMES_TAG "keyframes" |
#define | KEYFRAMES_TIMESTAMP_TAG "times" |
#define | KEYFRAMES_BYTEOFFSET_TAG "filepositions" |
Functions | |
static int | flv_probe (AVProbeData *p) |
static void | flv_set_audio_codec (AVFormatContext *s, AVStream *astream, int flv_codecid) |
static int | flv_set_video_codec (AVFormatContext *s, AVStream *vstream, int flv_codecid) |
static int | amf_get_string (AVIOContext *ioc, char *buffer, int buffsize) |
static int | parse_keyframes_index (AVFormatContext *s, AVIOContext *ioc, AVStream *vstream, int64_t max_pos) |
static int | amf_parse_object (AVFormatContext *s, AVStream *astream, AVStream *vstream, const char *key, int64_t max_pos, int depth) |
static int | flv_read_metabody (AVFormatContext *s, int64_t next_pos) |
static AVStream * | create_stream (AVFormatContext *s, int is_audio) |
static int | flv_read_header (AVFormatContext *s, AVFormatParameters *ap) |
static int | flv_get_extradata (AVFormatContext *s, AVStream *st, int size) |
static int | flv_read_packet (AVFormatContext *s, AVPacket *pkt) |
static int | flv_read_seek (AVFormatContext *s, int stream_index, int64_t ts, int flags) |
Variables | |
AVInputFormat | ff_flv_demuxer |
#define KEYFRAMES_BYTEOFFSET_TAG "filepositions" |
Definition at line 37 of file flvdec.c.
Referenced by parse_keyframes_index().
#define KEYFRAMES_TAG "keyframes" |
Definition at line 35 of file flvdec.c.
Referenced by amf_parse_object().
#define KEYFRAMES_TIMESTAMP_TAG "times" |
Definition at line 36 of file flvdec.c.
Referenced by parse_keyframes_index().
static int amf_get_string | ( | AVIOContext * | ioc, |
char * | buffer, | ||
int | buffsize | ||
) | [static] |
Definition at line 119 of file flvdec.c.
Referenced by amf_parse_object(), flv_read_metabody(), and parse_keyframes_index().
static int amf_parse_object | ( | AVFormatContext * | s, |
AVStream * | astream, | ||
AVStream * | vstream, | ||
const char * | key, | ||
int64_t | max_pos, | ||
int | depth | ||
) | [static] |
Definition at line 204 of file flvdec.c.
Referenced by flv_read_metabody().
static AVStream* create_stream | ( | AVFormatContext * | s, |
int | is_audio | ||
) | [static] |
Definition at line 324 of file flvdec.c.
Referenced by flv_read_header(), and flv_read_packet().
static int flv_get_extradata | ( | AVFormatContext * | s, |
AVStream * | st, | ||
int | size | ||
) | [static] |
Definition at line 369 of file flvdec.c.
Referenced by flv_read_packet().
static int flv_probe | ( | AVProbeData * | p | ) | [static] |
static int flv_read_header | ( | AVFormatContext * | s, |
AVFormatParameters * | ap | ||
) | [static] |
static int flv_read_metabody | ( | AVFormatContext * | s, |
int64_t | next_pos | ||
) | [static] |
Definition at line 294 of file flvdec.c.
Referenced by flv_read_packet().
static int flv_read_packet | ( | AVFormatContext * | s, |
AVPacket * | pkt | ||
) | [static] |
static int flv_read_seek | ( | AVFormatContext * | s, |
int | stream_index, | ||
int64_t | ts, | ||
int | flags | ||
) | [static] |
static void flv_set_audio_codec | ( | AVFormatContext * | s, |
AVStream * | astream, | ||
int | flv_codecid | ||
) | [static] |
Definition at line 54 of file flvdec.c.
Referenced by flv_read_packet().
static int flv_set_video_codec | ( | AVFormatContext * | s, |
AVStream * | vstream, | ||
int | flv_codecid | ||
) | [static] |
Definition at line 92 of file flvdec.c.
Referenced by flv_read_packet().
static int parse_keyframes_index | ( | AVFormatContext * | s, |
AVIOContext * | ioc, | ||
AVStream * | vstream, | ||
int64_t | max_pos | ||
) | [static] |
Definition at line 133 of file flvdec.c.
Referenced by amf_parse_object().
{ "flv", NULL_IF_CONFIG_SMALL("FLV format"), sizeof(FLVContext), flv_probe, flv_read_header, flv_read_packet, .read_seek = flv_read_seek, .extensions = "flv", .value = CODEC_ID_FLV1, }