VirtualBox

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

File:
1 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:
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