PandA-2024.02
decode.h
Go to the documentation of this file.
1 /*
2 +--------------------------------------------------------------------------+
3 | CHStone : a suite of benchmark programs for C-based High-Level Synthesis |
4 | ======================================================================== |
5 | |
6 | * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |
7 | H. Takada and K. Ishii |
8 | Nagoya University, Japan |
9 | |
10 | * Remark : |
11 | 1. This source code is modified to unify the formats of the benchmark |
12 | programs in CHStone. |
13 | 2. Test vectors are added for CHStone. |
14 | 3. If "main_result" is 0 at the end of the program, the program is |
15 | correctly executed. |
16 | 4. Please follow the copyright of each benchmark program. |
17 +--------------------------------------------------------------------------+
18 */
19 /*
20  * Copyright (C) 2008
21  * Y. Hara, H. Tomiyama, S. Honda, H. Takada and K. Ishii
22  * Nagoya University, Japan
23  * All rights reserved.
24  *
25  * Disclaimer of Warranty
26  *
27  * These software programs are available to the user without any license fee or
28  * royalty on an "as is" basis. The authors disclaims any and all warranties,
29  * whether express, implied, or statuary, including any implied warranties or
30  * merchantability or of fitness for a particular purpose. In no event shall the
31  * copyright-holder be liable for any incidental, punitive, or consequential damages
32  * of any kind whatsoever arising from the use of these programs. This disclaimer
33  * of warranty extends to the user of these programs and user's customers, employees,
34  * agents, transferees, successors, and assigns.
35  *
36  */
37 /*
38  * Header file for decoding
39  *
40  * @(#) $Id: decode.h,v 1.2 2003/07/18 10:19:21 honda Exp $
41  */
42 
43 #ifndef _DECODE_H_
44 #define _DECODE_H_
45 
46 #define NUM_HUFF_TBLS 2
47 #define NUM_QUANT_TBLS 4
48 #define DCTSIZE 8
49 #define DCTSIZE2 64
50 
51 
52 /*
53  * Fix the number of components as 3
54  */
55 #define NUM_COMPONENT 3
56 
57 #define RGB_NUM 3
58 
59 /*
60  * Define the sample precision as 8
61  */
62 #define IDCT_SHIFT 128
63 #define IDCT_BOUNT 255
64 #define MARKER_MARKER 0xff
65 
66 /* SAMPLING_FACTOR */
67 #define SF1_1_1 0
68 #define SF4_1_1 2
69 
75 
83 
85 
88 
91 
96 
101 
105 
106 unsigned char *p_jinfo_jpeg_data;
107 
108 #endif /* _DECODE_H_ */
int p_jinfo_dc_dhuff_tbl_mincode[NUM_HUFF_TBLS][36]
Definition: decode.h:94
int p_jinfo_dc_dhuff_tbl_maxcode[NUM_HUFF_TBLS][36]
Definition: decode.h:93
char p_jinfo_data_precision
Definition: decode.h:70
char p_jinfo_comps_info_ac_tbl_no[NUM_COMPONENT]
Definition: decode.h:82
char p_jinfo_comps_info_id[NUM_COMPONENT]
Definition: decode.h:77
char p_jinfo_comps_info_h_samp_factor[NUM_COMPONENT]
Definition: decode.h:78
int p_jinfo_MCUHeight
Definition: decode.h:103
int p_jinfo_ac_xhuff_tbl_bits[NUM_HUFF_TBLS][36]
Definition: decode.h:89
unsigned int p_jinfo_quant_tbl_quantval[NUM_QUANT_TBLS][DCTSIZE2]
Definition: decode.h:84
short p_jinfo_image_width
Definition: decode.h:72
char p_jinfo_comps_info_quant_tbl_no[NUM_COMPONENT]
Definition: decode.h:80
#define NUM_COMPONENT
Definition: decode.h:55
char p_jinfo_comps_info_index[NUM_COMPONENT]
Definition: decode.h:76
char p_jinfo_num_components
Definition: decode.h:73
#define NUM_QUANT_TBLS
Definition: decode.h:47
int p_jinfo_ac_dhuff_tbl_maxcode[NUM_HUFF_TBLS][36]
Definition: decode.h:98
unsigned char * p_jinfo_jpeg_data
Definition: decode.h:106
int p_jinfo_smp_fact
Definition: decode.h:74
int p_jinfo_ac_dhuff_tbl_valptr[NUM_HUFF_TBLS][36]
Definition: decode.h:100
#define NUM_HUFF_TBLS
Definition: decode.h:46
int p_jinfo_dc_dhuff_tbl_ml[NUM_HUFF_TBLS]
Definition: decode.h:92
char p_jinfo_comps_info_v_samp_factor[NUM_COMPONENT]
Definition: decode.h:79
short p_jinfo_image_height
Definition: decode.h:71
int p_jinfo_ac_dhuff_tbl_mincode[NUM_HUFF_TBLS][36]
Definition: decode.h:99
int p_jinfo_ac_xhuff_tbl_huffval[NUM_HUFF_TBLS][257]
Definition: decode.h:90
int p_jinfo_NumMCU
Definition: decode.h:104
#define DCTSIZE2
Definition: decode.h:49
int p_jinfo_MCUWidth
Definition: decode.h:102
char p_jinfo_comps_info_dc_tbl_no[NUM_COMPONENT]
Definition: decode.h:81
int p_jinfo_dc_xhuff_tbl_bits[NUM_HUFF_TBLS][36]
Definition: decode.h:86
int p_jinfo_ac_dhuff_tbl_ml[NUM_HUFF_TBLS]
Definition: decode.h:97
int p_jinfo_dc_xhuff_tbl_huffval[NUM_HUFF_TBLS][257]
Definition: decode.h:87
int p_jinfo_dc_dhuff_tbl_valptr[NUM_HUFF_TBLS][36]
Definition: decode.h:95

Generated on Mon Feb 12 2024 13:02:49 for PandA-2024.02 by doxygen 1.8.13