AN2121 Freescale Semiconductor / Motorola, AN2121 Datasheet - Page 36

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
#endif
#ifdef WRITE_BYTES
#endif
#ifdef NO_WRITE
#endif
} /* TransmitByte */
/* ======================================================================== */
ArithEnc.h
/*
*/
#ifndef _ARITH_ENC_H
#define _ARITH_ENC_H
#include "types.h"
void ArithEncInit();
void ArithEncEncode(uint8 D, uint16 CX);
void ArithEncFlush(void);
/* Special context labels */
#define RUNLENGTH_CX
#define UNIFORM_CX
#endif /* _ARITH_ENC_H */
/* ======================================================================== */
FileIO.h
/*
*/
#ifndef _FILE_IO_H
#define _FILE_IO_H
void TransmitByte(uint8 byte);
uint8 ReceiveByte(FILE* inFile);
#endif /* _FILE_IO_H */
/* ======================================================================== */
types.h
/*
*/
#ifndef _TYPES_H
#define _TYPES_H
32
The declaration of functions that perform MQ arithmetic encoding
as defined in Annex C of JPEG2000.
Handle the input and output of bytes.
Define some data types that represent different precisions.
author Matthew Leditschke
version $Revision: 1.1 $
author Matthew Leditschke
version $Revision: 1.2 $
author Matthew Leditschke
version $Revision: 1.2 $
}
byte = getc(inFile);
if (feof(inFile))
fprintf(stderr, "Nothing was written, so there is nothing to read.\n");
exit(EXIT_FAILURE);
return byte;
if (feof(inFile))
byte = 0xFF;
byte |= 0x01;
JPEG2000 Arithmetic Encoding on the StarCore SC140
Freescale Semiconductor, Inc.
17
18
For More Information On This Product,
Go to: www.freescale.com

Related parts for AN2121