diff options
author | Drew Hess <dhess@ilm.com> | 2003-10-11 08:18:05 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-10-11 08:18:05 +0000 |
commit | 75917b887b4b7b672c613b0db6cedc92844706fe (patch) | |
tree | fdb28d65a4a02649a66fb93809401b655417f3bc /libavcodec/avcodec.h | |
parent | 86a7e1150222e77478413c68bd3b9412c0c1b14a (diff) | |
download | ffmpeg-75917b887b4b7b672c613b0db6cedc92844706fe.tar.gz |
recommit of
promote avpicture_alloc to public interface patch by (Drew Hess <dhess at ilm dot com>)
Originally committed as revision 2351 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 99cd1d1381..e0904ccf0d 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1524,6 +1524,20 @@ void img_resample(ImgReSampleContext *s, void img_resample_close(ImgReSampleContext *s); +/** + * Allocate memory for a picture. Call avpicture_free to free it. + * + * @param picture the picture to be filled in. + * @param pix_fmt the format of the picture. + * @param width the width of the picture. + * @param height the height of the picture. + * @return 0 if successful, -1 if not. + */ +int avpicture_alloc(AVPicture *picture, int pix_fmt, int width, int height); + +/* Free a picture previously allocated by avpicture_alloc. */ +void avpicture_free(AVPicture *picture); + int avpicture_fill(AVPicture *picture, uint8_t *ptr, int pix_fmt, int width, int height); int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height, |