annotate src/libmad-0.15.1b/huffman.h @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 545efbb81310
children
rev   line source
cannam@85 1 /*
cannam@85 2 * libmad - MPEG audio decoder library
cannam@85 3 * Copyright (C) 2000-2004 Underbit Technologies, Inc.
cannam@85 4 *
cannam@85 5 * This program is free software; you can redistribute it and/or modify
cannam@85 6 * it under the terms of the GNU General Public License as published by
cannam@85 7 * the Free Software Foundation; either version 2 of the License, or
cannam@85 8 * (at your option) any later version.
cannam@85 9 *
cannam@85 10 * This program is distributed in the hope that it will be useful,
cannam@85 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@85 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@85 13 * GNU General Public License for more details.
cannam@85 14 *
cannam@85 15 * You should have received a copy of the GNU General Public License
cannam@85 16 * along with this program; if not, write to the Free Software
cannam@85 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
cannam@85 18 *
cannam@85 19 * $Id: huffman.h,v 1.11 2004/01/23 09:41:32 rob Exp $
cannam@85 20 */
cannam@85 21
cannam@85 22 # ifndef LIBMAD_HUFFMAN_H
cannam@85 23 # define LIBMAD_HUFFMAN_H
cannam@85 24
cannam@85 25 union huffquad {
cannam@85 26 struct {
cannam@85 27 unsigned short final : 1;
cannam@85 28 unsigned short bits : 3;
cannam@85 29 unsigned short offset : 12;
cannam@85 30 } ptr;
cannam@85 31 struct {
cannam@85 32 unsigned short final : 1;
cannam@85 33 unsigned short hlen : 3;
cannam@85 34 unsigned short v : 1;
cannam@85 35 unsigned short w : 1;
cannam@85 36 unsigned short x : 1;
cannam@85 37 unsigned short y : 1;
cannam@85 38 } value;
cannam@85 39 unsigned short final : 1;
cannam@85 40 };
cannam@85 41
cannam@85 42 union huffpair {
cannam@85 43 struct {
cannam@85 44 unsigned short final : 1;
cannam@85 45 unsigned short bits : 3;
cannam@85 46 unsigned short offset : 12;
cannam@85 47 } ptr;
cannam@85 48 struct {
cannam@85 49 unsigned short final : 1;
cannam@85 50 unsigned short hlen : 3;
cannam@85 51 unsigned short x : 4;
cannam@85 52 unsigned short y : 4;
cannam@85 53 } value;
cannam@85 54 unsigned short final : 1;
cannam@85 55 };
cannam@85 56
cannam@85 57 struct hufftable {
cannam@85 58 union huffpair const *table;
cannam@85 59 unsigned short linbits;
cannam@85 60 unsigned short startbits;
cannam@85 61 };
cannam@85 62
cannam@85 63 extern union huffquad const *const mad_huff_quad_table[2];
cannam@85 64 extern struct hufftable const mad_huff_pair_table[32];
cannam@85 65
cannam@85 66 # endif