Mercurial > libavcodec.hg
comparison vp8data.h @ 12358:d596749eb0bc libavcodec
VP8: slightly faster DCT coefficient probability update
author | darkshikari |
---|---|
date | Tue, 03 Aug 2010 23:21:47 +0000 |
parents | f0ea08f4599b |
children |
comparison
equal
deleted
inserted
replaced
12357:71fbfa6cda8f | 12358:d596749eb0bc |
---|---|
291 static const uint8_t vp8_coeff_band[16] = | 291 static const uint8_t vp8_coeff_band[16] = |
292 { | 292 { |
293 0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7 | 293 0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7 |
294 }; | 294 }; |
295 | 295 |
296 /* Inverse of vp8_coeff_band: mappings of bands to coefficient indexes. | |
297 * Each list is -1-terminated. */ | |
298 static const int8_t vp8_coeff_band_indexes[8][10] = | |
299 { | |
300 {0, -1}, | |
301 {1, -1}, | |
302 {2, -1}, | |
303 {3, -1}, | |
304 {5, -1}, | |
305 {6, -1}, | |
306 {4, 7, 8, 9, 10, 11, 12, 13, 14, -1}, | |
307 {15, -1} | |
308 }; | |
309 | |
296 static const uint8_t vp8_dct_cat1_prob[] = { 159, 0 }; | 310 static const uint8_t vp8_dct_cat1_prob[] = { 159, 0 }; |
297 static const uint8_t vp8_dct_cat2_prob[] = { 165, 145, 0 }; | 311 static const uint8_t vp8_dct_cat2_prob[] = { 165, 145, 0 }; |
298 static const uint8_t vp8_dct_cat3_prob[] = { 173, 148, 140, 0 }; | 312 static const uint8_t vp8_dct_cat3_prob[] = { 173, 148, 140, 0 }; |
299 static const uint8_t vp8_dct_cat4_prob[] = { 176, 155, 140, 135, 0 }; | 313 static const uint8_t vp8_dct_cat4_prob[] = { 176, 155, 140, 135, 0 }; |
300 static const uint8_t vp8_dct_cat5_prob[] = { 180, 157, 141, 134, 130, 0 }; | 314 static const uint8_t vp8_dct_cat5_prob[] = { 180, 157, 141, 134, 130, 0 }; |