Mercurial > libavcodec.hg
comparison jpegls.c @ 7146:d3a1ac3e227b libavcodec
move ff_log2_run to bitstream.c and reuse in ffv1.c
author | stefang |
---|---|
date | Thu, 26 Jun 2008 16:39:21 +0000 |
parents | ddb28de352bb |
children | 7df2cf766685 |
comparison
equal
deleted
inserted
replaced
7145:8c367046eb81 | 7146:d3a1ac3e227b |
---|---|
24 * @file jpegls.c | 24 * @file jpegls.c |
25 * JPEG-LS common code. | 25 * JPEG-LS common code. |
26 */ | 26 */ |
27 | 27 |
28 #include "jpegls.h" | 28 #include "jpegls.h" |
29 | |
30 const uint8_t ff_log2_run[32]={ | |
31 0, 0, 0, 0, 1, 1, 1, 1, | |
32 2, 2, 2, 2, 3, 3, 3, 3, | |
33 4, 4, 5, 5, 6, 6, 7, 7, | |
34 8, 9,10,11,12,13,14,15 | |
35 }; | |
36 | 29 |
37 void ff_jpegls_init_state(JLSState *state){ | 30 void ff_jpegls_init_state(JLSState *state){ |
38 int i; | 31 int i; |
39 | 32 |
40 state->twonear = state->near * 2 + 1; | 33 state->twonear = state->near * 2 + 1; |