comparison vp8data.h @ 12350:db60aff8eeef libavcodec

VP8: unroll MB mode decoding tree ~50% faster MB mode decoding, plus eliminate a costly switch.
author darkshikari
date Tue, 03 Aug 2010 10:24:28 +0000
parents a18ab740d2db
children 3e02e2306209
comparison
equal deleted inserted replaced
12349:f618c62a6ddb 12350:db60aff8eeef
101 { 60, 56, 128, 65 }, 101 { 60, 56, 128, 65 },
102 { 159, 134, 128, 34 }, 102 { 159, 134, 128, 34 },
103 { 234, 188, 128, 28 }, 103 { 234, 188, 128, 28 },
104 }; 104 };
105 105
106 static const int8_t vp8_pred16x16_tree_mvinter[4][2] = {
107 { -VP8_MVMODE_ZERO, 1 }, // '0'
108 { -VP8_MVMODE_NEAREST, 2 }, // '10'
109 { -VP8_MVMODE_NEAR, 3 }, // '110'
110 { -VP8_MVMODE_NEW, -VP8_MVMODE_SPLIT } // '1110', '1111'
111 };
112
113 static const uint8_t vp8_mbsplits[5][16] = { 106 static const uint8_t vp8_mbsplits[5][16] = {
114 { 0, 0, 0, 0, 0, 0, 0, 0, 107 { 0, 0, 0, 0, 0, 0, 0, 0,
115 1, 1, 1, 1, 1, 1, 1, 1 }, 108 1, 1, 1, 1, 1, 1, 1, 1 },
116 { 0, 0, 1, 1, 0, 0, 1, 1, 109 { 0, 0, 1, 1, 0, 0, 1, 1,
117 0, 0, 1, 1, 0, 0, 1, 1 }, 110 0, 0, 1, 1, 0, 0, 1, 1 },