Add SSE2 version of ARGB -> BGR/RGB/... conversion functions

~4-6% faster lossless decoding

Change-Id: I3ed1131ff2b2a0217da315fac143cd0d58293361
This commit is contained in:
skal
2014-03-25 08:46:24 +01:00
parent 80e218d43a
commit 369c26dd3f
2 changed files with 159 additions and 15 deletions

View File

@ -39,6 +39,14 @@ extern VP8LPredSelectFunc VP8LSelect;
extern VP8LSubtractGreenFromBlueAndRedFunc VP8LSubtractGreenFromBlueAndRed;
extern VP8LAddGreenToBlueAndRedFunc VP8LAddGreenToBlueAndRed;
typedef void (*VP8LConvertFunc)(const uint32_t* src, int num_pixels,
uint8_t* dst);
extern VP8LConvertFunc VP8LConvertBGRAToRGBFunc;
extern VP8LConvertFunc VP8LConvertBGRAToRGBAFunc;
extern VP8LConvertFunc VP8LConvertBGRAToRGBA4444Func;
extern VP8LConvertFunc VP8LConvertBGRAToRGB565Func;
extern VP8LConvertFunc VP8LConvertBGRAToBGRFunc;
// Must be called before calling any of the above methods.
void VP8LDspInit(void);