|
BT656视频格式,一帧大小为576*720;
采用隔行扫描,那么是不是奇数场存储于前面288*720字节,偶数场存于后面288*720字节?
问这个问题的原因是,看了个中值滤波的例程
程序把
/*屏幕上奇数行进行处理*/
aValue[0] = (*(Uint8 *)(tempSrcYbuffer + (numLines/2+i-1)*numPixels + (j-1)));
aValue[1] = (*(Uint8 *)(tempSrcYbuffer + (numLines/2+i-1)*numPixels + j));
aValue[2] = (*(Uint8 *)(tempSrcYbuffer + (numLines/2+i-1)*numPixels + (j+1)));
aValue[3] = (*(Uint8 *)(tempSrcYbuffer + i*numPixels + (j-1)));
aValue[4] = (*(Uint8 *)(tempSrcYbuffer + i*numPixels + j));
aValue[5] = (*(Uint8 *)(tempSrcYbuffer + i*numPixels + (j+1)));
aValue[6] = (*(Uint8 *)(tempSrcYbuffer + (numLines/2+i)*numPixels + (j-1)));
aValue[7] = (*(Uint8 *)(tempSrcYbuffer + (numLines/2+i)*numPixels + j));
aValue[8] = (*(Uint8 *)(tempSrcYbuffer + (numLines/2+i)*numPixels + (j+1)));
这9个像素点进行中值最后赋给第i行第j列的像素点
|
|