aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorRoberto Togni <r_togni@tiscali.it>2003-11-26 20:57:15 +0000
committerRoberto Togni <r_togni@tiscali.it>2003-11-26 20:57:15 +0000
commite1c2a5a0a8e9f8a4e68a33f31d4a917771bbc1bb (patch)
tree55a2328310433ac4589cf42db5a3aa57a5880101 /libavcodec/avcodec.h
parent9bc8b38660a18e1aa2717d3724bd9c03da3fe6fc (diff)
downloadffmpeg-e1c2a5a0a8e9f8a4e68a33f31d4a917771bbc1bb.tar.gz
- 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 Originally committed as revision 2531 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 0e5d1cd0f6..d5eacab310 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -17,7 +17,7 @@ extern "C" {
#define FFMPEG_VERSION_INT 0x000408
#define FFMPEG_VERSION "0.4.8"
-#define LIBAVCODEC_BUILD 4692
+#define LIBAVCODEC_BUILD 4693
#define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT
#define LIBAVCODEC_VERSION FFMPEG_VERSION
@@ -280,10 +280,6 @@ static const __attribute__((unused)) int Motion_Est_QTab[] =
used */
#define CODEC_CAP_PARSE_ONLY 0x0004
#define CODEC_CAP_TRUNCATED 0x0008
-/*
- * Codec can use conditional replenishment if available.
- */
-#define CODEC_CAP_CR 0x0010
/**
* Pan Scan area.
@@ -1389,11 +1385,15 @@ typedef struct AVCodecContext {
int noise_reduction;
/**
- * Conditional replenishment support
+ * called at the beginning of a frame to get cr buffer for it.
+ * buffer type (size, hints) must be the same. lavc won't check it.
+ * lavc will pass previous buffer in pic, function should return
+ * same buffer or new buffer with old frame "painted" into it.
+ * if pic.data[0] == NULL must behave like get_buffer().
* - encoding: unused
- * - decoding: set by user, if 1 user can allocate reusable buffers
+ * - decoding: set by lavc, user can override
*/
- int cr_available;
+ int (*reget_buffer)(struct AVCodecContext *c, AVFrame *pic);
} AVCodecContext;
@@ -1907,6 +1907,9 @@ void *__av_mallocz_static(void** location, unsigned int size);
/* add by bero : in adx.c */
int is_adx(const unsigned char *buf,size_t bufsize);
+void img_copy(AVPicture *dst, const AVPicture *src,
+ int pix_fmt, int width, int height);
+
/* av_log API */
#include <stdarg.h>