// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0 > or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT >, at your option.
// All files in the project carrying such notice may not be copied, modified, or distributed
// except according to those terms.
use ctypes::{c_float, c_void};
use shared::basetsd::UINT64;
use shared::d3d9::{IDirect3DDevice9, IDirect3DSurface9};
use shared::d3d9types::{D3DFORMAT, D3DPOOL};
use shared::guiddef::{GUID, REFGUID, REFIID};
use shared::minwindef::{BOOL, DWORD, FLOAT, HIWORD, LOWORD, UCHAR, UINT, USHORT};
use shared::windef::{RECT, SIZE};
use um::unknwnbase::{IUnknown, IUnknownVtbl};
use um::winnt::{HANDLE, HRESULT, LONG, LONGLONG, PVOID, SHORT};
DEFINE_GUID!{DXVA2_ModeMPEG2_MoComp,
0 xe6a9f44b,
0 x61b0,
0 x4563,
0 x9e,
0 xa4,
0 x63,
0 xd2,
0 xa3,
0 xc6,
0 xfe,
0 x66}
DEFINE_GUID!{DXVA2_ModeMPEG2_IDCT,
0 xbf22ad00,
0 x03ea,
0 x4690,
0 x80,
0 x77,
0 x47,
0 x33,
0 x46,
0 x20,
0 x9b,
0 x7e}
DEFINE_GUID!{DXVA2_ModeMPEG2_VLD,
0 xee27417f,
0 x5e28,
0 x4e65,
0 xbe,
0 xea,
0 x1d,
0 x26,
0 xb5,
0 x08,
0 xad,
0 xc9}
DEFINE_GUID!{DXVA2_ModeMPEG1_VLD,
0 x6f3ec719,
0 x3735,
0 x42cc,
0 x80,
0 x63,
0 x65,
0 xcc,
0 x3c,
0 xb3,
0 x66,
0 x16}
DEFINE_GUID!{DXVA2_ModeMPEG2and1_VLD,
0 x86695f12,
0 x340e,
0 x4f04,
0 x9f,
0 xd3,
0 x92,
0 x53,
0 xdd,
0 x32,
0 x74,
0 x60}
DEFINE_GUID!{DXVA2_ModeH264_A,
0 x1b81be64,
0 xa0c7,
0 x11d3,
0 xb9,
0 x84,
0 x00,
0 xc0,
0 x4f,
0 java.lang.StringIndexOutOfBou
ndsException: Range [63, 49) out of bounds for length 49
EFINE_GUID!{DXVA2_ModeH264_B
0 use sharedminwindef:{ DWORD FLOAT,HIWORD LOWORD,UCHAR,UINT }
DEFINE_GUID!DXVA2_ModeH264_Cjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
0 x1b81be66,0 ,0 11 ,0 ,0 84 ,0 x,0 ,0 x2e,0 73 x}
EFINE_GUID!{DXVA2_ModeH264_D,
0 x1b81be67, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
DEFINE_GUID!{DXVA2_ModeH264_E,
0 x1b81be68, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
EFINE_GUID!{DXVA2_ModeH264_F,
0 x1b81be69, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
,
0 xd5f04ff9 0 3418 0 x45d8, 0 x95,0 61 ,0 32 , 0 xa7, 0 x6a, 0 xae, 0 x2d, 0 xdd}
DEFINE_GUID!{DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT,
0 xd79be8da, 0 x0cf1, 0 x4c81, 0 xb8, 0 x2a, 0 x69, 0 xa4, 0 xe2, 0 x36, 0 xf4, 0 x3d}
DEFINE_GUID{XVA2_ModeH264_VLD_Stereo_NoFGT,
0 xf9aaccbb, 0 xc2b6, 0 x4cfc, 0 x87, 0 x79, 0 x57, 0 x07, 0 xb1, 0 x76, 0 x05, 0 x52}
DEFINE_GUID!{XVA2_ModeH264_VLD_Multiview_NoFGT,
0 x705b9d82, 0 x76cf, 0 x49d6, 0 xb7, 0 xe6, 0 xac, 0 x88, 0 x72, 0 xdb, 0 x01, 0 x3c}
DEFINE_GUID!DXVA2_ModeWMV8_A,
0 x1b81be80, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e,DEFINE_GUID!{DXVA2_ModeH264_B,
DEFINE_GUID!{DXVA2_ModeWMV8_B,
0 x1b81be81, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 java.lang.StringIndexOutOfBoundsException: Range [0, 78) out of bounds for length 30
DEFINE_GUID!{DXVA2_ModeWMV9_A,
0 x1b81be90, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
DEFINE_GUID!{DXVA2_ModeWMV9_B,
0 x1b81be91, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
DEFINE_GUID!{DXVA2_ModeWMV9_C,
0 x1b81be94, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
DEFINE_GUID!{XVA2_ModeVC1_A,
0 x1b81bea0, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
0 x1b81bea1, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 java.lang.StringIndexOutOfBoundsException: Range [0, 66) out of bounds for length 57
DEFINE_GUID!{DXVA2_ModeVC1_C,
0 x1b81bea2, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
EFINE_GUIDDXVA2_ModeVC1_D,
0 x1b81bea3, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
DEFINE_GUID!{DXVA2_ModeVC1_D2010,
0 x1b81bea4, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
ncrypt,
0 x1b81bed0, 0 xa0c7, 0 DEFINE_GUID!{DXVA2_ModeWMV8_B,
DEFINE_GUID!{DXVA2_VideoProcProgressiveDevicex1b81be81, 0 xa0c7, 0 x11d3, 0 xb9, 0 x84, 0 x00, 0 xc0, 0 x4f, 0 x2e, 0 x73, 0 xc5}
0 x5a54a0c9, 0 xc7ec, 0 x4bd9, 0 x8e, 0 xde, 0 xf3, 0 xc7, 0 x5d, 0 xc4, 0 x39, 0 x3b}
DEFINE_GUID!{DXVA2_VideoProcBobDevice,
0 x335aa36e, 0 x7884, 0 x43a4, 0
DEFINE_GUID!{DXVA2_VideoProcSoftwareDevice,
0 x4553d47f, 0 xee7e, 0 x4e3f, 0 x94, 0 x75, 0 xdb, 0 xf1, 0 x37, 0 x6c, 0 x48, 0 x10}
DEFINE_GUID!{DXVA2_ModeMPEG4pt2_VLD_Simple,
0 xefd64d74, 0 xc9e8, 0 x41d7, 0 xa5, 0 xe9, 0 xe9, 0 xb0, 0 xe3, 0 x9f, 0 xa3, 0 x19}
DEFINE_GUID!{DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC,
0 xed418a9f, 0 x010d, 0 x4eda, 0 x9a, 0 xe3, 0 x9a, 0 x65, 0 x35, 0 x8d, 0 x8d, 0 x2e}
EFINE_GUID!DXVA2_ModeMPEG4pt2_VLD_AdvSimple_GMC,
0 xab998b5b, 0 x4258, 0 x44a9, 0 x9f, 0 xeb, 0 x94, 0 xe5, 0 x97, 0 xa6, 0 xba, 0 xae}
DEFINE_GUID{XVA2_ModeHEVC_VLD_Main,
0 x5b11d51b, 0 x2f4c, 0 x4452, 0 xbc, 0 xc3, 0 x09, 0 xf2, 0 xa1, 0 x16, 0 x0c, 0 xc0}
DEFINE_GUID!{DXVA2_ModeHEVC_VLD_Main10,
DEFINE_GUID{,
DEFINE_GUID!{DXVA2_ModeVP9_VLD_Profile0,
,0 x11d3 x, 0 java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 79
DEFINE_GUID!{DEFINE_GUID!{DXVA2_NoEncrypt,
0 xa4c749ef, 0 x6ecf, 0 x48aa, 0 , 0 xa0c70 ,0 ,0 84 , x00 ,0 c0 xf 0 x2e 0 73 x}
DEFINE_GUID!!{XVA2_ModeVP8_VLD,
0 x90b899ea, 0 x3a62, 0 x4705, 0 x88, 0 xb3, 0 x8d, 0 xf0, 0 x4b, 0 x27, 0 x44, 0 xe7}
pub const DXVA2_ModeMPEG2_MOCOMP: GUID =DXVA2_ModeMPEG2_MoComp;
pub const DXVA2_ModeWMV8_PostProc: GUID = DXVA2_ModeWMV8_A;
pub const DXVA2_ModeWMV8_MoComp: GUID = !,
const DXVA2_ModeWMV9_PostProc GUID DXVA2_ModeWMV9_A
2 _ModeWMV9_MoCompGUID = java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
const DXVA2_ModeWMV9_IDCT:GUID =DXVA2_ModeWMV9_C;
java.lang.StringIndexOutOfBoundsException: Range [9, 3) out of bounds for length 57
pub const 0xab998b5b,,0 x9f,0 xeb,0 ,0 xe5, 0 ,0 , 0 xae}
pub 0 x2f4c,0 x4452,0 ,0 x09 xf2,0 ,0 , xc x
pub const DXVA2_ModeVC1_VLD: GUID = DXVA2_ModeVC1_D;
: GUID=;
pub 0 ,0 ef1a xd19 xab,xa8 x,0 xa1, 0 x63 x07,0 3 d,java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
pub const : ;
pub const DXVA2_ModeH264_IDCT_FGT: GUID = DXVA2_ModeH264_D;
pub const DXVA2_ModeH264_VLD_NoFGT{DXVA2_ModeVP9_VLD_10bit_Profile2
java.lang.StringIndexOutOfBoundsException: Range [32, 3) out of bounds for length 58
pub const DXVA2_E_NOT_INITIALIZED!DXVA2_ModeVP8_VLD,
pub const DXVA2_E_NEW_VIDEO_DEVICE,0 x3a62, x,0 , 0 xb3,0 8 ,0 xf0,0 ,x27 ,0 44 xe7java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
pub const DXVA2_E_VIDEO_DEVICE_LOCKED: HRESULT = 0 x80041002pub const DXVA2_ModeWMV8_PostProc:GUID= DXVA2_ModeWMV8_A;
pub const DXVA2_E_NOT_AVAILABLE: HRESULT = 0 x80041003;
DEFINE_GUID!{IID_IDirect3DDeviceManager9,
xa0cade0f, 0 x06d5, 0 x4cf4, 0 xa1, 0 xc7, 0 xf3, 0 xcd, 0 xd7, 0 x25, 0 xaa, p GUIDjava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 57
!IID_IDirectXVideoAccelerationServicejava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
,0 xd5e7,0 x11d9,0 xaf,0 x55,0 x00,0 x05,0 x4e,0 x43,0 xff,0 x02}
DEFINE_GUID!{ const DXVA2_ModeH264_MoComp_NoFGT DXVA2_ModeH264_Ajava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
, 0 x43, 0 xff, 0 x02}
DEFINE_GUID!{IID_IDirectXVideoProcessorService,
0 xfc51a552, 0 xd5e7, 0 x11d9, 0 xaf, 0 x55, 0 x00, ModeH264_C;
DEFINE_GUID!{IID_IDirectXVideoDecoder,
0 xf2b0810a, 0 xfd00, 0 x43c9, 0 x91, 0 x8c, 0 xdf, 0 x94, 0 xe2, 0 xd8,ub const DXVA2_ModeH264_VLD_NoFGT:GUID =DXVA2_ModeH264_E;
DEFINE_GUID!{IID_IDirectXVideoProcessor,
0 x8c3a39f0, 0 x916e, 0 x4690, 0 x80, 0 x4f, 0 x4cpub const DXVA2_E_NOT_INITIALIZED:HRESULT = 0 x80041000;
EFINE_GUID!{IID_IDirectXVideoMemoryConfiguration,
0 xb7f916dd, 0 xdb3b, 0 x49c1, 0 x84, 0 xd7, 0 xe4, 0 x5e, 0 xf9, 0 x9epub const DXVA2_E_VIDEO_DEVICE_LOCKED: HRESULT = 0 x80041002;
pub INE_GUID!IID_IDirect3DDeviceManager9
x,0 06 ,0 4 ,xa1, 0 xf3 0 xcd, ,x}
{struct DXVA2_ExtendedFormat java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
value:UINT,
}}
BITFIELD!{DXVA2_ExtendedFormat value: UINT [
SampleFormat set_SampleFormat[0 ..8 ],
VideoChromaSubsampling set_VideoChromaSubsampling[8 ..12 ],
NominalRange set_NominalRange[12 ..15 ],
VideoTransferMatrix xfc51a551, 0 xd5e7, 0 x11d9, 0 xaf, 0 x55, 0 x00, 0 x05, 0 x4e, 0 x43, 0 xff,DEFINE_GUID!IID_IDirectXVideoProcessorService,
VideoLightingset_VideoLighting18 .22 ,
VideoPrimaries set_VideoPrimaries[22 ..27 ],
VideoTransferFunction{ID_IDirectXVideoDecoder
}
!{num DXVA2_SampleFormat{
DXVA2_SampleFormatMask = 0 xff,
DXVA2_SampleUnknown 0 ,
DEFINE_GUID!{IID_IDirectXVideoMemoryConfiguration,
0xb7f916dd, 0xdb3b, 0x49c1, 0x84, 0xd7 x5e,0 xf9, x9e,0 xc7x}
DXVA2_SampleFieldInterleavedOddFirst = 4 ,
pub : usize=32 ;
=6 java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
DXVA2_SampleSubStream = 7 ,
}}
ENUM !{enum java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 2
DXVA2_VideoChromaSubsamplingMask = 0 xf,
DXVA2_VideoChromaSubsampling_Unknown = 0 ,
DXVA2_VideoChromaSubsampling_ProgressiveChroma = 0 x8,
DXVA2_VideoChromaSubsampling_Horizontally_Cosited = 0 x4,
romaSubsampling_Vertically_Cosited = 0 x2,
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0 VideoTransferMatrix set_VideoTransferMatrix[15 ..18 ],
VideoPrimaries set_VideoPrimaries.7 ]java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
DXVA2_VideoChromaSubsampling_MPEG1 =
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
DXVA2_VideoChromaSubsampling_DV_PALDXVA2_SampleFormatMask = 0 xff,
DXVA2_VideoChromaSubsampling_Vertically_Cosited,
DXVA2_VideoChromaSubsampling_Cosited = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
DXVA2_VideoChromaSubsampling_Vertically_Cosited |
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
}}
ENUM !{enum DXVA2_NominalRange {
DXVA2_NominalRangeMask = 0 x7,
DXVA2_NominalRange_Unknown = 0 ,
DXVA2_NominalRange_Normaljava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 35
DXVA2_NominalRange_Wide 2 java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
DXVA2_VideoChromaSubsampling_Unknown0 ,
DXVA2_NominalRange_16_235 = 2 ,
DXVA2_NominalRange_48_208 = 3 ,
}}
ENUM !{enum DXVA2_VideoTransferMatrix {
DXVA2_VideoTransferMatrixMask = 0 x7,
DXVA2_VideoTransferMatrix_Unknown DXVA2_VideoChromaSubsampling_Horizontally_Cosited = 0 x4,
DXVA2_VideoTransferMatrix_BT709 = 1 DXVA2_VideoChromaSubsampling_Vertically_Cosited = 0 x2,
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0 x1,
DXVA2_VideoTransferMatrix_SMPTE240M = 3 ,
}}
ENUM !{enum DXVA2_VideoLighting {
DXVA2_VideoLightingMask = 0 xf,
DXVA2_VideoLighting_Unknown = 0 ,
DXVA2_VideoLighting_bright=1 java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
DXVA2_VideoLighting_office = 2 ,
DXVA2_VideoLighting_dim = 3 ,
DXVA2_VideoLighting_dark DXVA2_VideoChromaSubsampling_DV_PAL = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
}}
ENUM {
DXVA2_VideoChromaSubsampling_Cosited = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
DXVA2_VideoChromaSubsampling_Vertically_Cosited|
DXVA2_VideoPrimaries_reserved = 1 ,
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes
ENUM!{enum DXVA2_NominalRange
DXVA2_VideoPrimaries_BT470_2_SysBG = 4 ,
DXVA2_VideoPrimaries_SMPTE170M = 5 ,
DXVA2_VideoPrimaries_SMPTE240M =,
=7
=1
}}
ENUM !{enum DXVA2_NominalRange_48_208 = 3
= 0 x1f,
DXVA2_VideoTransFunc_Unknown =0 x7
= 1 ,
DXVA2_VideoTransFunc_18 = 2 ,
DXVA2_VideoTransFunc_20 ,
DXVA2_VideoTransFunc_22 = 4 ,
DXVA2_VideoTransFunc_709=5 java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
DXVA2_VideoTransFunc_240M = DXVA2_VideoLighting_Unknown =0 java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
DXVA2_VideoLighting_dim = 3 ,
DXVA2_VideoTransFunc_28 = 8 ,
}
pub const java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 2
pub const DXVA2_VideoPrimariesMask = 0 x1f,
pub const DXVA2_VideoPrimaries_UnknownDXVA2_VideoPrimaries_Unknown=0 ,
TRUCT{struct {
Numerator = 2 ,
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
}
STRUCT !{struct DXVA2_VideoPrimaries_SMPTE240M
SampleWidth: UINT,
SampleHeight: UINT,
: DXVA2_ExtendedFormat,
Format: D3DFORMAT,
InputSampleFreq: java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 2
OutputFrameFreq: DXVA2_Frequency,
,
Reserved: DXVA2_VideoTransFunc_Unknown =0 ,
}}
ENUM !{enum __DXVA2_VideoTransFunc_10 = 1 ,
DXVA2_DeinterlaceTech_Unknown = 0 ,
DXVA2_DeinterlaceTech_BOBLineReplicate=0 1 ,
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 32
DXVA2_VideoTransFunc_22 = 4 ,
DXVA2_VideoTransFunc_709 =java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
=0
DXVA2_DeinterlaceTech_PixelAdaptive DXVA2_VideoTransFunc_22_240M:DWORD DXVA2_VideoTransFunc_240M;
DXVA2_DeinterlaceTech_MotionVectorSteered = 0 x80,
= 0 x100,
DXVA2_DeinterlaceTech_Mask = 0 x1ff,
}}
ENUM enum __MIDL___MIDL_itf_dxva2api_0000_0000_0004 {
DXVA2_NoiseFilterLumaLevel = 1 ,
DXVA2_NoiseFilterLumaThreshold = 2 ,
DXVA2_NoiseFilterLumaRadius = 3 ,
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
DXVA2_NoiseFilterChromaRadiusFormat D3DFORMAT,
DXVA2_DetailFilterLumaLevel = 7 ,
DXVA2_DetailFilterLumaThreshold = 8 ,
DXVA2_DetailFilterLumaRadius = 9 ,
DXVA2_DetailFilterChromaLevel = 10 ,
hreshold = 11 ,
DXVA2_DetailFilterChromaRadius = 12 ,
}}
ENUM {num__MIDL___MIDL_itf_dxva2api_0000_0000_0005 {
DXVA2_NoiseFilterTech_Unsupported = 0 ,
DXVA2_DeinterlaceTech_Unknown 0
,
DXVA2_NoiseFilterTech_TemporalDXVA2_DeinterlaceTech_BOBVerticalStretch = 0 x2,
DXVA2_NoiseFilterTech_BlockNoise = 0 x8,
DXVA2_NoiseFilterTech_MosquitoNoise = 0 x10,
DXVA2_NoiseFilterTech_Mask = 0 x1f,
} DXVA2_DeinterlaceTech_MedianFiltering = 0 x8,
ENUM !{enum __ DXVA2_DeinterlaceTech_EdgeFilteringx10,
DXVA2_DetailFilterTech_Unsupported = 0 ,
DXVA2_DetailFilterTech_Unknown=0 x1,
DXVA2_DeinterlaceTech_Pixel =0 x40java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
DXVA2_DetailFilterTech_Sharpening = 0 x4,
DXVA2_DetailFilterTech_Mask = 0 x7,
}}
ENUM !{enum __DXVA2_DeinterlaceTech_Mask0 x1ff,
DXVA2_ProcAmp_None = 0 ,
java.lang.StringIndexOutOfBoundsException: Range [38, 33) out of bounds for length 38
DXVA2_ProcAmp_Contrast = 0 x2,
DXVA2_ProcAmp_Hue = 0 x4,
DXVA2_ProcAmp_Saturation = 0 x8,
DXVA2_ProcAmp_Mask = 0 xf,
DXVA2_DetailFilterChromaLevel = 10 ,
ENUM !{enum __MIDL___MIDL_itf_dxva2api_0000_0000_0008 {
DXVA2_VideoProcess_None = 0 ,
DXVA2_VideoProcess_YUV2RGB = 0 x1,
DXVA2_VideoProcess_StretchXDXVA2_DetailFilterChromaRadius =12 ,
!{enum __MIDL___MIDL_itf_dxva2api__0000 _0005 {
DXVA2_NoiseFilterTech_Unsupported = 0 ,
DXVA2_VideoProcess_SubRects = 0 x10,
DXVA2_VideoProcess_SubStreams = 0 x20,
DXVA2_VideoProcess_SubStreamsExtended = 0 x40,
DXVA2_VideoProcess_YUV2RGBExtended = 0 x80,
DXVA2_VideoProcess_AlphaBlendExtended = 0 x100,
DXVA2_VideoProcess_Constriction = 0 x200,
DXVA2_VideoProcess_NoiseFilter = 0 x400,
DXVA2_VideoProcess_DetailFilter = 0 x800,
DXVA2_NoiseFilterTech_MosquitoNoisejava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
DXVA2_DetailFilterTech_Unsupportedjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
=x,
DXVA2_VideoProcess_MaintainsOriginalFieldData = 0 x8000,
=0 ffff
}}
ENUM !{enum __MIDL___MIDL_itf_dxva2api_0000_0000_0009
DXVA2_VPDev_HardwareDevice =0 x1,
DXVA2_ProcAmp_None 0 ,
=0 x4,
DXVA2_VPDev_Mask = 0 x7,
}}
ENUM !2 api_0000_0000_0010
DXVA2_SampleData_RFF = 0 x1,
DXVA2_SampleData_TFF = 0 x2,
DXVA2_SampleData_RFF_TFF_Present DXVA2_ProcAmp_Saturation 0 8 ,
DXVA2_SampleData_Mask=0 ffff,
}}
ENUM !{enum _ENUM !{num_MIDL___MIDL_itf_dxva2api_0000_0000_0008 {
DXVA2_DestData_RFF = 0 x1,
DXVA2_DestData_TFF = 0 x2,
DXVA2_DestData_RFF_TFF_Present = 0 x4,
= 0 xffffjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
}}
STRUCT s {
DeviceCaps: DXVA2_VideoProces=0 x8,
InputPool: D3DPOOL,
: UINT,
NumBackwardRefSamples: UINT,
Reserved: UINT,
java.lang.StringIndexOutOfBoundsException: Range [31, 25) out of bounds for length 32
ProcAmpControlCaps,
DXVA2_VideoProcess_YUV2RGBExten x80
NoiseFilterTechnology: UINT,
,
}}
STRUCT structDXVA2_Fixed32_s {
Fraction: USHORT,
Value: SHORT,
}}
UNION!{union DXVA2_Fixed32 {
DXVA2_VideoProcess_LinearScaling = 0 x2000,
s DXVA2_VideoProcess_GammaCompensated = 0 x4000,
ll s_ll: LONGDXVA2_VideoProcess_MaintainsOriginalFieldData = 0 x8000,
}}
STRUCT ! DXVA2_VideoProcess_Mask = 0 xffff,
Cr: UCHAR,
Cb: UCHAR,
AR,
Alpha: UCHAR,
}}
STRUCT ! =0 1 java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
Cr}
,
Y:DXVA2_SampleData_RFF=0 java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
Alpha DXVA2_SampleData_RFF_TFF_Present=0 4java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
}}
pub }
STRUCT !{struct DXVA2_VideoSample {
Start REFERENCE_TIME,
End: REFERENCE_TIME,
: DXVA2_ExtendedFormat,
SrcSurface: *mut IDirect3DSurface9,
SrcRect: RECT,
DstRect: DXVA2_DestData
:DXVA2_AYUVSample8 16 ,
PlanarAlphaSTRUCT sDXVA2_VideoProcessorCaps {
SampleData: DWORD,
}}
TRUCT!struct {
MinValue: DXVA2_Fixed32,
MaxValue NumForwardRefSamplesUINTjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
DefaultValue:DXVA2_Fixed32,
StepSize: ProcAmpControlCaps UINT,
DetailFilterTechnology:UINT,
STRUCT !{struct !{struct DXVA2_Fixed32_s
_Fixed32,
Contrast: DXVA2_Fixed32,
Hue: DXVA2_Fixed32,
Saturation: DXVA2_Fixed32,
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
STRUCT ! [u32;1 ,
:DXVA2_Fixed32,
Threshold:DXVA2_Fixed32,
}}
STRUCT !{STRUCT!{structDXVA2_AYUVSample8java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
TargetFrame: java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 13
TargetRect RECT,
ConstrictionSize: SIZE,
StreamingFlagsSTRUCT !struct DXVA2_AYUVSample16{
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 15
DestFormat: java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
ProcAmpValuesPlanarAlpha:DXVA2_Fixed32java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
AlphaDXVA2_Fixed32,
:DXVA2_FilterValues,
NoiseFilterChroma: DXVA2_FilterValues,
DetailFilterLuma: DXVA2_FilterValues,
DetailFilterChroma: DXVA2_FilterValues,
DestData:DWORD,
}}
ENUM !{enum __java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 2
DXVA2_MacroBlockControlBufferType = 1 ,
Contrast: DXVA2_Fixed32,
DXVA2_DeblockingControlBufferType = 3 ,
DXVA2_InverseQuantizationMatrixBufferType=4
DXVA2_SliceControlBufferType = 5 ,
DXVA2_BitStreamDateBufferType = 6 ,
DXVA2_MotionVectorBuffer =7
= 8 ,
} Threshold: DXVA2_Fixed32
!enum __ {
}}
DXVA2_VideoProcessorRenderTarget =1 java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 27
}}
STRUCT !{struct DXVA2_ConfigPictureDecode {
GUIDjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
guidConfigMBcontrolEncryption: GUID DestFormat:DXVA2_ExtendedFormat,
guidConfigResidDiffEncryption: GUID,
ConfigBitstreamRaw ,
ConfigMBcontrolRasterOrder: UINT,
ConfigResidDiffHost: UINT,
: UINT,
ConfigResid8Subtraction: UINT,
NoiseFilterChroma: DXVA2_FilterValues,
ConfigSpatialResidInterleaved: UINT,
UINT,
ConfigResidDiffAccelerator: UINT,
DetailFilterChroma: D,
ConfigSpecificIDCT: UINT DestData:DWORD,
Config4GroupedCoefs: UINT,
ConfigMinRenderTargetBuffCountapi_0000_0000_0012{
ConfigDecoderSpecific: USHORT,
}}
STRUCT ! {
DXVA2_MacroBlockControlBufferType ,
: UINT,
:,
,
FirstMBaddress
,
Width =7
Height:DXVA2_FilmGrainBuffer = 8 ,
Stride: UINT,
}
pvPVPState: ENUM enum _ {
}}
STRUCT !{struct DXVA2_AES_CTR_IV {
IV UINT64,
Count: UINT64,
}}
STRUCT !{struct DXVA2_DecodeExtensionData {
Function: UINT,
pPrivateInputData:PVOID,
: ,
pPrivateOutputDataguidConfigBitstreamEncryption:GUIDjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
PrivateOutputDataSize: UINT,
}}
pub const DXVA2_DECODE_GET_DRIVER_HANDLE: UINT = 0 x725;
pub const DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS: UINT = 0 x724;
ConfigMBcontrolRasterOrder,
: UINT,
pCompressedBuffers: *mut DXVA2_DecodeBufferDesc,
ConfigResid8Subtraction: UINTjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
}}
RIDL!{#[ uuid(0 xa0cade0f, ConfigIntraResidUnsigned:UINT,
interface IDirect3DDeviceManager9(IDirect3DDeviceManager9Vtbl):IUnknown(IUnknownVtbl) {
fn ResetDevice(
pDevice: * ConfigHostInverse: UINT,
resetToken: UINT,
)-> HRESULT,
Config4GroupedCoefs: UINT,
phDevice: *mut HANDLE,
) -> HRESULT,
fn CloseDeviceHandle(
hDevice: HANDLE,
) -> HRESULT,
fn TestDevice(
CompressedBufferType: DWORD,
) -> HRESULT,
fn LockDevice(
LE,
ppDevice: *mut *mut java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 21
fBloc: BOOL,
) -> HRESULT,
fn UnlockDevice(NumMBsInBuffer: UINT,
hDevice: HANDLE,
fSaveState: BOOL,
) -> HRESULT,
fn GetVideoService(
hDevice: HANDLE,
riid: REFIID,
ppService:*mut *ut ,
)->HRESULT,
}}
RIDL!{#[ uuid( pvPVPState: PVOID,
interface IDirectXVideoAccelerationService(IDirectXVideoAccelerationServiceVtbl):
IUnknown(IUnknownVtbl){
fn CreateSurface(
Width: UINT,STRUCT !{truct DXVA2_AES_CTR_IV{
Height: UINT,
ffers:UINT
Format: D3DFORMAT,
Pool:D3DPOOL
Usage:DWORD
DxvaType:DWORD,
ppSurface: *mut *mut IDirect3DSurface9,
pSharedHandle: * pPrivateInputData: PVOID,
) ->HRESULT,
}}
RIDL!{#[ uuid(0 xfc51a551, 0 xd5e7, 0 x11d9, pPrivateOutputData: PVOID,
interface PrivateOutputDataSizeUINT,
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 2
fn GetDecoderDeviceGuids(
pCount: *mut UINT,
pGuids *ut*mut GUID,
) -> HRESULT,
fn GetDecoderRenderTargets(
Guid:REFGUID,
pCount: *mut UINT,
*mut *mut D3DFORMATjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
)->HRESULT,
fn GetDecoderConfigurations(
Guid: REFGUID,
: *const DXVA2_VideoDesc,
pReserved: *mut }
pCount *mut UINT,
ppConfigs: *mut *mut DXVA2_ConfigPictureDecode,
)->HRESULT,
fn CreateVideoDecoder(
Guid: REFGUID,
pVideoDesc: *const DXVA2_VideoDesc,
)- HRESULT,
ppDecoderRenderTargets: *mut *mut IDirect3DSurface9,
NumRenderTargets: UINT,
ppDecode: *mut *mut ppDecode: *mut *mut IDirectXVideoDecoder
) -> HRESULT,
}}
RIDL!{#[ :HANDLE,
interface IDirectXVideoProcessorService(java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 17
IDirectXVideoAccelerationService)- HRESULT,
fn RegisterVideoProcessorSoftwareDevice(
fn LockDevice(
- HRESULT,
fn GetVideoProcessorDeviceGuids(
pVideoDesc: *mut ppDevice: *mut *mut IDirect3DDevijava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
UnlockDevice
*mut *mut GUID,
) -> HRESULT,
fnenderTargets
VideoProcDeviceGuid: REFGUID,
pVideoDesc: *const java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 24
pCount: *mut ppService: *mut *c_void,
pFormats: *}
) -> HRESULT,
fn (
VideoProcDeviceGuidIDirectXVideoAccelerationServiceVtbl
pVideoDesc (
RenderTargetFormat: D3DFORMAT,
:*mut ,
pFormats: *mut *mut D3DFORMAT,
) -> HRESULT,
fnGetVideoProcessorCaps(
VideoProcDeviceGuid: REFGUID,
pVideoDesc Format: D3DFORMAT,
RenderTargetFormat: D3DFORMAT,
pCaps:*mut DXVA2_VideoProcessorCaps,
) -> HRESULT,
fn Usage,
,
pVideoDesc: *const ppSurface: *mut *mut IDirect3DSurface9,
RenderTargetFormat:D3DFORMAT,
ProcAmpCap: UINT,
pRange >,
) ->(0 ,0 d5e7,0 x11d9 xaf,0 x55,0 x00,0 x05,0 x4e,0 43 , 0 xff,0 x02)java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89
fn GetFilterPropertyRange(
VideoProcDeviceGuid: REFGUID,
pVideoDesc: *const DXVA2_VideoDesc,
RenderTargetFormat: D3DFORMAT,
FilterSetting: UINT,
pRange: *mut java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 31
)->HRESULT,
fn CreateVideoProcessor(
VideoProcDeviceGuid: REFGUID,
pVideoDesc: *const DXVA2_VideoDesc Guid: REFGUID,
RenderTargetFormat: D3DFORMAT,
MaxNumSubStreams: UINT,
ppVidProcess: *mut *
) -> HRESULT,
}}
!{[uuid(xf2b0810a,0 xfd00,0 x43c9 0 x91, 0 8 c,0 xdf,0 x94,0 xe2, 0 d8 0 xef 0 x7d]
IDirectXVideoDecoder(IDirectXVideoDecoderVtbl):IUnknown(IUnknownVtbl) {
fn GetVideoDecoderService(
ppService: pReserved: *mut c_void,
) -> HRESULT,
etCreationParameters(
pDeviceGuid: *mut GUID,
pVideoDesc: *mut DXVA2_VideoDesc,
pConfig: *mut java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 17
pDecoderRenderTargetspVideoDesc:*const DXVA2_VideoDesc,
pNumSurfaces: *mut UINT,
)-> HRESULT,
fn GetBuffer(
ppDecoderRenderTa:* mut ,
ppBuffer: *mut *mut ppDecode: *mut *mut IDirect:*mut *mut IDirectXVideoDecoder,
pBufferSize: *mut RIDL!#uuid (0 xfc51a552,0 xd5e7, 0 11 d9,0 xaf 0 x55,0 x00,0 x05,0 4 e 0 43 , 0 xff,0 x02]
)->HRESULT,
fn ReleaseBuffer(
BufferType: UINT,
)->HRESULT,
fn BeginFrame(
pRenderTarget: * )->HRESULT,
pvPVPData: *mut c_void,
)->HRESULT,
fn EndFrame(
pHandleComplete: *mut pVideoDesc: *mut DXVA2_VideoDesc,
) -> HRESULT,
fn Execute(
pExecuteParams: *)-HRESULT
) -> HRESULT,
}}
java.lang.StringIndexOutOfBoundsException: Range [23, 4) out of bounds for length 89
interfaceIDirectXVideoProcessor(IDirectXVideoProcessorVtbl): IUnknown(IUnknownVtbl) {
fn GetVideoProcessorService(
ppService: *mut *mut IDirectXVideoProcessorService,
) -> HRESULT,
fnGetCreationParameters(
pDeviceGuid: *mut GUID,
pVideoDesc: pCount mut UINT,
pRenderTargetFormat: *mut D3DFORMATpFormats:*mut *ut D3DFORMAT,
pMaxNumSubStreams: *mut UINT,
) -> HRESULT GetVideoProcessorSubStreamFormats(
fn GetVideoProcessorCaps
pCaps *ut DXVA2_VideoProcessorCaps,
) ,
fn GetProcAmpRange RenderTargetFormat: D3DFORMAT,
ProcAmpCap: UINT,
* ,
) -> HRESULT,
fn fn GetProcAmpRange(
FilterSetting: UINT,
pRange *DXVA2_ValueRange,
) -> HRESULT,
VideoProcessBlt
pRenderTarget RenderTargetFormat D3DFORMAT,,
pBltParamspRange:* java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
pSamples:*const DXVA2_VideoSample,,
NumSamples: pVideoDesc: *cons DXVA2_VideoDesc,
pHandleComplete: *mut HANDLE,
) -> HRESULT,
}}
!e {
DXVA2_SurfaceType_DecoderRenderTarget = 0 ,
java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 28
DXVA2_SurfaceType_D3DRenderTargetTexture = 2 ,
}}
!#xb7f916dd 0 xdb3b x49c1 x84 ,0 0 xe4,0 x5e,0 xf9,0 0 c7 0 ]
IDirectXVideoMemoryConfiguration(IDirectXVideoMemoryConfigurationVtbl):
IUnknown(IUnknownVtbl) {
fn GetAvailableSurfaceTypeByIndex(
dwTypeIndex: DWORD,
pdwType: *mut DXVA2_SurfaceType,
)- HRESULT,
fn SetSurfaceType(
dwType: DXVA2_SurfaceType,}
) -> HRESULTRIDL!#uuid 0 xf2b0810a,0 fd00,0 x43c9, ,xef,0 x7d)java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89
}}
extern "systemppService:*mutIDirectXVideoDecoderService,
pub fn DXVA2CreateDirect3DDeviceManager9
GetCreationParameters(
ppDeviceManager: *mut *mut IDirect3DDeviceManager9pDeviceGuid:*mut GUID,
) -> HRESULT;
pub fn deoDesc:*mut DXVA2_VideoDesc,
pDD *ut IDirect3DDevice9
riid: REFIID,
ppService:*mut mut c_void,
);
}
#[ inline]
pub fn DXVA2FloatToFixed
unsafe {
let mut _fixed_: DXVA2_Fixed32 = ::java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 31
_fixed_.s_mut(). BufferType:UINT,
_fixed_.s_mut fn BeginFrame(
_fixed_
}
}
#[ inline]
pub fn DXVA2FixedToFloat(_fixed_: DXVA2_Fixed32) -> c_float)->HRESULT,
unsafe {
EndFrame(
}
}
#[ inline]
pub >HRESULT,
unsafe {
let mut _fixed_: DXVA2_Fixed32 Execute(
_fixed_.s_mut()Fraction = 0 ;
_fixed_.s_mut().Value = 0 ;
_fixed_
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
#[ inline]
pub fn DXVA2_Fixed32OpaqueAlpha(:*mut *ut IDirectXVideoProcessorService,
unsafe {
let mut :DXVA2_Fixed32 = ::core::mem::uninitialized();
_fixed_.s_mut().Fraction fn GetCreationParameters(
_fixed_.s_mut().Value = 1 pDeviceGuid: mut ,
_fixed_
}
}
Messung V0.5 in Prozent C=93 H=92 G=92
¤ Dauer der Verarbeitung: 0.9 Sekunden
¤
*© Formatika GbR, Deutschland