PandA-2024.02
examples
hls_study
motion
optimized
getvlc.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
/* getvlc.h, variable length code tables */
20
21
/* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */
22
23
/*
24
* Disclaimer of Warranty
25
*
26
* These software programs are available to the user without any license fee or
27
* royalty on an "as is" basis. The MPEG Software Simulation Group disclaims
28
* any and all warranties, whether express, implied, or statuary, including any
29
* implied warranties or merchantability or of fitness for a particular
30
* purpose. In no event shall the copyright-holder be liable for any
31
* incidental, punitive, or consequential damages of any kind whatsoever
32
* arising from the use of these programs.
33
*
34
* This disclaimer of warranty extends to the user of these programs and user's
35
* customers, employees, agents, transferees, successors, and assigns.
36
*
37
* The MPEG Software Simulation Group does not represent or warrant that the
38
* programs furnished hereunder are free of infringement of any third-party
39
* patents.
40
*
41
* Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,
42
* are subject to royalty fees to patent holders. Many of these patents are
43
* general enough such that they are unavoidable regardless of implementation
44
* design.
45
*
46
*/
47
48
/* NOTE: #define constants such as MACROBLOCK_QUANT are upper case
49
as per C programming convention. However, the MPEG document
50
(ISO/IEC 13818-2) lists them in all lower case (e.g. Annex B) */
51
52
/* NOTE: the VLC tables are in a flash format---a transformation
53
of the tables in Annex B to a form more convenient towards
54
parallel (more than one-bit-at-a-time) decoding */
55
56
57
/* Table B-10, motion_code, codes 0001 ... 01xx */
58
const
char
MVtab0
[8][2] = {
59
{
ERROR
, 0}, {3, 3}, {2, 2}, {2, 2},
60
{1, 1}, {1, 1}, {1, 1}, {1, 1}
61
};
62
63
/* Table B-10, motion_code, codes 0000011 ... 000011x */
64
const
char
MVtab1
[8][2] = {
65
{
ERROR
, 0}, {
ERROR
, 0}, {
ERROR
, 0}, {7, 6},
66
{6, 6}, {5, 6}, {4, 5}, {4, 5}
67
};
68
69
/* Table B-10, motion_code, codes 0000001100 ... 000001011x */
70
const
char
MVtab2
[12][2] = {
71
{16, 9}, {15, 9}, {14, 9}, {13, 9}, {12, 9}, {11, 9},
72
{10, 8}, {10, 8}, {9, 8}, {9, 8}, {8, 8}, {8, 8}
73
};
ERROR
#define ERROR
Definition:
mpeg2dec.h:47
MVtab0
const char MVtab0[8][2]
Definition:
getvlc.h:58
MVtab2
const char MVtab2[12][2]
Definition:
getvlc.h:70
MVtab1
const char MVtab1[8][2]
Definition:
getvlc.h:64
Generated on Mon Feb 12 2024 13:02:49 for PandA-2024.02 by
1.8.13