public sPixelFormatMP getDataFormat(eBufferType bufferType) { Debug.Assert(bufferType.isMultiPlaneBufferType()); sStreamDataFormat sdf = default; sdf.bufferType = bufferType; file.call(eControlCode.G_FMT, ref sdf); return(sdf.pix_mp); }
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)); }