Mercurial > libavcodec.hg
comparison rangecoder.c @ 6164:ecaf5226e9b0 libavcodec
Consistently use TEST as the preprocessor condition to enable test code.
| author | diego |
|---|---|
| date | Sun, 20 Jan 2008 23:53:51 +0000 |
| parents | bd5f4dc81fbe |
| children | 43dd78019c14 |
comparison
equal
deleted
inserted
replaced
| 6163:e994af44e0bd | 6164:ecaf5226e9b0 |
|---|---|
| 107 assert(c->range >= 0x100); | 107 assert(c->range >= 0x100); |
| 108 | 108 |
| 109 return c->bytestream - c->bytestream_start; | 109 return c->bytestream - c->bytestream_start; |
| 110 } | 110 } |
| 111 | 111 |
| 112 #if 0 //selftest | 112 #ifdef TEST |
| 113 #define SIZE 10240 | 113 #define SIZE 10240 |
| 114 int main(void){ | 114 int main(void){ |
| 115 RangeCoder c; | 115 RangeCoder c; |
| 116 uint8_t b[9*SIZE]; | 116 uint8_t b[9*SIZE]; |
| 117 uint8_t r[9*SIZE]; | 117 uint8_t r[9*SIZE]; |
| 146 STOP_TIMER("get_rac") | 146 STOP_TIMER("get_rac") |
| 147 } | 147 } |
| 148 | 148 |
| 149 return 0; | 149 return 0; |
| 150 } | 150 } |
| 151 #endif | 151 #endif /* TEST */ |
