NCEPLIBS-g2c
1.8.0
|
Decode and encode functions for AEC compression. More...
Go to the source code of this file.
Functions | |
int | dec_aec (unsigned char *cpack, g2int len, g2int nbits, g2int flags, g2int block_size, g2int rsi, unsigned char *cfld, g2int cfldlen) |
This Function decodes an AEC code stream specified in the CCSDS 121.0-B-3 Blue Book. More... | |
int | enc_aec (unsigned char *data, g2int ctemplen, g2int nbits, g2int flags, g2int block_size, g2int rsi, unsigned char *aecbuf, g2int *aecbuflen) |
This Function encodes data into an AEC code stream specified in the CCSDS 121.0-B-3 Blue Book. More... | |
Decode and encode functions for AEC compression.
stream
Program History Log
Date | Programmer | Comments |
---|---|---|
2023-10-16 | Engle | Initial |
Definition in file decenc_aec.c.
int dec_aec | ( | unsigned char * | cpack, |
g2int | len, | ||
g2int | nbits, | ||
g2int | flags, | ||
g2int | block_size, | ||
g2int | rsi, | ||
unsigned char * | cfld, | ||
g2int | cfldlen | ||
) |
This Function decodes an AEC code stream specified in the CCSDS 121.0-B-3 Blue Book.
cpack | Pointer to buffer that holds the input AEC code stream. |
len | Length (in bytes) of the buffer that holds the input AEC code stream. |
nbits | CCSDS bits per sample. |
flags | CCSDS compression options mask. |
block_size | CCSDS block size. |
rsi | CCSDS reference sample interval. |
cfld | Pointer to output buffer from the AEC decoder. |
cfldlen | length of output buffer. |
Definition at line 43 of file decenc_aec.c.
References LOG.
Referenced by aecunpack_int().
int enc_aec | ( | unsigned char * | data, |
g2int | ctemplen, | ||
g2int | nbits, | ||
g2int | flags, | ||
g2int | block_size, | ||
g2int | rsi, | ||
unsigned char * | aecbuf, | ||
g2int * | aecbuflen | ||
) |
This Function encodes data into an AEC code stream specified in the CCSDS 121.0-B-3 Blue Book.
data | Pointer to buffer that holds the input data. |
ctemplen | Length (in bytes) of the buffer that holds the input data.. |
nbits | CCSDS bits per sample. |
flags | CCSDS compression options mask. |
block_size | CCSDS block size. |
rsi | CCSDS reference sample interval. |
aecbuf | Pointer to buffer holding the AEC encoded stream. |
aecbuflen | Length of AEC code stream. |
Definition at line 111 of file decenc_aec.c.
References LOG.
Referenced by aecpack_int().