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 WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CRC_H_
19#define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CRC_H_
20
21#include "typedefs.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
39WebRtc_Word16 WebRtcIsac_GetCrc(
40    const WebRtc_Word16* encoded,
41    WebRtc_Word16        no_of_word8s,
42    WebRtc_UWord32*      crc);
43
44
45
46#endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CRC_H_ */
47