comparison fifo.h @ 688:91216685a7ae libavutil

Add av_fifo_reset function to completely reset fifo state, which makes it easier to reuse the fifo.
author reimar
date Mon, 09 Mar 2009 09:26:32 +0000
parents b084f8cd043f
children 4e9e0c52ed08
comparison
equal deleted inserted replaced
687:bc81990848aa 688:91216685a7ae
44 /** 44 /**
45 * Frees an AVFifoBuffer. 45 * Frees an AVFifoBuffer.
46 * @param *f AVFifoBuffer to free 46 * @param *f AVFifoBuffer to free
47 */ 47 */
48 void av_fifo_free(AVFifoBuffer *f); 48 void av_fifo_free(AVFifoBuffer *f);
49
50 /**
51 * Resets the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied.
52 * @param *f AVFifoBuffer to reset
53 */
54 void av_fifo_reset(AVFifoBuffer *f);
49 55
50 /** 56 /**
51 * Returns the amount of data in bytes in the AVFifoBuffer, that is the 57 * Returns the amount of data in bytes in the AVFifoBuffer, that is the
52 * amount of data you can read from it. 58 * amount of data you can read from it.
53 * @param *f AVFifoBuffer to read from 59 * @param *f AVFifoBuffer to read from