diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-03 14:02:24 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-03 14:02:24 +0100 |
commit | 1e1fb5ea2504e548bc17521bdb273c9e59b9cf01 (patch) | |
tree | 6bdc1701a04e4eefb2d0b985ca78f6c53cb845b5 /media/libwebp/dec/alphai_dec.h | |
parent | fcfa07318b5b25d0bb650aa820d99a8c5c14e61b (diff) | |
parent | 4662aad03a28a6fa049f2c34ab58069718a229fe (diff) | |
download | UXP-1e1fb5ea2504e548bc17521bdb273c9e59b9cf01.tar UXP-1e1fb5ea2504e548bc17521bdb273c9e59b9cf01.tar.gz UXP-1e1fb5ea2504e548bc17521bdb273c9e59b9cf01.tar.lz UXP-1e1fb5ea2504e548bc17521bdb273c9e59b9cf01.tar.xz UXP-1e1fb5ea2504e548bc17521bdb273c9e59b9cf01.zip |
Merge branch 'goanna-gfx'
Diffstat (limited to 'media/libwebp/dec/alphai_dec.h')
-rw-r--r-- | media/libwebp/dec/alphai_dec.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/media/libwebp/dec/alphai_dec.h b/media/libwebp/dec/alphai_dec.h new file mode 100644 index 000000000..561e8151e --- /dev/null +++ b/media/libwebp/dec/alphai_dec.h @@ -0,0 +1,54 @@ +// Copyright 2013 Google Inc. All Rights Reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the COPYING file in the root of the source +// tree. An additional intellectual property rights grant can be found +// in the file PATENTS. All contributing project authors may +// be found in the AUTHORS file in the root of the source tree. +// ----------------------------------------------------------------------------- +// +// Alpha decoder: internal header. +// +// Author: Urvang (urvang@google.com) + +#ifndef WEBP_DEC_ALPHAI_H_ +#define WEBP_DEC_ALPHAI_H_ + +#include "./webpi_dec.h" +#include "../utils/filters_utils.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct VP8LDecoder; // Defined in dec/vp8li.h. + +typedef struct ALPHDecoder ALPHDecoder; +struct ALPHDecoder { + int width_; + int height_; + int method_; + WEBP_FILTER_TYPE filter_; + 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_; + const uint8_t* prev_line_; // last output row (or NULL) +}; + +//------------------------------------------------------------------------------ +// internal functions. Not public. + +// Deallocate memory associated to dec->alpha_plane_ decoding +void WebPDeallocateAlphaMemory(VP8Decoder* const dec); + +//------------------------------------------------------------------------------ + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif /* WEBP_DEC_ALPHAI_H_ */ |