Changeset 37282 in vbox for trunk/src/VBox
- Timestamp:
- Jun 1, 2011 2:56:05 AM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r37200 r37282 62 62 $(if $(VBOX_WITH_GUEST_PROPS_RDONLY_GUEST),VBOX_WITH_GUEST_PROPS_RDONLY_GUEST,) \ 63 63 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,) \ 64 $(if $(VBOX_WITH_USB_VIDEO),VBOX_WITH_USB_VIDEO,) \ 64 65 $(if $(VBOX_WITH_HOSTNETIF_API),VBOX_WITH_HOSTNETIF_API,) 65 66 … … 632 633 src-all/VirtualBoxErrorInfoImpl.cpp \ 633 634 $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \ 635 $(if $(VBOX_WITH_USB_VIDEO),src-client/UsbWebcamInterface.cpp,) \ 634 636 src-client/AdditionsFacilityImpl.cpp \ 635 637 src-client/AudioSnifferInterface.cpp \ -
trunk/src/VBox/Main/include/ConsoleImpl.h
r36991 r37282 35 35 class VRDEServerInfo; 36 36 class AudioSniffer; 37 #ifdef VBOX_WITH_USB_VIDEO 38 class UsbWebcamInterface; 39 #endif 37 40 class ConsoleVRDPServer; 38 41 class VMMDev; … … 719 722 VMMDev * m_pVMMDev; 720 723 AudioSniffer * const mAudioSniffer; 724 #ifdef VBOX_WITH_USB_VIDEO 725 UsbWebcamInterface * const mUsbWebcamInterface; 726 #endif 721 727 BusAssignmentManager* mBusMgr; 722 728 -
trunk/src/VBox/Main/include/ConsoleVRDPServer.h
r36843 r37282 136 136 137 137 void SendAudioInputEnd(void *pvUserCtx); 138 #ifdef VBOX_WITH_USB_VIDEO 139 int GetVideoFrameDimensions(uint16_t *pu16Heigh, uint16_t *pu16Width); 140 int SendVideoSreamOn(bool fFetch); 141 #endif 138 142 139 143 private: -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r37201 r37282 57 57 #include "SharedFolderImpl.h" 58 58 #include "AudioSnifferInterface.h" 59 #include "UsbWebcamInterface.h" 59 60 #include "ProgressCombinedImpl.h" 60 61 #include "ConsoleVRDPServer.h" … … 368 369 , m_pVMMDev(NULL) 369 370 , mAudioSniffer(NULL) 371 #ifdef VBOX_WITH_USB_VIDEO 372 , mUsbWebcamInterface(NULL) 373 #endif 370 374 , mBusMgr(NULL) 371 375 , mVMStateChangeCallbackDisabled(false) … … 504 508 unconst(mAudioSniffer) = new AudioSniffer(this); 505 509 AssertReturn(mAudioSniffer, E_FAIL); 510 #ifdef VBOX_WITH_USB_VIDEO 511 unconst(mUsbWebcamInterface) = new UsbWebcamInterface(this); 512 AssertReturn(mUsbWebcamInterface, E_FAIL); 513 #endif 506 514 507 515 /* VirtualBox events registration. */ … … 594 602 mpVmm2UserMethods = NULL; 595 603 } 604 605 #ifdef VBOX_WITH_USB_VIDEO 606 if (mUsbWebcamInterface) 607 { 608 delete mUsbWebcamInterface; 609 unconst(mUsbWebcamInterface) = NULL; 610 } 611 #endif 596 612 597 613 if (mAudioSniffer) -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r37241 r37282 2273 2273 #endif 2274 2274 2275 # if 0 /* Virtual Webcam */2275 #ifdef VBOX_WITH_USB_VIDEO 2276 2276 2277 2277 InsertConfigNode(pUsbDevices, "Webcam", &pDev); … … 2282 2282 # endif 2283 2283 InsertConfigNode(pInst, "LUN#0", &pLunL0); 2284 # ifdef VBOX_WITH_USB_VIDEO_TEST 2284 2285 InsertConfigString(pLunL0, "Driver", "WebcamFileFeeder"); 2285 2286 InsertConfigNode(pLunL0, "Config", &pCfg); 2286 # if 12287 2287 InsertConfigString(pCfg, "DirToFeed", "out"); 2288 # else 2289 InsertConfigString(pLunL0, "Driver", "UsbWebcamInterface"); 2290 InsertConfigNode(pLunL0, "Config", &pCfg); 2291 InsertConfigInteger(pCfg, "Object", &mUsbWebcamInterface); 2288 2292 # endif 2289 # 2293 #endif 2290 2294 # if 0 /* Virtual MSD*/ 2291 2295 -
trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp
r36925 r37282 2770 2770 } 2771 2771 } 2772 2773 #ifdef VBOX_WITH_USB_VIDEO 2774 int ConsoleVRDPServer::GetVideoFrameDimensions(uint16_t *pu16Heigh, uint16_t *pu16Width) 2775 { 2776 *pu16Heigh = 640; 2777 *pu16Width = 480; 2778 return VINF_SUCCESS; 2779 } 2780 2781 int ConsoleVRDPServer::SendVideoSreamOn(bool fFetch) 2782 { 2783 /* Here we inform server that guest is starting/stopping 2784 * the stream 2785 */ 2786 return VINF_SUCCESS; 2787 } 2788 #endif 2772 2789 2773 2790 -
trunk/src/VBox/Main/src-client/VBoxDriversRegister.cpp
r35753 r37282 25 25 #include "VMMDev.h" 26 26 #include "AudioSnifferInterface.h" 27 #ifdef VBOX_WITH_USB_VIDEO 28 # include "UsbWebcamInterface.h" 29 #endif 27 30 #include "ConsoleImpl.h" 28 31 #ifdef VBOX_WITH_PCI_PASSTHROUGH … … 67 70 return rc; 68 71 72 #ifdef VBOX_WITH_USB_VIDEO 73 rc = pCallbacks->pfnRegister(pCallbacks, &UsbWebcamInterface::DrvReg); 74 if (RT_FAILURE(rc)) 75 return rc; 76 #endif 77 69 78 rc = pCallbacks->pfnRegister(pCallbacks, &Console::DrvStatusReg); 70 79 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.