1,324
社区成员




void *rotate_180(void *_dst,const void *_src,int len)
{
int pixelSize = PIXEL_SIZE,size,step = len/pixelSize;//像素个数
unsigned char *dst = _dst;
const unsigned char *src = _src + len;
while(step-- > 0){
size = pixelSize;
src -=size;
while(size-- > 0){
*dst++ = *src++;
}
src -=pixelSize;
}
Return _dst;
}