Plane = ConvertPlane(unmanagedStruct);
}
- private static IPreviewPlane ConvertPlane(CameraPreviewDataStruct unmanagedStruct)
+ private IPreviewPlane ConvertPlane(CameraPreviewDataStruct unmanagedStruct)
{
if (unmanagedStruct.NumOfPlanes == 1)
{
}
else if (unmanagedStruct.NumOfPlanes == 2)
{
+ var size = Resolution.Width * Resolution.Height;
+ unmanagedStruct.Plane.DoublePlane.YLength = (uint)size;
+ unmanagedStruct.Plane.DoublePlane.UVLength = (uint)size / 2;
return new DoublePlane(unmanagedStruct.Plane.DoublePlane);
}
else if (unmanagedStruct.NumOfPlanes == 3)