ffm.c File Reference

Go to the source code of this file.

Classes

struct  FFMStream
struct  FFMContext

Enumerations

enum  { READ_HEADER, READ_DATA }

Functions

static int64_t get_pts (AVFormatContext *s, offset_t pos)
static void flush_packet (AVFormatContext *s)
static void ffm_write_data (AVFormatContext *s, const uint8_t *buf, int size, int64_t pts, int first)
static int ffm_write_header (AVFormatContext *s)
static int ffm_write_packet (AVFormatContext *s, AVPacket *pkt)
static int ffm_write_trailer (AVFormatContext *s)
static int ffm_is_avail_data (AVFormatContext *s, int size)
static int ffm_read_data (AVFormatContext *s, uint8_t *buf, int size, int first)
static void adjust_write_index (AVFormatContext *s)
static int ffm_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int ffm_read_packet (AVFormatContext *s, AVPacket *pkt)
static void ffm_seek1 (AVFormatContext *s, offset_t pos1)
static int ffm_seek (AVFormatContext *s, int stream_index, int64_t wanted_pts, int flags)
offset_t ffm_read_write_index (int fd)
void ffm_write_write_index (int fd, offset_t pos)
void ffm_set_write_index (AVFormatContext *s, offset_t pos, offset_t file_size)
static int ffm_read_close (AVFormatContext *s)
static int ffm_probe (AVProbeData *p)

Variables

int ffm_nopts = 0
AVInputFormat ffm_demuxer
AVOutputFormat ffm_muxer


Enumeration Type Documentation

anonymous enum

Enumerator:
READ_HEADER 
READ_DATA 

Definition at line 36 of file ffm.c.


Function Documentation

static int64_t get_pts ( AVFormatContext s,
offset_t  pos 
) [static]

Definition at line 653 of file ffm.c.

Referenced by adjust_write_index(), ffm_seek(), mpegps_read_pes_header(), and mpegts_push_data().

static void flush_packet ( AVFormatContext s  )  [static]

Definition at line 63 of file ffm.c.

static void ffm_write_data ( AVFormatContext s,
const uint8_t *  buf,
int  size,
int64_t  pts,
int  first 
) [static]

Definition at line 94 of file ffm.c.

Referenced by ffm_write_packet().

static int ffm_write_header ( AVFormatContext s  )  [static]

Definition at line 126 of file ffm.c.

static int ffm_write_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 244 of file ffm.c.

static int ffm_write_trailer ( AVFormatContext s  )  [static]

Definition at line 279 of file ffm.c.

static int ffm_is_avail_data ( AVFormatContext s,
int  size 
) [static]

Definition at line 305 of file ffm.c.

Referenced by ffm_read_packet().

static int ffm_read_data ( AVFormatContext s,
uint8_t *  buf,
int  size,
int  first 
) [static]

Definition at line 334 of file ffm.c.

Referenced by ffm_read_packet().

static void adjust_write_index ( AVFormatContext s  )  [static]

Definition at line 393 of file ffm.c.

Referenced by ffm_read_header().

static int ffm_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 450 of file ffm.c.

static int ffm_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 575 of file ffm.c.

static void ffm_seek1 ( AVFormatContext s,
offset_t  pos1 
) [static]

Definition at line 638 of file ffm.c.

Referenced by ffm_seek(), and get_pts().

static int ffm_seek ( AVFormatContext s,
int  stream_index,
int64_t  wanted_pts,
int  flags 
) [static]

Definition at line 670 of file ffm.c.

offset_t ffm_read_write_index ( int  fd  ) 

Definition at line 714 of file ffm.c.

void ffm_write_write_index ( int  fd,
offset_t  pos 
)

Definition at line 723 of file ffm.c.

void ffm_set_write_index ( AVFormatContext s,
offset_t  pos,
offset_t  file_size 
)

Definition at line 734 of file ffm.c.

static int ffm_read_close ( AVFormatContext s  )  [static]

Definition at line 742 of file ffm.c.

static int ffm_probe ( AVProbeData p  )  [static]

Definition at line 754 of file ffm.c.


Variable Documentation

int ffm_nopts = 0

Definition at line 60 of file ffm.c.

Referenced by ffm_is_avail_data(), and ffm_write_header().

Initial value:

Definition at line 764 of file ffm.c.

Initial value:

Definition at line 776 of file ffm.c.


Generated on Sat Dec 18 05:15:51 2010 for MythTV by  doxygen 1.5.5