VirtualBox

Changeset 42471 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 31, 2012 7:46:57 AM (12 years ago)
Author:
vboxsync
Message:

backed out r79610

Location:
trunk/src/VBox/Frontends/VBoxHeadless
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r42467 r42471  
    471471             "                                         \"TCP/Address\" - interface IP the VRDE server\n"
    472472             "                                         will bind to\n"
    473              "   --settingspw                          Specify the settings password\n"
    474              "   --settingspwfile                      Specify a file containing the settings password\n"
     473             "   --settingspw <pw>                     Specify the settings password\n"
     474             "   --settingspwfile <file>               Specify a file containing the settings password\n"
    475475#ifdef VBOX_WITH_VIDEO_REC
    476476             "   -c, -capture, --capture               Record the VM screen output to a file\n"
     
    486486#ifdef VBOX_WITH_VIDEO_REC
    487487/**
    488  * Parse the environment for variables which can influence the VIDEOREC settings.
     488 * Parse the environment for variables which can influence the FFMPEG settings.
    489489 * purely for backwards compatibility.
    490490 * @param pulFrameWidth may be updated with a desired frame width
     
    613613    unsigned fCSAM  = ~0U;
    614614#ifdef VBOX_WITH_VIDEO_REC
    615     unsigned fVIDEOREC = 0;
     615    unsigned fFFMPEG = 0;
    616616    unsigned long ulFrameWidth = 800;
    617617    unsigned long ulFrameHeight = 600;
     
    755755#ifdef VBOX_WITH_VIDEO_REC
    756756            case 'c':
    757                 fVIDEOREC = true;
     757                fFFMPEG = true;
    758758                break;
    759759            case 'w':
     
    931931#ifdef VBOX_WITH_VIDEO_REC
    932932        IFramebuffer *pFramebuffer = 0;
    933         RTLDRMOD hLdrVideoRecFB;
    934         PFNREGISTERVIDEORECFB pfnRegisterVideoRecFB;
    935 
    936         if (fVIDEOREC)
     933        RTLDRMOD hLdrFFmpegFB;
     934        PFNREGISTERFFMPEGFB pfnRegisterFFmpegFB;
     935
     936        if (fFFMPEG)
    937937        {
    938938            HRESULT         rcc = S_OK;
     
    940940            RTERRINFOSTATIC ErrInfo;
    941941
    942             Log2(("VBoxHeadless: loading VBoxVideoRecFB and libvpx shared library\n"));
     942            Log2(("VBoxHeadless: loading VBoxFFmpegFB and libvpx shared library\n"));
    943943            RTErrInfoInitStatic(&ErrInfo);
    944             rrc = SUPR3HardenedLdrLoadAppPriv("VBoxVideoRecFB", &hLdrVideoRecFB, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core);
     944            rrc = SUPR3HardenedLdrLoadAppPriv("VBoxFFmpegFB", &hLdrFFmpegFB, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core);
    945945
    946946            if (RT_SUCCESS(rrc))
    947947            {
    948                 Log2(("VBoxHeadless: looking up symbol VBoxRegisterVideoRecFB\n"));
    949                 rrc = RTLdrGetSymbol(hLdrVideoRecFB, "VBoxRegisterVideoRecFB",
    950                                      reinterpret_cast<void **>(&pfnRegisterVideoRecFB));
     948                Log2(("VBoxHeadless: looking up symbol VBoxRegisterFFmpegFB\n"));
     949                rrc = RTLdrGetSymbol(hLdrFFmpegFB, "VBoxRegisterFFmpegFB",
     950                                     reinterpret_cast<void **>(&pfnRegisterFFmpegFB));
    951951                if (RT_FAILURE(rrc))
    952952                    LogError("Failed to load the video capture extension, possibly due to a damaged file\n", rrc);
     
    956956            if (RT_SUCCESS(rrc))
    957957            {
    958                 Log2(("VBoxHeadless: calling pfnRegisterVideoRecFB\n"));
    959                 rcc = pfnRegisterVideoRecFB(ulFrameWidth, ulFrameHeight, ulBitRate,
     958                Log2(("VBoxHeadless: calling pfnRegisterFFmpegFB\n"));
     959                rcc = pfnRegisterFFmpegFB(ulFrameWidth, ulFrameHeight, ulBitRate,
    960960                                         pszMPEGFile, &pFramebuffer);
    961961                if (rcc != S_OK)
     
    984984        {
    985985# ifdef VBOX_WITH_VIDEO_REC
    986             if (fVIDEOREC && uScreenId == 0)
     986            if (fFFMPEG && uScreenId == 0)
    987987            {
    988988                /* Already registered. */
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.h

    r42467 r42471  
    22 *
    33 * VBox frontends: VRDE (headless Remote Desktop server):
    4  * Header file with registration call for VideoRec framebuffer
     4 * Header file with registration call for ffmpeg framebuffer
    55 */
    66
     
    3131
    3232/**
    33  * Callback function to register an VideoRec framebuffer.
     33 * Callback function to register an ffmpeg framebuffer.
    3434 *
    3535 * @returns COM status code.
     
    4141 * @retval  retVal       The new framebuffer
    4242 */
    43 typedef DECLCALLBACK(HRESULT) FNREGISTERVIDEORECFB(ULONG width,
     43typedef DECLCALLBACK(HRESULT) FNREGISTERFFMPEGFB(ULONG width,
    4444                                     ULONG height, ULONG bitrate,
    4545                                     com::Bstr filename,
    4646                                     IFramebuffer **retVal);
    47 typedef FNREGISTERVIDEORECFB *PFNREGISTERVIDEORECFB;
     47typedef FNREGISTERFFMPEGFB *PFNREGISTERFFMPEGFB;
    4848
    4949#endif // __H_VBOXHEADLESS
  • trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/Makefile.kmk

    r42467 r42471  
    1919include $(KBUILD_PATH)/subheader.kmk
    2020
    21 DLLS += VBoxVideoRecFB
    22 VBoxVideoRecFB_TEMPLATE     = VBOXMAINCLIENTDLL
     21DLLS += VBoxFFmpegFB
     22VBoxFFmpegFB_TEMPLATE     = VBOXMAINCLIENTDLL
    2323
    2424ifdef VBOX_WITH_VPX
    25   VBoxVideoRecFB_DEFS      += \
     25  VBoxFFmpegFB_DEFS      += \
    2626    VBOX_WITH_VPX 
    2727endif
    2828
    2929ifdef VBOX_WITH_VPX
    30   VBoxVideoRecFB_SDKS       = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB VBOX_VPX
     30  VBoxFFmpegFB_SDKS       = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB VBOX_VPX
    3131else
    32   VBoxVideoRecFB_SDKS       = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB
     32  VBoxFFmpegFB_SDKS       = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB
    3333endif
    3434
    3535ifdef VBOX_WITH_VPX
    36   VBoxVideoRecFB_SOURCES   +=  \
    37     VideoRecFB.cpp \
    38     EbmlWriter.cpp \
    39     EncodeAndWrite.cpp
     36  VBoxFFmpegFB_SOURCES   +=  \
     37    FFmpegFB.cpp \
     38        EbmlWriter.cpp
    4039else
    41   VBoxVideoRecFB_SOURCES   +=  \
    42     VideoRecFB.cpp
     40  VBoxFFmpegFB_SOURCES   +=  \
     41    FFmpegFB.cpp
    4342endif
    4443
    45 VBoxVideoRecFB_CXXFLAGS.linux += -fPIC
     44VBoxFFmpegFB_CXXFLAGS.linux += -fPIC
    4645
    4746include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette