wvtPEZW.hpp
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:6k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  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. /*     Texas Instruments Predictive Embedded Zerotree (PEZW) Image Codec    */
  51. /*    Developed by Jie Liang (liang@ti.com)                                */
  52. /*                         */ 
  53. /*     Copyright 1996, 1997, 1998 Texas Instruments                    */
  54. /****************************************************************************/
  55. /****************************************************************************
  56.    File name:         wvtPEZW.h
  57.    Author:            Jie Liang  (liang@ti.com)
  58.    Functions:         header file that defines global variables that are the 
  59.                       interface of PEZW module and other parts of MPEG4 code.
  60.    Revisions:         v1.0 (10/04/98)
  61. *****************************************************************************/
  62. #ifndef WVTPEZW_H
  63. #define WVTPEZW_H
  64. #include <stdio.h>
  65. #include <basic.hpp>
  66. /* data type used for store wavelet coefficients */
  67. typedef short WINT;   
  68. /* interface with PEZW modules */
  69.  
  70. /* the pointers to bitstream buffers for different
  71.    spatial and SNR levels */
  72. extern unsigned char ***PEZW_bitstream;
  73. /* the initial size allocated to each buffer
  74.    (each spatial layer, at each bitplane has its buffer)
  75.    when the encoding is done this buffer contains
  76.    the length of each buffer  */
  77. extern int **Init_Bufsize;
  78. /* decoded bytes */
  79. extern int **decoded_bytes;
  80. /* effective bits in last byte of the bitstream buffer */
  81. extern unsigned char **bits_to_go_inBuffer;
  82. /* maxmum number of bitplane */
  83. extern int Max_Bitplane;
  84. /* the minumum bitplane to code */
  85. extern int Min_Bitplane;
  86. /* spatial decoding levels offset */
  87. extern int spatial_leveloff;
  88. /* reate control parameters */
  89. extern unsigned char **reach_budget;
  90. /* decoding parameters imported form main.c.
  91.    they should be defined before calling PEZW decoder. */
  92. extern int PEZW_target_spatial_levels;
  93. extern int PEZW_target_snr_levels;
  94. extern int PEZW_target_bitrate;
  95. #endif