Mercurial > libavcodec.hg
comparison vp8data.h @ 12336:e84378ff89ca libavcodec
VP8: simplify token_prob handling
~1.5% faster decode_block_coeffs
author | darkshikari |
---|---|
date | Mon, 02 Aug 2010 05:20:38 +0000 |
parents | 7db147ea02c4 |
children | a18ab740d2db |
comparison
equal
deleted
inserted
replaced
12335:3ce688a83319 | 12336:e84378ff89ca |
---|---|
312 { 1, 2 }, | 312 { 1, 2 }, |
313 { -0, -1 }, // '00', '01' | 313 { -0, -1 }, // '00', '01' |
314 { -2, -3 }, // '10', '11' | 314 { -2, -3 }, // '10', '11' |
315 }; | 315 }; |
316 | 316 |
317 static const uint8_t vp8_coeff_band[16] = | 317 /* Padded by one byte to allow overreads */ |
318 { | 318 static const uint8_t vp8_coeff_band[17] = |
319 0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7 | 319 { |
320 0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0 | |
320 }; | 321 }; |
321 | 322 |
322 static const uint8_t vp8_dct_cat1_prob[] = { 159, 0 }; | 323 static const uint8_t vp8_dct_cat1_prob[] = { 159, 0 }; |
323 static const uint8_t vp8_dct_cat2_prob[] = { 165, 145, 0 }; | 324 static const uint8_t vp8_dct_cat2_prob[] = { 165, 145, 0 }; |
324 static const uint8_t vp8_dct_cat3_prob[] = { 173, 148, 140, 0 }; | 325 static const uint8_t vp8_dct_cat3_prob[] = { 173, 148, 140, 0 }; |