我要评分
获取效率
正确性
完整性
易理解

resolution

Variable Description

Snapshot resolution.

Variable Data Definition

struct FrameSize {
    uint32_t width = 720;               // 720 (defaults to 720P)
    uint32_t height = 1280;             // 1280 (defaults to 720P)
    uint32_t widthAligned = 720;        // 720 (not aligned by default)
    uint32_t heightAligned = 1280;      // 1280 (not aligned by default)
} __attribute__((packed));

Restrictions

The value ranges of width and height can be exchanged.

Property Field Name

Description

Value Range

Default Value

width

Width of the adaptive resolution. The value must be a multiple of 8.

360 to 1440

720

height

Height of the adaptive resolution. The value must be a multiple of 8.

360 to 3200

1280

widthAligned

Aligned width of the resolution (not configurable currently).

360 to 1440

720

heightAligned

Aligned height of the resolution (not configurable currently).

360 to 3200

1280

When adaptive resolution is enabled, after you change the video output resolution (to a resolution different from the configuration at the last startup), the rendering resolution of the AOSP system and apps is changed. In this case, a compatibility issue or rendering problem may occur in some apps. Generally, this problem can be solved by restarting the app. It is recommended that you return to the home screen and clear background apps before changing the resolution.