> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameStreamingVideoFlags

> XGameStreamingVideoFlags

# XGameStreamingVideoFlags

指定支持的与视频相关的功能类型。

## 语法

```cpp theme={null}
enum class XGameStreamingVideoFlags : uint32_t
{
    None = 0x0,
    SupportsCustomAspectRatio = 0x1,
    SupportsPresentScaling = 0x2
}
```

## 常量

| 常量 | 说明 |
| - | - |
| None | 无支持的功能。 |
| SupportsCustomAspectRatio | 客户端支持自定义纵横比。如果为 false，则客户端仅支持标准 16:9 分辨率。 |
| SupportsPresentScaling | 如果 DirectCapture 支持使用 `D3D12XBOX_PRESENT_PLANE_PARAMETERS.pSrcViewRects` 和 `D3D12XBOX_PRESENT_PLANE_PARAMETERS.pDestPlacementBase` 来缩放视频参数，则为 True。如果为 false，请确保呈现分辨率与传递给 XGameStreamingSetResolution 的分辨率匹配。 |

## 备注

此枚举用于指示支持哪些与视频相关的功能。

## 要求

**标头：** XGameStreaming.h

**支持的平台**：Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[XGameStreaming](https://docs.xbox.com/zh-CN/reference/system/xgamestreaming/xgamestreaming_members.md)\
[XGameStreamingDisplayDetails](https://docs.xbox.com/zh-CN/reference/system/xgamestreaming/structs/xgamestreamingdisplaydetails.md)\
[XGameStreamingGetDisplayDetails](https://docs.xbox.com/zh-CN/reference/system/xgamestreaming/functions/xgamestreaminggetdisplaydetails.md)


## Related topics

- [XGameStreamingDisplayDetails](https://docs.xbox.com/zh-CN/reference/system/xgamestreaming/structs/xgamestreamingdisplaydetails.md)
- [XGameStreaming（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xgamestreaming/xgamestreaming_members.md)
- [D3D12_COMMAND_LIST_SUPPORT_FLAGS](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/enums/d3d12_command_list_support_flags_public.md)
- [DirectCapture 概述](https://docs.xbox.com/zh-CN/build/core-features/common/game-streaming/game-streaming-directcapture-overview.md)
- [在 PIX 中进行游戏可持续性测试](https://docs.xbox.com/zh-CN/build/game-principles/sustainability/sustainability-pix-guide.md)
