WO2023061325A1 - Picture display method and apparatus, terminal device, and storage medium - Google Patents
Picture display method and apparatus, terminal device, and storage medium Download PDFInfo
- Publication number
- WO2023061325A1 WO2023061325A1 PCT/CN2022/124352 CN2022124352W WO2023061325A1 WO 2023061325 A1 WO2023061325 A1 WO 2023061325A1 CN 2022124352 W CN2022124352 W CN 2022124352W WO 2023061325 A1 WO2023061325 A1 WO 2023061325A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- reference plane
- preset reference
- screen
- angle
- screen rendering
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000009877 rendering Methods 0.000 claims abstract description 219
- 238000004364 calculation method Methods 0.000 claims description 19
- 208000018747 cerebellar ataxia with neuropathy and bilateral vestibular areflexia syndrome Diseases 0.000 claims description 19
- 230000001133 acceleration Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 10
- 230000000694 effects Effects 0.000 description 9
- 230000003287 optical effect Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
Definitions
- the present application relates to the technical field of smart terminals, and in particular to a screen display method, device terminal equipment, and storage media.
- the electronic terminal device will rotate due to external force or the use of the operator, the electronic terminal device will rotate, the display panel will deviate from the user's original line of sight, and the angle of the user's viewing screen will also deviate accordingly.
- the electronic terminal device rotates to From a certain angle, the user cannot clearly see the complete picture displayed on the display panel based on the original line of sight, resulting in a poor user experience.
- Embodiments of the present invention provide a screen display method, device, terminal device, and storage medium.
- a dynamic screen display image is obtained, and the dynamic screen display image is used to compensate the rotation angle of the electronic terminal device. Ensure that the angle between the user's line of sight and the screen display is always at the best angle for viewing the screen.
- an embodiment of the present invention provides a screen display method, which is applied to an electronic device terminal.
- the method includes: comparing the terminal display panel with a preset reference plane, each time the preset angle is rotated, the corresponding preset angle of rotation is obtained.
- the obtained screen rendering picture is not directly displayed on the terminal display panel, but the obtained screen rendering picture is projected onto the preset reference plane, and then projected onto the preset reference plane.
- the flat screen display screen is displayed on the terminal display panel.
- the projecting the obtained screen rendering picture to the preset reference plane includes:
- the projecting the obtained screen rendering picture to the preset reference plane according to the deviation angle includes:
- the obtaining the screen rendering picture corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment includes:
- Projecting the obtained screen rendering picture onto the preset reference plane to obtain a screen display picture on the preset reference plane including:
- the at least one screen rendering canvas projected to respective corresponding projection positions are superimposed to obtain a screen display image on the preset reference plane.
- the method further includes:
- the projecting the obtained screen rendering picture to the preset reference plane includes:
- the obtaining the deviation angle of the terminal display panel corresponding to the preset rotation angle compared with the preset reference plane at the current moment includes:
- the deviation angle of the terminal display panel corresponding to the rotation of the preset angle compared with the preset reference plane at the current moment is obtained.
- the obtaining the deviation direction of the deviation angle compared to the preset reference plane the obtaining the deviation direction of the deviation angle compared to the preset reference plane
- a deviation direction of the deviation angle compared to the preset reference plane is obtained through a built-in acceleration sensor.
- an embodiment of the present invention provides a screen display device, which is set in an electronic device terminal, and the device includes:
- the rotation module is used to obtain the screen rendering picture corresponding to the terminal display panel corresponding to the rotation preset angle at the current moment when the terminal display panel is rotated by a preset angle compared with the preset reference plane;
- the screen display image obtaining module is configured to project the obtained screen rendering image onto the preset reference plane to obtain a screen display image on the preset reference plane.
- the screen display image acquisition module includes:
- the deviation angle obtaining sub-module is used to obtain the corresponding rotation preset angle of the terminal display panel at the current moment compared with the preset reference plane every time the terminal display panel rotates a preset angle.
- the first projecting sub-module is configured to project the obtained screen rendering picture to the preset reference plane according to the deviation angle.
- the first projecting submodule includes:
- a deviation direction obtaining subunit configured to obtain a deviation direction of the deviation angle compared with the preset reference plane
- the target direction projecting subunit is configured to project the obtained screen rendering picture onto the preset reference plane along a target direction opposite to the deviation direction.
- the rotating module includes:
- the rendering sub-module is used to obtain at least one screen rendering canvas corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment; wherein, the display angles on which different screen rendering canvases are rendered are different; the at least one screen rendering canvas for forming the screen rendering picture;
- the screen display frame acquisition module includes:
- the input sub-module is used to input the display angle based on rendering each screen rendering canvas and the deviation angle into the preset compensation angle calculation model to obtain the projection position of each screen rendering canvas; wherein at least one of the screen rendering The projection position of the canvas coincides with the position of the preset reference plane;
- the second projecting sub-module is used to project each screen rendering canvas to its corresponding projecting position
- the superposition sub-module is configured to superimpose the at least one screen rendering canvas projected to their corresponding projection positions based on the screen rendering canvases projected on the preset reference plane, to obtain a screen display picture on the preset reference plane.
- the device further includes:
- a generating module configured to generate a display window matching the size of the screen display on the preset reference plane according to the deviation angle
- the screen display frame acquisition module includes:
- the third projecting sub-module is configured to project the obtained screen rendering picture into the display window of the preset reference plane.
- the submodule for obtaining the deviation angle includes:
- the deviation angle acquisition subunit is configured to obtain, through a built-in gyro sensor, a deviation angle of the terminal display panel that is rotated corresponding to the preset angle relative to the preset reference plane at the current moment.
- the deviation direction obtaining subunit is specifically configured to obtain a deviation direction of the deviation angle compared with the preset reference plane through a built-in acceleration sensor.
- an embodiment of the present invention provides a terminal device, including: at least one processor; and at least one memory communicated with the processor, wherein: the memory stores a program executable by the processor Instructions, the processor invokes the program instructions to execute the method provided in the first aspect.
- an embodiment of the present invention provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the method provided in the first aspect.
- Fig. 1 is a schematic diagram of rotation of a terminal display panel of an electronic terminal device
- FIG. 2 is a flow chart of the steps of the screen display method proposed by the embodiment of the present invention.
- Fig. 3 is a schematic diagram of projecting a screen rendering picture to a preset reference plane according to an example of the present invention
- Fig. 4 is a schematic diagram of projecting a screen rendering picture formed by at least one screen rendering canvas to a preset reference plane according to an example of the present invention
- Fig. 5 is a flow chart of an exemplary electronic terminal device execution screen display method according to the present invention.
- Fig. 6 is an effect diagram of a terminal display panel display screen display screen after being processed by a screen display method proposed by an example of the present invention
- FIG. 7 is a functional block diagram of a screen display device proposed by an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of an electronic terminal device provided by an embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of a terminal device provided by an embodiment of this specification.
- Figure 1 is a schematic diagram of the rotation of the terminal display panel of the electronic terminal device.
- the angle between the terminal display panel 11 and the user's line of sight is 90°, and the user is at the best viewing angle.
- the rotation deviates from its original plane, the angle between the rotated terminal display panel 12 and the user's line of sight is 120°, and the rotated terminal display panel 12 deviates from the best viewing angle for the user.
- the user has to adjust his line of sight in order to watch the complete picture displayed by the rotated terminal display panel 12, resulting in poor user experience.
- an embodiment of the present invention proposes a picture display method for electronic terminal equipment, electronic terminal equipment It may be an electronic device carrying a display panel such as a tablet, a computer, or a mobile phone.
- Fig. 2 is a flow chart of the steps of the screen display method proposed by the embodiment of the present invention. As shown in Fig. 2, the steps include:
- Step S21 Obtain a screen rendering picture corresponding to the current moment of the terminal display panel corresponding to the preset rotation angle every time the terminal display panel is rotated by a preset angle compared with the preset reference plane.
- the preset reference plane is a preset horizontal plane or vertical plane in the electronic terminal equipment.
- the preset angle can be any value. According to the accuracy setting of the display screen of the terminal display panel, the smaller the preset angle is, the higher the frequency that the electronic terminal device obtains the screen rendering image and projects the screen rendering image to the preset reference plane , the better the screen display effect presented by the terminal display panel is.
- the screen rendering picture is a picture output by the electronic terminal device according to the current picture data, and the GPU module of the electronic terminal device can be used to render the screen rendering picture according to the current picture data.
- the screen display picture is a picture displayed on the display panel of the terminal.
- Step S22 Projecting the obtained screen rendering image onto the preset reference plane to obtain a screen display image on the preset reference plane.
- the preset angle is 1°.
- the terminal display panel coincides with the preset reference plane, t1 the electronic terminal device rotates 1°, and the angle between the terminal display panel and the preset reference plane is is 1°, obtain the screen rendering picture A1 output according to the image data at time t1, and project the screen rendering picture A1 onto the preset reference plane;
- the electronic terminal equipment rotates 1°, and the angle between the terminal display panel and the preset reference plane is 2° , obtain the screen rendering picture A2 output according to the image data at time t2, and project the screen rendering picture A2 onto the preset reference plane;
- the electronic terminal equipment rotates 1°, the angle between the terminal display panel and the preset reference plane is 3°, and t3 is obtained According to the screen rendering picture A3 output by the image data at all times, the screen rendering picture A3 is projected to the preset reference plane; when the terminal display panel rotates with itself, the electronic terminal equipment will turn the current screen rendering picture
- the electronic terminal device instead of directly displaying the obtained screen rendering picture on the terminal display panel, it projects the obtained screen rendering picture onto a preset reference plane before displaying the picture on the terminal display panel, and then The screen display screen projected onto the preset reference plane is displayed on the terminal display panel.
- the screen displayed on the terminal display panel is always at the user's Optimal viewing position in line of sight.
- Another embodiment of the present invention proposes an implementation method for projecting a screen rendering image onto a preset reference plane, the steps of which include:
- Step S221 When the terminal display panel is compared with the preset reference plane, each time the preset angle is rotated, obtain the corresponding rotation preset angle of the terminal display panel at the current moment compared with the preset reference plane Angle of deviation.
- the deviation angle is the included angle between the display panel of the terminal and the preset reference plane at the current moment.
- the electronic terminal device can calculate the rotation time from the start of the terminal display panel to the current moment, obtain the preset angle, calculate the number of rotations of the terminal display panel during the rotation time, and obtain the deviation angle of the terminal display panel at the current moment.
- the electronic terminal device can also use the built-in gyro sensor to obtain the deviation of the terminal display panel corresponding to the rotation of the preset angle from the preset reference plane at the current moment. angle.
- the built-in gyro sensor Through the built-in gyro sensor, the deviation angle of the terminal display panel at the current moment compared with the preset reference plane can be directly obtained, which saves calculation time of the electronic terminal equipment.
- Step S222 Project the obtained screen rendering picture onto the preset reference plane according to the deviation angle.
- Fig. 3 is a schematic diagram of an example of the present invention projecting a screen rendering picture onto a preset reference plane.
- the preset angle is 10°
- the angle between the terminal display panel and the preset reference plane at time t3 is 20° ° position, rotate to the position where the included angle with the preset datum plane is 30°.
- the projection direction is obtained, and the screen rendering image is projected to the preset reference plane.
- the deviation angle of the terminal display panel at the current moment compared with the preset reference plane is obtained, and according to the deviation angle, the screen rendering picture obtained at the current moment is projected onto the preset reference plane, Make the terminal display panel display the screen rendering picture projected to the preset reference plane at the current moment, so that the screen display picture does not rotate with the terminal display panel, does not deviate from the user's original line of sight with the terminal display panel, and ensures that every time the terminal display panel rotates At this moment, all the screen displays on the preset reference plane are displayed.
- the screen rendering picture is formed by multiple screen rendering canvases.
- the same image data can be rendered based on different display angles to obtain multiple different screen rendering canvases.
- the image data of a tree is modified to render the shooting angle data to obtain a screen rendering canvas that displays a tree based on 45° and displays a tree based on 90°.
- the image acquisition device collects images or videos, it also collects images or videos based on different angles to obtain different image data obtained by shooting the same target.
- the GPU module of the electronic terminal device renders Get at least one different screen rendering canvas.
- the obtained at least one screen rendering canvas overlay can obtain a screen rendering picture.
- Step S21 includes sub-step S211: Obtain at least one screen rendering canvas corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment; where the rendering canvases for different screens are based on different display angles; the at least one screen rendering The canvas is used to form the screen rendering picture.
- the at least one screen rendering canvas corresponding to the terminal display panel at the current moment is at least one screen rendering canvas rendered by the electronic terminal device at the current moment.
- the step of projecting the screen rendering picture formed by the at least one screen rendering canvas to a preset reference plane includes:
- Step S22-1 Input the display angle based on rendering each screen rendering canvas and the deviation angle into the preset compensation angle calculation model to obtain the projection position of each screen rendering canvas; wherein at least one of the screen rendering canvases The projection position of is coincident with the position of the preset reference plane.
- the preset compensation angle calculation model can be debugged to obtain the projection position of the screen rendering canvas according to the display angle on which the screen rendering canvas is based and the deviation angle of the terminal display panel at the current moment.
- the electronic terminal equipment obtains the screen rendering canvas A2 based on the display angle of 45°, and the deviation angle between the terminal display panel and the preset reference plane is 60°, directly projecting the screen rendering canvas A2 to the preset reference plane will cause the screen rendering canvas
- the display angle of A2 is no longer 60°; the compensation angle calculation model can get the projection position of the rendering canvas A2 through adaptive debugging based on the display angle of 45°.
- the screen rendering canvas is projected to its own projection position, which can enhance the display details of the screen rendering canvas projected to the preset reference plane.
- the preset compensation angle calculation model can also be based on the number of at least one screen rendering canvas, combined with the deviation angle of the terminal display panel at the current moment, and the display angle based on each screen rendering canvas, so as to superimpose a
- the extreme screen at the current moment is used as a debugging benchmark, and the projection position of each screen rendering canvas is output.
- a screen rendering canvas whose display angle is 90° among at least one of the screen rendering canvases may be used as a target screen rendering canvas projected to a preset reference plane.
- the screen rendering canvas that can best display image details on the preset reference plane can be used as the target screen rendering canvas projected to the preset reference plane. It is also possible to use the screen rendering canvas that is projected to the preset reference plane and meets the user's best viewing angle obtained after the calculation of the preset compensation angle calculation model as the target screen rendering canvas projected to the preset reference plane.
- the user's best viewing angle is 50°
- the display angle of the screen rendering canvas A3 is 70 degrees
- the deviation angle of the terminal display panel at the current time is 10 degrees.
- the screen rendering canvas A3 After the calculation of the preset compensation angle calculation model, the screen rendering canvas A3 After projecting to the preset reference plane, the display angle is 50°, then use the screen rendering canvas A3 as the target screen rendering canvas, and make sure that the projection position of the screen rendering canvas A3 coincides with the position of the preset reference plane.
- the target screen rendering canvas whose projection position coincides with the position of the preset reference plane may be predetermined, or may be obtained through debugging of a preset compensation angle calculation model.
- Step S22-2 Project each screen rendering canvas to its corresponding projection position.
- Step S22-3 Based on the screen rendering canvases projected to the preset reference plane, superimpose the at least one screen rendering canvas projected to their corresponding projection positions to obtain a screen display image on the preset reference plane.
- FIG. 4 is a schematic diagram of projecting a screen rendering picture formed by at least one screen rendering canvas onto a preset reference plane according to an example of the present invention.
- the deviation angle between the terminal display panel 40 and the preset reference plane 45 is 30°
- the screen rendering canvas 41, screen rendering canvas 42, screen rendering canvas 43, and screen rendering canvas 44 corresponding to the terminal display panel at the current moment through the preset compensation angle calculation model, the projection position of the screen rendering canvas 41 and the preset
- the included angle of the reference plane 45 is 5°.
- the projection position of the screen rendering canvas 42 coincides with the position of the preset reference plane 45.
- the included angle between the projection position of the screen rendering canvas 43 and the preset reference plane 45 is 15°.
- the included angle between the projection position of the screen rendering canvas 44 and the preset reference plane 45 is 20°. Project the screen rendering canvas 41, the screen rendering canvas 42, the screen rendering canvas 43, and the screen rendering canvas 44 to their respective projection positions, and superimpose the screen rendering canvas 41 and the screen rendering canvas 42 based on the screen rendering canvas 42 projected to the preset reference plane 45.
- the canvas 42 , the screen rendering canvas 43 , and the screen rendering canvas 44 display superimposed images on the preset reference plane 45 to obtain an image that compensates for the deviation angle of the terminal display panel 40 at the current moment.
- the terminal display panel displays the picture
- at least one screen rendering canvas for forming the screen rendering picture is obtained first, and the preset compensation angle calculation model is used, according to the display angle based on each screen rendering canvas, and the terminal display
- the deviation angle of the panel at the current moment compared with the preset reference plane is used to obtain the projection position of each screen rendering canvas, and each screen rendering canvas is projected to its respective projection position, and the screen rendering canvas projected to the preset reference screen
- the screen rendering canvas projected to different positions is superimposed to form a screen rendering image that has been projected to the preset reference image.
- the present invention no longer directly stacks multiple screen rendering canvases to obtain the screen rendering picture, but projects the screen rendering canvas to an appropriate position based on different screen rendering canvas display angles, and then forms the screen rendering canvas.
- the projection The screen rendering canvases at different positions can enhance the details of the screen rendering canvas projected to the preset reference picture.
- the screen rendering picture formed by the superposition of each screen rendering canvas has been projected to the preset reference plane, and based on each display angle. The deviation of the user's line of sight caused by the rotation of the terminal display panel.
- An embodiment of the present invention proposes yet another implementation method for projecting a screen rendering image onto a preset reference plane, the steps of which include:
- Step S222-1 Obtain the deviation direction of the deviation angle compared to the preset reference plane.
- the deviation direction is the direction in which the display panel of the terminal rotates at the current moment.
- the electronic terminal device can calculate the relative position between the current position of the terminal display panel and the preset reference plane, and obtain the deviation direction of the deviation angle compared with the preset reference plane.
- the electronic terminal device may obtain a deviation direction of the deviation angle from the preset reference plane through a built-in acceleration sensor.
- the built-in acceleration sensor Through the built-in acceleration sensor, the deviation direction of the terminal display panel at the current moment compared with the preset reference plane can be directly obtained, which saves the calculation time of the electronic terminal equipment.
- Step S222-2 Project the obtained screen rendering picture onto the preset reference plane along a target direction opposite to the deviation direction.
- the embodiment of the present invention can project the screen rendering picture to the preset reference plane along the target direction opposite to the deviation direction, without calculating parameters such as the projection direction, which saves computing time and computing memory of the electronic terminal device.
- Another embodiment of the present invention is to solve the problem that the screen rendering picture is projected onto the preset reference plane, and the screen display picture finally displayed on the preset reference plane does not match the size of the terminal display panel.
- a reference plane is set to generate a display window matching the size of the screen display. Then project the obtained screen rendering image into the display window of the preset reference plane, optimize the display effect of the terminal display panel, and ensure the aesthetic appearance of the display interface of the terminal display panel.
- Fig. 5 is a flow chart of an exemplary electronic terminal device performing a screen display method according to the present invention. As shown in Fig. 5, the steps of screen display include:
- Step S51 Detect whether the display panel of the terminal has been rotated away from its last plane.
- Step S52 When it is detected that the terminal display panel has deviated from its previous rotation, the deviation angle of the terminal display panel at the current moment compared with the preset reference plane is obtained through the gyro sensor. Through the acceleration sensor, the deviation direction of the deviation angle compared with the preset reference plane is obtained.
- Step S53 The CPU of the electronic terminal device generates a display window of the terminal display panel according to the deviation angle and deviation direction, and the size of the generated display window matches the size of the screen display finally displayed on the terminal display panel.
- Step S54 The electronic terminal device obtains the projection position of each screen rendering canvas in the at least one screen rendering canvas corresponding to the current moment according to the deviation angle and deviation direction.
- the GPU of the electronic terminal device projects the screen rendering canvas to the projection position, superimposes multiple screen rendering canvases, and obtains a screen display image for displaying on the terminal display panel.
- GPU renders font effects and adjusts the shadow effect of fonts.
- Step S55 Send the screen display image to the LCD panel for display.
- the obtained screen rendering picture is the screen rendering picture projected on the preset reference plane.
- the reverse rotation of the screen rendering picture is realized, so that during the rotation process of the terminal display panel, the screen rendering picture can be projected to
- the screen display image obtained by presetting the reference plane can compensate the rotation angle of the display panel of the terminal.
- FIG. 6 is an effect diagram of a display screen displayed on a display panel of a terminal after being processed by a screen display method proposed by an example of the present invention.
- the screen display method proposed by the embodiment of the present invention generates a screen display screen that is always located on a preset reference plane, thereby ensuring that the angle between the screen display screen and the user's line of sight is always constant during the rotation of the terminal display panel Therefore, the rotation of the display panel of the terminal will not affect the viewing sight of the user, which improves the experience of the user.
- Fig. 7 is a functional module diagram of a screen display device proposed by an embodiment of the present invention.
- the above screen display device is set in a terminal device, as shown in Fig. 7 , the device includes:
- the rotation module 71 is used to obtain the screen rendering picture corresponding to the terminal display panel corresponding to the rotation preset angle at the current moment when the terminal display panel is rotated by a preset angle compared with the preset reference plane;
- the screen display picture obtaining module 72 is configured to project the obtained screen rendering picture onto the preset reference plane to obtain a screen display picture on the preset reference plane.
- the screen display device provided by the embodiment shown in FIG. 8 can be used to implement the technical solutions of the method embodiments shown in FIGS. 1 to 6 in this specification. For its realization principle and technical effect, further reference can be made to the relevant descriptions in the method embodiments.
- the screen display frame acquisition module includes:
- the deviation angle obtaining sub-module is used to obtain the corresponding rotation preset angle of the terminal display panel at the current moment compared with the preset reference plane every time the terminal display panel rotates a preset angle.
- the first projecting sub-module is configured to project the obtained screen rendering picture to the preset reference plane according to the deviation angle.
- the first projection submodule includes:
- a deviation direction obtaining subunit configured to obtain a deviation direction of the deviation angle compared with the preset reference plane
- the target direction projecting subunit is configured to project the obtained screen rendering picture onto the preset reference plane along a target direction opposite to the deviation direction.
- the rotating module includes:
- the rendering sub-module is used to obtain at least one screen rendering canvas corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment; wherein, the display angles on which different screen rendering canvases are rendered are different; the at least one screen rendering canvas for forming the screen rendering picture;
- the screen display frame acquisition module includes:
- the input sub-module is used to input the display angle based on rendering each screen rendering canvas and the deviation angle into the preset compensation angle calculation model to obtain the projection position of each screen rendering canvas; wherein at least one of the screen rendering The projection position of the canvas coincides with the position of the preset reference plane;
- the second projecting sub-module is used to project each screen rendering canvas to its corresponding projecting position
- the overlay sub-module is configured to superimpose the at least one screen rendering canvas projected to each corresponding projection position based on the screen rendering canvas projected onto the preset reference plane, to obtain a screen display picture on the preset reference plane.
- the device also includes:
- a generating module configured to generate a display window matching the size of the screen display on the preset reference plane according to the deviation angle
- the screen display frame acquisition module includes:
- the third projecting sub-module is configured to project the obtained screen rendering picture into the display window of the preset reference plane.
- the submodule for obtaining the deviation angle includes:
- the deviation angle acquisition subunit is configured to obtain, through a built-in gyro sensor, a deviation angle of the terminal display panel that is rotated corresponding to the preset angle relative to the preset reference plane at the current moment.
- the deviation direction obtaining subunit is specifically configured to obtain the deviation direction of the deviation angle compared with the preset reference plane through a built-in acceleration sensor.
- the apparatus provided in the above-mentioned embodiments may be, for example, a chip or a chip module.
- the device provided by the above-mentioned embodiment is used to implement the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effect can further refer to the relevant description in the method embodiment, and will not be repeated here.
- each module/unit contained in each device described in the above embodiments it may be a software module/unit, or a hardware module/unit, or may be partly a software module/unit and partly a hardware module/unit.
- each module/unit contained therein may be realized by hardware such as a circuit, or at least part of the modules/units may be realized by a software program, and the software program runs on
- the remaining modules/units can be realized by hardware such as circuits;
- each module/unit contained in it can be realized by hardware such as circuits , different modules/units can be located in the same component of the chip module (such as chips, circuit modules, etc.)
- the internally integrated processor and the rest of the modules/units can be realized by hardware such as circuits; for each device applied to or integrated in electronic terminal equipment, each module/unit contained in it can be realized by hardware such as circuits.
- modules/units may be located in the same component (for example, chip, circuit module, etc.) or in different components in the electronic terminal equipment, or at least some modules/units may be implemented in the form of software programs that run on the electronic terminal equipment
- the internally integrated processor and the remaining (if any) modules/units can be realized by means of hardware such as circuits.
- FIG. 9 is a schematic structural diagram of an electronic terminal device provided by an embodiment of the present invention.
- the electronic terminal device 200 includes a processor 210, a memory 211, and a computer program stored in the memory 211 and operable on the processor 210.
- the processor 210 executes the program, the steps in the foregoing method embodiments are implemented.
- the electronic terminal device provided in the embodiment can be used to implement the technical solution of the method embodiment shown above. For its realization principle and technical effect, please refer to the method Relevant descriptions in the embodiments will not be repeated here.
- Fig. 9 is a schematic structural diagram of a terminal device provided by an embodiment of this specification.
- the above-mentioned terminal device may include at least one processor; and at least one memory communicated with the above-mentioned processor, wherein:
- the program instructions executed by the processor, the processor calling the program instructions can execute the screen display method provided by the embodiments shown in FIGS. 1 to 6 of this specification.
- the screen display method provided by the embodiments shown in FIGS. 1 to 6 can be implemented by the following electronic terminal equipment: a chip or a chip module.
- the above-mentioned terminal device may be an intelligent electronic device such as a smart phone, a tablet computer, or a notebook computer, and the form of the above-mentioned terminal device is not limited in this embodiment.
- the structure shown in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100 .
- the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
- the processor 110 executes various functional applications and data processing by running the programs stored in the internal memory 121 , for example, realizing the screen display method provided by the embodiments shown in FIGS. 1 to 6 of the present invention.
- the wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the terminal device 100 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the terminal device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the terminal device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
- the ISP is used for processing the data fed back by the camera 193 .
- the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin color.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be located in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other image signals.
- the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the terminal device 100 may support one or more video codecs.
- the terminal device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data created during the use of the terminal device 100 (such as audio data, phonebook, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the processor 110 executes various functional applications and data processing of the terminal device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- An embodiment of the present invention provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the embodiments shown in Figures 1 to 6 of this specification Provided screen display method.
- a non-transitory computer-readable storage medium may be, for example, a chip or a chip module. Any combination of one or more computer-readable media may be used for the above-mentioned non-transitory computer-readable storage medium.
- the computer readable medium may be a computer readable signal medium or a computer readable storage medium.
- a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
- a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
- a computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave traveling as a data signal. Such propagated data signals may take many forms, including - but not limited to - electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
- Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to - wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
- RF radio frequency
- Computer program code for carrying out the operations described herein can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language.
- the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
- the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer such as use an Internet service provider to connect via the Internet).
- LAN local area network
- WAN wide area network
- first and second are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features.
- the features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
- “plurality” means at least two, such as two, three, etc., unless otherwise specifically defined.
- the word “if” as used herein may be interpreted as “at” or “when” or “in response to determining” or “in response to detecting”.
- the phrases “if determined” or “if detected (the stated condition or event)” could be interpreted as “when determined” or “in response to the determination” or “when detected (the stated condition or event) )” or “in response to detection of (a stated condition or event)”.
- terminals involved in the embodiments of the present invention may include, but are not limited to, personal computers (personal computers, PCs), personal digital assistants (personal digital assistants, PDAs), wireless handheld devices, tablet computers (tablet computers), Mobile phones, MP3 players, MP4 players, etc.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components can be combined Or it can be integrated into another system, or some features can be ignored, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- each functional unit in each embodiment of this specification may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
- the above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium.
- the above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or processor (processor) to execute the methods described in the various embodiments of this specification. partial steps.
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Graphics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Embodiments of the present invention relate to the technical field of intelligent terminals, and provide a picture display method and apparatus, a terminal device, and a storage medium. In the rotation process of an electronic terminal device, a dynamic screen display picture is obtained, and a rotation angle of the electronic terminal device is compensated by means of the dynamic screen display picture to ensure that an angle of the sight of a user relative to the screen display picture is always an optimal angle of screen picture watching. The method comprises: each time a terminal display panel rotates by a preset angle relative to a preset reference plane, obtaining a screen rendering picture corresponding, at a current moment, to the terminal display panel that correspondingly rotates by the preset angle; and projecting the obtained screen rendering picture to the preset reference plane to obtain a screen display picture on the preset reference plane.
Description
本申请要求于2021年10月11日提交中国专利局、申请号为202111182044.7、申请名称为“画面显示方法、装置、终端设备以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111182044.7 and the application title "screen display method, device, terminal equipment and storage medium" submitted to the China Patent Office on October 11, 2021, the entire contents of which are incorporated by reference in this application.
本申请涉及智能终端技术领域,尤其涉及一种画面显示方法、装置终端设备以及存储介质。The present application relates to the technical field of smart terminals, and in particular to a screen display method, device terminal equipment, and storage media.
目前大部分电子终端设备具有显示面板,用户通过电子终端设备可以观看视频、查阅网页、编辑文档,为用户工作生活提供了便捷。At present, most electronic terminal devices have display panels, through which users can watch videos, consult webpages, and edit documents, which provides convenience for users' work and life.
电子终端设备在一些特定场合下,会因外力或操作者的使用发生旋转,电子终端设备发生旋转,显示面板偏离用户原本的视线,用户观看画面的角度也相应的出现偏差,电子终端设备旋转到某一个角度,用户基于原本的视线无法看清显示面板展示的完整画面,导致用户体验感较差。In some specific occasions, the electronic terminal device will rotate due to external force or the use of the operator, the electronic terminal device will rotate, the display panel will deviate from the user's original line of sight, and the angle of the user's viewing screen will also deviate accordingly. The electronic terminal device rotates to From a certain angle, the user cannot clearly see the complete picture displayed on the display panel based on the original line of sight, resulting in a poor user experience.
发明内容Contents of the invention
本发明实施例提供了一种画面显示方法、装置、终端设备以及存储介质,在电子终端设备旋转过程中,获得动态的屏幕显示画面,以该动态的屏幕显示画面补偿电子终端设备旋转的角度,保证用户视线与屏幕显示画面的角度始终处于屏幕画面观看的最佳角度。Embodiments of the present invention provide a screen display method, device, terminal device, and storage medium. During the rotation of the electronic terminal device, a dynamic screen display image is obtained, and the dynamic screen display image is used to compensate the rotation angle of the electronic terminal device. Ensure that the angle between the user's line of sight and the screen display is always at the best angle for viewing the screen.
第一方面,本发明实施例提供一种画面显示方法,应用于电子设备终端,所述方法包括:在终端显示面板相较于预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻对应的屏幕渲染画面;将所述获得的屏幕渲染画面投射到所述预设基准平面,得到在所述预设基准平面的屏幕显示 画面。In the first aspect, an embodiment of the present invention provides a screen display method, which is applied to an electronic device terminal. The method includes: comparing the terminal display panel with a preset reference plane, each time the preset angle is rotated, the corresponding preset angle of rotation is obtained. The screen rendering picture corresponding to the terminal display panel at the current moment; and projecting the obtained screen rendering picture onto the preset reference plane to obtain the screen display picture on the preset reference plane.
上述画面显示方法中,电子终端设备在旋转过程中,不直接将获得的屏幕渲染画面展示在终端显示面板,而是将获得的屏幕渲染画面投射到预设基准平面,再将投射到预设基准平面的屏幕显示画面展示在终端显示面板,在电子终端设备旋转过程中,无论终端显示面板与用户视线之间的角度发生何种变化,终端显示面板展示的画面都处于用户视线的最佳观看位置。In the above picture display method, during the rotation process of the electronic terminal device, the obtained screen rendering picture is not directly displayed on the terminal display panel, but the obtained screen rendering picture is projected onto the preset reference plane, and then projected onto the preset reference plane. The flat screen display screen is displayed on the terminal display panel. During the rotation of the electronic terminal device, no matter what changes in the angle between the terminal display panel and the user's line of sight, the picture displayed on the terminal display panel is in the best viewing position of the user's line of sight. .
其中一种可能的实现方式中,所述将所述获得的屏幕渲染画面投射到所述预设基准平面,包括:In one possible implementation manner, the projecting the obtained screen rendering picture to the preset reference plane includes:
在所述终端显示面板相较于所述预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度;When the terminal display panel is compared with the preset reference plane, each time the preset angle is rotated, the deviation angle of the terminal display panel corresponding to the preset rotation angle at the current moment compared with the preset reference plane is obtained;
根据所述偏离角度,将所述获得的屏幕渲染画面投射到所述预设基准平面。Projecting the obtained screen rendering picture to the preset reference plane according to the deviation angle.
其中一种可能的实现方式中,所述根据所述偏离角度,将所述获得的屏幕渲染画面投射到所述预设基准平面,包括:In one possible implementation manner, the projecting the obtained screen rendering picture to the preset reference plane according to the deviation angle includes:
获得所述偏离角度相较于所述预设基准平面的偏离方向;Obtaining the deviation direction of the deviation angle compared to the preset reference plane;
沿着与所述偏离方向相反的目标方向,将所述获得的屏幕渲染画面投射到所述预设基准平面。Projecting the obtained screen rendering picture onto the preset reference plane along a target direction opposite to the deviation direction.
其中一种可能的实现方式中,所述获得对应转动预设角度的所述终端显示面板在当前时刻对应的屏幕渲染画面,包括:In one of the possible implementation manners, the obtaining the screen rendering picture corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment includes:
获得对应转动预设角度的所述终端显示面板在当前时刻对应的至少一个屏幕渲染画布;其中,渲染不同屏幕渲染画布所基于的显示角度不同;所述至少一个屏幕渲染画布用于形成所述屏幕渲染画面;Obtaining at least one screen rendering canvas corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment; wherein, different screen rendering canvases are rendered based on different display angles; the at least one screen rendering canvas is used to form the screen rendering screen;
将所述获得的屏幕渲染画面投射到所述预设基准平面,得到在所述预设基准平面的屏幕显示画面,包括:Projecting the obtained screen rendering picture onto the preset reference plane to obtain a screen display picture on the preset reference plane, including:
将渲染每个屏幕渲染画布所基于的显示角度和所述偏离角度输入预设的补 偿角度计算模型,得到每个屏幕渲染画布的投射位置;其中,至少一个所述屏幕渲染画布的投射位置与所述预设基准平面的位置重合;Input the display angle and the deviation angle based on which each screen rendering canvas is rendered into the preset compensation angle calculation model to obtain the projection position of each screen rendering canvas; wherein, the projection position of at least one of the screen rendering canvases is the same as the The positions of the above-mentioned preset datum planes coincide;
将每个屏幕渲染画布投射到各自对应的投射位置;Project each screen rendering canvas to their corresponding projection positions;
基于投射到预设基准平面的屏幕渲染画布,将投射到各自对应投射位置的所述至少一个屏幕渲染画布进行叠加,得到在所述预设基准平面的屏幕显示画面。Based on the screen rendering canvases projected to the preset reference plane, the at least one screen rendering canvas projected to respective corresponding projection positions are superimposed to obtain a screen display image on the preset reference plane.
其中一种可能的实现方式中,所述方法还包括:In one of the possible implementations, the method further includes:
根据所述偏离角度,在所述预设基准平面,生成与所述屏幕显示画面的大小匹配的显示窗口;Generate a display window matching the size of the screen display on the preset reference plane according to the deviation angle;
所述将所述获得的屏幕渲染画面投射到所述预设基准平面,包括:The projecting the obtained screen rendering picture to the preset reference plane includes:
将所述获得的屏幕渲染画面投射到所述预设基准平面的所述显示窗口中。Projecting the obtained screen rendering picture into the display window of the preset reference plane.
其中一种可能的实现方式中,所述获得对应转动预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度,包括:In one of the possible implementation manners, the obtaining the deviation angle of the terminal display panel corresponding to the preset rotation angle compared with the preset reference plane at the current moment includes:
通过内置的陀螺仪传感器,获得对应转动所述预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度。By using the built-in gyro sensor, the deviation angle of the terminal display panel corresponding to the rotation of the preset angle compared with the preset reference plane at the current moment is obtained.
其中一种可能的实现方式中,所述获得所述偏离角度相较于所述预设基准平面的偏离方向;In one of the possible implementation manners, the obtaining the deviation direction of the deviation angle compared to the preset reference plane;
通过内置的加速度传感器,获得所述偏离角度相较于所述预设基准平面的偏离方向。A deviation direction of the deviation angle compared to the preset reference plane is obtained through a built-in acceleration sensor.
第二方面,本发明实施例提供一种画面显示装置,设置在电子设备终端中,所述装置包括:In the second aspect, an embodiment of the present invention provides a screen display device, which is set in an electronic device terminal, and the device includes:
转动模块,用于在终端显示面板相较于预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻对应的屏幕渲染画面;The rotation module is used to obtain the screen rendering picture corresponding to the terminal display panel corresponding to the rotation preset angle at the current moment when the terminal display panel is rotated by a preset angle compared with the preset reference plane;
屏幕显示画面获得模块,用于将所述获得的屏幕渲染画面投射到所述预设基准平面,得到在所述预设基准平面的屏幕显示画面。The screen display image obtaining module is configured to project the obtained screen rendering image onto the preset reference plane to obtain a screen display image on the preset reference plane.
其中一种可能的实现方式中,所述屏幕显示画面获得模块包括:In one of the possible implementation manners, the screen display image acquisition module includes:
偏离角度获得子模块,用于在所述终端显示面板相较于所述预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度;The deviation angle obtaining sub-module is used to obtain the corresponding rotation preset angle of the terminal display panel at the current moment compared with the preset reference plane every time the terminal display panel rotates a preset angle. The deviation angle of the preset datum plane;
第一投射子模块,用于根据所述偏离角度,将所述获得的屏幕渲染画面投射到所述预设基准平面。The first projecting sub-module is configured to project the obtained screen rendering picture to the preset reference plane according to the deviation angle.
其中一种可能的实现方式中,所述第一投射子模块包括:In one possible implementation manner, the first projecting submodule includes:
偏离方向获得子单元,用于获得所述偏离角度相较于所述预设基准平面的偏离方向;a deviation direction obtaining subunit, configured to obtain a deviation direction of the deviation angle compared with the preset reference plane;
目标方向投射子单元,用于沿着与所述偏离方向相反的目标方向,将所述获得的屏幕渲染画面投射到所述预设基准平面。The target direction projecting subunit is configured to project the obtained screen rendering picture onto the preset reference plane along a target direction opposite to the deviation direction.
其中一种可能的实现方式中,所述转动模块包括:In one of the possible implementation manners, the rotating module includes:
渲染子模块,用于获得对应转动预设角度的所述终端显示面板在当前时刻对应的至少一个屏幕渲染画布;其中,渲染不同屏幕渲染画布所基于的显示角度不同;所述至少一个屏幕渲染画布用于形成所述屏幕渲染画面;The rendering sub-module is used to obtain at least one screen rendering canvas corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment; wherein, the display angles on which different screen rendering canvases are rendered are different; the at least one screen rendering canvas for forming the screen rendering picture;
所述屏幕显示画面获得模块包括:The screen display frame acquisition module includes:
输入子模块,用于将渲染每个屏幕渲染画布所基于的显示角度和所述偏离角度输入预设的补偿角度计算模型,得到每个屏幕渲染画布的投射位置;其中,至少一个所述屏幕渲染画布的投射位置与所述预设基准平面的位置重合;The input sub-module is used to input the display angle based on rendering each screen rendering canvas and the deviation angle into the preset compensation angle calculation model to obtain the projection position of each screen rendering canvas; wherein at least one of the screen rendering The projection position of the canvas coincides with the position of the preset reference plane;
第二投射子模块,用于将每个屏幕渲染画布投射到各自对应的投射位置;The second projecting sub-module is used to project each screen rendering canvas to its corresponding projecting position;
叠加子模块,用于基于投射到预设基准平面的屏幕渲染画布,将投射到各自对应投射位置的所述至少一个屏幕渲染画布进行叠加,得到在所述预设基准平面的屏幕显示画面。The superposition sub-module is configured to superimpose the at least one screen rendering canvas projected to their corresponding projection positions based on the screen rendering canvases projected on the preset reference plane, to obtain a screen display picture on the preset reference plane.
其中一种可能的实现方式中,所述装置还包括:In one of the possible implementation manners, the device further includes:
生成模块,用于根据所述偏离角度,在所述预设基准平面,生成与所述屏幕显示画面的大小匹配的显示窗口;A generating module, configured to generate a display window matching the size of the screen display on the preset reference plane according to the deviation angle;
所述屏幕显示画面获得模块包括:The screen display frame acquisition module includes:
第三投射子模块,用于将所述获得的屏幕渲染画面投射到所述预设基准平面的所述显示窗口中。The third projecting sub-module is configured to project the obtained screen rendering picture into the display window of the preset reference plane.
其中一种可能的实现方式中,所述偏离角度获得子模块包括:In one possible implementation manner, the submodule for obtaining the deviation angle includes:
偏离角度获取子单元,用于通过内置的陀螺仪传感器,获得对应转动所述预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度。The deviation angle acquisition subunit is configured to obtain, through a built-in gyro sensor, a deviation angle of the terminal display panel that is rotated corresponding to the preset angle relative to the preset reference plane at the current moment.
其中一种可能的实现方式中,所述偏离方向获得子单元具体用于通过内置的加速度传感器,获得所述偏离角度相较于所述预设基准平面的偏离方向。In one possible implementation manner, the deviation direction obtaining subunit is specifically configured to obtain a deviation direction of the deviation angle compared with the preset reference plane through a built-in acceleration sensor.
第三方面,本发明实施例提供一种终端设备,包括:至少一个处理器;以及与所述处理器通信连接的至少一个存储器,其中:所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行第一方面提供的方法。In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor; and at least one memory communicated with the processor, wherein: the memory stores a program executable by the processor Instructions, the processor invokes the program instructions to execute the method provided in the first aspect.
第四方面,本发明实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行第一方面提供的方法。In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the method provided in the first aspect.
应当理解的是,本发明实施例的第二~四方面与本发明实施例的第一方面的技术方案一致,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second to fourth aspects of the embodiments of the present invention are consistent with the technical solutions of the first aspect of the embodiments of the present invention, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manners are similar, so details are not repeated here.
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1是电子终端设备的终端显示面板旋转示意图;Fig. 1 is a schematic diagram of rotation of a terminal display panel of an electronic terminal device;
图2是本发明实施例提出的画面显示方法的步骤流程图;FIG. 2 is a flow chart of the steps of the screen display method proposed by the embodiment of the present invention;
图3是本发明一种示例将屏幕渲染画面投射到预设基准平面的示意图;Fig. 3 is a schematic diagram of projecting a screen rendering picture to a preset reference plane according to an example of the present invention;
图4是本发明一种示例将至少一个屏幕渲染画布形成的屏幕渲染画面投射到预设基准平面的示意图;Fig. 4 is a schematic diagram of projecting a screen rendering picture formed by at least one screen rendering canvas to a preset reference plane according to an example of the present invention;
图5是本发明一种示例电子终端设备执行画面显示方法的流程图;Fig. 5 is a flow chart of an exemplary electronic terminal device execution screen display method according to the present invention;
图6是经过本发明一种示例提出的画面显示方法处理后终端显示面板显示屏幕显示画面的效果图;Fig. 6 is an effect diagram of a terminal display panel display screen display screen after being processed by a screen display method proposed by an example of the present invention;
图7是本发明实施例提出的画面显示装置的功能模块图;7 is a functional block diagram of a screen display device proposed by an embodiment of the present invention;
图8为本发明实施例提供的一种电子终端设备的结构示意图;FIG. 8 is a schematic structural diagram of an electronic terminal device provided by an embodiment of the present invention;
图9为本说明书一个实施例提供的终端设备的结构示意图。FIG. 9 is a schematic structural diagram of a terminal device provided by an embodiment of this specification.
为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。In order to better understand the technical solutions of the present application, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only some of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。Terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of this application and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.
图1是电子终端设备的终端显示面板旋转示意图,如图1所示,电子终端设备旋转之前,其终端显示面板11与用户视线的角度为90°,用户处于最佳观看角度,电子终端设备发生旋转,偏离了其原本所在的平面,旋转后的终端显示面板12与用户视线的角度为120°,旋转后的终端显示面板12偏离了用户观看的最佳角度。用户必须调整自己的视线,才能观看到旋转后的终端显示面板12展示的完整画面,导致用户体验感较差。Figure 1 is a schematic diagram of the rotation of the terminal display panel of the electronic terminal device. As shown in Figure 1, before the electronic terminal device rotates, the angle between the terminal display panel 11 and the user's line of sight is 90°, and the user is at the best viewing angle. The rotation deviates from its original plane, the angle between the rotated terminal display panel 12 and the user's line of sight is 120°, and the rotated terminal display panel 12 deviates from the best viewing angle for the user. The user has to adjust his line of sight in order to watch the complete picture displayed by the rotated terminal display panel 12, resulting in poor user experience.
为解决电子终端设备旋转,终端显示面板偏离用户原本的视线,终端显示面板无法展示与用户视线匹配的画面的问题,本发明实施例提出一种画面显示方法, 用于电子终端设备,电子终端设备可以是平板、电脑、手机等携带显示面板的电子设备。In order to solve the problem that the electronic terminal equipment rotates, the terminal display panel deviates from the user's original line of sight, and the terminal display panel cannot display a picture that matches the user's line of sight, an embodiment of the present invention proposes a picture display method for electronic terminal equipment, electronic terminal equipment It may be an electronic device carrying a display panel such as a tablet, a computer, or a mobile phone.
图2是本发明实施例提出的画面显示方法的步骤流程图,如图2所示,步骤包括:Fig. 2 is a flow chart of the steps of the screen display method proposed by the embodiment of the present invention. As shown in Fig. 2, the steps include:
步骤S21:在终端显示面板相较于预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻对应的屏幕渲染画面。Step S21: Obtain a screen rendering picture corresponding to the current moment of the terminal display panel corresponding to the preset rotation angle every time the terminal display panel is rotated by a preset angle compared with the preset reference plane.
预设基准平面是电子终端设备中预先设置的水平平面或竖直平面。预设角度可以是任意的数值,根据终端显示面板展示画面的精确度设定,预设角度越小,电子终端设备获得屏幕渲染画面,并将屏幕渲染画面投射到预设基准平面的频率越高,终端显示面板呈现的屏幕显示画面效果越好。The preset reference plane is a preset horizontal plane or vertical plane in the electronic terminal equipment. The preset angle can be any value. According to the accuracy setting of the display screen of the terminal display panel, the smaller the preset angle is, the higher the frequency that the electronic terminal device obtains the screen rendering image and projects the screen rendering image to the preset reference plane , the better the screen display effect presented by the terminal display panel is.
屏幕渲染画面是电子终端设备根据当前画面数据输出的画面,可以利用电子终端设备的GPU模块,根据当前画面数据渲染得到屏幕渲染画面。屏幕显示画面是终端显示面板显示的画面。The screen rendering picture is a picture output by the electronic terminal device according to the current picture data, and the GPU module of the electronic terminal device can be used to render the screen rendering picture according to the current picture data. The screen display picture is a picture displayed on the display panel of the terminal.
步骤S22:将所述获得的屏幕渲染画面投射到所述预设基准平面,得到在所述预设基准平面的屏幕显示画面。Step S22: Projecting the obtained screen rendering image onto the preset reference plane to obtain a screen display image on the preset reference plane.
在本发明一种示例中,预设角度为1°,电子终端设备发生旋转之前,终端显示面板与预设基准平面重合,t1电子终端设备转动1°,终端显示面板与预设基准平面夹角为1°,获得t1时刻根据图像数据输出的屏幕渲染画面A1,将屏幕渲染画面A1投射到预设基准平面;t2电子终端设备转动1°,终端显示面板与预设基准平面夹角为2°,获得t2时刻根据图像数据输出的屏幕渲染画面A2,将屏幕渲染画面A2投射到预设基准平面;t3电子终端设备转动1°,终端显示面板与预设基准平面夹角为3°,获得t3时刻根据图像数据输出的屏幕渲染画面A3,将屏幕渲染画面A3投射到预设基准平面;电子终端设备在终端显示面板随自身旋转的过程中,每转动1°,都会将当前时刻的屏幕渲染画面投射到预设基准平面,而预设基准平面与用户视线的夹角不变,那么在旋转过程中,无论终端 显示面板如何旋转,投射到预设基准平面从而在预设基准平面展示的屏幕显示画面始终与用户视线的夹角不变。In an example of the present invention, the preset angle is 1°. Before the electronic terminal device rotates, the terminal display panel coincides with the preset reference plane, t1 the electronic terminal device rotates 1°, and the angle between the terminal display panel and the preset reference plane is is 1°, obtain the screen rendering picture A1 output according to the image data at time t1, and project the screen rendering picture A1 onto the preset reference plane; at t2, the electronic terminal equipment rotates 1°, and the angle between the terminal display panel and the preset reference plane is 2° , obtain the screen rendering picture A2 output according to the image data at time t2, and project the screen rendering picture A2 onto the preset reference plane; at t3, the electronic terminal equipment rotates 1°, the angle between the terminal display panel and the preset reference plane is 3°, and t3 is obtained According to the screen rendering picture A3 output by the image data at all times, the screen rendering picture A3 is projected to the preset reference plane; when the terminal display panel rotates with itself, the electronic terminal equipment will turn the current screen rendering picture A3 every time it rotates 1° Projected to the preset reference plane, and the angle between the preset reference plane and the user's line of sight remains unchanged, then during the rotation process, no matter how the terminal display panel rotates, it is projected to the preset reference plane so that the screen displayed on the preset reference plane The angle between the screen and the user's line of sight is always the same.
本发明实施例电子终端设备在旋转过程中,不直接将获得的屏幕渲染画面展示在终端显示面板,而是在终端显示面板展示画面之前,将获得的屏幕渲染画面投射到预设基准平面,再将投射到预设基准平面的屏幕显示画面展示在终端显示面板,在电子终端设备旋转过程中,无论终端显示面板与用户视线之间的角度发生何种变化,终端显示面板展示的画面都处于用户视线的最佳观看位置。During the rotation process of the electronic terminal device in the embodiment of the present invention, instead of directly displaying the obtained screen rendering picture on the terminal display panel, it projects the obtained screen rendering picture onto a preset reference plane before displaying the picture on the terminal display panel, and then The screen display screen projected onto the preset reference plane is displayed on the terminal display panel. During the rotation of the electronic terminal device, no matter what changes in the angle between the terminal display panel and the user's line of sight, the screen displayed on the terminal display panel is always at the user's Optimal viewing position in line of sight.
本发明另一种实施例提出将屏幕渲染画面投射到预设基准平面的一种实现方法,步骤包括:Another embodiment of the present invention proposes an implementation method for projecting a screen rendering image onto a preset reference plane, the steps of which include:
步骤S221:在所述终端显示面板相较于所述预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度。Step S221: When the terminal display panel is compared with the preset reference plane, each time the preset angle is rotated, obtain the corresponding rotation preset angle of the terminal display panel at the current moment compared with the preset reference plane Angle of deviation.
偏离角度是终端显示面板在当前时刻与预设基准平面的夹角。The deviation angle is the included angle between the display panel of the terminal and the preset reference plane at the current moment.
电子终端设备可以计算终端显示面板开始旋转到当前时刻的旋转时间,获取预设角度,计算在旋转时间中,终端显示面板旋转的次数,得到当前时刻终端显示面板偏离角度。The electronic terminal device can calculate the rotation time from the start of the terminal display panel to the current moment, obtain the preset angle, calculate the number of rotations of the terminal display panel during the rotation time, and obtain the deviation angle of the terminal display panel at the current moment.
在本发明另一种实施例中,电子终端设备还可以通过内置的陀螺仪传感器,获得对应转动所述预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度。通过内置的陀螺仪传感器,可以直接获得终端显示面板在当前时刻相较于预设基准平面的偏离角度,节省了电子终端设备的计算时间。In another embodiment of the present invention, the electronic terminal device can also use the built-in gyro sensor to obtain the deviation of the terminal display panel corresponding to the rotation of the preset angle from the preset reference plane at the current moment. angle. Through the built-in gyro sensor, the deviation angle of the terminal display panel at the current moment compared with the preset reference plane can be directly obtained, which saves calculation time of the electronic terminal equipment.
步骤S222:根据所述偏离角度,将所述获得的屏幕渲染画面投射到所述预设基准平面。Step S222: Project the obtained screen rendering picture onto the preset reference plane according to the deviation angle.
图3是本发明一种示例将屏幕渲染画面投射到预设基准平面的示意图,如图3所示,预设角度是10°,t3时刻终端显示面板从与预设基准平面的夹角是20°的位置,旋转到与预设基准平面的夹角是30°的位置。根据终端显示面板与预设基 准平面的30°夹角,得到投射方向,将屏幕渲染画面投射到预设基准平面。Fig. 3 is a schematic diagram of an example of the present invention projecting a screen rendering picture onto a preset reference plane. As shown in Fig. 3, the preset angle is 10°, and the angle between the terminal display panel and the preset reference plane at time t3 is 20° ° position, rotate to the position where the included angle with the preset datum plane is 30°. According to the 30° included angle between the terminal display panel and the preset reference plane, the projection direction is obtained, and the screen rendering image is projected to the preset reference plane.
本发明实施例在终端显示面板显示画面之前,获得终端显示面板在当前时刻相较于预设基准平面的偏离角度,依据该偏离角度,将当前时刻得到的屏幕渲染画面投射到预设基准平面,使得终端显示面板在当前时刻显示到投射到预设基准平面的屏幕渲染画面,使得屏幕显示画面不随终端显示面板旋转,不随终端显示面板偏离用户原本的视线,保证终端显示面板在旋转过程中的每个时刻,显示的都是在预设基准平面的屏幕显示画面。In the embodiment of the present invention, before the terminal display panel displays the picture, the deviation angle of the terminal display panel at the current moment compared with the preset reference plane is obtained, and according to the deviation angle, the screen rendering picture obtained at the current moment is projected onto the preset reference plane, Make the terminal display panel display the screen rendering picture projected to the preset reference plane at the current moment, so that the screen display picture does not rotate with the terminal display panel, does not deviate from the user's original line of sight with the terminal display panel, and ensures that every time the terminal display panel rotates At this moment, all the screen displays on the preset reference plane are displayed.
本发明另一种实施例提出将屏幕渲染画面投射到预设基准平面的另一种实现方法。本发明实施例中屏幕渲染画面是由多个屏幕渲染画布形成的。可以基于不同显示角度,渲染相同图像数据,得到多个不同的屏幕渲染画布。示例地,一颗树的图像数据,修改拍摄角度数据,渲染得到基于45°显示一颗树,和基于90°显示一颗树的屏幕渲染画布。为显著增强图像的细节,图像采集设备在采集图像或视频时,也会基于不同的角度采集图像或视频,得到拍摄相同目标得到的不同图像数据,电子终端设备的GPU模块根据不同图像数据,渲染得到至少一个不同的屏幕渲染画布。Another embodiment of the present invention proposes another implementation method of projecting a screen rendering picture to a preset reference plane. In the embodiment of the present invention, the screen rendering picture is formed by multiple screen rendering canvases. The same image data can be rendered based on different display angles to obtain multiple different screen rendering canvases. For example, the image data of a tree is modified to render the shooting angle data to obtain a screen rendering canvas that displays a tree based on 45° and displays a tree based on 90°. In order to significantly enhance the details of the image, when the image acquisition device collects images or videos, it also collects images or videos based on different angles to obtain different image data obtained by shooting the same target. The GPU module of the electronic terminal device renders Get at least one different screen rendering canvas.
获得的至少一个屏幕渲染画布叠加可以得到屏幕渲染画面。The obtained at least one screen rendering canvas overlay can obtain a screen rendering picture.
步骤S21包括子步骤S211:获得对应转动预设角度的所述终端显示面板在当前时刻对应的至少一个屏幕渲染画布;其中,渲染不同屏幕渲染画布所基于的显示角度不同;所述至少一个屏幕渲染画布用于形成所述屏幕渲染画面。Step S21 includes sub-step S211: Obtain at least one screen rendering canvas corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment; where the rendering canvases for different screens are based on different display angles; the at least one screen rendering The canvas is used to form the screen rendering picture.
终端显示面板在当前时刻对应的至少一个屏幕渲染画布,是电子终端设备在当前时刻渲染得到的至少一个屏幕渲染画布。The at least one screen rendering canvas corresponding to the terminal display panel at the current moment is at least one screen rendering canvas rendered by the electronic terminal device at the current moment.
基于至少一个屏幕渲染画布,将至少一个屏幕渲染画布形成的屏幕渲染画面投射到预设基准平面的步骤包括:Based on the at least one screen rendering canvas, the step of projecting the screen rendering picture formed by the at least one screen rendering canvas to a preset reference plane includes:
步骤S22-1:将渲染每个屏幕渲染画布所基于的显示角度和所述偏离角度输入预设的补偿角度计算模型,得到每个屏幕渲染画布的投射位置;其中,至少一 个所述屏幕渲染画布的投射位置与所述预设基准平面的位置重合。Step S22-1: Input the display angle based on rendering each screen rendering canvas and the deviation angle into the preset compensation angle calculation model to obtain the projection position of each screen rendering canvas; wherein at least one of the screen rendering canvases The projection position of is coincident with the position of the preset reference plane.
预设的补偿角度计算模型可以根据屏幕渲染画布所基于的显示角度,和终端显示面板在当前时刻的偏离角度,调试得到屏幕渲染画布的投射位置。示例地,电子终端设备得到基于显示角度45°的屏幕渲染画布A2,终端显示面板与预设基准平面的偏离角度是60°,直接将屏幕渲染画布A2投射到预设基准平面会导致屏幕渲染画布A2的显示角度不再是60°;补偿角度计算模型可以通过以显示角度45°为基准,自适应调试得到渲染画布A2的投射位置。屏幕渲染画布投射到其本身的投射位置,可以加强投射到预设基准平面的屏幕渲染画布的显示细节。The preset compensation angle calculation model can be debugged to obtain the projection position of the screen rendering canvas according to the display angle on which the screen rendering canvas is based and the deviation angle of the terminal display panel at the current moment. For example, the electronic terminal equipment obtains the screen rendering canvas A2 based on the display angle of 45°, and the deviation angle between the terminal display panel and the preset reference plane is 60°, directly projecting the screen rendering canvas A2 to the preset reference plane will cause the screen rendering canvas The display angle of A2 is no longer 60°; the compensation angle calculation model can get the projection position of the rendering canvas A2 through adaptive debugging based on the display angle of 45°. The screen rendering canvas is projected to its own projection position, which can enhance the display details of the screen rendering canvas projected to the preset reference plane.
预设的补偿角度计算模型还可以根据至少一个屏幕渲染画布的数量,结合终端显示面板在当前时刻的偏离角度,以及每个屏幕渲染画布所基于的显示角度,以叠加出能够补偿终端显示面板在当前时刻的偏离极端的画面作为调试基准,输出每个屏幕渲染画布的投射位置。The preset compensation angle calculation model can also be based on the number of at least one screen rendering canvas, combined with the deviation angle of the terminal display panel at the current moment, and the display angle based on each screen rendering canvas, so as to superimpose a The extreme screen at the current moment is used as a debugging benchmark, and the projection position of each screen rendering canvas is output.
可以将至少一个所述屏幕渲染画布中显示角度是90°的屏幕渲染画布作为投射到预设基准平面的目标屏幕渲染画布。可以将最能在预设基准平面显示图像细节的屏幕渲染画布,作为投射到预设基准平面的目标屏幕渲染画布。还可以将通过预设的补偿角度计算模型的计算后,得到的投射到预设基准平面后符合用户最佳观看角度的屏幕渲染画布,作为投射到预设基准平面的目标屏幕渲染画布。例如,用户最佳观看角度是50°,屏幕渲染画布A3的显示角度是70度,终端显示面板在当前时间的偏离角度是10度,经过预设的补偿角度计算模型的计算,屏幕渲染画布A3投射到预设基准平面后,显示角度是50°,则将屏幕渲染画布A3作为目标屏幕渲染画布,确定屏幕渲染画布A3的投射位置与预设基准平面的位置重合。A screen rendering canvas whose display angle is 90° among at least one of the screen rendering canvases may be used as a target screen rendering canvas projected to a preset reference plane. The screen rendering canvas that can best display image details on the preset reference plane can be used as the target screen rendering canvas projected to the preset reference plane. It is also possible to use the screen rendering canvas that is projected to the preset reference plane and meets the user's best viewing angle obtained after the calculation of the preset compensation angle calculation model as the target screen rendering canvas projected to the preset reference plane. For example, the user's best viewing angle is 50°, the display angle of the screen rendering canvas A3 is 70 degrees, and the deviation angle of the terminal display panel at the current time is 10 degrees. After the calculation of the preset compensation angle calculation model, the screen rendering canvas A3 After projecting to the preset reference plane, the display angle is 50°, then use the screen rendering canvas A3 as the target screen rendering canvas, and make sure that the projection position of the screen rendering canvas A3 coincides with the position of the preset reference plane.
投射位置与预设基准平面的位置重合的目标屏幕渲染画布,可以是预先确定的,也可以是通过预设的补偿角度计算模型调试得到的。The target screen rendering canvas whose projection position coincides with the position of the preset reference plane may be predetermined, or may be obtained through debugging of a preset compensation angle calculation model.
步骤S22-2:将每个屏幕渲染画布投射到各自对应的投射位置。Step S22-2: Project each screen rendering canvas to its corresponding projection position.
步骤S22-3:基于投射到预设基准平面的屏幕渲染画布,将投射到各自对应投射位置的所述至少一个屏幕渲染画布进行叠加,得到在所述预设基准平面的屏幕显示画面。Step S22-3: Based on the screen rendering canvases projected to the preset reference plane, superimpose the at least one screen rendering canvas projected to their corresponding projection positions to obtain a screen display image on the preset reference plane.
图4是本发明一种示例将至少一个屏幕渲染画布形成的屏幕渲染画面投射到预设基准平面的示意图,如图4所示,终端显示面板40与预设基准平面45的偏离角度是30°,终端显示面板在当前时刻对应的屏幕渲染画布41、屏幕渲染画布42、屏幕渲染画布43、屏幕渲染画布44,通过预设的补偿角度计算模型,调试得到屏幕渲染画布41的投射位置与预设基准平面45的夹角是5°,调试得到屏幕渲染画布42的投射位置与预设基准平面45的位置重合,调试得到屏幕渲染画布43的投射位置与预设基准平面45的夹角是15°,调试得到屏幕渲染画布44的投射位置与预设基准平面45的夹角是20°。分别将屏幕渲染画布41、屏幕渲染画布42、屏幕渲染画布43、屏幕渲染画布44投射到各自的投射位置,基于投射到预设基准平面45的屏幕渲染画布42,叠加屏幕渲染画布41、屏幕渲染画布42、屏幕渲染画布43、屏幕渲染画布44,在预设基准平面45显示叠加后的画面,获得补偿了终端显示面板40在当前时刻的偏离角度的画面。FIG. 4 is a schematic diagram of projecting a screen rendering picture formed by at least one screen rendering canvas onto a preset reference plane according to an example of the present invention. As shown in FIG. 4 , the deviation angle between the terminal display panel 40 and the preset reference plane 45 is 30° , the screen rendering canvas 41, screen rendering canvas 42, screen rendering canvas 43, and screen rendering canvas 44 corresponding to the terminal display panel at the current moment, through the preset compensation angle calculation model, the projection position of the screen rendering canvas 41 and the preset The included angle of the reference plane 45 is 5°. After debugging, the projection position of the screen rendering canvas 42 coincides with the position of the preset reference plane 45. After debugging, the included angle between the projection position of the screen rendering canvas 43 and the preset reference plane 45 is 15°. After debugging, the included angle between the projection position of the screen rendering canvas 44 and the preset reference plane 45 is 20°. Project the screen rendering canvas 41, the screen rendering canvas 42, the screen rendering canvas 43, and the screen rendering canvas 44 to their respective projection positions, and superimpose the screen rendering canvas 41 and the screen rendering canvas 42 based on the screen rendering canvas 42 projected to the preset reference plane 45. The canvas 42 , the screen rendering canvas 43 , and the screen rendering canvas 44 display superimposed images on the preset reference plane 45 to obtain an image that compensates for the deviation angle of the terminal display panel 40 at the current moment.
本发明实施例在终端显示面板显示画面之前,先获得用于形成屏幕渲染画面的至少一个屏幕渲染画布,利用预设的补偿角度计算模型,根据每个屏幕渲染画布基于的显示角度,和终端显示面板当前时刻相较于预设基准平面的偏离角度,得到每个屏幕渲染画布的投射位置,将每个屏幕渲染画布投射到各自所在的投射位置,在投射到预设基准画面的屏幕渲染画布的基础上,叠加投射到不同位置的屏幕渲染画布,形成已经投射到预设基准画面的屏幕渲染画面。上述方法中,本发明不再直接叠加多个屏幕渲染画布得到屏幕渲染画面,而是基于不同的屏幕渲染画布显示角度,将屏幕渲染画布投射到适当的位置,再形成屏幕渲染画布,此时投射到不同位置的屏幕渲染画布都能够对投射到预设基准画面的屏幕渲染画布增强细节,由各个屏幕渲染画布叠加形成的屏幕渲染画面已经投射到了预设基 准平面,并且基于各个显示角度补偿了由终端显示面板旋转造成的用户视线偏差。In the embodiment of the present invention, before the terminal display panel displays the picture, at least one screen rendering canvas for forming the screen rendering picture is obtained first, and the preset compensation angle calculation model is used, according to the display angle based on each screen rendering canvas, and the terminal display The deviation angle of the panel at the current moment compared with the preset reference plane is used to obtain the projection position of each screen rendering canvas, and each screen rendering canvas is projected to its respective projection position, and the screen rendering canvas projected to the preset reference screen Basically, the screen rendering canvas projected to different positions is superimposed to form a screen rendering image that has been projected to the preset reference image. In the above method, the present invention no longer directly stacks multiple screen rendering canvases to obtain the screen rendering picture, but projects the screen rendering canvas to an appropriate position based on different screen rendering canvas display angles, and then forms the screen rendering canvas. At this time, the projection The screen rendering canvases at different positions can enhance the details of the screen rendering canvas projected to the preset reference picture. The screen rendering picture formed by the superposition of each screen rendering canvas has been projected to the preset reference plane, and based on each display angle. The deviation of the user's line of sight caused by the rotation of the terminal display panel.
本发明一种实施例提出将屏幕渲染画面投射到预设基准平面的再一种实现方法,步骤包括:An embodiment of the present invention proposes yet another implementation method for projecting a screen rendering image onto a preset reference plane, the steps of which include:
步骤S222-1:获得所述偏离角度相较于所述预设基准平面的偏离方向。Step S222-1: Obtain the deviation direction of the deviation angle compared to the preset reference plane.
偏离方向是终端显示面板在当前时刻旋转的方向。The deviation direction is the direction in which the display panel of the terminal rotates at the current moment.
电子终端设备可以计算终端显示面板当前时刻所在位置与预设基准平面的相对位置,得到偏离角度相较于预设基准平面的偏离方向。The electronic terminal device can calculate the relative position between the current position of the terminal display panel and the preset reference plane, and obtain the deviation direction of the deviation angle compared with the preset reference plane.
在本发明另一种实施例中,电子终端设备可以通过内置的加速度传感器,获得所述偏离角度相较于所述预设基准平面的偏离方向。通过内置的加速度传感器,可以直接获得终端显示面板在当前时刻相较于预设基准平面的偏离方向,节省了电子终端设备的计算时间。In another embodiment of the present invention, the electronic terminal device may obtain a deviation direction of the deviation angle from the preset reference plane through a built-in acceleration sensor. Through the built-in acceleration sensor, the deviation direction of the terminal display panel at the current moment compared with the preset reference plane can be directly obtained, which saves the calculation time of the electronic terminal equipment.
步骤S222-2:沿着与所述偏离方向相反的目标方向,将所述获得的屏幕渲染画面投射到所述预设基准平面。Step S222-2: Project the obtained screen rendering picture onto the preset reference plane along a target direction opposite to the deviation direction.
本发明实施例可以沿着与偏离方向相反的目标方向,将屏幕渲染画面投射到预设基准平面,不用再计算投射方向等参数,节省了电子终端设备的计算时间和计算内存。The embodiment of the present invention can project the screen rendering picture to the preset reference plane along the target direction opposite to the deviation direction, without calculating parameters such as the projection direction, which saves computing time and computing memory of the electronic terminal device.
本发明另一种实施例为解决屏幕渲染画面投射到预设基准平面,最终显示在预设基准平面的屏幕显示画面与终端显示面板大小不匹配的问题,根据所述偏离角度,在所述预设基准平面,生成与所述屏幕显示画面的大小匹配的显示窗口。再将获得的屏幕渲染画面投射到预设基准平面的显示窗口中,优化终端显示面板的显示效果,保证终端显示面板的显示界面的美观。Another embodiment of the present invention is to solve the problem that the screen rendering picture is projected onto the preset reference plane, and the screen display picture finally displayed on the preset reference plane does not match the size of the terminal display panel. A reference plane is set to generate a display window matching the size of the screen display. Then project the obtained screen rendering image into the display window of the preset reference plane, optimize the display effect of the terminal display panel, and ensure the aesthetic appearance of the display interface of the terminal display panel.
图5是本发明一种示例电子终端设备执行画面显示方法的流程图,如图5所示,画面显示的步骤包括:Fig. 5 is a flow chart of an exemplary electronic terminal device performing a screen display method according to the present invention. As shown in Fig. 5, the steps of screen display include:
步骤S51:检测终端显示面板是否出现偏离其上一次所在平面的转动。Step S51: Detect whether the display panel of the terminal has been rotated away from its last plane.
步骤S52:检测到终端显示面板出现偏离其上一次所在平面的转动时,通过 陀螺仪传感器,获得终端显示面板在当前时刻相较于所述预设基准平面的偏离角度。通过加速度传感器,获得偏离角度相较于预设基准平面的偏离方向。Step S52: When it is detected that the terminal display panel has deviated from its previous rotation, the deviation angle of the terminal display panel at the current moment compared with the preset reference plane is obtained through the gyro sensor. Through the acceleration sensor, the deviation direction of the deviation angle compared with the preset reference plane is obtained.
步骤S53:电子终端设备的CPU根据偏离角度和偏离方向,生成终端显示面板显示窗口,生成的显示窗口大小与终端显示面板最终显示的屏幕显示画面的大小匹配。Step S53: The CPU of the electronic terminal device generates a display window of the terminal display panel according to the deviation angle and deviation direction, and the size of the generated display window matches the size of the screen display finally displayed on the terminal display panel.
步骤S54:电子终端设备根据偏离角度和偏离方向,获得当前时刻对应的至少一个屏幕渲染画布中每个屏幕渲染画布的投射位置。电子终端设备的GPU在渲染得到屏幕渲染画布的过程中,将屏幕渲染画布投射到投射位置,叠加多个屏幕渲染画布,得到用于在终端显示面板展示的屏幕显示画面。Step S54: The electronic terminal device obtains the projection position of each screen rendering canvas in the at least one screen rendering canvas corresponding to the current moment according to the deviation angle and deviation direction. During rendering to obtain the screen rendering canvas, the GPU of the electronic terminal device projects the screen rendering canvas to the projection position, superimposes multiple screen rendering canvases, and obtains a screen display image for displaying on the terminal display panel.
GPU渲染字体效果,调整字体的阴影效果。GPU renders font effects and adjusts the shadow effect of fonts.
步骤S55:将屏幕显示画面发送到LCD面板显示。使得得到的屏幕渲染画面为投射在预设基准平面的屏幕渲染画面,在终端显示面板旋转过程中,实现屏幕渲染画面的反向旋转,从而能在终端显示面板旋转过程中,投射屏幕渲染画面到预设基准平面得到的屏幕显示画面能够补偿终端显示面板的旋转角度。Step S55: Send the screen display image to the LCD panel for display. The obtained screen rendering picture is the screen rendering picture projected on the preset reference plane. During the rotation process of the terminal display panel, the reverse rotation of the screen rendering picture is realized, so that during the rotation process of the terminal display panel, the screen rendering picture can be projected to The screen display image obtained by presetting the reference plane can compensate the rotation angle of the display panel of the terminal.
图6是经过本发明一种示例提出的画面显示方法处理后终端显示面板显示屏幕显示画面的效果图。如图6所示,本发明实施例提出的画面显示方法,生成始终位于预设基准平面的屏幕显示画面,从而能够在终端显示面板旋转过程中,保证屏幕显示画面始终与用户视线的角度不变,终端显示面板的旋转不会影响用户的观看视线,提高了用户的体验感。FIG. 6 is an effect diagram of a display screen displayed on a display panel of a terminal after being processed by a screen display method proposed by an example of the present invention. As shown in Figure 6, the screen display method proposed by the embodiment of the present invention generates a screen display screen that is always located on a preset reference plane, thereby ensuring that the angle between the screen display screen and the user's line of sight is always constant during the rotation of the terminal display panel Therefore, the rotation of the display panel of the terminal will not affect the viewing sight of the user, which improves the experience of the user.
图7是本发明实施例提出的画面显示装置的功能模块图,上述画面显示装置设置在终端设备中,如图7所示,所述装置包括:Fig. 7 is a functional module diagram of a screen display device proposed by an embodiment of the present invention. The above screen display device is set in a terminal device, as shown in Fig. 7 , the device includes:
转动模块71,用于在终端显示面板相较于预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻对应的屏幕渲染画面;The rotation module 71 is used to obtain the screen rendering picture corresponding to the terminal display panel corresponding to the rotation preset angle at the current moment when the terminal display panel is rotated by a preset angle compared with the preset reference plane;
屏幕显示画面获得模块72,用于将所述获得的屏幕渲染画面投射到所述预设基准平面,得到在所述预设基准平面的屏幕显示画面。The screen display picture obtaining module 72 is configured to project the obtained screen rendering picture onto the preset reference plane to obtain a screen display picture on the preset reference plane.
图8所示实施例提供的画面显示装置可用于执行本说明书图1至图6所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。The screen display device provided by the embodiment shown in FIG. 8 can be used to implement the technical solutions of the method embodiments shown in FIGS. 1 to 6 in this specification. For its realization principle and technical effect, further reference can be made to the relevant descriptions in the method embodiments.
可选地,所述屏幕显示画面获得模块包括:Optionally, the screen display frame acquisition module includes:
偏离角度获得子模块,用于在所述终端显示面板相较于所述预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度;The deviation angle obtaining sub-module is used to obtain the corresponding rotation preset angle of the terminal display panel at the current moment compared with the preset reference plane every time the terminal display panel rotates a preset angle. The deviation angle of the preset datum plane;
第一投射子模块,用于根据所述偏离角度,将所述获得的屏幕渲染画面投射到所述预设基准平面。The first projecting sub-module is configured to project the obtained screen rendering picture to the preset reference plane according to the deviation angle.
可选地,所述第一投射子模块包括:Optionally, the first projection submodule includes:
偏离方向获得子单元,用于获得所述偏离角度相较于所述预设基准平面的偏离方向;a deviation direction obtaining subunit, configured to obtain a deviation direction of the deviation angle compared with the preset reference plane;
目标方向投射子单元,用于沿着与所述偏离方向相反的目标方向,将所述获得的屏幕渲染画面投射到所述预设基准平面。The target direction projecting subunit is configured to project the obtained screen rendering picture onto the preset reference plane along a target direction opposite to the deviation direction.
可选地,所述转动模块包括:Optionally, the rotating module includes:
渲染子模块,用于获得对应转动预设角度的所述终端显示面板在当前时刻对应的至少一个屏幕渲染画布;其中,渲染不同屏幕渲染画布所基于的显示角度不同;所述至少一个屏幕渲染画布用于形成所述屏幕渲染画面;The rendering sub-module is used to obtain at least one screen rendering canvas corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment; wherein, the display angles on which different screen rendering canvases are rendered are different; the at least one screen rendering canvas for forming the screen rendering picture;
所述屏幕显示画面获得模块包括:The screen display frame acquisition module includes:
输入子模块,用于将渲染每个屏幕渲染画布所基于的显示角度和所述偏离角度输入预设的补偿角度计算模型,得到每个屏幕渲染画布的投射位置;其中,至少一个所述屏幕渲染画布的投射位置与所述预设基准平面的位置重合;The input sub-module is used to input the display angle based on rendering each screen rendering canvas and the deviation angle into the preset compensation angle calculation model to obtain the projection position of each screen rendering canvas; wherein at least one of the screen rendering The projection position of the canvas coincides with the position of the preset reference plane;
第二投射子模块,用于将每个屏幕渲染画布投射到各自对应的投射位置;The second projecting sub-module is used to project each screen rendering canvas to its corresponding projecting position;
叠加子模块,用于基于投射到预设基准平面的屏幕渲染画布,将投射到各自对应投射位置的所述至少一个屏幕渲染画布进行叠加,得到在所述预设基准平面 的屏幕显示画面。The overlay sub-module is configured to superimpose the at least one screen rendering canvas projected to each corresponding projection position based on the screen rendering canvas projected onto the preset reference plane, to obtain a screen display picture on the preset reference plane.
可选地,所述装置还包括:Optionally, the device also includes:
生成模块,用于根据所述偏离角度,在所述预设基准平面,生成与所述屏幕显示画面的大小匹配的显示窗口;A generating module, configured to generate a display window matching the size of the screen display on the preset reference plane according to the deviation angle;
所述屏幕显示画面获得模块包括:The screen display frame acquisition module includes:
第三投射子模块,用于将所述获得的屏幕渲染画面投射到所述预设基准平面的所述显示窗口中。The third projecting sub-module is configured to project the obtained screen rendering picture into the display window of the preset reference plane.
可选地,所述偏离角度获得子模块包括:Optionally, the submodule for obtaining the deviation angle includes:
偏离角度获取子单元,用于通过内置的陀螺仪传感器,获得对应转动所述预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度。The deviation angle acquisition subunit is configured to obtain, through a built-in gyro sensor, a deviation angle of the terminal display panel that is rotated corresponding to the preset angle relative to the preset reference plane at the current moment.
可选地,所述偏离方向获得子单元具体用于通过内置的加速度传感器,获得所述偏离角度相较于所述预设基准平面的偏离方向。Optionally, the deviation direction obtaining subunit is specifically configured to obtain the deviation direction of the deviation angle compared with the preset reference plane through a built-in acceleration sensor.
上述所示实施例提供的装置例如可以是:芯片或者芯片模组。上述所示实施例提供的装置用于执行上述所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述,在此不再赘述。The apparatus provided in the above-mentioned embodiments may be, for example, a chip or a chip module. The device provided by the above-mentioned embodiment is used to implement the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effect can further refer to the relevant description in the method embodiment, and will not be repeated here.
关于上述实施例中描述的各个装置包含的各个模块/单元,其可以是软件模块/单元,也可以是硬件模块/单元,或者也可以部分是软件模块/单元,部分是硬件模块/单元。例如,对于应用于或集成于芯片的各个装置,其包含的各个模块/单元可以都采用电路等硬件的方式实现,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于芯片内部集成的处理器,剩余的部分模块/单元可以采用电路等硬件方式实现;对于应用于或集成于芯片模组的各个装置,其包含的各个模块/单元可以都采用电路等硬件的方式实现,不同的模块/单元可以位于芯片模组的同一组件(例如芯片、电路模块等)或者不同组件中,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于芯片模组内部集成的处理器,剩余的部分模块/单元可以采用电路等硬件方式实现;对于应用于或 集成于电子终端设备的各个装置,其包含的各个模块/单元可以都采用电路等硬件的方式实现,不同的模块/单元可以位于电子终端设备内同一组件(例如,芯片、电路模块等)或者不同组件中,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于电子终端设备内部集成的处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现。Regarding each module/unit contained in each device described in the above embodiments, it may be a software module/unit, or a hardware module/unit, or may be partly a software module/unit and partly a hardware module/unit. For example, for each device applied to or integrated in a chip, each module/unit contained therein may be realized by hardware such as a circuit, or at least part of the modules/units may be realized by a software program, and the software program runs on For the processor integrated in the chip, the remaining modules/units can be realized by hardware such as circuits; for each device applied to or integrated in the chip module, each module/unit contained in it can be realized by hardware such as circuits , different modules/units can be located in the same component of the chip module (such as chips, circuit modules, etc.) The internally integrated processor and the rest of the modules/units can be realized by hardware such as circuits; for each device applied to or integrated in electronic terminal equipment, each module/unit contained in it can be realized by hardware such as circuits. Different modules/units may be located in the same component (for example, chip, circuit module, etc.) or in different components in the electronic terminal equipment, or at least some modules/units may be implemented in the form of software programs that run on the electronic terminal equipment The internally integrated processor and the remaining (if any) modules/units can be realized by means of hardware such as circuits.
图9为本发明实施例提供的一种电子终端设备的结构示意图,该电子终端设备200包括处理器210,存储器211,存储在存储器211上并可在所述处理器210上运行的计算机程序,所述处理器210执行所述程序时实现前述方法实施例中的步骤,实施例提供的电子终端设备可用于执行本上述所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述,在此不再赘述。FIG. 9 is a schematic structural diagram of an electronic terminal device provided by an embodiment of the present invention. The electronic terminal device 200 includes a processor 210, a memory 211, and a computer program stored in the memory 211 and operable on the processor 210. When the processor 210 executes the program, the steps in the foregoing method embodiments are implemented. The electronic terminal device provided in the embodiment can be used to implement the technical solution of the method embodiment shown above. For its realization principle and technical effect, please refer to the method Relevant descriptions in the embodiments will not be repeated here.
图9为本说明书一个实施例提供的终端设备的结构示意图,如图9所示,上述终端设备可以包括至少一个处理器;以及与上述处理器通信连接的至少一个存储器,其中:存储器存储有可被处理器执行的程序指令,上述处理器调用上述程序指令能够执行本说明书图1~图6所示实施例提供的画面显示方法。Fig. 9 is a schematic structural diagram of a terminal device provided by an embodiment of this specification. As shown in Fig. 9, the above-mentioned terminal device may include at least one processor; and at least one memory communicated with the above-mentioned processor, wherein: The program instructions executed by the processor, the processor calling the program instructions can execute the screen display method provided by the embodiments shown in FIGS. 1 to 6 of this specification.
图1~图6所示实施例提供的画面显示方法可以通过以下电子终端设备来执行:芯片或者芯片模组。The screen display method provided by the embodiments shown in FIGS. 1 to 6 can be implemented by the following electronic terminal equipment: a chip or a chip module.
其中,上述终端设备可以为智能手机、平板电脑或笔记本电脑等智能电子设备,本实施例对上述终端设备的形式不作限定。Wherein, the above-mentioned terminal device may be an intelligent electronic device such as a smart phone, a tablet computer, or a notebook computer, and the form of the above-mentioned terminal device is not limited in this embodiment.
可以理解的是,本发明实施例示意的结构并不构成对终端设备100的具体限定。在本发明另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100 . In other embodiments of the present invention, the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器, 视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
处理器110通过运行存储在内部存储器121中的程序,从而执行各种功能应用以及数据处理,例如实现本发明图1~图6所示实施例提供的画面显示方法。The processor 110 executes various functional applications and data processing by running the programs stored in the internal memory 121 , for example, realizing the screen display method provided by the embodiments shown in FIGS. 1 to 6 of the present invention.
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device 100 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体 (active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the terminal device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 110 executes various functional applications and data processing of the terminal device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
本发明实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行本说明书图1~图6所示实施例提供的画面显示方法。An embodiment of the present invention provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the embodiments shown in Figures 1 to 6 of this specification Provided screen display method.
非暂态计算机可读存储介质例如可以是:芯片或者芯片模组。上述非暂态计算机可读存储介质可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(read only memory,ROM)、可擦式可编程只读存储器(erasable programmable read only memory,EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。A non-transitory computer-readable storage medium may be, for example, a chip or a chip module. Any combination of one or more computer-readable media may be used for the above-mentioned non-transitory computer-readable storage medium. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more conductors, portable computer disks, hard disks, random access memory (RAM), read only memory , ROM), erasable programmable read only memory (erasable programmable read only memory, EPROM) or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any of the above the right combination. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据 信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave traveling as a data signal. Such propagated data signals may take many forms, including - but not limited to - electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、射频(radio frequency,RF)等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to - wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本说明书操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(local area network,LAN)或广域网(wide area network,WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations described herein can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer such as use an Internet service provider to connect via the Internet).
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other implementations are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain embodiments.
在本发明实施例的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本说明书的至少一个实施例或示例中。在 本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the embodiments of the present invention, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that the descriptions described in conjunction with the embodiments or examples A particular feature, structure, material, or characteristic is included in at least one embodiment or example of the present specification. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本说明书的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of this specification, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本说明书的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本说明书的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing custom logical functions or steps of a process , and the scope of preferred embodiments of this specification includes alternative implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of this specification belong.
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detected (the stated condition or event)" could be interpreted as "when determined" or "in response to the determination" or "when detected (the stated condition or event) )" or "in response to detection of (a stated condition or event)".
需要说明的是,本发明实施例中所涉及的终端可以包括但不限于个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、无线手持设备、平板电脑(tablet computer)、手机、MP3播放器、MP4播放器等。It should be noted that the terminals involved in the embodiments of the present invention may include, but are not limited to, personal computers (personal computers, PCs), personal digital assistants (personal digital assistants, PDAs), wireless handheld devices, tablet computers (tablet computers), Mobile phones, MP3 players, MP4 players, etc.
在本说明书所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的, 例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined Or it can be integrated into another system, or some features can be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
另外,在本说明书各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(processor)执行本说明书各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or processor (processor) to execute the methods described in the various embodiments of this specification. partial steps. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program codes.
以上所述,仅为本发明的具体实施方式,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present invention, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention, which should be covered by the protection scope of the present invention. The protection scope of the present invention shall be determined by the protection scope of the claims.
Claims (16)
- 一种画面显示方法,其特征在于,应用于电子终端设备,所述方法包括:A screen display method, characterized in that it is applied to electronic terminal equipment, and the method includes:在终端显示面板相较于预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻对应的屏幕渲染画面;When the terminal display panel is compared with the preset reference plane, every time the preset angle is rotated, the screen rendering picture corresponding to the terminal display panel corresponding to the rotated preset angle at the current moment is obtained;将所述获得的屏幕渲染画面投射到所述预设基准平面,得到在所述预设基准平面的屏幕显示画面。and projecting the obtained screen rendering image onto the preset reference plane to obtain a screen display image on the preset reference plane.
- 根据权利要求1所述的方法,其特征在于,所述将所述获得的屏幕渲染画面投射到所述预设基准平面,包括:The method according to claim 1, wherein the projecting the obtained screen rendering picture onto the preset reference plane comprises:在所述终端显示面板相较于所述预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度;When the terminal display panel is compared with the preset reference plane, each time the preset angle is rotated, the deviation angle of the terminal display panel corresponding to the preset rotation angle at the current moment compared with the preset reference plane is obtained;根据所述偏离角度,将所述获得的屏幕渲染画面投射到所述预设基准平面。Projecting the obtained screen rendering picture to the preset reference plane according to the deviation angle.
- 根据权利要求2所述的方法,其特征在于,所述根据所述偏离角度,将所述获得的屏幕渲染画面投射到所述预设基准平面,包括:The method according to claim 2, wherein projecting the obtained screen rendering picture onto the preset reference plane according to the deviation angle comprises:获得所述偏离角度相较于所述预设基准平面的偏离方向;Obtaining the deviation direction of the deviation angle compared to the preset reference plane;沿着与所述偏离方向相反的目标方向,将所述获得的屏幕渲染画面投射到所述预设基准平面。Projecting the obtained screen rendering picture onto the preset reference plane along a target direction opposite to the deviation direction.
- 根据权利要求2所述的方法,其特征在于,所述获得对应转动预设角度的所述终端显示面板在当前时刻对应的屏幕渲染画面,包括:The method according to claim 2, wherein the obtaining the screen rendering picture corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment comprises:获得对应转动预设角度的所述终端显示面板在当前时刻对应的至少一个屏幕渲染画布;其中,渲染不同屏幕渲染画布所基于的显示角度不同;所述至少一个屏幕渲染画布用于形成所述屏幕渲染画面;Obtaining at least one screen rendering canvas corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment; wherein, different screen rendering canvases are rendered based on different display angles; the at least one screen rendering canvas is used to form the screen rendering screen;将所述获得的屏幕渲染画面投射到所述预设基准平面,得到在所述预设 基准平面的屏幕显示画面,包括:The obtained screen rendering picture is projected onto the preset reference plane to obtain a screen display picture on the preset reference plane, including:将渲染每个屏幕渲染画布所基于的显示角度和所述偏离角度输入预设的补偿角度计算模型,得到每个屏幕渲染画布的投射位置;其中,至少一个所述屏幕渲染画布的投射位置与所述预设基准平面的位置重合;Input the display angle and the deviation angle based on which each screen rendering canvas is rendered into the preset compensation angle calculation model to obtain the projection position of each screen rendering canvas; wherein, the projection position of at least one of the screen rendering canvases is the same as the The positions of the above-mentioned preset datum planes coincide;将每个屏幕渲染画布投射到各自对应的投射位置;Project each screen rendering canvas to their corresponding projection positions;基于投射到预设基准平面的屏幕渲染画布,将投射到各自对应投射位置的所述至少一个屏幕渲染画布进行叠加,得到在所述预设基准平面的屏幕显示画面。Based on the screen rendering canvases projected to the preset reference plane, the at least one screen rendering canvas projected to respective corresponding projection positions are superimposed to obtain a screen display image on the preset reference plane.
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, further comprising:根据所述偏离角度,在所述预设基准平面,生成与所述屏幕显示画面的大小匹配的显示窗口;Generate a display window matching the size of the screen display on the preset reference plane according to the deviation angle;所述将所述获得的屏幕渲染画面投射到所述预设基准平面,包括:The projecting the obtained screen rendering picture to the preset reference plane includes:将所述获得的屏幕渲染画面投射到所述预设基准平面的所述显示窗口中。Projecting the obtained screen rendering picture into the display window of the preset reference plane.
- 根据权利要求2所述的方法,其特征在于,所述获得对应转动预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度,包括:The method according to claim 2, wherein the obtaining the deviation angle of the terminal display panel corresponding to the preset angle of rotation relative to the preset reference plane at the current moment comprises:通过内置的陀螺仪传感器,获得对应转动所述预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度。By using the built-in gyro sensor, the deviation angle of the terminal display panel corresponding to the rotation of the preset angle compared with the preset reference plane at the current moment is obtained.
- 根据权利要求3所述的方法,其特征在于,所述获得所述偏离角度相较于所述预设基准平面的偏离方向;The method according to claim 3, wherein said obtaining the deviation direction of the deviation angle compared to the preset reference plane;通过内置的加速度传感器,获得所述偏离角度相较于所述预设基准平面的偏离方向。A deviation direction of the deviation angle compared to the preset reference plane is obtained through a built-in acceleration sensor.
- 一种画面显示装置,其特征在于,设置在电子终端设备,所述装置包括:A screen display device is characterized in that it is set on an electronic terminal device, and the device includes:转动模块,用于在终端显示面板相较于预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻对应的屏幕渲染画面;The rotation module is used to obtain the screen rendering picture corresponding to the terminal display panel corresponding to the rotation preset angle at the current moment when the terminal display panel is rotated by a preset angle compared with the preset reference plane;屏幕显示画面获得模块,用于将所述获得的屏幕渲染画面投射到所述预设基准平面,得到在所述预设基准平面的屏幕显示画面。The screen display image obtaining module is configured to project the obtained screen rendering image onto the preset reference plane to obtain a screen display image on the preset reference plane.
- 根据权利要求8所述的装置,其特征在于,所述屏幕显示画面获得模块包括:The device according to claim 8, wherein the screen display image acquisition module comprises:偏离角度获得子模块,用于在所述终端显示面板相较于所述预设基准平面,每转动预设角度,获得对应转动预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度;The deviation angle obtaining sub-module is used to obtain the corresponding rotation preset angle of the terminal display panel at the current moment compared with the preset reference plane every time the terminal display panel rotates a preset angle. The deviation angle of the preset datum plane;第一投射子模块,用于根据所述偏离角度,将所述获得的屏幕渲染画面投射到所述预设基准平面。The first projecting sub-module is configured to project the obtained screen rendering picture to the preset reference plane according to the deviation angle.
- 根据权利要求9所述的装置,其特征在于,所述第一投射子模块包括:The device according to claim 9, wherein the first projecting submodule comprises:偏离方向获得子单元,用于获得所述偏离角度相较于所述预设基准平面的偏离方向;a deviation direction obtaining subunit, configured to obtain a deviation direction of the deviation angle compared with the preset reference plane;目标方向投射子单元,用于沿着与所述偏离方向相反的目标方向,将所述获得的屏幕渲染画面投射到所述预设基准平面。The target direction projecting subunit is configured to project the obtained screen rendering picture onto the preset reference plane along a target direction opposite to the deviation direction.
- 根据权利要求9所述的装置,其特征在于,所述转动模块包括:The device according to claim 9, wherein the rotating module comprises:渲染子模块,用于获得对应转动预设角度的所述终端显示面板在当前时刻对应的至少一个屏幕渲染画布;其中,渲染不同屏幕渲染画布所基于的显示角度不同;所述至少一个屏幕渲染画布用于形成所述屏幕渲染画面;The rendering sub-module is used to obtain at least one screen rendering canvas corresponding to the terminal display panel corresponding to the preset rotation angle at the current moment; wherein, the display angles on which different screen rendering canvases are rendered are different; the at least one screen rendering canvas for forming the screen rendering picture;所述屏幕显示画面获得模块包括:The screen display frame acquisition module includes:输入子模块,用于将渲染每个屏幕渲染画布所基于的显示角度和所述偏离角度输入预设的补偿角度计算模型,得到每个屏幕渲染画布的投射位置;其中,至少一个所述屏幕渲染画布的投射位置与所述预设基准平面的位置重合;The input sub-module is used to input the display angle based on rendering each screen rendering canvas and the deviation angle into the preset compensation angle calculation model to obtain the projection position of each screen rendering canvas; wherein at least one of the screen rendering The projection position of the canvas coincides with the position of the preset reference plane;第二投射子模块,用于将每个屏幕渲染画布投射到各自对应的投射位置;The second projecting sub-module is used to project each screen rendering canvas to its corresponding projecting position;叠加子模块,用于基于投射到预设基准平面的屏幕渲染画布,将投射到各自对应投射位置的所述至少一个屏幕渲染画布进行叠加,得到在所述预设基 准平面的屏幕显示画面。The superposition sub-module is configured to superimpose the at least one screen rendering canvas projected to each corresponding projection position based on the screen rendering canvas projected to the preset reference plane, to obtain the screen display picture on the preset reference plane.
- 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:生成模块,用于根据所述偏离角度,在所述预设基准平面,生成与所述屏幕显示画面的大小匹配的显示窗口;A generating module, configured to generate a display window matching the size of the screen display on the preset reference plane according to the deviation angle;所述屏幕显示画面获得模块包括:The screen display frame acquisition module includes:第三投射子模块,用于将所述获得的屏幕渲染画面投射到所述预设基准平面的所述显示窗口中。The third projecting sub-module is configured to project the obtained screen rendering picture into the display window of the preset reference plane.
- 根据权利要求9所述的装置,其特征在于,所述偏离角度获得子模块包括:The device according to claim 9, wherein the deviation angle obtaining submodule comprises:偏离角度获取子单元,用于通过内置的陀螺仪传感器,获得对应转动所述预设角度的所述终端显示面板在当前时刻相较于所述预设基准平面的偏离角度。The deviation angle acquisition subunit is configured to obtain, through a built-in gyro sensor, a deviation angle of the terminal display panel that is rotated corresponding to the preset angle relative to the preset reference plane at the current moment.
- 根据权利要求10所述的装置,其特征在于,所述偏离方向获得子单元具体用于通过内置的加速度传感器,获得所述偏离角度相较于所述预设基准平面的偏离方向。The device according to claim 10, wherein the deviation direction obtaining subunit is specifically configured to obtain a deviation direction of the deviation angle compared to the preset reference plane through a built-in acceleration sensor.
- 一种终端设备,包括:A terminal device, comprising:至少一个处理器;以及at least one processor; and与所述处理器通信连接的至少一个存储器,其特征在于:At least one memory communicatively coupled to said processor, characterized by:所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如权利要求1至7任一所述的方法。The memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method according to any one of claims 1 to 7.
- 一种非暂态(非易失性)计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,其特征在于,所述计算机指令使所述计算机执行如权利要求1至7任一所述的方法。A non-transitory (non-volatile) computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, characterized in that, the computer instructions cause the computer to execute claims 1 to 7 any of the methods described.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111182044.7 | 2021-10-11 | ||
CN202111182044.7A CN113867535B (en) | 2021-10-11 | 2021-10-11 | Picture display method, device, terminal equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023061325A1 true WO2023061325A1 (en) | 2023-04-20 |
Family
ID=78998875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/124352 WO2023061325A1 (en) | 2021-10-11 | 2022-10-10 | Picture display method and apparatus, terminal device, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113867535B (en) |
WO (1) | WO2023061325A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113867535B (en) * | 2021-10-11 | 2023-09-05 | 展讯通信(深圳)有限公司 | Picture display method, device, terminal equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090244267A1 (en) * | 2008-03-28 | 2009-10-01 | Sharp Laboratories Of America, Inc. | Method and apparatus for rendering virtual see-through scenes on single or tiled displays |
CN103365430A (en) * | 2012-04-10 | 2013-10-23 | 洪荣昭 | Displacement compensation method of mobile device screen frame |
CN109308153A (en) * | 2017-07-27 | 2019-02-05 | 先锋高科技(上海)有限公司 | Picture adjusting method and device, computer readable storage medium, terminal |
CN111246266A (en) * | 2020-03-04 | 2020-06-05 | 海信视像科技股份有限公司 | Display equipment and UI (user interface) display method during rotation |
CN113867535A (en) * | 2021-10-11 | 2021-12-31 | 展讯通信(深圳)有限公司 | Screen display method, screen display device, terminal equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103455256B (en) * | 2013-08-21 | 2017-09-15 | 小米科技有限责任公司 | The method and terminal of Rotation screen display picture |
CN104679225B (en) * | 2013-11-28 | 2018-02-02 | 上海斐讯数据通信技术有限公司 | Screen adjustment method, screen adjustment device and the mobile terminal of mobile terminal |
CN105589293A (en) * | 2016-03-18 | 2016-05-18 | 严俊涛 | Holographic projection method and holographic projection system |
CN109960479B (en) * | 2017-12-22 | 2022-05-17 | 中科创达软件股份有限公司 | Anti-dizziness method and device for display equipment |
CN112083805A (en) * | 2020-09-03 | 2020-12-15 | 深圳市雷鸟网络传媒有限公司 | Screen picture self-adaptive adjusting method, device, equipment and storage medium |
-
2021
- 2021-10-11 CN CN202111182044.7A patent/CN113867535B/en active Active
-
2022
- 2022-10-10 WO PCT/CN2022/124352 patent/WO2023061325A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090244267A1 (en) * | 2008-03-28 | 2009-10-01 | Sharp Laboratories Of America, Inc. | Method and apparatus for rendering virtual see-through scenes on single or tiled displays |
CN103365430A (en) * | 2012-04-10 | 2013-10-23 | 洪荣昭 | Displacement compensation method of mobile device screen frame |
CN109308153A (en) * | 2017-07-27 | 2019-02-05 | 先锋高科技(上海)有限公司 | Picture adjusting method and device, computer readable storage medium, terminal |
CN111246266A (en) * | 2020-03-04 | 2020-06-05 | 海信视像科技股份有限公司 | Display equipment and UI (user interface) display method during rotation |
CN113867535A (en) * | 2021-10-11 | 2021-12-31 | 展讯通信(深圳)有限公司 | Screen display method, screen display device, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113867535B (en) | 2023-09-05 |
CN113867535A (en) | 2021-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230419570A1 (en) | Image Processing Method and Electronic Device | |
EP4093016A1 (en) | Frame interpolation processing method and related product | |
WO2021147482A1 (en) | Telephoto photographing method and electronic device | |
US9036943B1 (en) | Cloud-based image improvement | |
CN111727423A (en) | Electronic device including flexible display and control method thereof | |
WO2020063030A1 (en) | Theme color adjusting method and apparatus, storage medium, and electronic device | |
WO2021190348A1 (en) | Image processing method and electronic device | |
CN112527174B (en) | Information processing method and electronic equipment | |
WO2022105445A1 (en) | Browser-based application screen projection method and related apparatus | |
US10341557B2 (en) | Image processing apparatuses and methods | |
WO2019200720A1 (en) | Image processing-based ambient light compensation method and apparatus, and electronic device | |
WO2024031879A1 (en) | Method for displaying dynamic wallpaper, and electronic device | |
WO2023029547A1 (en) | Video processing method, and electronic device | |
WO2023231687A1 (en) | Camera switching method and electronic device | |
CN113536866A (en) | Character tracking display method and electronic equipment | |
WO2023061325A1 (en) | Picture display method and apparatus, terminal device, and storage medium | |
CN115669278A (en) | Electronic device including multiple cameras | |
CN113225616A (en) | Video playing method and device, computer equipment and readable storage medium | |
CN115643485B (en) | Shooting method and electronic equipment | |
US20230377306A1 (en) | Video Shooting Method and Electronic Device | |
US20210360136A1 (en) | Apparatus for stabilizing digital image, operating method thereof, and electronic device having the same | |
CN114827696B (en) | Method for synchronously playing audio and video data of cross-equipment and electronic equipment | |
CN107888975B (en) | Video playing method, device and storage medium | |
WO2021052488A1 (en) | Information processing method and electronic device | |
EP4262226A1 (en) | Photographing method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22880264 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |