📄 hpdz_quant_local.h
字号:
/*****************************************************************************/
/* Copyright 1998, Hewlett-Packard Company */
/* All rights reserved */
/* File: "hpdz_quant_local.h" */
/* Description: Private definitions for "hpdz_quant.c" */
/* Author: David Taubman */
/* Affiliation: Hewlett-Packard and */
/* The University of New South Wales, Australia */
/* Version: VM9.0 */
/* Last Revised: 18 April, 2001 */
/*****************************************************************************/
/*****************************************************************************/
/* Modified for general wavelet decompositions. */
/* Copyright 2000 Science Applications International Corporation (SAIC). */
/* Copyright 1995 University of Arizona, Arizona Board of Regents. */
/* All Rights Reserved for modified parts. */
/*****************************************************************************/
/*****************************************************************************/
/* Modified for general offset and scalar quantization. */
/* Copyright 2000 The MITRE Corporation. */
/* All Rights Reserved for modified parts. */
/*****************************************************************************/
#ifndef HPDZ_QUANT_LOCAL_H
#define HPDZ_QUANT_LOCAL_H
#define HPDZ_MEM_KEY "QUANTIZATION OBJECT MEMORY"
/*****************************************************************************/
/* hpdz_band_info */
/*****************************************************************************/
typedef
struct hpdz_band_info {
float scale; /* Scaling factor for floating point data. */
ifc_int right_shift; /* Right shift for fixed-point data. May be -ve. */
/* MITRE General Offset/SQ Begin */
double nz;
/* MITRE General Offset/SQ End */
} hpdz_band_info, *hpdz_band_info_ptr;
/*****************************************************************************/
/* hpdz_level_info */
/*****************************************************************************/
typedef
struct hpdz_level_info {
int min_band;
int max_band;
hpdz_band_info_ptr bands;
} hpdz_level_info, *hpdz_level_info_ptr;
/*****************************************************************************/
/* hpdz_component_info */
/*****************************************************************************/
typedef
struct hpdz_component_info {
int num_levels;
hpdz_level_info_ptr levels;
} hpdz_component_info, *hpdz_component_info_ptr;
/* Note that the contents of this structure and all subordinate structures
are destroyed and recreated at the commencement of each new tile to
account for the fact that all parameters stored there may change from
tile to tile. */
/*****************************************************************************/
/* hpdz_quantizer_obj */
/*****************************************************************************/
typedef
struct hpdz_quantizer_obj {
quantizer_obj base;
int num_components;
hpdz_component_info_ptr components;
encoder_ref encoder;
forward_info_ref info;
/* SAIC General Decomp. Begin */
char *wt_output_file;
float **wt_output;
int *min_band;
int *max_band;
canvas_dims **band_dims;
int **current_band_line;
int **valid_band;
/* SAIC General Decomp. End */
/* MITRE General Offset/SQ Begin */
float scale_nz;
/* MITRE General Offset/SQ End */
} hpdz_quantizer_obj, *hpdz_quantizer_ref;
#endif /* HPDZ_QUANT_LOCAL_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -