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
12 12
13API changes, most recent first:13API changes, most recent first:
14 14
152010-04-01 - r22753 - lavc 52.66.0
16 Add avcodec_get_edge_width()
17
152010-03-31 - r22750 - lavc 52.65.0182010-03-31 - r22750 - lavc 52.65.0
16 Add avcodec_copy_context().19 Add avcodec_copy_context().
17 20
libavcodec/avcodec.h+10−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
30#include "libavutil/avutil.h"30#include "libavutil/avutil.h"
31 31
32#define LIBAVCODEC_VERSION_MAJOR 5232#define LIBAVCODEC_VERSION_MAJOR 52
33#define LIBAVCODEC_VERSION_MINOR 6533#define LIBAVCODEC_VERSION_MINOR 66
34#define LIBAVCODEC_VERSION_MICRO 034#define LIBAVCODEC_VERSION_MICRO 0
35 35
36#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \36#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -3290,6 +3290,15 @@ AVFrame *avcodec_alloc_frame(void); · 3253 unmodified lines
3290int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic);3290int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic);
3291void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic);3291void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic);
3292int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic);3292int 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 */
3301unsigned avcodec_get_edge_width(void);
3293/**3302/**
3294 * Modifies width and height values so that they will result in a memory3303 * Modifies width and height values so that they will result in a memory
3295 * buffer that is acceptable for the codec if you do not use any horizontal3304 * 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
101}101}
102#endif102#endif
103 103
104unsigned avcodec_get_edge_width(void)
105{
106 return EDGE_WIDTH;
107}
108
104void avcodec_set_dimensions(AVCodecContext *s, int width, int height){109void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
105 s->coded_width = width;110 s->coded_width = width;
106 s->coded_height= height;111 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