History

Add function to export EDGE_WIDTH from libavcodec.

Originally committed as revision 22753 to svn://svn.ffmpeg.org/ffmpeg/trunk

Bobby Bingham committed 16 years ago

Commit 0fb49b51 parent c846a983 files · +18 −1Browse files

Unified · Split

3 files
  1. doc/APIchanges +3 −0
  2. libavcodec/avcodec.h +10 −1
  3. libavcodec/utils.c +5 −0
doc/APIchanges+3−0
@@ -12,6 +12,9 @@ libavutil: 2009-03-08 · 11 unmodified lines
1212
1313 API changes, most recent first:
1414
15+2010-04-01 - r22753 - lavc 52.66.0
16+ Add avcodec_get_edge_width()
17+
1518 2010-03-31 - r22750 - lavc 52.65.0
1619 Add avcodec_copy_context().
1720
libavcodec/avcodec.h+10−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030 #include "libavutil/avutil.h"
3131
3232 #define LIBAVCODEC_VERSION_MAJOR 52
33−#define LIBAVCODEC_VERSION_MINOR 65
33+#define LIBAVCODEC_VERSION_MINOR 66
3434 #define LIBAVCODEC_VERSION_MICRO 0
3535
3636 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -3290,6 +3290,15 @@ AVFrame *avcodec_alloc_frame(void); · 3253 unmodified lines
32903290 int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic);
32913291 void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic);
32923292 int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic);
3293+
3294+/**
3295+ * Returns the amount of padding in pixels which the get_buffer callback must
3296+ * provide around the edge of the image for codecs which do not have the
3297+ * CODEC_FLAG_EMU_EDGE flag.
3298+ *
3299+ * @return Required padding in pixels.
3300+ */
3301+unsigned avcodec_get_edge_width(void);
32933302 /**
32943303 * Modifies width and height values so that they will result in a memory
32953304 * buffer that is acceptable for the codec if you do not use any horizontal
libavcodec/utils.c+5−0
@@ -101,6 +101,11 @@ void register_avcodec(AVCodec *codec) · 100 unmodified lines
101101 }
102102 #endif
103103
104+unsigned avcodec_get_edge_width(void)
105+{
106+ return EDGE_WIDTH;
107+}
108+
104109 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
105110 s->coded_width = width;
106111 s->coded_height= height;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t