Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int MotionCompensator::GetRefPixelLuma(int x, int y)
- {
- int index = x/16 + ref_width*(y/16);
- return reference_frame->getMacroblock(index)->luma[y%16][x%16];
- }
- int MotionCompensator::GetRefPixelCb(int x, int y)
- {
- int index = x/16 + ref_width*(y/16);
- return reference_frame->getMacroblock(index)->cb[y%16][x%16];
- }
- int MotionCompensator::GetRefPixelCr(int x, int y)
- {
- int index = x/16 + ref_width*(y/16);
- return reference_frame->getMacroblock(index)->cr[y%16][x%16];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement