d3d12video.h 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452
  1. /*-------------------------------------------------------------------------------------
  2. *
  3. * Copyright (c) Microsoft Corporation
  4. *
  5. *-------------------------------------------------------------------------------------*/
  6. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  7. /* File created by MIDL compiler version 8.01.0622 */
  8. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  9. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  10. #define __REQUIRED_RPCNDR_H_VERSION__ 500
  11. #endif
  12. /* verify that the <rpcsal.h> version is high enough to compile this file*/
  13. #ifndef __REQUIRED_RPCSAL_H_VERSION__
  14. #define __REQUIRED_RPCSAL_H_VERSION__ 100
  15. #endif
  16. #include "rpc.h"
  17. #include "rpcndr.h"
  18. #ifndef __RPCNDR_H_VERSION__
  19. #error this stub requires an updated version of <rpcndr.h>
  20. #endif /* __RPCNDR_H_VERSION__ */
  21. #ifndef COM_NO_WINDOWS_H
  22. #include "windows.h"
  23. #include "ole2.h"
  24. #endif /*COM_NO_WINDOWS_H*/
  25. #ifndef __d3d12video_h__
  26. #define __d3d12video_h__
  27. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  28. #pragma once
  29. #endif
  30. /* Forward Declarations */
  31. #ifndef __ID3D12VideoDecoderHeap_FWD_DEFINED__
  32. #define __ID3D12VideoDecoderHeap_FWD_DEFINED__
  33. typedef interface ID3D12VideoDecoderHeap ID3D12VideoDecoderHeap;
  34. #endif /* __ID3D12VideoDecoderHeap_FWD_DEFINED__ */
  35. #ifndef __ID3D12VideoDevice_FWD_DEFINED__
  36. #define __ID3D12VideoDevice_FWD_DEFINED__
  37. typedef interface ID3D12VideoDevice ID3D12VideoDevice;
  38. #endif /* __ID3D12VideoDevice_FWD_DEFINED__ */
  39. #ifndef __ID3D12VideoDecoder_FWD_DEFINED__
  40. #define __ID3D12VideoDecoder_FWD_DEFINED__
  41. typedef interface ID3D12VideoDecoder ID3D12VideoDecoder;
  42. #endif /* __ID3D12VideoDecoder_FWD_DEFINED__ */
  43. #ifndef __ID3D12VideoProcessor_FWD_DEFINED__
  44. #define __ID3D12VideoProcessor_FWD_DEFINED__
  45. typedef interface ID3D12VideoProcessor ID3D12VideoProcessor;
  46. #endif /* __ID3D12VideoProcessor_FWD_DEFINED__ */
  47. #ifndef __ID3D12VideoDecodeCommandList_FWD_DEFINED__
  48. #define __ID3D12VideoDecodeCommandList_FWD_DEFINED__
  49. typedef interface ID3D12VideoDecodeCommandList ID3D12VideoDecodeCommandList;
  50. #endif /* __ID3D12VideoDecodeCommandList_FWD_DEFINED__ */
  51. #ifndef __ID3D12VideoProcessCommandList_FWD_DEFINED__
  52. #define __ID3D12VideoProcessCommandList_FWD_DEFINED__
  53. typedef interface ID3D12VideoProcessCommandList ID3D12VideoProcessCommandList;
  54. #endif /* __ID3D12VideoProcessCommandList_FWD_DEFINED__ */
  55. #ifndef __ID3D12VideoDecodeCommandList1_FWD_DEFINED__
  56. #define __ID3D12VideoDecodeCommandList1_FWD_DEFINED__
  57. typedef interface ID3D12VideoDecodeCommandList1 ID3D12VideoDecodeCommandList1;
  58. #endif /* __ID3D12VideoDecodeCommandList1_FWD_DEFINED__ */
  59. #ifndef __ID3D12VideoProcessCommandList1_FWD_DEFINED__
  60. #define __ID3D12VideoProcessCommandList1_FWD_DEFINED__
  61. typedef interface ID3D12VideoProcessCommandList1 ID3D12VideoProcessCommandList1;
  62. #endif /* __ID3D12VideoProcessCommandList1_FWD_DEFINED__ */
  63. /* header files for imported files */
  64. #include "oaidl.h"
  65. #include "ocidl.h"
  66. #include "dxgicommon.h"
  67. #include "d3d12.h"
  68. #ifdef __cplusplus
  69. extern "C"{
  70. #endif
  71. /* interface __MIDL_itf_d3d12video_0000_0000 */
  72. /* [local] */
  73. #include <winapifamily.h>
  74. // BK - pragma region App Family
  75. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
  76. typedef
  77. enum D3D12_VIDEO_FIELD_TYPE
  78. {
  79. D3D12_VIDEO_FIELD_TYPE_NONE = 0,
  80. D3D12_VIDEO_FIELD_TYPE_INTERLACED_TOP_FIELD_FIRST = 1,
  81. D3D12_VIDEO_FIELD_TYPE_INTERLACED_BOTTOM_FIELD_FIRST = 2
  82. } D3D12_VIDEO_FIELD_TYPE;
  83. typedef
  84. enum D3D12_VIDEO_FRAME_STEREO_FORMAT
  85. {
  86. D3D12_VIDEO_FRAME_STEREO_FORMAT_NONE = 0,
  87. D3D12_VIDEO_FRAME_STEREO_FORMAT_MONO = 1,
  88. D3D12_VIDEO_FRAME_STEREO_FORMAT_HORIZONTAL = 2,
  89. D3D12_VIDEO_FRAME_STEREO_FORMAT_VERTICAL = 3,
  90. D3D12_VIDEO_FRAME_STEREO_FORMAT_SEPARATE = 4
  91. } D3D12_VIDEO_FRAME_STEREO_FORMAT;
  92. typedef struct D3D12_VIDEO_FORMAT
  93. {
  94. DXGI_FORMAT Format;
  95. DXGI_COLOR_SPACE_TYPE ColorSpace;
  96. } D3D12_VIDEO_FORMAT;
  97. typedef struct D3D12_VIDEO_SAMPLE
  98. {
  99. UINT Width;
  100. UINT Height;
  101. D3D12_VIDEO_FORMAT Format;
  102. } D3D12_VIDEO_SAMPLE;
  103. typedef
  104. enum D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE
  105. {
  106. D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_NONE = 0,
  107. D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_FIELD_BASED = 1
  108. } D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE;
  109. typedef
  110. enum D3D12_FEATURE_VIDEO
  111. {
  112. D3D12_FEATURE_VIDEO_DECODE_SUPPORT = 0,
  113. D3D12_FEATURE_VIDEO_DECODE_PROFILES = 1,
  114. D3D12_FEATURE_VIDEO_DECODE_FORMATS = 2,
  115. D3D12_FEATURE_VIDEO_DECODE_CONVERSION_SUPPORT = 3,
  116. D3D12_FEATURE_VIDEO_PROCESS_SUPPORT = 5,
  117. D3D12_FEATURE_VIDEO_PROCESS_MAX_INPUT_STREAMS = 6,
  118. D3D12_FEATURE_VIDEO_PROCESS_REFERENCE_INFO = 7,
  119. D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE = 8,
  120. D3D12_FEATURE_VIDEO_PROCESSOR_SIZE = 9,
  121. D3D12_FEATURE_VIDEO_DECODE_PROFILE_COUNT = 10,
  122. D3D12_FEATURE_VIDEO_DECODE_FORMAT_COUNT = 11,
  123. D3D12_FEATURE_VIDEO_ARCHITECTURE = 17,
  124. D3D12_FEATURE_VIDEO_DECODE_HISTOGRAM = 18
  125. } D3D12_FEATURE_VIDEO;
  126. typedef
  127. enum D3D12_BITSTREAM_ENCRYPTION_TYPE
  128. {
  129. D3D12_BITSTREAM_ENCRYPTION_TYPE_NONE = 0
  130. } D3D12_BITSTREAM_ENCRYPTION_TYPE;
  131. typedef struct D3D12_VIDEO_DECODE_CONFIGURATION
  132. {
  133. GUID DecodeProfile;
  134. D3D12_BITSTREAM_ENCRYPTION_TYPE BitstreamEncryption;
  135. D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE InterlaceType;
  136. } D3D12_VIDEO_DECODE_CONFIGURATION;
  137. typedef struct D3D12_VIDEO_DECODER_DESC
  138. {
  139. UINT NodeMask;
  140. D3D12_VIDEO_DECODE_CONFIGURATION Configuration;
  141. } D3D12_VIDEO_DECODER_DESC;
  142. typedef struct D3D12_VIDEO_DECODER_HEAP_DESC
  143. {
  144. UINT NodeMask;
  145. D3D12_VIDEO_DECODE_CONFIGURATION Configuration;
  146. UINT DecodeWidth;
  147. UINT DecodeHeight;
  148. DXGI_FORMAT Format;
  149. DXGI_RATIONAL FrameRate;
  150. UINT BitRate;
  151. UINT MaxDecodePictureBufferCount;
  152. } D3D12_VIDEO_DECODER_HEAP_DESC;
  153. typedef struct D3D12_VIDEO_SIZE_RANGE
  154. {
  155. UINT MaxWidth;
  156. UINT MaxHeight;
  157. UINT MinWidth;
  158. UINT MinHeight;
  159. } D3D12_VIDEO_SIZE_RANGE;
  160. typedef
  161. enum D3D12_VIDEO_PROCESS_FILTER
  162. {
  163. D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS = 0,
  164. D3D12_VIDEO_PROCESS_FILTER_CONTRAST = 1,
  165. D3D12_VIDEO_PROCESS_FILTER_HUE = 2,
  166. D3D12_VIDEO_PROCESS_FILTER_SATURATION = 3,
  167. D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION = 4,
  168. D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT = 5,
  169. D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING = 6,
  170. D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT = 7
  171. } D3D12_VIDEO_PROCESS_FILTER;
  172. typedef
  173. enum D3D12_VIDEO_PROCESS_FILTER_FLAGS
  174. {
  175. D3D12_VIDEO_PROCESS_FILTER_FLAG_NONE = 0,
  176. D3D12_VIDEO_PROCESS_FILTER_FLAG_BRIGHTNESS = ( 1 << D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS ) ,
  177. D3D12_VIDEO_PROCESS_FILTER_FLAG_CONTRAST = ( 1 << D3D12_VIDEO_PROCESS_FILTER_CONTRAST ) ,
  178. D3D12_VIDEO_PROCESS_FILTER_FLAG_HUE = ( 1 << D3D12_VIDEO_PROCESS_FILTER_HUE ) ,
  179. D3D12_VIDEO_PROCESS_FILTER_FLAG_SATURATION = ( 1 << D3D12_VIDEO_PROCESS_FILTER_SATURATION ) ,
  180. D3D12_VIDEO_PROCESS_FILTER_FLAG_NOISE_REDUCTION = ( 1 << D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION ) ,
  181. D3D12_VIDEO_PROCESS_FILTER_FLAG_EDGE_ENHANCEMENT = ( 1 << D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT ) ,
  182. D3D12_VIDEO_PROCESS_FILTER_FLAG_ANAMORPHIC_SCALING = ( 1 << D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING ) ,
  183. D3D12_VIDEO_PROCESS_FILTER_FLAG_STEREO_ADJUSTMENT = ( 1 << D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT )
  184. } D3D12_VIDEO_PROCESS_FILTER_FLAGS;
  185. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_FILTER_FLAGS );
  186. typedef
  187. enum D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS
  188. {
  189. D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_NONE = 0,
  190. D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_BOB = 0x1,
  191. D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_CUSTOM = 0x80000000
  192. } D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS;
  193. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS );
  194. typedef struct D3D12_VIDEO_PROCESS_ALPHA_BLENDING
  195. {
  196. BOOL Enable;
  197. FLOAT Alpha;
  198. } D3D12_VIDEO_PROCESS_ALPHA_BLENDING;
  199. typedef struct D3D12_VIDEO_PROCESS_LUMA_KEY
  200. {
  201. BOOL Enable;
  202. FLOAT Lower;
  203. FLOAT Upper;
  204. } D3D12_VIDEO_PROCESS_LUMA_KEY;
  205. typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC
  206. {
  207. DXGI_FORMAT Format;
  208. DXGI_COLOR_SPACE_TYPE ColorSpace;
  209. DXGI_RATIONAL SourceAspectRatio;
  210. DXGI_RATIONAL DestinationAspectRatio;
  211. DXGI_RATIONAL FrameRate;
  212. D3D12_VIDEO_SIZE_RANGE SourceSizeRange;
  213. D3D12_VIDEO_SIZE_RANGE DestinationSizeRange;
  214. BOOL EnableOrientation;
  215. D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterFlags;
  216. D3D12_VIDEO_FRAME_STEREO_FORMAT StereoFormat;
  217. D3D12_VIDEO_FIELD_TYPE FieldType;
  218. D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceMode;
  219. BOOL EnableAlphaBlending;
  220. D3D12_VIDEO_PROCESS_LUMA_KEY LumaKey;
  221. UINT NumPastFrames;
  222. UINT NumFutureFrames;
  223. BOOL EnableAutoProcessing;
  224. } D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC;
  225. typedef
  226. enum D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE
  227. {
  228. D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_OPAQUE = 0,
  229. D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_BACKGROUND = 1,
  230. D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_DESTINATION = 2,
  231. D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_SOURCE_STREAM = 3
  232. } D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE;
  233. typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC
  234. {
  235. DXGI_FORMAT Format;
  236. DXGI_COLOR_SPACE_TYPE ColorSpace;
  237. D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE AlphaFillMode;
  238. UINT AlphaFillModeSourceStreamIndex;
  239. FLOAT BackgroundColor[ 4 ];
  240. DXGI_RATIONAL FrameRate;
  241. BOOL EnableStereo;
  242. } D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC;
  243. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0000_v0_0_c_ifspec;
  244. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0000_v0_0_s_ifspec;
  245. #ifndef __ID3D12VideoDecoderHeap_INTERFACE_DEFINED__
  246. #define __ID3D12VideoDecoderHeap_INTERFACE_DEFINED__
  247. /* interface ID3D12VideoDecoderHeap */
  248. /* [unique][local][object][uuid] */
  249. EXTERN_C const IID IID_ID3D12VideoDecoderHeap;
  250. #if defined(__cplusplus) && !defined(CINTERFACE)
  251. MIDL_INTERFACE("0946B7C9-EBF6-4047-BB73-8683E27DBB1F")
  252. ID3D12VideoDecoderHeap : public ID3D12Pageable
  253. {
  254. public:
  255. virtual D3D12_VIDEO_DECODER_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  256. };
  257. #else /* C style interface */
  258. typedef struct ID3D12VideoDecoderHeapVtbl
  259. {
  260. BEGIN_INTERFACE
  261. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  262. ID3D12VideoDecoderHeap * This,
  263. REFIID riid,
  264. _COM_Outptr_ void **ppvObject);
  265. ULONG ( STDMETHODCALLTYPE *AddRef )(
  266. ID3D12VideoDecoderHeap * This);
  267. ULONG ( STDMETHODCALLTYPE *Release )(
  268. ID3D12VideoDecoderHeap * This);
  269. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  270. ID3D12VideoDecoderHeap * This,
  271. _In_ REFGUID guid,
  272. _Inout_ UINT *pDataSize,
  273. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  274. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  275. ID3D12VideoDecoderHeap * This,
  276. _In_ REFGUID guid,
  277. _In_ UINT DataSize,
  278. _In_reads_bytes_opt_( DataSize ) const void *pData);
  279. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  280. ID3D12VideoDecoderHeap * This,
  281. _In_ REFGUID guid,
  282. _In_opt_ const IUnknown *pData);
  283. HRESULT ( STDMETHODCALLTYPE *SetName )(
  284. ID3D12VideoDecoderHeap * This,
  285. _In_z_ LPCWSTR Name);
  286. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  287. ID3D12VideoDecoderHeap * This,
  288. REFIID riid,
  289. _COM_Outptr_opt_ void **ppvDevice);
  290. D3D12_VIDEO_DECODER_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  291. ID3D12VideoDecoderHeap * This);
  292. END_INTERFACE
  293. } ID3D12VideoDecoderHeapVtbl;
  294. interface ID3D12VideoDecoderHeap
  295. {
  296. CONST_VTBL struct ID3D12VideoDecoderHeapVtbl *lpVtbl;
  297. };
  298. #ifdef COBJMACROS
  299. #define ID3D12VideoDecoderHeap_QueryInterface(This,riid,ppvObject) \
  300. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  301. #define ID3D12VideoDecoderHeap_AddRef(This) \
  302. ( (This)->lpVtbl -> AddRef(This) )
  303. #define ID3D12VideoDecoderHeap_Release(This) \
  304. ( (This)->lpVtbl -> Release(This) )
  305. #define ID3D12VideoDecoderHeap_GetPrivateData(This,guid,pDataSize,pData) \
  306. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  307. #define ID3D12VideoDecoderHeap_SetPrivateData(This,guid,DataSize,pData) \
  308. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  309. #define ID3D12VideoDecoderHeap_SetPrivateDataInterface(This,guid,pData) \
  310. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  311. #define ID3D12VideoDecoderHeap_SetName(This,Name) \
  312. ( (This)->lpVtbl -> SetName(This,Name) )
  313. #define ID3D12VideoDecoderHeap_GetDevice(This,riid,ppvDevice) \
  314. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  315. #define ID3D12VideoDecoderHeap_GetDesc(This) \
  316. ( (This)->lpVtbl -> GetDesc(This) )
  317. #endif /* COBJMACROS */
  318. #endif /* C style interface */
  319. #endif /* __ID3D12VideoDecoderHeap_INTERFACE_DEFINED__ */
  320. #ifndef __ID3D12VideoDevice_INTERFACE_DEFINED__
  321. #define __ID3D12VideoDevice_INTERFACE_DEFINED__
  322. /* interface ID3D12VideoDevice */
  323. /* [unique][local][object][uuid] */
  324. EXTERN_C const IID IID_ID3D12VideoDevice;
  325. #if defined(__cplusplus) && !defined(CINTERFACE)
  326. MIDL_INTERFACE("1F052807-0B46-4ACC-8A89-364F793718A4")
  327. ID3D12VideoDevice : public IUnknown
  328. {
  329. public:
  330. virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport(
  331. D3D12_FEATURE_VIDEO FeatureVideo,
  332. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  333. UINT FeatureSupportDataSize) = 0;
  334. virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoder(
  335. _In_ const D3D12_VIDEO_DECODER_DESC *pDesc,
  336. _In_ REFIID riid,
  337. _COM_Outptr_ void **ppVideoDecoder) = 0;
  338. virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoderHeap(
  339. _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc,
  340. _In_ REFIID riid,
  341. _COM_Outptr_ void **ppVideoDecoderHeap) = 0;
  342. virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor(
  343. UINT NodeMask,
  344. _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc,
  345. UINT NumInputStreamDescs,
  346. _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs,
  347. _In_ REFIID riid,
  348. _COM_Outptr_ void **ppVideoProcessor) = 0;
  349. };
  350. #else /* C style interface */
  351. typedef struct ID3D12VideoDeviceVtbl
  352. {
  353. BEGIN_INTERFACE
  354. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  355. ID3D12VideoDevice * This,
  356. REFIID riid,
  357. _COM_Outptr_ void **ppvObject);
  358. ULONG ( STDMETHODCALLTYPE *AddRef )(
  359. ID3D12VideoDevice * This);
  360. ULONG ( STDMETHODCALLTYPE *Release )(
  361. ID3D12VideoDevice * This);
  362. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  363. ID3D12VideoDevice * This,
  364. D3D12_FEATURE_VIDEO FeatureVideo,
  365. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  366. UINT FeatureSupportDataSize);
  367. HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )(
  368. ID3D12VideoDevice * This,
  369. _In_ const D3D12_VIDEO_DECODER_DESC *pDesc,
  370. _In_ REFIID riid,
  371. _COM_Outptr_ void **ppVideoDecoder);
  372. HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderHeap )(
  373. ID3D12VideoDevice * This,
  374. _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc,
  375. _In_ REFIID riid,
  376. _COM_Outptr_ void **ppVideoDecoderHeap);
  377. HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )(
  378. ID3D12VideoDevice * This,
  379. UINT NodeMask,
  380. _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc,
  381. UINT NumInputStreamDescs,
  382. _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs,
  383. _In_ REFIID riid,
  384. _COM_Outptr_ void **ppVideoProcessor);
  385. END_INTERFACE
  386. } ID3D12VideoDeviceVtbl;
  387. interface ID3D12VideoDevice
  388. {
  389. CONST_VTBL struct ID3D12VideoDeviceVtbl *lpVtbl;
  390. };
  391. #ifdef COBJMACROS
  392. #define ID3D12VideoDevice_QueryInterface(This,riid,ppvObject) \
  393. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  394. #define ID3D12VideoDevice_AddRef(This) \
  395. ( (This)->lpVtbl -> AddRef(This) )
  396. #define ID3D12VideoDevice_Release(This) \
  397. ( (This)->lpVtbl -> Release(This) )
  398. #define ID3D12VideoDevice_CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) \
  399. ( (This)->lpVtbl -> CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) )
  400. #define ID3D12VideoDevice_CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) \
  401. ( (This)->lpVtbl -> CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) )
  402. #define ID3D12VideoDevice_CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) \
  403. ( (This)->lpVtbl -> CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) )
  404. #define ID3D12VideoDevice_CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) \
  405. ( (This)->lpVtbl -> CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) )
  406. #endif /* COBJMACROS */
  407. #endif /* C style interface */
  408. #endif /* __ID3D12VideoDevice_INTERFACE_DEFINED__ */
  409. #ifndef __ID3D12VideoDecoder_INTERFACE_DEFINED__
  410. #define __ID3D12VideoDecoder_INTERFACE_DEFINED__
  411. /* interface ID3D12VideoDecoder */
  412. /* [unique][local][object][uuid] */
  413. EXTERN_C const IID IID_ID3D12VideoDecoder;
  414. #if defined(__cplusplus) && !defined(CINTERFACE)
  415. MIDL_INTERFACE("C59B6BDC-7720-4074-A136-17A156037470")
  416. ID3D12VideoDecoder : public ID3D12Pageable
  417. {
  418. public:
  419. virtual D3D12_VIDEO_DECODER_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  420. };
  421. #else /* C style interface */
  422. typedef struct ID3D12VideoDecoderVtbl
  423. {
  424. BEGIN_INTERFACE
  425. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  426. ID3D12VideoDecoder * This,
  427. REFIID riid,
  428. _COM_Outptr_ void **ppvObject);
  429. ULONG ( STDMETHODCALLTYPE *AddRef )(
  430. ID3D12VideoDecoder * This);
  431. ULONG ( STDMETHODCALLTYPE *Release )(
  432. ID3D12VideoDecoder * This);
  433. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  434. ID3D12VideoDecoder * This,
  435. _In_ REFGUID guid,
  436. _Inout_ UINT *pDataSize,
  437. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  438. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  439. ID3D12VideoDecoder * This,
  440. _In_ REFGUID guid,
  441. _In_ UINT DataSize,
  442. _In_reads_bytes_opt_( DataSize ) const void *pData);
  443. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  444. ID3D12VideoDecoder * This,
  445. _In_ REFGUID guid,
  446. _In_opt_ const IUnknown *pData);
  447. HRESULT ( STDMETHODCALLTYPE *SetName )(
  448. ID3D12VideoDecoder * This,
  449. _In_z_ LPCWSTR Name);
  450. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  451. ID3D12VideoDecoder * This,
  452. REFIID riid,
  453. _COM_Outptr_opt_ void **ppvDevice);
  454. D3D12_VIDEO_DECODER_DESC ( STDMETHODCALLTYPE *GetDesc )(
  455. ID3D12VideoDecoder * This);
  456. END_INTERFACE
  457. } ID3D12VideoDecoderVtbl;
  458. interface ID3D12VideoDecoder
  459. {
  460. CONST_VTBL struct ID3D12VideoDecoderVtbl *lpVtbl;
  461. };
  462. #ifdef COBJMACROS
  463. #define ID3D12VideoDecoder_QueryInterface(This,riid,ppvObject) \
  464. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  465. #define ID3D12VideoDecoder_AddRef(This) \
  466. ( (This)->lpVtbl -> AddRef(This) )
  467. #define ID3D12VideoDecoder_Release(This) \
  468. ( (This)->lpVtbl -> Release(This) )
  469. #define ID3D12VideoDecoder_GetPrivateData(This,guid,pDataSize,pData) \
  470. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  471. #define ID3D12VideoDecoder_SetPrivateData(This,guid,DataSize,pData) \
  472. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  473. #define ID3D12VideoDecoder_SetPrivateDataInterface(This,guid,pData) \
  474. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  475. #define ID3D12VideoDecoder_SetName(This,Name) \
  476. ( (This)->lpVtbl -> SetName(This,Name) )
  477. #define ID3D12VideoDecoder_GetDevice(This,riid,ppvDevice) \
  478. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  479. #define ID3D12VideoDecoder_GetDesc(This) \
  480. ( (This)->lpVtbl -> GetDesc(This) )
  481. #endif /* COBJMACROS */
  482. #endif /* C style interface */
  483. #endif /* __ID3D12VideoDecoder_INTERFACE_DEFINED__ */
  484. /* interface __MIDL_itf_d3d12video_0000_0003 */
  485. /* [local] */
  486. typedef
  487. enum D3D12_VIDEO_DECODE_TIER
  488. {
  489. D3D12_VIDEO_DECODE_TIER_NOT_SUPPORTED = 0,
  490. D3D12_VIDEO_DECODE_TIER_1 = 1,
  491. D3D12_VIDEO_DECODE_TIER_2 = 2,
  492. D3D12_VIDEO_DECODE_TIER_3 = 3
  493. } D3D12_VIDEO_DECODE_TIER;
  494. typedef
  495. enum D3D12_VIDEO_DECODE_SUPPORT_FLAGS
  496. {
  497. D3D12_VIDEO_DECODE_SUPPORT_FLAG_NONE = 0,
  498. D3D12_VIDEO_DECODE_SUPPORT_FLAG_SUPPORTED = 0x1
  499. } D3D12_VIDEO_DECODE_SUPPORT_FLAGS;
  500. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_SUPPORT_FLAGS );
  501. typedef
  502. enum D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS
  503. {
  504. D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_NONE = 0,
  505. D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_HEIGHT_ALIGNMENT_MULTIPLE_32_REQUIRED = 0x1,
  506. D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_POST_PROCESSING_SUPPORTED = 0x2,
  507. D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_REFERENCE_ONLY_ALLOCATIONS_REQUIRED = 0x4,
  508. D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_ALLOW_RESOLUTION_CHANGE_ON_NON_KEY_FRAME = 0x8
  509. } D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS;
  510. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS );
  511. typedef
  512. enum D3D12_VIDEO_DECODE_STATUS
  513. {
  514. D3D12_VIDEO_DECODE_STATUS_OK = 0,
  515. D3D12_VIDEO_DECODE_STATUS_CONTINUE = 1,
  516. D3D12_VIDEO_DECODE_STATUS_CONTINUE_SKIP_DISPLAY = 2,
  517. D3D12_VIDEO_DECODE_STATUS_RESTART = 3
  518. } D3D12_VIDEO_DECODE_STATUS;
  519. typedef
  520. enum D3D12_VIDEO_DECODE_ARGUMENT_TYPE
  521. {
  522. D3D12_VIDEO_DECODE_ARGUMENT_TYPE_PICTURE_PARAMETERS = 0,
  523. D3D12_VIDEO_DECODE_ARGUMENT_TYPE_INVERSE_QUANTIZATION_MATRIX = 1,
  524. D3D12_VIDEO_DECODE_ARGUMENT_TYPE_SLICE_CONTROL = 2,
  525. D3D12_VIDEO_DECODE_ARGUMENT_TYPE_MAX_VALID = 3
  526. } D3D12_VIDEO_DECODE_ARGUMENT_TYPE;
  527. typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT
  528. {
  529. UINT NodeIndex;
  530. D3D12_VIDEO_DECODE_CONFIGURATION Configuration;
  531. UINT Width;
  532. UINT Height;
  533. DXGI_FORMAT DecodeFormat;
  534. DXGI_RATIONAL FrameRate;
  535. UINT BitRate;
  536. D3D12_VIDEO_DECODE_SUPPORT_FLAGS SupportFlags;
  537. D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS ConfigurationFlags;
  538. D3D12_VIDEO_DECODE_TIER DecodeTier;
  539. } D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT;
  540. typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT
  541. {
  542. UINT NodeIndex;
  543. UINT ProfileCount;
  544. } D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT;
  545. typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES
  546. {
  547. UINT NodeIndex;
  548. UINT ProfileCount;
  549. _Field_size_full_(ProfileCount) GUID *pProfiles;
  550. } D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES;
  551. typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT
  552. {
  553. UINT NodeIndex;
  554. D3D12_VIDEO_DECODE_CONFIGURATION Configuration;
  555. UINT FormatCount;
  556. } D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT;
  557. typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS
  558. {
  559. UINT NodeIndex;
  560. D3D12_VIDEO_DECODE_CONFIGURATION Configuration;
  561. UINT FormatCount;
  562. _Field_size_full_(FormatCount) DXGI_FORMAT *pOutputFormats;
  563. } D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS;
  564. typedef struct D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE
  565. {
  566. BOOL IOCoherent;
  567. } D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE;
  568. typedef
  569. enum D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT
  570. {
  571. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_Y = 0,
  572. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_U = 1,
  573. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_V = 2,
  574. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_R = 0,
  575. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_G = 1,
  576. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_B = 2,
  577. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_A = 3
  578. } D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT;
  579. typedef
  580. enum D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS
  581. {
  582. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_NONE = 0,
  583. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_Y = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_Y ) ,
  584. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_U = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_U ) ,
  585. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_V = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_V ) ,
  586. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_R = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_R ) ,
  587. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_G = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_G ) ,
  588. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_B = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_B ) ,
  589. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_A = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_A )
  590. } D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS;
  591. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS );
  592. typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM
  593. {
  594. UINT NodeIndex;
  595. GUID DecodeProfile;
  596. UINT Width;
  597. UINT Height;
  598. DXGI_FORMAT DecodeFormat;
  599. D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS Components;
  600. UINT BinCount;
  601. UINT CounterBitDepth;
  602. } D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM;
  603. typedef
  604. enum D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS
  605. {
  606. D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAG_NONE = 0,
  607. D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAG_SUPPORTED = 0x1
  608. } D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS;
  609. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS );
  610. typedef
  611. enum D3D12_VIDEO_SCALE_SUPPORT_FLAGS
  612. {
  613. D3D12_VIDEO_SCALE_SUPPORT_FLAG_NONE = 0,
  614. D3D12_VIDEO_SCALE_SUPPORT_FLAG_POW2_ONLY = 0x1,
  615. D3D12_VIDEO_SCALE_SUPPORT_FLAG_EVEN_DIMENSIONS_ONLY = 0x2
  616. } D3D12_VIDEO_SCALE_SUPPORT_FLAGS;
  617. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_SCALE_SUPPORT_FLAGS );
  618. typedef struct D3D12_VIDEO_SCALE_SUPPORT
  619. {
  620. D3D12_VIDEO_SIZE_RANGE OutputSizeRange;
  621. D3D12_VIDEO_SCALE_SUPPORT_FLAGS Flags;
  622. } D3D12_VIDEO_SCALE_SUPPORT;
  623. typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT
  624. {
  625. UINT NodeIndex;
  626. D3D12_VIDEO_DECODE_CONFIGURATION Configuration;
  627. D3D12_VIDEO_SAMPLE DecodeSample;
  628. D3D12_VIDEO_FORMAT OutputFormat;
  629. DXGI_RATIONAL FrameRate;
  630. UINT BitRate;
  631. D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS SupportFlags;
  632. D3D12_VIDEO_SCALE_SUPPORT ScaleSupport;
  633. } D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT;
  634. typedef struct D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE
  635. {
  636. D3D12_VIDEO_DECODER_HEAP_DESC VideoDecoderHeapDesc;
  637. UINT64 MemoryPoolL0Size;
  638. UINT64 MemoryPoolL1Size;
  639. } D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE;
  640. typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE
  641. {
  642. UINT NodeMask;
  643. const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc;
  644. UINT NumInputStreamDescs;
  645. const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs;
  646. UINT64 MemoryPoolL0Size;
  647. UINT64 MemoryPoolL1Size;
  648. } D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE;
  649. typedef struct D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS
  650. {
  651. UINT64 Status;
  652. UINT64 NumMacroblocksAffected;
  653. DXGI_RATIONAL FrameRate;
  654. UINT BitRate;
  655. } D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS;
  656. typedef struct D3D12_VIDEO_DECODE_SUB_SAMPLE_MAPPING_BLOCK
  657. {
  658. UINT ClearSize;
  659. UINT EncryptedSize;
  660. } D3D12_VIDEO_DECODE_SUB_SAMPLE_MAPPING_BLOCK;
  661. typedef struct D3D12_VIDEO_DECODE_FRAME_ARGUMENT
  662. {
  663. D3D12_VIDEO_DECODE_ARGUMENT_TYPE Type;
  664. UINT Size;
  665. _Field_size_bytes_full_(Size) void *pData;
  666. } D3D12_VIDEO_DECODE_FRAME_ARGUMENT;
  667. typedef struct D3D12_VIDEO_DECODE_REFERENCE_FRAMES
  668. {
  669. UINT NumTexture2Ds;
  670. _Field_size_full_(NumTexture2Ds) ID3D12Resource **ppTexture2Ds;
  671. _Field_size_full_(NumTexture2Ds) UINT *pSubresources;
  672. _Field_size_full_opt_(NumTexture2Ds) ID3D12VideoDecoderHeap **ppHeaps;
  673. } D3D12_VIDEO_DECODE_REFERENCE_FRAMES;
  674. typedef struct D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM
  675. {
  676. ID3D12Resource *pBuffer;
  677. UINT64 Offset;
  678. UINT64 Size;
  679. } D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM;
  680. typedef struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS
  681. {
  682. BOOL Enable;
  683. ID3D12Resource *pReferenceTexture2D;
  684. UINT ReferenceSubresource;
  685. DXGI_COLOR_SPACE_TYPE OutputColorSpace;
  686. DXGI_COLOR_SPACE_TYPE DecodeColorSpace;
  687. } D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS;
  688. typedef struct D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS
  689. {
  690. UINT NumFrameArguments;
  691. D3D12_VIDEO_DECODE_FRAME_ARGUMENT FrameArguments[ 10 ];
  692. D3D12_VIDEO_DECODE_REFERENCE_FRAMES ReferenceFrames;
  693. D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM CompressedBitstream;
  694. ID3D12VideoDecoderHeap *pHeap;
  695. } D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS;
  696. typedef struct D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS
  697. {
  698. ID3D12Resource *pOutputTexture2D;
  699. UINT OutputSubresource;
  700. D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS ConversionArguments;
  701. } D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS;
  702. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0003_v0_0_c_ifspec;
  703. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0003_v0_0_s_ifspec;
  704. #ifndef __ID3D12VideoProcessor_INTERFACE_DEFINED__
  705. #define __ID3D12VideoProcessor_INTERFACE_DEFINED__
  706. /* interface ID3D12VideoProcessor */
  707. /* [unique][local][object][uuid] */
  708. EXTERN_C const IID IID_ID3D12VideoProcessor;
  709. #if defined(__cplusplus) && !defined(CINTERFACE)
  710. MIDL_INTERFACE("304FDB32-BEDE-410A-8545-943AC6A46138")
  711. ID3D12VideoProcessor : public ID3D12Pageable
  712. {
  713. public:
  714. virtual UINT STDMETHODCALLTYPE GetNodeMask( void) = 0;
  715. virtual UINT STDMETHODCALLTYPE GetNumInputStreamDescs( void) = 0;
  716. virtual HRESULT STDMETHODCALLTYPE GetInputStreamDescs(
  717. UINT NumInputStreamDescs,
  718. _Out_writes_(NumInputStreamDescs) D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs) = 0;
  719. virtual D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC STDMETHODCALLTYPE GetOutputStreamDesc( void) = 0;
  720. };
  721. #else /* C style interface */
  722. typedef struct ID3D12VideoProcessorVtbl
  723. {
  724. BEGIN_INTERFACE
  725. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  726. ID3D12VideoProcessor * This,
  727. REFIID riid,
  728. _COM_Outptr_ void **ppvObject);
  729. ULONG ( STDMETHODCALLTYPE *AddRef )(
  730. ID3D12VideoProcessor * This);
  731. ULONG ( STDMETHODCALLTYPE *Release )(
  732. ID3D12VideoProcessor * This);
  733. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  734. ID3D12VideoProcessor * This,
  735. _In_ REFGUID guid,
  736. _Inout_ UINT *pDataSize,
  737. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  738. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  739. ID3D12VideoProcessor * This,
  740. _In_ REFGUID guid,
  741. _In_ UINT DataSize,
  742. _In_reads_bytes_opt_( DataSize ) const void *pData);
  743. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  744. ID3D12VideoProcessor * This,
  745. _In_ REFGUID guid,
  746. _In_opt_ const IUnknown *pData);
  747. HRESULT ( STDMETHODCALLTYPE *SetName )(
  748. ID3D12VideoProcessor * This,
  749. _In_z_ LPCWSTR Name);
  750. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  751. ID3D12VideoProcessor * This,
  752. REFIID riid,
  753. _COM_Outptr_opt_ void **ppvDevice);
  754. UINT ( STDMETHODCALLTYPE *GetNodeMask )(
  755. ID3D12VideoProcessor * This);
  756. UINT ( STDMETHODCALLTYPE *GetNumInputStreamDescs )(
  757. ID3D12VideoProcessor * This);
  758. HRESULT ( STDMETHODCALLTYPE *GetInputStreamDescs )(
  759. ID3D12VideoProcessor * This,
  760. UINT NumInputStreamDescs,
  761. _Out_writes_(NumInputStreamDescs) D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs);
  762. D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC ( STDMETHODCALLTYPE *GetOutputStreamDesc )(
  763. ID3D12VideoProcessor * This);
  764. END_INTERFACE
  765. } ID3D12VideoProcessorVtbl;
  766. interface ID3D12VideoProcessor
  767. {
  768. CONST_VTBL struct ID3D12VideoProcessorVtbl *lpVtbl;
  769. };
  770. #ifdef COBJMACROS
  771. #define ID3D12VideoProcessor_QueryInterface(This,riid,ppvObject) \
  772. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  773. #define ID3D12VideoProcessor_AddRef(This) \
  774. ( (This)->lpVtbl -> AddRef(This) )
  775. #define ID3D12VideoProcessor_Release(This) \
  776. ( (This)->lpVtbl -> Release(This) )
  777. #define ID3D12VideoProcessor_GetPrivateData(This,guid,pDataSize,pData) \
  778. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  779. #define ID3D12VideoProcessor_SetPrivateData(This,guid,DataSize,pData) \
  780. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  781. #define ID3D12VideoProcessor_SetPrivateDataInterface(This,guid,pData) \
  782. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  783. #define ID3D12VideoProcessor_SetName(This,Name) \
  784. ( (This)->lpVtbl -> SetName(This,Name) )
  785. #define ID3D12VideoProcessor_GetDevice(This,riid,ppvDevice) \
  786. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  787. #define ID3D12VideoProcessor_GetNodeMask(This) \
  788. ( (This)->lpVtbl -> GetNodeMask(This) )
  789. #define ID3D12VideoProcessor_GetNumInputStreamDescs(This) \
  790. ( (This)->lpVtbl -> GetNumInputStreamDescs(This) )
  791. #define ID3D12VideoProcessor_GetInputStreamDescs(This,NumInputStreamDescs,pInputStreamDescs) \
  792. ( (This)->lpVtbl -> GetInputStreamDescs(This,NumInputStreamDescs,pInputStreamDescs) )
  793. #define ID3D12VideoProcessor_GetOutputStreamDesc(This) \
  794. ( (This)->lpVtbl -> GetOutputStreamDesc(This) )
  795. #endif /* COBJMACROS */
  796. #endif /* C style interface */
  797. #endif /* __ID3D12VideoProcessor_INTERFACE_DEFINED__ */
  798. /* interface __MIDL_itf_d3d12video_0000_0004 */
  799. /* [local] */
  800. typedef
  801. enum D3D12_VIDEO_PROCESS_FEATURE_FLAGS
  802. {
  803. D3D12_VIDEO_PROCESS_FEATURE_FLAG_NONE = 0,
  804. D3D12_VIDEO_PROCESS_FEATURE_FLAG_ALPHA_FILL = 0x1,
  805. D3D12_VIDEO_PROCESS_FEATURE_FLAG_LUMA_KEY = 0x2,
  806. D3D12_VIDEO_PROCESS_FEATURE_FLAG_STEREO = 0x4,
  807. D3D12_VIDEO_PROCESS_FEATURE_FLAG_ROTATION = 0x8,
  808. D3D12_VIDEO_PROCESS_FEATURE_FLAG_FLIP = 0x10,
  809. D3D12_VIDEO_PROCESS_FEATURE_FLAG_ALPHA_BLENDING = 0x20,
  810. D3D12_VIDEO_PROCESS_FEATURE_FLAG_PIXEL_ASPECT_RATIO = 0x40
  811. } D3D12_VIDEO_PROCESS_FEATURE_FLAGS;
  812. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_FEATURE_FLAGS );
  813. typedef
  814. enum D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS
  815. {
  816. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_NONE = 0,
  817. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_DENOISE = 0x1,
  818. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_DERINGING = 0x2,
  819. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_EDGE_ENHANCEMENT = 0x4,
  820. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_COLOR_CORRECTION = 0x8,
  821. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_FLESH_TONE_MAPPING = 0x10,
  822. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_IMAGE_STABILIZATION = 0x20,
  823. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_SUPER_RESOLUTION = 0x40,
  824. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_ANAMORPHIC_SCALING = 0x80,
  825. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_CUSTOM = 0x80000000
  826. } D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS;
  827. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS );
  828. typedef
  829. enum D3D12_VIDEO_PROCESS_ORIENTATION
  830. {
  831. D3D12_VIDEO_PROCESS_ORIENTATION_DEFAULT = 0,
  832. D3D12_VIDEO_PROCESS_ORIENTATION_FLIP_HORIZONTAL = 1,
  833. D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_90 = 2,
  834. D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_90_FLIP_HORIZONTAL = 3,
  835. D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_180 = 4,
  836. D3D12_VIDEO_PROCESS_ORIENTATION_FLIP_VERTICAL = 5,
  837. D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_270 = 6,
  838. D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_270_FLIP_HORIZONTAL = 7
  839. } D3D12_VIDEO_PROCESS_ORIENTATION;
  840. typedef
  841. enum D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS
  842. {
  843. D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_NONE = 0,
  844. D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_FRAME_DISCONTINUITY = 0x1,
  845. D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_FRAME_REPEAT = 0x2
  846. } D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS;
  847. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS );
  848. typedef struct D3D12_VIDEO_PROCESS_FILTER_RANGE
  849. {
  850. INT Minimum;
  851. INT Maximum;
  852. INT Default;
  853. FLOAT Multiplier;
  854. } D3D12_VIDEO_PROCESS_FILTER_RANGE;
  855. typedef
  856. enum D3D12_VIDEO_PROCESS_SUPPORT_FLAGS
  857. {
  858. D3D12_VIDEO_PROCESS_SUPPORT_FLAG_NONE = 0,
  859. D3D12_VIDEO_PROCESS_SUPPORT_FLAG_SUPPORTED = 0x1
  860. } D3D12_VIDEO_PROCESS_SUPPORT_FLAGS;
  861. DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_SUPPORT_FLAGS );
  862. typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT
  863. {
  864. UINT NodeIndex;
  865. D3D12_VIDEO_SAMPLE InputSample;
  866. D3D12_VIDEO_FIELD_TYPE InputFieldType;
  867. D3D12_VIDEO_FRAME_STEREO_FORMAT InputStereoFormat;
  868. DXGI_RATIONAL InputFrameRate;
  869. D3D12_VIDEO_FORMAT OutputFormat;
  870. D3D12_VIDEO_FRAME_STEREO_FORMAT OutputStereoFormat;
  871. DXGI_RATIONAL OutputFrameRate;
  872. D3D12_VIDEO_PROCESS_SUPPORT_FLAGS SupportFlags;
  873. D3D12_VIDEO_SCALE_SUPPORT ScaleSupport;
  874. D3D12_VIDEO_PROCESS_FEATURE_FLAGS FeatureSupport;
  875. D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceSupport;
  876. D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS AutoProcessingSupport;
  877. D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterSupport;
  878. D3D12_VIDEO_PROCESS_FILTER_RANGE FilterRangeSupport[ 32 ];
  879. } D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT;
  880. typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS
  881. {
  882. UINT NodeIndex;
  883. UINT MaxInputStreams;
  884. } D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS;
  885. typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO
  886. {
  887. UINT NodeIndex;
  888. D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceMode;
  889. D3D12_VIDEO_PROCESS_FILTER_FLAGS Filters;
  890. D3D12_VIDEO_PROCESS_FEATURE_FLAGS FeatureSupport;
  891. DXGI_RATIONAL InputFrameRate;
  892. DXGI_RATIONAL OutputFrameRate;
  893. BOOL EnableAutoProcessing;
  894. UINT PastFrames;
  895. UINT FutureFrames;
  896. } D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO;
  897. typedef struct D3D12_VIDEO_PROCESS_REFERENCE_SET
  898. {
  899. UINT NumPastFrames;
  900. ID3D12Resource **ppPastFrames;
  901. UINT *pPastSubresources;
  902. UINT NumFutureFrames;
  903. ID3D12Resource **ppFutureFrames;
  904. UINT *pFutureSubresources;
  905. } D3D12_VIDEO_PROCESS_REFERENCE_SET;
  906. typedef struct D3D12_VIDEO_PROCESS_TRANSFORM
  907. {
  908. D3D12_RECT SourceRectangle;
  909. D3D12_RECT DestinationRectangle;
  910. D3D12_VIDEO_PROCESS_ORIENTATION Orientation;
  911. } D3D12_VIDEO_PROCESS_TRANSFORM;
  912. typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE
  913. {
  914. UINT OutputIndex;
  915. UINT InputFrameOrField;
  916. } D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE;
  917. typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM
  918. {
  919. ID3D12Resource *pTexture2D;
  920. UINT Subresource;
  921. D3D12_VIDEO_PROCESS_REFERENCE_SET ReferenceSet;
  922. } D3D12_VIDEO_PROCESS_INPUT_STREAM;
  923. typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS
  924. {
  925. D3D12_VIDEO_PROCESS_INPUT_STREAM InputStream[ 2 ];
  926. D3D12_VIDEO_PROCESS_TRANSFORM Transform;
  927. D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS Flags;
  928. D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE RateInfo;
  929. INT FilterLevels[ 32 ];
  930. D3D12_VIDEO_PROCESS_ALPHA_BLENDING AlphaBlending;
  931. } D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS;
  932. typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM
  933. {
  934. ID3D12Resource *pTexture2D;
  935. UINT Subresource;
  936. } D3D12_VIDEO_PROCESS_OUTPUT_STREAM;
  937. typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS
  938. {
  939. D3D12_VIDEO_PROCESS_OUTPUT_STREAM OutputStream[ 2 ];
  940. D3D12_RECT TargetRectangle;
  941. } D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS;
  942. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0004_v0_0_c_ifspec;
  943. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0004_v0_0_s_ifspec;
  944. #ifndef __ID3D12VideoDecodeCommandList_INTERFACE_DEFINED__
  945. #define __ID3D12VideoDecodeCommandList_INTERFACE_DEFINED__
  946. /* interface ID3D12VideoDecodeCommandList */
  947. /* [unique][local][object][uuid] */
  948. EXTERN_C const IID IID_ID3D12VideoDecodeCommandList;
  949. #if defined(__cplusplus) && !defined(CINTERFACE)
  950. MIDL_INTERFACE("3B60536E-AD29-4E64-A269-F853837E5E53")
  951. ID3D12VideoDecodeCommandList : public ID3D12CommandList
  952. {
  953. public:
  954. virtual HRESULT STDMETHODCALLTYPE Close( void) = 0;
  955. virtual HRESULT STDMETHODCALLTYPE Reset(
  956. _In_ ID3D12CommandAllocator *pAllocator) = 0;
  957. virtual void STDMETHODCALLTYPE ClearState( void) = 0;
  958. virtual void STDMETHODCALLTYPE ResourceBarrier(
  959. _In_ UINT NumBarriers,
  960. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers) = 0;
  961. virtual void STDMETHODCALLTYPE DiscardResource(
  962. _In_ ID3D12Resource *pResource,
  963. _In_opt_ const D3D12_DISCARD_REGION *pRegion) = 0;
  964. virtual void STDMETHODCALLTYPE BeginQuery(
  965. _In_ ID3D12QueryHeap *pQueryHeap,
  966. _In_ D3D12_QUERY_TYPE Type,
  967. _In_ UINT Index) = 0;
  968. virtual void STDMETHODCALLTYPE EndQuery(
  969. _In_ ID3D12QueryHeap *pQueryHeap,
  970. _In_ D3D12_QUERY_TYPE Type,
  971. _In_ UINT Index) = 0;
  972. virtual void STDMETHODCALLTYPE ResolveQueryData(
  973. _In_ ID3D12QueryHeap *pQueryHeap,
  974. _In_ D3D12_QUERY_TYPE Type,
  975. _In_ UINT StartIndex,
  976. _In_ UINT NumQueries,
  977. _In_ ID3D12Resource *pDestinationBuffer,
  978. _In_ UINT64 AlignedDestinationBufferOffset) = 0;
  979. virtual void STDMETHODCALLTYPE SetPredication(
  980. _In_opt_ ID3D12Resource *pBuffer,
  981. _In_ UINT64 AlignedBufferOffset,
  982. _In_ D3D12_PREDICATION_OP Operation) = 0;
  983. virtual void STDMETHODCALLTYPE SetMarker(
  984. UINT Metadata,
  985. _In_reads_bytes_opt_(Size) const void *pData,
  986. UINT Size) = 0;
  987. virtual void STDMETHODCALLTYPE BeginEvent(
  988. UINT Metadata,
  989. _In_reads_bytes_opt_(Size) const void *pData,
  990. UINT Size) = 0;
  991. virtual void STDMETHODCALLTYPE EndEvent( void) = 0;
  992. virtual void STDMETHODCALLTYPE DecodeFrame(
  993. _In_ ID3D12VideoDecoder *pDecoder,
  994. _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputArguments,
  995. _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments) = 0;
  996. virtual void STDMETHODCALLTYPE WriteBufferImmediate(
  997. UINT Count,
  998. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  999. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes) = 0;
  1000. };
  1001. #else /* C style interface */
  1002. typedef struct ID3D12VideoDecodeCommandListVtbl
  1003. {
  1004. BEGIN_INTERFACE
  1005. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1006. ID3D12VideoDecodeCommandList * This,
  1007. REFIID riid,
  1008. _COM_Outptr_ void **ppvObject);
  1009. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1010. ID3D12VideoDecodeCommandList * This);
  1011. ULONG ( STDMETHODCALLTYPE *Release )(
  1012. ID3D12VideoDecodeCommandList * This);
  1013. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1014. ID3D12VideoDecodeCommandList * This,
  1015. _In_ REFGUID guid,
  1016. _Inout_ UINT *pDataSize,
  1017. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1018. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1019. ID3D12VideoDecodeCommandList * This,
  1020. _In_ REFGUID guid,
  1021. _In_ UINT DataSize,
  1022. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1023. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1024. ID3D12VideoDecodeCommandList * This,
  1025. _In_ REFGUID guid,
  1026. _In_opt_ const IUnknown *pData);
  1027. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1028. ID3D12VideoDecodeCommandList * This,
  1029. _In_z_ LPCWSTR Name);
  1030. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1031. ID3D12VideoDecodeCommandList * This,
  1032. REFIID riid,
  1033. _COM_Outptr_opt_ void **ppvDevice);
  1034. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  1035. ID3D12VideoDecodeCommandList * This);
  1036. HRESULT ( STDMETHODCALLTYPE *Close )(
  1037. ID3D12VideoDecodeCommandList * This);
  1038. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1039. ID3D12VideoDecodeCommandList * This,
  1040. _In_ ID3D12CommandAllocator *pAllocator);
  1041. void ( STDMETHODCALLTYPE *ClearState )(
  1042. ID3D12VideoDecodeCommandList * This);
  1043. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  1044. ID3D12VideoDecodeCommandList * This,
  1045. _In_ UINT NumBarriers,
  1046. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  1047. void ( STDMETHODCALLTYPE *DiscardResource )(
  1048. ID3D12VideoDecodeCommandList * This,
  1049. _In_ ID3D12Resource *pResource,
  1050. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  1051. void ( STDMETHODCALLTYPE *BeginQuery )(
  1052. ID3D12VideoDecodeCommandList * This,
  1053. _In_ ID3D12QueryHeap *pQueryHeap,
  1054. _In_ D3D12_QUERY_TYPE Type,
  1055. _In_ UINT Index);
  1056. void ( STDMETHODCALLTYPE *EndQuery )(
  1057. ID3D12VideoDecodeCommandList * This,
  1058. _In_ ID3D12QueryHeap *pQueryHeap,
  1059. _In_ D3D12_QUERY_TYPE Type,
  1060. _In_ UINT Index);
  1061. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  1062. ID3D12VideoDecodeCommandList * This,
  1063. _In_ ID3D12QueryHeap *pQueryHeap,
  1064. _In_ D3D12_QUERY_TYPE Type,
  1065. _In_ UINT StartIndex,
  1066. _In_ UINT NumQueries,
  1067. _In_ ID3D12Resource *pDestinationBuffer,
  1068. _In_ UINT64 AlignedDestinationBufferOffset);
  1069. void ( STDMETHODCALLTYPE *SetPredication )(
  1070. ID3D12VideoDecodeCommandList * This,
  1071. _In_opt_ ID3D12Resource *pBuffer,
  1072. _In_ UINT64 AlignedBufferOffset,
  1073. _In_ D3D12_PREDICATION_OP Operation);
  1074. void ( STDMETHODCALLTYPE *SetMarker )(
  1075. ID3D12VideoDecodeCommandList * This,
  1076. UINT Metadata,
  1077. _In_reads_bytes_opt_(Size) const void *pData,
  1078. UINT Size);
  1079. void ( STDMETHODCALLTYPE *BeginEvent )(
  1080. ID3D12VideoDecodeCommandList * This,
  1081. UINT Metadata,
  1082. _In_reads_bytes_opt_(Size) const void *pData,
  1083. UINT Size);
  1084. void ( STDMETHODCALLTYPE *EndEvent )(
  1085. ID3D12VideoDecodeCommandList * This);
  1086. void ( STDMETHODCALLTYPE *DecodeFrame )(
  1087. ID3D12VideoDecodeCommandList * This,
  1088. _In_ ID3D12VideoDecoder *pDecoder,
  1089. _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputArguments,
  1090. _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments);
  1091. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  1092. ID3D12VideoDecodeCommandList * This,
  1093. UINT Count,
  1094. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  1095. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  1096. END_INTERFACE
  1097. } ID3D12VideoDecodeCommandListVtbl;
  1098. interface ID3D12VideoDecodeCommandList
  1099. {
  1100. CONST_VTBL struct ID3D12VideoDecodeCommandListVtbl *lpVtbl;
  1101. };
  1102. #ifdef COBJMACROS
  1103. #define ID3D12VideoDecodeCommandList_QueryInterface(This,riid,ppvObject) \
  1104. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1105. #define ID3D12VideoDecodeCommandList_AddRef(This) \
  1106. ( (This)->lpVtbl -> AddRef(This) )
  1107. #define ID3D12VideoDecodeCommandList_Release(This) \
  1108. ( (This)->lpVtbl -> Release(This) )
  1109. #define ID3D12VideoDecodeCommandList_GetPrivateData(This,guid,pDataSize,pData) \
  1110. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1111. #define ID3D12VideoDecodeCommandList_SetPrivateData(This,guid,DataSize,pData) \
  1112. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1113. #define ID3D12VideoDecodeCommandList_SetPrivateDataInterface(This,guid,pData) \
  1114. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1115. #define ID3D12VideoDecodeCommandList_SetName(This,Name) \
  1116. ( (This)->lpVtbl -> SetName(This,Name) )
  1117. #define ID3D12VideoDecodeCommandList_GetDevice(This,riid,ppvDevice) \
  1118. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1119. #define ID3D12VideoDecodeCommandList_GetType(This) \
  1120. ( (This)->lpVtbl -> GetType(This) )
  1121. #define ID3D12VideoDecodeCommandList_Close(This) \
  1122. ( (This)->lpVtbl -> Close(This) )
  1123. #define ID3D12VideoDecodeCommandList_Reset(This,pAllocator) \
  1124. ( (This)->lpVtbl -> Reset(This,pAllocator) )
  1125. #define ID3D12VideoDecodeCommandList_ClearState(This) \
  1126. ( (This)->lpVtbl -> ClearState(This) )
  1127. #define ID3D12VideoDecodeCommandList_ResourceBarrier(This,NumBarriers,pBarriers) \
  1128. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  1129. #define ID3D12VideoDecodeCommandList_DiscardResource(This,pResource,pRegion) \
  1130. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  1131. #define ID3D12VideoDecodeCommandList_BeginQuery(This,pQueryHeap,Type,Index) \
  1132. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  1133. #define ID3D12VideoDecodeCommandList_EndQuery(This,pQueryHeap,Type,Index) \
  1134. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  1135. #define ID3D12VideoDecodeCommandList_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  1136. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  1137. #define ID3D12VideoDecodeCommandList_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  1138. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  1139. #define ID3D12VideoDecodeCommandList_SetMarker(This,Metadata,pData,Size) \
  1140. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  1141. #define ID3D12VideoDecodeCommandList_BeginEvent(This,Metadata,pData,Size) \
  1142. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  1143. #define ID3D12VideoDecodeCommandList_EndEvent(This) \
  1144. ( (This)->lpVtbl -> EndEvent(This) )
  1145. #define ID3D12VideoDecodeCommandList_DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) \
  1146. ( (This)->lpVtbl -> DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) )
  1147. #define ID3D12VideoDecodeCommandList_WriteBufferImmediate(This,Count,pParams,pModes) \
  1148. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  1149. #endif /* COBJMACROS */
  1150. #endif /* C style interface */
  1151. #endif /* __ID3D12VideoDecodeCommandList_INTERFACE_DEFINED__ */
  1152. #ifndef __ID3D12VideoProcessCommandList_INTERFACE_DEFINED__
  1153. #define __ID3D12VideoProcessCommandList_INTERFACE_DEFINED__
  1154. /* interface ID3D12VideoProcessCommandList */
  1155. /* [unique][local][object][uuid] */
  1156. EXTERN_C const IID IID_ID3D12VideoProcessCommandList;
  1157. #if defined(__cplusplus) && !defined(CINTERFACE)
  1158. MIDL_INTERFACE("AEB2543A-167F-4682-ACC8-D159ED4A6209")
  1159. ID3D12VideoProcessCommandList : public ID3D12CommandList
  1160. {
  1161. public:
  1162. virtual HRESULT STDMETHODCALLTYPE Close( void) = 0;
  1163. virtual HRESULT STDMETHODCALLTYPE Reset(
  1164. _In_ ID3D12CommandAllocator *pAllocator) = 0;
  1165. virtual void STDMETHODCALLTYPE ClearState( void) = 0;
  1166. virtual void STDMETHODCALLTYPE ResourceBarrier(
  1167. _In_ UINT NumBarriers,
  1168. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers) = 0;
  1169. virtual void STDMETHODCALLTYPE DiscardResource(
  1170. _In_ ID3D12Resource *pResource,
  1171. _In_opt_ const D3D12_DISCARD_REGION *pRegion) = 0;
  1172. virtual void STDMETHODCALLTYPE BeginQuery(
  1173. _In_ ID3D12QueryHeap *pQueryHeap,
  1174. _In_ D3D12_QUERY_TYPE Type,
  1175. _In_ UINT Index) = 0;
  1176. virtual void STDMETHODCALLTYPE EndQuery(
  1177. _In_ ID3D12QueryHeap *pQueryHeap,
  1178. _In_ D3D12_QUERY_TYPE Type,
  1179. _In_ UINT Index) = 0;
  1180. virtual void STDMETHODCALLTYPE ResolveQueryData(
  1181. _In_ ID3D12QueryHeap *pQueryHeap,
  1182. _In_ D3D12_QUERY_TYPE Type,
  1183. _In_ UINT StartIndex,
  1184. _In_ UINT NumQueries,
  1185. _In_ ID3D12Resource *pDestinationBuffer,
  1186. _In_ UINT64 AlignedDestinationBufferOffset) = 0;
  1187. virtual void STDMETHODCALLTYPE SetPredication(
  1188. _In_opt_ ID3D12Resource *pBuffer,
  1189. _In_ UINT64 AlignedBufferOffset,
  1190. _In_ D3D12_PREDICATION_OP Operation) = 0;
  1191. virtual void STDMETHODCALLTYPE SetMarker(
  1192. UINT Metadata,
  1193. _In_reads_bytes_opt_(Size) const void *pData,
  1194. UINT Size) = 0;
  1195. virtual void STDMETHODCALLTYPE BeginEvent(
  1196. UINT Metadata,
  1197. _In_reads_bytes_opt_(Size) const void *pData,
  1198. UINT Size) = 0;
  1199. virtual void STDMETHODCALLTYPE EndEvent( void) = 0;
  1200. virtual void STDMETHODCALLTYPE ProcessFrames(
  1201. _In_ ID3D12VideoProcessor *pVideoProcessor,
  1202. _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments,
  1203. UINT NumInputStreams,
  1204. _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *pInputArguments) = 0;
  1205. virtual void STDMETHODCALLTYPE WriteBufferImmediate(
  1206. UINT Count,
  1207. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  1208. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes) = 0;
  1209. };
  1210. #else /* C style interface */
  1211. typedef struct ID3D12VideoProcessCommandListVtbl
  1212. {
  1213. BEGIN_INTERFACE
  1214. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1215. ID3D12VideoProcessCommandList * This,
  1216. REFIID riid,
  1217. _COM_Outptr_ void **ppvObject);
  1218. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1219. ID3D12VideoProcessCommandList * This);
  1220. ULONG ( STDMETHODCALLTYPE *Release )(
  1221. ID3D12VideoProcessCommandList * This);
  1222. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1223. ID3D12VideoProcessCommandList * This,
  1224. _In_ REFGUID guid,
  1225. _Inout_ UINT *pDataSize,
  1226. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1227. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1228. ID3D12VideoProcessCommandList * This,
  1229. _In_ REFGUID guid,
  1230. _In_ UINT DataSize,
  1231. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1232. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1233. ID3D12VideoProcessCommandList * This,
  1234. _In_ REFGUID guid,
  1235. _In_opt_ const IUnknown *pData);
  1236. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1237. ID3D12VideoProcessCommandList * This,
  1238. _In_z_ LPCWSTR Name);
  1239. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1240. ID3D12VideoProcessCommandList * This,
  1241. REFIID riid,
  1242. _COM_Outptr_opt_ void **ppvDevice);
  1243. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  1244. ID3D12VideoProcessCommandList * This);
  1245. HRESULT ( STDMETHODCALLTYPE *Close )(
  1246. ID3D12VideoProcessCommandList * This);
  1247. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1248. ID3D12VideoProcessCommandList * This,
  1249. _In_ ID3D12CommandAllocator *pAllocator);
  1250. void ( STDMETHODCALLTYPE *ClearState )(
  1251. ID3D12VideoProcessCommandList * This);
  1252. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  1253. ID3D12VideoProcessCommandList * This,
  1254. _In_ UINT NumBarriers,
  1255. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  1256. void ( STDMETHODCALLTYPE *DiscardResource )(
  1257. ID3D12VideoProcessCommandList * This,
  1258. _In_ ID3D12Resource *pResource,
  1259. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  1260. void ( STDMETHODCALLTYPE *BeginQuery )(
  1261. ID3D12VideoProcessCommandList * This,
  1262. _In_ ID3D12QueryHeap *pQueryHeap,
  1263. _In_ D3D12_QUERY_TYPE Type,
  1264. _In_ UINT Index);
  1265. void ( STDMETHODCALLTYPE *EndQuery )(
  1266. ID3D12VideoProcessCommandList * This,
  1267. _In_ ID3D12QueryHeap *pQueryHeap,
  1268. _In_ D3D12_QUERY_TYPE Type,
  1269. _In_ UINT Index);
  1270. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  1271. ID3D12VideoProcessCommandList * This,
  1272. _In_ ID3D12QueryHeap *pQueryHeap,
  1273. _In_ D3D12_QUERY_TYPE Type,
  1274. _In_ UINT StartIndex,
  1275. _In_ UINT NumQueries,
  1276. _In_ ID3D12Resource *pDestinationBuffer,
  1277. _In_ UINT64 AlignedDestinationBufferOffset);
  1278. void ( STDMETHODCALLTYPE *SetPredication )(
  1279. ID3D12VideoProcessCommandList * This,
  1280. _In_opt_ ID3D12Resource *pBuffer,
  1281. _In_ UINT64 AlignedBufferOffset,
  1282. _In_ D3D12_PREDICATION_OP Operation);
  1283. void ( STDMETHODCALLTYPE *SetMarker )(
  1284. ID3D12VideoProcessCommandList * This,
  1285. UINT Metadata,
  1286. _In_reads_bytes_opt_(Size) const void *pData,
  1287. UINT Size);
  1288. void ( STDMETHODCALLTYPE *BeginEvent )(
  1289. ID3D12VideoProcessCommandList * This,
  1290. UINT Metadata,
  1291. _In_reads_bytes_opt_(Size) const void *pData,
  1292. UINT Size);
  1293. void ( STDMETHODCALLTYPE *EndEvent )(
  1294. ID3D12VideoProcessCommandList * This);
  1295. void ( STDMETHODCALLTYPE *ProcessFrames )(
  1296. ID3D12VideoProcessCommandList * This,
  1297. _In_ ID3D12VideoProcessor *pVideoProcessor,
  1298. _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments,
  1299. UINT NumInputStreams,
  1300. _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *pInputArguments);
  1301. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  1302. ID3D12VideoProcessCommandList * This,
  1303. UINT Count,
  1304. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  1305. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  1306. END_INTERFACE
  1307. } ID3D12VideoProcessCommandListVtbl;
  1308. interface ID3D12VideoProcessCommandList
  1309. {
  1310. CONST_VTBL struct ID3D12VideoProcessCommandListVtbl *lpVtbl;
  1311. };
  1312. #ifdef COBJMACROS
  1313. #define ID3D12VideoProcessCommandList_QueryInterface(This,riid,ppvObject) \
  1314. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1315. #define ID3D12VideoProcessCommandList_AddRef(This) \
  1316. ( (This)->lpVtbl -> AddRef(This) )
  1317. #define ID3D12VideoProcessCommandList_Release(This) \
  1318. ( (This)->lpVtbl -> Release(This) )
  1319. #define ID3D12VideoProcessCommandList_GetPrivateData(This,guid,pDataSize,pData) \
  1320. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1321. #define ID3D12VideoProcessCommandList_SetPrivateData(This,guid,DataSize,pData) \
  1322. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1323. #define ID3D12VideoProcessCommandList_SetPrivateDataInterface(This,guid,pData) \
  1324. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1325. #define ID3D12VideoProcessCommandList_SetName(This,Name) \
  1326. ( (This)->lpVtbl -> SetName(This,Name) )
  1327. #define ID3D12VideoProcessCommandList_GetDevice(This,riid,ppvDevice) \
  1328. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1329. #define ID3D12VideoProcessCommandList_GetType(This) \
  1330. ( (This)->lpVtbl -> GetType(This) )
  1331. #define ID3D12VideoProcessCommandList_Close(This) \
  1332. ( (This)->lpVtbl -> Close(This) )
  1333. #define ID3D12VideoProcessCommandList_Reset(This,pAllocator) \
  1334. ( (This)->lpVtbl -> Reset(This,pAllocator) )
  1335. #define ID3D12VideoProcessCommandList_ClearState(This) \
  1336. ( (This)->lpVtbl -> ClearState(This) )
  1337. #define ID3D12VideoProcessCommandList_ResourceBarrier(This,NumBarriers,pBarriers) \
  1338. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  1339. #define ID3D12VideoProcessCommandList_DiscardResource(This,pResource,pRegion) \
  1340. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  1341. #define ID3D12VideoProcessCommandList_BeginQuery(This,pQueryHeap,Type,Index) \
  1342. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  1343. #define ID3D12VideoProcessCommandList_EndQuery(This,pQueryHeap,Type,Index) \
  1344. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  1345. #define ID3D12VideoProcessCommandList_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  1346. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  1347. #define ID3D12VideoProcessCommandList_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  1348. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  1349. #define ID3D12VideoProcessCommandList_SetMarker(This,Metadata,pData,Size) \
  1350. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  1351. #define ID3D12VideoProcessCommandList_BeginEvent(This,Metadata,pData,Size) \
  1352. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  1353. #define ID3D12VideoProcessCommandList_EndEvent(This) \
  1354. ( (This)->lpVtbl -> EndEvent(This) )
  1355. #define ID3D12VideoProcessCommandList_ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \
  1356. ( (This)->lpVtbl -> ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) )
  1357. #define ID3D12VideoProcessCommandList_WriteBufferImmediate(This,Count,pParams,pModes) \
  1358. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  1359. #endif /* COBJMACROS */
  1360. #endif /* C style interface */
  1361. #endif /* __ID3D12VideoProcessCommandList_INTERFACE_DEFINED__ */
  1362. /* interface __MIDL_itf_d3d12video_0000_0006 */
  1363. /* [local] */
  1364. typedef struct D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM
  1365. {
  1366. UINT64 Offset;
  1367. ID3D12Resource *pBuffer;
  1368. } D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM;
  1369. typedef struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1
  1370. {
  1371. BOOL Enable;
  1372. ID3D12Resource *pReferenceTexture2D;
  1373. UINT ReferenceSubresource;
  1374. DXGI_COLOR_SPACE_TYPE OutputColorSpace;
  1375. DXGI_COLOR_SPACE_TYPE DecodeColorSpace;
  1376. UINT OutputWidth;
  1377. UINT OutputHeight;
  1378. } D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1;
  1379. typedef struct D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1
  1380. {
  1381. ID3D12Resource *pOutputTexture2D;
  1382. UINT OutputSubresource;
  1383. D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1 ConversionArguments;
  1384. D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM Histograms[ 4 ];
  1385. } D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1;
  1386. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0006_v0_0_c_ifspec;
  1387. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0006_v0_0_s_ifspec;
  1388. #ifndef __ID3D12VideoDecodeCommandList1_INTERFACE_DEFINED__
  1389. #define __ID3D12VideoDecodeCommandList1_INTERFACE_DEFINED__
  1390. /* interface ID3D12VideoDecodeCommandList1 */
  1391. /* [unique][local][object][uuid] */
  1392. EXTERN_C const IID IID_ID3D12VideoDecodeCommandList1;
  1393. #if defined(__cplusplus) && !defined(CINTERFACE)
  1394. MIDL_INTERFACE("D52F011B-B56E-453C-A05A-A7F311C8F472")
  1395. ID3D12VideoDecodeCommandList1 : public ID3D12VideoDecodeCommandList
  1396. {
  1397. public:
  1398. virtual void STDMETHODCALLTYPE DecodeFrame1(
  1399. _In_ ID3D12VideoDecoder *pDecoder,
  1400. _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *pOutputArguments,
  1401. _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments) = 0;
  1402. };
  1403. #else /* C style interface */
  1404. typedef struct ID3D12VideoDecodeCommandList1Vtbl
  1405. {
  1406. BEGIN_INTERFACE
  1407. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1408. ID3D12VideoDecodeCommandList1 * This,
  1409. REFIID riid,
  1410. _COM_Outptr_ void **ppvObject);
  1411. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1412. ID3D12VideoDecodeCommandList1 * This);
  1413. ULONG ( STDMETHODCALLTYPE *Release )(
  1414. ID3D12VideoDecodeCommandList1 * This);
  1415. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1416. ID3D12VideoDecodeCommandList1 * This,
  1417. _In_ REFGUID guid,
  1418. _Inout_ UINT *pDataSize,
  1419. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1420. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1421. ID3D12VideoDecodeCommandList1 * This,
  1422. _In_ REFGUID guid,
  1423. _In_ UINT DataSize,
  1424. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1425. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1426. ID3D12VideoDecodeCommandList1 * This,
  1427. _In_ REFGUID guid,
  1428. _In_opt_ const IUnknown *pData);
  1429. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1430. ID3D12VideoDecodeCommandList1 * This,
  1431. _In_z_ LPCWSTR Name);
  1432. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1433. ID3D12VideoDecodeCommandList1 * This,
  1434. REFIID riid,
  1435. _COM_Outptr_opt_ void **ppvDevice);
  1436. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  1437. ID3D12VideoDecodeCommandList1 * This);
  1438. HRESULT ( STDMETHODCALLTYPE *Close )(
  1439. ID3D12VideoDecodeCommandList1 * This);
  1440. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1441. ID3D12VideoDecodeCommandList1 * This,
  1442. _In_ ID3D12CommandAllocator *pAllocator);
  1443. void ( STDMETHODCALLTYPE *ClearState )(
  1444. ID3D12VideoDecodeCommandList1 * This);
  1445. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  1446. ID3D12VideoDecodeCommandList1 * This,
  1447. _In_ UINT NumBarriers,
  1448. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  1449. void ( STDMETHODCALLTYPE *DiscardResource )(
  1450. ID3D12VideoDecodeCommandList1 * This,
  1451. _In_ ID3D12Resource *pResource,
  1452. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  1453. void ( STDMETHODCALLTYPE *BeginQuery )(
  1454. ID3D12VideoDecodeCommandList1 * This,
  1455. _In_ ID3D12QueryHeap *pQueryHeap,
  1456. _In_ D3D12_QUERY_TYPE Type,
  1457. _In_ UINT Index);
  1458. void ( STDMETHODCALLTYPE *EndQuery )(
  1459. ID3D12VideoDecodeCommandList1 * This,
  1460. _In_ ID3D12QueryHeap *pQueryHeap,
  1461. _In_ D3D12_QUERY_TYPE Type,
  1462. _In_ UINT Index);
  1463. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  1464. ID3D12VideoDecodeCommandList1 * This,
  1465. _In_ ID3D12QueryHeap *pQueryHeap,
  1466. _In_ D3D12_QUERY_TYPE Type,
  1467. _In_ UINT StartIndex,
  1468. _In_ UINT NumQueries,
  1469. _In_ ID3D12Resource *pDestinationBuffer,
  1470. _In_ UINT64 AlignedDestinationBufferOffset);
  1471. void ( STDMETHODCALLTYPE *SetPredication )(
  1472. ID3D12VideoDecodeCommandList1 * This,
  1473. _In_opt_ ID3D12Resource *pBuffer,
  1474. _In_ UINT64 AlignedBufferOffset,
  1475. _In_ D3D12_PREDICATION_OP Operation);
  1476. void ( STDMETHODCALLTYPE *SetMarker )(
  1477. ID3D12VideoDecodeCommandList1 * This,
  1478. UINT Metadata,
  1479. _In_reads_bytes_opt_(Size) const void *pData,
  1480. UINT Size);
  1481. void ( STDMETHODCALLTYPE *BeginEvent )(
  1482. ID3D12VideoDecodeCommandList1 * This,
  1483. UINT Metadata,
  1484. _In_reads_bytes_opt_(Size) const void *pData,
  1485. UINT Size);
  1486. void ( STDMETHODCALLTYPE *EndEvent )(
  1487. ID3D12VideoDecodeCommandList1 * This);
  1488. void ( STDMETHODCALLTYPE *DecodeFrame )(
  1489. ID3D12VideoDecodeCommandList1 * This,
  1490. _In_ ID3D12VideoDecoder *pDecoder,
  1491. _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputArguments,
  1492. _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments);
  1493. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  1494. ID3D12VideoDecodeCommandList1 * This,
  1495. UINT Count,
  1496. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  1497. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  1498. void ( STDMETHODCALLTYPE *DecodeFrame1 )(
  1499. ID3D12VideoDecodeCommandList1 * This,
  1500. _In_ ID3D12VideoDecoder *pDecoder,
  1501. _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *pOutputArguments,
  1502. _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments);
  1503. END_INTERFACE
  1504. } ID3D12VideoDecodeCommandList1Vtbl;
  1505. interface ID3D12VideoDecodeCommandList1
  1506. {
  1507. CONST_VTBL struct ID3D12VideoDecodeCommandList1Vtbl *lpVtbl;
  1508. };
  1509. #ifdef COBJMACROS
  1510. #define ID3D12VideoDecodeCommandList1_QueryInterface(This,riid,ppvObject) \
  1511. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1512. #define ID3D12VideoDecodeCommandList1_AddRef(This) \
  1513. ( (This)->lpVtbl -> AddRef(This) )
  1514. #define ID3D12VideoDecodeCommandList1_Release(This) \
  1515. ( (This)->lpVtbl -> Release(This) )
  1516. #define ID3D12VideoDecodeCommandList1_GetPrivateData(This,guid,pDataSize,pData) \
  1517. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1518. #define ID3D12VideoDecodeCommandList1_SetPrivateData(This,guid,DataSize,pData) \
  1519. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1520. #define ID3D12VideoDecodeCommandList1_SetPrivateDataInterface(This,guid,pData) \
  1521. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1522. #define ID3D12VideoDecodeCommandList1_SetName(This,Name) \
  1523. ( (This)->lpVtbl -> SetName(This,Name) )
  1524. #define ID3D12VideoDecodeCommandList1_GetDevice(This,riid,ppvDevice) \
  1525. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1526. #define ID3D12VideoDecodeCommandList1_GetType(This) \
  1527. ( (This)->lpVtbl -> GetType(This) )
  1528. #define ID3D12VideoDecodeCommandList1_Close(This) \
  1529. ( (This)->lpVtbl -> Close(This) )
  1530. #define ID3D12VideoDecodeCommandList1_Reset(This,pAllocator) \
  1531. ( (This)->lpVtbl -> Reset(This,pAllocator) )
  1532. #define ID3D12VideoDecodeCommandList1_ClearState(This) \
  1533. ( (This)->lpVtbl -> ClearState(This) )
  1534. #define ID3D12VideoDecodeCommandList1_ResourceBarrier(This,NumBarriers,pBarriers) \
  1535. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  1536. #define ID3D12VideoDecodeCommandList1_DiscardResource(This,pResource,pRegion) \
  1537. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  1538. #define ID3D12VideoDecodeCommandList1_BeginQuery(This,pQueryHeap,Type,Index) \
  1539. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  1540. #define ID3D12VideoDecodeCommandList1_EndQuery(This,pQueryHeap,Type,Index) \
  1541. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  1542. #define ID3D12VideoDecodeCommandList1_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  1543. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  1544. #define ID3D12VideoDecodeCommandList1_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  1545. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  1546. #define ID3D12VideoDecodeCommandList1_SetMarker(This,Metadata,pData,Size) \
  1547. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  1548. #define ID3D12VideoDecodeCommandList1_BeginEvent(This,Metadata,pData,Size) \
  1549. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  1550. #define ID3D12VideoDecodeCommandList1_EndEvent(This) \
  1551. ( (This)->lpVtbl -> EndEvent(This) )
  1552. #define ID3D12VideoDecodeCommandList1_DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) \
  1553. ( (This)->lpVtbl -> DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) )
  1554. #define ID3D12VideoDecodeCommandList1_WriteBufferImmediate(This,Count,pParams,pModes) \
  1555. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  1556. #define ID3D12VideoDecodeCommandList1_DecodeFrame1(This,pDecoder,pOutputArguments,pInputArguments) \
  1557. ( (This)->lpVtbl -> DecodeFrame1(This,pDecoder,pOutputArguments,pInputArguments) )
  1558. #endif /* COBJMACROS */
  1559. #endif /* C style interface */
  1560. #endif /* __ID3D12VideoDecodeCommandList1_INTERFACE_DEFINED__ */
  1561. /* interface __MIDL_itf_d3d12video_0000_0007 */
  1562. /* [local] */
  1563. typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1
  1564. {
  1565. D3D12_VIDEO_PROCESS_INPUT_STREAM InputStream[ 2 ];
  1566. D3D12_VIDEO_PROCESS_TRANSFORM Transform;
  1567. D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS Flags;
  1568. D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE RateInfo;
  1569. INT FilterLevels[ 32 ];
  1570. D3D12_VIDEO_PROCESS_ALPHA_BLENDING AlphaBlending;
  1571. D3D12_VIDEO_FIELD_TYPE FieldType;
  1572. } D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1;
  1573. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0007_v0_0_c_ifspec;
  1574. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0007_v0_0_s_ifspec;
  1575. #ifndef __ID3D12VideoProcessCommandList1_INTERFACE_DEFINED__
  1576. #define __ID3D12VideoProcessCommandList1_INTERFACE_DEFINED__
  1577. /* interface ID3D12VideoProcessCommandList1 */
  1578. /* [unique][local][object][uuid] */
  1579. EXTERN_C const IID IID_ID3D12VideoProcessCommandList1;
  1580. #if defined(__cplusplus) && !defined(CINTERFACE)
  1581. MIDL_INTERFACE("542C5C4D-7596-434F-8C93-4EFA6766F267")
  1582. ID3D12VideoProcessCommandList1 : public ID3D12VideoProcessCommandList
  1583. {
  1584. public:
  1585. virtual void STDMETHODCALLTYPE ProcessFrames1(
  1586. _In_ ID3D12VideoProcessor *pVideoProcessor,
  1587. _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments,
  1588. UINT NumInputStreams,
  1589. _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *pInputArguments) = 0;
  1590. };
  1591. #else /* C style interface */
  1592. typedef struct ID3D12VideoProcessCommandList1Vtbl
  1593. {
  1594. BEGIN_INTERFACE
  1595. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1596. ID3D12VideoProcessCommandList1 * This,
  1597. REFIID riid,
  1598. _COM_Outptr_ void **ppvObject);
  1599. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1600. ID3D12VideoProcessCommandList1 * This);
  1601. ULONG ( STDMETHODCALLTYPE *Release )(
  1602. ID3D12VideoProcessCommandList1 * This);
  1603. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1604. ID3D12VideoProcessCommandList1 * This,
  1605. _In_ REFGUID guid,
  1606. _Inout_ UINT *pDataSize,
  1607. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1608. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1609. ID3D12VideoProcessCommandList1 * This,
  1610. _In_ REFGUID guid,
  1611. _In_ UINT DataSize,
  1612. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1613. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1614. ID3D12VideoProcessCommandList1 * This,
  1615. _In_ REFGUID guid,
  1616. _In_opt_ const IUnknown *pData);
  1617. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1618. ID3D12VideoProcessCommandList1 * This,
  1619. _In_z_ LPCWSTR Name);
  1620. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1621. ID3D12VideoProcessCommandList1 * This,
  1622. REFIID riid,
  1623. _COM_Outptr_opt_ void **ppvDevice);
  1624. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  1625. ID3D12VideoProcessCommandList1 * This);
  1626. HRESULT ( STDMETHODCALLTYPE *Close )(
  1627. ID3D12VideoProcessCommandList1 * This);
  1628. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1629. ID3D12VideoProcessCommandList1 * This,
  1630. _In_ ID3D12CommandAllocator *pAllocator);
  1631. void ( STDMETHODCALLTYPE *ClearState )(
  1632. ID3D12VideoProcessCommandList1 * This);
  1633. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  1634. ID3D12VideoProcessCommandList1 * This,
  1635. _In_ UINT NumBarriers,
  1636. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  1637. void ( STDMETHODCALLTYPE *DiscardResource )(
  1638. ID3D12VideoProcessCommandList1 * This,
  1639. _In_ ID3D12Resource *pResource,
  1640. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  1641. void ( STDMETHODCALLTYPE *BeginQuery )(
  1642. ID3D12VideoProcessCommandList1 * This,
  1643. _In_ ID3D12QueryHeap *pQueryHeap,
  1644. _In_ D3D12_QUERY_TYPE Type,
  1645. _In_ UINT Index);
  1646. void ( STDMETHODCALLTYPE *EndQuery )(
  1647. ID3D12VideoProcessCommandList1 * This,
  1648. _In_ ID3D12QueryHeap *pQueryHeap,
  1649. _In_ D3D12_QUERY_TYPE Type,
  1650. _In_ UINT Index);
  1651. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  1652. ID3D12VideoProcessCommandList1 * This,
  1653. _In_ ID3D12QueryHeap *pQueryHeap,
  1654. _In_ D3D12_QUERY_TYPE Type,
  1655. _In_ UINT StartIndex,
  1656. _In_ UINT NumQueries,
  1657. _In_ ID3D12Resource *pDestinationBuffer,
  1658. _In_ UINT64 AlignedDestinationBufferOffset);
  1659. void ( STDMETHODCALLTYPE *SetPredication )(
  1660. ID3D12VideoProcessCommandList1 * This,
  1661. _In_opt_ ID3D12Resource *pBuffer,
  1662. _In_ UINT64 AlignedBufferOffset,
  1663. _In_ D3D12_PREDICATION_OP Operation);
  1664. void ( STDMETHODCALLTYPE *SetMarker )(
  1665. ID3D12VideoProcessCommandList1 * This,
  1666. UINT Metadata,
  1667. _In_reads_bytes_opt_(Size) const void *pData,
  1668. UINT Size);
  1669. void ( STDMETHODCALLTYPE *BeginEvent )(
  1670. ID3D12VideoProcessCommandList1 * This,
  1671. UINT Metadata,
  1672. _In_reads_bytes_opt_(Size) const void *pData,
  1673. UINT Size);
  1674. void ( STDMETHODCALLTYPE *EndEvent )(
  1675. ID3D12VideoProcessCommandList1 * This);
  1676. void ( STDMETHODCALLTYPE *ProcessFrames )(
  1677. ID3D12VideoProcessCommandList1 * This,
  1678. _In_ ID3D12VideoProcessor *pVideoProcessor,
  1679. _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments,
  1680. UINT NumInputStreams,
  1681. _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *pInputArguments);
  1682. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  1683. ID3D12VideoProcessCommandList1 * This,
  1684. UINT Count,
  1685. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  1686. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  1687. void ( STDMETHODCALLTYPE *ProcessFrames1 )(
  1688. ID3D12VideoProcessCommandList1 * This,
  1689. _In_ ID3D12VideoProcessor *pVideoProcessor,
  1690. _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments,
  1691. UINT NumInputStreams,
  1692. _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *pInputArguments);
  1693. END_INTERFACE
  1694. } ID3D12VideoProcessCommandList1Vtbl;
  1695. interface ID3D12VideoProcessCommandList1
  1696. {
  1697. CONST_VTBL struct ID3D12VideoProcessCommandList1Vtbl *lpVtbl;
  1698. };
  1699. #ifdef COBJMACROS
  1700. #define ID3D12VideoProcessCommandList1_QueryInterface(This,riid,ppvObject) \
  1701. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1702. #define ID3D12VideoProcessCommandList1_AddRef(This) \
  1703. ( (This)->lpVtbl -> AddRef(This) )
  1704. #define ID3D12VideoProcessCommandList1_Release(This) \
  1705. ( (This)->lpVtbl -> Release(This) )
  1706. #define ID3D12VideoProcessCommandList1_GetPrivateData(This,guid,pDataSize,pData) \
  1707. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1708. #define ID3D12VideoProcessCommandList1_SetPrivateData(This,guid,DataSize,pData) \
  1709. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1710. #define ID3D12VideoProcessCommandList1_SetPrivateDataInterface(This,guid,pData) \
  1711. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1712. #define ID3D12VideoProcessCommandList1_SetName(This,Name) \
  1713. ( (This)->lpVtbl -> SetName(This,Name) )
  1714. #define ID3D12VideoProcessCommandList1_GetDevice(This,riid,ppvDevice) \
  1715. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1716. #define ID3D12VideoProcessCommandList1_GetType(This) \
  1717. ( (This)->lpVtbl -> GetType(This) )
  1718. #define ID3D12VideoProcessCommandList1_Close(This) \
  1719. ( (This)->lpVtbl -> Close(This) )
  1720. #define ID3D12VideoProcessCommandList1_Reset(This,pAllocator) \
  1721. ( (This)->lpVtbl -> Reset(This,pAllocator) )
  1722. #define ID3D12VideoProcessCommandList1_ClearState(This) \
  1723. ( (This)->lpVtbl -> ClearState(This) )
  1724. #define ID3D12VideoProcessCommandList1_ResourceBarrier(This,NumBarriers,pBarriers) \
  1725. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  1726. #define ID3D12VideoProcessCommandList1_DiscardResource(This,pResource,pRegion) \
  1727. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  1728. #define ID3D12VideoProcessCommandList1_BeginQuery(This,pQueryHeap,Type,Index) \
  1729. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  1730. #define ID3D12VideoProcessCommandList1_EndQuery(This,pQueryHeap,Type,Index) \
  1731. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  1732. #define ID3D12VideoProcessCommandList1_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  1733. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  1734. #define ID3D12VideoProcessCommandList1_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  1735. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  1736. #define ID3D12VideoProcessCommandList1_SetMarker(This,Metadata,pData,Size) \
  1737. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  1738. #define ID3D12VideoProcessCommandList1_BeginEvent(This,Metadata,pData,Size) \
  1739. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  1740. #define ID3D12VideoProcessCommandList1_EndEvent(This) \
  1741. ( (This)->lpVtbl -> EndEvent(This) )
  1742. #define ID3D12VideoProcessCommandList1_ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \
  1743. ( (This)->lpVtbl -> ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) )
  1744. #define ID3D12VideoProcessCommandList1_WriteBufferImmediate(This,Count,pParams,pModes) \
  1745. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  1746. #define ID3D12VideoProcessCommandList1_ProcessFrames1(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \
  1747. ( (This)->lpVtbl -> ProcessFrames1(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) )
  1748. #endif /* COBJMACROS */
  1749. #endif /* C style interface */
  1750. #endif /* __ID3D12VideoProcessCommandList1_INTERFACE_DEFINED__ */
  1751. /* interface __MIDL_itf_d3d12video_0000_0008 */
  1752. /* [local] */
  1753. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG2, 0xee27417f, 0x5e28, 0x4e65, 0xbe, 0xea, 0x1d, 0x26, 0xb5, 0x08, 0xad, 0xc9);
  1754. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG1_AND_MPEG2, 0x86695f12, 0x340e, 0x4f04, 0x9f, 0xd3, 0x92, 0x53, 0xdd, 0x32, 0x74, 0x60);
  1755. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264, 0x1b81be68, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);
  1756. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264_STEREO_PROGRESSIVE, 0xd79be8da, 0x0cf1, 0x4c81, 0xb8, 0x2a, 0x69, 0xa4, 0xe2, 0x36, 0xf4, 0x3d);
  1757. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264_STEREO, 0xf9aaccbb, 0xc2b6, 0x4cfc, 0x87, 0x79, 0x57, 0x07, 0xb1, 0x76, 0x05, 0x52);
  1758. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264_MULTIVIEW, 0x705b9d82, 0x76cf, 0x49d6, 0xb7, 0xe6, 0xac, 0x88, 0x72, 0xdb, 0x01, 0x3c);
  1759. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VC1, 0x1b81beA3, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);
  1760. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VC1_D2010, 0x1b81beA4, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);
  1761. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_SIMPLE, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);
  1762. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_ADVSIMPLE_NOGMC, 0xed418a9f, 0x010d, 0x4eda, 0x9a, 0xe3, 0x9a, 0x65, 0x35, 0x8d, 0x8d, 0x2e);
  1763. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN, 0x5b11d51b, 0x2f4c, 0x4452, 0xbc, 0xc3, 0x09, 0xf2, 0xa1, 0x16, 0x0c, 0xc0);
  1764. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10, 0x107af0e0, 0xef1a, 0x4d19, 0xab, 0xa8, 0x67, 0xa1, 0x63, 0x07, 0x3d, 0x13);
  1765. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VP9, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e);
  1766. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7);
  1767. DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VP8, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7);
  1768. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
  1769. // BK - pragma endregion
  1770. DEFINE_GUID(IID_ID3D12VideoDecoderHeap,0x0946B7C9,0xEBF6,0x4047,0xBB,0x73,0x86,0x83,0xE2,0x7D,0xBB,0x1F);
  1771. DEFINE_GUID(IID_ID3D12VideoDevice,0x1F052807,0x0B46,0x4ACC,0x8A,0x89,0x36,0x4F,0x79,0x37,0x18,0xA4);
  1772. DEFINE_GUID(IID_ID3D12VideoDecoder,0xC59B6BDC,0x7720,0x4074,0xA1,0x36,0x17,0xA1,0x56,0x03,0x74,0x70);
  1773. DEFINE_GUID(IID_ID3D12VideoProcessor,0x304FDB32,0xBEDE,0x410A,0x85,0x45,0x94,0x3A,0xC6,0xA4,0x61,0x38);
  1774. DEFINE_GUID(IID_ID3D12VideoDecodeCommandList,0x3B60536E,0xAD29,0x4E64,0xA2,0x69,0xF8,0x53,0x83,0x7E,0x5E,0x53);
  1775. DEFINE_GUID(IID_ID3D12VideoProcessCommandList,0xAEB2543A,0x167F,0x4682,0xAC,0xC8,0xD1,0x59,0xED,0x4A,0x62,0x09);
  1776. DEFINE_GUID(IID_ID3D12VideoDecodeCommandList1,0xD52F011B,0xB56E,0x453C,0xA0,0x5A,0xA7,0xF3,0x11,0xC8,0xF4,0x72);
  1777. DEFINE_GUID(IID_ID3D12VideoProcessCommandList1,0x542C5C4D,0x7596,0x434F,0x8C,0x93,0x4E,0xFA,0x67,0x66,0xF2,0x67);
  1778. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0008_v0_0_c_ifspec;
  1779. extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0008_v0_0_s_ifspec;
  1780. /* Additional Prototypes for ALL interfaces */
  1781. /* end of Additional Prototypes */
  1782. #ifdef __cplusplus
  1783. }
  1784. #endif
  1785. #endif