comparison 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
comparison
equal deleted inserted replaced
7145:8c367046eb81 7146:d3a1ac3e227b
27 * bitstream api. 27 * bitstream api.
28 */ 28 */
29 29
30 #include "avcodec.h" 30 #include "avcodec.h"
31 #include "bitstream.h" 31 #include "bitstream.h"
32
33 const uint8_t ff_log2_run[32]={
34 0, 0, 0, 0, 1, 1, 1, 1,
35 2, 2, 2, 2, 3, 3, 3, 3,
36 4, 4, 5, 5, 6, 6, 7, 7,
37 8, 9,10,11,12,13,14,15
38 };
32 39
33 /** 40 /**
34 * Same as av_mallocz_static(), but does a realloc. 41 * Same as av_mallocz_static(), but does a realloc.
35 * 42 *
36 * @param[in] ptr The block of memory to reallocate. 43 * @param[in] ptr The block of memory to reallocate.