include: Update dxva2api.idl.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Biswapriyo Nath 2019-01-22 07:00:00 +05:30 committed by Alexandre Julliard
parent 664b5cb0af
commit 508764a8bd
1 changed files with 242 additions and 0 deletions

View File

@ -34,6 +34,10 @@ cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_IDCT, 0xbf22ad00, 0x03ea,0x4690, 0x80,0
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_VLD, 0xee27417f, 0x5e28,0x4e65, 0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);")
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG1_VLD, 0x6f3ec719, 0x3735,0x42cc, 0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16);")
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2and1_VLD, 0x86695f12, 0x340e,0x4f04, 0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60);")
/* H264 */
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
cpp_quote("#define DXVA2_ModeH264_MoComp_NoFGT DXVA2_ModeH264_A")
@ -53,6 +57,12 @@ cpp_quote("#define DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_E")
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
cpp_quote("#define DXVA2_ModeH264_VLD_FGT DXVA2_ModeH264_F")
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_WithFMOASO_NoFGT, 0xd5f04ff9, 0x3418,0x45d8, 0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd);")
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1,0x4c81, 0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d);")
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_NoFGT, 0xf9aaccbb, 0xc2b6,0x4cfc, 0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52);")
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Multiview_NoFGT, 0x705b9d82, 0x76cf,0x49d6, 0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c);")
/* WMV8 */
cpp_quote("DEFINE_GUID(DXVA2_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
cpp_quote("#define DXVA2_ModeWMV8_PostProc DXVA2_ModeWMV8_A")
@ -83,14 +93,37 @@ cpp_quote("#define DXVA2_ModeVC1_IDCT DXVA2_ModeVC1_C")
cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
cpp_quote("#define DXVA2_ModeVC1_VLD DXVA2_ModeVC1_D")
cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_D2010, 0x1b81bea4, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
/* Encryption */
cpp_quote("DEFINE_GUID(DXVA_NoEncrypt, 0x1b81bed0, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
cpp_quote("DEFINE_GUID(DXVA2_VideoProcProgressiveDevice, 0x5a54a0c9, 0xc7ec,0x4bd9, 0x8e,0xde,0xf3,0xc7,0x5d,0xc4,0x39,0x3b);")
cpp_quote("DEFINE_GUID(DXVA2_VideoProcBobDevice, 0x335aa36e, 0x7884,0x43a4, 0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e);")
cpp_quote("DEFINE_GUID(DXVA2_VideoProcSoftwareDevice, 0x4553d47f, 0xee7e,0x4e3f, 0x94,0x75,0xdb,0xf1,0x37,0x6c,0x48,0x10);")
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_Simple, 0xefd64d74, 0xc9e8,0x41d7, 0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);")
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d,0x4eda, 0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e);")
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_GMC, 0xab998b5b, 0x4258,0x44a9, 0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae);")
cpp_quote("DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c,0x4452, 0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0);")
cpp_quote("DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main10, 0x107af0e0, 0xef1a,0x4d19, 0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13);")
cpp_quote("DEFINE_GUID(DXVA2_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0,0x4585, 0x87,0x6d,0x83,0xaa,0x6d,0x60,0xb8,0x9e);")
cpp_quote("DEFINE_GUID(DXVA2_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf,0x48aa, 0x84,0x48,0x50,0xa7,0xa1,0x16,0x5f,0xf7);")
cpp_quote("DEFINE_GUID(DXVA2_ModeVP8_VLD, 0x90b899ea, 0x3a62,0x4705, 0x88,0xb3,0x8d,0xf0,0x4b,0x27,0x44,0xe7);")
cpp_quote("#ifndef REFERENCE_TIME_DEFINED")
cpp_quote("#define REFERENCE_TIME_DEFINED")
typedef LONGLONG REFERENCE_TIME;
cpp_quote("#endif")
/* DXVA2-specific error codes */
cpp_quote("#define DXVA2_E_NOT_INITIALIZED ((HRESULT)0x80041000)")
cpp_quote("#define DXVA2_E_NEW_VIDEO_DEVICE ((HRESULT)0x80041001)")
cpp_quote("#define DXVA2_E_VIDEO_DEVICE_LOCKED ((HRESULT)0x80041002)")
cpp_quote("#define DXVA2_E_NOT_AVAILABLE ((HRESULT)0x80041003)")
enum
{
DXVA2_PictureParametersBufferType,
@ -129,6 +162,98 @@ typedef struct _DXVA2_ExtendedFormat
};
} DXVA2_ExtendedFormat;
typedef enum _DXVA2_SampleFormat
{
DXVA2_SampleFormatMask = 0x00FF,
DXVA2_SampleUnknown = 0,
DXVA2_SampleProgressiveFrame = 2,
DXVA2_SampleFieldInterleavedEvenFirst = 3,
DXVA2_SampleFieldInterleavedOddFirst = 4,
DXVA2_SampleFieldSingleEven = 5,
DXVA2_SampleFieldSingleOdd = 6,
DXVA2_SampleSubStream = 7
} DXVA2_SampleFormat;
typedef enum _DXVA2_VideoChromaSubSampling
{
DXVA2_VideoChromaSubsamplingMask = 0x0F,
DXVA2_VideoChromaSubsampling_Unknown = 0,
DXVA2_VideoChromaSubsampling_ProgressiveChroma = 0x8,
DXVA2_VideoChromaSubsampling_Horizontally_Cosited = 0x4,
DXVA2_VideoChromaSubsampling_Vertically_Cosited = 0x2,
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1,
DXVA2_VideoChromaSubsampling_MPEG2 = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
DXVA2_VideoChromaSubsampling_MPEG1 = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
DXVA2_VideoChromaSubsampling_DV_PAL = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
DXVA2_VideoChromaSubsampling_Vertically_Cosited,
DXVA2_VideoChromaSubsampling_Cosited = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
DXVA2_VideoChromaSubsampling_Vertically_Cosited |
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes
} DXVA2_VideoChromaSubSampling;
typedef enum _DXVA2_NominalRange
{
DXVA2_NominalRangeMask = 0x07,
DXVA2_NominalRange_Unknown = 0,
DXVA2_NominalRange_Normal = 1,
DXVA2_NominalRange_Wide = 2,
DXVA2_NominalRange_0_255 = 1,
DXVA2_NominalRange_16_235 = 2,
DXVA2_NominalRange_48_208 = 3
} DXVA2_NominalRange;
typedef enum _DXVA2_VideoTransferMatrix
{
DXVA2_VideoTransferMatrixMask = 0x07,
DXVA2_VideoTransferMatrix_Unknown = 0,
DXVA2_VideoTransferMatrix_BT709 = 1,
DXVA2_VideoTransferMatrix_BT601 = 2,
DXVA2_VideoTransferMatrix_SMPTE240M = 3
} DXVA2_VideoTransferMatrix;
typedef enum _DXVA2_VideoLighting
{
DXVA2_VideoLightingMask = 0x0F,
DXVA2_VideoLighting_Unknown = 0,
DXVA2_VideoLighting_bright = 1,
DXVA2_VideoLighting_office = 2,
DXVA2_VideoLighting_dim = 3,
DXVA2_VideoLighting_dark = 4
} DXVA2_VideoLighting;
typedef enum _DXVA2_VideoPrimaries
{
DXVA2_VideoPrimariesMask = 0x001f,
DXVA2_VideoPrimaries_Unknown = 0,
DXVA2_VideoPrimaries_reserved = 1,
DXVA2_VideoPrimaries_BT709 = 2,
DXVA2_VideoPrimaries_BT470_2_SysM = 3,
DXVA2_VideoPrimaries_BT470_2_SysBG = 4,
DXVA2_VideoPrimaries_SMPTE170M = 5,
DXVA2_VideoPrimaries_SMPTE240M = 6,
DXVA2_VideoPrimaries_EBU3213 = 7,
DXVA2_VideoPrimaries_SMPTE_C = 8
} DXVA2_VideoPrimaries;
typedef enum _DXVA2_VideoTransferFunction
{
DXVA2_VideoTransFuncMask = 0x001f,
DXVA2_VideoTransFunc_Unknown = 0,
DXVA2_VideoTransFunc_10 = 1,
DXVA2_VideoTransFunc_18 = 2,
DXVA2_VideoTransFunc_20 = 3,
DXVA2_VideoTransFunc_22 = 4,
DXVA2_VideoTransFunc_709 = 5,
DXVA2_VideoTransFunc_240M = 6,
DXVA2_VideoTransFunc_sRGB = 7,
DXVA2_VideoTransFunc_28 = 8
} DXVA2_VideoTransferFunction;
cpp_quote("#define DXVA2_VideoTransFunc_22_709 DXVA2_VideoTransFunc_709")
cpp_quote("#define DXVA2_VideoTransFunc_22_240M DXVA2_VideoTransFunc_240M")
cpp_quote("#define DXVA2_VideoTransFunc_22_8bit_sRGB DXVA2_VideoTransFunc_sRGB")
typedef struct _DXVA2_Frequency
{
UINT Numerator;
@ -168,6 +293,113 @@ typedef struct _DXVA2_VideoDesc
UINT Reserved;
} DXVA2_VideoDesc;
enum
{
DXVA2_DeinterlaceTech_Unknown = 0x0000,
DXVA2_DeinterlaceTech_BOBLineReplicate = 0x0001,
DXVA2_DeinterlaceTech_BOBVerticalStretch = 0x0002,
DXVA2_DeinterlaceTech_BOBVerticalStretch4Tap = 0x0004,
DXVA2_DeinterlaceTech_MedianFiltering = 0x0008,
DXVA2_DeinterlaceTech_EdgeFiltering = 0x0010,
DXVA2_DeinterlaceTech_FieldAdaptive = 0x0020,
DXVA2_DeinterlaceTech_PixelAdaptive = 0x0040,
DXVA2_DeinterlaceTech_MotionVectorSteered = 0x0080,
DXVA2_DeinterlaceTech_InverseTelecine = 0x0100,
DXVA2_DeinterlaceTech_Mask = 0x01ff
};
enum
{
DXVA2_NoiseFilterLumaLevel = 1,
DXVA2_NoiseFilterLumaThreshold = 2,
DXVA2_NoiseFilterLumaRadius = 3,
DXVA2_NoiseFilterChromaLevel = 4,
DXVA2_NoiseFilterChromaThreshold = 5,
DXVA2_NoiseFilterChromaRadius = 6,
DXVA2_DetailFilterLumaLevel = 7,
DXVA2_DetailFilterLumaThreshold = 8,
DXVA2_DetailFilterLumaRadius = 9,
DXVA2_DetailFilterChromaLevel = 10,
DXVA2_DetailFilterChromaThreshold = 11,
DXVA2_DetailFilterChromaRadius = 12
};
enum
{
DXVA2_NoiseFilterTech_Unsupported = 0,
DXVA2_NoiseFilterTech_Unknown = 0x0001,
DXVA2_NoiseFilterTech_Median = 0x0002,
DXVA2_NoiseFilterTech_Temporal = 0x0004,
DXVA2_NoiseFilterTech_BlockNoise = 0x0008,
DXVA2_NoiseFilterTech_MosquitoNoise = 0x0010,
DXVA2_NoiseFilterTech_Mask = 0x001f
};
enum
{
DXVA2_DetailFilterTech_Unsupported = 0,
DXVA2_DetailFilterTech_Unknown = 0x0001,
DXVA2_DetailFilterTech_Edge = 0x0002,
DXVA2_DetailFilterTech_Sharpening = 0x0004,
DXVA2_DetailFilterTech_Mask = 0x0007
};
enum
{
DXVA2_ProcAmp_None = 0x0000,
DXVA2_ProcAmp_Brightness = 0x0001,
DXVA2_ProcAmp_Contrast = 0x0002,
DXVA2_ProcAmp_Hue = 0x0004,
DXVA2_ProcAmp_Saturation = 0x0008,
DXVA2_ProcAmp_Mask = 0x000f
};
enum
{
DXVA2_VideoProcess_None = 0x0000,
DXVA2_VideoProcess_YUV2RGB = 0x0001,
DXVA2_VideoProcess_StretchX = 0x0002,
DXVA2_VideoProcess_StretchY = 0x0004,
DXVA2_VideoProcess_AlphaBlend = 0x0008,
DXVA2_VideoProcess_SubRects = 0x0010,
DXVA2_VideoProcess_SubStreams = 0x0020,
DXVA2_VideoProcess_SubStreamsExtended = 0x0040,
DXVA2_VideoProcess_YUV2RGBExtended = 0x0080,
DXVA2_VideoProcess_AlphaBlendExtended = 0x0100,
DXVA2_VideoProcess_Constriction = 0x0200,
DXVA2_VideoProcess_NoiseFilter = 0x0400,
DXVA2_VideoProcess_DetailFilter = 0x0800,
DXVA2_VideoProcess_PlanarAlpha = 0x1000,
DXVA2_VideoProcess_LinearScaling = 0x2000,
DXVA2_VideoProcess_GammaCompensated = 0x4000,
DXVA2_VideoProcess_MaintainsOriginalFieldData = 0x8000,
DXVA2_VideoProcess_Mask = 0xffff
};
enum
{
DXVA2_VPDev_HardwareDevice = 0x0001,
DXVA2_VPDev_EmulatedDXVA1 = 0x0002,
DXVA2_VPDev_SoftwareDevice = 0x0004,
DXVA2_VPDev_Mask = 0x0007
};
enum
{
DXVA2_SampleData_RFF = 0x0001,
DXVA2_SampleData_TFF = 0x0002,
DXVA2_SampleData_RFF_TFF_Present = 0x0004,
DXVA2_SampleData_Mask = 0xffff
};
enum
{
DXVA2_DestData_RFF = 0x0001,
DXVA2_DestData_TFF = 0x0002,
DXVA2_DestData_RFF_TFF_Present = 0x0004,
DXVA2_DestData_Mask = 0xffff
};
typedef struct _DXVA2_DecodeBufferDesc
{
DWORD CompressedBufferType;
@ -183,6 +415,12 @@ typedef struct _DXVA2_DecodeBufferDesc
PVOID pvPVPState;
} DXVA2_DecodeBufferDesc;
typedef struct _DXVA2_AES_CTR_IV
{
UINT64 IV;
UINT64 Count;
} DXVA2_AES_CTR_IV;
typedef struct _DXVA2_DecodeExtensionData
{
UINT Function;
@ -302,6 +540,10 @@ typedef enum
DXVA2_SurfaceType_D3DRenderTargetTexture,
} DXVA2_SurfaceType;
interface IDirect3DDeviceManager9;
interface IDirectXVideoAccelerationService;
interface IDirectXVideoDecoderService;
interface IDirectXVideoProcessorService;
interface IDirectXVideoDecoder;
interface IDirectXVideoProcessor;