comparison vp3data.h @ 2719:5444d77adcbe libavcodec

another bitstream extraction to optimize: fixed-length motion vectors
author melanson
date Sat, 21 May 2005 01:12:41 +0000
parents 9c1a436dac6b
children 6c44e5c752f1
comparison
equal deleted inserted replaced
2718:158dc437c783 2719:5444d77adcbe
159 3, -3, 159 3, -3,
160 4, -4, 5, -5, 6, -6, 7, -7, 160 4, -4, 5, -5, 6, -6, 7, -7,
161 8, -8, 9, -9, 10, -10, 11, -11, 12, -12, 13, -13, 14, -14, 15, -15, 161 8, -8, 9, -9, 10, -10, 11, -11, 12, -12, 13, -13, 14, -14, 15, -15,
162 16, -16, 17, -17, 18, -18, 19, -19, 20, -20, 21, -21, 22, -22, 23, -23, 162 16, -16, 17, -17, 18, -18, 19, -19, 20, -20, 21, -21, 22, -22, 23, -23,
163 24, -24, 25, -25, 26, -26, 27, -27, 28, -28, 29, -29, 30, -30, 31, -31 163 24, -24, 25, -25, 26, -26, 27, -27, 28, -28, 29, -29, 30, -30, 31, -31
164 };
165
166 static const int8_t fixed_motion_vector_table[64] = {
167 0, 0, 1, -1, 2, -2, 3, -3,
168 4, -4, 5, -5, 6, -6, 7, -7,
169 8, -8, 9, -9, 10, -10, 11, -11,
170 12, -12, 13, -13, 14, -14, 15, -15,
171 16, -16, 17, -17, 18, -18, 19, -19,
172 20, -20, 21, -21, 22, -22, 23, -23,
173 24, -24, 25, -25, 26, -26, 27, -27,
174 28, -28, 29, -29, 30, -30, 31, -31
164 }; 175 };
165 176
166 /* only tokens 0..6 indicate eob runs */ 177 /* only tokens 0..6 indicate eob runs */
167 static const int eob_run_base[7] = { 178 static const int eob_run_base[7] = {
168 1, 2, 3, 4, 8, 16, 0 179 1, 2, 3, 4, 8, 16, 0