Method and device for capturing screen and terminal
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorChumou Guo
Life of this patent
Estimating the term…
Abstract
A method for capturing a screen includes obtaining a display device list. The display device list at least includes a physical display device and a first category of virtual display device. It is identified whether a value of a flag bit of the first category of virtual display device is a preset value. In response to the value of the flag bit of the first category of virtual display device being the preset value, a video merging result of the physical display device as the screen capturing result.
Claims17
A method for capturing screen, comprising:
- obtaining a display device list, wherein the display device list comprises a physical display device and a first category of virtual display device;
- identifying whether a value of a flag bit of the first category of virtual display device in the display device list is a preset value;
- and
- determining a video merging result of the physical display device as a screen capturing result in response to the value of the flag bit of the first category of virtual display device being the preset value, wherein the video merging result of the physical display device is directly used as the screen capturing result, so that video merging is not performed on the first category of virtual display device,
- wherein the display device list further comprises a second category of virtual display device, the method further comprising:
- identifying whether a value of a flag bit of each display device among the physical display device, the first category of virtual display device, and the second category of virtual display device included in the display device list is the preset value;
- and
- in response to the value of the flag bit of any one display device not being the preset value, performing video merging on the any one display device to generate a video merging result of the any one display device.
An electronic device, comprising:
- a processor;
- and
- a memory, configured to store instructions executable by the processor;
- wherein the processor is configured to:
- obtain a display device list, wherein the display device list comprises a physical display device and a first category of virtual display device;
- identify whether a value of a flag bit of the first category of virtual display device in the display device list is a preset value;
- and
- determine a video merging result of the physical display device as a screen capturing result in response to the value of the flag bit of the first category of virtual display device being the preset value, wherein the video merging result of the physical display device is directly used as the screen capturing result, so that video merging is not performed on the first category of virtual display device,
- wherein the display device list further comprises a second category of virtual display device, and the processor is further configured to:
- identify whether a value of a flag bit of each display device among the physical display device, the first category of virtual display device, and the second category of virtual display device included in the display device list is the preset value;
- and
- in response to the value of the flag bit of any one display device not being the preset value, perform video merging on the any one display device to generate a video merging result of the any one display device.
A non-transitory computer readable storage medium, wherein when instructions in the computer readable storage medium are executed by a processor of an electronic device, the electronic device is configured to execute a method for capturing a screen, the method comprising:
- obtaining a display device list, wherein the display device list comprises a physical display device and a first category of virtual display device;
- identifying whether a value of a flag bit of the first category of virtual display device in the display device list is a preset value;
- and
- determining a video merging result of the physical display device as a screen capturing result in response to the value of the flag bit of the first category of virtual display device being the preset value, wherein the video merging result of the physical display device is directly used as the screen capturing result, so that video merging is not performed on the first category of virtual display device,
- wherein the display device list further comprises a second category of virtual display device, the method further comprising:
- identifying whether a value of a flag bit of each display device among the physical display device, the first category of virtual display device, and the second category of virtual display device included in the display device list is the preset value;
- and
- in response to the value of the flag bit of any one display device not being the preset value, performing video merging on the any one display device to generate a video merging result of the any one display device.
Dependencies are inferred from the claim text.