VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx/VBoxDXCmd.h

Last change on this file was 102809, checked in by vboxsync, 5 months ago

WDDM: multisampling

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 28.2 KB
Line 
1/* $Id: VBoxDXCmd.h 102809 2024-01-10 08:18:11Z vboxsync $ */
2/** @file
3 * VBoxVideo Display D3D User mode dll
4 */
5
6/*
7 * Copyright (C) 2022-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28#ifndef GA_INCLUDED_SRC_WINNT_Graphics_Video_disp_wddm_dx_VBoxDXCmd_h
29#define GA_INCLUDED_SRC_WINNT_Graphics_Video_disp_wddm_dx_VBoxDXCmd_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34int vgpu10DefineBlendState(PVBOXDX_DEVICE pDevice,
35 SVGA3dBlendStateId blendId,
36 uint8 alphaToCoverageEnable,
37 uint8 independentBlendEnable,
38 const SVGA3dDXBlendStatePerRT *perRT);
39int vgpu10DestroyBlendState(PVBOXDX_DEVICE pDevice,
40 SVGA3dBlendStateId blendId);
41int vgpu10DefineDepthStencilState(PVBOXDX_DEVICE pDevice,
42 SVGA3dDepthStencilStateId depthStencilId,
43 uint8_t depthEnable,
44 SVGA3dDepthWriteMask depthWriteMask,
45 SVGA3dComparisonFunc depthFunc,
46 uint8 stencilEnable,
47 uint8 frontEnable,
48 uint8 backEnable,
49 uint8 stencilReadMask,
50 uint8 stencilWriteMask,
51 uint8 frontStencilFailOp,
52 uint8 frontStencilDepthFailOp,
53 uint8 frontStencilPassOp,
54 SVGA3dComparisonFunc frontStencilFunc,
55 uint8 backStencilFailOp,
56 uint8 backStencilDepthFailOp,
57 uint8 backStencilPassOp,
58 SVGA3dComparisonFunc backStencilFunc);
59int vgpu10DestroyDepthStencilState(PVBOXDX_DEVICE pDevice,
60 SVGA3dDepthStencilStateId depthStencilId);
61int vgpu10DefineRasterizerState(PVBOXDX_DEVICE pDevice,
62 SVGA3dRasterizerStateId rasterizerId,
63 uint8 fillMode,
64 SVGA3dCullMode cullMode,
65 uint8 frontCounterClockwise,
66 uint8 provokingVertexLast,
67 int32 depthBias,
68 float depthBiasClamp,
69 float slopeScaledDepthBias,
70 uint8 depthClipEnable,
71 uint8 scissorEnable,
72 SVGA3dMultisampleRastEnable multisampleEnable,
73 uint8 antialiasedLineEnable,
74 float lineWidth,
75 uint8 lineStippleEnable,
76 uint8 lineStippleFactor,
77 uint16 lineStipplePattern);
78int vgpu10DestroyRasterizerState(PVBOXDX_DEVICE pDevice,
79 SVGA3dRasterizerStateId rasterizerId);
80int vgpu10DefineSamplerState(PVBOXDX_DEVICE pDevice,
81 SVGA3dSamplerId samplerId,
82 SVGA3dFilter filter,
83 uint8 addressU,
84 uint8 addressV,
85 uint8 addressW,
86 float mipLODBias,
87 uint8 maxAnisotropy,
88 SVGA3dComparisonFunc comparisonFunc,
89 SVGA3dRGBAFloat borderColor,
90 float minLOD,
91 float maxLOD);
92int vgpu10DestroySamplerState(PVBOXDX_DEVICE pDevice,
93 SVGA3dSamplerId samplerId);
94int vgpu10DefineElementLayout(PVBOXDX_DEVICE pDevice,
95 SVGA3dElementLayoutId elementLayoutId,
96 uint32_t cElements,
97 SVGA3dInputElementDesc *paDesc);
98int vgpu10DestroyElementLayout(PVBOXDX_DEVICE pDevice,
99 SVGA3dElementLayoutId elementLayoutId);
100int vgpu10SetInputLayout(PVBOXDX_DEVICE pDevice,
101 SVGA3dElementLayoutId elementLayoutId);
102int vgpu10SetBlendState(PVBOXDX_DEVICE pDevice,
103 SVGA3dBlendStateId blendId,
104 const float blendFactor[4],
105 uint32 sampleMask);
106int vgpu10SetDepthStencilState(PVBOXDX_DEVICE pDevice,
107 SVGA3dDepthStencilStateId depthStencilId,
108 uint32 stencilRef);
109int vgpu10SetRasterizerState(PVBOXDX_DEVICE pDevice,
110 SVGA3dRasterizerStateId rasterizerId);
111int vgpu10SetSamplers(PVBOXDX_DEVICE pDevice,
112 uint32 startSampler,
113 SVGA3dShaderType type,
114 uint32_t numSamplers,
115 const SVGA3dSamplerId *paSamplerIds);
116int vgpu10SetTopology(PVBOXDX_DEVICE pDevice,
117 SVGA3dPrimitiveType topology);
118int vgpu10Draw(PVBOXDX_DEVICE pDevice,
119 uint32 vertexCount,
120 uint32 startVertexLocation);
121int vgpu10DrawIndexed(PVBOXDX_DEVICE pDevice,
122 uint32 indexCount,
123 uint32 startIndexLocation,
124 int32 baseVertexLocation);
125int vgpu10DrawInstanced(PVBOXDX_DEVICE pDevice,
126 uint32 vertexCountPerInstance,
127 uint32 instanceCount,
128 uint32 startVertexLocation,
129 uint32 startInstanceLocation);
130int vgpu10DrawIndexedInstanced(PVBOXDX_DEVICE pDevice,
131 uint32 indexCountPerInstance,
132 uint32 instanceCount,
133 uint32 startIndexLocation,
134 int32 baseVertexLocation,
135 uint32 startInstanceLocation);
136int vgpu10DrawAuto(PVBOXDX_DEVICE pDevice);
137int vgpu10SetViewports(PVBOXDX_DEVICE pDevice,
138 uint32_t cViewports,
139 const D3D10_DDI_VIEWPORT *paViewports);
140int vgpu10SetScissorRects(PVBOXDX_DEVICE pDevice,
141 uint32_t cRects,
142 const D3D10_DDI_RECT *paRects);
143int vgpu10DefineShader(PVBOXDX_DEVICE pDevice,
144 SVGA3dShaderId shaderId,
145 SVGA3dShaderType type,
146 uint32_t sizeInBytes);
147int vgpu10DefineStreamOutputWithMob(PVBOXDX_DEVICE pDevice,
148 SVGA3dStreamOutputId soid,
149 uint32 numOutputStreamEntries,
150 uint32 numOutputStreamStrides,
151 const uint32 *streamOutputStrideInBytes,
152 uint32 rasterizedStream);
153int vgpu10BindStreamOutput(PVBOXDX_DEVICE pDevice,
154 SVGA3dStreamOutputId soid,
155 D3DKMT_HANDLE hAllocation,
156 uint32 offsetInBytes,
157 uint32 sizeInBytes);
158int vgpu10SetStreamOutput(PVBOXDX_DEVICE pDevice,
159 SVGA3dStreamOutputId soid);
160int vgpu10DestroyShader(PVBOXDX_DEVICE pDevice,
161 SVGA3dShaderId shaderId);
162int vgpu10BindShader(PVBOXDX_DEVICE pDevice,
163 uint32_t shid,
164 D3DKMT_HANDLE hAllocation,
165 uint32_t offsetInBytes);
166int vgpu10SetShader(PVBOXDX_DEVICE pDevice,
167 SVGA3dShaderId shaderId,
168 SVGA3dShaderType type);
169int vgpu10SetVertexBuffers(PVBOXDX_DEVICE pDevice,
170 uint32_t startBuffer,
171 uint32_t numBuffers,
172 D3DKMT_HANDLE *paAllocations,
173 const UINT *paStrides,
174 const UINT *paOffsets);
175int vgpu10SetIndexBuffer(PVBOXDX_DEVICE pDevice,
176 D3DKMT_HANDLE hAllocation,
177 SVGA3dSurfaceFormat format,
178 uint32_t offset);
179int vgpu10SoSetTargets(PVBOXDX_DEVICE pDevice,
180 uint32_t numTargets,
181 D3DKMT_HANDLE *paAllocations,
182 uint32_t *paOffsets,
183 uint32_t *paSizes);
184int vgpu10DefineShaderResourceView(PVBOXDX_DEVICE pDevice,
185 SVGA3dShaderResourceViewId shaderResourceViewId,
186 D3DKMT_HANDLE hAllocation,
187 SVGA3dSurfaceFormat format,
188 SVGA3dResourceType resourceDimension,
189 SVGA3dShaderResourceViewDesc const *pDesc);
190int vgpu10GenMips(PVBOXDX_DEVICE pDevice,
191 SVGA3dShaderResourceViewId shaderResourceViewId);
192int vgpu10DestroyShaderResourceView(PVBOXDX_DEVICE pDevice,
193 SVGA3dShaderResourceViewId shaderResourceViewId);
194int vgpu10DefineRenderTargetView(PVBOXDX_DEVICE pDevice,
195 SVGA3dRenderTargetViewId renderTargetViewId,
196 D3DKMT_HANDLE hAllocation,
197 SVGA3dSurfaceFormat format,
198 SVGA3dResourceType resourceDimension,
199 SVGA3dRenderTargetViewDesc const *pDesc);
200int vgpu10ClearRenderTargetView(PVBOXDX_DEVICE pDevice,
201 SVGA3dRenderTargetViewId renderTargetViewId,
202 const float rgba[4]);
203int vgpu10DestroyRenderTargetView(PVBOXDX_DEVICE pDevice,
204 SVGA3dRenderTargetViewId renderTargetViewId);
205int vgpu10DefineDepthStencilView(PVBOXDX_DEVICE pDevice,
206 SVGA3dDepthStencilViewId depthStencilViewId,
207 D3DKMT_HANDLE hAllocation,
208 SVGA3dSurfaceFormat format,
209 SVGA3dResourceType resourceDimension,
210 uint32 mipSlice,
211 uint32 firstArraySlice,
212 uint32 arraySize,
213 SVGA3DCreateDSViewFlags flags);
214int vgpu10ClearDepthStencilView(PVBOXDX_DEVICE pDevice,
215 uint16 flags,
216 uint16 stencil,
217 SVGA3dDepthStencilViewId depthStencilViewId,
218 float depth);
219int vgpu10DestroyDepthStencilView(PVBOXDX_DEVICE pDevice,
220 SVGA3dDepthStencilViewId depthStencilViewId);
221int vgpu10SetRenderTargets(PVBOXDX_DEVICE pDevice,
222 SVGA3dDepthStencilViewId depthStencilViewId,
223 uint32_t numRTVs,
224 uint32_t numClearSlots,
225 uint32_t *paRenderTargetViewIds);
226int vgpu10SetShaderResources(PVBOXDX_DEVICE pDevice,
227 SVGA3dShaderType type,
228 uint32 startView,
229 uint32_t numViews,
230 uint32_t *paViewIds);
231int vgpu10SetSingleConstantBuffer(PVBOXDX_DEVICE pDevice,
232 uint32 slot,
233 SVGA3dShaderType type,
234 D3DKMT_HANDLE hAllocation,
235 uint32 offsetInBytes,
236 uint32 sizeInBytes);
237int vgpu10UpdateSubResource(PVBOXDX_DEVICE pDevice,
238 D3DKMT_HANDLE hAllocation,
239 uint32 subResource,
240 const SVGA3dBox *pBox);
241int vgpu10ReadbackSubResource(PVBOXDX_DEVICE pDevice,
242 D3DKMT_HANDLE hAllocation,
243 uint32 subResource);
244int vgpu10TransferFromBuffer(PVBOXDX_DEVICE pDevice,
245 D3DKMT_HANDLE hSrcAllocation,
246 uint32 srcOffset,
247 uint32 srcPitch,
248 uint32 srcSlicePitch,
249 D3DKMT_HANDLE hDstAllocation,
250 uint32 destSubResource,
251 SVGA3dBox const &destBox);
252int vgpu10ResourceCopyRegion(PVBOXDX_DEVICE pDevice,
253 D3DKMT_HANDLE hDstAllocation,
254 uint32 dstSubResource,
255 uint32 dstX,
256 uint32 dstY,
257 uint32 dstZ,
258 D3DKMT_HANDLE hSrcAllocation,
259 uint32 srcSubResource,
260 SVGA3dBox const &srcBox);
261int vgpu10ResourceCopy(PVBOXDX_DEVICE pDevice,
262 D3DKMT_HANDLE hDstAllocation,
263 D3DKMT_HANDLE hSrcAllocation);
264int vgpu10ResolveCopy(PVBOXDX_DEVICE pDevice,
265 D3DKMT_HANDLE hDstAllocation,
266 uint32 dstSubResource,
267 D3DKMT_HANDLE hSrcAllocation,
268 uint32 srcSubResource,
269 SVGA3dSurfaceFormat copyFormat);
270int vgpu10MobFence64(PVBOXDX_DEVICE pDevice,
271 uint64 value,
272 D3DKMT_HANDLE hAllocation,
273 uint32 mobOffset);
274int vgpu10DefineQuery(PVBOXDX_DEVICE pDevice,
275 SVGA3dQueryId queryId,
276 SVGA3dQueryType type,
277 SVGA3dDXQueryFlags flags);
278int vgpu10DestroyQuery(PVBOXDX_DEVICE pDevice,
279 SVGA3dQueryId queryId);
280int vgpu10BindQuery(PVBOXDX_DEVICE pDevice,
281 SVGA3dQueryId queryId,
282 D3DKMT_HANDLE hAllocation);
283int vgpu10SetQueryOffset(PVBOXDX_DEVICE pDevice,
284 SVGA3dQueryId queryId,
285 uint32 mobOffset);
286int vgpu10BeginQuery(PVBOXDX_DEVICE pDevice,
287 SVGA3dQueryId queryId);
288int vgpu10EndQuery(PVBOXDX_DEVICE pDevice,
289 SVGA3dQueryId queryId);
290int vgpu10ReadbackQuery(PVBOXDX_DEVICE pDevice,
291 SVGA3dQueryId queryId);
292int vgpu10SetPredication(PVBOXDX_DEVICE pDevice,
293 SVGA3dQueryId queryId,
294 uint32 predicateValue);
295int vgpu10DefineUAView(PVBOXDX_DEVICE pDevice,
296 SVGA3dUAViewId uaViewId,
297 D3DKMT_HANDLE hAllocation,
298 SVGA3dSurfaceFormat format,
299 SVGA3dResourceType resourceDimension,
300 const SVGA3dUAViewDesc &desc);
301int vgpu10DestroyUAView(PVBOXDX_DEVICE pDevice,
302 SVGA3dUAViewId uaViewId);
303int vgpu10ClearUAViewUint(PVBOXDX_DEVICE pDevice,
304 SVGA3dUAViewId uaViewId,
305 const uint32 value[4]);
306int vgpu10ClearUAViewFloat(PVBOXDX_DEVICE pDevice,
307 SVGA3dUAViewId uaViewId,
308 const float value[4]);
309int vgpu10SetCSUAViews(PVBOXDX_DEVICE pDevice,
310 uint32 startIndex,
311 uint32 numViews,
312 const SVGA3dUAViewId *paViewIds);
313int vgpu10SetUAViews(PVBOXDX_DEVICE pDevice,
314 uint32 uavSpliceIndex,
315 uint32 numViews,
316 const SVGA3dUAViewId *paViewIds);
317int vgpu10SetStructureCount(PVBOXDX_DEVICE pDevice,
318 SVGA3dUAViewId uaViewId,
319 uint32 structureCount);
320int vgpu10Dispatch(PVBOXDX_DEVICE pDevice,
321 uint32 threadGroupCountX,
322 uint32 threadGroupCountY,
323 uint32 threadGroupCountZ);
324int vgpu10DispatchIndirect(PVBOXDX_DEVICE pDevice,
325 D3DKMT_HANDLE hAllocation,
326 uint32 byteOffsetForArgs);
327int vgpu10DrawIndexedInstancedIndirect(PVBOXDX_DEVICE pDevice,
328 D3DKMT_HANDLE hAllocation,
329 uint32 byteOffsetForArgs);
330int vgpu10DrawInstancedIndirect(PVBOXDX_DEVICE pDevice,
331 D3DKMT_HANDLE hAllocation,
332 uint32 byteOffsetForArgs);
333int vgpu10CopyStructureCount(PVBOXDX_DEVICE pDevice,
334 SVGA3dUAViewId srcUAViewId,
335 D3DKMT_HANDLE hDstBuffer,
336 uint32 destByteOffset);
337int vgpu10ClearRenderTargetViewRegion(PVBOXDX_DEVICE pDevice,
338 SVGA3dRenderTargetViewId viewId,
339 const float color[4],
340 const D3D10_DDI_RECT *paRects,
341 uint32_t cRects);
342int vgpu10PresentBlt(PVBOXDX_DEVICE pDevice,
343 D3DKMT_HANDLE hSrcAllocation,
344 uint32 srcSubResource,
345 D3DKMT_HANDLE hDstAllocation,
346 uint32 destSubResource,
347 SVGA3dBox const &boxSrc,
348 SVGA3dBox const &boxDest,
349 SVGA3dDXPresentBltMode mode);
350
351int vgpu10DefineVideoProcessor(PVBOXDX_DEVICE pDevice,
352 uint32 uVideoProcessorId,
353 VBSVGA3dVideoProcessorDesc const &desc);
354int vgpu10DefineVideoDecoderOutputView(PVBOXDX_DEVICE pDevice,
355 VBSVGA3dVideoDecoderOutputViewId videoDecoderOutputViewId,
356 D3DKMT_HANDLE hAllocation,
357 VBSVGA3dVDOVDesc const &desc);
358int vgpu10DefineVideoDecoder(PVBOXDX_DEVICE pDevice,
359 VBSVGA3dVideoDecoderId videoDecoderId,
360 VBSVGA3dVideoDecoderDesc const &desc,
361 VBSVGA3dVideoDecoderConfig const &config);
362int vgpu10VideoDecoderBeginFrame(PVBOXDX_DEVICE pDevice,
363 VBSVGA3dVideoDecoderId videoDecoderId,
364 VBSVGA3dVideoDecoderOutputViewId videoDecoderOutputViewId);
365int vgpu10VideoDecoderSubmitBuffers(PVBOXDX_DEVICE pDevice,
366 VBSVGA3dVideoDecoderId videoDecoderId,
367 uint32 bufferCount,
368 D3DKMT_HANDLE const *pahAllocation,
369 VBSVGA3dVideoDecoderBufferDesc const *paBufferDesc);
370int vgpu10VideoDecoderEndFrame(PVBOXDX_DEVICE pDevice,
371 VBSVGA3dVideoDecoderId videoDecoderId);
372int vgpu10DefineVideoProcessorInputView(PVBOXDX_DEVICE pDevice,
373 VBSVGA3dVideoProcessorInputViewId videoProcessorInputViewId,
374 D3DKMT_HANDLE hAllocation,
375 VBSVGA3dVideoProcessorDesc const &contentDesc,
376 VBSVGA3dVPIVDesc const &desc);
377int vgpu10DefineVideoProcessorOutputView(PVBOXDX_DEVICE pDevice,
378 VBSVGA3dVideoProcessorOutputViewId videoProcessorOutputViewId,
379 D3DKMT_HANDLE hAllocation,
380 VBSVGA3dVideoProcessorDesc const &contentDesc,
381 VBSVGA3dVPOVDesc const &desc);
382int vgpu10VideoProcessorBlt(PVBOXDX_DEVICE pDevice,
383 VBSVGA3dVideoProcessorId videoProcessorId,
384 VBSVGA3dVideoProcessorOutputViewId videoProcessorOutputViewId,
385 uint32 OutputFrame,
386 uint32 StreamCount,
387 uint32 cbVideoProcessorStreams,
388 VBSVGA3dVideoProcessorStream *paVideoProcessorStreams);
389int vgpu10DestroyVideoDecoder(PVBOXDX_DEVICE pDevice,
390 VBSVGA3dVideoDecoderId videoDecoderId);
391int vgpu10DestroyVideoDecoderOutputView(PVBOXDX_DEVICE pDevice,
392 VBSVGA3dVideoDecoderOutputViewId videoDecoderOutputViewId);
393int vgpu10DestroyVideoProcessor(PVBOXDX_DEVICE pDevice,
394 VBSVGA3dVideoProcessorId videoProcessorId);
395int vgpu10DestroyVideoProcessorInputView(PVBOXDX_DEVICE pDevice,
396 VBSVGA3dVideoProcessorInputViewId videoProcessorInputViewId);
397int vgpu10DestroyVideoProcessorOutputView(PVBOXDX_DEVICE pDevice,
398 VBSVGA3dVideoProcessorOutputViewId videoProcessorOutputViewId);
399int vgpu10VideoProcessorSetOutputTargetRect(PVBOXDX_DEVICE pDevice,
400 VBSVGA3dVideoProcessorId videoProcessorId,
401 BOOL enable,
402 RECT const &outputRect);
403int vgpu10VideoProcessorSetOutputBackgroundColor(PVBOXDX_DEVICE pDevice,
404 VBSVGA3dVideoProcessorId videoProcessorId,
405 BOOL ycbcr,
406 D3D11_1DDI_VIDEO_COLOR const &color);
407int vgpu10VideoProcessorSetOutputColorSpace(PVBOXDX_DEVICE pDevice,
408 VBSVGA3dVideoProcessorId videoProcessorId,
409 VBSVGA3dVideoProcessorColorSpace const &colorSpace);
410int vgpu10VideoProcessorSetOutputAlphaFillMode(PVBOXDX_DEVICE pDevice,
411 VBSVGA3dVideoProcessorId videoProcessorId,
412 VBSVGA3dVideoProcessorAlphaFillMode fillMode,
413 uint32 streamIndex);
414int vgpu10VideoProcessorSetOutputConstriction(PVBOXDX_DEVICE pDevice,
415 VBSVGA3dVideoProcessorId videoProcessorId,
416 BOOL enabled,
417 SIZE constrictonSize);
418int vgpu10VideoProcessorSetOutputStereoMode(PVBOXDX_DEVICE pDevice,
419 VBSVGA3dVideoProcessorId videoProcessorId,
420 BOOL enable);
421int vgpu10VideoProcessorSetStreamFrameFormat(PVBOXDX_DEVICE pDevice,
422 VBSVGA3dVideoProcessorId videoProcessorId,
423 uint32 streamIndex,
424 VBSVGA3dVideoFrameFormat format);
425int vgpu10VideoProcessorSetStreamColorSpace(PVBOXDX_DEVICE pDevice,
426 VBSVGA3dVideoProcessorId videoProcessorId,
427 uint32 streamIndex,
428 VBSVGA3dVideoProcessorColorSpace const &colorSpace);
429int vgpu10VideoProcessorSetStreamOutputRate(PVBOXDX_DEVICE pDevice,
430 VBSVGA3dVideoProcessorId videoProcessorId,
431 uint32 streamIndex,
432 VBSVGA3dVideoProcessorOutputRate outputRate,
433 uint8 repeatFrame,
434 SVGA3dFraction64 const &customRate);
435int vgpu10VideoProcessorSetStreamSourceRect(PVBOXDX_DEVICE pDevice,
436 VBSVGA3dVideoProcessorId videoProcessorId,
437 uint32 streamIndex,
438 BOOL enable,
439 RECT const *pSourceRect);
440int vgpu10VideoProcessorSetStreamDestRect(PVBOXDX_DEVICE pDevice,
441 VBSVGA3dVideoProcessorId videoProcessorId,
442 uint32 streamIndex,
443 BOOL enable,
444 RECT const *pDestRect);
445int vgpu10VideoProcessorSetStreamAlpha(PVBOXDX_DEVICE pDevice,
446 VBSVGA3dVideoProcessorId videoProcessorId,
447 uint32 streamIndex,
448 BOOL enable,
449 float alpha);
450int vgpu10VideoProcessorSetStreamPalette(PVBOXDX_DEVICE pDevice,
451 VBSVGA3dVideoProcessorId videoProcessorId,
452 uint32 streamIndex,
453 UINT Count,
454 UINT const *pEntries);
455int vgpu10VideoProcessorSetStreamPixelAspectRatio(PVBOXDX_DEVICE pDevice,
456 VBSVGA3dVideoProcessorId videoProcessorId,
457 uint32 streamIndex,
458 BOOL enable,
459 SVGA3dFraction64 const &sourceRatio,
460 SVGA3dFraction64 const &destRatio);
461int vgpu10VideoProcessorSetStreamLumaKey(PVBOXDX_DEVICE pDevice,
462 VBSVGA3dVideoProcessorId videoProcessorId,
463 uint32 streamIndex,
464 BOOL enable,
465 float lower,
466 float upper);
467int vgpu10VideoProcessorSetStreamStereoFormat(PVBOXDX_DEVICE pDevice,
468 VBSVGA3dVideoProcessorId videoProcessorId,
469 uint32 streamIndex,
470 BOOL enable,
471 VBSVGA3dVideoProcessorStereoFormat stereoFormat,
472 uint8 leftViewFrame0,
473 uint8 baseViewFrame0,
474 VBSVGA3dVideoProcessorStereoFlipMode flipMode,
475 int monoOffset);
476int vgpu10VideoProcessorSetStreamAutoProcessingMode(PVBOXDX_DEVICE pDevice,
477 VBSVGA3dVideoProcessorId videoProcessorId,
478 uint32 streamIndex,
479 BOOL enable);
480int vgpu10VideoProcessorSetStreamFilter(PVBOXDX_DEVICE pDevice,
481 VBSVGA3dVideoProcessorId videoProcessorId,
482 uint32 streamIndex,
483 BOOL enable,
484 VBSVGA3dVideoProcessorFilter filter,
485 int level);
486int vgpu10VideoProcessorSetStreamRotation(PVBOXDX_DEVICE pDevice,
487 VBSVGA3dVideoProcessorId videoProcessorId,
488 uint32 streamIndex,
489 BOOL enable,
490 VBSVGA3dVideoProcessorRotation rotation);
491int vgpu10GetVideoCapability(PVBOXDX_DEVICE pDevice,
492 VBSVGA3dVideoCapability capability,
493 D3DKMT_HANDLE hAllocation,
494 uint32 offsetInBytes,
495 uint32 sizeInBytes,
496 uint64 fenceValue);
497int vgpu10ClearView(PVBOXDX_DEVICE pDevice,
498 SVGAFifo3dCmdId cmdId,
499 uint32_t viewId,
500 const float color[4],
501 const D3D10_DDI_RECT *paRects,
502 uint32_t cRects);
503
504#endif /* !GA_INCLUDED_SRC_WINNT_Graphics_Video_disp_wddm_dx_VBoxDXCmd_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use