CN112114919B - Screen rotation display optimization method and device - Google Patents

Screen rotation display optimization method and device Download PDF

Info

Publication number
CN112114919B
CN112114919B CN202010958862.0A CN202010958862A CN112114919B CN 112114919 B CN112114919 B CN 112114919B CN 202010958862 A CN202010958862 A CN 202010958862A CN 112114919 B CN112114919 B CN 112114919B
Authority
CN
China
Prior art keywords
screen
resource
display
current
displayed
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.)
Active
Application number
CN202010958862.0A
Other languages
Chinese (zh)
Other versions
CN112114919A (en
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010958862.0A priority Critical patent/CN112114919B/en
Publication of CN112114919A publication Critical patent/CN112114919A/en
Application granted granted Critical
Publication of CN112114919B publication Critical patent/CN112114919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a method and a device for optimizing screen rotation display, wherein the method for optimizing the screen rotation display comprises the following steps: acquiring a current screen display state of a target display screen and a resource code corresponding to a current resource to be displayed; and selecting a target display resource corresponding to the current screen display state from a preset coding resource database for display according to the current screen display state and the resource code. By implementing the invention, the display direction pre-transposition processing is carried out on the display resources in advance, the imaging coordinates of the resources are adjusted according to the target display effect, and the default mode is directly used for outputting and displaying, so that the processing step of rotating and outputting the original picture by using the function of the graphic processing library is saved, the time delay brought by the CPU operation time in the processing step is reduced, and the direct and fast refreshing display effect is achieved.

Description

Screen rotation display optimization method and device
Technical Field
The invention relates to the technical field of screen display, in particular to a method and a device for optimizing screen rotation display.
Background
When an LCD device graphical interface is developed on the STM32+ emWin system, the function of switching from horizontal screen to vertical screen of a screen needs to adjust the resource coordinates of display materials, update the page cache of the screen and finally refresh the page. Because the LCD screen is internally provided with a default horizontal and vertical display mode, the current common screen horizontal and vertical switching is to call a library function for configuring the screen horizontal and vertical switching in emWin during configuration engineering, the CPU operation requirement is increased when one frame of page is refreshed, the processing process can cause different degrees of time delay on the screen imaging refreshing effect, the time length of the time delay is determined by the CPU operation processing capability, the macroscopic operation response lagging feeling can be caused for some display equipment with low manufacturing cost and weak CPU operation processing capability, but the production cost can be increased if a CPU with high operation capability is adopted.
Disclosure of Invention
In view of this, embodiments of the present invention provide an optimization method and apparatus for screen rotation display to overcome the problem that in the prior art, a screen rotation display method depends on CPU computing power, so that the screen display delay of a CPU device with low computing power is obvious.
According to a first aspect, an embodiment of the present invention provides a method for optimizing screen rotation display, including:
acquiring a current screen display state of a target display screen and a resource code corresponding to a current resource to be displayed;
and selecting a target display resource corresponding to the current screen display state from a preset coding resource database to display according to the current screen display state and the resource code.
Optionally, the method for optimizing the screen rotation display further includes:
acquiring all resources to be displayed;
respectively carrying out resource coding on each resource to be displayed according to a preset coding rule;
respectively converting each resource to be displayed into a target display resource according to a screen display state according to the resource code, wherein the screen display state comprises the following steps: horizontal screen and vertical screen, the target display resources include: displaying resources on a horizontal screen and displaying resources on a vertical screen;
and constructing the preset coding resource database according to the corresponding relation among the resource codes, the screen display state and the target display resources.
Optionally, the obtaining of the current screen display state of the target display screen includes:
acquiring size information of a current screen of a target display screen, wherein the size information comprises a length size and a width size;
acquiring a current screen rotation angle of a target display screen;
determining a coordinate system parameter of the current resource to be displayed output on a target display screen according to the current screen rotation angle;
judging whether the length size is larger than the width size or not according to the coordinate system parameters;
and when the length size is larger than the width size, determining that the current screen display state of the target display screen is a horizontal screen.
Optionally, when the length dimension is not greater than the width dimension, determining that the current screen display state of the target display screen is a vertical screen.
Optionally, before the obtaining of the resource code corresponding to the current resource to be displayed, the method for optimizing screen rotation display further includes:
judging whether a resource code corresponding to the current resource to be displayed exists;
when the resource code corresponding to the current resource to be displayed does not exist;
and rotating and displaying the current resource to be displayed by adopting a preset screen rotation display algorithm according to the current screen display state.
Optionally, when a resource code corresponding to the current resource to be displayed exists, the step of obtaining the resource code corresponding to the current resource to be displayed is executed.
Optionally, the resource to be displayed includes: picture resources and/or text resources.
According to a second aspect, an embodiment of the present invention provides an apparatus for optimizing a screen rotation display, including:
the acquisition module is used for acquiring the current screen display state of the target display screen and the resource code corresponding to the current resource to be displayed;
and the processing module is used for selecting the target display resource corresponding to the current screen display state from a preset coding resource database to display according to the current screen display state and the resource code.
According to a third aspect, an embodiment of the present invention provides an electronic device, including:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the method for optimizing screen rotation display according to the first aspect and any one of the optional embodiments thereof.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the optimization of the screen rotation display described in the first aspect, or any one of its alternative embodiments.
The technical scheme of the invention has the following advantages:
the method for optimizing the screen rotation display provided by the embodiment of the invention comprises the following steps: acquiring a current screen display state of a target display screen and a resource code corresponding to a current resource to be displayed; and selecting a target display resource corresponding to the current screen display state from a preset coding resource database for display according to the current screen display state and the resource code. Therefore, the display direction pre-transposition processing is carried out on the display resources in advance, the imaging coordinates of the resources are adjusted according to the target display effect, the default mode is directly used for outputting and displaying, the processing step of outputting the original picture in a rotating mode by using the function of the graphic processing library is saved, the time delay caused by the CPU operation time in the processing step is reduced, and the direct and fast refreshing display effect is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram illustrating a screen rotation display operation in the prior art;
FIG. 2 is a flowchart illustrating a method for optimizing a screen rotation display according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a working process of a screen rotation display according to an embodiment of the present invention;
FIG. 4 is a comparison diagram of screen display effects according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for optimizing a screen rotation display according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other.
When an LCD device graphical interface is developed on the STM32+ emWin system, the function of switching from horizontal screen to vertical screen of a screen needs to adjust the resource coordinates of display materials, update the page cache of the screen and finally refresh the page. Because the LCD screen is internally provided with a default horizontal and vertical display mode, the current common screen horizontal and vertical switching is a library function for configuring the screen horizontal and vertical switching in emWin during configuration engineering, the specific working process of screen rotation display is shown in figure 1, the CPU operation requirement is increased every time a frame of page is refreshed, the processing process can cause different degrees of delay on the screen imaging refreshing effect, the time length of the delay is determined by the CPU operation processing capability, for some display devices with low manufacturing cost and weak CPU operation processing capability, the macroscopic operation response hysteresis feeling can be caused, but if a CUP with high operation capability is adopted, the production cost can be increased. .
Based on the above problem, an embodiment of the present invention provides an optimization method for screen rotation display, as shown in fig. 2, the optimization method for screen rotation display specifically includes the following steps:
step S101: and acquiring the current screen display state of the target display screen and the resource code corresponding to the current resource to be displayed. In practical application, the resources to be displayed include: picture resources and/or text resources.
Step S102: and selecting a target display resource corresponding to the current screen display state from a preset coding resource database for display according to the current screen display state and the resource code. In practical applications, the screen display states include: horizontal screen and vertical screen, the target display resources include: horizontal screen display resources and vertical screen display resources.
Specifically, in an embodiment of the method for optimizing screen rotation display, the preset coding resource database is established by the following steps:
step S103: and acquiring all resources to be displayed. In practical applications, all display resources are content information that can be displayed on a target display screen of an applied target device, and all content (including pictures and/or text) appearing in one screen display is a resource to be displayed, for example: the current screen display is background blue, containing the text "hello! "then the blue background picture and the text" hello "are called the resource to be displayed currently.
Step S104: and respectively carrying out resource coding on the resources to be displayed according to a preset coding rule. In practical application, in order to facilitate management and further improve the display rate, a preset coding rule can be adopted to perform resource coding on all resources to be displayed, so that the resources to be displayed correspond to the resource codes one to one, and the resources to be displayed can be determined according to the resource codes.
Step S105: and respectively converting the resources to be displayed into target display resources according to the screen display states according to the resource codes. Specifically, each resource to be displayed is converted into a horizontal screen display resource and a vertical screen display resource according to the display size of the target display screen, and the horizontal screen display resource and the vertical screen display resource are used for horizontal screen display and vertical screen display of the target display screen respectively.
Step S106: and constructing a preset coding resource database according to the corresponding relation among the resource codes, the screen display state and the target display resources. Specifically, the preset coding resource database may be composed of a word library for storing words and a picture library for storing pictures, where the word library and the picture library respectively include a horizontal screen word library and a vertical screen word library for storing words/pictures displayed on a horizontal screen and a vertical screen, and in practical applications, assuming that the resource code of the resource to be displayed is 000, the screen display states are a and B, where a represents a horizontal screen and B represents a vertical screen, the storage number of the resource to be displayed in the preset coding resource database is 000A and 000B, if the horizontal screen display is to be performed, the target display resource with the number 000A is called for display, and if the vertical screen display is to be performed, the target display resource with the number 000B is called for display. It should be noted that the establishing process of the preset coding resource database is only an example, and in practical application, the preset coding resource database may also be established in other manners as long as the corresponding storage and calling of the horizontal screen display resource and the vertical screen display resource can be realized, and the present invention is not limited thereto.
In practical application, the processing procedure of the target display resource in the preset coding resource database is as follows: display material resources (such as font library files, picture icons, picture resource files and the like corresponding to display fonts) of the horizontal screen and the vertical screen are pre-stored in a program memory ROM space. Setting a target angle: based on the default screen's clockwise rotation direction angle. Picture resource processing: and selecting and turning the center of the original image to a target angle, and generating a program code type material importing project. Processing word stock resources: and selecting the original font center of the system to select and turn to a target angle, and generating a program code type material import project. And (4) adapting the picture size, recalculating the screen material and the control output target coordinates, and adjusting the display effect, the key region effect and the like. And adjusting the size and the distance of the word stock and adjusting the display effect. Because the conventional word stock file has different vertical spacing and left-right spacing, continuous single word output with identification spacing change can be carried out according to the effect when a plurality of characters are output in the adaptation process after rotation. And when the target display resources are processed, judging that the current screen is in a horizontal screen or in other words when the display program starts to execute, and selecting the corresponding resources and coordinates to output.
Specifically, in an embodiment, in the step S101, the obtaining of the current screen display state of the target display screen specifically includes the following steps:
step S201: size information of a current screen of a target display screen is acquired, and the size information comprises a length size and a width size. In practical applications, the length and width dimensions are determined relative to the current placement state of the screen, and will change with the horizontal and vertical screen switching of the screen.
Step S202: and acquiring the current screen rotation angle of the target display screen. Specifically, the current screen rotation angle may be determined based on input feedback (e.g., gravity sensor, angle sensor, key input, etc.) of the target display device's own system, or set in a default manner. For example: for example, the rotation angle is set by default, and the rotation angle can be divided into two types of clockwise rotation by 90 degrees or counterclockwise rotation by 90 degrees, which is only taken as an example and not limited thereto.
Step S203: and determining the coordinate system parameters of the current resource to be displayed output on the target display screen according to the rotation angle of the current screen. Specifically, the coordinate system parameters are coordinate system parameters after the default coordinate system parameters of the target display screen are rotated, for example: when the default coordinate system parameter is a horizontal screen, if the rotation angle of the current screen is 0, the current screen is not rotated, the current coordinate system parameter is the default coordinate system parameter, and if the current screen selection angle is 90 degrees clockwise rotation, the current coordinate system parameter is the coordinate system parameter formed after the default coordinate system parameter is rotated by 90 degrees.
Step S204: and comparing whether the length dimension is larger than the width dimension according to the current coordinate system parameters.
Step S205: and when the length size is larger than the width size, determining that the current screen display state of the target display screen is a horizontal screen.
Step S206: and when the length size is not larger than the width size, determining that the current screen display state of the target display screen is a vertical screen.
In practical application, the actual origin and coordinate system in the embodiment of the invention are not changed, but the length and width of the rotated screen are changed along with the rotation angle of the screen, if the screen is vertical, the obtained width is smaller than the length, and if the screen is mode, the obtained width is smaller than the length. Therefore, the length size and the width size of the current screen can be compared in a mode of acquiring the rotation angle of the current screen, the display state of the screen can be directly judged, and since the size information of the screen can be acquired through the system input state, the speed of screen display can be further improved through directly outputting the resources of the corresponding database, and a good display effect is provided for a user.
Specifically, in an embodiment, before the resource code corresponding to the current resource to be displayed is obtained in step S101, the method for optimizing screen rotation display further includes the following steps:
step S107: and judging whether a resource code corresponding to the current resource to be displayed exists. In practical application, due to the limitation of the memory of the target device or the fact that a part of resources to be displayed may be changed according to actual display requirements, the content to be displayed is not stored in the preset encoded resource database, and therefore, whether the resource codes corresponding to the current resources to be displayed are stored in the preset encoded resource database can be judged by judging whether the resource codes corresponding to the current resources to be displayed exist, if the resource codes corresponding to the current resources to be displayed are stored, the resource codes corresponding to the current resources to be displayed can be directly acquired, and subsequent steps are executed.
Step S108: and when the resource code corresponding to the current resource to be displayed does not exist, rotating and displaying the current resource to be displayed by adopting a preset screen rotation display algorithm according to the current screen display state. In practical application, if a resource code corresponding to a current resource to be displayed does not exist, it is indicated that the current resource to be displayed is not stored in a preset code resource database, and in order to meet the display requirement of screen rotation, under the condition that the operation capability of a CPU allows, a library function with rotation parameters of emWin in the CPU is used for output display.
In practical application, if the memory space of the device is insufficient, because the storage space occupied by the characters is far smaller than that of the pictures, only two word libraries capable of storing horizontal and vertical screens and part of picture material resources with high use frequency can be stored. Partial pictures are output by using a library function with rotation parameters on a non-high-frequency refreshing demand page, although a coordinate operation process corresponding to the partial region exists in the refreshing execution process, a relatively small partial time delay is brought, and a relatively compromise scheme is obtained, namely the display delay is reduced, and the requirement on the memory is reduced.
The following describes in detail the method for optimizing screen rotation display according to the embodiment of the present invention with reference to a specific application example.
First, some conventional parameters of the screen display are explained:
setting the screen in a horizontal and vertical default mode: horizontal/vertical, which is the default setting for display screen leaving factory
Screen attribute: length: x pixels, width: y pixels. (default setting x > y, i.e. horizontal screen setting)
Pixel point coordinate axis: the horizontal and vertical coordinate axes are in units of one pixel, and generally have the upper left rectangular azimuth as the origin (0, 0), and the lower right, upper left rectangular azimuth as the origin (x, y)
If normally displayed, the screen output point is a landscape screen (horizontal direction pixel > vertical direction pixel) with coordinate axes from the origin (0, 0) to (x, y).
If the library function of the emWIn is called to rotate for 90 degrees for display, the screen output point is a vertical screen from the original point (0, 0) to (y, x). (vertical direction pixel > horizontal direction pixel).
The screen display mechanism is as follows: and processing the color of each pixel point of the coordinate axis. Namely, pictures are loaded and characters are displayed at the target coordinate point.
When the LCD equipment graphic interface is developed on the basis of an STM32+ emWin system, the method comprises the following steps: pre-storing display resources: importing a word stock and a picture file into system engineering; configuring LCD screen attributes (direction of display, length and width, etc.); and loading characters/pictures at pixel coordinate points on the screen, namely completing the screen display effect.
The practical operation is as follows:
if the display mode enabled by the screen in the system is the default landscape, but the target is the portrait display, for example: the horizontal screen is used vertically: the picture is rotated by 90 degrees, and the word stock is rotated by 90 degrees. Adjusting the output of the corresponding rotated coordinate point to make the display effect a vertical screen, i.e. the display effect is still designed according to the horizontal screen, and the state when the display content is completely switched to the vertical screen is only the state when the display content is completely switched to the vertical screen, and fig. 4 is a state of "you good! "the actual screen display effect is compared with the figure.
If the display mode is started in both horizontal and vertical screens, a single picture is required to be processed into two output angles (normal and rotation), and 2 output coordinates are calculated. Similarly, the operation word library has two output angles (normal and rotation). The required target effect can be achieved.
In the STM32+ emWin system, the library function of emWin is actually based on screens with different length-width ratios, and all the library functions can be rotated to convert into target angles for display interface design and development, but the rotation conversion cost is that a system with limited CPU computing capacity is delayed. The method for optimizing the screen rotation display, which is provided by the application, converts the pictures and the word stock in advance, and saves the step of rotation conversion operation so as to obtain a faster response effect.
By executing the above steps S101 to S108, the method for optimizing screen rotation display provided by the embodiment of the present invention includes: acquiring a current screen display state of a target display screen and a resource code corresponding to a current resource to be displayed; and selecting a target display resource corresponding to the current screen display state from a preset coding resource database for display according to the current screen display state and the resource code. Therefore, the display direction pre-transposition processing is carried out on the display resources in advance, the imaging coordinates of the resources are adjusted according to the target display effect, the default mode is directly used for outputting and displaying, the processing step of outputting the original picture in a rotating mode by using the function of the graphic processing library is saved, the time delay caused by the CPU operation time in the processing step is reduced, and the direct and fast refreshing display effect is achieved.
An embodiment of the present invention further provides an optimization apparatus for screen rotation display, as shown in fig. 5, the optimization apparatus for screen rotation display includes:
the obtaining module 101 is configured to obtain a current screen display state of the target display screen and a resource code corresponding to a current resource to be displayed. For details, refer to the related description of step S101 in the above method embodiment, and no further description is provided here.
And the processing module 102 is configured to select, according to the current screen display state and the resource code, a target display resource corresponding to the current screen display state from a preset coding resource database for display. For details, refer to the related description of step S102 in the above method embodiment, and no further description is provided here.
The screen rotation display optimization device provided by the embodiment of the present invention is configured to execute the screen rotation display optimization method provided by the above embodiment, and the implementation manner and the principle thereof are the same, and the details refer to the related description of the above method embodiment and are not repeated.
Through the cooperative cooperation of the above components, the optimization device for screen rotation display provided in the embodiment of the present invention performs display direction pre-transposition processing on display resources in advance, adjusts the resource imaging coordinates according to the target display effect, and directly outputs and displays the resource imaging coordinates in a default manner, thereby saving the processing step of outputting the original image by rotating the original image by using the graphics processing library function, reducing the delay caused by the CPU operation time in the processing step, and achieving the direct and fast refreshing display effect.
Fig. 6 shows an electronic apparatus according to an embodiment of the present invention, and as shown in fig. 6, the electronic apparatus includes: a processor 901 and a memory 902, wherein the processor 901 and the memory 902 may be connected by a bus or by other means, and fig. 6 illustrates an example of a connection by a bus.
Processor 901 may be a Central Processing Unit (CPU). The Processor 901 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the methods in the above-described method embodiments. The processor 901 executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above-described method embodiments.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902, which when executed by the processor 901 performs the methods in the above-described method embodiments.
The specific details of the electronic device may be understood by referring to the corresponding related descriptions and effects in the above method embodiments, and are not described herein again.
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 a computer program, and the implemented program can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (8)

1. A method for optimizing screen rotation display is characterized by comprising the following steps:
judging whether a resource code corresponding to the current resource to be displayed exists;
when the resource code corresponding to the current resource to be displayed does not exist;
rotating and displaying the current resource to be displayed by adopting a preset screen rotation display algorithm according to the current screen display state;
when a resource code corresponding to a current resource to be displayed exists, acquiring the current screen display state of a target display screen and the resource code corresponding to the current resource to be displayed;
and selecting a target display resource corresponding to the current screen display state from a preset coding resource database to display according to the current screen display state and the resource code.
2. The method of claim 1, further comprising:
acquiring all resources to be displayed;
respectively carrying out resource coding on each resource to be displayed according to a preset coding rule;
respectively converting each resource to be displayed into a target display resource according to a screen display state according to the resource code, wherein the screen display state comprises the following steps: horizontal screen and vertical screen, the target display resources include: displaying resources on a horizontal screen and displaying resources on a vertical screen;
and constructing the preset coding resource database according to the corresponding relation among the resource codes, the screen display state and the target display resources.
3. The method of claim 1, wherein obtaining the current screen display state of the target display screen comprises:
acquiring size information of a current screen of a target display screen, wherein the size information comprises a length size and a width size;
acquiring a current screen rotation angle of a target display screen;
determining a coordinate system parameter of the current resource to be displayed output on a target display screen according to the current screen rotation angle;
judging whether the length size is larger than the width size or not according to the coordinate system parameters;
and when the length size is larger than the width size, determining that the current screen display state of the target display screen is a horizontal screen.
4. The method of claim 3, wherein when the length dimension is not greater than the width dimension, determining the current screen display state of the target display screen to be a portrait screen.
5. The method of claim 1, wherein the resources to be displayed comprise: picture resources and/or text resources.
6. An apparatus for optimizing a screen rotation display, comprising:
the acquisition module is used for judging whether a resource code corresponding to the current resource to be displayed exists;
when the resource code corresponding to the current resource to be displayed does not exist;
rotating and displaying the current resource to be displayed by adopting a preset screen rotation display algorithm according to the current screen display state;
when a resource code corresponding to a current resource to be displayed exists, acquiring the current screen display state of a target display screen and the resource code corresponding to the current resource to be displayed;
and the processing module is used for selecting the target display resource corresponding to the current screen display state from a preset coding resource database to display according to the current screen display state and the resource code.
7. An electronic device, comprising:
a memory and a processor communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of any of claims 1-5.
8. A computer-readable storage medium having stored thereon computer instructions for causing a computer to thereby perform the method of any one of claims 1-5.
CN202010958862.0A 2020-09-11 2020-09-11 Screen rotation display optimization method and device Active CN112114919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010958862.0A CN112114919B (en) 2020-09-11 2020-09-11 Screen rotation display optimization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010958862.0A CN112114919B (en) 2020-09-11 2020-09-11 Screen rotation display optimization method and device

Publications (2)

Publication Number Publication Date
CN112114919A CN112114919A (en) 2020-12-22
CN112114919B true CN112114919B (en) 2021-09-24

Family

ID=73803669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010958862.0A Active CN112114919B (en) 2020-09-11 2020-09-11 Screen rotation display optimization method and device

Country Status (1)

Country Link
CN (1) CN112114919B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816627B (en) * 2022-04-07 2023-03-24 镁佳(北京)科技有限公司 Screen state adjusting method and device, electronic equipment and storage medium
CN117496920B (en) * 2023-12-27 2024-04-16 成都万创科技股份有限公司 HDBASE-T multi-input-based highlight multimedia display equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841722A (en) * 2011-06-20 2012-12-26 联想(北京)有限公司 Electronic equipment and screen displaying rotating method
CN103472997A (en) * 2013-09-24 2013-12-25 沈阳美行科技有限公司 Method for automatically switching software interface display styles according to horizontal and vertical screens
CN103699317A (en) * 2013-12-27 2014-04-02 福州瑞芯微电子有限公司 Image display method by rapidly rotating screens on Android devices
CN104156251A (en) * 2014-08-22 2014-11-19 广州华多网络科技有限公司 Picture processing method and device
CN106648150A (en) * 2016-11-15 2017-05-10 努比亚技术有限公司 Picture adjusting device and method
CN107203418A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 The method and device of resource is chosen according to system configuration
CN107247571A (en) * 2017-06-26 2017-10-13 京东方科技集团股份有限公司 A kind of display device and its display methods
JP2018013912A (en) * 2016-07-20 2018-01-25 OrangeOne株式会社 Terminal device, support system equipped with the same, and program to be executed by computer
CN107918517A (en) * 2017-11-13 2018-04-17 广东欧珀移动通信有限公司 Response method, device, mobile terminal and the storage medium of screen rotation
CN110060643A (en) * 2019-04-06 2019-07-26 上海安路信息科技有限公司 Date storage method and data-storage system
CN110502245A (en) * 2018-05-16 2019-11-26 华为技术有限公司 Data processing method, terminal, server and application and development equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9436767B2 (en) * 2013-03-07 2016-09-06 Google Inc. Serving content items based on device rotational orientation
CN104732486B (en) * 2015-03-23 2017-10-03 海信集团有限公司 The display methods and device of a kind of picture
CN205140493U (en) * 2015-08-20 2016-04-06 昆山龙腾光电有限公司 Control display screen carries out device of screen switching anyhow

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841722A (en) * 2011-06-20 2012-12-26 联想(北京)有限公司 Electronic equipment and screen displaying rotating method
CN103472997A (en) * 2013-09-24 2013-12-25 沈阳美行科技有限公司 Method for automatically switching software interface display styles according to horizontal and vertical screens
CN103699317A (en) * 2013-12-27 2014-04-02 福州瑞芯微电子有限公司 Image display method by rapidly rotating screens on Android devices
CN104156251A (en) * 2014-08-22 2014-11-19 广州华多网络科技有限公司 Picture processing method and device
CN107203418A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 The method and device of resource is chosen according to system configuration
JP2018013912A (en) * 2016-07-20 2018-01-25 OrangeOne株式会社 Terminal device, support system equipped with the same, and program to be executed by computer
CN106648150A (en) * 2016-11-15 2017-05-10 努比亚技术有限公司 Picture adjusting device and method
CN107247571A (en) * 2017-06-26 2017-10-13 京东方科技集团股份有限公司 A kind of display device and its display methods
CN107918517A (en) * 2017-11-13 2018-04-17 广东欧珀移动通信有限公司 Response method, device, mobile terminal and the storage medium of screen rotation
CN110502245A (en) * 2018-05-16 2019-11-26 华为技术有限公司 Data processing method, terminal, server and application and development equipment
CN110060643A (en) * 2019-04-06 2019-07-26 上海安路信息科技有限公司 Date storage method and data-storage system

Also Published As

Publication number Publication date
CN112114919A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN110377264B (en) Layer synthesis method, device, electronic equipment and storage medium
EP2962191B1 (en) System and method for virtual displays
US10649711B2 (en) Method of switching display of a terminal and a terminal
CN112114919B (en) Screen rotation display optimization method and device
CN110363831B (en) Layer composition method and device, electronic equipment and storage medium
KR102126987B1 (en) Displaying applications on a fixed orientation display
WO2021008427A1 (en) Image synthesis method and apparatus, electronic device, and storage medium
CN108228056B (en) Image display method and device for mobile terminal and storage medium
CN113127784A (en) Large-screen data visual display method and device, storage medium and computer equipment
CN112287257A (en) Page display method and device, electronic equipment and storage medium
US20120127193A1 (en) User Interface Pipe Scalers with Active Regions
CN114201627A (en) Display method, device and equipment for electronic ink screen and storage medium
CN108876883A (en) Texture creation method, device, equipment and storage medium based on OpenGLES
CN107273072B (en) Picture display method and device and electronic equipment
US9575896B2 (en) Fast, dynamic cache packing
CN102263924B (en) Image processing method based on bicubic interpolation and image display method
CN115576513A (en) Target image display method, display device, electronic device, and storage medium
CN114697555A (en) Image processing method, device, equipment and storage medium
CN112073686B (en) Image display method and device and electronic equipment
WO2023077650A1 (en) Three-color image generation method and related device
US20240104811A1 (en) Image editing method and device
CN117193913A (en) Display method and device of mouse cursor, display controller and electronic equipment
CN107610035B (en) Method and system for processing image
CN114049249A (en) Image conversion method and related device
CN115809100A (en) Picture loading method and device, electronic 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
GR01 Patent grant
GR01 Patent grant