⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shapeenhdef.hpp

📁 《Visual C++小波变换技术与工程实践》靳济芳编著的光盘程序。
💻 HPP
📖 第 1 页 / 共 2 页
字号:
/****************************************************************************/
/*   MPEG4 Visual Texture Coding (VTC) Mode Software                        */
/*                                                                          */
/*   This software was jointly developed by the following participants:     */
/*                                                                          */
/*   Single-quant,  multi-quant and flow control                            */
/*   are provided by  Sarnoff Corporation                                   */
/*     Iraj Sodagar   (iraj@sarnoff.com)                                    */
/*     Hung-Ju Lee    (hjlee@sarnoff.com)                                   */
/*     Paul Hatrack   (hatrack@sarnoff.com)                                 */
/*     Shipeng Li     (shipeng@sarnoff.com)                                 */
/*     Bing-Bing Chai (bchai@sarnoff.com)                                   */
/*     B.S. Srinivas  (bsrinivas@sarnoff.com)                               */
/*                                                                          */
/*   Bi-level is provided by Texas Instruments                              */
/*     Jie Liang      (liang@ti.com)                                        */
/*                                                                          */
/*   Shape Coding is provided by  OKI Electric Industry Co., Ltd.           */
/*     Zhixiong Wu    (sgo@hlabs.oki.co.jp)                                 */
/*     Yoshihiro Ueda (yueda@hlabs.oki.co.jp)                               */
/*     Toshifumi Kanamaru (kanamaru@hlabs.oki.co.jp)                        */
/*                                                                          */
/*   OKI, Sharp, Sarnoff, TI and Microsoft contributed to bitstream         */
/*   exchange and bug fixing.                                               */
/*                                                                          */
/*   Scalable Shape Coding was provided by:                                 */
/*         Shipeng Li (Sarnoff Corporation),                                */
/*         Dae-Sung Cho (Samsung AIT),					    */
/*         Se Hoon Son (Samsung AIT)	                                    */
/* In the course of development of the MPEG-4 standard, this software       */
/* module is an implementation of a part of one or more MPEG-4 tools as     */
/* specified by the MPEG-4 standard.                                        */
/*                                                                          */
/* The copyright of this software belongs to ISO/IEC. ISO/IEC gives use     */
/* of the MPEG-4 standard free license to use this  software module or      */
/* modifications thereof for hardware or software products claiming         */
/* conformance to the MPEG-4 standard.                                      */
/*                                                                          */
/* Those intending to use this software module in hardware or software      */
/* products are advised that use may infringe existing  patents. The        */
/* original developers of this software module and their companies, the     */
/* subsequent editors and their companies, and ISO/IEC have no liability    */
/* and ISO/IEC have no liability for use of this software module or         */
/* modification thereof in an implementation.                               */
/*                                                                          */
/* Permission is granted to MPEG members to use, copy, modify,              */
/* and distribute the software modules ( or portions thereof )              */
/* for standardization activity within ISO/IEC JTC1/SC29/WG11.              */
/*                                                                          */
/* Copyright 1995, 1996, 1997, 1998 ISO/IEC                                 */
/****************************************************************************/
/*****************************************************************************
 *
 * This software module was originally developed by
 *
 *	Dae-Sung Cho (Samsung AIT)
 *	Se Hoon Son (Samsung AIT)
 *
 * and edited by
 *
 *	Dae-Sung Cho (Samsung AIT)
 *
 * in the course of development of the MPEG-4 Video (ISO/IEC 14496-2) standard.
 * This software module is an implementation of a part of one or more MPEG-4
 * Video (ISO/IEC 14496-2) tools as specified by the MPEG-4 Video (ISO/IEC
 * 14496-2) standard.
 *
 * ISO/IEC gives users of the MPEG-4 Video (ISO/IEC 14496-2) standard free
 * license to this software module or modifications thereof for use in hardware
 * or software products claiming conformance to the MPEG-4 Video (ISO/IEC
 * 14496-2) standard.
 *
 * Those intending to use this software module in hardware or software products
 * are advised that its use may infringe existing patents. The original
 * developer of this software module and his/her company, the subsequent
 * editors and their companies, and ISO/IEC have no liability for use of this
 * software module or modifications thereof in an implementation. Copyright is
 * not released for non MPEG-4 Video (ISO/IEC 14496-2) Standard conforming
 * products.
 *
 * Samsung AIT (SAIT) retains full right to use the code for his/her own
 * purpose, assign or donate the code to a third party and to inhibit third
 * parties from using the code for non MPEG-4 Video (ISO/IEC 14496-2) Standard
 * conforming products. This copyright notice must be included in all copies or
 * derivative works.
 *
 * Copyright (c) 1997
 *
 *****************************************************************************/
#ifndef _SISC_DEF_H_
#define _SISC_DEF_H_
#include        <stdio.h>
#include        <math.h>

#define	H_SAMPLING	0
#define	V_SAMPLING	1
#define	SI_COD_TYPE	256

#define	BORDER		1
#define	MBORDER		2
#define  TEXTURE_SPATIAL_START_CODE (0x1BF)
#define TEXTURE_SHAPE_START_CODE (0x1C2) /*(0x1C1)*/	// SAIT_PDAM: added by Samsung AIT
#define MARKER_BIT 1
/*  Probability Tables for Shape Coding (SI)  */

/* Inserted by shson*/
/* Probability model for bab type (0-odd, 1-even) */
// modified for FDAM1 by Samsung AIT on 2000/02/03
//static  unsigned int scalable_bab_type_prob[2]={57203,44651};
static  unsigned int scalable_bab_type_prob[2]={59808,44651};
// ~modified for FDAM1 by Samsung AIT  on 2000/02/03

/* Probability model for P1 pixel of Interleaved Scan-Line (ISL) coding */
static  unsigned int scalable_xor_prob_1[128]={
65476,64428,62211,63560,52253,58271,38098,31981,
50087,41042,54620,31532,8382,10754,3844,6917,
63834,50444,50140,63043,58093,45146,36768,13351,
17594,28777,39830,38719,9768,21447,12340,9786,
60461,41489,27433,53893,47246,11415,13754,24965,
51620,28011,11973,29709,13878,22794,24385,1558,
57065,41918,25259,55117,48064,12960,19929,5937,
25730,22366,5204,32865,3415,14814,6634,1155,
64444,62907,56337,63144,38112,56527,40247,37088,
60326,45675,51248,15151,18868,43723,14757,11721,
62436,50971,51738,59767,49927,50675,38182,24724,
48447,47316,56628,36336,12264,25893,24243,5358,
58717,56646,48302,60515,36497,26959,43579,40280,
54092,20741,10891,7504,8109,30840,6772,4090,
59810,61410,53216,64127,32344,12462,23132,19270,
32232,24774,9615,17750,1714,6539,3237,152
};

/* Probability model for P2/P3 pixels of Interleaved Scan-Line (ISL) coding */
static  unsigned int scalable_xor_prob_23[128]={
65510,63321,63851,62223,64959,62202,63637,48019,
57072,33553,37041,9527,53190,50479,54232,12855,
62779,63980,49604,31847,57591,64385,40657,8402,
33878,54743,17873,8707,34470,54322,16702,2192,
58325,48447,7345,31317,45687,44236,16685,24144,
34327,18724,10591,24965,9247,7281,3144,5921,
59349,33539,11447,5543,58082,48995,35630,10653,
7123,15893,23830,800,3491,15792,8930,905,
65209,63939,52634,62194,64937,53948,60081,46851,
56157,50930,35498,24655,56331,59318,32209,6872,
59172,64273,46724,41200,53619,59022,37941,20529,
55026,52858,26402,45073,57740,55485,20533,6288,
64286,55438,16454,55656,61175,45874,28536,53762,
58056,21895,5482,39352,32635,21633,2137,4016,
58490,14100,18724,10461,53459,15490,57992,15128,
12034,4340,6761,1859,5794,6785,2412,35
};

/* Probability model for Raster Scan-Line (RSL) coding (odd filter) */
static  unsigned int scalable_full_odd_prob[256]={
65535,32768,32768,32768,32768,32768,32768,32768,
32768,32768,32768,32768,32768,32768,32768,32768,
63094,32768,32768,32768,32768,32768,32768,32768,
32768,32768,32768,32768,32768,32768,32768,32768,
62401,45272,32768,32768,32768,32768,32768,32768,
43096,25726,32768,32768,32768,32768,32768,32768,
55308,17735,32768,32768,32768,32768,32768,32768,
47493,17490,32768,32768,32768,32768,32768,32768,
59542,32768,60740,32768,23847,32768,49123,32768,
36976,32768,44280,32768,24293,32768,26276,32768,
58543,32768,50320,32768,25766,32768,11486,32768,
58465,32768,51357,32768,22795,32768,11805,32768,
49265,12891,27134,10923,20307,32768,12170,7016,
48182,33695,30544,32433,28855,32768,24901,32768,
46015,19178,28001,9729,25880,32768,5913,3070,
33736,32373,33972,21627,26263,32768,19795,32768,
59127,36942,44697,9709,46286,32740,28555,8727,
63736,52206,29927,26312,60272,32005,44761,9988,
47369,17677,48608,19114,19581,30088,25936,24690,
52287,35610,27173,20869,30916,23533,38614,10446,
22346,40972,22360,9590,7680,20243,1983,1754,
48889,45804,22662,27924,28868,9882,14438,1369,
25195,25948,21631,13785,10822,22192,5742,11770,
36752,23147,11313,20607,40693,5351,25436,2752,
44934,6118,32944,12477,26847,28553,32857,12688,
28532,12091,43573,30108,35939,14785,45888,5319,
33566,8681,19072,16384,19175,30670,24431,13374,
28505,28099,44921,39479,39766,19313,18418,4159,
9896,10051,6277,10190,8937,14547,7725,4412,
15503,20210,17744,27014,23609,6523,34098,2309,
7797,4278,2573,5564,11111,18030,2225,2277,

⌨️ 快捷键说明

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