/* for intra blocks apply the dc slant transform */
/* for inter - perform the motion compensation without delta */
if (is_intra) {
- if (band->dc_transform)
band->dc_transform(&prev_dc, band->buf + buf_offs,
band->pitch, blk_size);
- } else
- mc_no_delta_func(band->buf + buf_offs,
- band->ref_buf + buf_offs + mv_y * band->pitch + mv_x,
- band->pitch, mc_type);
+ } else {
+ ret = ivi_mc(mc_no_delta_func, band->buf, band->ref_buf,
+ buf_offs, mv_x, mv_y, band->pitch, mc_type);
+ if (ret < 0)
+ return ret;
+ }
}
cbp >>= 1;