Mercurial > mplayer.hg
comparison libswscale/swscale_internal.h @ 27490:651ebfa4b7db
Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.
Fixes issue248.
author | michael |
---|---|
date | Thu, 04 Sep 2008 21:59:15 +0000 |
parents | 92479ee7ad6e |
children | 2550d0c5bcb6 |
comparison
equal
deleted
inserted
replaced
27489:1ef12885a1e4 | 27490:651ebfa4b7db |
---|---|
31 | 31 |
32 #define MAX_FILTER_SIZE 256 | 32 #define MAX_FILTER_SIZE 256 |
33 | 33 |
34 #define VOFW 2048 | 34 #define VOFW 2048 |
35 #define VOF (VOFW*2) | 35 #define VOF (VOFW*2) |
36 | |
37 #ifdef WORDS_BIGENDIAN | |
38 #define ALT32_CORR (-1) | |
39 #else | |
40 #define ALT32_CORR 1 | |
41 #endif | |
36 | 42 |
37 typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, | 43 typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, |
38 int srcSliceH, uint8_t* dst[], int dstStride[]); | 44 int srcSliceH, uint8_t* dst[], int dstStride[]); |
39 | 45 |
40 /* This struct should be aligned on at least a 32-byte boundary. */ | 46 /* This struct should be aligned on at least a 32-byte boundary. */ |
220 (x)==PIX_FMT_GRAY16BE \ | 226 (x)==PIX_FMT_GRAY16BE \ |
221 || (x)==PIX_FMT_GRAY16LE \ | 227 || (x)==PIX_FMT_GRAY16LE \ |
222 ) | 228 ) |
223 #define isRGB(x) ( \ | 229 #define isRGB(x) ( \ |
224 (x)==PIX_FMT_RGB32 \ | 230 (x)==PIX_FMT_RGB32 \ |
231 || (x)==PIX_FMT_RGB32_1 \ | |
225 || (x)==PIX_FMT_RGB24 \ | 232 || (x)==PIX_FMT_RGB24 \ |
226 || (x)==PIX_FMT_RGB565 \ | 233 || (x)==PIX_FMT_RGB565 \ |
227 || (x)==PIX_FMT_RGB555 \ | 234 || (x)==PIX_FMT_RGB555 \ |
228 || (x)==PIX_FMT_RGB8 \ | 235 || (x)==PIX_FMT_RGB8 \ |
229 || (x)==PIX_FMT_RGB4 \ | 236 || (x)==PIX_FMT_RGB4 \ |
230 || (x)==PIX_FMT_RGB4_BYTE \ | 237 || (x)==PIX_FMT_RGB4_BYTE \ |
231 || (x)==PIX_FMT_MONOBLACK \ | 238 || (x)==PIX_FMT_MONOBLACK \ |
232 ) | 239 ) |
233 #define isBGR(x) ( \ | 240 #define isBGR(x) ( \ |
234 (x)==PIX_FMT_BGR32 \ | 241 (x)==PIX_FMT_BGR32 \ |
242 || (x)==PIX_FMT_BGR32_1 \ | |
235 || (x)==PIX_FMT_BGR24 \ | 243 || (x)==PIX_FMT_BGR24 \ |
236 || (x)==PIX_FMT_BGR565 \ | 244 || (x)==PIX_FMT_BGR565 \ |
237 || (x)==PIX_FMT_BGR555 \ | 245 || (x)==PIX_FMT_BGR555 \ |
238 || (x)==PIX_FMT_BGR8 \ | 246 || (x)==PIX_FMT_BGR8 \ |
239 || (x)==PIX_FMT_BGR4 \ | 247 || (x)==PIX_FMT_BGR4 \ |