FFmpeg
|
#include "config.h"
#include "thread.h"
#include "avassert.h"
#include "bswap.h"
#include "crc.h"
#include "error.h"
Go to the source code of this file.
Macros | |
#define | CRC_TABLE_SIZE 1024 |
#define | DECLARE_CRC_INIT_TABLE_ONCE(id, le, bits, poly) |
#define | CRC_INIT_TABLE_ONCE(id) ff_thread_once(&id ## _once_control, id ## _init_table_once) |
Functions | |
int | av_crc_init (AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size) |
Initialize a CRC table. More... | |
const AVCRC * | av_crc_get_table (AVCRCId crc_id) |
Get an initialized standard CRC table. More... | |
uint32_t | av_crc (const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length) |
Calculate the CRC of a block. More... | |
Variables | |
static AVCRC | av_crc_table [AV_CRC_MAX][CRC_TABLE_SIZE] |
#define CRC_INIT_TABLE_ONCE | ( | id | ) | ff_thread_once(&id ## _once_control, id ## _init_table_once) |
|
static |
Definition at line 320 of file crc.c.
Referenced by av_crc_get_table().