AN2121 Freescale Semiconductor / Motorola, AN2121 Datasheet - Page 30

no-image

AN2121

Manufacturer Part Number
AN2121
Description
JPEG2000 Arithmetic Encoding on StarCore SC140
Manufacturer
Freescale Semiconductor / Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN2121SC
Manufacturer:
TERIDIAN
Quantity:
40
/* ======================================================================== */
/* Define these inputs to have different data types */
static uint32 Qe[47] =
{
0x5601UL, 0x3401UL, 0x1801UL, 0x0ac1UL, 0x0521UL, 0x0221UL, 0x5601UL,
0x5401UL, 0x4801UL, 0x3801UL, 0x3001UL, 0x2401UL, 0x1c01UL, 0x1601UL,
0x5601UL, 0x5401UL, 0x5101UL, 0x4801UL, 0x3801UL, 0x3401UL, 0x3001UL,
0x2801UL, 0x2401UL, 0x2201UL, 0x1c01UL, 0x1801UL, 0x1601UL, 0x1401UL,
0x1201UL, 0x1101UL, 0x0ac1UL, 0x09c1UL, 0x08a1UL, 0x0521UL, 0x0441UL,
0x02a1UL, 0x0221UL, 0x0141UL, 0x0111UL, 0x0085UL, 0x0049UL, 0x0025UL,
0x0015UL, 0x0009UL, 0x0005UL, 0x0001UL, 0x5601UL
};
static uint32 SWITCH[47] =
{
};
static uint32 NMPS[47] =
{
};
static uint32 NLPS[47] =
{
};
/* ======================================================================== */
/*
*/
void ArithEncInit()
{
26
Initialize the arithmetic encoder.
See Section C.2.8 and Figure C-10.
param: file - The file to write the output bytes to.
15
23
31
39
46
14
20
28
36
46
1,
1,
1,
0,
0,
0,
0
1
7
1
6
firstByte = 1;
,
,
,
,
,
,
,
,
,
,
,
,
0,
0,
0,
0,
0,
0,
16
24
32
40
14
14
21
29
37
2
8
6
int i;
A = 0x8000u;
C = 0;
B = 0;
CT = 12;
/* Initialize all of the contexts (see Table C-6) */
0,
0,
0,
0,
0,
0,
,
,
,
,
,
,
,
,
,
,
,
,
JPEG2000 Arithmetic Encoding on the StarCore SC140
0,
0,
0,
0,
0,
0,
17
25
33
41
14
15
22
30
38
3
9
9
/* Assume that the byte prior to starting is 0 */
Freescale Semiconductor, Inc.
0,
0,
0,
0,
0,
0,
,
,
,
,
,
,
,
,
,
,
,
,
For More Information On This Product,
10
18
26
34
42
12
14
16
23
31
39
4
0,
0,
0,
0,
0,
0,
Go to: www.freescale.com
,
,
,
,
,
,
,
,
,
,
,
,
0,
0,
0,
0,
0,
11
19
27
35
43
29
17
17
24
32
40
5
0,
0,
0,
0,
0,
,
,
,
,
,
,
,
,
,
,
,
,
38
12
20
28
36
44
33
18
18
25
33
41
,
,
,
,
,
,
,
,
,
,
,
,
13
21
29
37
45
20
19
26
34
42
,
,
,
,
,
,
,
,
,
,
29
22
30
38
45
21
19
27
35
43
,
,
,
,
,
,
,
,
,
,

Related parts for AN2121