Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. int MotionCompensator::GetRefPixelLuma(int x, int y)
  2. {
  3. int index = x/16 + ref_width*(y/16);
  4. return reference_frame->getMacroblock(index)->luma[y%16][x%16];
  5. }
  6.  
  7. int MotionCompensator::GetRefPixelCb(int x, int y)
  8. {
  9. int index = x/16 + ref_width*(y/16);
  10. return reference_frame->getMacroblock(index)->cb[y%16][x%16];
  11. }
  12.  
  13. int MotionCompensator::GetRefPixelCr(int x, int y)
  14. {
  15. int index = x/16 + ref_width*(y/16);
  16. return reference_frame->getMacroblock(index)->cr[y%16][x%16];
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement