VirtualBox

Changeset 21939 in vbox for trunk/include


Ignore:
Timestamp:
Aug 3, 2009 11:52:51 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50619
Message:

Video Hw Accel: debugging & better color support (still debugging & perf enhancements needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxVideo.h

    r21609 r21939  
    276276 * must not be cleared once set, the command completion is performed by issuing a host->guest completion command
    277277 * while keeping this flag unchanged */
    278 #define VBOXVHWACMD_FLAG_ASYNCH       0x00000001
     278#define VBOXVHWACMD_FLAG_HG_ASYNCH               0x00010000
    279279/* asynch completion is performed by issuing the event */
    280 #define VBOXVHWACMD_FLAG_ASYNCH_EVENT 0x00000002
     280#define VBOXVHWACMD_FLAG_GH_ASYNCH_EVENT         0x00000001
    281281/* issue interrupt on asynch completion */
    282 #define VBOXVHWACMD_FLAG_ASYNCH_IRQ   0x00000004
     282#define VBOXVHWACMD_FLAG_GH_ASYNCH_IRQ           0x00000002
     283/* guest does not do any op on completion of this command, the host may copy the command and indicate that it does not need the command anymore
     284 * by setting the VBOXVHWACMD_FLAG_HG_ASYNCH_RETURNED flag */
     285#define VBOXVHWACMD_FLAG_GH_ASYNCH_NOCOMPLETION  0x00000004
     286/* the host has copied the VBOXVHWACMD_FLAG_GH_ASYNCH_NOCOMPLETION command and returned it to the guest */
     287#define VBOXVHWACMD_FLAG_HG_ASYNCH_RETURNED      0x00020000
    283288
    284289typedef struct _VBOXVHWACMD
     
    309314typedef struct _VBOXVHWA_RECTL
    310315{
    311     int32_t x;
    312     int32_t y;
    313     uint32_t w;
    314     uint32_t h;
     316    int32_t left;
     317    int32_t top;
     318    int32_t right;
     319    int32_t bottom;
    315320} VBOXVHWA_RECTL;
    316321
     
    348353        uint32_t yuvVBitMask;
    349354    } m3;
     355
     356    union
     357    {
     358        uint32_t rgbABitMask;
     359    } m4;
    350360} VBOXVHWA_PIXELFORMAT;
    351361
     
    356366    uint32_t width;
    357367    uint32_t pitch;
     368    uint32_t bitsPerPixel;
    358369    uint32_t cBackBuffers;
    359     uint32_t Reserved1;
    360370    VBOXVHWA_COLORKEY DstOverlayCK;
    361371    VBOXVHWA_COLORKEY DstBltCK;
     
    398408#define VBOXVHWA_CAPS_OVERLAYFOURCC   0x00000200
    399409#define VBOXVHWA_CAPS_OVERLAYSTRETCH  0x00000400
     410#define VBOXVHWA_CAPS_OVERLAYCANTCLIP 0x00000800
    400411
    401412#define VBOXVHWA_CAPS_COLORKEY        0x00010000
     
    521532typedef struct _VBOXVHWACMD_SURF_CANCREATE
    522533{
    523     union
    524     {
    525         struct
    526         {
    527             VBOXVHWA_SURFACEDESC SurfInfo;
     534    VBOXVHWA_SURFACEDESC SurfInfo;
     535    union
     536    {
     537        struct
     538        {
    528539            uint32_t bIsDifferentPixelFormat;
    529540            uint32_t Reserved;
     
    539550typedef struct _VBOXVHWACMD_SURF_CREATE
    540551{
    541     union
    542     {
    543         struct
    544         {
    545             VBOXVHWA_SURFACEDESC SurfInfo;
     552    VBOXVHWA_SURFACEDESC SurfInfo;
     553    union
     554    {
     555        struct
     556        {
    546557            uint64_t offSurface;
    547558        } in;
     
    587598        {
    588599            VBOXVHWA_SURFHANDLE hSurf;
     600            uint32_t xUpdatedMemValid;
     601            uint32_t reserved;
     602            VBOXVHWA_RECTL xUpdatedMemRect;
    589603        } in;
    590604    } u;
     
    606620            VBOXVHWA_RECTL srcRect;
    607621            uint32_t flags;
    608             uint32_t reserved;
     622            uint32_t xUpdatedSrcMemValid;
    609623            VBOXVHWA_BLTFX desc;
     624            VBOXVHWA_RECTL xUpdatedSrcMemRect;
    610625        } in;
    611626    } u;
     
    625640            uint64_t offCurrSurface;
    626641            uint32_t flags;
    627             uint32_t reserved;
     642            uint32_t xUpdatedTargMemValid;
     643            VBOXVHWA_RECTL xUpdatedTargMemRect;
    628644        } in;
    629645    } u;
     
    658674            VBOXVHWA_RECTL srcRect;
    659675            uint32_t flags;
    660             uint32_t reserved;
     676            uint32_t xUpdatedSrcMemValid;
    661677            VBOXVHWA_OVERLAYFX desc;
     678            VBOXVHWA_RECTL xUpdatedSrcMemRect;
    662679        } in;
    663680    } u;
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