NV12 转YV12
作者:互联网
Y部分直接拷贝;
YV12:
NV12:
NV转YV12的UV部分 for (int i = 0; i < H/2; i++) { for (int j = 0; j < W/2; j++) { vBuffer[i * W/2 + j] = nv_uvBuf[i * UVDataPerRow + 2 * j + 1]; //v uBuffer[i * W/2 + j] = nv_uvBuf[i * UVDataPerRow + 2 * j]; //u } }
标签:YV12,int,++,UVDataPerRow,uvBuf,NV12,nv 来源: https://www.cnblogs.com/8335IT/p/16518620.html