summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/armVCM4P10_DequantTables_s.s
blob: afe07b50f3324d992fc3254d6dda52329797553d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
;//
;// Copyright (C) 2007-2008 ARM Limited
;//
;// Licensed under the Apache License, Version 2.0 (the "License");
;// you may not use this file except in compliance with the License.
;// You may obtain a copy of the License at
;//
;//      http://www.apache.org/licenses/LICENSE-2.0
;//
;// Unless required by applicable law or agreed to in writing, software
;// distributed under the License is distributed on an "AS IS" BASIS,
;// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;// See the License for the specific language governing permissions and
;// limitations under the License.
;//
;//
;// 
;// File Name:  armVCM4P10_DequantTables_s.s
;// OpenMAX DL: v1.0.2
;// Revision:   9641
;// Date:       Thursday, February 7, 2008
;// 
;// 
;// 
;//

        

         INCLUDE omxtypes_s.h
         INCLUDE armCOMM_s.h
     
         EXPORT armVCM4P10_QPDivTable
         EXPORT armVCM4P10_VMatrixQPModTable
         EXPORT armVCM4P10_PosToVCol4x4
         EXPORT armVCM4P10_PosToVCol2x2
         EXPORT armVCM4P10_VMatrix 
         EXPORT armVCM4P10_QPModuloTable
         EXPORT armVCM4P10_VMatrixU16
         
;// Define the processor variants supported by this file
         
         M_VARIANTS ARM1136JS
           
         
;// Guarding implementation by the processor name

    
    IF ARM1136JS :LOR: CortexA8
           
 
         M_TABLE armVCM4P10_PosToVCol4x4
         DCB  0, 2, 0, 2
         DCB  2, 1, 2, 1
         DCB  0, 2, 0, 2
         DCB  2, 1, 2, 1


         M_TABLE armVCM4P10_PosToVCol2x2
         DCB  0, 2
         DCB  2, 1


         M_TABLE armVCM4P10_VMatrix
         DCB  10, 16, 13
         DCB  11, 18, 14
         DCB  13, 20, 16
         DCB  14, 23, 18
         DCB  16, 25, 20
         DCB  18, 29, 23

;//-------------------------------------------------------
;// This table evaluates the expression [(INT)(QP/6)],
;// for values of QP from 0 to 51 (inclusive). 
;//-------------------------------------------------------

         M_TABLE armVCM4P10_QPDivTable
         DCB  0,  0,  0,  0,  0,  0
         DCB  1,  1,  1,  1,  1,  1
         DCB  2,  2,  2,  2,  2,  2
         DCB  3,  3,  3,  3,  3,  3
         DCB  4,  4,  4,  4,  4,  4
         DCB  5,  5,  5,  5,  5,  5
         DCB  6,  6,  6,  6,  6,  6
         DCB  7,  7,  7,  7,  7,  7
         DCB  8,  8,  8,  8,  8,  8
    
;//----------------------------------------------------
;// This table contains armVCM4P10_VMatrix[QP%6][0] entires,
;// for values of QP from 0 to 51 (inclusive). 
;//----------------------------------------------------

         M_TABLE armVCM4P10_VMatrixQPModTable
         DCB 10, 11, 13, 14, 16, 18
         DCB 10, 11, 13, 14, 16, 18
         DCB 10, 11, 13, 14, 16, 18
         DCB 10, 11, 13, 14, 16, 18
         DCB 10, 11, 13, 14, 16, 18
         DCB 10, 11, 13, 14, 16, 18
         DCB 10, 11, 13, 14, 16, 18
         DCB 10, 11, 13, 14, 16, 18
         DCB 10, 11, 13, 14, 16, 18
    
;//-------------------------------------------------------
;// This table evaluates the modulus expression [QP%6]*6,
;// for values of QP from 0 to 51 (inclusive). 
;//-------------------------------------------------------

         M_TABLE armVCM4P10_QPModuloTable
         DCB 0, 6, 12, 18, 24, 30
         DCB 0, 6, 12, 18, 24, 30
         DCB 0, 6, 12, 18, 24, 30
         DCB 0, 6, 12, 18, 24, 30
         DCB 0, 6, 12, 18, 24, 30
         DCB 0, 6, 12, 18, 24, 30
         DCB 0, 6, 12, 18, 24, 30
         DCB 0, 6, 12, 18, 24, 30
         DCB 0, 6, 12, 18, 24, 30
        
;//-------------------------------------------------------
;// This table contains the invidual byte values stored as
;// halfwords. This avoids unpacking inside the function
;//-------------------------------------------------------
        
         M_TABLE armVCM4P10_VMatrixU16
         DCW 10, 16, 13 
         DCW 11, 18, 14
         DCW 13, 20, 16
         DCW 14, 23, 18
         DCW 16, 25, 20
         DCW 18, 29, 23 
         
    ENDIF                                                           ;//ARM1136JS            


                           
    
         END