#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h"
#include "avformat.h"
#include "internal.h"
#include "ffm.h"
#include <unistd.h>
Go to the source code of this file.
Functions | |
int64_t | ffm_read_write_index (int fd) |
int | ffm_write_write_index (int fd, int64_t pos) |
void | ffm_set_write_index (AVFormatContext *s, int64_t pos, int64_t file_size) |
static int | ffm_is_avail_data (AVFormatContext *s, int size) |
static int | ffm_resync (AVFormatContext *s, int state) |
static int | ffm_read_data (AVFormatContext *s, uint8_t *buf, int size, int header) |
static int64_t | ffm_seek1 (AVFormatContext *s, int64_t pos1) |
static int64_t | get_dts (AVFormatContext *s, int64_t pos) |
static void | adjust_write_index (AVFormatContext *s) |
static int | ffm_close (AVFormatContext *s) |
static int | ffm_read_header (AVFormatContext *s, AVFormatParameters *ap) |
static int | ffm_read_packet (AVFormatContext *s, AVPacket *pkt) |
static int | ffm_seek (AVFormatContext *s, int stream_index, int64_t wanted_pts, int flags) |
static int | ffm_probe (AVProbeData *p) |
Variables | |
AVInputFormat | ff_ffm_demuxer |
static void adjust_write_index | ( | AVFormatContext * | s | ) | [static] |
Definition at line 199 of file ffmdec.c.
Referenced by ffm_read_header().
static int ffm_close | ( | AVFormatContext * | s | ) | [static] |
Definition at line 256 of file ffmdec.c.
Referenced by ffm_read_header().
static int ffm_is_avail_data | ( | AVFormatContext * | s, | |
int | size | |||
) | [static] |
Definition at line 61 of file ffmdec.c.
Referenced by ffm_read_packet().
static int ffm_probe | ( | AVProbeData * | p | ) | [static] |
static int ffm_read_data | ( | AVFormatContext * | s, | |
uint8_t * | buf, | |||
int | size, | |||
int | header | |||
) | [static] |
Definition at line 106 of file ffmdec.c.
Referenced by ffm_read_packet().
static int ffm_read_header | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) | [static] |
static int ffm_read_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
int64_t ffm_read_write_index | ( | int | fd | ) |
Definition at line 30 of file ffmdec.c.
Referenced by build_feed_streams(), and http_start_receive_data().
static int ffm_resync | ( | AVFormatContext * | s, | |
int | state | |||
) | [static] |
Definition at line 92 of file ffmdec.c.
Referenced by ffm_read_data().
static int ffm_seek | ( | AVFormatContext * | s, | |
int | stream_index, | |||
int64_t | wanted_pts, | |||
int | flags | |||
) | [static] |
static int64_t ffm_seek1 | ( | AVFormatContext * | s, | |
int64_t | pos1 | |||
) | [static] |
Definition at line 175 of file ffmdec.c.
Referenced by ffm_seek(), and get_dts().
void ffm_set_write_index | ( | AVFormatContext * | s, | |
int64_t | pos, | |||
int64_t | file_size | |||
) |
Definition at line 53 of file ffmdec.c.
Referenced by http_prepare_data().
int ffm_write_write_index | ( | int | fd, | |
int64_t | pos | |||
) |
Definition at line 40 of file ffmdec.c.
Referenced by http_receive_data(), and http_start_receive_data().
static int64_t get_dts | ( | AVFormatContext * | s, | |
int64_t | pos | |||
) | [static] |
Definition at line 187 of file ffmdec.c.
Referenced by adjust_write_index(), and ffm_seek().
{ .name = "ffm", .long_name = NULL_IF_CONFIG_SMALL("FFM (FFserver live feed) format"), .priv_data_size = sizeof(FFMContext), .read_probe = ffm_probe, .read_header = ffm_read_header, .read_packet = ffm_read_packet, .read_close = ffm_close, .read_seek = ffm_seek, }