1
// Copyright 2013 Google Inc. All Rights Reserved.
3
// Use of this source code is governed by a BSD-style license
4
// that can be found in the COPYING file in the root of the source
5
// tree. An additional intellectual property rights grant can be found
6
// in the file PATENTS. All contributing project authors may
7
// be found in the AUTHORS file in the root of the source tree.
8
// -----------------------------------------------------------------------------
10
// Alpha decoder: internal header.
12
// Author: Urvang (urvang@google.com)
14
#ifndef WEBP_DEC_ALPHAI_H_
15
#define WEBP_DEC_ALPHAI_H_
18
#include "../utils/filters.h"
24
struct VP8LDecoder; // Defined in dec/vp8li.h.
26
typedef struct ALPHDecoder ALPHDecoder;
31
WEBP_FILTER_TYPE filter_;
33
struct VP8LDecoder* vp8l_dec_;
35
int use_8b_decode; // Although alpha channel requires only 1 byte per
36
// pixel, sometimes VP8LDecoder may need to allocate
37
// 4 bytes per pixel internally during decode.
40
//------------------------------------------------------------------------------
41
// internal functions. Not public.
43
// Allocates a new alpha decoder instance.
44
ALPHDecoder* ALPHNew(void);
46
// Clears and deallocates an alpha decoder instance.
47
void ALPHDelete(ALPHDecoder* const dec);
49
//------------------------------------------------------------------------------
55
#endif /* WEBP_DEC_ALPHAI_H_ */