VirtualBox

Changeset 57875 in vbox


Ignore:
Timestamp:
Sep 24, 2015 9:46:27 AM (9 years ago)
Author:
vboxsync
Message:

WINNT/WDDM: Implement support for the YV12 surface format, fixes VLC crashing with certain videos previously because their YV12 to YUY2 conversion plugin seems to be buggy

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h

    r57601 r57875  
    501501    VBOXVHWA_INFO aInfos[VBOX_VIDEO_MAX_SCREENS];
    502502} VBOXWDDM_QI;
     503
     504/** Convert a given FourCC code to a D3DDDIFORMAT enum. */
     505#define VBOXWDDM_D3DDDIFORMAT_FROM_FOURCC(_a, _b, _c, _d) \
     506    ((D3DDDIFORMAT)MAKEFOURCC(_a, _b, _c, _d))
    503507
    504508/* submit cmd func */
     
    601605            return 16;
    602606        case D3DDDIFMT_YUY2: /* 4 bytes per 2 pixels. */
     607        case VBOXWDDM_D3DDDIFORMAT_FROM_FOURCC('Y', 'V', '1', '2'):
    603608            return 16;
    604609        default:
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DIf.cpp

    r57601 r57875  
    2222#include <iprt/assert.h>
    2323
     24/** Convert a given FourCC code to a D3DDDIFORMAT enum. */
     25#define VBOXWDDM_D3DDDIFORMAT_FROM_FOURCC(_a, _b, _c, _d) \
     26    ((D3DDDIFORMAT)MAKEFOURCC(_a, _b, _c, _d))
     27
    2428void VBoxDispD3DClose(VBOXDISPD3D *pD3D)
    2529{
     
    437441
    438442    {D3DDDIFMT_YUY2,
     443        0|
     444        0|
     445        0|
     446        FORMATOP_CONVERT_TO_ARGB|FORMATOP_OFFSCREENPLAIN|
     447        FORMATOP_NOFILTER|
     448        FORMATOP_NOALPHABLEND|
     449        FORMATOP_NOTEXCOORDWRAPNORMIP, 0, 0, 0},
     450
     451    {VBOXWDDM_D3DDDIFORMAT_FROM_FOURCC('Y', 'V', '1', '2'),
    439452        0|
    440453        0|
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