Exemple #1
0
 /**
  *  @brief	Enable the face module in the pipeline.
  *  @param[in] name		The optional module name.
  *  @param[in] mid					The module identifier. This is usually the interface identifier.
  *  @return PXCM_STATUS_NO_ERROR	Successful execution.
  */
 public pxcmStatus EnableModule(Int32 mid, String name)
 {
     PXCMSession.ImplDesc mdesc = null;
     if (name != null)
     {
         mdesc              = new PXCMSession.ImplDesc();
         mdesc.cuids[0]     = mid;
         mdesc.friendlyName = name;
     }
     return(EnableModule(mid, mdesc));
 }
Exemple #2
0
 private pxcmStatus OnCreateDevice(PXCMSession.ImplDesc desc, IntPtr device)
 {
     PXCMCapture.Device device2 = new PXCMCapture.Device(device, false);
     return(handler.onCreateDevice(desc, device2));
 }
Exemple #3
0
 /**
  *  @brief	Enable a module in the pipeline.
  *  @param[in] mid					The module identifier. This is usually the interface identifier.
  *  @param[in] mdesc				The module descriptor.
  *  @return PXCM_STATUS_NO_ERROR	Successful execution.
  */
 public pxcmStatus EnableModule(Int32 mid, PXCMSession.ImplDesc mdesc)
 {
     return(PXCMSenseManager_EnableModule(instance, mid, mdesc));
 }
Exemple #4
0
 internal static extern pxcmStatus PXCMSenseManager_EnableModule(IntPtr putil, Int32 mid, PXCMSession.ImplDesc mdesc);
Exemple #5
0
 /**
  *  @brief Return the module descriptor
  *  @param[in]  module  The module instance
  *  @param[out] desc	The module descriptor, to be returned.
  *  @return PXCM_STATUS_NO_ERROR         Successful execution.
  *  @return PXCM_STATUS_ITEM_UNAVAILABLE Failed to identify the module instance.
  */
 public pxcmStatus QueryModuleDesc(PXCMBase module, out PXCMSession.ImplDesc desc)
 {
     desc = new PXCMSession.ImplDesc();
     return(PXCMSession_QueryModuleDesc(instance, module.instance, desc));
 }
Exemple #6
0
 internal static extern pxcmStatus PXCMSession_QueryModuleDesc(IntPtr session, IntPtr module, [Out] PXCMSession.ImplDesc desc);