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.

DM8127使用DSP直接修改YUV数据造成图像异常



目前正在开发DSP中的图像算法,需要对YUV图像中的Y分量进行直接修改

一开始先尝试将Y分量的值直接取代掉来进行测试:

unsigned char* pSrc = pFrame->addr[0][0];

 for (i= 0; i<height/2; i++)

for (j=0;j<width/2;j++)

pSrc[i*width+j] = 180;

 发现在部分区块会发生破图

左上角四分之一的区块应该全部都是180

是访问内存的方式有问题吗?

请各位前辈指点