Path: blob/master/thirdparty/libwebp/src/dec/alphai_dec.h
9912 views
// Copyright 2013 Google Inc. All Rights Reserved.1//2// Use of this source code is governed by a BSD-style license3// that can be found in the COPYING file in the root of the source4// tree. An additional intellectual property rights grant can be found5// in the file PATENTS. All contributing project authors may6// be found in the AUTHORS file in the root of the source tree.7// -----------------------------------------------------------------------------8//9// Alpha decoder: internal header.10//11// Author: Urvang ([email protected])1213#ifndef WEBP_DEC_ALPHAI_DEC_H_14#define WEBP_DEC_ALPHAI_DEC_H_1516#include "src/dec/webpi_dec.h"17#include "src/utils/filters_utils.h"1819#ifdef __cplusplus20extern "C" {21#endif2223struct VP8LDecoder; // Defined in dec/vp8li.h.2425typedef struct ALPHDecoder ALPHDecoder;26struct ALPHDecoder {27int width_;28int height_;29int method_;30WEBP_FILTER_TYPE filter_;31int pre_processing_;32struct VP8LDecoder* vp8l_dec_;33VP8Io io_;34int use_8b_decode_; // Although alpha channel requires only 1 byte per35// pixel, sometimes VP8LDecoder may need to allocate36// 4 bytes per pixel internally during decode.37uint8_t* output_;38const uint8_t* prev_line_; // last output row (or NULL)39};4041//------------------------------------------------------------------------------42// internal functions. Not public.4344// Deallocate memory associated to dec->alpha_plane_ decoding45void WebPDeallocateAlphaMemory(VP8Decoder* const dec);4647//------------------------------------------------------------------------------4849#ifdef __cplusplus50} // extern "C"51#endif5253#endif // WEBP_DEC_ALPHAI_DEC_H_545556