Mercurial > libavcodec.hg
comparison vp8data.h @ 12352:f0ea08f4599b libavcodec
VP8: unroll partition type decoding tree
~34% faster partition type decoding.
author | darkshikari |
---|---|
date | Tue, 03 Aug 2010 11:10:58 +0000 |
parents | 3e02e2306209 |
children | d596749eb0bc |
comparison
equal
deleted
inserted
replaced
12351:3e02e2306209 | 12352:f0ea08f4599b |
---|---|
113 { 0, 8 }, { 0, 2 }, { 0, 2, 8, 10 }, | 113 { 0, 8 }, { 0, 2 }, { 0, 2, 8, 10 }, |
114 { 0, 1, 2, 3, 4, 5, 6, 7, | 114 { 0, 1, 2, 3, 4, 5, 6, 7, |
115 8, 9, 10, 11, 12, 13, 14, 15 } | 115 8, 9, 10, 11, 12, 13, 14, 15 } |
116 }; | 116 }; |
117 | 117 |
118 static const int8_t vp8_mbsplit_tree[3][2] = { | |
119 { -VP8_SPLITMVMODE_4x4, 1 }, // '0' - 16 individual MVs | |
120 { -VP8_SPLITMVMODE_8x8, 2 }, // '10' - quarter-based MVs | |
121 { -VP8_SPLITMVMODE_16x8, // '110' - top/bottom MVs | |
122 -VP8_SPLITMVMODE_8x16 } // '111' - left/right MVs | |
123 }; | |
124 static const uint8_t vp8_mbsplit_count[4] = { 2, 2, 4, 16 }; | 118 static const uint8_t vp8_mbsplit_count[4] = { 2, 2, 4, 16 }; |
125 static const uint8_t vp8_mbsplit_prob[3] = { 110, 111, 150 }; | 119 static const uint8_t vp8_mbsplit_prob[3] = { 110, 111, 150 }; |
126 | 120 |
127 static const uint8_t vp8_submv_prob[5][3] = { | 121 static const uint8_t vp8_submv_prob[5][3] = { |
128 { 147, 136, 18 }, | 122 { 147, 136, 18 }, |