VirtualBox

Ignore:
Timestamp:
Feb 28, 2008 6:43:08 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28520
Message:

Main: Reworked enums to avoid 1) weird duplication of enum name when referring to enum values in cross-platform code; 2) possible clashes on Win32 due to putting identifiers like Paused or Disabled to the global namespace (via C enums). In the new style, enums are used like this: a) USBDeviceState_T v = USBDeviceState_Busy from cross-platform non-Qt code; b) KUSBDeviceState v = KUSBDeviceState_Busy from Qt code; c) USBDeviceState v = USBDeviceState_Busy from plain Win32 and d) PRUInt32 USBDeviceState v = USBDeviceState::Busy from plain XPCOM.

File:
1 edited

Legend:

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

    r6000 r7207  
    7676                   com::Bstr filename) :
    7777    mBitRate(bitrate),
    78     mPixelFormat(FramebufferPixelFormat_PixelFormatOpaque),
     78    mPixelFormat(FramebufferPixelFormat_Opaque),
    7979    mBitsPerPixel(0),
    8080    mFileName(filename),
     
    142142        for (int i = 10*25; i > 0; i--)
    143143            do_encoding_and_write();
    144 #endif 
     144#endif
    145145        /* write a png file of the last frame */
    146146        write_png();
     
    210210    /* Set the initial framebuffer size to the mpeg frame dimensions */
    211211    BOOL finished;
    212     RequestResize(0, FramebufferPixelFormat_PixelFormatOpaque, NULL, 0, 0,
     212    RequestResize(0, FramebufferPixelFormat_Opaque, NULL, 0, 0,
    213213                  mFrameWidth, mFrameHeight, &finished);
    214214    /* Start counting time */
     
    272272 * Return the colour depth of our frame buffer.  Note that we actually
    273273 * store the pixel format, not the colour depth internally, since
    274  * when display sets FramebufferPixelFormat_PixelFormatOpaque, it
    275  * wants to retreive FramebufferPixelFormat_PixelFormatOpaque and
     274 * when display sets FramebufferPixelFormat_Opaque, it
     275 * wants to retreive FramebufferPixelFormat_Opaque and
    276276 * nothing else.
    277277 *
     
    482482 * we have chosen, and the other COMGETTER methods tell the device about
    483483 * the layout of our buffer.  We currently handle all VRAM layouts except
    484  * FramebufferPixelFormat_PixelFormatOpaque (which cannot be handled by
     484 * FramebufferPixelFormat_Opaque (which cannot be handled by
    485485 * definition).
    486486 */
     
    644644}
    645645
    646 /** Stubbed */   
     646/** Stubbed */
    647647STDMETHODIMP FFmpegFB::GetVisibleRegion(BYTE *rectangles, ULONG /* count */, ULONG * /* countCopied */)
    648648{
     
    653653}
    654654
    655 /** Stubbed */   
     655/** Stubbed */
    656656STDMETHODIMP FFmpegFB::SetVisibleRegion(BYTE *rectangles, ULONG /* count */)
    657657{
     
    720720    if (!mpFormatContext->max_delay)
    721721        mpFormatContext->max_delay = (int)(0.7 * AV_TIME_BASE);
    722 #endif 
     722#endif
    723723    return S_OK;
    724724}
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