D:/opendownloadmanager/ODM-1.x/MediaConverter/fifo.c File Reference

Go to the source code of this file.

Functions

int av_fifo_init (AVFifoBuffer *f, int size)
void av_fifo_free (AVFifoBuffer *f)
int av_fifo_size (AVFifoBuffer *f)
int av_fifo_read (AVFifoBuffer *f, uint8_t *buf, int buf_size)
void av_fifo_realloc (AVFifoBuffer *f, unsigned int new_size)
void av_fifo_write (AVFifoBuffer *f, const uint8_t *buf, int size)
int av_fifo_generic_read (AVFifoBuffer *f, int buf_size, void(*func)(void *, void *, int), void *dest)
void av_fifo_drain (AVFifoBuffer *f, int size)


Function Documentation

void av_fifo_drain ( AVFifoBuffer f,
int  size 
)

discard data from the fifo

Definition at line 107 of file fifo.c.

References AVFifoBuffer::buffer, AVFifoBuffer::end, and AVFifoBuffer::rptr.

Referenced by av_fifo_generic_read().

void av_fifo_free ( AVFifoBuffer f  ) 

Definition at line 33 of file fifo.c.

References av_free(), and AVFifoBuffer::buffer.

Referenced by av_encode().

int av_fifo_generic_read ( AVFifoBuffer f,
int  buf_size,
void(*)(void *, void *, int)  func,
void *  dest 
)

get data from the fifo (return -1 if not enough data)

Definition at line 87 of file fifo.c.

References av_fifo_drain(), av_fifo_size(), AVFifoBuffer::end, FFMIN, and AVFifoBuffer::rptr.

Referenced by av_fifo_read().

int av_fifo_init ( AVFifoBuffer f,
int  size 
)

int av_fifo_read ( AVFifoBuffer f,
uint8_t buf,
int  buf_size 
)

Get data from the fifo (returns -1 if not enough data).

Definition at line 49 of file fifo.c.

References av_fifo_generic_read(), and NULL.

Referenced by av_fifo_realloc(), do_audio_out(), and output_packet().

void av_fifo_realloc ( AVFifoBuffer f,
unsigned int  new_size 
)

Resizes a FIFO.

Definition at line 57 of file fifo.c.

References av_fifo_init(), av_fifo_read(), av_fifo_size(), av_free(), AVFifoBuffer::buffer, AVFifoBuffer::end, and AVFifoBuffer::wptr.

int av_fifo_size ( AVFifoBuffer f  ) 

void av_fifo_write ( AVFifoBuffer f,
const uint8_t buf,
int  size 
)

Definition at line 72 of file fifo.c.

References AVFifoBuffer::buffer, AVFifoBuffer::end, FFMIN, and AVFifoBuffer::wptr.

Referenced by do_audio_out().


Generated on Sun May 25 00:20:14 2008 by  doxygen 1.5.6