/** * @brief Add the module input needs to the CaptureManager device search. The application must call * this function for all modules before the LocalStreams function, where the CaptureManager performs * the device match. * @param[in] mid The module identifier. The application can use any unique value to later identify the module. * @param[in] inputs The module input descriptor. * @return PXCM_STATUS_NO_ERROR Successful executation. */ public pxcmStatus RequestStreams(Int32 mid, PXCMVideoModule.DataDesc inputs) { ObjectPair op = new ObjectPair(inputs); descriptors.Add(op); pxcmStatus sts = PXCMCaptureManager_RequestStreams(instance, mid, op.unmanaged); if (sts < pxcmStatus.PXCM_STATUS_NO_ERROR) { descriptors.Clear(); } return(sts); }
/** * @brief Explicitly request to stream the specified raw stream. If specified more than one stream, * SenseManager will synchronize these streams. If called multiple times, the function treats each * stream request as independent (unaligned). The stream identifier is PXCMCapture.CUID+n. * @param[in] type The stream type. * @param[in] width stream width. * @param[in] height stream height. * @param[in] fps stream frame rate. * @return PXC_STATUS_NO_ERROR Successful execution. */ public pxcmStatus EnableStream(PXCMCapture.StreamType type, Int32 width, Int32 height, Single fps) { PXCMVideoModule.DataDesc ddesc = new PXCMVideoModule.DataDesc(); ddesc.deviceInfo.streams = type; PXCMVideoModule.StreamDesc sdesc = ddesc.streams[type]; sdesc.sizeMin.width = width; sdesc.sizeMax.width = width; sdesc.sizeMin.height = height; sdesc.sizeMax.height = height; sdesc.frameRate.min = fps; sdesc.frameRate.max = fps; return(EnableStreams(ddesc)); }
internal static extern pxcmStatus PXCMSenseManager_EnableStreams(IntPtr putil, PXCMVideoModule.DataDesc sdesc);
public pxcmStatus EnableStreams(PXCMVideoModule.DataDesc ddesc) { return(PXCMSenseManager_EnableStreams(instance, ddesc)); }
/** @brief Explicitly request to stream the specified raw stream. If specified more than one stream, SenseManager will synchronize these streams. If called multiple times, the function treats each stream request as independent (unaligned). The stream identifier is PXCMCapture.CUID+n. @param[in] type The stream type. @param[in] width stream width. @param[in] height stream height. @param[in] fps stream frame rate. @return PXC_STATUS_NO_ERROR Successful execution. */ public pxcmStatus EnableStream(PXCMCapture.StreamType type, Int32 width, Int32 height, Single fps) { PXCMVideoModule.DataDesc ddesc = new PXCMVideoModule.DataDesc(); ddesc.deviceInfo.streams = type; PXCMVideoModule.StreamDesc sdesc = ddesc.streams[type]; sdesc.sizeMin.width = width; sdesc.sizeMax.width = width; sdesc.sizeMin.height = height; sdesc.sizeMax.height = height; sdesc.frameRate.min = fps; sdesc.frameRate.max = fps; return EnableStreams(ddesc); }