mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-16 05:49:51 +02:00
alpha: preparatory cleanup
* make ALPHNew/Delete static * properly init ALPHDec::io_ * introduce AllocateAlphaPlane() and WebPDeallocateAlphaMemory() * reorganize VP8DecompressAlphaRows() but we're still allocate the full alpha-plane. Optim will come in another patch since it's tricky Change-Id: Ib6f190a40abb7926a71535b0ed67c39d0974e06a
This commit is contained in:
@ -258,9 +258,10 @@ struct VP8Decoder {
|
||||
struct ALPHDecoder* alph_dec_; // alpha-plane decoder object
|
||||
const uint8_t* alpha_data_; // compressed alpha data (if present)
|
||||
size_t alpha_data_size_;
|
||||
int is_alpha_decoded_; // true if alpha_data_ is decoded in alpha_plane_
|
||||
uint8_t* alpha_plane_; // output. Persistent, contains the whole data.
|
||||
int alpha_dithering_; // derived from decoding options (0=off, 100=full).
|
||||
int is_alpha_decoded_; // true if alpha_data_ is decoded in alpha_plane_
|
||||
uint8_t* alpha_plane_mem_; // memory allocated for alpha_plane_
|
||||
uint8_t* alpha_plane_; // output. Persistent, contains the whole data.
|
||||
int alpha_dithering_; // derived from decoding options (0=off, 100=full)
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user