comparison avcodec.h @ 1630:586b5c08863c libavcodec

- Add reget_buffer() function to AVCodecContext - Add default reget_buffer implementation in libavcodec/utils.c - Remove AVCodecContext.cr_available, no longer needed - Remove CODEC_CAP_CR, no longer used - Add img_copy() prototype to avcodec.h (function from imgconvert.c) - Rename img_copy() to jpeg_img_copy() in libavformat/jpeg.c to avoid conflict - Updated msrle, msvideo1, rpza, smc to use reget_buffer
author rtognimp
date Wed, 26 Nov 2003 20:57:15 +0000
parents 46dee16488ae
children 7799582dc9b8
comparison
equal deleted inserted replaced
1629:74685a0ec851 1630:586b5c08863c
15 #include "rational.h" 15 #include "rational.h"
16 #include <sys/types.h> /* size_t */ 16 #include <sys/types.h> /* size_t */
17 17
18 #define FFMPEG_VERSION_INT 0x000408 18 #define FFMPEG_VERSION_INT 0x000408
19 #define FFMPEG_VERSION "0.4.8" 19 #define FFMPEG_VERSION "0.4.8"
20 #define LIBAVCODEC_BUILD 4692 20 #define LIBAVCODEC_BUILD 4693
21 21
22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT 22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT
23 #define LIBAVCODEC_VERSION FFMPEG_VERSION 23 #define LIBAVCODEC_VERSION FFMPEG_VERSION
24 24
25 #define AV_STRINGIFY(s) AV_TOSTRING(s) 25 #define AV_STRINGIFY(s) AV_TOSTRING(s)
278 #define CODEC_CAP_DR1 0x0002 278 #define CODEC_CAP_DR1 0x0002
279 /* if 'parse_only' field is true, then avcodec_parse_frame() can be 279 /* if 'parse_only' field is true, then avcodec_parse_frame() can be
280 used */ 280 used */
281 #define CODEC_CAP_PARSE_ONLY 0x0004 281 #define CODEC_CAP_PARSE_ONLY 0x0004
282 #define CODEC_CAP_TRUNCATED 0x0008 282 #define CODEC_CAP_TRUNCATED 0x0008
283 /*
284 * Codec can use conditional replenishment if available.
285 */
286 #define CODEC_CAP_CR 0x0010
287 283
288 /** 284 /**
289 * Pan Scan area. 285 * Pan Scan area.
290 * this specifies the area which should be displayed. Note there may be multiple such areas for one frame 286 * this specifies the area which should be displayed. Note there may be multiple such areas for one frame
291 */ 287 */
1387 * - decoding: unused 1383 * - decoding: unused
1388 */ 1384 */
1389 int noise_reduction; 1385 int noise_reduction;
1390 1386
1391 /** 1387 /**
1392 * Conditional replenishment support 1388 * called at the beginning of a frame to get cr buffer for it.
1389 * buffer type (size, hints) must be the same. lavc won't check it.
1390 * lavc will pass previous buffer in pic, function should return
1391 * same buffer or new buffer with old frame "painted" into it.
1392 * if pic.data[0] == NULL must behave like get_buffer().
1393 * - encoding: unused 1393 * - encoding: unused
1394 * - decoding: set by user, if 1 user can allocate reusable buffers 1394 * - decoding: set by lavc, user can override
1395 */ 1395 */
1396 int cr_available; 1396 int (*reget_buffer)(struct AVCodecContext *c, AVFrame *pic);
1397 1397
1398 } AVCodecContext; 1398 } AVCodecContext;
1399 1399
1400 1400
1401 /** 1401 /**
1905 #define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s) 1905 #define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s)
1906 1906
1907 /* add by bero : in adx.c */ 1907 /* add by bero : in adx.c */
1908 int is_adx(const unsigned char *buf,size_t bufsize); 1908 int is_adx(const unsigned char *buf,size_t bufsize);
1909 1909
1910 void img_copy(AVPicture *dst, const AVPicture *src,
1911 int pix_fmt, int width, int height);
1912
1910 /* av_log API */ 1913 /* av_log API */
1911 1914
1912 #include <stdarg.h> 1915 #include <stdarg.h>
1913 1916
1914 #define AV_LOG_ERROR 0 1917 #define AV_LOG_ERROR 0