This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OSD算法



在DM8148的OSD的AlgLink_algProcessData()函数中加入for循环,主要是对YUV中的Y和UV数据直接赋予255值,来实现划线功能,但画出来的线一直闪,这是怎么回事?

其中的for循环写法如下:

for(i=200;i<210;i++)
 {
 for(j=100;j<200;j++)
 {
 pC[j+i*width]=(unsigned char)255;
 pY[(j+i*width)*2]=(unsigned char)255;
pY[(j+i*width)*2+1]=(unsigned char)255;
 }
 }

其中width是一帧的宽度

求指导~,谢谢~