VirtualBox

Changeset 42479 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 31, 2012 1:32:00 PM (13 years ago)
Author:
vboxsync
Message:

Main/DisplayImpl.cpp: Working on supporting video recording for VBoxSDL session.. Current coding under #ifdef VBOX_WITH_VPX_MAIN. Please don't use this define as the code is not in usable form right now..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r42249 r42479  
    4747
    4848#include <VBox/com/array.h>
     49
     50#ifdef VBOX_WITH_VPX_MAIN
     51# include "EncodeAndWrite.h"
     52  PVIDEORECCONTEXT pVideoRecContext;
     53#endif
    4954
    5055/**
     
    32403245        }
    32413246    }
     3247#ifdef VBOX_WITH_VPX_MAIN
     3248    VideoRecCopyToIntBuffer(pVideoRecContext, pDisplay->xOrigin, pDisplay->yOrigin,
     3249                            pDisplay->w, pDisplay->h, mPixelFormat,
     3250                            pDisplay->u16BitsPerPixel, mBytesPerLine, pDisplay->w,
     3251                            pDisplay->h, pDisplay->h, pDisplay->w,
     3252                            pu8Framebuffer, mTempRGBBuffer);
     3253#endif
     3254
     3255
    32423256
    32433257#ifdef DEBUG_sunlover
     
    42184232    pData->IConnector.pfnVBVAMousePointerShape = Display::displayVBVAMousePointerShape;
    42194233#endif
     4234#ifdef VBOX_WITH_VPX_MAIN
     4235    rc = VideoRecContextCreate(&pVideoRecContext);
     4236    rc = RTCritSectInit(&mCritSect);
     4237    AssertReturn(rc == VINF_SUCCESS, E_UNEXPECTED);
     4238
     4239    if(rc == VINF_SUCCESS)
     4240        rc = VideoRecContextInit(pVideoRecContext, "test.webm", 800, 720);
     4241
     4242#endif
    42204243
    42214244
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