Changeset 44191 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Dec 20, 2012 5:36:56 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82916
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r44167 r44191 380 380 , mNvram(NULL) 381 381 #ifdef VBOX_WITH_USB_VIDEO 382 , m UsbWebcamInterface(NULL)382 , mEmWebcam(NULL) 383 383 #endif 384 384 #ifdef VBOX_WITH_USB_CARDREADER … … 550 550 551 551 #ifdef VBOX_WITH_USB_VIDEO 552 unconst(m UsbWebcamInterface) = new UsbWebcamInterface(this);553 AssertReturn(m UsbWebcamInterface, E_FAIL);552 unconst(mEmWebcam) = new EmWebcam(this); 553 AssertReturn(mEmWebcam, E_FAIL); 554 554 #endif 555 555 #ifdef VBOX_WITH_USB_CARDREADER … … 651 651 652 652 #ifdef VBOX_WITH_USB_VIDEO 653 if (m UsbWebcamInterface)654 { 655 delete m UsbWebcamInterface;656 unconst(m UsbWebcamInterface) = NULL;653 if (mEmWebcam) 654 { 655 delete mEmWebcam; 656 unconst(mEmWebcam) = NULL; 657 657 } 658 658 #endif -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r44151 r44191 2396 2396 2397 2397 #ifdef VBOX_WITH_USB_VIDEO 2398 2399 InsertConfigNode(pUsbDevices, "Webcam", &pDev); 2400 InsertConfigNode(pDev, "0", &pInst); 2401 InsertConfigNode(pInst, "Config", &pCfg); 2402 # if 0 /* Experiments with attaching */ 2403 InsertConfigInteger(pCfg, "USBVER", RT_BIT(2)); 2398 BOOL aEmulatedUSBWebcamEnabled = FALSE; 2399 hrc = pMachine->COMGETTER(EmulatedUSBWebcameraEnabled)(&aEmulatedUSBWebcamEnabled); H(); 2400 if (aEmulatedUSBWebcamEnabled) 2401 { 2402 InsertConfigNode(pUsbDevices, "Webcam", &pDev); 2403 InsertConfigNode(pDev, "0", &pInst); 2404 InsertConfigNode(pInst, "Config", &pCfg); 2405 InsertConfigNode(pInst, "LUN#0", &pLunL0); 2406 # ifdef VBOX_WITH_USB_VIDEO_TEST 2407 InsertConfigString(pLunL0, "Driver", "WebcamFileFeeder"); 2408 InsertConfigNode(pLunL0, "Config", &pCfg); 2409 InsertConfigString(pCfg, "DirToFeed", "out"); 2410 # else 2411 InsertConfigString(pLunL0, "Driver", "EmWebcam"); 2412 InsertConfigNode(pLunL0, "Config", &pCfg); 2413 InsertConfigInteger(pCfg, "Object", (uintptr_t)mEmWebcam); 2404 2414 # endif 2405 InsertConfigNode(pInst, "LUN#0", &pLunL0); 2406 # ifdef VBOX_WITH_USB_VIDEO_TEST 2407 InsertConfigString(pLunL0, "Driver", "WebcamFileFeeder"); 2408 InsertConfigNode(pLunL0, "Config", &pCfg); 2409 InsertConfigString(pCfg, "DirToFeed", "out"); 2410 # else 2411 InsertConfigString(pLunL0, "Driver", "UsbWebcamInterface"); 2412 InsertConfigNode(pLunL0, "Config", &pCfg); 2413 InsertConfigInteger(pCfg, "Object", mUsbWebcamInterface); 2414 # endif 2415 } 2415 2416 #endif 2417 2416 2418 #ifdef VBOX_WITH_USB_CARDREADER 2417 2419 BOOL aEmulatedUSBCardReaderEnabled = FALSE; -
trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp
r43929 r44191 28 28 #ifdef VBOX_WITH_USB_CARDREADER 29 29 # include "UsbCardReader.h" 30 #endif 31 #ifdef VBOX_WITH_USB_VIDEO 32 # include "UsbWebcamInterface.h" 30 33 #endif 31 34 … … 2576 2579 #ifdef VBOX_WITH_USB_VIDEO 2577 2580 ConsoleVRDPServer *pThis = static_cast<ConsoleVRDPServer*>(pvCallback); 2578 UsbWebcamInterface *pWebCam = pThis->mConsole->getUsbWebcamInterface();2579 return pWebCam->WebCamNotify(u32Id, pvData, cbData);2581 EmWebcam *pWebcam = pThis->mConsole->getEmWebcam(); 2582 pWebcam->EmWebcamCbNotify(u32Id, pvData, cbData); 2580 2583 #else 2581 2584 NOREF(pvCallback); … … 2595 2598 #ifdef VBOX_WITH_USB_VIDEO 2596 2599 ConsoleVRDPServer *pThis = static_cast<ConsoleVRDPServer*>(pvCallback); 2597 UsbWebcamInterface *pWebCam = pThis->mConsole->getUsbWebcamInterface();2598 return pWebCam->WebCamDeviceDesc(rcRequest, pDeviceCtx, pvUser, pDeviceDesc, cbDevice);2600 EmWebcam *pWebcam = pThis->mConsole->getEmWebcam(); 2601 pWebcam->EmWebcamCbDeviceDesc(rcRequest, pDeviceCtx, pvUser, pDeviceDesc, cbDevice); 2599 2602 #else 2600 2603 NOREF(pvCallback); … … 2616 2619 #ifdef VBOX_WITH_USB_VIDEO 2617 2620 ConsoleVRDPServer *pThis = static_cast<ConsoleVRDPServer*>(pvCallback); 2618 UsbWebcamInterface *pWebCam = pThis->mConsole->getUsbWebcamInterface();2619 return pWebCam->WebCamControl(rcRequest, pDeviceCtx, pvUser, pControl, cbControl);2621 EmWebcam *pWebcam = pThis->mConsole->getEmWebcam(); 2622 pWebcam->EmWebcamCbControl(rcRequest, pDeviceCtx, pvUser, pControl, cbControl); 2620 2623 #else 2621 2624 NOREF(pvCallback); … … 2636 2639 #ifdef VBOX_WITH_USB_VIDEO 2637 2640 ConsoleVRDPServer *pThis = static_cast<ConsoleVRDPServer*>(pvCallback); 2638 UsbWebcamInterface *pWebCam = pThis->mConsole->getUsbWebcamInterface();2639 return pWebCam->WebCamFrame(rcRequest, pDeviceCtx, pvUser, pFrame, cbFrame);2641 EmWebcam *pWebcam = pThis->mConsole->getEmWebcam(); 2642 pWebcam->EmWebcamCbFrame(rcRequest, pDeviceCtx, pFrame, cbFrame); 2640 2643 #else 2641 2644 NOREF(pvCallback); … … 2696 2699 2697 2700 int ConsoleVRDPServer::VideoInControl(void *pvUser, const VRDEVIDEOINDEVICEHANDLE *pDeviceHandle, 2698 VRDEVIDEOINCTRLHDR *pReq, uint32_t cbReq)2701 const VRDEVIDEOINCTRLHDR *pReq, uint32_t cbReq) 2699 2702 { 2700 2703 int rc; -
trunk/src/VBox/Main/src-client/VBoxDriversRegister.cpp
r43131 r44191 79 79 80 80 #ifdef VBOX_WITH_USB_VIDEO 81 rc = pCallbacks->pfnRegister(pCallbacks, & UsbWebcamInterface::DrvReg);81 rc = pCallbacks->pfnRegister(pCallbacks, &EmWebcam::DrvReg); 82 82 if (RT_FAILURE(rc)) 83 83 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.