comparison vp8data.h @ 12255:7db147ea02c4 libavcodec

VP8: Inline traversing vp8_small_mvtree Much faster read_mv_component, slightly faster overall
author conrad
date Fri, 23 Jul 2010 21:46:25 +0000
parents 112b3a0db187
children e84378ff89ca
comparison
equal deleted inserted replaced
12254:17c151e1280a 12255:7db147ea02c4
108 { -VP8_MVMODE_NEAREST, 2 }, // '10' 108 { -VP8_MVMODE_NEAREST, 2 }, // '10'
109 { -VP8_MVMODE_NEAR, 3 }, // '110' 109 { -VP8_MVMODE_NEAR, 3 }, // '110'
110 { -VP8_MVMODE_NEW, -VP8_MVMODE_SPLIT } // '1110', '1111' 110 { -VP8_MVMODE_NEW, -VP8_MVMODE_SPLIT } // '1110', '1111'
111 }; 111 };
112 112
113 static const int8_t vp8_small_mvtree[7][2] = {
114 { 1, 4 },
115 { 2, 3 },
116 { -0, -1 }, // '000', '001'
117 { -2, -3 }, // '010', '011'
118 { 5, 6 },
119 { -4, -5 }, // '100', '101'
120 { -6, -7 } // '110', '111'
121 };
122
123 static const uint8_t vp8_mbsplits[5][16] = { 113 static const uint8_t vp8_mbsplits[5][16] = {
124 { 0, 0, 0, 0, 0, 0, 0, 0, 114 { 0, 0, 0, 0, 0, 0, 0, 0,
125 1, 1, 1, 1, 1, 1, 1, 1 }, 115 1, 1, 1, 1, 1, 1, 1, 1 },
126 { 0, 0, 1, 1, 0, 0, 1, 1, 116 { 0, 0, 1, 1, 0, 0, 1, 1,
127 0, 0, 1, 1, 0, 0, 1, 1 }, 117 0, 0, 1, 1, 0, 0, 1, 1 },