AN2121 Freescale Semiconductor / Motorola, AN2121 Datasheet - Page 31

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
} /* ArithEncInit */
/* ======================================================================== */
/*
*/
static inline void ByteOutRight(void)
{
} /* ByteOutRight */
/* ======================================================================== */
/*
*/
static inline void ByteOutLeft(void)
{
} /* ByteOutLeft */
/* ======================================================================== */
/*
*/
static inline void ByteOut(void)
{
Perform the bottom right box of Figure C-9.
Perform the bottom left box of Figure C-9.
Write out bytes, allowing for 0xFF stuffing.
See Section C.2.7 and Figure C-9.
if (!firstByte)
else
if (!firstByte)
else
TransmitByte(B);
firstByte = 0;
TransmitByte(B);
firstByte = 0;
for (i = 0; i <= MAXCONTEXT; i++)
{
}
contexts[UNIFORM_CX].I = 46;
contexts[RUNLENGTH_CX].I = 3;
contexts[0].I = 4;
B = (uint8)((C >> 20) & 0xFF);
C = C & 0xFFFFF;
CT = 7;
B = (uint8)((C >> 19) & 0xFF);
C = C & 0x7FFFF;
CT = 8;
/* This test sequence might speed up process */
if (B != 0xFF)
{
{
if (C < 0x8000000)
else
contexts[i].I = 0;
contexts[i].MPS = 0;
B += 1;
if (B != 0xFF)
else
{
ByteOutLeft();
Freescale Semiconductor, Inc.
ByteOutLeft();
Appendix A. Arithmetic Encoder: C Code
For More Information On This Product,
C = C & 0x7FFFFFF;
Go to: www.freescale.com
27

Related parts for AN2121