---
title: resolution
description: "抓图分辨率。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2530/armnative15/kunpengcpsvideo_16_0030.html
sourcePath: /source/zh/kunpengboostkithistory/2530/armnative15/kunpengcpsvideo_16_0030.html
indexId: 488e107f15f62d15e2288035c8288c4ab5f700572cdbacb3f07a9f2e68be904879
---
# resolution

#### 变量说明

抓图分辨率。


#### 变量数据定义

```
struct FrameSize {
    uint32_t width = 720;               // 720: 默认720P
    uint32_t height = 1280;             // 1280: 默认720P
    uint32_t widthAligned = 720;        // 720: 默认不做对齐
    uint32_t heightAligned = 1280;      // 1280: 默认不做对齐
} __attribute__((packed));
```


#### 约束说明

width和height的取值范围也支持互换。

| 对应属性字段名称 | 字段描述 | 取值范围 | 默认值 |
| --- | --- | --- | --- |
| width | 自适应分辨率宽度（必须是8的倍数）。 | 360~2160 | 720 |
| height | 自适应分辨率高度（必须是8的倍数）。 | 360~3840 | 1280 |
| widthAligned | 对齐后分辨率宽度（暂不支持配置）。 | 360~2160 | 720 |
| heightAligned | 对齐后分辨率高度（暂不支持配置）。 | 360~3840 | 1280 |


在启用自适应分辨率功能时，改变视频输出分辨率（与上次启动时配置不同）时，会改变AOSP系统和应用的渲染分辨率，可能会导致部分应用出现兼容性问题或渲染问题。一般此类问题可以通过重新启动应用解决，因此建议在修改分辨率前返回桌面，同时清空后台应用，以提升用户使用体验。
