4 * This file is part of FFmpeg.
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 #include "libavutil/frame.h"
27 #include "libavutil/mem.h"
41 typedef struct HQXLUT {
47 typedef struct HQXAC {
48 int lut_bits, extra_bits;
54 typedef int (*mb_decode_func)(struct HQXContext *ctx,
55 int slice_no, int x, int y);
57 typedef struct HQXSlice {
59 DECLARE_ALIGNED(16, int16_t, block)[16][64];
62 typedef struct HQXContext {
67 mb_decode_func decode_func;
69 int format, dcb, width, height;
73 unsigned int data_size;
74 uint32_t slice_off[17];
80 #define HQX_DC_VLC_BITS 9
82 extern const HQXAC ff_hqx_ac[NUM_HQX_AC];
84 int ff_hqx_init_vlcs(HQXContext *ctx);
86 #endif /* AVCODEC_HQX_H */