[SCM] libav/experimental: Add function to export EDGE_WIDTH from libavcodec.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:05:33 UTC 2013
The following commit has been merged in the experimental branch:
commit 0fb49b597be60efb84bb39c09576baecc1471eeb
Author: Bobby Bingham <uhmmmm at gmail.com>
Date: Thu Apr 1 06:41:16 2010 +0000
Add function to export EDGE_WIDTH from libavcodec.
Originally committed as revision 22753 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/doc/APIchanges b/doc/APIchanges
index 90905a1..4a31c06 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -12,6 +12,9 @@ libavutil: 2009-03-08
API changes, most recent first:
+2010-04-01 - r22753 - lavc 52.66.0
+ Add avcodec_get_edge_width()
+
2010-03-31 - r22750 - lavc 52.65.0
Add avcodec_copy_context().
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 663af54..add4b10 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -30,7 +30,7 @@
#include "libavutil/avutil.h"
#define LIBAVCODEC_VERSION_MAJOR 52
-#define LIBAVCODEC_VERSION_MINOR 65
+#define LIBAVCODEC_VERSION_MINOR 66
#define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -3290,6 +3290,15 @@ AVFrame *avcodec_alloc_frame(void);
int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic);
void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic);
int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic);
+
+/**
+ * Returns the amount of padding in pixels which the get_buffer callback must
+ * provide around the edge of the image for codecs which do not have the
+ * CODEC_FLAG_EMU_EDGE flag.
+ *
+ * @return Required padding in pixels.
+ */
+unsigned avcodec_get_edge_width(void);
/**
* Modifies width and height values so that they will result in a memory
* buffer that is acceptable for the codec if you do not use any horizontal
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 0abf07c..52aa672 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -101,6 +101,11 @@ void register_avcodec(AVCodec *codec)
}
#endif
+unsigned avcodec_get_edge_width(void)
+{
+ return EDGE_WIDTH;
+}
+
void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
s->coded_width = width;
s->coded_height= height;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list