예제 #1
0
        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);
        }
예제 #2
0
        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));
        }