1 /* 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 /* 12 * crc.h 13 * 14 * Checksum functions 15 * 16 */ 17 18 #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CRC_H_ 19 #define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CRC_H_ 20 21 #include <stdint.h> 22 23 /**************************************************************************** 24 * WebRtcIsac_GetCrc(...) 25 * 26 * This function returns a 32 bit CRC checksum of a bit stream 27 * 28 * Input: 29 * - encoded : payload bit stream 30 * - no_of_word8s : number of 8-bit words in the bit stream 31 * 32 * Output: 33 * - crc : checksum 34 * 35 * Return value : 0 - Ok 36 * -1 - Error 37 */ 38 39 int WebRtcIsac_GetCrc(const int16_t* encoded, int no_of_word8s, uint32_t* crc); 40 41 #endif /* MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CRC_H_ */ 42