daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Pullback MV (couldn't find it in the spec, see vc1crop.c in refdec) */
  2.     if (v->fcm == 1) {  // not sure if needed for other types of picture
  3.         int qx, qy;
  4.         int width = s->avctx->coded_width;
  5.         int height = s->avctx->coded_height >> 1;
  6.         qx = (s->mb_x * 16) + (mx >> 2);
  7.         qy = (s->mb_y *  8) + (my >> 3);
  8.         av_log(s->avctx, AV_LOG_DEBUG, "qx = %d, qy = %d\n", qx, qy);
  9.  
  10.         if (qx < -17)
  11.             mx -= 4 * (qx + 17);
  12.         else if (qx > width)
  13.             mx -= 4 * (qx - width);
  14.         if (qy < -18)
  15.             my -= 8 * (qy + 18);
  16.         else if (qy > height + 1)
  17.             my -= 8 * (qy - height - 1);
  18.         av_log(s->avctx, AV_LOG_DEBUG, "Luma MV Post-Pullback: mx = %d, my = %d\n", mx, my);
  19.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top