Merge "add WebPPictureImportRGBX() and WebPPictureImportBGRX()"

This commit is contained in:
pascal massimino
2012-06-05 00:28:04 -07:00
committed by Gerrit Code Review
2 changed files with 19 additions and 2 deletions

View File

@ -603,6 +603,16 @@ int WebPPictureImportBGRA(WebPPicture* const picture,
return Import(picture, rgba, rgba_stride, 4, 1, 1);
}
int WebPPictureImportRGBX(WebPPicture* const picture,
const uint8_t* const rgba, int rgba_stride) {
return Import(picture, rgba, rgba_stride, 4, 0, 0);
}
int WebPPictureImportBGRX(WebPPicture* const picture,
const uint8_t* const rgba, int rgba_stride) {
return Import(picture, rgba, rgba_stride, 4, 1, 0);
}
//------------------------------------------------------------------------------
// Helper: clean up fully transparent area to help compressibility.