VTM获取原始像素

法一:cs.getOrgBuf(partitioner.currArea().block(COMPONENT_Y)).at(i, j);
法二:cs.picture->getTrueOrigBuf(cs.area.blocks[COMPONENT_Y]).at(i, j);
 

两种方法皆可,但要注意此时的 i, j 是相对于Position pos  = cs.area.lumaPos()的偏移量,而不是xy横纵坐标。

猜你喜欢

转载自blog.csdn.net/sinat_41872342/article/details/122563590
今日推荐