Changeset 42467 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- Jul 31, 2012 6:40:28 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 79610
- Location:
- trunk/src/VBox/Frontends/VBoxHeadless
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r42446 r42467 486 486 #ifdef VBOX_WITH_VIDEO_REC 487 487 /** 488 * Parse the environment for variables which can influence the FFMPEGsettings.488 * Parse the environment for variables which can influence the VIDEOREC settings. 489 489 * purely for backwards compatibility. 490 490 * @param pulFrameWidth may be updated with a desired frame width … … 613 613 unsigned fCSAM = ~0U; 614 614 #ifdef VBOX_WITH_VIDEO_REC 615 unsigned f FFMPEG= 0;615 unsigned fVIDEOREC = 0; 616 616 unsigned long ulFrameWidth = 800; 617 617 unsigned long ulFrameHeight = 600; … … 755 755 #ifdef VBOX_WITH_VIDEO_REC 756 756 case 'c': 757 f FFMPEG= true;757 fVIDEOREC = true; 758 758 break; 759 759 case 'w': … … 931 931 #ifdef VBOX_WITH_VIDEO_REC 932 932 IFramebuffer *pFramebuffer = 0; 933 RTLDRMOD hLdr FFmpegFB;934 PFNREGISTER FFMPEGFB pfnRegisterFFmpegFB;935 936 if (f FFMPEG)933 RTLDRMOD hLdrVideoRecFB; 934 PFNREGISTERVIDEORECFB pfnRegisterVideoRecFB; 935 936 if (fVIDEOREC) 937 937 { 938 938 HRESULT rcc = S_OK; … … 940 940 RTERRINFOSTATIC ErrInfo; 941 941 942 Log2(("VBoxHeadless: loading VBox FFmpegFB and libvpx shared library\n"));942 Log2(("VBoxHeadless: loading VBoxVideoRecFB and libvpx shared library\n")); 943 943 RTErrInfoInitStatic(&ErrInfo); 944 rrc = SUPR3HardenedLdrLoadAppPriv("VBox FFmpegFB", &hLdrFFmpegFB, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core);944 rrc = SUPR3HardenedLdrLoadAppPriv("VBoxVideoRecFB", &hLdrVideoRecFB, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core); 945 945 946 946 if (RT_SUCCESS(rrc)) 947 947 { 948 Log2(("VBoxHeadless: looking up symbol VBoxRegister FFmpegFB\n"));949 rrc = RTLdrGetSymbol(hLdr FFmpegFB, "VBoxRegisterFFmpegFB",950 reinterpret_cast<void **>(&pfnRegister FFmpegFB));948 Log2(("VBoxHeadless: looking up symbol VBoxRegisterVideoRecFB\n")); 949 rrc = RTLdrGetSymbol(hLdrVideoRecFB, "VBoxRegisterVideoRecFB", 950 reinterpret_cast<void **>(&pfnRegisterVideoRecFB)); 951 951 if (RT_FAILURE(rrc)) 952 952 LogError("Failed to load the video capture extension, possibly due to a damaged file\n", rrc); … … 956 956 if (RT_SUCCESS(rrc)) 957 957 { 958 Log2(("VBoxHeadless: calling pfnRegister FFmpegFB\n"));959 rcc = pfnRegister FFmpegFB(ulFrameWidth, ulFrameHeight, ulBitRate,958 Log2(("VBoxHeadless: calling pfnRegisterVideoRecFB\n")); 959 rcc = pfnRegisterVideoRecFB(ulFrameWidth, ulFrameHeight, ulBitRate, 960 960 pszMPEGFile, &pFramebuffer); 961 961 if (rcc != S_OK) … … 984 984 { 985 985 # ifdef VBOX_WITH_VIDEO_REC 986 if (f FFMPEG&& uScreenId == 0)986 if (fVIDEOREC && uScreenId == 0) 987 987 { 988 988 /* Already registered. */ -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.h
r33386 r42467 2 2 * 3 3 * VBox frontends: VRDE (headless Remote Desktop server): 4 * Header file with registration call for ffmpegframebuffer4 * Header file with registration call for VideoRec framebuffer 5 5 */ 6 6 … … 31 31 32 32 /** 33 * Callback function to register an ffmpegframebuffer.33 * Callback function to register an VideoRec framebuffer. 34 34 * 35 35 * @returns COM status code. … … 41 41 * @retval retVal The new framebuffer 42 42 */ 43 typedef DECLCALLBACK(HRESULT) FNREGISTER FFMPEGFB(ULONG width,43 typedef DECLCALLBACK(HRESULT) FNREGISTERVIDEORECFB(ULONG width, 44 44 ULONG height, ULONG bitrate, 45 45 com::Bstr filename, 46 46 IFramebuffer **retVal); 47 typedef FNREGISTER FFMPEGFB *PFNREGISTERFFMPEGFB;47 typedef FNREGISTERVIDEORECFB *PFNREGISTERVIDEORECFB; 48 48 49 49 #endif // __H_VBOXHEADLESS -
trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/Makefile.kmk
r41986 r42467 19 19 include $(KBUILD_PATH)/subheader.kmk 20 20 21 DLLS += VBox FFmpegFB22 VBox FFmpegFB_TEMPLATE = VBOXMAINCLIENTDLL21 DLLS += VBoxVideoRecFB 22 VBoxVideoRecFB_TEMPLATE = VBOXMAINCLIENTDLL 23 23 24 24 ifdef VBOX_WITH_VPX 25 VBox FFmpegFB_DEFS += \25 VBoxVideoRecFB_DEFS += \ 26 26 VBOX_WITH_VPX 27 27 endif 28 28 29 29 ifdef VBOX_WITH_VPX 30 VBox FFmpegFB_SDKS = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB VBOX_VPX30 VBoxVideoRecFB_SDKS = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB VBOX_VPX 31 31 else 32 VBox FFmpegFB_SDKS = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB32 VBoxVideoRecFB_SDKS = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB 33 33 endif 34 34 35 35 ifdef VBOX_WITH_VPX 36 VBoxFFmpegFB_SOURCES += \ 37 FFmpegFB.cpp \ 38 EbmlWriter.cpp 36 VBoxVideoRecFB_SOURCES += \ 37 VideoRecFB.cpp \ 38 EbmlWriter.cpp \ 39 EncodeAndWrite.cpp 39 40 else 40 VBox FFmpegFB_SOURCES += \41 FFmpegFB.cpp41 VBoxVideoRecFB_SOURCES += \ 42 VideoRecFB.cpp 42 43 endif 43 44 44 VBox FFmpegFB_CXXFLAGS.linux += -fPIC45 VBoxVideoRecFB_CXXFLAGS.linux += -fPIC 45 46 46 47 include $(FILE_KBUILD_SUB_FOOTER)
Note:
See TracChangeset
for help on using the changeset viewer.