6 |
#include "../encoder.h" |
#include "../encoder.h" |
7 |
#include "../utils/mbfunctions.h" |
#include "../utils/mbfunctions.h" |
8 |
#include "../image/interpolate8x8.h" |
#include "../image/interpolate8x8.h" |
|
#include "../image/qpel.h" |
|
9 |
#include "../utils/timer.h" |
#include "../utils/timer.h" |
10 |
#include "motion.h" |
#include "motion.h" |
11 |
|
|
157 |
|
|
158 |
if (quarterpel) |
if (quarterpel) |
159 |
{ |
{ |
160 |
dx = (dx >> 2) + roundtab_78[dx & 0x7]; |
dx /= 2; |
161 |
dy = (dy >> 2) + roundtab_78[dy & 0x7]; |
dy /= 2; |
162 |
} |
} |
163 |
else { |
|
164 |
dx = (dx >> 1) + roundtab_79[dx & 0x3]; |
dx = (dx >> 1) + roundtab_79[dx & 0x3]; |
165 |
dy = (dy >> 1) + roundtab_79[dy & 0x3]; |
dy = (dy >> 1) + roundtab_79[dy & 0x3]; |
|
} |
|
166 |
|
|
167 |
/* uv-block-based compensation */ |
/* uv-block-based compensation */ |
168 |
transfer_8to16sub(&dct_codes[4 * 64], |
transfer_8to16sub(&dct_codes[4 * 64], |