为什么最后一行参数可能在函数之外没有影响:
void save_last_frame( uint8_t *saveframe, uint8_t *curframe,
int width, int height, int savestride, int curstride )
{
height /= 2;
height--;
while( height-- ) {
blit_packed422_scanline( saveframe, curframe, width );
saveframe += savestride;
interpolate_packed422_scanline( saveframe, curframe, curframe + (curstride*2), width );
saveframe += savestride;
curframe += (curstride*2);
}
blit_packed422_scanline( saveframe, curframe, width );
saveframe += savestride;
blit_packed422_scanline( saveframe, curframe, width );
saveframe += savestride; // <-- Assignment of function parameter has no effect outside the function
}
谢谢