#include "avcodec.h"
#include "get_bits.h"
Go to the source code of this file.
Data Structures | |
struct | Node |
Defines | |
#define | FF_HUFFMAN_FLAG_HNODE_FIRST 0x01 |
#define | FF_HUFFMAN_FLAG_ZERO_COUNT 0x02 |
Typedefs | |
typedef int(* | HuffCmp )(const void *va, const void *vb) |
Functions | |
int | ff_huff_build_tree (AVCodecContext *avctx, VLC *vlc, int nb_codes, Node *nodes, HuffCmp cmp, int flags) |
nodes size must be 2*nb_codes first nb_codes nodes.count must be set |
This file is part of FFmpeg.
FFmpeg is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
FFmpeg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with FFmpeg; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file huffman.h.
#define FF_HUFFMAN_FLAG_HNODE_FIRST 0x01 |
Definition at line 35 of file huffman.h.
Referenced by ff_huff_build_tree(), and vp6_build_huff_tree().
#define FF_HUFFMAN_FLAG_ZERO_COUNT 0x02 |
Definition at line 36 of file huffman.h.
Referenced by build_huff_tree(), and fraps2_decode_plane().
int ff_huff_build_tree | ( | AVCodecContext * | avctx, | |
VLC * | vlc, | |||
int | nb_codes, | |||
Node * | nodes, | |||
HuffCmp | cmp, | |||
int | flags | |||
) |
nodes size must be 2*nb_codes first nb_codes nodes.count must be set
Definition at line 69 of file huffman.c.
Referenced by fraps2_decode_plane(), and vp6_build_huff_tree().