Mercurial > libavcodec.hg
diff bitstream.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 | 7128fa020b0e |
children | 68e959302527 |
line wrap: on
line diff
--- a/bitstream.c Thu Jun 26 11:25:42 2008 +0000 +++ b/bitstream.c Thu Jun 26 16:39:21 2008 +0000 @@ -30,6 +30,13 @@ #include "avcodec.h" #include "bitstream.h" +const uint8_t ff_log2_run[32]={ + 0, 0, 0, 0, 1, 1, 1, 1, + 2, 2, 2, 2, 3, 3, 3, 3, + 4, 4, 5, 5, 6, 6, 7, 7, + 8, 9,10,11,12,13,14,15 +}; + /** * Same as av_mallocz_static(), but does a realloc. *