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 } }