GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LDT / V0-3-2
Constituent: encdec     Tag: mv2304
#include "APC.h"
#include "LDT/APE.h"
#include "ffs.h"
#include "bswp.h"
Include dependency graph for APE.c:
Typedefs | |
typedef enum _APE_symType | APE_symType |
Typedef for enum _APE_symType. | |
Enumerations | |
enum | _APE_symType { APE_SYMTYPE_K_IMMEDIATE = -1, APE_SYMTYPE_K_ARRAY_BYTE = 0, APE_SYMTYPE_K_ARRAY_SHORT = 1 } |
PBS/BSWP.ih"The symbol type being encoded. More... | |
Functions | |
static __inline unsigned long long | scale (APE_cv cv, const unsigned int table[2]) |
Scales the input lo and hi condition value/limits using the table values. | |
static __inline unsigned long long int | reduce_h01 (APE_cv cv, int cnt) |
Reduces the specified condition values when the both the lo and hi limits lie in the same half, i.e. either both are in the lower half or both are in the upper half. | |
static __inline unsigned long long int | reduce_q12 (APE_cv cv) |
Reduces the specified condition values when the lo and hi straddle the mid-point, i.e. the lo limit is in Q1 and the hi limit is in Q2. | |
static __inline int | encode (APE_etx *etx, const unsigned int *table, const void *syms, int nsyms, int symType) |
Encodes an
| |
static __inline int | encode_list (APE_etx *etx, const unsigned int **tables, const void *syms, int nsyms, int symType) |
Encodes an
| |
static int | set (APE_etx *etx, unsigned char *out, unsigned int boff, const unsigned char *max) |
Sets the output context. | |
int | APE_encode (APE_etx *etx, const unsigned int *table, unsigned int sym) |
Encodes one symbol. | |
int | APE_bencode (APE_etx *etx, const unsigned int *table, const unsigned char *syms, int nsyms) |
Encodes an array of unsigned char symbols. | |
int | APE_blencode (APE_etx *etx, const unsigned int **tables, unsigned char const *syms, int nsyms) |
Encodes an array of unsigned char symbols. | |
int | APE_sencode (APE_etx *etx, const unsigned int *table, const unsigned short *syms, int nsyms) |
Encodes an array of unsigned char symbols. | |
int | APE_slencode (APE_etx *etx, const unsigned int **tables, unsigned short const *syms, int nsyms) |
Encodes an array of unsigned short integer symbols each with their own table. | |
int | APE_reset (APE_etx *etx, unsigned char *out, unsigned int boff, const unsigned char *max) |
Resets the output context. | |
int | APE_start (APE_etx *etx, unsigned char *out, unsigned int boff, const unsigned char *max) |
Initializes the encoding context. | |
unsigned int | APE_bcompress (unsigned char *out, unsigned int boff, unsigned char *max, const unsigned int *table, const unsigned char *in, int cnt, int *unencoded) |
Convenience routine to compress a byte stream. | |
int | APE_finish (APE_etx *etx) |
Finishes the encoding by flushing out any currently buffered bits. |
|
PBS/BSWP.ih"The symbol type being encoded.
|
|
Convenience routine to compress a byte stream.
|
|
Encodes an array of unsigned char symbols.
|
|
Encodes an array of unsigned char symbols.
|
|
Encodes one symbol.
|
|
Finishes the encoding by flushing out any currently buffered bits.
If there is enough room, the number of encoded bits is returned as a positive number. |
|
Resets the output context.
|
|
Encodes an array of unsigned char symbols.
|
|
Encodes an array of unsigned short integer symbols each with their own table.
|
|
Initializes the encoding context.
|
|
Encodes an
|
|
Encodes an
|
|
Reduces the specified condition values when the both the lo and hi limits lie in the same half, i.e. either both are in the lower half or both are in the upper half.
|
|
Reduces the specified condition values when the lo and hi straddle the mid-point, i.e. the lo limit is in Q1 and the hi limit is in Q2.
|
|
Scales the input lo and hi condition value/limits using the table values.
|
|
Sets the output context.
|