Mercurial > mplayer.hg
comparison libswscale/swscale.h @ 31235:661755507236
deprecate palette8topacked32 in favor of public API functions sws_convertPalette8ToPacked32 and -24
additionallym deprecate palette8torgb16 and its bgr variant without
replacement. These functions are not meant to be used by applications.
Discussed at: http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/109340
author | siretart |
---|---|
date | Tue, 01 Jun 2010 19:35:16 +0000 |
parents | 5a55c39743d1 |
children | 8e44769b4b4b |
comparison
equal
deleted
inserted
replaced
31234:ef9fdc663e72 | 31235:661755507236 |
---|---|
28 */ | 28 */ |
29 | 29 |
30 #include "libavutil/avutil.h" | 30 #include "libavutil/avutil.h" |
31 | 31 |
32 #define LIBSWSCALE_VERSION_MAJOR 0 | 32 #define LIBSWSCALE_VERSION_MAJOR 0 |
33 #define LIBSWSCALE_VERSION_MINOR 10 | 33 #define LIBSWSCALE_VERSION_MINOR 11 |
34 #define LIBSWSCALE_VERSION_MICRO 0 | 34 #define LIBSWSCALE_VERSION_MICRO 0 |
35 | 35 |
36 #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \ | 36 #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \ |
37 LIBSWSCALE_VERSION_MINOR, \ | 37 LIBSWSCALE_VERSION_MINOR, \ |
38 LIBSWSCALE_VERSION_MICRO) | 38 LIBSWSCALE_VERSION_MICRO) |
301 int srcW, int srcH, enum PixelFormat srcFormat, | 301 int srcW, int srcH, enum PixelFormat srcFormat, |
302 int dstW, int dstH, enum PixelFormat dstFormat, | 302 int dstW, int dstH, enum PixelFormat dstFormat, |
303 int flags, SwsFilter *srcFilter, | 303 int flags, SwsFilter *srcFilter, |
304 SwsFilter *dstFilter, const double *param); | 304 SwsFilter *dstFilter, const double *param); |
305 | 305 |
306 /** | |
307 * Converts an 8bit paletted frame into a frame with a color depth of 32-bits. | |
308 * | |
309 * The output frame will have the same packed format as the palette. | |
310 * | |
311 * @param src source frame buffer | |
312 * @param dst destination frame buffer | |
313 * @param num_pixels number of pixels to convert | |
314 * @param palette array with [256] entries, which must match color arrangement (RGB or BGR) of src | |
315 */ | |
316 void sws_convertPalette8ToPacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); | |
317 | |
318 /** | |
319 * Converts an 8bit paletted frame into a frame with a color depth of 24 bits. | |
320 * | |
321 * With the palette format "ABCD", the destination frame ends up with the format "ABC". | |
322 * | |
323 * @param src source frame buffer | |
324 * @param dst destination frame buffer | |
325 * @param num_pixels number of pixels to convert | |
326 * @param palette array with [256] entries, which must match color arrangement (RGB or BGR) of src | |
327 */ | |
328 void sws_convertPalette8ToPacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); | |
329 | |
330 | |
306 #endif /* SWSCALE_SWSCALE_H */ | 331 #endif /* SWSCALE_SWSCALE_H */ |