Mercurial > libavutil.hg
comparison crc.c @ 637:683a6dbdd2b2 libavutil
spelling/grammar/consistency review part III
author | diego |
---|---|
date | Wed, 28 Jan 2009 23:16:49 +0000 |
parents | 8c48a1b999a3 |
children | 63e3c82b92d9 |
comparison
equal
deleted
inserted
replaced
636:c04808220c83 | 637:683a6dbdd2b2 |
---|---|
38 }; | 38 }; |
39 static AVCRC av_crc_table[AV_CRC_MAX][257]; | 39 static AVCRC av_crc_table[AV_CRC_MAX][257]; |
40 #endif | 40 #endif |
41 | 41 |
42 /** | 42 /** |
43 * Inits a crc table. | 43 * Initializes a CRC table. |
44 * @param ctx must be an array of sizeof(AVCRC)*257 or sizeof(AVCRC)*1024 | 44 * @param ctx must be an array of size sizeof(AVCRC)*257 or sizeof(AVCRC)*1024 |
45 * @param cts_size size of ctx in bytes | 45 * @param cts_size size of ctx in bytes |
46 * @param le if 1, lowest bit represents coefficient for highest exponent | 46 * @param le If 1, the lowest bit represents the coefficient for the highest |
47 * of corresponding polynomial (both for poly and actual CRC). | 47 * exponent of the corresponding polynomial (both for poly and |
48 * If 0, you must swap the crc parameter and the result of av_crc | 48 * actual CRC). |
49 * If 0, you must swap the CRC parameter and the result of av_crc | |
49 * if you need the standard representation (can be simplified in | 50 * if you need the standard representation (can be simplified in |
50 * most cases to e.g. bswap16): | 51 * most cases to e.g. bswap16): |
51 * bswap_32(crc << (32-bits)) | 52 * bswap_32(crc << (32-bits)) |
52 * @param bits number of bits for the CRC | 53 * @param bits number of bits for the CRC |
53 * @param poly generator polynomial without the x**bits coefficient, in the | 54 * @param poly generator polynomial without the x**bits coefficient, in the |