perform alpha filtering within the decoding loop

Change-Id: I221ae20ba879cd4f7b48d012db1bc5443d968e17
This commit is contained in:
Pascal Massimino
2016-04-05 10:58:20 -07:00
parent a4cae68de0
commit 774dfbdc34
4 changed files with 44 additions and 34 deletions

View File

@ -28,13 +28,14 @@ struct ALPHDecoder {
int width_;
int height_;
int method_;
WEBP_FILTER_TYPE filter_;
WebPUnfilterFunc unfilter_func_;
int pre_processing_;
struct VP8LDecoder* vp8l_dec_;
VP8Io io_;
int use_8b_decode_; // Although alpha channel requires only 1 byte per
// pixel, sometimes VP8LDecoder may need to allocate
// 4 bytes per pixel internally during decode.
uint8_t* output_;
};
//------------------------------------------------------------------------------