libdvbv5
1.8.0
Library to work with Digital TV devices on Linux
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
lib
include
libdvbv5
crc32.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011-2012 - Mauro Carvalho Chehab
3
* Copyright (c) 2012-2014 - Andre Roth <neolynx@gmail.com>
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation version 2
8
* of the License.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
* Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19
*
20
*/
21
34
#ifndef _CRC32_H
35
#define _CRC32_H
36
37
#include <stdint.h>
38
#include <unistd.h>
/* size_t */
39
40
#ifdef __cplusplus
41
extern
"C"
{
42
#endif
43
52
uint32_t
dvb_crc32
(uint8_t *data,
size_t
datalen, uint32_t crc);
53
54
#ifdef __cplusplus
55
}
56
#endif
57
58
#endif
59
dvb_crc32
uint32_t dvb_crc32(uint8_t *data, size_t datalen, uint32_t crc)
Calculates the crc-32 as defined at the MPEG-TS specs.
Generated by
1.8.9.1