VTM gets raw pixels

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

Both methods are acceptable, but it should be noted that i, j at this time are offsets relative to Position pos = cs.area.lumaPos(), not xy horizontal and vertical coordinates.

Guess you like

Origin blog.csdn.net/sinat_41872342/article/details/122563590