示例#1
0
        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);
        }
示例#2
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);
        }
示例#3
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));
        }