public void setDataFormat(eBufferType bufferType, ref sPixelFormatMP pixelFormat) { Debug.Assert(bufferType.isMultiPlaneBufferType()); sStreamDataFormat sdf = default; sdf.bufferType = bufferType; sdf.pix_mp = pixelFormat; file.call(eControlCode.S_FMT, ref sdf); }
public bool tryDataFormat(eBufferType bufferType, sPixelFormatMP pixelFormat) { Debug.Assert(bufferType.isMultiPlaneBufferType()); sStreamDataFormat sdf = default; sdf.bufferType = bufferType; sdf.pix_mp = pixelFormat; return(file.tryCall(eControlCode.TRY_FMT, ref sdf)); }