Mercurial > libavcodec.hg
comparison mlp.c @ 10414:41bd795ae40b libavcodec
mlp: Use smaller CRC tables if CONFIG_SMALL.
Patch by Reimar.
author | ramiro |
---|---|
date | Fri, 16 Oct 2009 16:03:26 +0000 |
parents | 964d08f7b46f |
children |
comparison
equal
deleted
inserted
replaced
10413:8a137661f31e | 10414:41bd795ae40b |
---|---|
40 {0x03, 3}, {0x05, 4}, {0x09, 5}, {0x11, 6}, {0x21, 7}, {0x41, 8}, {0x81, 9}, | 40 {0x03, 3}, {0x05, 4}, {0x09, 5}, {0x11, 6}, {0x21, 7}, {0x41, 8}, {0x81, 9}, |
41 } | 41 } |
42 }; | 42 }; |
43 | 43 |
44 static int crc_init = 0; | 44 static int crc_init = 0; |
45 static AVCRC crc_63[1024]; | 45 #if CONFIG_SMALL |
46 static AVCRC crc_1D[1024]; | 46 #define CRC_TABLE_SIZE 257 |
47 static AVCRC crc_2D[1024]; | 47 #else |
48 #define CRC_TABLE_SIZE 1024 | |
49 #endif | |
50 static AVCRC crc_63[CRC_TABLE_SIZE]; | |
51 static AVCRC crc_1D[CRC_TABLE_SIZE]; | |
52 static AVCRC crc_2D[CRC_TABLE_SIZE]; | |
48 | 53 |
49 av_cold void ff_mlp_init_crc(void) | 54 av_cold void ff_mlp_init_crc(void) |
50 { | 55 { |
51 if (!crc_init) { | 56 if (!crc_init) { |
52 av_crc_init(crc_63, 0, 8, 0x63, sizeof(crc_63)); | 57 av_crc_init(crc_63, 0, 8, 0x63, sizeof(crc_63)); |