Display system, graphics processor GPU, display controller and display method
The graphics processor GPU only renders the first image, and the display controller determines the part of the second image based on the parallax information, which solves the problem of increased GPU running load and achieves an efficient three-dimensional rendering effect.
Patent Information
- Application Number
- CN202080017131.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-01-22
AI Technical Summary
During the three-dimensional rendering process, the calculation amount and bandwidth usage of the graphics processor GPU increase sharply, resulting in increased running load and affecting the display effect.
The graphics processor GPU only renders the first image, and the display controller determines a portion of the second image based on the disparity information, thereby reducing the rendering load of the GPU.
It effectively reduces the calculation amount and bandwidth occupation of the GPU, improves the operating efficiency of the display system, and achieves the presentation of stereoscopic viewing effects.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to a display system, and more particularly to a display system, a graphics processing unit (GPU), a display controller, and a display method. Background Art
[0002] Stereo rendering, also known as stereo drawing, is a technology used to display two-dimensional projections of discrete three-dimensional sampled data sets. It can also be understood that this technology is the process of converting the three-dimensional light signal emitted or reflected by an object into a two-dimensional image, so that the human eye can also achieve the effect of viewing a three-dimensional object when viewing a two-dimensional image. When this stereo rendering technology is applied to virtual reality (VR) technology, two two-dimensional images with parallax can be presented to the user's eyes respectively, so that the user can obtain a more realistic effect of viewing a three-dimensional object through the aforementioned two-dimensional image.
[0003] Currently, a graphics processing unit (GPU) can render two images with parallax and transmit the two images to a display controller, which then transmits the two images to a display so that the display can display the two images to the user's left eye and right eye respectively, so that the user can obtain a three-dimensional viewing effect.
[0004] In such a scheme, since the stereo rendering process requires a large amount of calculation and occupies a large bandwidth, when the GPU renders two images at the same time, the amount of GPU calculation will increase sharply, and the bandwidth occupancy will also increase sharply, thereby increasing the operating load of the GPU. Summary of the invention
[0005] The embodiments of the present application provide a display system, a graphics processor (GPU), a display controller, and a display method, which are used to reduce the operating load of the GPU while ensuring that the display controller can display two images simultaneously.
[0006] In a first aspect, an embodiment of the present application provides a display system, which includes a graphics processor GPU and a display controller. The graphics processor GPU is used to render a first image and provide the first image to the display controller; the display controller is used to obtain the first image from the GPU, obtain the disparity information of the first image and the second image, determine at least a part of the second image based on at least a part of the first image and the disparity information, and send at least a part of the first image and the second image to a display, so that at least a part of the first image and the second image are used to present a stereoscopic effect on the display.
[0007] In an embodiment of the present application, a graphics processor GPU in a display system only renders a first image and provides the aforementioned first image to a display controller. The display controller determines at least a portion of the second image based on at least a portion of the aforementioned first image and disparity information, and transmits at least a portion of the aforementioned first image and the aforementioned second image to a display. Thus, the display can present a stereoscopic effect by displaying at least a portion of the first image and the second image. In such a scheme, the display controller transmits two images to the display, the GPU only renders the first image without rendering the second image, and the display controller obtains at least a portion of the second image through the disparity information and the first image, thereby reducing the operating load of the GPU for rendering the image, for example, the amount of computation and bandwidth of the GPU can be reduced.
[0008] According to the first aspect, in a first implementation of the first aspect of the embodiment of the present application, the first image includes a plurality of pixels, each of the plurality of pixels corresponds to a depth value, and the disparity information includes a disparity value between a first pixel in at least a portion of the first image and a second pixel in the second image corresponding to the first pixel. The GPU is further configured to determine the disparity value based on the depth value of the first pixel. The display controller is specifically configured to obtain the disparity value from the GPU.
[0009] In this embodiment, it is proposed that the disparity information is determined by a graphics processor GPU. Since the graphics processor GPU only needs to render the first image and calculate the disparity information, and provide the disparity information and the first image to the display controller, the display controller performs subsequent calculations. In this process, the graphics processor GPU does not need to render two images. Therefore, it is beneficial to reduce the operating load of the graphics processor GPU, for example, reduce the bandwidth occupied by the graphics processor GPU, and reduce the amount of calculation of the graphics processor GPU.
[0010] According to the first implementation of the first aspect, in the second implementation of the first aspect of the embodiment of the present application, the GPU is specifically used to determine the disparity value based on the depth value, focal length and baseline length of the first pixel.
[0011] In this implementation, a specific method for the graphics processor GPU to determine the disparity information is proposed, that is, the disparity value of each pixel is calculated respectively by using the disparity principle, and finally the disparity information of the first image and the second image can be obtained.
[0012] According to the first aspect, in a third implementation of the first aspect of the embodiment of the present application, the first image includes a plurality of pixels, each of the plurality of pixels corresponds to a depth value, and the disparity information includes a disparity value between a first pixel in at least a portion of the first image and a second pixel in the second image corresponding to the first pixel. The display controller is specifically configured to obtain the depth value of the first pixel and determine the disparity value based on the depth value of the first pixel.
[0013] In this implementation, it is proposed that the disparity information is determined by a display controller. Since the graphics processor GPU only needs to render the first image without calculating the disparity information, the display controller is responsible for subsequent calculations. Therefore, compared with the first implementation of the first aspect, the operating load of the graphics processor GPU can be further reduced, for example, the bandwidth occupied by the graphics processor GPU can be further reduced, and the amount of calculation of the graphics processor GPU can be further reduced.
[0014] According to the third implementation of the first aspect, in the fourth implementation of the first aspect of the embodiment of the present application, the display controller is specifically used to determine the disparity value based on the depth value, focal length and baseline length of the first pixel.
[0015] In this implementation, a specific method for the display controller to determine the disparity information is proposed, that is, the disparity value of each pixel is calculated respectively using the disparity principle, and finally the disparity information of the first image and the second image can be obtained.
[0016] According to any one of the first implementation of the first aspect to the fourth implementation of the first aspect, in the fifth implementation of the first aspect of the embodiment of the present application, the display controller is specifically used to locate the second pixel in at least a portion of the second image based on the first pixel and the disparity value, and use the pixel value of the first pixel as the pixel value of the second pixel.
[0017] According to any one of the first aspect, the first implementation of the first aspect to the fifth implementation of the first aspect, in the sixth implementation of the first aspect of the embodiment of the present application, at least a portion of the second image is the first portion of the second image. The GPU is further used to render the second portion of the second image, and the second portion of the second image is not included in the first image. The display controller is further used to acquire the second portion of the second image, send the second portion of the second image to the display, and the first image and the combination of the first portion and the second portion of the second image are used to present a stereoscopic effect on the display.
[0018] In this embodiment, the graphics processor GPU determines the second part of the second image and transmits it to the display for display by the display controller, which is conducive to broadening the range of the second image that can be presented by the display and the range of images presented by the first image and the second image in the human eye.
[0019] In a second aspect, an embodiment of the present application provides a graphics processor GPU, which includes a processing module and an interface module. The processing module is used to obtain a first image by rendering, and obtain disparity information between the first image and the second image. The interface module is used to provide the first image and the disparity information to a display controller, and at least a portion of the first image and the second image is used to present a stereoscopic effect on a display corresponding to the display controller.
[0020] In this embodiment, the graphics processor GPU in the display system only needs to determine the first image and disparity information, and provide the first image and disparity information to the display controller. The display controller determines at least a portion of the second image based on at least a portion of the aforementioned first image and the disparity information, and transmits at least a portion of the aforementioned first image and the aforementioned second image to the display. Thus, the display can present a stereoscopic effect by displaying at least a portion of the first image and the second image. In such a scheme, the display controller transmits two images to the display, the GPU only renders the first image without rendering the second image, and the display controller obtains at least a portion of the second image through the disparity information and the first image, thereby reducing the operating load of the GPU in rendering the image. For example, the computational workload and bandwidth of the GPU can be reduced.
[0021] According to the second aspect, in a first implementation of the second aspect of the embodiment of the present application, the first image includes a plurality of pixels, each pixel in the first image corresponds to a depth value, and the disparity information includes a disparity value between a first pixel in at least a portion of the first image and a second pixel in the second image corresponding to the first pixel. The processing module is specifically configured to determine the disparity value based on the depth value of the first pixel.
[0022] In this embodiment, it is proposed that the disparity information is determined by a graphics processor GPU. Since the graphics processor GPU only needs to render the first image and calculate the disparity information, and provide the disparity information and the first image to the display controller, the display controller performs subsequent calculations. In this process, the graphics processor GPU does not need to render two images. Therefore, it is beneficial to reduce the operating load of the graphics processor GPU, for example, reduce the bandwidth occupied by the graphics processor GPU, and reduce the amount of calculation of the graphics processor GPU.
[0023] According to the first implementation of the second aspect, in the second implementation of the second aspect of the embodiment of the present application, the processing module is specifically used to determine the disparity value based on the depth value, focal length and baseline length of the first pixel.
[0024] In this implementation, a specific method for the graphics processor GPU to determine the disparity information is proposed, that is, the disparity value of each pixel is calculated respectively by using the disparity principle, and finally the disparity information of the first image and the second image can be obtained.
[0025] According to any one of the second aspect, the first embodiment of the second aspect to the second embodiment of the second aspect, in the third embodiment of the second aspect of the embodiment of the present application, at least a portion of the second image is the first portion of the second image. The processing module is further used to render the second portion of the second image, and the second portion of the second image is not included in the first image; the interface module is further used to provide the second portion of the second image to the display controller, and the first image and the combination of the first portion and the second portion of the second image are used to present a stereoscopic effect on a display corresponding to the display controller.
[0026] In this embodiment, the graphics processor GPU determines the second part of the second image and transmits it to the display for display by the display controller, which is conducive to broadening the range of the second image that can be presented by the display and the range of images presented by the first image and the second image in the human eye.
[0027] In a third aspect, an embodiment of the present application provides a display controller, which includes a processing module and an interface module. The processing module is used to obtain a first image from a graphics processor GPU, obtain disparity information between the first image and a second image, and determine at least a portion of the second image based on at least a portion of the first image and the disparity information. The interface module is used to send at least a portion of the first image and the second image to a display, and the first image and at least a portion of the second image are used to present a stereoscopic effect on the display.
[0028] In this embodiment, the graphics processor GPU in the display system only needs to determine the first image, and the display controller determines at least a portion of the second image based on at least a portion of the aforementioned first image and the disparity information, and transmits at least a portion of the aforementioned first image and the aforementioned second image to the display. Thus, the display can present a stereoscopic effect by displaying at least a portion of the first image and the second image. In such a scheme, the display controller transmits two images to the display, the GPU only renders the first image without rendering the second image, and the display controller obtains at least a portion of the second image through the disparity information and the first image, thereby reducing the operating load of the GPU in rendering the image, for example, the amount of computation and bandwidth of the GPU can be reduced.
[0029] According to the third aspect, in a first implementation of the third aspect of the embodiment of the present application, the first image includes a plurality of pixels, each of the plurality of pixels corresponds to a depth value, and the disparity information includes a disparity value between a first pixel in at least a portion of the first image and a second pixel in the second image corresponding to the first pixel. The processing module is specifically configured to obtain the disparity value from the GPU.
[0030] In this implementation, it is proposed that the disparity information is determined by a graphics processor GPU and provided to a display controller so that the display controller performs subsequent calculations.
[0031] According to the third aspect, in a second implementation of the third aspect of the embodiment of the present application, the first image includes a plurality of pixels, each of the plurality of pixels corresponds to a depth value, and the disparity information includes a disparity value between a first pixel in at least a portion of the first image and a second pixel in the second image corresponding to the first pixel. The processing module is specifically configured to obtain the depth value of the first pixel and determine the disparity value based on the depth value of the first pixel.
[0032] In this implementation, it is proposed that the disparity information is determined by a display controller, and the display controller determines the disparity information based on a depth value provided by a GPU, so that the display controller performs subsequent calculations.
[0033] According to the second implementation of the third aspect, in the third implementation of the third aspect of the embodiment of the present application, the processing module is specifically used to determine the disparity value based on the depth value, focal length and baseline length of the first pixel.
[0034] In this implementation, a specific method for the display controller to determine the disparity information is proposed, that is, the disparity value of each pixel is calculated respectively using the disparity principle, and finally the disparity information of the first image and the second image can be obtained.
[0035] According to any one of the third aspect, the first embodiment of the third aspect to the third embodiment of the third aspect, in the fourth embodiment of the third aspect of the embodiment of the present application, the processing module is specifically used to locate the second pixel in at least a part of the second image based on the first pixel and the disparity value, and use the pixel value of the first pixel as the pixel value of the second pixel.
[0036] According to any one of the third aspect, the first implementation of the third aspect to the fourth implementation of the third aspect, in the fifth implementation of the third aspect of the embodiment of the present application, at least a portion of the second image is the first portion of the second image. The processing module is further used to obtain the second portion of the second image from the GPU; the interface module is further used to send the second portion of the second image to the display, the second portion of the second image is not included in the first image, and the first image and the combination of the first portion and the second portion of the second image are used to present a stereoscopic effect on the display.
[0037] In this embodiment, the graphics processor GPU determines the second part of the second image and transmits it to the display for display by the display controller, which is conducive to broadening the range of the second image that can be presented by the display and the range of images presented by the first image and the second image in the human eye.
[0038] In a fourth aspect, an embodiment of the present application provides a display method, in which a display system renders a first image and obtains disparity information between the first image and a second image. Then, the display system determines at least a portion of the second image based on at least a portion of the first image and the disparity information, and sends at least a portion of the first image and the second image to a display, and the first image and at least a portion of the second image are used to present a stereoscopic effect on the display.
[0039] In this embodiment, the display system only renders the first image, determines at least a portion of the second image based on at least a portion of the first image and the parallax information, and transmits at least a portion of the first image and the second image to the display for display. In such a solution, since the display system only renders the first image without rendering the second image, the operating load of the display system for rendering images is reduced, for example, the computing workload and bandwidth of the GPU in the display system can be reduced.
[0040] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages: In the embodiments of the present application, the graphics processor GPU in the display system only renders the first image and provides the aforementioned first image to the display controller. The display controller determines at least a part of the second image based on at least a part of the aforementioned first image and the disparity information, and transmits at least a part of the aforementioned first image and the aforementioned second image to the display. Thus, the display can present a stereoscopic effect by displaying at least a part of the first image and the second image. In such a solution, the display controller transmits two images to the display, the GPU only renders the first image without rendering the second image, and the display controller obtains at least a part of the second image through the disparity information and the first image, thereby reducing the operating load of the GPU in rendering the image. For example, the computational workload and bandwidth of the GPU can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application.
[0042] Figure 1 This is a schematic diagram of a parallax principle in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of an embodiment of a display system in an embodiment of the present application;
[0044] Figure 3A This is another parallax principle schematic diagram in an embodiment of the present application;
[0045] Figure 3B This is an application scenario diagram of a stand-alone head-mounted display in an embodiment of the present application;
[0046] Figure 3C This is an application scenario diagram of a binding head mounted display in an embodiment of the present application;
[0047] Figure 3D A schematic diagram of the display effects of the left display screen and the right display screen in an embodiment of the present application;
[0048] Figure 3E Another schematic diagram of the display effects of the left display screen and the right display screen in the embodiment of the present application;
[0049] Figure 3F Another schematic diagram of the display effects of the left display screen and the right display screen in the embodiment of the present application;
[0050] Figure 4 A schematic diagram of an embodiment of a graphics processor GPU in an embodiment of the present application;
[0051] Figure 5 A schematic diagram of an embodiment of a display controller in an embodiment of the present application;
[0052] Fig. 6A A schematic diagram of a first image and a second image in an embodiment of the present application;
[0053] Figure 6B is another schematic diagram of the first image and the second image in an embodiment of the present application;
[0054] Figure 6C is another schematic diagram of the first image and the second image in an embodiment of the present application;
[0055] Fig.6D is another schematic diagram of the first image and the second image in an embodiment of the present application;
[0056] Fig. 6E is another schematic diagram of the first image and the second image in an embodiment of the present application;
[0057] Figure 7 A flow chart showing a method in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0059] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0060] The embodiment of the present application provides a display system, a graphics processor GPU, a display controller and a display method, which are used to reduce the operating load of the GPU when the display system provides two images for display. For ease of understanding, the application scenarios of the display system and the display method proposed in the embodiment of the present application are first introduced below.
[0061] The display system proposed in the embodiment of the present application is mainly used in augmented reality (AR) devices or virtual reality (VR) devices. Specifically, the user can wear an AR / VR device equipped with the aforementioned display system, and obtain a three-dimensional viewing effect through the two-dimensional image provided to the human eye by the AR / VR device. Generally, the AR / VR device includes a head-mounted display (HMDs), which can magnify the image on the ultra-micro display screen through a set of optical systems, and present the image calculated by the display system to the left and right eyes of the user, so that the user can obtain a three-dimensional visual effect through the images presented to the left and right eyes respectively. The display system in the embodiment of the present application can be integrated in the aforementioned head-mounted display, or it can be located in a computer connected to the aforementioned head-mounted display, or it can be located in other devices, such as a mobile phone, which is not limited here.
[0062] To facilitate understanding of the display system proposed in the embodiment of the present application, the parallax principle involved in the display system is introduced below. Figure 1 As shown, it is a schematic diagram of the parallax principle. Among them, o and o' are the left optical center and the right optical center respectively, pixel p is the imaging point of object P in image 1 on the left optical axis, and pixel p' is the imaging point of object P in image 2 on the right optical axis. Assuming that pixel p in image 1 is located at x1 from the left side of image 1, and pixel p' in image 2 is located at x2 from the left side of image 2, the parallax value between pixel p in image 1 and pixel p' in image 2 is z=x1-x2 (Formula 1). In addition, the parallax value z can also be determined by the following formula: z=f×b / d (Formula 2); wherein f is the focal length, that is, the distance between the left optical center o and image 1, or the distance between the right optical center o' and image 2; b is the distance between the aforementioned left optical center o and the right optical center o', also known as the baseline length; d is the depth value of the pixel. Therefore, when the focal length f, the baseline length b, the pixel depth value d and the coordinate value x1 of the pixel p in the image 1 are known, the coordinate x2 of the pixel p' in the image 2 can be calculated. That is, when one of the two images is determined, the other image can be determined based on the parallax principle.
[0063] The display system proposed in the embodiment of the present application utilizes the aforementioned parallax principle and simultaneously presents two images with a certain parallax to the left and right eyes of the user, so that the two images viewed by the user form a three-dimensional virtual image on the user's retina, thereby allowing the user to obtain the effect of viewing a three-dimensional object.
[0064] The following will introduce the main structure of the display system based on the above principles. Figure 2As shown, it is a structural schematic diagram of a display system 20 proposed in an embodiment of the present application. The display system 20 includes: a graphics processor GPU 201 and a display controller 202. Among them, the graphics processor GPU 201 is used to render a first image. The first image is an image of a certain perspective, for example, the first image is an image provided to the user's left eye or an image provided to the user's right eye, which is not specifically limited here. The aforementioned rendering can be stereo rendering. Specifically, the graphics processor GPU 201 performs vertex processing, and forms a triangle with each three vertices of the multiple vertices obtained by vertex processing. Then, the graphics processor GPU 201 performs rasterization processing. Finally, the graphics processor GPU 201 performs pixel processing to obtain the aforementioned first image. In addition, the display controller 202 is used to obtain the first image from the graphics processor GPU 201, obtain the disparity information of the first image and the second image, and determine at least a part of the second image based on at least a part of the first image and the disparity information. Among them, the second image is an image from another perspective. For example, if the aforementioned first image is an image provided to the user's left eye, then the second image is an image provided to the user's right eye; if the aforementioned first image is an image provided to the user's right eye, then the second image is an image provided to the user's left eye. The specific details are not limited here.
[0065] In addition, the aforementioned first image contains a plurality of pixels, and the aforementioned second image contains a plurality of pixels. For the sake of ease of introduction, the pixels in the aforementioned first image are referred to as first pixels, and the pixels in the aforementioned second image are referred to as second pixels. The disparity information between the aforementioned first image and the aforementioned second image includes the disparity value between the first pixel in the aforementioned first image and the second pixel corresponding to the first pixel in the second image. It can also be understood that it includes the disparity value between each first pixel in the aforementioned first image and the second pixel corresponding to the second image. Specifically, the disparity value can be the difference between the coordinate value of the first pixel and the coordinate value of the second pixel corresponding to the first pixel. For the sake of ease of understanding, the aforementioned Figure 1 The first image in this embodiment can be Figure 1 The second image in this embodiment may be Figure 1 Since there is a parallax between the first image and the second image, the display controller 202 may determine at least a portion of the second image based on at least a portion of the first image and the parallax information. Figure 3A, wherein the first image is [a1, a2], the second image is [b1, b2], and there is a parallax between the [a3, a2] portion in the first image and the [b1, b3] portion in the second image, resulting in that in the formed virtual image, the [a3, a2] portion in the first image overlaps with the [b1, b3] portion in the second image. Therefore, the display controller 202 can determine at least a portion of the second image (the [b1, b3] portion in the second image overlaps) based on at least a portion of the first image (for example, the [a3, a2] portion in the first image) and the parallax information. At this time, the parallax information can be understood as the parallax information between the [a3, a2] portion in the first image and the [b1, b3] portion in the second image.
[0066] In addition, the display controller 202 is also used to send at least a portion of the aforementioned first image and the aforementioned second image to a display (not shown) so that at least a portion of the first image and the second image present a stereoscopic effect on the display. Among them, the display can be a head-mounted display, and the head-mounted display is configured with a left display screen and a right display screen. It can be understood that the head-mounted display can be replaced by other types of displays, and this embodiment is not limited. Since the aforementioned first image is the image observed by the left eye and the aforementioned second image is the image observed by the right eye, the aforementioned first image will be displayed on the left display screen, and the second image will be displayed on the right display screen. Specifically, the principle of the head-mounted display can refer to the aforementioned Figure 1 The relevant introduction in the corresponding embodiment will not be repeated here.
[0067] In practical applications, the display system 20 can be integrated with the display in the same device, or the display system 20 can be distributed with the display in different devices. Taking the display in the head-mounted display as an example, the head-mounted display can be divided into an independent head-mounted display and a binding head-mounted display.
[0068] The stand-alone head-mounted display refers to a head-mounted display that integrates computing and processing modules into the stand-alone head-mounted display and does not need to be connected to an external computer. Figure 3B The independent head mounted display is shown, in which the display system 20 and the display are both located in the independent head mounted display. The user can obtain a stereoscopic viewing effect by watching at least a part of the first image and the second image displayed by the independent head mounted display.
[0069] In addition, the binding head mounted display needs to be connected to an external computer, which processes the data and displays it on the binding head mounted display. Figure 3CThe figure shows a binding head-mounted display. At this time, the display system 20 can be located in an external computer connected to the binding head-mounted display, and the display is located in the binding head-mounted display. At this time, the display system 20 in the external computer determines at least a portion of the first image and the second image, and then transmits at least a portion of the first image and the second image to the independent head-mounted display, and the independent head-mounted display presents a stereoscopic effect to the user. In this embodiment, the connection between the display system 20 and the display can be a wired connection or a wireless connection. When a wireless connection is used, wireless fidelity (Wi-Fi), ZigBee protocol (ZigBee) and Bluetooth or other short-distance communication methods can be used, which are not limited here.
[0070] In this embodiment, the graphics processor GPU 201 in the display system only renders the first image and provides the aforementioned first image to the display controller 202. The display controller 202 determines at least a portion of the second image based on at least a portion of the aforementioned first image and the disparity information, and transmits at least a portion of the aforementioned first image and the aforementioned second image to the display. Thus, the display can present a stereoscopic effect by displaying at least a portion of the first image and the second image. In such a scheme, the display controller 202 transmits two images to the display, and the graphics processor GPU 201 only renders the first image without rendering the second image. The display controller 202 obtains at least a portion of the second image through the disparity information and the first image, which reduces the operating load of the graphics processor GPU 201 in rendering the image. For example, the amount of calculation and bandwidth of the graphics processor GPU 201 can be reduced.
[0071] Optional, such as Figure 2As shown, the display system 20 may further include a storage device 203. Optionally, the graphics processor GPU 201 and the display controller 202 share the storage device 203, and the first image, the disparity information, and at least a portion of the second image are stored in the storage device 203. It can also be understood that the image processor GPU 201 stores the rendered first image in the storage device 203; the display controller 202 also stores at least a portion of the determined second image in the storage device 203; the image processor GPU 201 stores the determined disparity information in the storage device 203, or the display controller 202 stores the determined disparity information in the storage device 203, and the specifics are not limited here. At this time, when the display controller 202 obtains the first image from the GPU, the display controller 202 can directly obtain the first image from the graphics processor GPU 201, that is, the graphics processor GPU 201 directly transmits the first image to the display controller 202; the display controller 202 can also obtain the first image from the storage device 203, and the specific details are not limited here. Optionally, the storage device 203 can be a double data rate synchronous dynamic random-access memory (DDRSDRAM), which is often referred to as DDR, and is used to store the aforementioned first image and related information of each pixel in the first image.
[0072] In this embodiment, the graphics processor GPU 201 is a device for drawing or rendering images. In contrast to the graphics processor GPU 201, the display controller 202 is also called a display subsystem or a display driver. The display controller 202 can be used to perform layer overlay processing, and send the image formed by the layer overlay to a display for display. Optionally, the display controller 202 can also be used to perform processing such as flipping, zooming in or out of the image, which is not limited in this embodiment. The layer overlay processing includes but is not limited to superimposing the image drawn by the graphics processor GPU 201 with other images, such as a background image or a window.
[0073] Based on the above embodiments, the display controller 202 may adopt multiple implementations to obtain the disparity information between the first image and the second image, which are respectively introduced below.
[0074] In an optional implementation, the display controller 202 may obtain the disparity information of the first image and the second image from the graphics processor GPU 201. Specifically, the graphics processor GPU 201 in the display system 20 may directly send the disparity information to the display controller 202, that is, the display controller 202 may directly receive the disparity information from the graphics processor GPU 201; or, the graphics processor GPU 201 in the display system 20 sends the disparity information to the storage device 203, and the display controller 202 obtains the disparity information from the storage device 203, which is not limited here. In this implementation, the disparity information is determined by the graphics processor GPU 201.
[0075] Specifically, the graphics processor GPU 201 is used to obtain the depth value corresponding to each pixel in the first image when rendering the first image, and then calculate the disparity value corresponding to each pixel based on the depth value corresponding to each pixel. For example, the first image includes a first pixel, and the first pixel corresponds to a depth value. Then, the graphics processor GPU 201 can determine the disparity value between the first pixel and the second pixel corresponding to the first pixel based on the depth value of the first pixel.
[0076] More specifically, the graphics processor GPU 201 is used to determine the disparity value based on the depth value, focal length and baseline length of the first pixel. The disparity value can be determined by the following formula: z=f×b / d (Formula 2); wherein f is the focal length; b is the baseline length; and d is the depth value of the first pixel. For details, please refer to the aforementioned Figure 1 The corresponding parallax principle will not be described in detail here.
[0077] The graphics processor GPU 201 performs similar processing on each pixel in the first image to obtain disparity information, which includes multiple disparity values. Specifically, the disparity information includes a disparity value between a first pixel in at least a part of the first image and a second pixel in the second image corresponding to the first pixel.
[0078] In this embodiment, since the graphics processor GPU 201 only needs to render the first image, and calculate the disparity information using the depth value corresponding to each pixel in the first image, and provide the disparity information and the first image to the display controller 202, the display controller 202 performs subsequent calculations. In this process, the graphics processor GPU 201 does not need to render two images. Therefore, it is beneficial to reduce the operating load of the graphics processor GPU 201, for example, reduce the bandwidth occupied by the graphics processor GPU 201, and reduce the amount of calculation of the graphics processor GPU 201.
[0079] In another optional implementation, the display controller 202 obtains the depth value corresponding to each pixel in the first image from the graphics processor GPU 201, and calculates the disparity value corresponding to each pixel based on the depth value corresponding to each pixel. That is, in this implementation, the disparity information is calculated by the display controller 202 instead of being directly obtained from the graphics processor GPU 201.
[0080] Among them, the display controller 202 obtains the depth value corresponding to each pixel in the first image from the graphics processor GPU 201. It can be understood that the graphics processor GPU 201 directly sends the depth value of each pixel to the display controller 202, that is, the display controller 202 directly receives the depth value of each pixel from the graphics processor GPU 201; or, the graphics processor GPU 201 sends the depth value of each pixel to the storage device 203, and the display controller 202 obtains the depth value of each pixel from the storage device 203. The specific details are not limited here.
[0081] In this implementation, the display controller 202 can determine the disparity value based on the depth value, focal length and baseline length of the first pixel, and the display controller 202 calculates the disparity value using the same formula as the aforementioned graphics processor GPU 201. Specifically, the disparity value can be determined using the following formula: z=f×b / d (Formula 2); wherein f is the focal length; b is the baseline length; and d is the depth value of the first pixel. For details, please refer to the aforementioned Figure 1 The corresponding parallax principle will not be described in detail here.
[0082] In this implementation, since the graphics processor GPU 201 only needs to render the first image and does not need to calculate disparity information, the display controller 202 is responsible for subsequent calculations. Therefore, on the basis of the previous implementation, the operating load of the graphics processor GPU 201 is further reduced. For example, the bandwidth occupied by the graphics processor GPU 201 is further reduced, and the calculation amount of the graphics processor GPU 201 is further reduced.
[0083] In this embodiment, whether the display controller 202 obtains disparity information from the graphics processor GPU 201 or directly calculates the disparity information, the display controller 202 needs to determine at least a portion of the second image based on at least a portion of the aforementioned first image and the disparity information. Specifically, the display controller 202 can locate the second pixel in at least a portion of the second image based on the first pixel in the first image and the disparity value corresponding to the first pixel, and use the pixel value of the first pixel as the pixel value of the second pixel. Further, the display controller 202 can calculate the difference between the coordinate value of the first pixel and the disparity value corresponding to the first pixel to obtain the coordinate value of the second pixel. Therefore, the display controller 202 can determine the position of the second pixel in the second image based on the coordinate value of the second pixel. Then, the display controller 202 assigns the pixel value of the aforementioned first pixel to the second pixel in the second image, so that the pixel value of the second pixel can be determined. By analogy, the display controller 202 can calculate each pixel in the first image according to the aforementioned calculation method, and then obtain the position and pixel value of at least a portion of the pixels in the second image. It can be understood that a typical embodiment of a pixel value is a red, green, and blue (RGB) value. The RGB pixel value is a two-dimensional image pixel value that represents the color. The depth value of the pixel represents the depth information of the pixel. The depth value and pixel value of the pixel can be used to form three-dimensional pixel information, such as a red, green, and blue depth (RGBD) value. In addition, the depth value (D) can also be stored separately from the aforementioned RGB pixel value, and this embodiment is not intended to be limited.
[0084] For ease of understanding, Figure 3D Take as an example to introduce. Among them, there is a first pixel in the first image, which is pixel A. In order to clearly display the content, the pixel A shown in the figure is larger, but it is only used to understand the solution and is not used to limit it. It is known that the horizontal distance between the pixel A and the left border of the first image is x1, that is, the horizontal coordinate value of the pixel A in the first image is x1. Assuming that the parallax value corresponding to the pixel A is z0, it can be seen from the above formula 1 that the coordinate value of the second pixel pixel A' in the second image is x2=x1-z0. Therefore, the position of the pixel A' in the second image can be determined. Then, the display controller 202 assigns the pixel value of the pixel A to the pixel A'. And so on, Figure 3E As shown, the display controller 202 can determine at least a portion of the second image.
[0085] Optionally, at least a portion of the second image is a first portion of the second image, such as Figure 3EAs shown, the first part of the second image is the part calculated based on the parallax principle. At this time, the pixels of the second part of the second image have not been determined. In order to broaden the range of images that can be presented by the display, the display system 20 is also used to determine the second part of the second image. Generally, when the second image is an image presented to the right eye of the user, the second part of the second image is the part close to the right side of the second image. If the aforementioned second image is an image presented to the left eye of the user, the second part of the second image is the part close to the left side of the second image. It should be noted that in actual applications, the width of the second part of the second image is much smaller than the width of the first part of the second image, which can also be understood as the number of pixels in each row of the second part of the second image is much smaller than the number of pixels in each row of the first part of the second image.
[0086] Specifically, the GPU 201 in the display system 20 renders the second part of the second image, and then the display controller 202 obtains the second part of the second image and sends the second part of the second image to the display, so that the first image and the combination of the first part and the second part of the second image present a stereoscopic effect on the display. Figure 3F For example, the left display screen of the head mounted display displays the first image, and the right display screen of the head mounted display displays the combination of the first part of the second image and the second part of the second image. Since each pixel in the first part of the second image is different from each pixel in the second part of the second image, the content presented by the first part of the second image is different from the content presented by the second part of the second image, which is conducive to widening the range of the second image that can be presented by the display.
[0087] It should be understood that when the display controller 202 obtains the second part of the second image, the display controller 202 can be implemented in a variety of ways. In an optional embodiment, the graphics processor GPU 201 can directly transmit the second part of the second image to the display controller 202, that is, the display controller 202 directly receives the second part of the second image from the graphics processor GPU 201. In another optional embodiment, the graphics processor GPU 201 transmits the second part of the second image to the storage device 203, and the display controller 202 directly obtains the second part of the second image from the storage device 203. The specifics are not limited here.
[0088] To facilitate further understanding of the aforementioned display system 20, the graphics processor GPU 201 and the display controller 202 in the aforementioned display system 20 will be introduced below. Figure 4, which is a schematic diagram of the structure of a graphics processor GPU 40 proposed in an embodiment of the present application. The graphics processor GPU 40 includes a processing module 401 and an interface module 402.
[0089] The processing module 401 is used to obtain a first image by rendering, and obtain disparity information between the first image and the second image. The interface module 402 is used to provide the first image and the disparity information to a display controller, and at least a portion of the first image and the second image are used to present a stereoscopic effect on a display corresponding to the display controller.
[0090] The first image is an image of a certain perspective, for example, the first image is an image provided to the user's left eye or an image provided to the user's right eye. The second image is an image of another perspective, for example, if the first image is an image provided to the user's left eye, then the second image is an image provided to the user's right eye; if the first image is an image provided to the user's right eye, then the second image is an image provided to the user's left eye, and the details are not limited here. For details, please refer to the aforementioned FIG. 3A to FIG. 3F Corresponding related descriptions. The disparity information between the first image and the second image includes a disparity value between a first pixel in the aforementioned first image and a second pixel corresponding to the first pixel in the second image. Specifically, the disparity value may be a difference between a coordinate value of the first pixel and a coordinate value of a second pixel corresponding to the first pixel.
[0091] In addition, the interface module 402 provides the first image and the disparity information to the display controller, which can be understood as the interface module 402 directly sending the first image and the disparity information to the display controller; it can also be understood as the interface module 402 transmitting the first image and the disparity information to the storage device, and the display controller obtains the first image and the disparity information from the storage device. The details are not limited here.
[0092] In this embodiment, since the graphics processor GPU 40 only needs to provide the first image and disparity information to the display controller, the display controller 202 performs subsequent calculations. In this process, the graphics processor GPU 40 does not need to render two images. Therefore, it is beneficial to reduce the operating load of the graphics processor GPU 40, for example, reduce the bandwidth occupied by the graphics processor GPU 40, and reduce the amount of calculation of the graphics processor GPU 40.
[0093] Based on the aforementioned graphics processor GPU 40, in an optional implementation, the processing module 401 may determine the disparity information between the aforementioned first image and the second image in the following manner. The aforementioned first image includes a plurality of pixels, and each pixel in the aforementioned first image corresponds to a depth value, which can be obtained by rendering the first image by the processing module 401. The aforementioned disparity information includes a disparity value between a first pixel in at least a portion of the first image and a second pixel in the second image corresponding to the first pixel, and the disparity value can be understood as the difference between the coordinate value of the aforementioned first pixel and the coordinate value of the aforementioned second pixel.
[0094] Specifically, the processing module 401 determines the disparity value based on the depth value, focal length, and baseline length of the first pixel. More specifically, the processing module 401 may determine the disparity value using the aforementioned formula 2 (z=f×b / d). Wherein, f is the focal length; b is the baseline length; d is the depth value of the first pixel. For details, please refer to the aforementioned Figure 1 The corresponding parallax principle will not be described in detail here.
[0095] Based on the aforementioned graphics processor GPU 40, in another optional implementation, the processing module 401 is also used to render the second part of the second image, and the second part of the second image is not included in the first image. It can be understood that when the second parts of the aforementioned first image and the second image are presented to the left and right eyes of the user respectively, the second part of the second image does not overlap with the image of the first image presented in the user's retina. The interface module 402 is also used to provide the second part of the second image to the display controller, and the combination of the first image and the first part and the second part of the second image is used to present a stereoscopic effect on the display corresponding to the display controller.
[0096] Specifically, the interface module 402 can send the second part of the second image to the display controller, and the interface module 402 can also transmit the second part of the second image to a storage device, and the display controller obtains it from the storage device, which is not limited here. In addition, the combination of the first part and the second part of the second image refers to a second image formed by the first part of the second image and the second part of the second image. For details, please refer to the aforementioned Figure 3F The corresponding description will not be repeated here.
[0097] Optionally, the graphics processor GPU 40 is also used to transmit control information to the storage device. Optionally, the control information includes one or more of rendering mode information, view information and preset coordinate range. Among them, the rendering mode information is used to indicate the rendering mode, for example, 1 represents a stereo rendering mode based on the parallax principle, and 0 represents a normal rendering mode. The view information is used to indicate the viewing angle of the rendered image, for example, 1 indicates that the output image is an image presented to the left eye, and 0 indicates that the output image is an image presented to the right eye. The preset coordinate range is used to indicate the range of coordinate values of the first part of the second image. If the aforementioned first image is an image presented to the user's left eye, then when the horizontal coordinate value in the second image is greater than the upper limit of the aforementioned preset coordinate range, the graphics processor GPU 40 provides the second part of the second image to the display controller; when the horizontal coordinate value in the second image is less than the lower limit of the aforementioned preset coordinate range, the graphics processor GPU 40 provides the first part of the second image to the display controller.
[0098] In this embodiment, since the graphics processor GPU 40 only needs to render the first image, and calculate the disparity information using the depth value corresponding to each pixel in the first image, and provide the disparity information and the first image to the display controller 202, the display controller 202 performs subsequent calculations. In this process, the graphics processor GPU 40 does not need to render two images. Therefore, it is beneficial to reduce the operating load of the graphics processor GPU 40, for example, reduce the bandwidth occupied by the graphics processor GPU 40, and reduce the amount of calculation of the graphics processor GPU 40.
[0099] like Figure 5 , which is a schematic diagram of the structure of a display controller 50 proposed in an embodiment of the present application. The display controller 50 includes a processing module 501 and an interface module 502. The processing module 501 is used to obtain a first image from a graphics processor GPU, obtain disparity information between the first image and the second image, and determine at least a part of the second image based on at least a part of the first image and the disparity information. The interface module 502 is used to send at least a part of the first image and the second image to a display, and the first image and at least a part of the second image are used to present a stereoscopic effect on the display.
[0100] The first image is an image of a certain perspective, for example, the first image is an image provided to the user's left eye or an image provided to the user's right eye. The second image is an image of another perspective, for example, if the first image is an image provided to the user's left eye, then the second image is an image provided to the user's right eye; if the first image is an image provided to the user's right eye, then the second image is an image provided to the user's left eye, and the details are not limited here. For details, please refer to the aforementioned FIG. 3A to FIG. 3FCorresponding related descriptions. The disparity information between the first image and the second image includes a disparity value between a first pixel in the aforementioned first image and a second pixel corresponding to the first pixel in the second image. Specifically, the disparity value may be a difference between a coordinate value of the first pixel and a coordinate value of a second pixel corresponding to the first pixel.
[0101] Among them, when the processing module 501 obtains the first image from the graphics processing unit GPU, the graphics processing unit GPU can send the first image directly to the display controller 50, that is, the processing module 501 directly receives the first image through the interface module 402 of the aforementioned graphics processing unit GPU; the graphics processing unit GPU can also transmit the first image to the storage device inside the display system, and then the display controller 50 obtains the first image from the storage device, which is not limited here.
[0102] In this embodiment, the graphics processor GPU in the display system only renders the first image, and the display controller 50 determines at least a portion of the second image based on at least a portion of the aforementioned first image and the disparity information, and transmits at least a portion of the aforementioned first image and the aforementioned second image to the display. Thus, the display can present a stereoscopic effect by displaying at least a portion of the first image and the second image. In such a scheme, the display controller 50 transmits two images to the display, and the graphics processor GPU only renders the first image without rendering the second image. The display controller 50 obtains at least a portion of the second image through the disparity information and the first image, thereby reducing the operating load of the graphics processor GPU in rendering the image. For example, the computational workload and bandwidth of the graphics processor GPU can be reduced.
[0103] Based on the aforementioned display controller 50 , when the processing module 501 obtains the disparity information between the first image and the second image, the processing module 501 may adopt different implementations, which are respectively introduced below.
[0104] In an optional implementation, the processing module 501 can obtain disparity information provided by a graphics processor GPU, that is, the disparity information is calculated by the graphics processor GPU. At this time, if the graphics processor GPU directly sends the disparity information to the display controller 50, the processing module 501 can directly receive the disparity information sent by the graphics processor GPU; if the graphics processor GPU transmits the disparity information to a storage device in the display system, the processing module 501 can obtain the disparity information from the storage device, which is not specifically limited here. Optionally, the display controller 50 includes a line buffer, which is used to store the disparity information obtained by the display controller 50.
[0105] In this implementation, since the first image and the disparity information are both provided by a graphics processing unit (GPU), the processing module 501 can directly use the first image and the disparity information to perform subsequent calculations.
[0106] In another optional implementation, the aforementioned disparity information is calculated by the display controller based on parameters provided by the graphics processor GPU, that is, the processing module 501 can calculate the aforementioned disparity information.
[0107] Specifically, the processing module 501 needs to obtain a depth value, and then calculate the aforementioned disparity information based on the depth value. The depth value is a depth value corresponding to each pixel in the first image, which can be obtained by rendering the first image by the graphics processor GPU, that is, provided by the graphics processor GPU to the display controller 50. When the depth value is provided by the graphics processor GPU, the graphics processor GPU can directly send the depth value of each pixel to the display controller 501, that is, the processing module 501 can directly receive the depth value of each pixel from the graphics processor GPU; the graphics processor GPU can also transmit the depth value of each pixel to the storage device inside the display system, and the processing module 501 obtains the depth value of each pixel from the storage device, which is not specifically limited here.
[0108] Specifically, the processing module 501 can determine the disparity value corresponding to each pixel based on the depth value of each pixel, that is, for a certain pixel in the first image, the processing module 501 determines the disparity value of this pixel based on the depth value of this pixel, and so on, the processing module 501 can determine the depth value of each pixel in the first image. In practical applications, the processing module 501 can also select some pixels in the first image as needed, and determine the depth value of each pixel in the aforementioned partial pixels, which is not limited here. More specifically, if it is necessary to determine the disparity value of the first pixel in the first image, the processing module 501 can determine the disparity value based on the depth value, focal length and baseline length of the first pixel. Specifically, the following formula can be used to determine the disparity value: z = f × b / d (Formula 2); wherein f is the focal length; b is the baseline length; d is the depth value of the first pixel. For details, please refer to the aforementioned Figure 1 The corresponding disparity principle is not described in detail here. Therefore, the processing module 501 can perform subsequent calculations using the first image and the disparity information determined by the processing module 501. Optionally, the display controller 50 includes a line buffer, which is used to store the calculated disparity information.
[0109] Based on any one of the above two implementations, after the processing module 501 determines the above first image and the disparity information, the processing module 501 determines at least a portion of the second image based on at least a portion of the first image and the disparity information. Specifically, the processing module 501 locates the second pixel in at least a portion of the second image based on the first pixel and the disparity value, and uses the pixel value of the first pixel as the pixel value of the second pixel.
[0110] Specifically, the processing module 501 can calculate the difference between the coordinate value of the first pixel and the disparity value corresponding to the first pixel to obtain the coordinate value of the second pixel. Therefore, the processing module 501 can determine the position of the second pixel in the second image based on the coordinate value of the second pixel. Then, the processing module 501 assigns the pixel value of the aforementioned first pixel to the second pixel in the second image, so that the pixel value of the second pixel can be determined. By analogy, the processing module 501 can calculate each pixel in the first image according to the aforementioned calculation method, and then obtain the position and pixel value of at least a part of the pixels in the second image.
[0111] Need to understand, the above Figure 4 and Figure 5 Each module in the embodiment can be implemented by hardware, software or a combination of hardware and software. For example, processing module 401 or 501 can be a processor core, which is used to execute software program instructions for processing. For example, processing module 401 is one or more GPU computing cores, and processing module 501 can be one or more low-power computing cores. In this case, processing module 501 consumes less power than the GPU computing core, and is, for example, a small central processing unit or a digital signal processor. The software program instructions executed by the above processor cores can be stored in Figure 2 The storage device 203 or other memory. The interface module 402 or 502 may be an interface circuit, including but not limited to supporting various interface protocols for realizing data transmission. For another example, the processing module 401 or 501, and the interface module 402 or 502 may include hardware logic circuits without executing software programs, and any module may perform processing through logic circuit operations, and the logic circuit includes but is not limited to at least one of a transistor, a logic gate, and an algorithm circuit, and may also selectively include an analog circuit or a mixed digital-analog circuit. In a more common implementation scheme, the processing modules 501 and 502 in the display controller 50 are implemented as pure hardware logic circuits to realize hardware acceleration of display control or display drive functions and improve the performance of the display system 20.
[0112] For another example, processing module 401 or 501, and interface module 402 or 502 can be software modules, including software program instructions, for being executed by a processor or processor core and realizing the above functions. Therefore, any module involved above can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium can be a dynamic random access memory (for example, a double rate synchronous dynamic random access memory DDR), or a static random access memory, etc.
[0113] For ease of understanding, the process of determining at least a portion of the second image by the processing module 501 is described by taking the first row of pixels of the first image as an example. It should be understood that the following processing is based on the example that only the deviation in the horizontal direction exists, that is, the disparity only includes the horizontal disparity. Fig. 6A As shown, it is assumed that the first row of the first image has only 8 pixels, and each pixel corresponds to a coordinate value and a pixel value. For example, the coordinate of pixel A0 in the first row and the first column is (0, 0), and the pixel value is a0; the coordinate of pixel A1 in the first row and the second column is (1, 0), and the pixel value is a1; and so on, the coordinate of pixel A7 in the first row and the eighth column is (7, 0), and the pixel value is a7. In addition, assuming that the disparity values corresponding to the pixels in the first image are shown in Table 1 below, the processing module 501 can calculate the difference between the horizontal coordinate value and the disparity value of each pixel, and then, the processing module 501 determines the horizontal coordinate value of the pixel in the second image based on the difference. It should be understood that the difference represents the position of the pixel value assignment of the pixel in the second image.
[0114] Among them, the horizontal coordinate value of pixel A0 is 0, and the disparity value corresponding to the pixel A0 is 1, then it can be determined that the difference between the horizontal coordinate value and the disparity value is -1, that is, the position of pixel A0 in the second image. Since -1<0, the pixel value a0 cannot fall on the display screen corresponding to the second image, that is, it overflows the display screen, and therefore, the pixel value a0 is not included in the second image. The horizontal coordinate value of pixel A1 is 1, and the disparity value corresponding to the pixel A1 is 1, then it can be determined that the difference between the horizontal coordinate value and the disparity value is 0, that is, the position of pixel A1 in the second image, therefore, Fig. 6A As shown, the pixel value a1 should be assigned to the first row and first column of the second image. Similarly, it can be calculated that the difference between the horizontal coordinate value of the pixel A2 and the disparity value corresponding to the pixel A2 is 1, that is, the position of the pixel A2 in the second image, and the difference between the horizontal coordinate value of the pixel A3 and the disparity value corresponding to the pixel A3 is also 1, that is, the position of the pixel A3 in the second image. At this time, the positioning positions of the pixels A2 and A3 in the second image coincide, and the processing module 501 can select the pixel value corresponding to the pixel with the smaller depth value between the pixels A2 and A3 for display. It can be seen from the above formula 2 that the depth value and the disparity value are inversely correlated, and the disparity value of the pixel A3 is greater than the disparity value of the pixel A2. Therefore, the processing module 501 retains the pixel value a3 corresponding to the pixel A3, that is, the pixel value a3 is assigned to the first row and second column of the second image.
[0115] In addition, it should be noted that the disparity value is calculated based on the aforementioned formula 2, and the disparity value is not necessarily an integer, which results in the difference between the calculated horizontal coordinate and the disparity value not necessarily being an integer. In this case, the approximate value of the aforementioned difference can be rounded off. For example, the horizontal coordinate value of pixel A4 is 4, and the disparity value corresponding to pixel A4 is 0.7. It can be determined that the difference between the horizontal coordinate value and the disparity value is 3.3. At this time, the processing module 501 uses rounding to take the approximate value of the aforementioned difference as 3, which is the position of pixel A4 in the second image. Therefore, Fig. 6A As shown in , the pixel value a4 should be assigned to the first row and fourth column of the second image. Similarly, the horizontal coordinate value of pixel A5 is 5, and the disparity value corresponding to pixel A5 is 1. It can be determined that the difference between the horizontal coordinate value and the disparity value is 4, that is, the position of pixel A5 in the second image. Therefore, Fig. 6A As shown, the pixel value a5 should be assigned to the first row and fifth column of the second image. In addition, the horizontal coordinate value of pixel A6 is 6, and the disparity value corresponding to the pixel A6 is 1.3, so it can be determined that the difference between the horizontal coordinate value and the disparity value is 4.7, and the approximate value is 5. The horizontal coordinate value of pixel A7 is 7, and the disparity value corresponding to the pixel A7 is 2, so it can be determined that the difference between the horizontal coordinate value and the disparity value is 2, and the approximate value is 5. At this time, the positioning positions of pixel A6 and pixel A7 in the second image coincide, and since the disparity value of pixel A7 is greater than the disparity value of pixel A6, the processing module 501 retains the pixel value a7 corresponding to pixel A7, that is, assigns the pixel value a7 to the first row and sixth column of the second image.
[0116] Table 1
[0117]
[0118] It should be noted that in the process of calculating the first part of the second image, pixel values may be lost. Fig. 6A The pixel value at the first row and third column of the second image in the image is missing. In this case, the processing module 501 can use a difference algorithm or a filtering algorithm to determine the pixel value at the first row and third column of the second image. Assume that, after calculating the pixel value c1 at the first row and third column of the second image, the first row of the second image is as follows Figure 6B shown.
[0119] Similarly, the processing module 501 can determine the pixel value of each pixel in the first part of the second image based on each pixel in the first image according to the aforementioned calculation method, that is, the processing module 501 can determine the first part of the second image, specifically as follows: Figure 6C It should be understood that how many columns of pixels are retained in the first part of the second image depends on the aforementioned disparity value and the horizontal coordinate value of the pixel in the first image. Figure 6C This is only an example, and the number of pixels in the first part of the second image is not specifically limited.
[0120] Optionally, the display controller 50 may further determine the second part of the second image. Specifically, the processing module 501 is further used to obtain the second part of the second image from the graphics processor GPU; the interface module 502 is further used to send the second part of the second image to the display, the second part of the second image is not included in the first image, and the first image and the combination of the first part and the second part of the second image are used to present a stereoscopic effect on the display.
[0121] When the processing module 501 obtains the second part of the second image, the graphics processing unit GPU can directly transmit the second part of the second image to the display controller, that is, the processing module 501 directly receives the second part of the second image from the graphics processing unit GPU; or, the graphics processing unit GPU transmits the second part of the second image to the storage device inside the display system, and the processing module 501 directly obtains the second part of the second image from the storage device, which is not limited here.
[0122] Optionally, the processing module 501 is also used to obtain control information from the aforementioned storage device. Optionally, the control information includes one or more of rendering mode information, view information, and a preset coordinate range. Among them, the rendering mode information is used to indicate the rendering mode, for example, 1 represents a stereo rendering mode based on the parallax principle, and 0 represents a normal rendering mode. The view information is used to indicate the viewing angle of the rendered image, for example, 1 represents that the output image is an image presented to the left eye, and 0 represents that the output image is an image presented to the right eye. The preset coordinate range is used to indicate the range of coordinate values of the first part of the second image. If the aforementioned first image is an image presented to the user's left eye, when the horizontal coordinate value in the second image is greater than the upper limit of the aforementioned preset coordinate range, the second part of the second image obtained by the processing module 501 is located on the right side of the first part, and the second part of the second image is transmitted to the display; when the horizontal coordinate value in the second image is less than the upper limit of the aforementioned preset coordinate range, the processing module 501 obtains the first part of the second image, and transmits the first part of the second image to the display.
[0123] In this embodiment, the display controller determines at least a portion of the second image based on at least a portion of the first image and the disparity information, and transmits the aforementioned first image and at least a portion of the aforementioned second image to the display. Thus, the display can present a stereoscopic effect by displaying at least a portion of the first image and the second image. In such a scheme, the display controller transmits two images to the display, and the GPU only renders the first image without rendering the second image. The display controller obtains at least a portion of the second image through the disparity information and the first image, thereby reducing the operating load of the GPU in rendering the image. For example, the computational workload and bandwidth of the GPU can be reduced.
[0124] The structure of the display system is described in detail above. The display method proposed in the embodiment of the present application will be described below. Figure 7 As shown, the display system can perform the following steps:
[0125] 701. Render a first image. The first image is an image of a certain perspective, for example, the first image is an image provided to the user's left eye or an image provided to the user's right eye, which is not limited here. The first image includes a plurality of pixels, and each pixel corresponds to a depth value and a pixel value. Optionally, the pixel value is an RGB pixel value. In addition, the description of the depth value can be found in the aforementioned Figure 2 The relevant introduction in the corresponding embodiment will not be repeated here.
[0126] 702. Obtain disparity information between the first image and the second image. The disparity information between the first image and the second image includes a disparity value between a first pixel in the first image and a second pixel corresponding to the first pixel in the second image. Specifically, the disparity value may be a difference between a coordinate value of the first pixel and a coordinate value of a second pixel corresponding to the first pixel.
[0127] Specifically, the display system may determine the disparity value based on the depth value of the first pixel. More specifically, the display system may determine the disparity value based on the depth value of the first pixel, the focal length, and the baseline length. Specifically, the disparity value may be determined using the following formula: z=f×b / d (Formula 2); wherein f is the focal length; b is the baseline length; and d is the depth value of the first pixel. For details, please refer to the aforementioned Figure 1 The corresponding parallax principle will not be described in detail here.
[0128] 703. Determine at least a portion of the second image based on at least a portion of the first image and the disparity information. In this embodiment, after the display system determines the first image and the disparity information, the display system may determine at least a portion of the second image based on at least a portion of the first image and the disparity information. Specifically, the display system locates the second pixel in at least a portion of the second image based on the first pixel and the disparity value, and uses the pixel value of the first pixel as the pixel value of the second pixel.
[0129] Specifically, the display system can calculate the difference between the coordinate value of the first pixel and the disparity value corresponding to the first pixel, and obtain the coordinate value of the second pixel. Therefore, the display system can determine the position of the second pixel in the second image based on the coordinate value of the second pixel. Then, the display system assigns the pixel value of the aforementioned first pixel to the second pixel in the second image, and thus the pixel value of the second pixel can be determined. Similarly, the display system can calculate each pixel in the first image according to the aforementioned calculation method, and then obtain the position and pixel value of at least a part of the pixels in the second image. Specifically, please refer to the aforementioned Figure 5 The relevant descriptions in the corresponding embodiments are not repeated here.
[0130] 704. Send at least a portion of the first image and the second image to a display. The first image and at least a portion of the second image are used to present a stereoscopic effect on the display. Figure 2 The relevant introduction in the corresponding embodiment will not be repeated here.
[0131] 705. Render the second part of the second image, and send the second part of the second image to the display. In this embodiment, step 705 is an optional step.
[0132] Among them, at least a part of the aforementioned second image is the first part of the second image. The second part of the second image is not included in the first image. It can be understood that when the second parts of the aforementioned first image and the second image are presented to the left and right eyes of the user respectively, the second part of the second image does not overlap with the image of the first image presented in the user's retina. In addition, the combination of the first image and the first part and the second part of the second image is used to present a stereoscopic effect on the display. Specifically, please refer to the aforementioned Figure 2 The relevant introduction in the corresponding embodiment will not be repeated here.
[0133] In this embodiment, the display system only renders the first image, and then directly determines at least a part of the second image based on at least a part of the first image and the disparity information, and transmits at least a part of the first image and the second image to the display, so that the display presents a stereoscopic effect by displaying at least a part of the first image and the second image. In such a scheme, the display displays two images, but the first image is obtained by rendering, and the first part of the second image is determined by the disparity information and the first image, so it is beneficial to reduce the amount of calculation and bandwidth occupied by the display system. In addition, the display system also renders the second part of the second image. Since the second part of the second image is much smaller than the first part of the second image, the amount of calculation required to render the second part of the second image is much smaller than the amount of calculation required to render the first part of the second image. Therefore, it can consume only a small amount of calculation and a small bandwidth under the condition of widening the range of images presented to the user by the display, which is beneficial to reduce the operating load of the GPU in the display system.
[0134] It should also be understood that the first, second and various numerical numbers involved in this document are only distinguished for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0135] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0136] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0137] In the several embodiments provided in the present application, 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 schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0139] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A display system, It is characterized in that include: A graphics processor GPU, configured to render a first image, wherein the first image includes a plurality of pixels, and each pixel in the plurality of pixels corresponds to a depth value; a display controller, configured to obtain the first image from the GPU, obtain disparity information between the first image and a second image, determine at least a portion of the second image based on at least a portion of the first image and the disparity information, and send the first image and at least a portion of the second image to a display, wherein at least a portion of the first image and at least a portion of the second image are used to present a stereoscopic effect on the display, and the disparity information includes a disparity value between a first pixel in at least a portion of the first image and a second pixel in the second image corresponding to the first pixel; The display controller is specifically configured to locate the second pixel in at least a portion of the second image based on the first pixel and the disparity value, and use the pixel value of the first pixel as the pixel value of the second pixel.
2. The display system according to claim 1, It is characterized in that The GPU is further configured to determine the disparity value based on the depth value of the first pixel; The display controller is specifically configured to obtain the disparity value from the GPU.
3. The display system according to claim 2, It is characterized in that The GPU is specifically configured to determine the disparity value based on the depth value, focal length, and baseline length of the first pixel.
4. The display system according to claim 1, It is characterized in that The display controller is specifically configured to obtain a depth value of the first pixel, and determine the disparity value based on the depth value of the first pixel.
5. The display system according to claim 4, It is characterized in that The display controller is specifically configured to determine the disparity value based on the depth value, focal length, and baseline length of the first pixel.
6. The display system according to any one of claims 1 to 5, It is characterized in that at least a portion of the second image is a first portion of the second image; The GPU is further configured to render a second portion of the second image, where the second portion of the second image is not included in the first image; The display controller is further used to obtain the second part of the second image and send the second part of the second image to the display. The first image and the combination of the first part and the second part of the second image are used to present a stereoscopic effect on the display.
7. A graphics processing unit GPU, It is characterized in that include: a processing module, configured to obtain a first image by rendering, and obtain disparity information between the first image and a second image, wherein the first image includes a plurality of pixels, each of the plurality of pixels corresponds to a depth value, and the disparity information includes a disparity value between a first pixel in at least a portion of the first image and a second pixel in the second image corresponding to the first pixel; An interface module is used to provide the first image and the disparity information to a display controller, wherein at least a portion of the first image and the second image are used to present a stereoscopic effect on a display corresponding to the display controller, and at least a portion of the second image is determined by the display controller based on at least a portion of the first image and the disparity information.
8. The GPU according to claim 7, It is characterized in that The processing module is specifically configured to determine the disparity value based on the depth value of the first pixel.
9. The GPU according to claim 8, It is characterized in that The processing module is specifically configured to determine the disparity value based on the depth value, focal length, and baseline length of the first pixel.
10. The GPU according to any one of claims 7 to 9, It is characterized in that at least a portion of the second image is a first portion of the second image; The processing module is further configured to render a second portion of the second image, where the second portion of the second image is not included in the first image; The interface module is also used to provide the second part of the second image to the display controller, and the combination of the first image and the first part and the second part of the second image is used to present a stereoscopic effect on a display corresponding to the display controller.
11. A display controller, It is characterized in that include: a processing module, configured to obtain a first image from a graphics processor (GPU), obtain disparity information between the first image and a second image, and determine at least a portion of the second image based on at least a portion of the first image and the disparity information, wherein the first image includes a plurality of pixels, each of the plurality of pixels corresponds to a depth value, and the disparity information includes a disparity value between a first pixel in at least a portion of the first image and a second pixel in the second image corresponding to the first pixel; An interface module, configured to send at least a portion of the first image and the second image to a display, wherein the first image and the second image are configured to present a stereoscopic effect on the display; The processing module is specifically configured to locate the second pixel in at least a portion of the second image based on the first pixel and the disparity value, and use the pixel value of the first pixel as the pixel value of the second pixel.
12. The display controller according to claim 11, It is characterized in that The processing module is specifically configured to obtain the disparity value from the GPU.
13. The display controller according to claim 11, It is characterized in that The processing module is specifically configured to obtain a depth value of the first pixel, and determine the disparity value based on the depth value of the first pixel.
14. The display controller according to claim 13, It is characterized in that The processing module is specifically configured to determine the disparity value based on the depth value, focal length, and baseline length of the first pixel.
15. The display controller according to any one of claims 11 to 14, It is characterized in that at least a portion of the second image is a first portion of the second image; The processing module is further configured to obtain a second part of the second image from the GPU; The interface module is also used to send the second part of the second image to the display, the second part of the second image is not included in the first image, and the combination of the first image and the first and second parts of the second image is used to present a stereoscopic effect on the display.
