Rate This Document
Findability
Accuracy
Completeness
Readability

resolution

Variable Description

Snapshot resolution.

Variable Data Definition

1
2
3
4
5
6
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~2160

720

height

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

360~3840

1280

widthAligned

Aligned width of the resolution (not configurable currently).

360~2160

720

heightAligned

Aligned height of the resolution (not configurable currently).

360~3840

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.