Go to the documentation of this file.
29 #if !defined(_SPANDSP_DC_RESTORE_H_)
30 #define _SPANDSP_DC_RESTORE_H_
62 #if defined(__cplusplus)
75 dc->state += ((((int32_t) sample << 15) - dc->state) >> 14);
76 return (int16_t) (sample - (dc->state >> 15));
82 return (int16_t) (dc->state >> 15);
86 #if defined(__cplusplus)
uint16_t crc_itu16_bits(uint8_t buf, int len, uint16_t crc)
Calculate the ITU/CCITT CRC-16 value of some bits from a byte.
Definition: crc.c:163
int crc_itu32_check(const uint8_t *buf, int len)
Check the ITU/CCITT CRC-32 value in a frame.
Definition: crc.c:105
int crc_itu16_append(uint8_t *buf, int len)
Append an ITU/CCITT CRC-16 value to a frame.
Definition: crc.c:179
int crc_itu32_append(uint8_t *buf, int len)
Append an ITU/CCITT CRC-32 value to a frame.
Definition: crc.c:86
int crc_itu16_check(const uint8_t *buf, int len)
Check the ITU/CCITT CRC-16 value in a frame.
Definition: crc.c:196
uint16_t crc_itu16_calc(const uint8_t *buf, int len, uint16_t crc)
Calculate the ITU/CCITT CRC-16 value in buffer by whole bytes.
Definition: crc.c:153
Definition: dc_restore.h:57