Mercurial > libavutil.hg
comparison fifo.h @ 565:a0dab9157d6a libavutil
Deprecate av_fifo_realloc(). av_fifo_realloc2() should be used instead.
author | stefano |
---|---|
date | Tue, 19 Aug 2008 22:15:05 +0000 |
parents | a1ac1cb9a91b |
children | bd4052d9050c |
comparison
equal
deleted
inserted
replaced
564:a1ac1cb9a91b | 565:a0dab9157d6a |
---|---|
91 * If func is NULL, src is interpreted as a simple byte array for source data. | 91 * If func is NULL, src is interpreted as a simple byte array for source data. |
92 * @return the number of bytes written to the fifo. | 92 * @return the number of bytes written to the fifo. |
93 */ | 93 */ |
94 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)); | 94 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)); |
95 | 95 |
96 #if LIBAVUTIL_VERSION_MAJOR < 50 | |
96 /** | 97 /** |
97 * Resizes an AVFifoBuffer. | 98 * Resizes an AVFifoBuffer. |
98 * @param *f AVFifoBuffer to resize | 99 * @param *f AVFifoBuffer to resize |
99 * @param size new AVFifoBuffer size in bytes | 100 * @param size new AVFifoBuffer size in bytes |
100 * @see av_fifo_realloc2() | 101 * @see av_fifo_realloc2() |
101 */ | 102 */ |
102 void av_fifo_realloc(AVFifoBuffer *f, unsigned int size); | 103 attribute_deprecated void av_fifo_realloc(AVFifoBuffer *f, unsigned int size); |
104 #endif | |
103 | 105 |
104 /** | 106 /** |
105 * Resizes an AVFifoBuffer. | 107 * Resizes an AVFifoBuffer. |
106 * @param *f AVFifoBuffer to resize | 108 * @param *f AVFifoBuffer to resize |
107 * @param size new AVFifoBuffer size in bytes | 109 * @param size new AVFifoBuffer size in bytes |