comparison mlp.h @ 8248:45cfe1d44e86 libavcodec

mlp: initialize all CRC tables in a common function. This way the decoder does not have to depend on the parser being initialized before. Patch by Laurent Aimar <fenrir at via dot ecp dot fr>.
author ramiro
date Wed, 03 Dec 2008 01:14:06 +0000
parents c4a4495715dd
children 18737839ed27
comparison
equal deleted inserted replaced
8247:e8cb66bdae99 8248:45cfe1d44e86
104 /** XOR together all the bytes of a buffer. 104 /** XOR together all the bytes of a buffer.
105 * Does this belong in dspcontext? 105 * Does this belong in dspcontext?
106 */ 106 */
107 uint8_t ff_mlp_calculate_parity(const uint8_t *buf, unsigned int buf_size); 107 uint8_t ff_mlp_calculate_parity(const uint8_t *buf, unsigned int buf_size);
108 108
109 int ff_mlp_init_crc2D(AVCodecParserContext *s);
110
111 void ff_mlp_init_crc(); 109 void ff_mlp_init_crc();
112 110
113 /** XOR four bytes into one. */ 111 /** XOR four bytes into one. */
114 static inline uint8_t xor_32_to_8(uint32_t value) 112 static inline uint8_t xor_32_to_8(uint32_t value)
115 { 113 {