You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
byte[] y = newbyte[width * height];
byte[] u = newbyte[width * height / 4];
byte[] v = newbyte[width * height / 4];
byte[] nu = newbyte[width * height / 4]; //byte[] nv = newbyte[width * height / 4];
System.arraycopy(yuvFrame, 0, y, 0, y.length);
for (inti = 0; i < u.length; i++) {
v[i] = yuvFrame[y.length + 2 * i];
u[i] = yuvFrame[y.length + 2 * i + 1];
}
The code above seems that the YUV data received from the UVA is already encoded by NV21, the array u and array v represent the data U and V respectively. So I'm confused about the function of the following code due to I don't know what the variables "nu" and "nv" are for.
The code above seems that the YUV data received from the UVA is already encoded by NV21, the array u and array v represent the data U and V respectively. So I'm confused about the function of the following code due to I don't know what the variables "nu" and "nv" are for.
The text was updated successfully, but these errors were encountered: