bintree.h

来自「linux下将各类格式图片转换工具」· C头文件 代码 · 共 44 行

H
44
字号
/* *  bintree.h * *  Written by:		Ullrich Hafner *		 *  This file is part of FIASCO (獸籸actal 獻籱age 獳籲d 玈籩quence 獵O籨ec) *  Copyright (C) 1994-2000 Ullrich Hafner <hafner@bigfoot.de> *//* *  $Date: 2000/06/14 20:50:51 $ *  $Author: hafner $ *  $Revision: 5.1 $ *  $State: Exp $ */#ifndef _BINTREE_H#define _BINTREE_H#include "wfa.h"#include "types.h"typedef struct tree/* *  Used for estimating the number of bits needed for storing the *  tree array. For each level a different context is used. *  The binary alphabet consists of the two symbols NO_RANGE and RANGE, *  which indicate whether there exists a tree edge or not. */{   unsigned counts [MAXLEVEL];		/* # NO_RANGE symbols at given level */   unsigned total [MAXLEVEL];		/* total number of symbols at  ''   */} tree_t;real_ttree_bits (bool_t child, unsigned level, const tree_t *model);voidinit_tree_model (tree_t *tree_model);voidtree_update (bool_t child, unsigned level, tree_t *model);#endif /* not _BINTREE_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?