VirtualBox

Ignore:
Timestamp:
May 19, 2009 12:16:28 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47467
Message:

IFramebuffer cleanup next part:

  • removed obsolete internal framebuffer
  • removed IFramebuffer::setupInternalFramebuffer(), IFramebuffer::lockFramebuffer(), IFramebuffer::unlockFramebuffer(), IFramebuffer::registerExternalFramebuffer()
  • removed unused finished parameter of IFramebuffer::NotifyUpdate()
Location:
trunk/src/VBox/Frontends/VBoxHeadless
Files:
3 edited

Legend:

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

    r19239 r19817  
    4646#include <iprt/env.h>
    4747#include <VBox/err.h>
     48#include <VBox/VBoxVideo.h>
    4849
    4950#ifdef VBOX_FFMPEG
     
    744745                Log2(("VBoxHeadless: Registering framebuffer\n"));
    745746                pFramebuffer->AddRef();
    746                 display->RegisterExternalFramebuffer(pFramebuffer);
     747                display->SetFramebuffer(VBOX_VIDEO_PRIMARY_SCREEN, pFramebuffer);
    747748            }
    748749            if (!RT_SUCCESS(rrc) || (rcc != S_OK))
  • trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.cpp

    r19798 r19817  
    142142        {
    143143            /* Dummy update to make sure we get all the frame (timing). */
    144             BOOL dummy;
    145             NotifyUpdate(0, 0, 0, 0, &dummy);
     144            NotifyUpdate(0, 0, 0, 0);
    146145            /* Write the last pending frame before exiting */
    147146            int rc = do_rgb_to_yuv_conversion();
     
    431430 * @param w        width of the area which has been updated
    432431 * @param h        height of the area which has been updated
    433  * @param finished
    434  */
    435 STDMETHODIMP FFmpegFB::NotifyUpdate(ULONG x, ULONG y, ULONG w, ULONG h,
    436                                     BOOL *finished)
     432 */
     433STDMETHODIMP FFmpegFB::NotifyUpdate(ULONG x, ULONG y, ULONG w, ULONG h)
    437434{
    438435    int rc;
     
    442439              (unsigned long) x,  (unsigned long) y,  (unsigned long) w,
    443440               (unsigned long) h));
    444     if (!finished)
    445         return E_POINTER;
    446     /* For now we will do things synchronously */
    447     *finished = true;
     441
    448442    /* We always leave at least one frame update pending, which we
    449443       process when the time until the next frame has elapsed. */
  • trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.h

    r19798 r19817  
    100100    STDMETHOD(COMGETTER(WinId)) (ULONG64 *winId);
    101101
    102     STDMETHOD(NotifyUpdate)(ULONG x, ULONG y,
    103                             ULONG w, ULONG h, BOOL *finished);
     102    STDMETHOD(NotifyUpdate)(ULONG x, ULONG y, ULONG w, ULONG h);
    104103    STDMETHOD(RequestResize)(ULONG aScreenId, ULONG pixelFormat, BYTE *vram,
    105104                             ULONG bitsPerPixel, ULONG bytesPerLine,
Note: See TracChangeset for help on using the changeset viewer.

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