intdec_aec(unsignedchar*cpack,g2intlen,g2intnbits,g2intflags,g2intblock_size,g2intrsi,unsignedchar*cfld,g2intcfldlen)
Decode an AEC code stream specified in the CCSDS 121.0-B-3 Blue Book.
Parameterscpack 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.
Returns
• >0 Length of data from AEC decoder
• 0 Successful decode (AEC_OK)
• -1 AEC_CONF_ERROR
• -2 AEC_STREAM_ERROR
• -3 AEC_DATA_ERROR
• -4 AEC_MEM_ERROR
• -5 AEC_RSI_OFFSETS_ERROR
Author
Eric Engle
Date
2023-10-16
Definition at line 38 of file decenc_aec.c.
References LOG.
Referenced by aecunpack_int().
intenc_aec(unsignedchar*data,g2intctemplen,g2intnbits,g2intflags,g2intblock_size,g2intrsi,unsignedchar*aecbuf,g2int*aecbuflen)
Encode data into an AEC code stream specified in the CCSDS 121.0-B-3 Blue Book.
Parametersdata 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.
Returns
• >0 Exact length of AEC encoded data.
• 0 Successful decode (AEC_OK)
• -1 AEC_CONF_ERROR
• -2 AEC_STREAM_ERROR
• -3 AEC_DATA_ERROR
• -4 AEC_MEM_ERROR
• -5 AEC_RSI_OFFSETS_ERROR
Author
Eric Engle
Date
2023-10-16
Definition at line 108 of file decenc_aec.c.
References LOG.
Referenced by aecpack_int().