CN115472139B - Picture self-adaptive display method, system and storage medium of rotatable display - Google Patents

Picture self-adaptive display method, system and storage medium of rotatable display Download PDF

Info

Publication number
CN115472139B
CN115472139B CN202211130120.4A CN202211130120A CN115472139B CN 115472139 B CN115472139 B CN 115472139B CN 202211130120 A CN202211130120 A CN 202211130120A CN 115472139 B CN115472139 B CN 115472139B
Authority
CN
China
Prior art keywords
display
screen
virtual
display layer
rotatable
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
CN202211130120.4A
Other languages
Chinese (zh)
Other versions
CN115472139A (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.)
Changshu Institute of Technology
Original Assignee
Changshu Institute of Technology
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 Changshu Institute of Technology filed Critical Changshu Institute of Technology
Priority to CN202211130120.4A priority Critical patent/CN115472139B/en
Publication of CN115472139A publication Critical patent/CN115472139A/en
Application granted granted Critical
Publication of CN115472139B publication Critical patent/CN115472139B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/38Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory with means for controlling the display position
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/363Graphics controllers
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/37Details of the operation on graphic patterns

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a picture self-adaptive display method of a rotatable display, which comprises the following steps: constructing a virtual display layer on the rotatable display; when the screen rotates, determining the position and the size of a virtual display layer in the rotatable display, and mapping a display picture to the virtual display layer; and converting the coordinate system of the virtual display layer into a screen coordinate system for display. By adding the virtual display layer, the real-time geometric relation of the virtual display layer relative to the screen when rotating is established, so that the display picture of the virtual display layer always keeps a vertical or horizontal state, and the user experience is improved.

Description

Picture self-adaptive display method, system and storage medium of rotatable display
Technical Field
The invention belongs to the technical field of display, and relates to a picture self-adaptive display method, a system and a storage medium of a rotatable display.
Background
Along with development and updating of automobile electronic technology, a vehicle-mounted display, particularly a central control large screen, gradually becomes standard of an automobile, and a rotatable display has better human-computer interaction experience, can bring better visual impression to drivers and passengers, and simultaneously enhances the technological sense of the automobile, so that the vehicle-mounted display becomes a focusing object of each automobile enterprise. However, most of the rotatable displays are currently in a rotating state, the display screen is always synchronous with the screen, namely, the screen is inclined, the display screen is inclined, and the normal vertical/horizontal display state cannot be restored until the screen is completely rotated in place. The rotation process has two problems, namely, the visual sense of personnel is influenced, and screen contents cannot be watched normally in the rotation process; secondly, the people with weak sense of direction are puzzled, and even the driving safety of the group is influenced. The method is characterized in that the rotation of the screen during driving can influence the attention of a driver, and meanwhile, in a navigation state, the rotation of the screen can cause deflection of a navigation interface, so that certain interference is caused to the judgment of the driver, and the driving safety is further influenced.
At present, the automobile industry mainly focuses on the display effect of an on-vehicle display, and researches on potential influences on driving safety caused by the on-vehicle display are less involved, and the key technical key point of automobile technical development is automobile safety technology. The safety of automobiles mainly comprises two major types, namely, the passive and the active. The active safety is that when the existing automobile structure is designed, advanced devices and technologies can be applied to optimize the structure, so that the optimal performance can be achieved in the running process of the automobile, and the aim of effectively preventing accidents is fulfilled.
The application number 202010925423X discloses a screen picture self-adaptive adjustment method, in the process of screen rotation, periodically acquiring the current rotation angle and the current rotation direction of a screen, acquiring the type of a picture to be adjusted, wherein the picture to be adjusted is a picture displayed on the screen, performing scaling treatment on the picture to be adjusted according to the type of the picture to be adjusted, obtaining an adjusted picture, and performing picture adjustment operation according to the current rotation angle and the current rotation direction of the screen and the adjusted picture. The method is complex, has large algorithm operation amount, and can reduce the screen display speed and the screen refresh rate.
Disclosure of Invention
The invention aims to provide a picture self-adaptive display method, a system and a storage medium of a rotatable display, wherein a virtual display layer is added to establish a real-time geometric relation of the virtual display layer relative to a screen when the virtual display layer rotates, so that a display picture of the display is always kept in a vertical or horizontal state, and user experience is improved.
The technical solution for realizing the purpose of the invention is as follows:
a picture self-adaptive display method of a rotatable display comprises the following steps:
s01: constructing a virtual display layer on the rotatable display;
s02: when the screen rotates, determining the position and the size of a virtual display layer in the rotatable display, and mapping a display picture to the virtual display layer;
s03: and converting the coordinate system of the virtual display layer into a screen coordinate system for display.
In a preferred embodiment, the step S02 further includes:
s21: acquiring a screen rotation angle;
s22: when the rotation angle of the screen is between 0 and 45 degrees, the aspect ratio of the display interface is kept unchanged and the vertical direction is kept unchanged; obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display;
s23: when the rotation angle of the screen is between 45 DEG and 90 DEG, the aspect ratio of the display interface is kept unchanged in the horizontal direction; and obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display.
In a preferred embodiment, the method for obtaining the width and height of the virtual display layer in step S22 includes:
when the screen is displayed vertically, the start state screen right diagonal line l 1 The linear equation of (2) is:
y=xtanθ 0 (4)
wherein θ 0 For the angle between the right diagonal of the screen and the x-axis in the initial state,a. b is the width and height of the rotatable display;
in the rotating process, the right upper corner P of the display interface of the display is the right side l of the rotating rectangular screen 2 And/l 1 Intersection of l 2 The linear equation of (2) is:
A(x-x 0 )+B(y-y 0 )=0 (5)
wherein A, B are straight lines l respectively 2 The normal vector component of (2) and the parameters in the formula (5) are calculated as follows:
wherein ρ is the origin to the straight line l 2 P=a;
the equations (5) and (6) are combined and converted into an equivalent matrix form as follows:
finally, a straight line l is obtained 2 The relationship with the rotation angle θ is shown as follows:
the relationship between the solution point P and the rotation angle θ according to the expression (4) and the expression (8) is:
and then obtaining the relation between the width w, the height h and the rotation angle theta of the virtual display layer as follows:
in a preferred embodiment, the method for obtaining the width and height of the virtual display layer in step S23 includes:
when the screen is displayed horizontally, the status screen right diagonal line l is terminated 3 The linear equation of (2) is:
x=ytanθ 0 (11)
wherein θ 0 Is the included angle between the right diagonal line of the screen and the y axis in the termination state;
in the rotating process, the right upper corner Q of the display interface of the display is the right side l of the rotating rectangular screen 3 And/l 4 Intersection of l 4 The linear equation of (2) is:
C(x-x 0 )+D(y-y 0 )=0 (12)
wherein C, D are straight lines l respectively 4 The normal vector component of (2) and the parameters in equation (12) are calculated as follows:
wherein ρ is the origin to the straight line l 4 Is a distance of (2);
combining (12) with formula (13) and converting the result into a matrix form:
finally, a straight line l is obtained 4 The relationship with the rotation angle θ is shown as follows:
the relationship between the point Q coordinate and the rotation angle θ is obtained from the equations (11) and (15):
and then obtaining the relation between the width w, the height h and the rotation angle theta of the virtual display layer as follows:
in a preferred technical solution, in the step S03, the conversion of the coordinate system of the virtual display layer into the coordinate transformation relationship of the screen coordinate system is as follows:
where (x ', y') is the coordinates of the point in the virtual display layer, (x, y) is the screen pixel point coordinates, and a, b are the width and height of the rotatable display.
The present embodiment also discloses a computer storage medium having stored thereon a computer program which, when executed, implements the above-described picture adaptive display method of a rotatable display.
The embodiment also discloses a picture self-adaptive display system of a rotatable display, which comprises:
the virtual display layer construction module constructs a virtual display layer on the rotatable display;
the virtual display layer display picture mapping module is used for determining the position and the size of the virtual display layer in the rotatable display when the screen rotates and mapping the display picture to the virtual display layer;
and the display module is used for converting the coordinate system of the virtual display layer into a screen coordinate system for display.
The embodiment also discloses a rotatable display, which comprises the rotatable display, and the rotatable display runs the picture self-adaptive display method of the rotatable display when the screen rotates.
In a preferred technical solution, the virtual display layer display screen mapping module further includes the following processes when the screen rotates:
s21: acquiring a screen rotation angle;
s22: when the rotation angle of the screen is between 0 and 45 degrees, the aspect ratio of the display interface is kept unchanged and the vertical direction is kept unchanged; obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display;
s23: when the rotation angle of the screen is between 45 DEG and 90 DEG, the aspect ratio of the display interface is kept unchanged in the horizontal direction; and obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display.
Compared with the prior art, the invention has the remarkable advantages that:
1. the method improves the system architecture of the vehicle-mounted rotatable display, provides a display method for adding a virtual display layer, maps display contents onto the virtual display layer by calculating the geometric transformation relation of the virtual display layer when a screen rotates, keeps the vertical/horizontal display state unchanged, and improves the display output effect of the vehicle-mounted rotatable display. The designed algorithm has the advantages of small operation amount, accurate calculation and the like, and the display speed and the refresh rate of the screen are not reduced although the module is increased compared with the original system, so that the real-time performance and the fluency of the system display are maintained, more comfortable and high-quality visual impression is given to the personnel in the vehicle, and meanwhile, the driving safety is improved.
2. According to the method, firstly, the real-time rotation angle of the vehicle-mounted rotatable screen during rotation is obtained, then the position and the size of the virtual display layer are calculated, the needed display content is mapped to the virtual display layer, the stability of a display picture is improved, seamless switching of the display content in rotation is realized, the influence of the screen rotation on the vision of drivers is reduced, and the method has practical engineering application value for improving the driving safety of people with weak sense of direction.
Drawings
FIG. 1 is a flow chart of a method for adaptive display of a rotatable display according to an embodiment;
FIG. 2 is a functional block diagram of a picture adaptive display system of a rotatable display of an embodiment;
FIG. 3 is a schematic diagram showing a rotation state of the display according to the preferred embodiment;
FIG. 4 is a schematic diagram of an adaptive display system of a vehicle-mounted rotatable display according to a preferred embodiment;
FIG. 5 is a schematic view of the rotation state of the example (0.ltoreq.θ < 45 °);
FIG. 6 is a schematic view of the rotation state (45.ltoreq.θ.ltoreq.90°);
FIG. 7 is a diagram illustrating a relationship between a virtual display layer coordinate system and a screen coordinate system according to an embodiment;
FIG. 8 is a schematic view showing the vertical display effect during the screen rotation process according to the embodiment;
FIG. 9 is a schematic view showing a display effect of 30 DEG of screen rotation according to an embodiment;
FIG. 10 is a schematic view showing a horizontal state display effect of a screen rotation process according to an embodiment;
fig. 11 is a schematic view showing the display effect of 60 ° rotated screen of the embodiment.
Detailed Description
The principle of the invention is as follows: by adding the virtual display layer, the real-time geometric relation of the virtual display layer relative to the screen when rotating is established, so that the display picture of the virtual display layer always keeps a vertical or horizontal state, and the user experience is improved.
Example 1:
as shown in fig. 1, a method for adaptively displaying a picture of a rotatable display includes the following steps:
s01: constructing a virtual display layer on the rotatable display;
s02: when the screen rotates, determining the position and the size of a virtual display layer in the rotatable display, and mapping a display picture to the virtual display layer;
s03: and converting the coordinate system of the virtual display layer into a screen coordinate system for display.
It should be noted that, although the virtual display layer is finally displayed on the home screen, it does not occupy the resources required for the desktop display of the home screen. The desktop occupies the physical screen of the terminal equipment, and the virtual display layer is only a virtual screen constructed by the terminal equipment based on the video memory, so that the desktop and the virtual display layer can be smoothly switched, and the problems of blocking, dead halt, data pollution and the like caused by resource sharing can be avoided.
In a preferred implementation, the step S02 further includes:
s21: acquiring a screen rotation angle;
s22: when the rotation angle of the screen is between 0 and 45 degrees, the aspect ratio of the display interface is kept unchanged and the vertical direction is kept unchanged; obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display;
s23: when the rotation angle of the screen is between 45 DEG and 90 DEG, the aspect ratio of the display interface is kept unchanged in the horizontal direction; and obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display.
It is of course also necessary to establish the initial end state of rotation of the display, the plane of rotation and the angle of gravity as the screen rotates. The vehicle-mounted rotatable display can be abstracted into a rectangular plane with a constant width and height, and the width of the rectangle is set as a and the height is set as b. When the screen rotates from the vertical state to the horizontal state (or vice versa), the screen needs to be rotated by 90 degrees, and the rotation angle of the screen in the rotation process can be acquired through a gravity sensor and is set as theta.
In a preferred implementation, the method for obtaining the width and height of the virtual display layer in step S22 includes:
when the screen is displayed vertically, the start state screen right diagonal line l 1 The linear equation of (2) is:
y=xtanθ 0 (4)
wherein θ 0 For the angle between the right diagonal of the screen and the x-axis in the initial state,a. b is the width and height of the rotatable display;
in the rotating process, the right upper corner P of the display interface of the display is the right side l of the rotating rectangular screen 2 And/l 1 Intersection of l 2 The linear equation of (2) is:
A(x-x 0 )+B(y-y 0 )=0 (5)
wherein A, B are straight lines l respectively 2 The normal vector component of (2) and the parameters in the formula (5) are calculated as follows:
wherein ρ is the origin to the straight line l 2 P=a;
the equations (5) and (6) are combined and converted into an equivalent matrix form as follows:
finally, a straight line l is obtained 2 The relationship with the rotation angle θ is shown as follows:
the relationship between the solution point P and the rotation angle θ according to the expression (4) and the expression (8) is:
and then obtaining the relation between the width w, the height h and the rotation angle theta of the virtual display layer as follows:
in a preferred implementation, the method for obtaining the width and height of the virtual display layer in step S23 includes: when the screen is displayed horizontally, the status screen right diagonal line l is terminated 3 The linear equation of (2) is:
x=ytanθ 0 (11)
wherein θ 0 Is the included angle between the right diagonal line of the screen and the y axis in the termination state;
in the rotating process, the upper right corner of the display interface of the display is the right side l of the rotating rectangular screen 3 And/l 4 Intersection of l 4 The linear equation of (2) is:
C(x-x 0 )+D(y-y 0 )=0 (12)
wherein C, D are straight lines l respectively 4 The normal vector component of (2) and the parameters in equation (12) are calculated as follows:
wherein ρ is the origin to the straight line l 4 Is a distance of (2);
combining (12) with formula (13) and converting the result into a matrix form:
finally, a straight line l is obtained 4 The relationship with the rotation angle θ is shown as follows:
the relationship between the point P coordinate and the rotation angle θ is obtained from the equations (11) and (15):
and then obtaining the relation between the width w, the height h and the rotation angle theta of the virtual display layer as follows:
in a preferred implementation, in step S03, the coordinate transformation relationship of the virtual display layer to the screen coordinate system is as follows:
where (x ', y') is the coordinates of the point in the virtual display layer, (x, y) is the screen pixel point coordinates, and a, b are the width and height of the rotatable display.
In another embodiment, the present embodiment further discloses a computer storage medium, on which a computer program is stored, where the computer program is executed to implement the above-mentioned picture adaptive display method of the rotatable display.
In another embodiment, the present embodiment further discloses a rotatable display, including a rotatable display, where the rotatable display operates the method for adaptive display of a picture of the rotatable display when the screen rotates.
In another embodiment, as shown in fig. 2, the present embodiment further discloses a picture adaptive display system of a rotatable display, including:
a virtual display layer construction module 10 for constructing a virtual display layer on the rotatable display;
the virtual display layer display screen mapping module 20 determines the position and size of the virtual display layer in the rotatable display when the screen rotates, and maps the display screen to the virtual display layer;
the display module 30 converts the coordinate system of the virtual display layer into a screen coordinate system for display.
The following description is given by way of example of a preferred embodiment:
the method specifically comprises the following steps:
step one: parameters such as the initial and final states of rotation of the display, the rotation plane and the gravity angle are established. Abstracting the vehicle-mounted rotatable display into a rectangle with a width of a and a height of b, the plane occupied by the vehicle-mounted rotatable display when rotating is a diameter ofIs a circle of (c). Without loss of generality, the vertical state is set as an initial state of the screen, the horizontal state is set as a termination state of the screen, the screen is changed from the initial state to the termination state and needs to be rotated by 90 degrees, and the rotation angle of the screen in the rotation process can be acquired through a gravity sensor and is set as theta. And a coordinate system is established by taking the geometric center point of the rectangular screen as the origin, and related parameters and states are shown in figure 3.
Step two: an electronic architecture of a rotatable display of an automobile is improved. In this embodiment, the visual sense of the display in the rotation state is improved, the driving safety is enhanced, and a virtual display layer is added. The display layer always maintains the same aspect ratio and display orientation (vertical or horizontal) as the screen rotates, mapping the display content to the virtual display layer and eventually presenting to the user. The improved system architecture is shown in fig. 4.
The virtual display layer is a virtual screen constructed by the terminal equipment on the basis of the video memory, and after the configuration information is determined, the terminal equipment can generate the virtual display layer on the main screen of the terminal equipment by calling a corresponding background program. The virtual display layer may allocate an independent storage space in which information may be pre-stored according to the needs of the application for recall via the virtual display layer for display.
Step three: and converting pixel coordinates of the virtual display layer. As the screen rotates, pixel coordinates need to be calculated in real time to complete the correct display of the content. Without loss of generality, taking anticlockwise rotation as an example, when the rotation angle of the screen is between 0 and 45 degrees, the vertical direction is the dominant direction, namely, the screen more shows vertical display characteristics, and when the rotation angle is between 45 and 90 degrees, the horizontal direction is the dominant direction, namely, the screen more shows transverse display characteristics, and the two characteristics need to be treated differently.
Step 31: as shown in fig. 5, when the screen rotation angle is between 0 ° and 45 °, the display content display interface keeps the aspect ratio, the vertical direction, and the upper right corner P thereof moves on the right diagonal of the screen in the initial state as the screen rotates.
From the known conditions, the start status screen right diagonal l 1 The linear equation of (2) is:
y=xtanθ 0 (4)
wherein θ 0 For the angle between the right diagonal of the screen and the x-axis in the initial state,
in the rotating process, the upper right corner of the display interface of the display is the right side l of the rotating rectangular screen 2 And/l 1 Intersection of l 2 The linear equation of (2) is:
A(x-x 0 )+B(y-y 0 )=0 (5)
wherein A, B are straight lines l respectively 2 The normal vector component of (2) and the parameters in the formula (5) are calculated as follows:
where ρ is the origin to straight line l 2 P=a. In a computer, a matrix correlation algorithm is commonly used to increase the calculation speed, and the formula (5) and the formula (6) are simultaneously converted into an equivalent matrix form, as follows:
finally, a straight line l is obtained 2 The relation with the rotation angle θ is shown in the following expression.
The relationship between the resolvable point P and the rotation angle θ according to the expression (4) and the expression (8) is:
and then the relation between the width and the height of the virtual display layer and the rotation angle theta is obtained as follows:
step 32: as shown in fig. 6, when the screen rotation angle is between 45 ° and 90 °, the display content display interface keeps the aspect ratio, the horizontal direction, and the upper right corner Q thereof moves on the right diagonal of the screen in the end state as the screen rotates.
Unlike when the screen is displayed vertically, it ends up being displayed horizontallyRight diagonal line l 3 The linear equation of (2) is:
x=ytanθ 0 (11)
wherein θ 0 To terminate the right diagonal of the screen at an angle to the y-axis,
in the rotating process, the upper right corner of the display interface of the display is the right side l of the rotating rectangular screen 3 And/l 4 Intersection of l 4 The linear equation of (2) is:
C(x-x 0 )+D(y-y 0 )=0 (12)
wherein C, D are straight lines l respectively 4 The normal vector component of (2) and the parameters in equation (12) are calculated as follows:
where ρ is the origin to straight line l 4 P=a, as in the vertical display. Combining (12) with (13) and likewise converting the result into a matrix form can be achieved:
finally, a straight line l is obtained 4 The relation with the rotation angle θ is shown in the following expression.
The relationship between the coordinate of the point Q and the rotation angle θ can be obtained from the expression (11) and the expression (15) as follows:
and then the relation between the width and the height of the virtual display layer and the rotation angle theta is obtained as follows:
the virtual display layer is still rectangular in shape during display, the width and the height of the virtual display layer can be obtained according to the coordinates of the points, and then the position of the virtual display layer in the vehicle-mounted display is determined, so that the mapping of a display picture is completed, and the purpose of correctly displaying the content is achieved.
Step four: and converting the coordinate system of the virtual display layer into a screen coordinate system. The coordinate system of the virtual display layer takes the central point as the origin of coordinates, and the screen coordinate system takes the upper left corner as the origin of coordinates, and the relationship between the two is shown in fig. 7. The coordinates of a point in the virtual display layer are mapped to screen coordinates as shown in equation (18):
where (x ', y') is the coordinates of the point in the virtual display layer, (x, y) is the screen pixel point coordinates, and a, b are the width and height of the rotatable display.
The method improves the display output effect of the vehicle-mounted rotatable display by adding a virtual display layer, and the designed algorithm has the advantages of small calculation data quantity, accurate calculation and the like.
In order to show the practical effect of the present embodiment, the effect diagram of the initial state, the end state, the rotation angle of 30 ° and the rotation angle of 60 ° during the operation is cut off, as shown in fig. 8 to 11. From the figure, the virtual display layer always keeps the consistency of display proportion and direction in the rotating process of the vehicle-mounted display.
The foregoing examples are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the foregoing examples, and any other changes, modifications, substitutions, combinations, and simplifications that do not depart from the spirit and principles of the present invention should be made therein and are intended to be equivalent substitutes within the scope of the present invention.

Claims (8)

1. A picture adaptive display method of a rotatable display, comprising the steps of:
s01: constructing a virtual display layer on the rotatable display; the virtual display layer is a virtual screen constructed by the terminal equipment on the basis of a video memory, and after the configuration information is determined, the terminal equipment generates the virtual display layer on a main screen of the terminal equipment by calling a corresponding background program; the virtual display layer always maintains the same aspect ratio as the screen and a vertical or horizontal display direction;
s02: when the screen rotates, determining the position and the size of a virtual display layer in the rotatable display, and mapping a display picture to the virtual display layer;
s03: converting the coordinate system of the virtual display layer into a screen coordinate system for display;
the step S02 further includes:
s21: acquiring a screen rotation angle;
s22: when the rotation angle of the screen is between 0 and 45 degrees, the aspect ratio of the display interface is kept unchanged and the vertical direction is kept unchanged; obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display;
s23: when the rotation angle of the screen is between 45 DEG and 90 DEG, the aspect ratio of the display interface is kept unchanged in the horizontal direction; and obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display.
2. The method for adaptive display of rotatable display according to claim 1, wherein the step S22 of obtaining the width and height of the virtual display layer comprises:
when the screen is displayed vertically, the start state screen right diagonal line l 1 The linear equation of (2) is:
y=xtanθ 0 (4)
wherein θ 0 For the angle between the right diagonal of the screen and the x-axis in the initial state,a. b is the width and height of the rotatable display;
in the rotating process, the right upper corner P of the display interface of the display is the right side l of the rotating rectangular screen 2 And/l 1 Intersection of l 2 The linear equation of (2) is:
A(x-x 0 )+B(y-y 0 )=0 (5)
wherein A, B are straight lines l respectively 2 The normal vector component of (2) and the parameters in the formula (5) are calculated as follows:
wherein ρ is the origin to the straight line l 2 P=a;
the equations (5) and (6) are combined and converted into an equivalent matrix form as follows:
finally, a straight line l is obtained 2 The relationship with the rotation angle θ is shown as follows:
the relationship between the solution point P and the rotation angle θ according to the expression (4) and the expression (8) is:
and then obtaining the relation between the width w, the height h and the rotation angle theta of the virtual display layer as follows:
3. the method for adaptive display of rotatable display according to claim 1, wherein the step S23 of obtaining the width and height of the virtual display layer comprises:
when the screen is displayed horizontally, the status screen right diagonal line l is terminated 3 The linear equation of (2) is:
x=ytanθ 0 (11)
wherein θ 0 Is the included angle between the right diagonal line of the screen and the y axis in the termination state;
in the rotating process, the right upper corner Q of the display interface of the display is the right side l of the rotating rectangular screen 3 And/l 4 Intersection of l 4 The linear equation of (2) is:
C(x-x 0 )+D(y-y 0 )=0 (12)
wherein C, D are straight lines l respectively 4 The normal vector component of (2) and the parameters in equation (12) are calculated as follows:
wherein ρ is the origin to the straight line l 4 Is a distance of (2);
combining (12) with formula (13) and converting the result into a matrix form:
finally, a straight line l is obtained 4 The relationship with the rotation angle θ is shown as follows:
the relationship between the point Q coordinate and the rotation angle θ is obtained from the equations (11) and (15):
and then obtaining the relation between the width w, the height h and the rotation angle theta of the virtual display layer as follows:
4. the method for adaptive display of rotatable display according to claim 3, wherein the step S03 converts the coordinate system of the virtual display layer into a screen coordinate system coordinate transformation relationship:
where (x ', y') is the coordinates of the point in the virtual display layer, (x, y) is the screen pixel point coordinates, and a, b are the width and height of the rotatable display.
5. A computer storage medium having stored thereon a computer program, characterized in that the computer program, when executed, implements the picture adaptive display method of a rotatable display as claimed in any one of claims 1-4.
6. A picture adaptive display system for a rotatable display, comprising:
the virtual display layer construction module constructs a virtual display layer on the rotatable display; the virtual display layer is a virtual screen constructed by the terminal equipment on the basis of a video memory, and after the configuration information is determined, the terminal equipment generates the virtual display layer on a main screen of the terminal equipment by calling a corresponding background program; the virtual display layer always maintains the same aspect ratio as the screen and a vertical or horizontal display direction;
the virtual display layer display picture mapping module is used for determining the position and the size of the virtual display layer in the rotatable display when the screen rotates and mapping the display picture to the virtual display layer;
the display module converts the coordinate system of the virtual display layer into a screen coordinate system for display;
the virtual display layer display picture mapping module further comprises the following processing when the screen rotates:
s21: acquiring a screen rotation angle;
s22: when the rotation angle of the screen is between 0 and 45 degrees, the aspect ratio of the display interface is kept unchanged and the vertical direction is kept unchanged; obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display;
s23: when the rotation angle of the screen is between 45 DEG and 90 DEG, the aspect ratio of the display interface is kept unchanged in the horizontal direction; and obtaining the width and height of the virtual display layer according to the coordinates of the upper right corner P of the display interface, and determining the position of the virtual display layer in the rotatable display.
7. The adaptive display system according to claim 6, wherein the method for obtaining the width and height of the virtual display layer in step S22 comprises:
when the screen is displayed vertically, the start state screen right diagonal line l 1 The linear equation of (2) is:
y=xtanθ 0 (4)
wherein θ 0 For the angle between the right diagonal of the screen and the x-axis in the initial state,a. b is the width and height of the rotatable display;
in the rotating process, the upper right corner P of the display interface of the display isRight side l of rectangle screen in rotation 2 And/l 1 Intersection of l 2 The linear equation of (2) is:
A(x-x 0 )+B(y-y 0 )=0 (5)
wherein A, B are straight lines l respectively 2 The normal vector component of (2) and the parameters in the formula (5) are calculated as follows:
wherein ρ is the origin to the straight line l 2 P=a;
the equations (5) and (6) are combined and converted into an equivalent matrix form as follows:
finally, a straight line l is obtained 2 The relationship with the rotation angle θ is shown as follows:
the relationship between the solution point P and the rotation angle θ according to the expression (4) and the expression (8) is:
and then obtaining the relation between the width w, the height h and the rotation angle theta of the virtual display layer as follows:
8. a rotatable display comprising a rotatable display, wherein the rotatable display is operative to perform the picture adaptive display method of the rotatable display of any one of claims 1-4 when a screen is rotated.
CN202211130120.4A 2022-09-16 2022-09-16 Picture self-adaptive display method, system and storage medium of rotatable display Active CN115472139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211130120.4A CN115472139B (en) 2022-09-16 2022-09-16 Picture self-adaptive display method, system and storage medium of rotatable display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211130120.4A CN115472139B (en) 2022-09-16 2022-09-16 Picture self-adaptive display method, system and storage medium of rotatable display

Publications (2)

Publication Number Publication Date
CN115472139A CN115472139A (en) 2022-12-13
CN115472139B true CN115472139B (en) 2023-12-15

Family

ID=84333880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211130120.4A Active CN115472139B (en) 2022-09-16 2022-09-16 Picture self-adaptive display method, system and storage medium of rotatable display

Country Status (1)

Country Link
CN (1) CN115472139B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479065A (en) * 2010-11-26 2012-05-30 Tcl集团股份有限公司 Rotary display and display method thereof
CN104731311A (en) * 2013-12-24 2015-06-24 鸿富锦精密工业(深圳)有限公司 Display device and method
CN105718232A (en) * 2016-01-20 2016-06-29 昆山龙腾光电有限公司 Display method and display device of arbitrary angle plane rotation
CN106095372A (en) * 2016-06-20 2016-11-09 联想(北京)有限公司 A kind of display control method and electronic equipment
CN107066253A (en) * 2017-02-27 2017-08-18 网易(杭州)网络有限公司 Method, device and electronic equipment for mapping terminal
CN109308153A (en) * 2017-07-27 2019-02-05 先锋高科技(上海)有限公司 Picture adjusting method and device, computer readable storage medium, terminal
CN110045753A (en) * 2019-03-28 2019-07-23 南京巨鲨显示科技有限公司 A method of control indicator screen follows display transverse and longitudinal state to rotate automatically
CN111026297A (en) * 2019-11-19 2020-04-17 深圳鑫想科技有限责任公司 Screen image rotation method, control device, storage medium and computer equipment
CN112083805A (en) * 2020-09-03 2020-12-15 深圳市雷鸟网络传媒有限公司 Screen picture self-adaptive adjusting method, device, equipment and storage medium
CN113395558A (en) * 2020-03-13 2021-09-14 海信视像科技股份有限公司 Display equipment and display picture rotation adaptation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060103677A1 (en) * 2004-11-18 2006-05-18 Lai Jimmy K L System and method for effectively performing arbitrary angle sprite rotation procedures

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479065A (en) * 2010-11-26 2012-05-30 Tcl集团股份有限公司 Rotary display and display method thereof
CN104731311A (en) * 2013-12-24 2015-06-24 鸿富锦精密工业(深圳)有限公司 Display device and method
CN105718232A (en) * 2016-01-20 2016-06-29 昆山龙腾光电有限公司 Display method and display device of arbitrary angle plane rotation
CN106095372A (en) * 2016-06-20 2016-11-09 联想(北京)有限公司 A kind of display control method and electronic equipment
CN107066253A (en) * 2017-02-27 2017-08-18 网易(杭州)网络有限公司 Method, device and electronic equipment for mapping terminal
CN109308153A (en) * 2017-07-27 2019-02-05 先锋高科技(上海)有限公司 Picture adjusting method and device, computer readable storage medium, terminal
CN110045753A (en) * 2019-03-28 2019-07-23 南京巨鲨显示科技有限公司 A method of control indicator screen follows display transverse and longitudinal state to rotate automatically
CN111026297A (en) * 2019-11-19 2020-04-17 深圳鑫想科技有限责任公司 Screen image rotation method, control device, storage medium and computer equipment
CN113395558A (en) * 2020-03-13 2021-09-14 海信视像科技股份有限公司 Display equipment and display picture rotation adaptation method
CN112083805A (en) * 2020-09-03 2020-12-15 深圳市雷鸟网络传媒有限公司 Screen picture self-adaptive adjusting method, device, equipment and storage medium
WO2022048424A1 (en) * 2020-09-03 2022-03-10 深圳市雷鸟网络传媒有限公司 Screen picture adaptive adjustment method, apparatus and device, and storage medium

Also Published As

Publication number Publication date
CN115472139A (en) 2022-12-13

Similar Documents

Publication Publication Date Title
US11715238B2 (en) Image projection method, apparatus, device and storage medium
CN108287678B (en) Image processing method, device, equipment and medium based on virtual reality
EP2997544A1 (en) Use of map data difference tiles to iteratively provide map data to a client device
US10649711B2 (en) Method of switching display of a terminal and a terminal
CN115472139B (en) Picture self-adaptive display method, system and storage medium of rotatable display
CN114699770A (en) Method and device for controlling motion of virtual object
US6597365B1 (en) Indicating device with and without antialiasing
US7212219B2 (en) Drawing apparatus and method, program and recording medium
CN112346890B (en) Off-screen rendering method and system for complex graphics
WO2023207912A1 (en) Split-screen rendering method and apparatus, device, and storage medium
GB2155738A (en) Linear interpolation circuit
CN110110028B (en) Method and system for displaying map according to user-defined area and oriented to OGC standard
CN111857469A (en) Road environment information reconstruction method, device and equipment
JP2634851B2 (en) Image processing device
CN106910230B (en) Radar background video drawing method
JPH02267583A (en) Image display device
CN115131471A (en) Animation generation method, device and equipment based on image and storage medium
CN111785229B (en) Display method, device and system
JP3550444B2 (en) Graphics display
CN115357542A (en) 2D graphics hardware acceleration method and device based on EXA
CN111782316A (en) Low-power-consumption screen projection method for mobile phone and computer terminal
CN115049564A (en) Picture sharpening processing method and processing terminal
JP2991591B2 (en) Multi-window display device and method
CN114170352A (en) Method and device for realizing three-dimensional page turning effect based on cos2dx
CN114756316A (en) Expression interaction display method, medium, instrument and device based on liquid crystal screen

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