~ubuntu-branches/ubuntu/trusty/mpeg4ip/trusty

« back to all changes in this revision

Viewing changes to common/video/iso-mpeg4/include/wvtPEZW.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2008-01-12 15:59:56 UTC
  • Revision ID: james.westby@ubuntu.com-20080112155956-1vznw5njidvrh649
Tags: upstream-1.6dfsg
ImportĀ upstreamĀ versionĀ 1.6dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************/
 
2
/*   MPEG4 Visual Texture Coding (VTC) Mode Software                        */
 
3
/*                                                                          */
 
4
/*   This software was jointly developed by the following participants:     */
 
5
/*                                                                          */
 
6
/*   Single-quant,  multi-quant and flow control                            */
 
7
/*   are provided by  Sarnoff Corporation                                   */
 
8
/*     Iraj Sodagar   (iraj@sarnoff.com)                                    */
 
9
/*     Hung-Ju Lee    (hjlee@sarnoff.com)                                   */
 
10
/*     Paul Hatrack   (hatrack@sarnoff.com)                                 */
 
11
/*     Shipeng Li     (shipeng@sarnoff.com)                                 */
 
12
/*     Bing-Bing Chai (bchai@sarnoff.com)                                   */
 
13
/*     B.S. Srinivas  (bsrinivas@sarnoff.com)                               */
 
14
/*                                                                          */
 
15
/*   Bi-level is provided by Texas Instruments                              */
 
16
/*     Jie Liang      (liang@ti.com)                                        */
 
17
/*                                                                          */
 
18
/*   Shape Coding is provided by  OKI Electric Industry Co., Ltd.           */
 
19
/*     Zhixiong Wu    (sgo@hlabs.oki.co.jp)                                 */
 
20
/*     Yoshihiro Ueda (yueda@hlabs.oki.co.jp)                               */
 
21
/*     Toshifumi Kanamaru (kanamaru@hlabs.oki.co.jp)                        */
 
22
/*                                                                          */
 
23
/*   OKI, Sharp, Sarnoff, TI and Microsoft contributed to bitstream         */
 
24
/*   exchange and bug fixing.                                               */
 
25
/*                                                                          */
 
26
/*                                                                          */
 
27
/* In the course of development of the MPEG-4 standard, this software       */
 
28
/* module is an implementation of a part of one or more MPEG-4 tools as     */
 
29
/* specified by the MPEG-4 standard.                                        */
 
30
/*                                                                          */
 
31
/* The copyright of this software belongs to ISO/IEC. ISO/IEC gives use     */
 
32
/* of the MPEG-4 standard free license to use this  software module or      */
 
33
/* modifications thereof for hardware or software products claiming         */
 
34
/* conformance to the MPEG-4 standard.                                      */
 
35
/*                                                                          */
 
36
/* Those intending to use this software module in hardware or software      */
 
37
/* products are advised that use may infringe existing  patents. The        */
 
38
/* original developers of this software module and their companies, the     */
 
39
/* subsequent editors and their companies, and ISO/IEC have no liability    */
 
40
/* and ISO/IEC have no liability for use of this software module or         */
 
41
/* modification thereof in an implementation.                               */
 
42
/*                                                                          */
 
43
/* Permission is granted to MPEG members to use, copy, modify,              */
 
44
/* and distribute the software modules ( or portions thereof )              */
 
45
/* for standardization activity within ISO/IEC JTC1/SC29/WG11.              */
 
46
/*                                                                          */
 
47
/* Copyright 1995, 1996, 1997, 1998 ISO/IEC                                 */
 
48
/****************************************************************************/
 
49
 
 
50
/****************************************************************************/
 
51
/*     Texas Instruments Predictive Embedded Zerotree (PEZW) Image Codec    */
 
52
/*         Developed by Jie Liang (liang@ti.com)                                */
 
53
/*                                                                                                                              */ 
 
54
/*     Copyright 1996, 1997, 1998 Texas Instruments                                 */
 
55
/****************************************************************************/
 
56
 
 
57
/****************************************************************************
 
58
   File name:         wvtPEZW.h
 
59
   Author:            Jie Liang  (liang@ti.com)
 
60
   Functions:         header file that defines global variables that are the 
 
61
                      interface of PEZW module and other parts of MPEG4 code.
 
62
   Revisions:         v1.0 (10/04/98)
 
63
*****************************************************************************/
 
64
 
 
65
#ifndef WVTPEZW_H
 
66
#define WVTPEZW_H
 
67
 
 
68
#include <stdio.h>
 
69
#include <basic.hpp>
 
70
 
 
71
/* data type used for store wavelet coefficients */
 
72
typedef short WINT;   
 
73
 
 
74
/* interface with PEZW modules */
 
75
 
 
76
/* the pointers to bitstream buffers for different
 
77
   spatial and SNR levels */
 
78
extern unsigned char ***PEZW_bitstream;
 
79
 
 
80
/* the initial size allocated to each buffer
 
81
   (each spatial layer, at each bitplane has its buffer)
 
82
   when the encoding is done this buffer contains
 
83
   the length of each buffer  */
 
84
extern int **Init_Bufsize;
 
85
 
 
86
/* decoded bytes */
 
87
extern int **decoded_bytes;
 
88
 
 
89
/* effective bits in last byte of the bitstream buffer */
 
90
extern unsigned char **bits_to_go_inBuffer;
 
91
 
 
92
/* maxmum number of bitplane */
 
93
extern int Max_Bitplane;
 
94
 
 
95
/* the minumum bitplane to code */
 
96
extern int Min_Bitplane;
 
97
 
 
98
/* spatial decoding levels offset */
 
99
extern int spatial_leveloff;
 
100
 
 
101
/* reate control parameters */
 
102
extern unsigned char **reach_budget;
 
103
 
 
104
/* decoding parameters imported form main.c.
 
105
   they should be defined before calling PEZW decoder. */
 
106
extern int PEZW_target_spatial_levels;
 
107
extern int PEZW_target_snr_levels;
 
108
extern int PEZW_target_bitrate;
 
109
 
 
110
#endif