CN113835651A - Data display processing method and device, computer equipment and storage medium - Google Patents

Data display processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113835651A
CN113835651A CN202010586726.3A CN202010586726A CN113835651A CN 113835651 A CN113835651 A CN 113835651A CN 202010586726 A CN202010586726 A CN 202010586726A CN 113835651 A CN113835651 A CN 113835651A
Authority
CN
China
Prior art keywords
resolution
display
current
target
frame buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010586726.3A
Other languages
Chinese (zh)
Inventor
肖小欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202010586726.3A priority Critical patent/CN113835651A/en
Priority to PCT/CN2021/101513 priority patent/WO2021259249A1/en
Publication of CN113835651A publication Critical patent/CN113835651A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0117Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application relates to a data display processing method, a data display processing device, computer equipment and a storage medium. The method comprises the following steps: acquiring a resolution switching request, wherein the resolution switching request carries the current resolution and the target resolution of the display equipment; adjusting a frame buffer area corresponding to the display equipment, a current display area of the display equipment and current screen density according to the resolution switching request to obtain an adjusted frame buffer area and adjusted display equipment; switching the current resolution to the target resolution according to the resolution switching request; in the process of switching the resolution, adjusting the display data in the adjusted frame buffer area according to the target resolution; and after the resolution switching is finished, displaying the adjusted display data in the display equipment after the resolution switching. The method can reduce the service cost of the terminal equipment.

Description

Data display processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data display processing method and apparatus, a computer device, and a storage medium.
Background
With the development of the internet, the processing capability and the storage capability of the terminal have also been rapidly developed. More and more people carry out diversified activities such as entertainment, reading, working and the like through terminals. In order to meet the diversified demands of users for the terminal display service, the resolution of the display device needs to be adjusted. At present, the screen of a part of terminals can support multiple resolutions, and can be switched between the resolutions. In the conventional mode, switching among a plurality of resolutions is realized by replacing corresponding hardware in the terminal, so that the service cost of the terminal equipment is higher. Therefore, how to reduce the service cost of the terminal device becomes a technical problem to be solved at present.
Disclosure of Invention
In view of the above, it is desirable to provide a data display processing method, apparatus, computer device, and storage medium capable of reducing the service cost of a terminal device in response to the above technical problem.
A method of data display processing, the method comprising:
acquiring a resolution switching request, wherein the resolution switching request carries the current resolution and the target resolution of the display equipment;
adjusting a frame buffer area corresponding to the display equipment, a current display area of the display equipment and current screen density according to the resolution switching request to obtain an adjusted frame buffer area and adjusted display equipment;
switching the current resolution to the target resolution according to the resolution switching request;
in the process of switching the resolution, adjusting the display data in the adjusted frame buffer area according to the target resolution;
and after the resolution switching is finished, displaying the adjusted display data in the display equipment after the resolution switching.
In one embodiment, the adjusting the frame buffer of the display device, the current display area of the display device, and the current screen density according to the resolution switching request includes:
calling a first interface and a second interface according to the resolution switching request;
adjusting a frame buffer of the display device according to the target resolution through the first interface;
and adjusting the current display area and the current screen density of the display equipment according to the target resolution and the current resolution through the second interface.
In one embodiment, the adjusting, by the first interface, a frame buffer of the display device according to the target resolution includes:
acquiring the resolution of a frame buffer area of the display equipment through the first interface;
and adjusting the resolution of the frame buffer to the target resolution.
In one embodiment, the adjusting, through the second interface, the current display area and the current screen density of the display device according to the target resolution includes:
determining a target display area size of the display device according to the target resolution through the second interface;
and adjusting the current display area according to the size of the target display area, and adjusting the current screen density of the display equipment to the target screen density corresponding to the target resolution.
In one embodiment, the method further comprises:
in the resolution switching process, calling a transition layer through a resolution switching request, and covering the zooming process of the display data through the transition layer;
and when the resolution switching is completed, hiding the transition layer.
In one embodiment, before the obtaining the resolution switching request, the method further includes:
traversing display configuration information of the display device;
acquiring a plurality of resolutions corresponding to the display equipment in the display configuration information;
determining a current resolution of the display device among a plurality of resolutions according to preset configuration information.
In one embodiment, the method further comprises:
receiving a default setting operation of the target resolution;
and when the terminal is restarted after being closed, recognizing the default setting operation, and taking the target resolution as the default resolution of the display equipment according to the default setting operation.
A data display processing apparatus, the apparatus comprising:
the device comprises an acquisition module, a resolution switching module and a display module, wherein the acquisition module is used for acquiring a resolution switching request which carries the current resolution and the target resolution of the display equipment;
the first adjusting module is used for adjusting a frame buffer area corresponding to the display equipment, a current display area of the display equipment and the current screen density according to the resolution switching request to obtain an adjusted frame buffer area and adjusted display equipment;
a switching module, configured to switch the current resolution to the target resolution according to the resolution switching request;
a second adjusting module, configured to adjust, according to the target resolution, the display data in the adjusted frame buffer area in the resolution switching process;
and the display module is used for displaying the adjusted display data in the display equipment after the resolution is switched.
A computer device comprising a memory and a processor, the memory storing a computer program operable on the processor, the processor implementing the steps in the various method embodiments described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the respective method embodiment described above.
According to the data display processing method, the data display processing device, the computer equipment and the storage medium, the frame buffer area corresponding to the display equipment, the current display area size of the display equipment and the current screen density are adjusted according to the resolution switching request, and the adjusted frame buffer area and the adjusted display equipment are obtained. And switching the current resolution to the target resolution according to the resolution switching request. And in the resolution switching process, adjusting the display data in the adjusted frame buffer area according to the target resolution. And after the resolution switching is finished, displaying the adjusted display data in the display equipment after the resolution switching. When the resolution ratio is switched, hardware does not need to be replaced, and the subsequent resolution ratio switching can be realized only by adjusting a frame buffer area corresponding to the display equipment, the current display area of the display equipment and the current screen density, so that the display data is adjusted to be displayed according to the target resolution ratio in the resolution ratio switching process. The service cost of the terminal can be effectively reduced.
Drawings
FIG. 1 is a diagram of an exemplary data display processing method;
FIG. 2 is a flow diagram illustrating a data display processing method according to one embodiment;
FIG. 3 is a flowchart illustrating the steps performed to adjust the frame buffer of the display device, the current display area of the display device, and the current screen density according to the resolution switch request in one embodiment;
FIG. 4 is a block diagram showing the structure of a data display processing apparatus according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data display processing method provided by the application can be applied to the application environment shown in fig. 1. The terminal 102 includes a display device 104, and the terminal 102 obtains a resolution switching request, where the resolution switching request carries a current resolution and a target resolution of the display device. The terminal 102 adjusts a frame buffer corresponding to the display device, a current display area size of the display device 104, and a current screen density according to the resolution switching request, so as to obtain an adjusted frame buffer and an adjusted display device 104. The terminal 102 switches the current resolution to the target resolution according to the resolution switching request. And the terminal 102 adjusts the display data in the adjusted frame buffer according to the target resolution in the resolution switching process. After the resolution switching is completed, the terminal 102 displays the adjusted display data on the display device 104 after the resolution switching. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers. The display device 104 may be a display screen on the terminal 102 on which content may be displayed.
In one embodiment, as shown in fig. 2, a data display processing method is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
step 202, a resolution switching request is obtained, where the resolution switching request carries a current resolution and a target resolution of the display device.
When the terminal is started, the display configuration information of the registered display equipment is traversed. The display configuration information may include information such as screen width, screen length, screen density, resolution, and the like. Whether the terminal supports a plurality of resolutions is identified in the display configuration information of the registered display device. The resolution is the number of pixel points in the horizontal and vertical directions, and the unit is px, and 1px represents 1 pixel point. The resolution may be expressed by the product of the number of vertical pixels and the number of horizontal pixels. For example 1920px 1080 px. When the terminal supports a plurality of resolutions, it is possible to switch between the resolutions. For example, the terminal may support two resolutions, QHD + (Quarter of Quarter High Definition, FHD 1920 x 1080) and FHD + (Full High Definition, Full 1920 x 1080). After the terminal is started, the current resolution can be determined in a plurality of resolutions according to preset configuration information. The terminal can display the data to be displayed in the display device according to the current resolution. When the terminal acquires the resolution switching request, the resolution switching request is analyzed, and the current resolution and the target resolution of the display device are obtained. The target resolution is the resolution that needs to be switched. The target resolution may be greater than the current resolution or less than the current resolution. For example, when the terminal is low in power or needs to save power, the target resolution may be smaller than the current resolution to save power consumption. As another example, when the terminal needs to improve the definition of the screen, the target resolution may be greater than the current resolution.
And step 204, adjusting the frame buffer corresponding to the display device, the current display area size of the display device and the current screen density according to the resolution switching request to obtain the adjusted frame buffer and the adjusted display device.
And the terminal calls a preset thread according to the resolution switching request. The default thread may be a surfaceflinger. And adjusting a frame buffer (frame buffer) corresponding to the display device through a preset thread. Meanwhile, the current display area and the current screen density of the display device are adjusted through a preset thread, and therefore an adjusted frame buffer area and an adjusted display device are obtained. One display device may correspond to one frame buffer. The frame buffer is a two-dimensional array of pixels, located in kernel space. Each storage unit in the frame buffer may correspond to a pixel on a screen of the display device, and the data to be displayed in the entire frame buffer may correspond to a frame of image, i.e., a screen image displayed on the display device. The frame buffer is used for storing data to be displayed and providing data to be displayed to the display device. The current display area may be a display scale of the original data to be displayed corresponding to an area where the displayed data is located. Screen density refers to the number of pixels per inch.
And step 206, switching the current resolution to the target resolution according to the resolution switching request.
And step 208, in the resolution switching process, adjusting the display data in the adjusted frame buffer according to the target resolution.
And step 210, after the resolution switching is completed, displaying the adjusted display data in the display device after the resolution switching.
After the terminal adjusts the frame buffer corresponding to the display device, the current display area size of the display device and the current screen density, resolution switching can be performed according to the resolution switching request, and the terminal switches the current resolution to the target resolution.
In the process of switching the resolution, the terminal needs to adjust the display data in the adjusted frame buffer according to the target resolution because the resolution is changed. Specifically, the terminal calculates a ratio between the target resolution and the current resolution as a scaling parameter. And correspondingly zooming the display data in the adjusted frame buffer area according to the zooming parameters.
And after the resolution switching is finished, rendering the zoomed display data in the switched display equipment again to obtain a rendered interface.
In this embodiment, the frame buffer corresponding to the display device, the current display area size of the display device, and the current screen density are adjusted according to the resolution switching request, so as to obtain the adjusted frame buffer and the adjusted display device. And switching the current resolution to the target resolution according to the resolution switching request. And in the resolution switching process, adjusting the display data in the adjusted frame buffer area according to the target resolution. And after the resolution switching is finished, displaying the adjusted display data in the display equipment after the resolution switching. When the resolution ratio is switched, hardware does not need to be replaced, and the subsequent resolution ratio switching can be realized only by adjusting a frame buffer area corresponding to the display equipment, the current display area of the display equipment and the current screen density, so that the display data is adjusted to be displayed according to the target resolution ratio in the resolution ratio switching process. The service cost of the terminal can be effectively reduced.
In one embodiment, as shown in fig. 3, the step of adjusting the frame buffer of the display device, the current display area of the display device and the current screen density according to the resolution switching request comprises:
step 302, a first interface and a second interface are called according to the resolution switching request.
And step 304, adjusting a frame buffer of the display device according to the target resolution through the first interface.
And step 306, adjusting the current display area and the current screen density of the display device through the second interface according to the target resolution and the current resolution.
And the terminal calls a preset thread according to the resolution switching request. The default thread may be a surfaceflinger. And calling the first interface and the second interface in parallel through a preset thread. For example, the first interface may be a HWComposer interface. And adjusting a frame buffer area of the display device through the first interface. Specifically, the resolution of the frame buffer area is adjusted through the first interface, and the resolution of the frame buffer area is adjusted to the target resolution. The number of pixel points of display data in the display equipment is limited by the frame buffer, so that the number of the pixel points can be used as the resolution of the frame buffer, and the subsequent resolution switching is facilitated. And the terminal adjusts the current display area and the current screen density of the display equipment through the second interface to obtain the size of the display area and the screen density corresponding to the target resolution.
In this embodiment, the first interface and the second interface are called in parallel according to the resolution switching request, so that the frame buffer of the display device can be adjusted at the same time, and the current display area and the current screen density of the display device can be adjusted. The switching efficiency of the resolution ratio is improved.
In one embodiment, adjusting a frame buffer of a display device according to a target resolution through a first interface comprises: acquiring the resolution of a frame buffer area of the display equipment through a first interface; the resolution of the frame buffer is adjusted to the target resolution.
And the terminal adjusts the frame buffer area through the first interface. The size of the frame buffer may indicate the storage resolution. The number of pixel points of display data in the display equipment is limited by the frame buffer, so that the number of the pixel points can be used as the resolution of the frame buffer, and the subsequent resolution switching is facilitated.
The frame buffer is adjusted through the first interface, i.e. the resolution of the frame buffer is adjusted. And acquiring the resolution of a frame buffer area of the display device through the first interface, and switching the resolution to the target resolution. Specifically, the historical data stored in the frame buffer area is emptied through the first interface, the resolution of the emptied frame buffer area is switched according to the target resolution, and the resource identifier of the frame buffer area after resolution switching is updated, so that the frame buffer area is identified or modified through the resource identifier in the following process.
In this embodiment, by switching the resolution of the frame buffer, the data to be displayed can be displayed in a point-to-point manner during the resolution switching process.
In one embodiment, adjusting, via the second interface, the current display area and the current screen density of the display device according to the target resolution includes: determining the size of a target display area of the display equipment according to the target resolution through a second interface; and adjusting the current display area according to the size of the target display area, and adjusting the current screen density of the display equipment to the target screen density corresponding to the target resolution.
Due to the switching of the resolution, the display area of the display device may change accordingly. Therefore, the size of the display area needs to be configured according to the target resolution to meet the target resolution, so as to ensure normal display of the display data. And acquiring the size of the current display area of the display equipment under the current resolution through the second interface, and determining the size of the target display area of the display equipment according to the target resolution. And calculating the ratio of the size of the target display area to the size of the current display area, taking the ratio as a scaling ratio, and scaling the current display area according to the scaling ratio.
The screen density refers to the number of pixels per inch in dpi. Screen density is related to screen size and resolution. The resolution may be expressed by the product of the number of vertical pixels and the number of horizontal pixels. The screen density is calculated by the formula:
Figure BDA0002554925880000091
according to the calculation formula, when the screen size is unchanged, the higher the resolution is, the higher the screen density is; when the resolution is unchanged, the smaller the screen size, the greater the screen density.
The terminal can acquire the current resolution and the current screen density through the second interface, and when the size of the screen is fixed, the target screen density corresponding to the target resolution can be calculated according to the proportional relation between the resolution and the screen density. And then switching the target screen density to the current screen density.
In this embodiment, the size of the target display area of the display device is determined according to the target resolution through the second interface, so that the current display area is adjusted according to the size of the target display area, and the current screen density of the display device is adjusted to the target screen density corresponding to the target resolution. The size of the display area and the screen density can be ensured to be adaptive to the target resolution.
In one embodiment, the method further comprises: in the resolution switching process, calling a transition layer through a resolution switching request, and covering the zooming process of the display data through the transition layer; and when the resolution switching is completed, hiding the transition layer.
In the process that the current resolution is switched to the target resolution by the terminal, a screen display interface of the display device is in a zooming state. To mask this scaling state, the transition layer may be invoked by a resolution switch request. The transition layer may be a scenschotsurface. The transition layer is overlaid on a zoom layer of the display data. When the resolution is switched from high resolution to low resolution, the transition layer can be enlarged; when the resolution is switched from low resolution to high resolution, the transition layer can be reduced. Since the transition layer is scaled up or down in the GPU composition. Therefore, the GPU composition needs to be run all the time during the resolution switching. And when the resolution switching is finished, hiding the transition layer, namely finishing the calling of the transition layer.
In this embodiment, the transition layer is used to cover the scaling process of the display data, so as to optimize the switching effect of the resolution, and enable the user to switch the resolution without being aware of the switching effect.
In one embodiment, before acquiring the resolution switching request, the method further includes: traversing and displaying configuration information; acquiring a plurality of resolutions corresponding to the display equipment in the display configuration information; determining a current resolution of the display device among the plurality of resolutions according to preset configuration information.
When the terminal is started, i.e. powered on, a class is created that displays management services. The global display state is handled by the display management service. The terminal registers all the display devices. The display devices may include a main display device and a virtual display device. For example, the virtual display device may be a device in which the terminal projects display data onto a television screen through a network, and the television screen may be a virtual display device. The terminal traverses the display configuration information of each display device. The display configuration information may include information such as screen width, screen length, screen density, resolution, and the like. And determining a plurality of resolutions corresponding to the display equipment in the display configuration information. And then determining the current resolution of the display device in the plurality of resolutions according to the preset configuration information. The preset configuration information may include a default resolution preset by a system administrator. And the terminal displays data on the display equipment according to the default resolution. When a resolution obtaining request is obtained, the default resolution is used as the current resolution, and the resolution obtaining request also carries the selected target resolution.
In the process of acquiring the resolution, the terminal may perform processing according to the following logical relationship. Specifically, when the terminal is started, i.e., turned on, it creates (new) a class of displaymanager service () and processes the message in the register defaultdisplayadapters ().
Then, the terminal may register all display devices in the register defaultdisplayadapters (), obtain display configuration information, and provide corresponding display adapters for the registered display devices through the local displayadapters, so as to manage the display devices through the display adapters. The display device may include a main display device and a virtual display device. For example, the virtual display device may be a device in which the terminal projects display data onto a television screen through a network, and the television screen may be a virtual display device.
The terminal sends getDisplayConfigs () with getActiveConfig () to SurfaceControl through LocalDisplayAdapters. Therefore, a display configuration information acquisition request SurfaceFliner is sent through SurfaceControl, display configuration information is acquired in the SurfaceFliner, and then a plurality of resolutions and refresh rates corresponding to the display equipment are determined in the display configuration information. For example, when the display device supports two resolutions of QHD + (Quarter High Definition, FHD 1920 × 1080) and FHD + (Full High Definition, Full High Definition 1920 × 1080) and two refresh rates of 120fps and 60fps, the display configuration policy (DisplayConfig) of the display device acquired by the terminal may include: QHD +/120fps, QHD +/60fps, FHD +/120fps, and FHD +/60 fps. The display configuration policy (DisplayConfig) may further include information such as a screen density (density), a screen width (width), a screen height (height), the number of pixel dots (xdpi) held one inch in the horizontal direction, the number of pixel dots (ydpi) held one inch in the vertical direction, and the like.
In this embodiment, the resolution is obtained by traversing the display configuration information of the display device, and the current resolution is determined according to the configuration information, so as to implement automatic configuration of the current resolution.
In one embodiment, the method further comprises: receiving a default setting operation of a target resolution; and after the terminal is closed, when the terminal is restarted, identifying default setting operation, and displaying the default resolution of the target resolution on the equipment according to the default setting operation.
The terminal can receive the default setting operation of the target resolution, set the switched target resolution as the default resolution and store the target resolution. And after the terminal is closed and is started again, the terminal can identify the default setting operation and analyze the default setting operation to obtain the target resolution. And then the target resolution is used as the default resolution of the display device.
In this embodiment, by receiving the default setting operation of the target resolution, when the terminal is turned off and then is turned on again, the default setting operation may be recognized, and the default resolution of the target resolution is displayed according to the default setting operation. The resolution ratio can be automatically set, the resolution ratio does not need to be frequently switched, and the service efficiency of the terminal is improved.
It should be understood that, although the steps in the flowcharts of fig. 2 to 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a data display processing apparatus including: an obtaining module 402, a first adjusting module 404, a switching module 406, a second adjusting module 408, and a display module 410, wherein:
an obtaining module 402, configured to obtain a resolution switching request, where the resolution switching request carries a current resolution and a target resolution of a display device.
A first adjusting module 404, configured to adjust a frame buffer corresponding to the display device, a current display area of the display device, and a current screen density according to the resolution switching request, so as to obtain an adjusted frame buffer and an adjusted display device.
A switching module 406, configured to switch the current resolution to the target resolution according to the resolution switching request.
And a second adjusting module 408, configured to adjust the display data in the adjusted frame buffer according to the target resolution in the resolution switching process.
And a display module 410, configured to display the adjusted display data in the display device after the resolution is switched.
In one embodiment, the switching module 406 is further configured to call the first interface and the second interface according to the resolution switching request; adjusting a frame buffer area of the display device through a first interface according to the target resolution; and adjusting the current display area and the current screen density of the display equipment through a second interface according to the target resolution and the current resolution.
In one embodiment, the switching module 406 is further configured to obtain a resolution of a frame buffer of the display device through the first interface; the resolution of the frame buffer is adjusted to the target resolution.
In one embodiment, the switching module 406 is further configured to determine a target display area size of the display device according to the target resolution through the second interface; and adjusting the current display area according to the size of the target display area, and adjusting the current screen density of the display equipment to the target screen density corresponding to the target resolution.
In one embodiment, the above apparatus further comprises: the covering module is used for calling the transition layer through the resolution switching request in the resolution switching process and covering the zooming process of the display data through the transition layer; and when the resolution switching is completed, hiding the transition layer.
In one embodiment, the above apparatus further comprises: the determining module is used for traversing the display configuration information of the display equipment; acquiring a plurality of resolutions corresponding to the display equipment in the display configuration information; determining a current resolution of the display device among the plurality of resolutions according to preset configuration information.
In one embodiment, the above apparatus further comprises: the identification module is used for receiving default setting operation of the target resolution; and when the terminal is turned off and is started again, recognizing default setting operation, and taking the target resolution as the default resolution of the display equipment according to the default setting operation.
For specific limitations of the data display processing device, reference may be made to the above limitations of the data display processing method, which are not described herein again. The modules in the data display processing device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a data display processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring a resolution switching request, wherein the resolution switching request carries the current resolution and the target resolution of the display equipment; adjusting a frame buffer area corresponding to the display equipment, the size of a current display area of the display equipment and the current screen density according to the resolution switching request to obtain an adjusted frame buffer area and adjusted display equipment; switching the current resolution to a target resolution according to the resolution switching request; in the resolution switching process, adjusting the display data in the adjusted frame buffer area according to the target resolution; and after the resolution switching is finished, displaying the adjusted display data in the display equipment after the resolution switching.
In one embodiment, the processor, when executing the computer program, further performs the steps of: calling a first interface and a second interface according to the resolution switching request; adjusting a frame buffer area of the display device through a first interface according to the target resolution; and adjusting the current display area and the current screen density of the display device through the second interface according to the target resolution and the current resolution.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring the resolution of a frame buffer area of the display equipment through a first interface; the resolution of the frame buffer is adjusted to the target resolution.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the size of a target display area of the display equipment according to the target resolution through a second interface; and adjusting the current display area according to the size of the target display area, and adjusting the current screen density of the display equipment to the target screen density corresponding to the target resolution.
In one embodiment, the processor, when executing the computer program, further performs the steps of: in the resolution switching process, calling a transition layer through a resolution switching request, and covering the zooming process of the display data through the transition layer; and when the resolution switching is completed, hiding the transition layer.
In one embodiment, the processor, when executing the computer program, further performs the steps of: traversing and displaying configuration information; acquiring a plurality of resolutions corresponding to the display equipment in the display configuration information; determining a current resolution of the display device among the plurality of resolutions according to preset configuration information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a default setting operation of a target resolution; and after the terminal is closed, when the terminal is restarted, identifying default setting operation, and displaying the default resolution of the target resolution on the equipment according to the default setting operation.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring a resolution switching request, wherein the resolution switching request carries the current resolution and the target resolution of the display equipment; adjusting a frame buffer area corresponding to the display equipment, the size of a current display area of the display equipment and the current screen density according to the resolution switching request to obtain an adjusted frame buffer area and adjusted display equipment; switching the current resolution to a target resolution according to the resolution switching request; in the resolution switching process, adjusting the display data in the adjusted frame buffer area according to the target resolution; and after the resolution switching is finished, displaying the adjusted display data in the display equipment after the resolution switching.
In one embodiment, the computer program when executed by the processor further performs the steps of: calling a first interface and a second interface according to the resolution switching request; adjusting a frame buffer area of the display device through a first interface according to the target resolution; and adjusting the current display area and the current screen density of the display device through the second interface according to the target resolution and the current resolution.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the resolution of a frame buffer area of the display equipment through a first interface; the resolution of the frame buffer is adjusted to the target resolution.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the size of a target display area of the display equipment according to the target resolution through a second interface; and adjusting the current display area according to the size of the target display area, and adjusting the current screen density of the display equipment to the target screen density corresponding to the target resolution.
In one embodiment, the computer program when executed by the processor further performs the steps of: in the resolution switching process, calling a transition layer through a resolution switching request, and covering the zooming process of the display data through the transition layer; and when the resolution switching is completed, hiding the transition layer.
In one embodiment, the computer program when executed by the processor further performs the steps of: traversing and displaying configuration information; acquiring a plurality of resolutions corresponding to the display equipment in the display configuration information; determining a current resolution of the display device among the plurality of resolutions according to preset configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a default setting operation of a target resolution; and after the terminal is closed, when the terminal is restarted, identifying default setting operation, and displaying the default resolution of the target resolution on the equipment according to the default setting operation.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by requesting related hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for processing data display, the method comprising:
acquiring a resolution switching request, wherein the resolution switching request carries the current resolution and the target resolution of the display equipment;
adjusting a frame buffer area corresponding to the display equipment, a current display area of the display equipment and current screen density according to the resolution switching request to obtain an adjusted frame buffer area and adjusted display equipment;
switching the current resolution to the target resolution according to the resolution switching request;
in the process of switching the resolution, adjusting the display data in the adjusted frame buffer area according to the target resolution;
and after the resolution switching is finished, displaying the adjusted display data in the display equipment after the resolution switching.
2. The method of claim 1, wherein adjusting the frame buffer of the display device, the current display area of the display device, and the current screen density according to the resolution switch request comprises:
calling a first interface and a second interface according to the resolution switching request;
adjusting a frame buffer of the display device according to the target resolution through the first interface;
and adjusting the current display area and the current screen density of the display equipment according to the target resolution and the current resolution through the second interface.
3. The method of claim 2, wherein adjusting, via the first interface, a frame buffer of the display device according to the target resolution comprises:
acquiring the resolution of a frame buffer area of the display equipment through the first interface;
and adjusting the resolution of the frame buffer to the target resolution.
4. The method of claim 2, wherein the adjusting, via the second interface, the current display area and the current screen density of the display device according to the target resolution comprises:
determining a target display area size of the display device according to the target resolution through the second interface;
and adjusting the current display area according to the size of the target display area, and adjusting the current screen density of the display equipment to the target screen density corresponding to the target resolution.
5. The method of claim 1, further comprising:
in the resolution switching process, calling a transition layer through a resolution switching request, and covering the zooming process of the display data through the transition layer;
and when the resolution switching is completed, hiding the transition layer.
6. The method of claim 1, wherein prior to said obtaining a resolution switch request, the method further comprises:
traversing display configuration information of the display device;
acquiring a plurality of resolutions corresponding to the display equipment in the display configuration information;
determining a current resolution of the display device among a plurality of resolutions according to preset configuration information.
7. The method of any one of claims 1 to 6, further comprising:
receiving a default setting operation of the target resolution;
and when the terminal is restarted after being closed, recognizing the default setting operation, and taking the target resolution as the default resolution of the display equipment according to the default setting operation.
8. A data display processing apparatus, characterized in that the apparatus comprises:
the device comprises an acquisition module, a resolution switching module and a display module, wherein the acquisition module is used for acquiring a resolution switching request which carries the current resolution and the target resolution of the display equipment;
the first adjusting module is used for adjusting a frame buffer area corresponding to the display equipment, a current display area of the display equipment and the current screen density according to the resolution switching request to obtain an adjusted frame buffer area and adjusted display equipment;
a switching module, configured to switch the current resolution to the target resolution according to the resolution switching request;
a second adjusting module, configured to adjust, according to the target resolution, the display data in the adjusted frame buffer area in the resolution switching process;
and the display module is used for displaying the adjusted display data in the display equipment after the resolution is switched.
9. A computer device comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010586726.3A 2020-06-24 2020-06-24 Data display processing method and device, computer equipment and storage medium Pending CN113835651A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010586726.3A CN113835651A (en) 2020-06-24 2020-06-24 Data display processing method and device, computer equipment and storage medium
PCT/CN2021/101513 WO2021259249A1 (en) 2020-06-24 2021-06-22 Data display processing method and apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010586726.3A CN113835651A (en) 2020-06-24 2020-06-24 Data display processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113835651A true CN113835651A (en) 2021-12-24

Family

ID=78964418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010586726.3A Pending CN113835651A (en) 2020-06-24 2020-06-24 Data display processing method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113835651A (en)
WO (1) WO2021259249A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745567A (en) * 2022-04-11 2022-07-12 杭州雾联科技有限公司 Video display method, device, equipment and medium
CN117009016A (en) * 2023-07-12 2023-11-07 江西科骏实业有限公司 Display mode switching method, system, terminal equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955686A (en) * 2016-04-27 2016-09-21 乐视控股(北京)有限公司 Resolution switching method of Android device, and Android device
CN108664228A (en) * 2017-03-31 2018-10-16 上海中兴软件有限责任公司 A kind of method for displaying image and mobile terminal
US10523820B2 (en) * 2017-06-02 2019-12-31 Apple Inc. High-quality audio/visual conferencing
CN110166792B (en) * 2018-02-14 2021-10-22 斑马智行网络(香港)有限公司 Image display method, device, system and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745567A (en) * 2022-04-11 2022-07-12 杭州雾联科技有限公司 Video display method, device, equipment and medium
CN117009016A (en) * 2023-07-12 2023-11-07 江西科骏实业有限公司 Display mode switching method, system, terminal equipment and storage medium

Also Published As

Publication number Publication date
WO2021259249A1 (en) 2021-12-30

Similar Documents

Publication Publication Date Title
CN110377257B (en) Layer composition method and device, electronic equipment and storage medium
CN110377264B (en) Layer synthesis method, device, electronic equipment and storage medium
CN109348276B (en) video picture adjusting method and device, computer equipment and storage medium
US9996220B2 (en) Multi-zone interface switching method and device
US20220139017A1 (en) Layer composition method, electronic device, and storage medium
CN113835651A (en) Data display processing method and device, computer equipment and storage medium
CN111192352B (en) Map rendering method, map rendering device, computer equipment and storage medium
CN112019891B (en) Multimedia content display method and device, terminal and storage medium
KR20190047142A (en) Method and apparatus for setting background of ui control, and terminal
CN110704087A (en) Page generation method and device, computer equipment and storage medium
CN114998087B (en) Rendering method and device
CN111159598A (en) Image browsing method and device, computer equipment and storage medium
CN112631698A (en) Data display method and device, computer equipment and storage medium
CN114697555B (en) Image processing method, device, equipment and storage medium
CN109062525B (en) Data processing method and device of tiled display system and computer equipment
CN114332297A (en) Image drawing method and device, computer equipment and storage medium
CN109814784B (en) Picture rotation method and device, computer equipment and storage medium
CN114286003A (en) Shooting method, shooting device and electronic equipment
CN110134475B (en) Method and device for displaying interface parameter configuration, computer equipment and storage medium
CN111611035A (en) User-defined window segmentation layout method and device, computer equipment and storage medium
CN113689340A (en) Image processing method, image processing device, computer equipment and storage medium
CN114449152A (en) Focusing method and device, electronic equipment and storage medium
CN111968727A (en) Image data display method, device, computer equipment and storage medium
CN111797192A (en) GIS point data rendering method and device, computer equipment and storage medium
CN111461991B (en) Image drawing method, image drawing device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination