Mercurial > libavcodec.hg
comparison avcodec.h @ 12384:e1ef713061ce libavcodec
Add av_picture_data_copy() and reimplement av_picture_copy() as a
wrapper of it.
The new function is more generic, and does not depend on the
definition of the AVPicture struct.
Patch by S.N. Hemanth Meenakshisundaram s + "meenakshisundaram".substr(0, 7) + "@ucsd.edu".
author | stefano |
---|---|
date | Wed, 11 Aug 2010 14:18:52 +0000 |
parents | 5dffb531b1cc |
children | b4b2f1006d9d |
comparison
equal
deleted
inserted
replaced
12383:6a59d8a22c57 | 12384:e1ef713061ce |
---|---|
28 | 28 |
29 #include <errno.h> | 29 #include <errno.h> |
30 #include "libavutil/avutil.h" | 30 #include "libavutil/avutil.h" |
31 | 31 |
32 #define LIBAVCODEC_VERSION_MAJOR 52 | 32 #define LIBAVCODEC_VERSION_MAJOR 52 |
33 #define LIBAVCODEC_VERSION_MINOR 84 | 33 #define LIBAVCODEC_VERSION_MINOR 85 |
34 #define LIBAVCODEC_VERSION_MICRO 3 | 34 #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, \ |
37 LIBAVCODEC_VERSION_MINOR, \ | 37 LIBAVCODEC_VERSION_MINOR, \ |
38 LIBAVCODEC_VERSION_MICRO) | 38 LIBAVCODEC_VERSION_MICRO) |
39 #define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_MAJOR, \ | 39 #define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_MAJOR, \ |
3935 * *size 0 if an error occurred. | 3935 * *size 0 if an error occurred. |
3936 */ | 3936 */ |
3937 void av_fast_malloc(void *ptr, unsigned int *size, unsigned int min_size); | 3937 void av_fast_malloc(void *ptr, unsigned int *size, unsigned int min_size); |
3938 | 3938 |
3939 /** | 3939 /** |
3940 * Copy image 'src' to 'dst'. | 3940 * Copy image data in src_data to dst_data. |
3941 * | |
3942 * @param dst_linesize linesizes for the image in dst_data | |
3943 * @param src_linesize linesizes for the image in src_data | |
3944 */ | |
3945 void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4], | |
3946 uint8_t *src_data[4], int src_linesize[4], | |
3947 enum PixelFormat pix_fmt, int width, int height); | |
3948 | |
3949 /** | |
3950 * Copy image src to dst. Wraps av_picture_data_copy() above. | |
3941 */ | 3951 */ |
3942 void av_picture_copy(AVPicture *dst, const AVPicture *src, | 3952 void av_picture_copy(AVPicture *dst, const AVPicture *src, |
3943 enum PixelFormat pix_fmt, int width, int height); | 3953 enum PixelFormat pix_fmt, int width, int height); |
3944 | 3954 |
3945 /** | 3955 /** |