<div dir="ltr"><div><div>Hi,<br><br></div>Ok, then your nested loops should not have any problem. The problem might be with the pointers or the YUV values that you assign to pixels. For example, why do you cast an unsigned char pointer to an unsigned int?<br><br></div>Regards,<br>Maziar Mehrabi<br></div>