Information transmission method, related equipment and system
By adjusting encoding parameters in real time in the CloudVR system, the delay problem caused by the wireless network connection between the cloud server and the terminal is solved, black edges and freezes are eliminated, and the user experience is improved.
Patent Information
- Application Number
- CN202010535609.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-12
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-06-12
AI Technical Summary
In CloudVR technology, the wireless network connection between the cloud server and the terminal causes excessive delays in the VR game screen, black edges and screen freezes, affecting the user experience.
By receiving the motion information and pose information of the decoding device in real time in the encoding device, the encoding parameters of the encoder are adjusted, the encoding delay is reduced, and the black edges and freezing of the picture are reduced or eliminated. Specific methods include configuring coding parameters based on tracking information, such as deblocking filters, number of reference frames, motion estimation search range, motion estimation method and sub-pixel subdivision strength, etc., and adjusting coding calculation complexity.
It effectively reduces the latency of the CloudVR system, reduces or eliminates black edges and freezes on the screen, improves the user experience, and ensures image resolution and smoothness.
Smart Images

Figure CN113810696B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video encoding and decoding technology, and in particular to an information transmission method, related equipment and system. Background Art
[0002] At present, the virtual reality (VR) game industry is developing rapidly. The high-load tasks such as rendering require a lot of computing resources. Generally, high-performance game consoles are required, which leads to high costs for VR games and cannot meet people's needs to play VR games anytime and anywhere. CloudVR technology uses the idea of end-cloud collaboration to separate VR game rendering and VR game interaction. VR game interaction is completed at the terminal, and the interaction instructions (head display and gesture posture and position information, user output instructions, etc.) are transmitted to the cloud server through the wireless network; the cloud server completes the rendering of the game according to the received interaction instructions, and transmits the game screen to the terminal through the wireless network for display. CloudVR technology can significantly reduce the cost of VR game terminals and enable users to access the network and play VR games anytime and anywhere.
[0003] In CloudVR technology, the cloud server and the terminal are connected via a wireless network. Compared with VR games that are rendered and interacted locally on the terminal, there will be a larger delay. When the delay is too large, the VR game screen will have obvious black edges, screen freezes and other unsmooth phenomena, which significantly affects the VR game experience. Summary of the invention
[0004] The embodiments of the present application provide an information transmission method, related devices and systems, which can reduce the latency of the CloudVR system, reduce or even eliminate the unsmooth phenomena such as black edges and screen freezes of the device, and improve the user experience.
[0005] In the first aspect, an embodiment of the present application provides an information transmission method, which is described from the perspective of an encoding device, including: receiving tracking information from a decoding device, the tracking information including motion information or posture information of the decoding device; configuring encoding information of an image to be processed according to the tracking information of the decoding device; the tracking information is associated with the encoding information, the encoding information including one or more encoding parameters; encoding the image to be processed according to the encoding information, and sending a code stream to the decoding device, the code stream including the one or more encoding parameters.
[0006] Among them, the tracking information is obtained by the decoding device tracking and detecting the motion state of itself or the user, and the tracking information includes at least one of motion information and posture information. The motion information is used to indicate the motion of the decoding device. In a specific embodiment, the motion information includes the motion speed and / or acceleration of the decoding device, the motion speed includes angular velocity and / or linear velocity, and the acceleration includes angular acceleration and / or linear acceleration. The posture information is used to indicate the position information and / or posture information of the decoding device or the user, that is, the posture information can represent the position and posture (or direction) of the decoding device in three-dimensional space. The position can be represented by the three coordinate axes x, y, and z in the three-dimensional coordinate system, and the direction can be represented by (α, β, γ), and (α, β, γ) represents the angle of rotation around the three coordinate axes.
[0007] Tracking information is associated with coding information, which means that there is a corresponding relationship between tracking information and coding information, and the coding device stores the relationship between the two. For example, there can be a direct mapping relationship between tracking information and coding information, that is, the tracking information is bound to the coding information, and the coding information can be directly determined through the tracking information. For another example, there can be an indirect association relationship between tracking information and coding information, such as the need to perform certain algorithm processing or conditional judgment on the tracking information to determine the corresponding coding information. When the coding device receives the specific tracking information uploaded by the decoding device, it can determine the corresponding coding information based on the specific tracking information.
[0008] The encoding information includes one or more encoding parameters used by the encoder of the encoding device to encode the processed image (or the image to be encoded). Since the encoder uses the encoding parameters to perform the encoding process, this means that different encoding parameters require different amounts of calculation and different computational complexity in the encoding process. That is to say, in this application, the encoding device can adjust the encoding parameters of its own configuration in real time based on the tracking information uploaded by the decoding device, thereby realizing the adjustment of the encoding computational complexity.
[0009] It can be seen that after implementing the embodiment of the present application, the encoding device can receive the instruction containing at least one tracking information such as position / posture / linear velocity / angular velocity / acceleration fed back by the decoding device in real time, and can adjust the encoding information of the encoder in the encoding device according to the received tracking information. The adjustment strategy can be to adjust the computational complexity of the encoder (i.e., the encoding parameters). In a codec system (such as a CloudVR system), one of the main components of latency is the encoding latency in the system, and the embodiment of the present application adjusts the encoding latency of the encoder by adjusting the computational complexity of the encoder, thereby reducing the latency of the entire system. Subsequently, image-related information and encoding parameters can be sent to the decoding device to facilitate normal decoding and display by the decoding device.
[0010] Since the black edge phenomenon of the decoding device is closely related to the excessive system latency, the present application reduces the system latency by reducing the computational complexity of the encoder, which can greatly reduce or even eliminate the possibility of black edges on the screen. In this way, the decoding device can decode and display the image in a timely manner after receiving the bit stream, which also ensures the display smoothness of the decoding device and avoids the occurrence of stuttering.
[0011] Based on the first aspect, in a possible embodiment, configuring the encoding information of the image to be processed according to the tracking information of the decoding device specifically includes: querying a preset mapping relationship according to the tracking information to obtain the encoding information of the image to be processed, the preset mapping relationship including a mapping relationship from the tracking information to the encoding information; configuring the encoding information.
[0012] Among them, the preset mapping relationship can be pre-stored in the storage unit of the encoding device, and is used to characterize the mapping relationship between the tracking information and the encoding information. For example, in implementation, the preset mapping relationship can be a mapping table, which can directly record the mapping relationship between various tracking information and encoding parameters, or the mapping table can record the mapping relationship between various value ranges of motion information or posture information and encoding parameters. By determining which value range the specific value in the tracking information is in, it can be determined which encoding parameters the tracking information corresponds to. After obtaining the encoding information corresponding to the tracking information, the encoding device can configure the encoding information (one or more encoding parameters) into the encoder (i.e., replace the previously configured encoding parameters), thereby realizing the adjustment of the encoding parameters of the encoder, that is, adjusting the encoding calculation complexity of the encoding process.
[0013] It can be seen that the embodiment of the present application can realize the rapid adjustment of the encoding calculation complexity by setting the preset mapping relationship, thereby realizing the rapid adjustment of the encoding delay, which is conducive to eliminating the black edge and jamming phenomenon at the decoding end. In addition, the technician can define the specific content of the preset mapping relationship according to actual needs and set it to the encoding device, so the embodiment of the present application is also conducive to providing various preset mapping relationships to meet various application scenarios and meet actual encoding needs.
[0014] Based on the first aspect, in a possible embodiment, the one or more encoding parameters include one or more of a deblocking filter (deblock_filter) parameter, a number of reference frames (Ref), a motion estimation search range (me_range), a motion estimation method (me_method), a sub-pixel subdivision strength (subme), and a lookahead optimizer parameter.
[0015] Among them, the deblocking filter parameter is used to indicate whether to start the deblock_filter function to perform deblocking filtering on the reconstructed image. The reference frame number parameter is used to indicate the maximum number of reference frames, that is, the number of reference frames used in image prediction. The motion estimation search range parameter is used to indicate the motion estimation radius in image prediction, that is, the radius of the encoder's prediction search for pixel blocks. The motion estimation mode is used to indicate the setting of the full-pixel motion estimation mode, which includes motion search algorithms (such as diamond search algorithm, hexagonal search algorithm, asymmetric cross-type multi-level hexagonal grid search algorithm, etc.). The sub-pixel subdivision strength parameter is used to indicate the dynamic prediction and partitioning method. The look-ahead optimizer parameter is used to set the frame buffer size for thread prediction.
[0016] Based on the first aspect, in a possible embodiment, when the tracking information is greater than or equal to a preset threshold, the tracking information is mapped to first coding information; when the tracking information is less than the preset threshold, the tracking information is mapped to second coding information, and the first coding information and the second coding information satisfy at least one of the following relationships:
[0017] (1) The deblocking filter parameters in the first coding information are used to indicate turning off the deblocking filter, and the deblocking filter parameters in the second coding information are used to indicate turning on the deblocking filter.
[0018] For example, deblock_filter=1 means turning on the function, and deblock_filter=0 means turning off the function. For example, in a specific implementation, when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, "deblock_filter=0" is configured, that is, the deblocking filter function is turned off, so that the encoder saves the work of the deblocking filter, reduces the encoding complexity, and thus reduces the encoding delay to avoid black edges, freezes, etc. on the decoding end. On the contrary, when the specific value is less than the preset threshold, "deblock_filter=1" is configured, and the deblocking filter function is turned on. Since the decoding end moves slowly, the delay caused by turning on the deblocking filter function will not cause black edges, freezes, etc.
[0019] (2) The number of reference frames in the first encoding information is smaller than the number of reference frames in the second encoding information.
[0020] For example, when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, 0<Ref<2 is configured at this time, thereby reducing the number of reference frames in the coding prediction, reducing the coding complexity, and thus reducing the coding delay to avoid black edges, freezes, etc. at the decoding end. On the contrary, when the specific value is less than the preset threshold, 16≥Ref≥2 is configured, the number of reference frames in the coding prediction increases, the coding complexity increases, and because the decoding end moves slowly, the delay caused by increasing the number of reference frames will not cause black edges, freezes, etc.
[0021] (3) The motion estimation search range in the first encoding information is smaller than the motion estimation search range in the second encoding information.
[0022] For example, when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, 4≤me_range≤8 is configured at this time, thereby reducing the motion estimation radius in the coding prediction, reducing the coding complexity, and thus reducing the coding delay to avoid black edges, freezes, etc. at the decoding end. On the contrary, when the specific value is less than the preset threshold, 8<me_range≤64 is configured, the motion estimation radius in the coding prediction is increased, the coding complexity is increased, and because the decoding end moves slowly, the delay caused by increasing the motion estimation radius will not cause black edges, freezes, etc.
[0023] (4) The amount of calculation of the motion estimation method in the first coding information is smaller than the amount of calculation of the motion estimation method in the second coding information.
[0024] For example, when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture and other values) is greater than or equal to the preset threshold, a relatively simple motion estimation method is configured, such as the diamond search algorithm dia. The search algorithm is relatively simple, the amount of calculation is small, and the encoding complexity is reduced, thereby reducing the encoding delay to avoid black edges, freezes and other phenomena at the decoding end. On the contrary, when the specific value is less than the preset threshold, a relatively complex motion estimation method is configured, such as the hexagonal search algorithm hex, the asymmetric cross-type multi-level hexagonal grid search algorithm umh, etc. The amount of calculation increases, that is, the encoding complexity increases. Since the decoding end moves slowly, the delay caused by the complexity of the search algorithm will not cause black edges, freezes and other phenomena.
[0025] (5) The sub-pixel subdivision strength in the first encoding information is smaller than the sub-pixel subdivision strength in the second encoding information.
[0026] For example, when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, subme is configured to be equal to 0 or 1, thereby reducing the encoding complexity and thus reducing the encoding delay to avoid black edges, freezes, etc. on the decoding end. On the contrary, when the specific value is less than the preset threshold, 1<subme≤11 is configured to increase the encoding complexity. Since the decoding end moves slowly, the delay caused will not cause black edges, freezes, etc.
[0027] (6) The look-ahead optimizer parameter in the first coding information is smaller than the look-ahead optimizer parameter in the second coding information.
[0028] For example, when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, 0≤lookahead<2 is configured at this time to reduce the frame buffer size, thereby reducing the encoding complexity, thereby reducing the encoding delay, so as to avoid black edges, freezes, etc. at the decoding end. On the contrary, when the specific value is less than the preset threshold, 2≤lookahead≤250 is configured to increase the frame buffer size, thereby increasing the encoding complexity. Since the decoding end moves slowly, the delay caused will not cause black edges, freezes, etc.
[0029] Based on the first aspect, in a possible embodiment, the tracking information is information generated by performing at least one of the following operations on the decoding device: head tracking, gesture tracking, eye tracking, or motion tracking.
[0030] Among them, head tracking is to track the movement of the head by measuring the angle, angular velocity or angular acceleration of the user's head when it turns, thereby triggering a response to the visual picture. Gesture tracking is to track the movement of the hand by detecting the posture, shape, moving speed, moving direction, etc. of the user's hand in the real environment, thereby triggering a response to the visual picture, or triggering interaction with the elements of the picture. Eye tracking is to track the movement of the eyeball by measuring the position of the user's eye gaze point or the movement of the eyeball relative to the head. Motion tracking is to track the user's movement by measuring the user's position and posture (i.e., posture) in the real environment, the speed, acceleration, direction, etc. of the movement in the real environment. It can be seen that the embodiments of the present application can be applied to a variety of tracking scenarios to meet the needs of users in different scenarios, thereby improving the applicability and commercial value of the present application.
[0031] Based on the first aspect, in a possible embodiment, the decoding device includes a virtual reality (VR) device, an augmented reality (AR) device, a mixed reality (MR) device, or drone flight glasses.
[0032] For example, VR devices can be VR glasses, VR headsets, VR boxes, and other devices that apply VR technology; AR devices can be AR glasses, AR TVs, AR headsets, and other devices that apply AR technology; MR devices can be MR glasses, MR terminals, MR headsets, MR wearable devices, and other devices that apply MR technology. In terms of product form, the decoding device can be a head-mounted display device (Head Mount Display, HMD). The head-mounted display device and the host (i.e., the encoding device) can communicate and interact wirelessly or wired. The host encodes the image and transmits it to the head-mounted display device. The head-mounted display device decodes the image and displays it, thereby giving users a VR / AR / MR visual and interactive experience.
[0033] Drone goggles are devices used to interact with drone cameras. The goggles and drones can communicate and interact wirelessly. The drone encodes the captured images / videos and transmits them to the goggles. The goggles decode the images and display them, giving users a drone vision experience and even enabling control of the drone's flight attitude / shooting direction.
[0034] In a second aspect, an embodiment of the present application provides a device for encoding an image, which is applied to an encoding device and includes: a receiving module, a parameter adjustment module, an encoding module and a transmitting module, wherein: the receiving module is used to receive tracking information of a decoding device; the tracking information includes motion information or posture information of the decoding device; the parameter adjustment module is used to configure the encoding information of the image to be processed according to the tracking information of the decoding device; the tracking information is associated with the encoding information, and the encoding information includes one or more encoding parameters; the encoding module is used to encode the image to be processed according to the encoding information; the transmitting module is used to send a code stream to the decoding device, and the code stream includes the one or more encoding parameters.
[0035] Similarly, the tracking information is obtained by the decoding device tracking and detecting the motion state of itself or the user. The tracking information includes at least one of motion information and posture information. The motion information is used to indicate the motion of the decoding device. In a specific embodiment, the motion information includes the motion speed and / or acceleration of the decoding device. The motion speed includes angular velocity and / or linear velocity, and the acceleration includes angular acceleration and / or linear acceleration. The posture information is used to indicate the position information and / or posture information of the decoding device or the user, that is, the posture information can represent the position and posture (or direction) of the decoding device in three-dimensional space.
[0036] Tracking information is associated with coding information, which means that there is a corresponding relationship between tracking information and coding information, and the relationship between the two is stored in the coding device. For example, there can be a direct mapping relationship between tracking information and coding information, that is, the tracking information is bound to the coding information, and the parameter adjustment module can directly determine the coding information through the tracking information. For another example, there can be an indirect association relationship between tracking information and coding information, such as the parameter adjustment module needs to perform certain algorithm processing or conditional judgment on the tracking information to determine the corresponding coding information. When the receiving module receives the specific tracking information uploaded by the decoding device, the corresponding coding information can be determined according to the specific tracking information.
[0037] The encoding information includes one or more encoding parameters used by the encoder of the encoding device to encode the processed image (or the image to be encoded). Since the encoder uses the encoding parameters to perform the encoding process, this means that different encoding parameters require different amounts of calculation and different computational complexity in the encoding process. That is to say, in this application, the encoding device can adjust the encoding parameters of its own configuration in real time based on the tracking information uploaded by the decoding device, thereby realizing the adjustment of the encoding computational complexity.
[0038] It can be seen that the device of the embodiment of the present application can realize real-time reception of instructions containing at least one tracking information such as position / attitude / linear velocity / angular velocity / acceleration fed back by the decoding device, and adjust the encoding information of the encoder in the encoding device according to the received tracking information. The adjustment strategy can be to adjust the computational complexity of the encoder (i.e., encoding parameters), thereby reducing the latency of the entire system. Subsequently, the image-related information and encoding parameters can be sent to the decoding device to facilitate the normal decoding and display of the decoding device, which can greatly reduce or even eliminate the possibility of black edges on the screen, and also ensure the display smoothness of the decoding device and avoid the occurrence of stuttering.
[0039] Based on the second aspect, in a possible embodiment, the parameter adjustment module is specifically used to: query a preset mapping relationship according to the tracking information to obtain the encoding information of the image to be processed, and the preset mapping relationship includes a mapping relationship from the tracking information to the encoding information; configure the encoding information.
[0040] Based on the second aspect, in a possible embodiment, the one or more encoding parameters include one or more of deblocking filter parameters, number of reference frames, motion estimation search range, motion estimation method, sub-pixel subdivision strength, and look-ahead optimizer parameters.
[0041] Based on the second aspect, in a possible embodiment, when the tracking information is greater than or equal to a preset threshold, the tracking information is mapped to first coding information; when the tracking information is less than the preset threshold, the tracking information is mapped to second coding information, and the first coding information and the second coding information satisfy at least one of the following relationships:
[0042] The deblocking filter parameter in the first encoding information is used to indicate turning off the deblocking filter, and the deblocking filter parameter in the second encoding information is used to indicate turning on the deblocking filter;
[0043] The number of reference frames in the first encoding information is smaller than the number of reference frames in the second encoding information; the motion estimation search range in the first encoding information is smaller than the motion estimation search range in the second encoding information;
[0044] The amount of calculation of the motion estimation method in the first coding information is less than the amount of calculation of the motion estimation method in the second coding information;
[0045] The sub-pixel subdivision strength in the first encoding information is less than the sub-pixel subdivision strength in the second encoding information;
[0046] The look-ahead optimizer parameter in the first encoding information is smaller than the look-ahead optimizer parameter in the second encoding information.
[0047] Based on the second aspect, in a possible embodiment, the tracking information is information generated by performing at least one of the following operations on the decoding device: head tracking, gesture tracking, eye tracking, or motion tracking.
[0048] Based on the second aspect, in a possible embodiment, the motion information of the decoding device includes the motion speed and / or acceleration of the decoding device, the motion speed includes angular velocity and / or linear velocity, and the acceleration includes angular acceleration and / or linear acceleration.
[0049] Based on the second aspect, in a possible embodiment, the decoding device includes one of a virtual reality VR device, an augmented reality AR device, a mixed reality MR device, or drone flight glasses.
[0050] In each embodiment described in the second aspect above, the functional modules of the device can cooperate with each other to implement the method described in the relevant embodiments of the first aspect.
[0051] In a third aspect, an embodiment of the present application provides a device for encoding an image, which may be an encoding device, and the encoding device includes: a memory, a processor, and a transceiver, wherein each component of the memory, the processor, and the transceiver may be connected via a bus, or at least two components of the memory, the processor, and the transceiver may be coupled together. Among them:
[0052] The transceiver is used to receive data from the outside world and send data to the outside world;
[0053] The memory is used to store program instructions and data;
[0054] The processor is used to execute program instructions in the memory to implement the method described in the first aspect or any possible embodiment of the first aspect.
[0055] In a fourth aspect, an embodiment of the present application provides a system, which includes an encoding device and a decoding device, wherein: the decoding device is used to send tracking information of the decoding device to the encoding device; the tracking information includes motion information or posture information of the decoding device; the encoding device is used to configure the encoding information of the image to be processed according to the tracking information of the decoding device; the tracking information is associated with the encoding information, and the encoding information includes one or more encoding parameters; the image to be processed is encoded according to the encoding information, and a code stream is sent to the decoding device, and the code stream includes the one or more encoding parameters. The decoding device is used to decode and display the image according to the code stream.
[0056] Specifically, the encoding device may be the encoding device described in any embodiment of the second aspect or the third aspect.
[0057] In the fifth aspect, an embodiment of the present application provides a computing node cluster (or cloud cluster), including: at least one computing node, each computing node including a processor and a memory, the processor executing the code in the memory to perform the method described in any embodiment of the first aspect.
[0058] In a sixth aspect, an embodiment of the present invention provides a non-volatile computer-readable storage medium; the computer-readable storage medium is used to store the implementation code of the method described in the first aspect. When the program code is executed by a computer, the computer is used to implement the method described in any embodiment of the first aspect.
[0059] In a seventh aspect, an embodiment of the present invention provides a computer program product; the computer program product includes program instructions, and when the computer program product is executed by a computer, the computer executes the method described in any one of the embodiments of the first aspect. The computer program product may be a software installation package, and when it is necessary to use the method provided by any possible design of the first aspect, the computer program product may be downloaded and executed on a computer to implement the method described in any one of the embodiments of the first aspect.
[0060] It can be seen that by implementing the embodiments of the present application, the encoding device can receive in real time instructions containing at least one information such as position / posture / linear velocity / angular velocity / acceleration fed back by the decoding device, and automatically adjust the computational complexity (encoding parameters) of the encoder according to the position / posture / linear velocity / angular velocity / acceleration of the decoding device, thereby adjusting the encoding delay, thereby reducing the entire system delay, and subsequently sending image-related information and the configured encoding parameters to the decoding device so that the decoding device can decode and display normally. The present application reduces system delay by reducing the computational complexity of the encoding device during the encoding process, which can fundamentally eliminate the possibility of black edges on the screen, ensure the display smoothness of the decoding device, and avoid the occurrence of freezes. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.
[0062] Figure 1 is a block diagram of a video decoding system 10 provided in an embodiment of the present application;
[0063] Figure 2 This is an example diagram of a device experience scenario applied in an embodiment of the present application;
[0064] Figure 3 This is an example diagram of another device experience scenario applied in the embodiments of the present application;
[0065] Figure 4 is a structural schematic diagram of a video decoding device provided in an embodiment of the present application;
[0066] Figure 5is a simplified block diagram of an apparatus provided by an embodiment of the present application that can be used as either or both of a source device and a destination device;
[0067] Figure 6 This is an example diagram of a scenario in which a user wears a device and turns his head, provided in an embodiment of the present application;
[0068] Figure 7 This is an example diagram of the black edge phenomenon provided by the embodiment of the present application;
[0069] Figure 8 This is an example flow chart of an information transmission solution provided in an embodiment of the present application;
[0070] Fig. 9 Schematic diagram of four tracking methods for realizing user-screen interaction involved in embodiments of the present application;
[0071] Fig.10 It is a flowchart of an information transmission method provided in an embodiment of the present application;
[0072] Fig.11 is a schematic diagram of some search templates provided in the embodiments of the present application;
[0073] Fig.12 It is a logical schematic diagram of determining encoding information according to tracking information provided by an embodiment of the present application;
[0074] Fig.13 It is a flowchart of another information transmission method provided in an embodiment of the present application;
[0075] Fig.14 This is a flowchart of another information transmission solution provided in an embodiment of the present application;
[0076] Fig.15 It is a structural schematic diagram of a system provided by an embodiment of the present application and an encoding device and a decoding device in the system. DETAILED DESCRIPTION
[0077] The following describes the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. The terms used in the implementation mode of the present invention are only used to explain the specific embodiments of the present invention, and are not intended to limit the present invention.
[0078] The terms "first", "second", etc. in the specification embodiments 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 precedence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0079] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0080] In order to better understand the technical solution of the present application, the video decoding system architecture applied in the embodiment of the present invention is first described. Video decoding generally refers to the technology of processing a sequence of pictures that form a video or a video sequence. The video encoding technology used in this article may include video encoding and video decoding. Video encoding is performed on the source side, and generally includes processing (for example, by compression) the original video picture to reduce the amount of data required to represent the video picture, so as to store and / or transmit it more efficiently. Video decoding is performed on the destination side, and generally includes inverse processing relative to the encoder to reconstruct the video picture. The "encoding" of the video picture involved in the embodiment should be understood as involving the "encoding" or "decoding" of the video sequence. The combination of the encoding part and the decoding part is also referred to as encoding and decoding (encoding and decoding). As used herein, the term "video decoder" generally refers to both a video encoder and a video decoder. In this article, the term "video decoding" or "decoding" may generally refer to video encoding or video decoding.
[0081] See also Figure 1 , Figure 1 FIG. 1 is a block diagram of a video decoding system 10 of an example described in an embodiment of the present invention. Figure 1As shown, video decoding system 10 may include source device 12 and destination device 14, where source device 12 generates encoded video data, and thus, source device 12 may be referred to as a video encoding device. Destination device 14 may decode the encoded video data generated by source device 12, and thus, destination device 14 may be referred to as a video decoding device. Various implementations of source device 12, destination device 14, or both may include one or more processors and a memory coupled to the one or more processors. The memory may include, but is not limited to, RAM, ROM, EEPROM, flash memory, or any other media that can be used to store desired program code in the form of instructions or data structures that can be accessed by a computer.
[0082] The source device 12 and the destination device 14 may be communicatively connected via a link 13, and the destination device 14 may receive the encoded video data from the source device 12 via the link 13. The link 13 may include one or more media or devices capable of moving the encoded video data from the source device 12 to the destination device 14. In one example, the link 13 may include one or more communication media that enable the source device 12 to transmit the encoded video data directly to the destination device 14 in real time. In this example, the source device 12 may modulate the encoded video data according to a communication standard (e.g., a wireless communication protocol), and may transmit the modulated video data to the destination device 14. The one or more communication media may include wireless and / or wired communication media, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The one or more communication media may form part of a packet-based network, such as a local area network, a wide area network, or a global network (e.g., the Internet). The one or more communication media may include routers, switches, base stations, or other devices that facilitate communication from the source device 12 to the destination device 14.
[0083] The source device 12 and the destination device 14 may include various devices, and the existence and (accurate) division of the functionality of the source device 12 and / or the destination device 14 may vary according to the actual device and application. At least one of the source device 12 and the destination device 14 may include a desktop computer, a mobile computing device, a notebook (e.g., a laptop) computer, a tablet computer, a set-top box, a mobile phone, a smart phone, a television, a camera, a display device, a set-top box, a digital media player, a video game console, a video streaming device (e.g., a content service server or a content distribution server), a broadcast receiver device, a broadcast transmitter device, a vehicle-mounted device, a mobile vehicle, or the like.
[0084] See also Figure 2In some possible implementations, the solution of the present application can be applied to an immersive virtual visual experience scene. The source device 12 can be a host, which can be an independent terminal, a computing device, a physical server, or a cloud computing platform. The destination device 14 can be a virtual reality (VR) device, an augmented reality (AR) device, a mixed reality (MR) device, or the like.
[0085] For example, VR devices can be VR glasses, VR headsets, VR boxes and other devices that apply VR technology; AR devices can be AR glasses, AR TVs, AR headsets and other devices that apply AR technology; MR devices can be MR glasses, MR terminals, MR headsets, MR wearable devices and other devices that apply MR technology.
[0086] In terms of product form, the destination device 14 can be a head-mounted display device (Head Mount Display, HMD). The head-mounted display device and the host can communicate and interact wirelessly or wired. The host encodes the image and transmits it to the head-mounted display device. The head-mounted display device decodes the image and displays it, thereby bringing the user a VR / AR / MR visual experience and interactive experience. The head-mounted display device can be, for example, a mobile head-mounted display or a host-side head-mounted display. Mobile head-mounted displays, such as VR / AR / MR glasses, VR / AR / MR mobile phone boxes, etc., can be wirelessly connected to the host (such as Bluetooth, WIFI, mobile network, etc.). The host-side head-mounted display can also be called an external head-mounted device, which needs to be wired to the host and other accessories for use.
[0087] In addition, in another possible implementation, the computing function of the host can also be integrated into the head-mounted display device. For example, the head-mounted display device can be an all-in-one head-mounted display. The all-in-one head-mounted display has an independent display device (as a decoding end) and a computing unit (as an encoding end), and the two complete communication interaction inside the all-in-one head-mounted display.
[0088] See also Figure 3 In some other possible implementations, the present application solution can also be applied to the control or visual experience of unmanned vehicles. For example, the source device 12 can be a drone, an unmanned vehicle (not shown), etc. The source device 12 can be equipped with a camera to capture and encode images. The destination device 14 can be a flight goggles of a drone, an unmanned vehicle control device (not shown), or the like. Figure 3The scene of interaction between the flying goggles and the drone is shown. The flying goggles and the drone can communicate and interact wirelessly. The drone encodes the captured images / videos and transmits them to the flying goggles. The flying goggles decode the images and display them, thus giving the user a drone vision experience and even enabling control of the drone's flight attitude / shooting direction.
[0089] Further, the source device 12 includes an encoder 20. Optionally, the source device 12 may also include a picture source 16, a picture preprocessor 18, and a communication interface 22. In a specific implementation form, the encoder 20, the picture source 16, the picture preprocessor 18, and the communication interface 22 may be hardware components in the source device 12, or may be software programs in the source device 12. They are described as follows:
[0090] The picture source 16 may include or may be any type of picture capture device, for example, for capturing real-world pictures, videos, and / or any type of pictures or comments (for screen content encoding, some text on the screen is also considered to be part of the picture or image to be encoded) generating device, for example, a computer graphics processor for generating computer animation pictures, or any type of device for acquiring and / or providing real-world pictures (such as images taken by a camera), computer animation pictures (such as screen content, VR pictures), and / or any combination thereof (such as AR / MR pictures). The picture source 16 may be a camera for capturing pictures or a memory for storing pictures. The picture source 16 may also include any type of (internal or external) interface for storing previously captured or generated pictures and / or acquiring or receiving pictures. In the field of video decoding, the terms "picture", "frame" or "image" may be used as synonyms. When the picture source 16 is a camera, the picture source 16 may be, for example, a local or integrated camera integrated in the source device; when the picture source 16 is a memory, the picture source 16 may be, for example, a local or integrated memory integrated in the source device. When the picture source 16 includes an interface, the interface may be, for example, an external interface for receiving pictures from an external video source, such as an external picture capture device, such as a camera, an external memory, or an external picture generating device, such as an external computer graphics processor, a computer, or a server. The interface may be any type of interface according to any proprietary or standardized interface protocol, such as a wired or wireless interface, an optical interface.
[0091] In the embodiment of the present invention, the picture transmitted from the picture source 16 to the picture preprocessor may also be referred to as original picture data 17 .
[0092] The image preprocessor 18 is used to receive the original image data 17 and perform preprocessing on the original image data 17 to obtain a preprocessed image 19 or preprocessed image data 19. For example, the preprocessing performed by the image preprocessor 18 may include one or more of image rendering, retouch, color format conversion, color grading or denoising.
[0093] The encoder 20 is used to receive the preprocessed picture data 19, and process the preprocessed picture data 19 using the configured encoding prediction mode and encoding parameters, so as to provide encoded picture data 21. Generally, the picture data can be divided into a set of non-overlapping blocks (also called image blocks, or video blocks). In other words, the current image to be processed by the encoder 20 may include one or more blocks at the block level (also called image blocks, or video blocks). The encoder 20 can perform encoding at the block level. In this document, the term "image to be processed" may refer to a part of a picture or frame. Specifically, the "image to be processed" may be a "image block to be processed", that is, a block currently to be processed. In encoding, the image to be processed may include the block currently to be encoded; in decoding, the image to be processed may include the block currently to be decoded. For example, at the encoder side, a prediction block is generated by spatial (intra-picture) prediction and temporal (inter-picture) prediction, the prediction block is subtracted from the current block (currently processed or to be processed block) to obtain a residual block, the residual block is transformed in the transform domain and quantized to reduce the amount of data to be transmitted (compressed), and the decoder side applies the inverse processing part relative to the encoder to the encoded or compressed block to reconstruct the current block for representation. In addition, the encoder replicates the decoder processing loop so that the encoder and the decoder generate the same prediction (e.g., intra-frame prediction and inter-frame prediction) and / or reconstruction for processing, i.e., encoding subsequent blocks.
[0094] In some embodiments, the encoder 20 may be used to execute various embodiments described below to implement the application of the information transmission method described in the present invention on the encoding side.
[0095] The communication interface 22 can be used to receive the encoded picture data 21 and transmit the encoded picture data 21 to the destination device 14 or any other device (such as a memory) through the link 13 for storage or direct reconstruction. The other device can be any device for decoding or storage. The communication interface 22 can, for example, be used to encapsulate the encoded picture data 21 into a suitable format, such as a data packet, for transmission on the link 13.
[0096] The destination device 14 includes a decoder 30. Optionally, the destination device 14 may also include a communication interface 28, a picture post-processor 32, and a display device 34. They are described as follows:
[0097] The communication interface 28 can be used to receive the encoded picture data 21 from the source device 12 or any other source, such as a storage device, such as an encoded picture data storage device. The communication interface 28 can be used to transmit or receive the encoded picture data 21 via the link 13 between the source device 12 and the destination device 14 or via any type of network, such as a direct wired or wireless connection, any type of network, such as a wired or wireless network or any combination thereof, or any type of private network and public network, or any combination thereof. The communication interface 28 can be used, for example, to decapsulate the data packet transmitted by the communication interface 22 to obtain the encoded picture data 21.
[0098] Both communication interface 28 and communication interface 22 may be configured as unidirectional communication interfaces or bidirectional communication interfaces and may be used, for example, to send and receive messages to establish connections, confirm and exchange any other information related to communication links and / or data transmissions such as encoded picture data transmissions.
[0099] The decoder 30 is used to receive the encoded picture data 21 and parse the indication information transmitted in the code stream, the indication information indicating the encoding parameters used by the encoder 20 when encoding the image, and implement image decoding based on the encoded picture data 21 and the indication information, thereby providing decoded picture data 31 (also called reconstructed picture data). In some embodiments, the decoder 30 can be used to execute the various embodiments described below to implement the application of the information transmission method described in the present invention on the decoding side.
[0100] The image post-processor 32 is used to perform post-processing on the decoded image data 31 to obtain the post-processed image data 33. For example, the post-processing performed by the image post-processor 32 may include: rendering, color format conversion, color adjustment, repair or resampling, or one or more of any other processing, and can also be used to transmit the post-processed image data 33 to the display device 34. In an optional embodiment of the present application, the decoding device can also adjust the opening or closing of one or more processing algorithms used by the image post-processor 32 according to the tracking information (such as speed, angular velocity, acceleration, linear velocity, position, posture and other information), for example, at least one of the following algorithms can be adjusted: Standard-Dynamic Range (SDR) image algorithm, High-Dynamic Range (HDR) image algorithm, image enhancement algorithm, image super-resolution algorithm, etc.
[0101] A display device 34 is provided for receiving the post-processed picture data 33 to display the picture to, for example, a user or viewer. The display device 34 may be or may include any type of display for presenting the reconstructed picture, such as an integrated or external display or monitor. For example, the display may include a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro-LED display, a liquid crystal on silicon (LCoS), a digital light processor (DLP), or any other type of display.
[0102] Although, Figure 1 The source device 12 and the destination device 14 are depicted as separate devices, but device embodiments may also include both the source device 12 and the destination device 14 or the functionality of both, i.e., the source device 12 or the corresponding functionality and the destination device 14 or the corresponding functionality. In such embodiments, the source device 12 or the corresponding functionality and the destination device 14 or the corresponding functionality may be implemented using the same hardware and / or software, or using separate hardware and / or software, or any combination thereof.
[0103] Both the encoder 20 and the decoder 30 may be implemented as any of a variety of suitable circuits, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, hardware, or any combination thereof. If the technology is partially implemented in software, the device may store the instructions of the software in a suitable non-transitory computer-readable storage medium, and may use one or more processors to execute the instructions in hardware to perform the technology of the present disclosure. Any of the foregoing (including hardware, software, a combination of hardware and software, etc.) may be considered one or more processors.
[0104] In some cases, Figure 1The video decoding system 10 shown in is only an example, and the technology of the present application can be applied to video encoding settings (e.g., video encoding or video decoding) that do not necessarily include any data communication between encoding and decoding devices. In other examples, data can be retrieved from local storage, streamed over a network, etc. A video encoding device can encode data and store the data in a memory, and / or a video decoding device can retrieve data from a memory and decode the data. In some examples, encoding and decoding are performed by devices that do not communicate with each other but only encode data to a memory and / or retrieve data from a memory and decode data.
[0105] See also Figure 4 , Figure 4 FIG. 4 is a schematic diagram of a video decoding device 400 (eg, a video encoding device 400 or a video decoding device 400) provided in an embodiment of the present application. The video decoding device 400 is suitable for implementing the embodiments described herein. In one embodiment, the video decoding device 400 may be a video decoder (eg, Figure 1 decoder 30) or a video encoder (e.g. Figure 1 In another embodiment, the video decoding device 400 may be the above-mentioned Figure 1 Decoder 30 or Figure 1 One or more components in encoder 20.
[0106] The video decoding device 400 includes: an inlet port 410 and a receiver unit (Rx) 420 for receiving data, a processor, a logic unit or a central processing unit (CPU) 430 for processing data, a transmitter unit (Tx) 440 and an outlet port 450 for transmitting data, and a memory 460 for storing data. The video decoding device 400 may also include an optical-to-electrical conversion component and an electro-optical (EO) component coupled to the inlet port 410, the receiver unit 420, the transmitter unit 440 and the outlet port 450 for the outlet or inlet of an optical signal or an electrical signal.
[0107] The processor 430 is implemented by hardware and software. The processor 430 can be implemented as one or more CPU chips, cores (e.g., multi-core processors), FPGAs, ASICs, and DSPs. The processor 430 communicates with the inlet port 410, the receiver unit 420, the transmitter unit 440, the outlet port 450, and the memory 460. The processor 430 includes a decoding module 470 (e.g., an encoding module 470 or a decoding module 470). The encoding / decoding module 470 implements the embodiments disclosed herein to implement the embodiments of the present invention. For example, the encoding / decoding module 470 implements, processes, or provides various encoding operations. Therefore, the encoding / decoding module 470 provides substantial improvements to the functions of the video decoding device 400 and affects the conversion of the video decoding device 400 to different states. Alternatively, the encoding / decoding module 470 is implemented with instructions stored in the memory 460 and executed by the processor 430.
[0108] The memory 460 includes one or more disks, tape drives, and solid-state drives, and can be used as an overflow data storage device for storing programs when these programs are selectively executed, and for storing instructions and data read during program execution. The memory 460 can be volatile and / or non-volatile, and can be a read-only memory (ROM), a random access memory (RAM), a ternary content-addressable memory (TCAM), and / or a static random access memory (SRAM).
[0109] See also Figure 5 , Figure 5 According to an exemplary embodiment, it can be used as Figure 1 1 and 14. The device 500 may be in the form of a computing system including multiple computing devices (such as multiple computing chips or multiple servers), or in the form of a single computing device such as a desktop computer, a mobile computing device, a notebook computer, a tablet computer, a set-top box, a mobile phone, a smart phone, a television, a camera, a display device, a set-top box, a digital media player, a video game console, a video streaming device, a broadcast receiver device, a broadcast transmitter device, a vehicle-mounted device, a mobile vehicle, or the like.
[0110] The processor 502 in the device 500 may be a central processing unit. Alternatively, the processor 502 may be any other type of device or devices that are currently available or will be developed in the future and are capable of manipulating or processing information. As shown, although the disclosed embodiments may be practiced using a single processor such as the processor 502, advantages in speed and efficiency may be achieved using more than one processor.
[0111] In one embodiment, the memory 504 in the apparatus 500 may be a read-only memory (ROM) device or a random access memory (RAM) device. Any other suitable type of storage device may be used as the memory 504. The memory 504 may include code and data 506 accessed by the processor 502 using the bus 512. The memory 504 may further include an operating system 508 and an application 510, and the application 510 includes at least one program that allows the processor 502 to perform the method described herein. For example, the application 510 may include applications 1 to N, and applications 1 to N further include video encoding applications that perform the methods described herein, such as AR / VR / MR applications, drone flight / shooting control applications, unmanned driving control applications, and the like. The apparatus 500 may also include additional storage in the form of a secondary memory 514, which may be, for example, a memory card used with a mobile computing device. Because a video communication session may contain a large amount of information, this information may be stored in whole or in part in the secondary memory 514 and loaded into the memory 504 as needed for processing.
[0112] The device 500 may also include one or more output devices, such as a display 518. In one example, the display 518 may be a touch-sensitive display that combines a display and a touch-sensitive element operable to sense touch input. The display 518 may be coupled to the processor 502 via the bus 512. In addition to the display 518, other output devices that allow a user to program the device 500 or otherwise use the device 500 may be provided, or other output devices may be provided as an alternative to the display 518. When the output device is a display or includes a display, the display may be implemented in different ways, including by a liquid crystal display (LCD), a cathode-ray tube (CRT) display, a plasma display, or a light emitting diode (LED) display, such as an organic LED (OLED) display.
[0113] The device 500 may also include or be in communication with an image sensing device 520, such as a camera, an infrared detector, or any other image sensing device 520 that is currently available or will be developed in the future and can sense images. The image sensing device 520 can be placed to directly face the user who runs the device 500, or it can be placed to directly face the external environment. In one example, the position and optical axis of the image sensing device 520 can be configured so that its field of view includes an area adjacent to the display 518 and the display 518 is visible from the area.
[0114] When the device 500 is a destination device 14, it may optionally further include a motion sensing device 522, which can be used to implement interaction between the user and the destination device. Specifically, the motion sensing device 522 can be used to detect at least one information such as the position / posture / linear velocity / angular velocity / acceleration of the destination device or the user's body part, and implement the tracking methods described in the embodiments of the present application: head tracking, gesture tracking, eye tracking, and operation tracking. For example, when the motion sensing device 522 is used to perform the head tracking described in the embodiments of the present application, the motion sensing device 522 may include at least one sensor such as an accelerometer, a gyroscope, a magnetometer, an optical capture device, an inertial sensor, etc., to monitor in real time at least one information such as the rotation angle, angular velocity, angular acceleration, and rotation direction of the head of the user wearing the destination device. When the motion sensing device 522 is used to perform the gesture tracking described in the embodiments of the present application, the motion sensing device 522 may include at least one device such as an accelerometer, a gyroscope, a magnetometer, an inertial sensor, an optical camera, an infrared camera, an optical capture device such as a depth sensor, etc., so as to monitor in real time at least one information such as the posture, shape, movement speed, and movement direction of the user's hand. When the motion sensing device 522 is used to perform the eye tracking described in the embodiment of the present application, the motion sensing device 522 may include at least one device such as a built-in camera, an eye tracker, an infrared controller, an iris image detector, etc., to monitor in real time at least one information such as the position of the user's eyeball, gaze direction, movement direction, and movement speed. When the motion sensing device 522 is used to perform the motion tracking described in the embodiment of the present application, the motion sensing device 522 may include at least one device such as an inertial measurement unit (IMU), an accelerometer, a gyroscope, a magnetometer, a depth camera, or a SLAM (simultaneous localization and mapping) system, etc., to monitor at least one information such as the speed, acceleration, direction, position, and posture of the user moving in a real environment.
[0115] Although Figure 5500 is shown as being integrated in a single unit, but other configurations may also be used. The operation of processor 502 may be distributed among multiple directly coupled machines (each machine having one or more processors), or distributed in a local area or other network. Memory 504 may be distributed among multiple machines, such as network-based memory or memory in multiple machines running device 500. Although only a single bus is shown here, bus 512 of device 500 may be formed by multiple buses. Further, memory 514 may be directly coupled to other components of device 500 or may be accessed through a network, and may include a single integrated unit, such as a memory card, or multiple units, such as multiple memory cards. Therefore, device 500 may be implemented in a variety of configurations.
[0116] Existing VR / AR / MR technologies can enable users to have an immersive visual experience and satisfy the interaction between users and the screen.
[0117] See also Figure 6 Taking head-mounted VR glasses as an example, the current VR glasses mainly achieve the purpose of immersion and interaction through two aspects:
[0118] First, current VR glasses can probably produce an image field of vision (FOV) of more than 90 degrees (for example, 90-120 degrees). Through the magnified display technology, an enlarged local virtual scene can be displayed in front of the user. Within this display range, real-time three-dimensional images can be generated through three-dimensional engine technology.
[0119] The second is to make the 3D engine respond to the direction of head rotation (and the current head position change) by coordinating with the data collected by the head posture sensor (such as the head gyroscope). When a person turns his head, the gyroscope can notify the image generation engine to render a new picture accordingly. The image generation engine then transmits the new picture back to the VR glasses, and the VR glasses update the displayed 3D image in real time. In this process, the angle of the user's head rotation is exactly consistent with the 3D image vision simulated by the 3D engine, making the user feel as if he is observing a surrounding virtual 3D world through a large window. Since the user's head rotation produces picture changes in the virtual world that the user can understand, the user believes that the virtual world has given feedback to the user, so the user's actions and the feedback from the virtual world to the user are combined to form an interaction.
[0120] In CloudVR technology, the image generation engine is located in the cloud server, that is, the game screen rendering is performed on the server side, and the game interaction is performed on the VR glasses side. The server and VR glasses are connected via a wireless network, and the rendered new images are transmitted back to the VR glasses for display via wireless transmission. Figure 6 As shown in the figure, after the user puts on VR glasses, the current field of view (FOV) is assumed to be "field of view 1". When the user turns his head to a certain angle, the field of view moves from "field of view 1" to "field of view 2". If the picture is not updated in time, the human eye may perceive a black area at the edge of "field of view 2", that is, a black border. Figure 7 (1) in FIG. 1 shows a VR scene with no black edges. Figure 7 (2) in the figure shows a VR scene with black edges on the screen.
[0121] Generally speaking, there is a certain delay in the wireless transmission of image information. When the user turns his head too quickly, the frequency of the images that need to be updated increases. The existence of delays causes these images that need to be updated to not be displayed in time in the VR glasses, resulting in the existence of black edges. In addition, due to the untimely image updates, VR glasses will also experience image freezes and other unsmoothness, which significantly affects the VR gaming experience.
[0122] Embodiments of the present application Figure 1-Figure 4 The described device / apparatus can solve the defects of the prior art, and can avoid the occurrence of unsmooth phenomena such as black edges and freezes at the decoding end while ensuring the image resolution.
[0123] The technical solution proposed in the embodiment of this application is as follows Figure 8 As shown, the CloudVR system includes a cloud server (equivalent to the source device 12 described in this application) and a VR device (equivalent to the destination device 14 described in this application). After the cloud server receives the instruction containing information such as posture / rotational angular velocity / acceleration fed back by the VR device, the game rendering engine will render the corresponding image (the rendering resolution can remain unchanged) and send the image and information such as posture / rotational angular velocity / acceleration to the encoder. The encoder automatically adjusts the computational complexity (encoding parameters) of the encoder by judging the rotational speed / acceleration / posture of the VR device, thereby adjusting the encoding delay of the encoder, and subsequently the image-related information can be sent to the VR device for decoding and display. Among them, when the VR device rotates faster, the computational complexity of the encoder is reduced, thereby reducing the encoding delay of the encoder, and then reducing the delay of the CloudVR system, thereby eliminating the possibility of black edges on the screen; when the VR device rotates slower, the computational complexity of the encoder returns to normal, and the system delay returns to normal. Since the VR device in this solution can decode and display images in real time and in a timely manner, the display smoothness of the VR device is also guaranteed, avoiding the occurrence of stuttering.
[0124] The coding computational complexity discussed in this article is determined by the texture complexity and motion complexity of the video image. The more uniform the video image is and the smoother the motion is, the lower the coding computational complexity is; conversely, the higher the coding computational complexity is.
[0125] It should be noted that Figure 8 In the embodiment shown, taking the destination device as a VR device as an example, after the user wears the VR device, the detection of the posture / rotational angular velocity / acceleration of the VR device can be achieved by head tracking. In actual applications of this application, the information fed back by the VR device to the cloud server may not be limited to the information obtained by head tracking, but may also be the information obtained by gesture tracking, or the information obtained by eye tracking, or the information obtained by motion tracking.
[0126] See also Fig. 9 ,The following describes these four tracking methods for realizing the interaction between the user and the screen.
[0127] (1) Head tracking
[0128] Head tracking is the process of tracking head movements by measuring the angle, angular velocity or angular acceleration of the user's head when it turns, thereby triggering a response to the visual image. In specific implementation, by configuring sensors such as accelerometers, gyroscopes, magnetometers, optical capture devices, inertial sensors, etc. inside the destination device, the rotation angle, angular velocity, angular acceleration, rotation direction and other information of the user's head wearing the destination device can be monitored in real time. The result of head tracking is that when the user wears the destination device (such as a VR device) and turns his head, the picture he sees will move with the movement of the head, simulating the scene where the user turns his head to see a new picture, thereby obtaining an immersive visual experience.
[0129] (2) Gesture tracking
[0130] Gesture tracking is the tracking of hand movements by detecting the posture, shape, movement speed, movement direction, etc. of the user's hand in the real environment, thereby triggering a response to the visual screen or triggering interaction with the screen elements. In terms of specific implementation, gesture tracking can be divided into two ways: one is a contact detection method, that is, the user's hand needs to be bound to a sensor (such as a data glove worn on the hand, or a user's handheld device), and the sensor can be an accelerometer, gyroscope, magnetometer, inertial sensor, etc., so as to monitor the user's hand posture, shape, movement speed, movement direction and other information in real time. The other is a contactless detection method, which can identify the user's hand posture, shape, movement speed, movement direction and other information by configuring optical capture devices such as optical cameras, infrared cameras, depth sensors, etc. in the destination device. Gesture tracking can bring users direct participation and interaction with the screen content, improving the user experience.
[0131] (3) Eye tracking
[0132] Eye tracking is achieved by measuring the position of the user's eye gaze point or the movement of the eye relative to the head to track the eye movement. In specific implementations, by configuring devices such as built-in cameras, eye trackers, infrared controllers, iris image detectors, etc. inside the destination device, the user's eye position, gaze direction, movement direction, movement speed, etc. are tracked in real time through certain algorithms (such as eye image recording method and corneal reflection method). When the user puts on the destination device (such as a VR device) and moves his eyes, the picture he sees will move with the movement of his eyes, simulating the scene where the user moves his eye field to see a new picture, thereby obtaining an immersive visual experience.
[0133] (4) Motion tracking
[0134] Motion tracking is to track the user's movement by measuring the user's position and posture (i.e., position) in the real environment, the speed, acceleration, direction, etc. of the user's movement in the real environment. In a specific implementation, for example, an inertial measurement unit (IMU) can be used to measure the user's translational movement and rotational movement in the real environment, thereby realizing motion measurement in six degrees of freedom (6DoF). For another example, an accelerometer, gyroscope, or magnetometer can be used to measure the speed, acceleration, direction, and other information of the user's movement in the real environment. For another example, a depth camera or a SLAM (simultaneous localization and mapping) system can also be used to identify changes in the real environment, thereby determining changes in the user's own movement and real-time position. Through motion tracking, it is also possible to trigger the update of the visual picture or trigger the interaction between the user and the picture elements.
[0135] It should be noted that in the embodiments of the present application, the tracking method adopted can be any one of the tracking methods described above, or it can be a combination of multiple tracking methods, such as a combination of head tracking and eye tracking, a combination of head tracking and motion tracking, etc., and the present application does not limit this.
[0136] Based on the above-described system, device, tracking method, etc., the following describes an information transmission method provided by an embodiment of the present invention that can be used to avoid black edges and freezes. Fig.10 , Fig.10 1 is a flow chart of an information transmission method provided by an embodiment of the present invention. The method is described from the perspectives of an encoding device side (or source device side) and a decoding device side (or destination device side), including but not limited to the following steps:
[0137] S101, decoding device detection obtains tracking information.
[0138] Among them, the tracking information is the information generated by performing at least one of the following tracking methods on the decoding device: head tracking, gesture tracking, eye tracking, or motion tracking. The specific contents of these tracking methods have been described above and will not be repeated here. In a specific implementation, the tracking information of the decoding device includes at least one of the motion information and posture information when the limbs of the decoding device or the user move / move / rotate, that is, it can include motion information or posture information, or simultaneously include motion information and posture information. Among them, the motion information may include speed (linear velocity, angular velocity, etc.) and / or acceleration (linear acceleration, angular acceleration, etc.), and the posture information may include the position and / or posture (or direction) of the decoding device or the user. That is, the posture information can represent the position and posture (or direction) of the decoding device in three-dimensional space, the position can be represented by the three coordinate axes x, y, and z in the three-dimensional coordinate system, and the direction can be represented by (α, β, γ), and (α, β, γ) represents the angle of rotation around the three coordinate axes.
[0139] S102: The decoding device sends the tracking information of the decoding device to the encoding device; correspondingly, the encoding device receives the tracking information of the decoding device.
[0140] S103: The encoding device configures encoding information of the image to be processed according to the tracking information of the decoding device.
[0141] The image to be processed is an image that needs to be processed and transmitted to the encoding device for display / interaction. The tracking information is associated with encoding information of the image to be processed, and the encoding information includes one or more encoding parameters (or a set of encoding parameters) that the encoder of the encoding device needs to use to encode the image to be processed.
[0142] These encoding parameters may include, for example, one or more of the following: deblocking filter (deblock_filter) function on or off instructions, reference frame number (Ref), motion estimation search range (me_range), motion estimation method (me_method), sub-pixel subdivision strength (subme), lookahead optimizer parameters, etc. They are described as follows:
[0143] (1) The deblocking filter (deblock_filter) function on or off instruction is used to indicate whether to start the deblock_filter function to perform deblocking filtering on the reconstructed image. For example, deblock_filter=1 indicates that the function is turned on, and deblock_filter=0 indicates that the function is turned off. For example, in a specific implementation, the following design can be made: when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, it means that the decoding end moves faster. At this time, "deblock_filter=0" is configured, that is, the deblocking filter function is turned off, so that the encoder saves the work of the deblocking filter, reduces the encoding complexity, and thus reduces the encoding delay to avoid black edges, freezes, etc. at the decoding end. On the contrary, when the specific value is less than the preset threshold, "deblock_filter=1" is configured, and the deblocking filter function is turned on. Since the decoding end moves slowly, the delay caused by turning on the deblocking filter function will not cause black edges, freezes, etc.
[0144] (2) The parameter of the number of reference frames (Ref) is used to indicate the maximum number of reference frames, that is, the number of reference frames used in image prediction. The range of the number of reference frames is, for example, 0 to 16. The larger the value, the more accurate the prediction and the greater the computational complexity. Conversely, the smaller the value, the worse the prediction accuracy and the smaller the computational complexity. For example, in a specific implementation, the following design can be made: when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, it means that the decoding end moves faster. At this time, 0<Ref<2 is configured, thereby reducing the number of reference frames in the coding prediction, reducing the coding complexity, and thus reducing the coding delay to avoid black edges, stuttering, etc. at the decoding end. Conversely, when the specific value is less than the preset threshold, 16≥Ref≥2 is configured, the number of reference frames in the coding prediction increases, the coding complexity increases, and because the decoding end moves slowly, the delay caused by increasing the number of reference frames will not cause black edges, stuttering, etc. It should be noted that the above examples are only used to explain the present application scheme and are not limited.
[0145] (3) The motion estimation search range (me_range) parameter is used to indicate the motion estimation radius in image prediction, that is, the radius of the encoder's prediction search for pixel blocks. For example, the range of the motion estimation radius can be 4 to 64. The larger the value, the larger the search range, the more accurate the prediction, and the greater the computational complexity. Conversely, the smaller the value, the worse the prediction accuracy and the smaller the computational complexity. For example, in a specific implementation, the following design can be made: when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, it means that the decoder moves faster. At this time, 4≤me_range≤8 is configured, thereby reducing the motion estimation radius in the encoding prediction, reducing the encoding complexity, and thus reducing the encoding delay to avoid black edges, freezes, and other phenomena at the decoder. Conversely, when the specific value is less than the preset threshold, 8<me_range≤64 is configured, the motion estimation radius in the encoding prediction increases, the encoding complexity increases, and because the decoder moves slower, the delay caused by increasing the motion estimation radius will not cause black edges, freezes, and other phenomena. It should be noted that the above examples are only used to explain the present application scheme and are not limiting.
[0146] (4) Motion estimation method (me_method) is used to indicate the setting of full pixel motion estimation method. Motion estimation methods include motion search algorithms (such as diamond search algorithm dia, hexagonal search algorithm hex, asymmetric cross multi-level hexagonal grid search algorithm umh, etc.). The more complex the motion search algorithm, the more accurate the prediction, and the more complex the calculation. Conversely, the simpler the motion search algorithm, the worse the prediction accuracy and the smaller the calculation complexity.
[0147] For example, the general matching criterion for motion estimation is to adopt the rate distortion optimization criterion, and the matching error function is J=SAD+λ·R, where λ is the Lagrange constant, R represents the number of bits that may be consumed in encoding the motion vector difference image, and the SAD (absolute difference sum) calculation formula is as follows: SAD=∑ (x,y)∈A |s[x,y]-s′[x,y]|. The point with the smallest J is recorded as the minimum error point (minimum block distortion, MBD).
[0148] Different motion search algorithms use different search templates and are based on different MBD points. Fig.11Some possible search templates are shown, and the black dots in the templates represent the best prediction points found in the step. The search templates listed in the figure include small diamond templates, medium diamond templates, hexagonal templates, small square templates, asymmetric cross templates, 5*5 step-by-step search templates, large hexagonal templates, regular octagonal templates, etc. It should be noted that in the specific implementation of the present application, any other possible search templates may also be used, such as full search templates, three-step search templates, four-step search templates, etc., and the present application does not limit this.
[0149] For example, in a specific implementation, the following design can be made: when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture and other values) is greater than or equal to the preset threshold, it means that the decoding end moves faster. At this time, a relatively simple motion estimation method is configured, such as the diamond search algorithm dia. The search algorithm is relatively simple and the amount of calculation is small, which reduces the encoding complexity, thereby reducing the encoding delay to avoid black edges, freezes and other phenomena at the decoding end. On the contrary, when the specific value is less than the preset threshold, a relatively complex motion estimation method is configured, such as the hexagonal search algorithm hex, the asymmetric cross-type multi-level hexagonal grid search algorithm umh, etc. The amount of calculation increases, that is, the encoding complexity increases. Since the decoding end moves slowly, the delay caused by the complexity of the search algorithm will not cause black edges, freezes and other phenomena. It should be noted that the above examples are only used to explain the present application scheme and are not limited.
[0150] (5) The sub-pixel subdivision intensity (subme) parameter is used to indicate the dynamic prediction and partitioning method. The value range of this parameter can be, for example, 0 to 11. The larger the value, the more accurate the prediction and the greater the computational complexity. Conversely, the smaller the value, the worse the prediction accuracy and the smaller the computational complexity. For example, in a specific implementation, the following design can be made: when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, it means that the decoding end moves faster. At this time, subme is configured to be equal to 0 or 1, thereby reducing the encoding complexity, thereby reducing the encoding delay to avoid black edges, freezes, and other phenomena at the decoding end. Conversely, when the specific value is less than the preset threshold, 1<subme≤11 is configured to increase the encoding complexity. Since the decoding end moves slowly, the delay caused will not cause black edges, freezes, and other phenomena. It should be noted that the above examples are only used to explain the present application scheme and are not limited.
[0151] (6) The lookahead optimizer parameter is used to set the frame buffer size predicted by the thread. The value range of this parameter is, for example, 0 to 250. The larger the value, the more accurate the prediction and the greater the computational complexity. Conversely, the smaller the value, the worse the prediction accuracy and the smaller the computational complexity. For example, in a specific implementation, the following design can be made: when the specific value in the tracking information (such as speed, acceleration, acceleration, position, posture, etc.) is greater than or equal to the preset threshold, it means that the decoding end moves faster. At this time, 0≤lookahead<2 is configured to reduce the frame buffer size, thereby reducing the encoding complexity, thereby reducing the encoding delay, so as to avoid black edges, freezes, etc. on the decoding end. Conversely, when the specific value is less than the preset threshold, 2≤lookahead≤250 is configured to increase the frame buffer size, thereby increasing the encoding complexity. Since the decoding end moves slowly, the delay caused will not cause black edges, freezes, etc. It should be noted that the above examples are only used to explain the present application scheme and are not limited.
[0152] Based on the above analysis, it can be summarized as follows: in a possible embodiment of the present application, for convenience, when the tracking information fed back by the decoding device is greater than or equal to a preset threshold, the encoding information mapped by the tracking information can be referred to as the first encoding information; when the tracking information is less than the preset threshold, the encoding information mapped by the tracking information is referred to as the second encoding information, then, the first encoding information and the second encoding information can satisfy at least one of the following relationships: the deblocking filter parameters in the first encoding information are used to indicate that the deblocking filter is turned off, and the deblocking filter parameters in the second encoding information are used to indicate that the deblocking filter is turned on; the number of reference frames in the first encoding information is less than the number of reference frames in the second encoding information; the motion estimation search range in the first encoding information is less than the motion estimation search range in the second encoding information; the computational amount of the motion estimation method in the first encoding information is less than the computational amount of the motion estimation method in the second encoding information; the sub-pixel subdivision strength in the first encoding information is less than the sub-pixel subdivision strength in the second encoding information; the advance optimizer parameters in the first encoding information are less than the advance optimizer parameters in the second encoding information.
[0153] In the embodiment of the present application, the tracking information is associated with the encoding information, which means that there is a corresponding relationship between the tracking information and the encoding information, and the encoding device stores the relationship between the two.
[0154] For example, in some specific embodiments, the decoding device may store a mapping relationship between the tracking information and the encoding parameter set. In this way, after receiving the tracking information, the decoding device can find the corresponding encoding parameter configuration to the encoder according to the mapping relationship. For example, the tracking information and the encoding information may be directly mapped, that is, the tracking information is bound to the encoding information, and the encoding information can be directly determined through the tracking information.
[0155] For another example, in some specific embodiments, the tracking information and the coding information may be indirectly associated, for example, the tracking information needs to be processed by a certain algorithm or conditional judgment to determine the corresponding coding information. When the coding device receives the specific tracking information uploaded by the decoding device, the corresponding coding information can be determined based on the specific tracking information. Fig.12 The decoding device can also judge the preset conditions according to the tracking information, and determine the corresponding coding parameter set based on the judgment result. For example, the decoding device pre-stores the mapping relationship between different data intervals and coding parameter sets. After receiving the tracking information, the decoding device can determine the data interval where the speed / acceleration / position data in the tracking information is located according to the tracking information, and then find the corresponding coding parameter set according to the mapping relationship.
[0156] It can be seen that in the embodiment of the present application, the encoding device can receive in real time an instruction containing at least one tracking information such as position / attitude / linear velocity / angular velocity / acceleration fed back by the decoding device, and can adjust the encoding information (encoding parameters) of the encoder in the encoding device according to the received tracking information, thereby adjusting the computational complexity of the encoder.
[0157] S104: The encoding device performs image encoding on the image to be processed according to the encoding parameters configured in S104. The encoding process may be performed by an encoder in the encoding device. The specific encoding process is not described here.
[0158] S105. The encoding device encodes the encoding parameters used to indicate the configuration in S104 into a bitstream and sends it to the decoding device.
[0159] In the embodiment of the present application, since the encoding device can adjust the encoding parameters of the encoder according to the tracking information uploaded by the decoding device, the relevant information of the encoding parameters can be encoded in the bitstream to facilitate subsequent decoding by the encoding device.
[0160] It is understandable that the bitstream also includes image information obtained after encoding the image, so that the decoding device can reconstruct (decode) the image based on the image information. For example, the bitstream sent to the decoding device includes motion vector difference information (MVD), reference image index, etc. The specific content of the image information can be implemented with reference to existing encoding methods, and this application does not limit it.
[0161] S106: The decoding device parses the code stream from the encoding device.
[0162] For example, since the coding parameter information and the image information are encoded in the bitstream, it is understandable that the decoding device can obtain the information by parsing the bitstream.
[0163] S107: The decoding device decodes and displays the image according to the instruction information.
[0164] It can be understood that the decoding process of the decoding device can be regarded as the inverse process of encoding. The decoding device can decode (decode) the image information to reconstruct the image and display it through the display device. The implementation of the decoding process can refer to the existing decoding means.
[0165] It should be noted that the embodiments of the present application mainly describe the scheme from the perspective of the implementation process of encoding and decoding, while the implementation of other image processing processes (such as image preprocessing, image post-processing, etc.) can be implemented by referring to existing means, and this application will not describe them in detail.
[0166] It can be seen that, by implementing the embodiment of the present application, the encoding device can receive instructions containing at least one information such as position / posture / linear velocity / angular velocity / acceleration from the decoding device in real time, and then further transmit these instructions to the encoder. The encoder automatically adjusts the computational complexity (encoding parameters) of the encoder according to the position / posture / linear velocity / angular velocity / acceleration of the decoding device to adjust the encoding delay of the encoder, thereby reducing the entire system delay. Subsequently, the image-related information and the configured encoding parameters can be sent to the VR device to facilitate the decoding device to decode and display normally. Since the black edge phenomenon of the decoding device is closely related to the excessive system delay, and one of the main components of the delay is the encoding delay in the CloudVR system, the present application reduces the system delay by reducing the computational complexity of the encoder, which can fundamentally eliminate the possibility of black edges on the screen. In this solution, the VR device can decode and display images in real time and in a timely manner, so the display smoothness of the VR device is also guaranteed, and the occurrence of stuttering is avoided. In addition, the embodiment of the present application can also keep the screen rendering at a better resolution to ensure the user experience.
[0167] In order to better understand the solution of the embodiment of the present application, the information transmission method provided by the embodiment of the present application is described below using a specific cloudVR scenario as an example. Fig.13 The method is described from the perspectives of the encoding device side (or source device side) and the decoding device side (or destination device side), respectively. The encoding device may be a VR head display, and the decoding device may include a cloud server. The tracking information of the VR head display is information obtained through head tracking (such as the rotation angular velocity and posture of the head). Fig.11 As shown, the method includes but is not limited to the following steps:
[0168] S201, the VR head display detects the rotation angular velocity V and posture information of the VR head display by head tracking. The specific implementation scheme can be referred to the content about head tracking in the previous text, which will not be repeated here.
[0169] S202, the VR headset sends information such as rotation angular velocity V and posture to the server.
[0170] S203: The server determines an image to be processed according to the posture information of the VR head display, and performs image rendering on the image to be processed.
[0171] Specifically, the server may predict the image position according to the position of the head display, thereby determining the current image to be processed, and preprocessing the image to be processed, wherein the preprocessing may include one or more of image rendering, refurbishment, color format conversion, color adjustment, or denoising. The specific content of this part may be implemented with reference to existing means.
[0172] S204. The server transmits the rotational angular velocity V of the VR headset to the internal encoder. After obtaining the rotational angular velocity, the encoder determines the relationship between the rotational angular velocity V and the preset threshold value, so as to start the encoding parameter configuration function to adjust the encoding parameters and adjust the encoding complexity. Exemplarily, the preset thresholds that can be set in advance may include T1 and T2, where T1<T2. When V>T2, S205-1 is subsequently executed; when T1≤V≤T2, S205-2 is subsequently executed; when V<T1, S205-3 is subsequently executed.
[0173] S205-1. When V>T2, the encoder configures a first encoding parameter set.
[0174] Specifically, when the VR head display rotates very fast and exceeds T2, the encoder selects the first encoding parameter set according to the mapping relationship. The configured first encoding parameter set may include one or more of the following: turning off the deblock function in the encoder, changing the number of reference frames to 1, setting the motion estimation search range to 4x4, using diamond search dia in the motion estimation method, etc. Thus, the encoding calculation complexity is greatly reduced and the encoding delay is significantly reduced.
[0175] S205-2. When T1≤V≤T2, configure the second coding parameter set.
[0176] Specifically, when the rotation speed of the VR head display is fast, exceeding T1 but not exceeding T2, the encoder selects the second encoding parameter set according to the mapping relationship. The configured second encoding parameter set may include one or more of the following: turning on the deblock function, increasing the number of reference frames to 2, the motion estimation search range to 8x8, and the motion estimation method using the hexagonal search algorithm hex, etc. Thus, the encoding calculation complexity is reduced and the encoding delay is reduced.
[0177] S205-3. When V<T1, configure the third coding parameter set.
[0178] Specifically, when the VR head display rotates slowly, less than T1, the encoder selects the third encoding parameter set according to the mapping relationship. The configured third encoding parameter set may include one or more of the following: turning on the deblock function, increasing the number of reference frames to 4, the motion estimation search range to 16x16, and the motion estimation method using the asymmetric cross-type multi-level hexagonal grid search algorithm umh. At this time, the encoder calculation complexity is relatively large, and the encoding delay is relatively large.
[0179] In a specific implementation, an exemplary implementation code is as follows:
[0180]
[0181]
[0182] It should be noted that the relevant content about the encoder configuration encoding parameters can also refer to the aforementioned Fig.10 The relevant description of Example S103 is not repeated here.
[0183] S206: The encoder of the server loads the configured encoding parameters and starts encoding the image to be processed.
[0184] S207, the encoder of the server encodes the encoded image information and the selected configured encoding parameters into a bitstream, and sends it to the VR head display through the network. The image information may include, for example, motion vector difference information (MVD), reference image index, and other specific contents, which may be implemented with reference to existing encoding methods and are not limited in this application.
[0185] S208, VR head display parsing stream.
[0186] Specifically, since the coding parameter information and the image information are encoded in the bitstream, it is understandable that the decoding device can obtain the information by parsing the bitstream.
[0187] S209, the VR head display decodes and displays the image. For details, please refer to the above Fig.10 The relevant description of Example S107 is not repeated here.
[0188] It should be noted that Fig.13 The two preset thresholds T1 and T2 in the embodiment and the encoding parameters specifically configured by the encoder are only used to explain the scheme of the present application and are not limited. In specific implementation, based on the technical idea of the present application, different implementation schemes can also be designed, such as Fig.14Another implementation scheme is shown, in which only one preset threshold T may be used, and the encoding parameters configured in the encoder may include turning on and off the deblock function, changing the number of constructed vertices in display rendering, etc. Different forms of implementation schemes, as well as schemes obtained by deformation based on the scheme of the present application, shall all fall within the protection scope of the present application.
[0189] It can be seen that by implementing the embodiment of the present invention, the server side can adjust the encoder calculation complexity and optimize the encoder parameter configuration by judging the rotation angular velocity information fed back by the VR head display, thereby optimizing the encoding delay, and then optimizing the head turning delay of the entire system, significantly reducing the system delay of CloudVR, and helping to slow down or even eliminate the black edge effect when turning the head. When wearing a VR head display, the faster the head turns, the less obvious the human eye's perception of the quality of the picture is, the lower the CloudVR system delay, and the less likely it is to perceive the black edge when turning the head. In this embodiment, if the head display rotates quickly, the encoder can sacrifice a certain image quality at the cost of reducing the encoding complexity, thereby reducing the system delay; if the head display rotates slowly, the encoder can encode according to the original configuration without reducing the image quality. Thereby, low latency is guaranteed when the VR head display rotates quickly, fundamentally reducing the possibility of black edges, and the image quality and experience when the VR head display is stationary or turns at a low speed are not affected. At the same time, this embodiment can also ensure the image rendering resolution and ensure the user experience. However, the existing technical means do not reduce the system delay, so it will introduce adverse reactions such as screen smearing and jitter.
[0190] In addition, it should be noted that in an optional embodiment of the present application, after the decoder of the decoding device completes decoding of the image, the image post-processing link (eg Figure 1 The image post-processor 32 in the image processing module can further reduce the system delay, thereby further avoiding the occurrence of black edges and freezes.
[0191] Specifically, during the image post-processing stage, the decoding device can start or shut down one or more processing algorithms in the image post-processing stage according to the tracking information of the decoding device, so as to adjust the computational complexity of the image post-processing stage and reduce the possibility of black edges or freezes.
[0192] In some possible embodiments, a mapping relationship between the tracking information of the decoding device and one or more processing algorithms adopted by the image post-processor can be preset. Then, by querying the mapping relationship based on the tracking information of the decoding device, the corresponding processing algorithm can be determined and configured for use by the image post-processor.
[0193] Among them, the one or more processing algorithms adopted by the image post-processor may include, for example, at least one of the following algorithms: standard dynamic range (Standard-Dynamic Range, SDR) image algorithm, high dynamic range (High-DynamicRange, HDR) image algorithm, image enhancement algorithm, image super-resolution algorithm, etc. Among them, the SDR image algorithm can be used to implement gamma curve correction for images or videos. The HDR image algorithm can be used to provide more dynamic range and image details of the image, so that the image can better reflect the visual effects in the real environment. The image enhancement algorithm can be used to adjust the brightness, contrast, saturation, hue, etc. of the image to increase the clarity of the image, reduce noise, etc. The image super-resolution algorithm can restore a low-resolution image or image sequence to a high-resolution image. It can be seen that the image quality of the decoding device can be improved by one or more of the above-mentioned processing algorithms, thereby bringing a better image perception to the user.
[0194] The tracking information of the decoding device can be obtained from the history cache of the memory of the decoding device, or can be transmitted back to the decoding device by the encoding device through the code stream. The tracking information of the decoding device includes at least one of the motion information and posture information of the decoding device, the motion information includes the motion speed and / or acceleration of the decoding device, the motion speed includes the angular velocity and / or the linear velocity, and the acceleration includes the angular acceleration and / or the linear acceleration; the posture information includes the position information and / or the posture information of the decoding device.
[0195] For example, if the decoding device is a VR headset and the tracking information is the rotation angular velocity V, the rotation angular velocity threshold of the VR headset can be set in advance in the decoding device. Then, the mapping relationship between the tracking information and one or more processing algorithms used by the image post-processor can be as follows:
[0196] When the rotation angular velocity V exceeds the rotation angular velocity threshold, one or more processing algorithms are turned off, for example, at least one of the SDR image algorithm, the HDR image algorithm, the image enhancement algorithm, the image super-resolution algorithm, etc. That is, when the VR head display moves faster, the computational complexity can be reduced in the image post-processing link, thereby reducing the system delay, thereby avoiding the occurrence of black edges, freezes, etc.
[0197] When the rotation angular velocity V is less than the rotation angular velocity threshold, one or more processing algorithms are enabled, such as at least one of the SDR image algorithm, the HDR image algorithm, the image enhancement algorithm, and the image super-resolution algorithm. That is, the computational complexity can be increased in the image post-processing link, thereby improving the image quality of the system output image and bringing a better viewing experience to the user. Since the movement of the VR headset is relatively slow at this time, the resulting delay will not cause black edges, freezes, and other phenomena.
[0198] It should be noted that the above examples are only used to explain the present application scheme and are not intended to limit it. In other implementations, multiple rotation angular velocity thresholds (e.g., two or more) may also be designed to provide more mapping possibilities between tracking information and processing algorithms to adapt to more diverse application scenarios.
[0199] It can be seen that, by implementing the embodiments of the present invention, the decoding device end (such as a VR headset) adjusts the opening or closing of one or more processing algorithms of the image post-processing link (such as a picture post-processor) according to the historically cached tracking information or the tracking information returned in the bitstream, thereby adjusting the computational complexity, further optimizing the head-turning latency of the entire system, significantly reducing the system latency of CloudVR, and helping to slow down or even eliminate the black edge effect when turning the head. It can also improve the image quality without black edges or freezes, and bring a better viewing experience to users.
[0200] The method of the embodiment of the present invention is described in detail above, and the device of the embodiment of the present invention is provided below.
[0201] See also Fig.15 , Fig.15 1 is a schematic diagram of the structure of a system and an encoding device 60 and a decoding device 70 in the system provided by an embodiment of the present invention, wherein the encoding device 60 and the decoding device 70 can communicate with each other in a wireless manner, and the encoding device 60 may include a parameter adjustment module 601, an encoding module 602, a receiving module 603 and a transmitting module 604. The decoding module 70 may include a tracking module 701, a decoding module 702, a display module 703, a transmitting module 704 and a receiving module 705,
[0202] The functions of each module of the encoding device 60 and the decoding device 70 are described as follows.
[0203] For encoding device 60:
[0204] The receiving module 603 is used to receive tracking information of the decoding device 70; the tracking information of the decoding device 70 includes at least one of motion information and posture information of the decoding device.
[0205] The parameter adjustment module 601 is used to configure the encoding information of the image to be processed according to the tracking information of the decoding device 70; the tracking information is associated with the encoding information, and the encoding information includes one or more encoding parameters used to encode the image to be processed.
[0206] The encoding module 602 is used to perform image encoding on the image to be processed.
[0207] The transmitting module 604 is used to encode the encoding parameters and the encoded image information into a code stream and send it to the decoding device 70 .
[0208] For decoding device 70:
[0209] The tracking module 701 is used to obtain tracking information by real-time tracking of the decoding device 70, and the tracking information is information generated by performing at least one of the following operations on the decoding device 70: head tracking, gesture tracking, eye tracking, or motion tracking; the tracking information of the decoding device 70 includes at least one of the motion information and posture information of the decoding device.
[0210] The transmitting module 704 is used to send the tracking information of the decoding device 70 to the encoding device 60 .
[0211] The receiving module 705 is used to receive the code stream from the encoding device 60 to obtain encoding parameters and encoded image information.
[0212] The decoding module 702 is used to perform image decoding according to the encoded image information.
[0213] The display module 703 is used to display the decoded image.
[0214] It should be noted that the specific functional implementation of each module function of the encoding device 60 and the decoding device 70 can be referred to in the previous Fig.10 or Fig.13 In the relevant description of the embodiment, for example, for the encoding device 60, the receiving module 603 can be used to perform the tracking information reception of S102, the parameter adjustment module 601 is used to perform S103, the encoding module 602 is used to perform S104, and the transmitting module 604 is used to perform the code stream transmission of S105; for the decoding device 70, the tracking module 701 is used to perform S101, the transmitting module 704 is used to perform the tracking information transmission of S102, the receiving module 705 is used to perform the code stream reception of S105 and S106, the decoding module 702 is used to perform the image decoding of S107, and the display module 703 is used to display the image of S107. For the sake of brevity of the specification, it is not repeated here.
[0215] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, 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 described in the embodiment of the present invention 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 device. 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. For example, the computer instructions can be transmitted from one network site, computer, server or data center to another network site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or it can be a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (e.g., a DVD, etc.), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0216] In the above embodiments, the description of each embodiment has different emphases. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
Claims
1. An information transmission method, characterized in that: The method is applied to a coding device, comprising: Receiving tracking information of a decoding device, wherein the tracking information includes motion information or posture information of the decoding device; According to the tracking information of the decoding device, the encoding information of the image to be processed is configured; the tracking information is associated with the encoding information, and the encoding information includes one or more encoding parameters; the one or more encoding parameters include one or more of a deblocking filter parameter, a reference frame number, a motion estimation search range, a motion estimation mode, a sub-pixel subdivision strength, and a look-ahead optimizer parameter; Encode the image to be processed according to the encoding information, and send a code stream to the decoding device, where the code stream includes the one or more encoding parameters; When the value of the tracking information is greater than or equal to a preset threshold, the tracking information is mapped to the first coding information; when the value of the tracking information is less than the preset threshold, the tracking information is mapped to the second coding information, and the first coding information and the second coding information satisfy at least one of the following relationships: The deblocking filter parameter in the first encoding information is used to indicate turning off the deblocking filter, and the deblocking filter parameter in the second encoding information is used to indicate turning on the deblocking filter; The number of reference frames in the first encoding information is less than the number of reference frames in the second encoding information; The motion estimation search range in the first encoding information is smaller than the motion estimation search range in the second encoding information; The amount of calculation of the motion estimation method in the first coding information is less than the amount of calculation of the motion estimation method in the second coding information; The sub-pixel subdivision strength in the first encoding information is less than the sub-pixel subdivision strength in the second encoding information; The look-ahead optimizer parameter in the first encoding information is smaller than the look-ahead optimizer parameter in the second encoding information.
2. The method according to claim 1, characterized in that: The configuring the encoding information of the image to be processed according to the tracking information of the decoding device specifically includes: Querying a preset mapping relationship according to the tracking information to obtain encoding information of the image to be processed, wherein the preset mapping relationship includes a mapping relationship from the tracking information to the encoding information; The encoding information is configured.
3. The method according to claim 1 or 2, characterized in that: The tracking information is information generated by performing at least one of the following operations on the decoding device: head tracking, gesture tracking, eye tracking, or motion tracking.
4. The method according to claim 1 or 2, characterized in that: The motion information of the decoding device includes the motion speed and / or acceleration of the decoding device, the motion speed includes angular velocity and / or linear velocity, the acceleration includes angular acceleration and / or linear acceleration; the posture information includes position information and / or posture information.
5. The method according to claim 1 or 2, characterized in that: The decoding device includes a virtual reality VR device, an augmented reality AR device, a mixed reality MR device, or drone flight glasses.
6. A device for encoding an image, characterized in that The device is applied to a coding device, comprising: A receiving module, configured to receive tracking information of a decoding device; the tracking information includes motion information or position information of the decoding device; a parameter adjustment module, configured to configure encoding information of the image to be processed according to the tracking information of the decoding device; the tracking information is associated with the encoding information, the encoding information includes one or more encoding parameters; the one or more encoding parameters include one or more of a deblocking filter parameter, a reference frame number, a motion estimation search range, a motion estimation mode, a sub-pixel subdivision strength, and an advance optimizer parameter; An encoding module, used for encoding the image to be processed according to the encoding information; A transmitting module, configured to send a code stream to the decoding device, wherein the code stream includes the one or more encoding parameters; When the value of the tracking information is greater than or equal to a preset threshold, the tracking information is mapped to the first coding information; when the value of the tracking information is less than the preset threshold, the tracking information is mapped to the second coding information, and the first coding information and the second coding information satisfy at least one of the following relationships: The deblocking filter parameter in the first encoding information is used to indicate turning off the deblocking filter, and the deblocking filter parameter in the second encoding information is used to indicate turning on the deblocking filter; The number of reference frames in the first encoding information is smaller than the number of reference frames in the second encoding information; the motion estimation search range in the first encoding information is smaller than the motion estimation search range in the second encoding information; The amount of calculation of the motion estimation method in the first coding information is less than the amount of calculation of the motion estimation method in the second coding information; The sub-pixel subdivision strength in the first encoding information is less than the sub-pixel subdivision strength in the second encoding information; The look-ahead optimizer parameter in the first encoding information is smaller than the look-ahead optimizer parameter in the second encoding information.
7. The device according to claim 6, characterized in that The parameter adjustment module is specifically used for: Querying a preset mapping relationship according to the tracking information to obtain encoding information of the image to be processed, wherein the preset mapping relationship includes a mapping relationship from the tracking information to the encoding information; The encoding information is configured.
8. The device according to claim 6 or 7, characterized in that The tracking information is information generated by performing at least one of the following operations on the decoding device: head tracking, gesture tracking, eye tracking, or motion tracking.
9. The device according to claim 6 or 7, characterized in that The motion information of the decoding device includes the motion speed and / or acceleration of the decoding device, the motion speed includes the angular velocity and / or the linear velocity, and the acceleration includes the angular acceleration and / or the linear acceleration.
10. The device according to claim 6 or 7, characterized in that The decoding device includes a virtual reality VR device, an augmented reality AR device, a mixed reality MR device, or drone flight glasses.
11. A device for encoding an image, characterized in that The device comprises: a memory, a processor and a transceiver, wherein: The transceiver is used to receive data from the outside world and send data to the outside world; The memory is used to store program instructions and data; The processor is used to execute the program instructions in the memory to implement the method described in any one of claims 1-5.
12. A system, characterized in that: The system comprises an encoding device and a decoding device, wherein: The decoding device is used to send tracking information of the decoding device to the encoding device; the tracking information includes motion information or posture information of the decoding device; The encoding device is used to configure encoding information of the image to be processed according to the tracking information of the decoding device; the tracking information is associated with the encoding information, and the encoding information includes one or more encoding parameters; encode the image to be processed according to the encoding information, and send a code stream to the decoding device, the code stream includes the one or more encoding parameters; the one or more encoding parameters include one or more of a deblocking filter parameter, a reference frame number, a motion estimation search range, a motion estimation method, a sub-pixel subdivision strength, and a look-ahead optimizer parameter; The decoding device is used to decode and display the image according to the code stream; When the value of the tracking information is greater than or equal to a preset threshold, the tracking information is mapped to the first coding information; when the value of the tracking information is less than the preset threshold, the tracking information is mapped to the second coding information, and the first coding information and the second coding information satisfy at least one of the following relationships: The deblocking filter parameter in the first encoding information is used to indicate turning off the deblocking filter, and the deblocking filter parameter in the second encoding information is used to indicate turning on the deblocking filter; The number of reference frames in the first encoding information is smaller than the number of reference frames in the second encoding information; the motion estimation search range in the first encoding information is smaller than the motion estimation search range in the second encoding information; The amount of calculation of the motion estimation method in the first coding information is less than the amount of calculation of the motion estimation method in the second coding information; The sub-pixel subdivision strength in the first encoding information is less than the sub-pixel subdivision strength in the second encoding information; The look-ahead optimizer parameter in the first encoding information is smaller than the look-ahead optimizer parameter in the second encoding information.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes. When the program codes are executed by a computer, the computer is used to execute the method described in any one of claims 1 to 5.
