AN2121 Freescale Semiconductor / Motorola, AN2121 Datasheet - Page 33

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
} /* ArithEncEncode */
/* ======================================================================== */
/*
*/
void ArithEncFlush(void)
{
} /* ArithEncFlush */
/* ======================================================================== */
Flush the output of the arithmetic encoding process.
This must be called once all of the data bits have been sent through the
encoder.
See Section C.2.9 and Figure C-11.
}
else
{
}
pCX->I = I;
pCX->MPS = MPS;
uint32 tempC;
/* SETBITS (Figure C-12) */
tempC = C + A;
C |= 0xFFFF;
if (C >= tempC)
C <<= CT;
ByteOut();
C <<= CT;
ByteOut();
if (B != 0xFF)
ArithEncInit();
} /**/
/* CodeLPS */
A -= QeI;
/* Doing this test first might speed up process */
if (A >= QeI)
else
I = NLPS[I];
Renorme();
C -= 0x8000;
TransmitByte(B);
Freescale Semiconductor, Inc.
C += QeI;
Appendix A. Arithmetic Encoder: C Code
For More Information On This Product,
if (A >= QeI)
else
I = NMPS[I];
Renorme();
A = QeI;
if (SWITCH[I])
MPS = 1 - MPS;
Go to: www.freescale.com
C += QeI;
A = QeI;
29

Related parts for AN2121