Adaptive concave center encoder and global motion predictor

By using an adaptive concave encoder and a global motion prediction factor, video coding is optimized using the user's visual focus and motion information, which solves the problems of insufficient coding efficiency and quality in existing technologies and improves the image quality and user experience of virtual reality and augmented reality applications.

CN118612461APending Publication Date: 2024-09-06INTEL CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410856097.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2017-11-23
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively utilize user visual focus and motion information to optimize video encoding in graphics systems, resulting in insufficient encoding efficiency and quality.

Method used

By employing an adaptive concave encoder and a global motion prediction factor, video coding parameters are dynamically adjusted based on the user's focus and motion information, especially in virtual reality and augmented reality environments, to optimize image coding quality and efficiency.

Benefits of technology

By dynamically adjusting encoding parameters, the quality and efficiency of image encoding are improved, especially in virtual reality and augmented reality applications with limited bandwidth and computing resources, providing a better user experience and visual quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612461A
    Figure CN118612461A
Patent Text Reader

Abstract

The present disclosure describes an adaptive concave center encoder and a global motion predictor. Embodiments of an adaptive video encoder may include techniques of determining information related to a head-mounted device, the information related to the head-mounted device including at least one of information related to focus and information related to motion; and determining one or more video coding parameters based on the information related to the head-mounted device. Other embodiments are disclosed and claimed.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the PCT international application number PCT / CN2017 / 112645, the international application date November 23, 2017, the application number 201780095426.1 entering the Chinese national phase, and the application titled "Adaptive foveated encoder and global motion prediction factor". Technical Field

[0002] Various embodiments relate generally to graphics systems. More specifically, various embodiments relate to an adaptive foveat encoder and a global motion predictor. Background Art

[0003] After an image is rendered by a graphics engine, the image may be encoded for display, transmission, and / or file storage. The fovea may refer to a small depression in the retina of an eye where visual acuity may be highest. The center of the field of view may be focused in this area where the visual cones may be particularly concentrated. In the context of certain graphics applications, the fovea or foveal region may correspond to a focused area in an image or display. BRIEF DESCRIPTION OF THE DRAWINGS

[0004] Various advantages of the embodiments will become apparent to those skilled in the art upon reading the following description and appended claims, and by referring to the following drawings, in which:

[0005] Figure 1 is a block diagram of an example of an electronic processing system according to an embodiment;

[0006] Figure 2 is a block diagram of an example of a sensing engine according to an embodiment;

[0007] Figure 3 is a block diagram of an example of a focus engine according to an embodiment;

[0008] Figure 4 is a block diagram of an example of a motion engine according to an embodiment;

[0009] Figure 5 is a block diagram of another example of an electronic processing system according to an embodiment;

[0010] Figure 6 is a block diagram of an example of a semiconductor packaging device according to an embodiment;

[0011] 7A to 7C is a flowchart of another example of a method for adaptive encoding according to an embodiment;

[0012] Figure 8 is a block diagram of another example of an electronic processing system according to an embodiment;

[0013] Fig. 9 is a block diagram of an example of an adaptive encoder according to an embodiment;

[0014] Fig.10 is a flowchart of an example of a method of adaptive encoding according to an embodiment;

[0015] Fig.11 is a block diagram of an example of a motion vector calculator for head motion assistance according to an embodiment;

[0016] Fig.12 is a diagram of an example of a VR projection model according to an embodiment;

[0017] Fig.13 is a block diagram of another example of an adaptive encoder according to an embodiment;

[0018] Fig.14 is a flowchart of another example of a method for adaptive encoding according to an embodiment;

[0019] FIG. 15A to FIG. 15F is a diagram of an example of a region set according to an embodiment;

[0020] FIG. 15G to FIG. 15H is a diagram of an example of fovea encoding according to an embodiment;

[0021] Fig.16 is a block diagram of an example of a stereo virtual reality display according to an embodiment;

[0022] Fig.17 is a diagram of an example of a grid of macroblocks superimposed on a foveated area according to an embodiment;

[0023] Fig.18 is a block diagram of another example of an electronic processing system according to an embodiment;

[0024] Fig.19 is a flowchart of another example of a method for adaptive encoding according to an embodiment;

[0025] Fig. 20 is a block diagram of an example of a processing system according to an embodiment;

[0026] Fig.21 is a block diagram of an example of a processor according to an embodiment;

[0027] Fig. 22 is a block diagram of an example of a graphics processor according to an embodiment;

[0028] Fig.23 is a block diagram of an example of a graphics processing engine of a graphics processor according to an embodiment;

[0029] Fig.24 is a block diagram of an example of hardware logic of a graphics processor core according to an embodiment;

[0030] FIG. 25A to FIG. 25B shows an example of thread execution logic according to an embodiment;

[0031] Fig.26 is a block diagram illustrating an example of a graphics processor instruction format according to an embodiment;

[0032] Fig. 27 is a block diagram of another example of a graphics processor according to an embodiment;

[0033] Fig.28A is a block diagram illustrating an example of a graphics processor command format according to an embodiment;

[0034] Fig.28B is a block diagram illustrating an example of a graphics processor command sequence according to an embodiment;

[0035] Fig.29 An example graphics software architecture for a data processing system according to an embodiment is shown;

[0036] Fig. 30A is a block diagram showing an example of an IP core development system according to an embodiment;

[0037] Fig. 30B illustrates an example of a cross-sectional side view of an integrated circuit package assembly according to an embodiment;

[0038] Fig.31 is a block diagram illustrating an example of a system on chip integrated circuit according to an embodiment;

[0039] FIG. 32A to FIG. 32B is a block diagram illustrating an exemplary graphics processor for use within a SoC according to an embodiment; and

[0040] FIG. 33A to FIG. 33B Additional exemplary graphics processor logic is shown according to an embodiment. DETAILED DESCRIPTION

[0041] Now go to Figure 1, an embodiment of the electronic processing system 10 may include an application processor 11, a permanent storage medium 12 communicatively coupled to the application processor 11, and a graphics subsystem 13 communicatively coupled to the application processor 11. The system 10 may further include: a sensing engine 14 communicatively coupled to the graphics subsystem 13 to provide sensing information; a focus engine 15 communicatively coupled to the sensing engine 14 and the graphics subsystem 13 to provide focus information; a motion engine 16 communicatively coupled to the sensing engine 14, the focus engine 15, and the graphics subsystem 13 to provide motion information; and an adaptive encoder 17 communicatively coupled to the motion engine 16, the focus engine 15, and the sensing engine 14 to adjust one or more video encoding parameters of the graphics subsystem 13 based on one or more of the sensing information, the focus information, and the motion information.

[0042] In some embodiments of the system 10, the adaptive encoder 17 may further include an adaptive foveal encoder to encode the image based on the focus information (e.g., as described in more detail below). Some embodiments of the adaptive encoder 17 may further include an adaptive motion encoder to determine global motion parameters for the encoder based on the motion information (e.g., as described in more detail below). For example, the adaptive encoder 17 may be configured to determine information related to a headset, the information including at least one of information related to focus and information related to motion, and determine one or more video encoding parameters based on the information related to the headset (e.g., as described in more detail below). In some embodiments, the adaptive encoder 17 may also be configured to encode macroblocks of the video image based on the one or more determined video encoding parameters.

[0043] The embodiments of each of the above application processor 11, permanent storage medium 12, graphics subsystem 13, sensing engine 14, focus engine 15, motion engine 16, adaptive encoder 17 and other system components can be implemented in hardware, software or any suitable combination thereof. For example, the hardware implementation may include configurable logic such as, for example, a programmable logic array (PLA), FPGA, complex programmable logic device (CPLD), or fixed-function logic hardware using circuit technology such as, for example, ASIC, complementary metal oxide semiconductor (CMOS) or transistor-transistor logic (TTL) technology, or any combination thereof. Alternatively or additionally, these components may be implemented in one or more modules as a set of logic instructions stored in a machine or computer readable storage medium (such as, random access memory (RAM), read-only memory (ROM), programmable ROM (PROM), firmware, flash memory, etc.) to be executed by a processor or computing device. For example, computer program code for implementing component operations can be written in any combination of programming languages ​​applicable / appropriate to one or more operating systems, including object-oriented programming languages ​​such as PYTHON, PERL, JAVA, SMALLTALK, C++, C#, and conventional procedural programming languages ​​such as the "C" programming language or similar programming languages.

[0044] Sensing Engine Example

[0045] Now go to Figure 2 , the sensing engine 18 may obtain information from sensors, content, services, and / or other sources to provide sensing information. The sensed information may include, for example, image information, audio information, motion information, depth information, temperature information, biometric information, graphics processor unit (GPU) information, etc. In general, some embodiments may use the sensed information to adjust video encoding parameters of the graphics system.

[0046] For example, the sensing engine may include a sensor hub that is communicatively coupled to a two-dimensional (2D) camera, a three-dimensional (3D) camera, a depth camera, a gyroscope, an accelerometer, an inertial measurement unit (IMU), first-order and second-order kinematic instruments, location services, microphones, proximity sensors, thermometers, biometric sensors, etc., and / or a combination of multiple sources that provide information to the focus and / or motion engine. The sensor hub may be distributed across multiple devices. Information from the sensor hub may include or be combined with input data (e.g., touch data) from a user device.

[0047] For example, the user's (multiple) devices may include one or more 2D, 3D and / or depth cameras. The user's (multiple) devices may also include gyroscopes, accelerometers, IMUs, location services, thermometers, biometric sensors, etc. For example, a user may wear a head-mounted display (HMD) that includes various cameras, motion sensors, and / or other sensors. Non-limiting examples of mixed reality HMDs include MICROSOFT HOLOLENS. The user may also carry a smartphone (e.g., in the user's pocket) and / or may wear a wearable device (e.g., such as a smart watch, activity monitor, and / or health tracker). The user's (multiple) devices may also include a microphone that can be used to detect whether the user is speaking, on the phone, speaking to another person nearby, etc. The sensor hub may include some or all of the user's various devices that can capture information related to the user's actions or activities (e.g., including an input / output (I / O) interface of a user device that can capture keyboard / mouse / touch activity). The sensor hub can obtain information directly from a capture device on a user device (e.g., wired or wirelessly), or the sensor hub can integrate information from the device from a server or service (e.g., information from a fitness tracker can be uploaded to a cloud service and the sensor hub can download the information).

[0048] Focus Engine Example

[0049] Now go to Figure 3 , the focus engine 19 may obtain information from the sensing engine and / or the motion engine and other sources to provide focus information. The focus information may include, for example, focus, focus area, eye position, eye movement, pupil size, pupil dilation, depth of focus (DOF), content focus, content focus object, content focus area, etc. The focus information may also include previous focus information, determined future focus information, and / or predicted focus information (e.g., predicted focus, predicted focus area, predicted eye position, predicted eye movement, predicted pupil size, predicted pupil dilation, predicted DOF, determined future content focus, determined future content focus object, determined future content focus area, predicted content focus, predicted content focus object, predicted content focus area, etc.).

[0050] At a high level, some embodiments may use focus information to adjust video encoding parameters of a graphics system based on 1) where the user is assumed to be looking, 2) where the user is determined to be looking, 3) where the application expects the user to be looking, and / or 4) where the user will be looking in the future. Certain focus cues may be stronger in the focused area that the user is looking at. If the user is looking straight ahead, they may see things in sharp focus. In situations where scenes or objects are toward the periphery, the user may notice motion but not details that are in sharp focus.

[0051] For example, if there is limited sensing information or processing capabilities of the graphics system (e.g., the attached HMD or host cannot provide or utilize the information), the focus information can be static and / or based on assumptions (e.g., it can be assumed that the user is looking at the center of the screen with a fixed eye position, DOF, etc.). The focus information can also change dynamically based on factors such as motion information (e.g., from a virtual reality (VR) headset), motion prediction information, content information (e.g., motion in a scene), etc. More preferably, a rich sensor set including eye tracking (e.g., sometimes also referred to as gaze tracking) can be utilized to provide a better user experience to identify a focus area and provide focus information. For example, some embodiments may include an eye tracker or obtain eye information from an eye tracker to track the user's eyes. The eye information may include eye position, eye movement, pupil size / magnification, depth of focus, etc. The eye tracker may capture an image of the user's eyes including the pupil. The user's focus and / or DOF may be determined, inferred, and / or estimated based on the eye position and pupil magnification. The user may perform a calibration process that may help the eye tracker provide more accurate focus and / or DOF information.

[0052] For example, when a user wears a VR headset, a camera can capture an image of the pupil, and the system can determine where the user is looking (e.g., focal area, depth, and / or direction). The camera can capture pupil dilation information, and the system can infer where the user's focal area is based on this information. For example, the human eye has a certain DOF, so that if a person focuses on something nearby, things in the distance may appear blurry. Focus information can include the focus at focal length X and DOF information of Δ(X), so the focal area can correspond to X+ / -Δ[X] located near the user's focus. The size of the DOF can vary as the distance X changes (e.g., having different Δ at different focal lengths). For example, the user's DOF ​​can be calibrated and can vary in each direction (e.g., x, y, and z) so that the Δ[X] function is not necessarily spherical.

[0053] In some embodiments, the focus information may include content-based focus information. For example, in a 3D, VR, augmented reality (AR), and / or fused reality environment, depth and / or distance information (e.g., where the user is in the virtual environment, where the object is, and / or how far the object is from the user, etc.) may be provided from the application. Content-based focus information may also include points, objects, or areas in the content that the application wants the user to focus on, such as more interesting things happening that the application wants the user to pay attention to. The application may also be able to provide future content focus information because the application may know the motion information of the content and / or what objects / areas in the next frame or next scene may be more interesting to the user (e.g., objects that are about to enter the scene from the edge of the screen).

[0054] Motion Engine Example

[0055] Now go to Figure 4 , the motion engine 20 may obtain information from the sensing engine and / or the focus engine and other sources to provide motion information. The motion information may include, for example, head position, head speed, head acceleration, head movement direction, eye speed, eye acceleration, eye movement direction, object position, object speed, object acceleration, object movement direction, etc. The motion information may also include previous motion information, determined future motion information, and / or predicted motion information (e.g., predicted head speed, predicted head acceleration, predicted head position, predicted head movement direction, predicted eye speed, predicted eye acceleration, predicted eye movement direction, determined future content position, determined future content object speed, determined future content object acceleration, predicted object position, predicted object speed, predicted object acceleration, etc.).

[0056] In general, some embodiments may use motion information to adjust video encoding parameters of a graphics system based on 1) the user moving their head, 2) the user moving their eyes, 3) the user moving their body, 4) where the application wants the user to turn their head, eyes, and / or body, and / or 4) where the user is expected to turn their head, eyes, and / or body. Some motion information can be easily determined from sensed information. For example, head position, velocity, acceleration, direction of motion, etc. can be determined from an accelerometer. Eye motion information can be determined by tracking eye position information over time (e.g., if an eye tracker only provides eye position information).

[0057] Some motion information may be content-based. For example, in a game or on-the-fly 3D content, the application may know how fast an object is moving and where it is moving. The application may provide this information to the motion engine (e.g., through an API call). Future content-based object motion information for the next frame / scene may also be fed into the motion engine for decision making. Some content-based motion information may be determined by image processing or machine vision processing of the content.

[0058] Some embodiments of the machine vision system can, for example, analyze features captured by a camera and / or perform feature / object recognition on images captured by the camera. For example, machine vision and / or image processing can identify and / or recognize objects in a scene (e.g., an edge belongs to the front of a chair). The machine vision system can also be configured to perform facial recognition, gaze tracking, facial expression recognition, and / or gesture recognition, which gesture recognition includes body-level gestures, arm / leg-level gestures, hand-level gestures, and / or finger-level gestures. The machine vision system can be configured to classify the user's actions. In some embodiments, a suitably configured machine vision system may be able to determine whether the user is present on a computer, typing on a keyboard, using a mouse, using a trackpad, using a touch screen, using an HMD, using a VR system, sitting, standing, and / or taking other actions or activities.

[0059] For example, the motion engine can obtain camera data related to real objects in the scene, and can use this information to identify the motion and direction of the real object. The motion engine can obtain delay information from the graphics processor. The motion engine can then predict the next frame direction of the real object. The amount of delay can be based on one or more of the time used to render the scene and / or encode the scene, the number of virtual objects in the scene, and the complexity of the scene. For example, the sensing engine may include one or more cameras to capture the real scene. For example, the one or more cameras may include one or more 2D cameras, 3D cameras, depth cameras, high-speed cameras, or other image capture devices. The real scene may include objects moving in the scene. The camera may be coupled to an image processor to process data from the camera to identify objects in the scene (e.g., including moving objects) and identify the motion of the object (e.g., including direction information). The motion engine may determine the predicted motion information based on the motion of the tracked object, and predict the future position of the object based on the measured or estimated delay (e.g., from the time of capture to the time of rendering / encoding). According to some embodiments, various motion tracking and / or motion prediction techniques can be enhanced with optical flow and other real motion estimation techniques to determine the next position of the real object. For example, some embodiments may use extended common filtering and / or perspective processing (eg, from autonomous driving applications) to predict the motion of objects.

[0060] Engine Overlap Example

[0061] Those skilled in the art will appreciate that aspects of the various engines described herein may overlap with other engines, and portions of each engine may be implemented or distributed throughout various portions of an electronic processing system. For example, a focus engine may use motion information to provide a predicted future focus area, and a motion engine may use focus information to predict future motion. Eye movement information may come directly from a sensing engine, may be determined / predicted by a focus engine, and / or may be determined / predicted by a motion engine. The examples herein should be considered illustrative and not limiting with respect to specific implementations.

[0062] Adaptive foveated encoder and global motion predictor example

[0063] Now go to Figure 5 , an embodiment of the electronic processing system 22 may include: a processor 23; a memory 24, communicatively coupled to the processor 23; and logic 25, communicatively coupled to the processor 23, for determining information related to the head mounted device (including at least one of information related to focus and information related to motion), and determining one or more video encoding parameters based on the information related to the head mounted device. In some embodiments, the logic 25 may be further configured to adjust a quality parameter for encoding of a macroblock based on the information related to focus. For example, the logic 25 may be configured to identify a focus area based on the information related to focus, and adjust the quality parameter for encoding to provide a relatively higher quality for macroblocks inside the focus area compared to macroblocks outside the focus area. Additionally or alternatively, in some embodiments, the logic 25 may be further configured to determine a global motion predictor for encoding of the macroblock based on the information related to motion. For example, the logic 25 may be additionally or alternatively configured to determine a hierarchical motion estimation offset based on a current head position, a previous head position, and a center point from the information related to motion. For any of the embodiments, logic 25 may be further configured to encode macroblocks of the video image based on the one or more determined video encoding parameters.In some embodiments, any of processor 23, memory 24, and logic 25 may be co-located, in whole or in part, on the same integrated circuit die.

[0064] Embodiments of each of the processor 23, memory 24, logic 25, and other system components described above may be implemented in hardware, software, or any suitable combination thereof. For example, a hardware implementation may include configurable logic such as, for example, a programmable logic array (PLA), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), or fixed-function logic hardware using circuit technology such as, for example, an application specific integrated circuit (ASIC), complementary metal oxide semiconductor (CMOS), or transistor-transistor logic (TTL) technology, or any combination thereof.

[0065] Alternatively or additionally, all or part of these components may be implemented in one or more modules as a set of logical instructions stored in a machine or computer readable storage medium (such as a random access memory (RAM), a read-only memory (ROM), a programmable ROM (PROM), firmware, flash memory, etc.) to be executed by a processor or computing device. For example, the computer program code for implementing the component operation can be written in any combination of programming languages ​​applicable / appropriate to one or more operating systems (OS), including object-oriented programming languages ​​such as PYTHON, PERL, JAVA, SMALLTALK, C++, C#, and conventional procedural programming languages ​​such as the "C" programming language or similar programming languages. For example, the memory 24, a permanent storage medium, or other system memory may store a set of instructions that, when executed by the processor 23, causes the system 22 to implement one or more components, features, or aspects of the system 22 (e.g., logic 25, determining information related to the head mounted device including at least one of information related to focus and information related to motion, determining one or more video encoding parameters based on the information related to the head mounted device, etc.).

[0066] Now go to Figure 6, an embodiment of the semiconductor package device 27 may include one or more substrates 28 and logic 29 coupled to the one or more substrates 28, wherein the logic is at least partially implemented in one or more of configurable logic and fixed function hardware logic, the logic 29 coupled to the one or more substrates 28, for determining information related to the head mounted device including at least one of information related to focus and information related to motion, and determining one or more video encoding parameters based on the information related to the head mounted device. In some embodiments, the logic 29 may be further configured to adjust a quality parameter for encoding of a macroblock based on the information related to focus. For example, the logic 29 may be configured to identify a focus area based on the information related to focus, and adjust the quality parameter for encoding to provide a relatively higher quality for macroblocks inside the focus area compared to macroblocks outside the focus area. Additionally or alternatively, in some embodiments, the logic 29 may be further configured to determine a global motion predictor for encoding of the macroblock based on the information related to motion. For example, the logic 29 may be additionally or alternatively configured to determine a hierarchical motion estimation offset based on a current head position, a previous head position, and a center point from the information related to motion. For any of the embodiments, the logic 29 may be further configured to encode macroblocks of the video image based on the one or more determined video encoding parameters.

[0067] Embodiments of logic 29, and other components of device 27, can be implemented in hardware, software, or any combination thereof (including at least partial hardware implementation). For example, hardware implementations may include configurable logic such as, for example, PLA, FPGA, CPLD, or fixed-function logic hardware using circuit technology such as, for example, ASIC, CMOS, or TTL technology, or any combination thereof. In addition, portions of these components may be implemented in one or more modules as a set of logical instructions stored in a machine or computer readable storage medium (such as, RAM, ROM, PROM, firmware, flash memory, etc.) to be executed by a processor or computing device. For example, computer program code for implementing component operations can be written in any combination of one or more OS-appropriate / appropriate programming languages, including object-oriented programming languages ​​such as PYTHON, PERL, JAVA, SMALLTALK, C++, C#, and conventional procedural programming languages ​​such as "C" programming language or similar programming languages.

[0068] Now go to Figures 7A to 7C, embodiments of the method 30 for adaptive encoding may include: determining, at block 31, information related to a head mounted device including at least one of information related to focus and information related to motion; and determining, at block 32, one or more video encoding parameters based on the information related to the head mounted device. In some embodiments, the method 30 may additionally or alternatively include adjusting, at block 33, a quality parameter for encoding of a macroblock based on the information related to focus. For example, the method 30 may include: identifying a focus region based on the information related to focus at block 34; and adjusting, at block 35, a quality parameter for encoding to provide relatively higher quality for macroblocks inside the focus region than for macroblocks outside the focus region. Additionally or alternatively, some embodiments of the method 30 may include determining, at block 36, a global motion predictor for encoding of a macroblock based on the information related to motion. For example, the method 30 may include determining, at block 37, a hierarchical motion estimation offset based on a current head position, a previous head position, and a center point from the information related to motion. For any of the various embodiments, the method 30 may further include encoding macroblocks of the video image based on the one or more determined video encoding parameters at block 38 .

[0069] Embodiments of method 30 may be implemented in systems, devices, computers, equipment, etc. (e.g., such as those described herein). More specifically, the hardware implementation of method 30 may include configurable logic (such as, for example, PLA, FPGA, CPLD), or fixed-function logic hardware using circuit technology (such as, for example, ASIC, CMOS or TTL technology), or any combination thereof. Alternatively or additionally, method 30 may be implemented in one or more modules as a set of logical instructions stored in a machine or computer readable storage medium (such as, RAM, ROM, PROM, firmware, flash memory, etc.) to be executed by a processor or computing device. For example, the computer program code for implementing component operations can be written in any combination of one or more OS-applicable / appropriate programming languages, including object-oriented programming languages ​​such as PYTHON, PERL, JAVA, SMALLTALK, C++, C#, and conventional procedural programming languages ​​such as "C" programming language or similar programming languages.

[0070] For example, method 30 may be implemented on a computer-readable medium described in conjunction with Examples 19 to 24 below. Embodiments or portions of method 30 may be implemented in firmware, an application (e.g., via an application programming interface (API)), or driver software running on an operating system (OS).

[0071] Now go to Figure 8, an embodiment of the electronic processing system 40 may include a host device 41 (e.g., a personal computer, a server, etc.) communicatively coupled to a user device 42 (e.g., a smart phone, a tablet, an HMD, etc.) in a wired or wireless manner. The host device 41 may include a VR renderer 43 (e.g., a high-performance graphics adapter) communicatively coupled to an adaptive encoder 44, which in turn may be communicatively coupled to a transceiver 45 (e.g., WIFI, WIGI, Ethernet, etc.). For example, the adaptive encoder 44 may utilize advanced video coding (AVC) and / or high-efficiency video coding (HEVC) and may be executed by a graphics processor or an external graphics adapter. The user device 42 may include a transceiver 46 communicatively coupled to a VR decoder 47 (e.g., configured to exchange information with the transceiver 45 of the host device 41), which in turn is communicatively coupled to a display 48. The user device 42 may further include one or more sensors 49.

[0072] The host device 41 may include one or more GPUs that implement all or part of a VR renderer 43 and an adaptive encoder 44. The host device 41 may render VR graphics / video image content, encode the content, and stream the VR content to the user device 42. The user device 42 may decode the VR content and present the graphics / video image on the display 48. The user device may also support other local functions such as asynchronous time warping (ATW), frame buffer rendering (FBR), barrel distortion correction, etc. According to some embodiments, the user device 42 may provide sensor-related information back to the host device 41 for the adaptive encoder 44 to advantageously utilize, as described herein. For example, the user device 42 may send HMD position, 3 degrees of freedom (3DOF) information, 6 degrees of freedom (6DOF) information, and / or other sensor data back to the host device 41. For example, the adaptive encoder 44 may advantageously include one or both of an adaptive motion encoder and / or an adaptive foveated encoder to adjust one or more video encoding parameters based on the sensor-related information received from the user device 42.

[0073] Adaptive Motion Encoder Example

[0074] Now go to Fig. 9, an embodiment of the adaptive motion encoder device 50 may include: a motion engine 51 for providing motion information; and an adaptive motion encoder 52, communicatively coupled to the motion engine 51, to adjust one or more video encoding parameters based on the motion information. In some embodiments, the motion engine 51 may include a head tracker 53 to identify the head position / motion (e.g., or obtain the head position / motion information from an attached HMD). For example, the motion engine 51 may obtain information related to motion, including the head position, from a head-mounted device (e.g., a VR HMD worn by a user). For example, the adaptive motion encoder 52 may be configured to determine global motion parameters based on the motion information. For example, one or more video encoding parameters may include a motion vector based on a global motion predictor, and the adaptive motion encoder 52 may determine the global motion predictor based on the head position information from the motion engine 51. In some embodiments, the adaptive motion encoder 52 may adjust the motion vector used to encode the macroblock based on the information related to the motion. The adaptive motion encoder 52 may also be configured to encode the macroblock of the video image based on one or more determined video encoding parameters (e.g., including a global motion predictor value determined according to the head position / motion information).

[0075] The embodiments of each of the above-mentioned motion engine 51, adaptive motion encoder 52, head tracker 53 and other components of the device 50 can be implemented in hardware, software or any combination thereof. For example, part or all of the device 50 can be implemented as part of a parallel GPU, further configured with the adaptive motion encoder described herein. The device 50 can also be adapted to work with a stereo HMD system. For example, the hardware implementation may include configurable logic such as PLA, FPGA, CPLD, or fixed-function logic hardware using circuit technology such as ASIC, CMOS or TTL technology, or any combination thereof. Alternatively or additionally, these components may be implemented in one or more modules as a logical instruction set stored in a machine or computer readable storage medium (such as RAM, ROM, PROM, firmware, flash memory, etc.) to be executed by a processor or computing device. For example, the computer program code for implementing the component operation can be written in any combination of programming languages ​​applicable / appropriate to one or more operating systems, including object-oriented programming languages ​​such as PYTHON, PERL, JAVA, SMALLTALK, C++, C#, and conventional procedural programming languages ​​such as "C" programming language or similar programming languages.

[0076] Now go to Fig.10, an embodiment of the method 60 for adaptive encoding may include: determining motion information at box 61, and adjusting one or more video encoding parameters based on the motion information at box 62. For example, at box 63, the one or more video encoding parameters may include global motion parameters, such as a global motion predictor value. The method 60 may further include determining head position information based on the motion information at box 64, and determining the global motion predictor value based on the head position information at box 65. In some embodiments, the method may also include: determining motion vector information for a macroblock of a video image based on the global motion predictor at box 66; and encoding the macroblock of the video image based on the one or more determined video encoding parameters at box 67.

[0077] Embodiments of method 60 may be implemented in a system, device, GPU, PPU, or media processor. More specifically, the hardware implementation of method 60 may include configurable logic (such as, for example, PLA, FPGA, CPLD), or fixed-function logic hardware using circuit technology (such as, for example, ASIC, CMOS, or TTL technology), or any combination thereof. Alternatively or additionally, method 60 may be implemented in one or more modules as a set of logical instructions stored in a machine or computer readable storage medium (such as, RAM, ROM, PROM, firmware, flash memory, etc.) to be executed by a processor or computing device. For example, the computer program code for implementing component operations can be written in any combination of programming languages ​​applicable / appropriate to one or more operating systems, including object-oriented programming languages ​​such as PYTHON, PERL, JAVA, SMALLTALK, C++, C#, and conventional procedural programming languages ​​such as "C" programming language or similar programming languages.

[0078] For example, embodiments or portions of method 60 may be implemented in firmware, an application (e.g., via an API), or driver software. Other embodiments or portions of method 60 may be implemented in dedicated code (e.g., a shader) to be executed on a GPU. Other embodiments or portions of method 60 may be implemented in fixed-function logic or dedicated hardware (e.g., in a GPU or media processor).

[0079] Some embodiments may advantageously utilize HMD position as a global motion predictor to improve coding efficiency of VR streaming. Non-limiting examples of applications for some embodiments may include AR, VR, computer-generated holography, VR gaming, automated infotainment, and automated driver assistance systems. In some embodiments, wireless VR streaming systems (e.g., such as Figure 8The system 40 in FIG. 4A can improve the user experience. Specifically, a higher computational workload can be handled by the host device, while a battery-powered user device may only need to receive, decode, and display image data (thereby reducing weight and extending the battery life of the user device). Providing a wireless connection advantageously unties the user from the host device and provides the user with greater freedom of movement.

[0080] For wireless VR streaming, video encoding may play an important role in generating high-quality content within the target bitrate. For example, a user may like to play a VR game wearing an HMD, and the scene may change according to the user's head movement. In order to handle large movements, hierarchical motion estimation (HME) can be used to predict the motion. Some other systems may use 32x motion estimation (32xME) (also known as ultra-HME (UHME)) and 16x motion estimation (16xME) (also known as super HME (SHME)) to reduce the size of the original surface and reference frame and estimate the global motion vector. The video encoding pipeline can provide the output of the 32xME calculation to the 16xME calculation, and the 16xME calculation can be provided to the 4x motion estimation (4xME) calculation to predict the motion vector for encoding. Both 32xME and 16xME calculations can be highly GPU-computation intensive. Some embodiments can estimate the global motion vector based on the head position information from the HMD to advantageously replace the 32xME and 16xME calculations with much simpler and faster calculations. Advantageously, some embodiments may obtain global motion through HMD position changes before encoding, and may utilize the HMD position information to calculate global motion predictors to improve encoding quality while also reducing computational load.

[0081] In VR usage, the game scene may not change very quickly, but the user's head position may change quickly (for example, in a VR game, the user may turn his head quickly). The VR Software Developer Kit (SDK) can obtain the matching head position and the rendered VR content. For example, 3DOF and / or 6DOF information is available to the VR SDK. Therefore, some embodiments can use the head position to calculate the global motion predictor and guide the encoder to generate the best matching motion vectors for all macroblocks of the video image to be encoded.

[0082] Now go to Fig.11, the head motion assisted motion vector calculator 70 may include an HME offset module 71 communicatively coupled to a 4xME module 72, which in turn may be communicatively coupled to a macroblock encoding (MBEnc) module 73. The HME offset module 71 may be provided with current head position information, previous head position information, and center point information, and may calculate a 4xME offset based on the provided information. For example, the HME offset module 71 may calculate a 4xHME offset based on the current and previous HMD positions and the center point 2D position (0, 0, w / 2, h / 2). The 4xHME offset may correspond to an offset for searching around the predictor rather than around the co-located (0, 0) predictor. In some embodiments, the HME offset calculation may be advantageously performed by a central processing unit (CPU) on a host device without processing on the original surface and the reference surface.

[0083] Now go to Fig.12 , an illustration of a VR projection model 75 may include a user 76 wearing a VR HMD 77. The user 76 may change their head position from a previous head position (PrevHeadPos) to a current head position (CurHeadPos) such that a point in the VR scene moves from point P(old) to point P(new) in screen space. In addition to the X, Y, and Z dimensions, projection geometry may also have an additional dimension, referred to as W. This four-dimensional space may be referred to as a projection space, and the coordinates in the projection space may be referred to as homogeneous coordinates. The homogeneous coordinates P(x, y, z, w) may correspond to points P(old) and P(new) in the projection space. The following equation explains an example of how to calculate an HME offset based on the HMD position by projecting a point in a 3D scene into a 2D surface.

[0084] MatrixHeadPos4x4=quatToMatrix(head.w, head.x, head.y, head.z) [Equation 1]

[0085] The function quatToMatrix(qw,qx,qy,qz) can convert a quaternion into a rotation matrix as follows:

[0086] A=[1.0-2.0*qy*qy-2.0*qz*qz,2.0*qx*qy-2.0*qz*qw,...

[0087] 2.0*qx*qz+2.0*qy*qw,0.0;

[0088] 2.0*qx*qy+2.0*qz*qw,1.0-2.0*qx*qx-2.0*qz*qz,...

[0089] 2.0*qy*qz-2.0*qx*qw,0.0;

[0090] 2.0*qx*qz-2.0*qy*qw,2.0*qy*qz+2.0*qx*qw,...

[0091] 1.0-2.0*qx*qx-2.0*qy*qy,0.0;

[0092] 0.0,0.0,0.0,1.0];

[0093] end Point2D(x,y)=Point3D(x,y,z,w)*MatrixHeadPos4x4[Equation 2]

[0094] Where head(w,x,y,z) is the current HMD position, Point3D(x,y,z,w) is the pixel in 3D world coordinates, and Point2D(x,y) is the pixel in the final 2D image.

[0095] like Fig.12 As shown, triangle 78 corresponds to the previous head position, and triangle 79 corresponds to the latest head position. The two corresponding 2D points P(new) and P(old) can be determined based on equations 1 and 2 as follows:

[0096] Point2Dnew(x,y)=Point3D(x,y,z,w)*MatrixHeadPosNew4x4[Equation 3]Point2Dold(x,y)=Point3D(x,y,z,w)*MatrixHeadPosOld4x4[Equation 4]

[0097] Another equation can be based on Equation 3 and Equation 4:

[0098] Point2Dnew(x,y)=Point2Dold(x,y)*

[0099] Invert(MatrixHeadPosOld4x4)*MatrixHeadPosNew4x4[Equation 5]

[0100] Where Invert(MatrixHeadPosOld4x4) is used to calculate the inverse matrix of MatrixHeadPosOld4x4. In order to determine the global motion prediction factor based on the HMD position, the 4xHME offset can be calculated as follows:

[0101] MotionSearch_OFFSET(ΔX,ΔY)=

[0102] Point2Dold(x,y)–Point2Dnew(x,y)[Equation 6]

[0103] Some embodiments may calculate HME_OFFSET as follows:

[0104] MotionSearch_OFFSET(ΔX,ΔY)=Point2Dold(x,y)–Point2Dold(x,y)*Invert(MatrixHeadPosOld4x4)*MatrixHeadPosNew4x4[Equation 7]

[0105] To simplify the calculation, some embodiments may select the center point of the previous 2D VR content of Point2Dold, i.e., (width / 2, length / 2). Based on Equation 7 (e.g., using the HMD position provided by the HMD), some embodiments may advantageously use the HMD position to predict the global motion predictor and serve as a guide for the encoder's motion search.

[0106] For wireless VR streaming systems, some embodiments can improve encoding quality with less latency. For example, by replacing 32XHME and 16XHME calculations in an AVC encoder, some embodiments can save several milliseconds because the number of search points can be significantly smaller. Some embodiments can also provide encoding quality improvements for various VR applications that utilize adaptive motion coding as described herein, as compared to encoding using 32xME and 16xME calculations, which can be measured by a higher peak signal-to-noise ratio (PSNR).

[0107] Adaptive Concave Encoder Example

[0108] Now go to Fig.13, an embodiment of the adaptive foveated encoder device 80 may include: a focus engine 81 for providing focus information; and an adaptive foveated encoder 82, communicatively coupled to the focus engine 81, to adjust one or more video encoding parameters based on the focus information. In some embodiments, the focus engine 81 may include an eye tracker 83 to identify a focus area (e.g., or obtain eye position / motion information from an HMD). For example, the focus engine 81 may obtain information related to focus, including a focus area, from a head mounted device (e.g., such as a VR HMD worn by a user). For example, the adaptive foveated encoder 82 may be configured to provide a higher encoding quality for a first encoding area inside the focus area than for an encoding quality of a second encoding area outside the focus area. For example, the one or more video encoding parameters may include an encoding quality parameter such as a quantization parameter (QP), and the adaptive foveated encoder 82 may use a lower QP value for the first encoding area than for the QP value for the second encoding area. In some embodiments, the adaptive foveated encoder 82 may adjust the QP value for encoding a macroblock based on the information related to focus. For example, after identifying the focus region based on the information related to focus, the adaptive foveated encoder 82 may adjust the QP value used for encoding to provide relatively higher quality for macroblocks inside the focus region compared to macroblocks outside the focus region. The adaptive foveated encoder 82 may also be configured to encode macroblocks of a video image based on one or more determined video encoding parameters (e.g., including a QP value based on focus).

[0109] The embodiments of each of the above focus engine 81, adaptive foveal encoder 82, eye tracker 83, and other components of the device 80 can be implemented in hardware, software, or any combination thereof. For example, part or all of the device 80 can be implemented as part of a parallel graphics processing unit (GPU), further configured with an adaptive foveal encoder as described herein. The device 80 can also be adapted to work with a stereo HMD system. For example, a hardware implementation may include configurable logic such as, for example, PLA, FPGA, CPLD, or fixed-function logic hardware using circuit technology such as, for example, ASIC, CMOS, or TTL technology, or any combination thereof. Alternatively or additionally, these components may be implemented in one or more modules as a set of logic instructions stored in a machine or computer readable storage medium (such as, RAM, ROM, PROM, firmware, flash memory, etc.) to be executed by a processor or computing device. For example, computer program code for implementing component operations can be written in any combination of programming languages ​​applicable / appropriate to one or more operating systems, including object-oriented programming languages ​​such as PYTHON, PERL, JAVA, SMALLTALK, C++, C#, and conventional procedural programming languages ​​such as the "C" programming language or similar programming languages.

[0110] Now go to Fig.14 , an embodiment of the method 90 for adaptive encoding may include: determining focus information at box 91, and adjusting one or more video encoding parameters based on the focus information at box 92. For example, at box 93, the one or more video encoding parameters may include a quality parameter, such as a QP value. The method 90 may further include: determining a focus area based on the focus information at box 94; and providing a higher quality encoding for a first encoded area inside the focus area compared to the encoding quality of a second encoded area outside the focus area at box 95. In some embodiments, the method may also include: providing successively lower encoding quality to each area that is successively farther from the focus area at box 96. The method 90 may further include encoding a macroblock of a video image based on the one or more adjusted video encoding parameters at box 97.

[0111] Embodiments of method 90 may be implemented in a system, device, GPU, PPU, or media processor. More specifically, the hardware implementation of method 60 may include configurable logic (such as, for example, PLA, FPGA, CPLD), or fixed-function logic hardware using circuit technology (such as, for example, ASIC, CMOS, or TTL technology), or any combination thereof. Alternatively or additionally, method 90 may be implemented in one or more modules as a set of logical instructions stored in a machine or computer readable storage medium (such as, RAM, ROM, PROM, firmware, flash memory, etc.) to be executed by a processor or computing device. For example, the computer program code for implementing component operations can be written in any combination of programming languages ​​applicable / appropriate to one or more operating systems, including object-oriented programming languages ​​such as PYTHON, PERL, JAVA, SMALLTALK, C++, C#, and conventional procedural programming languages ​​such as "C" programming language or similar programming languages.

[0112] For example, embodiments or portions of method 90 may be implemented in firmware, applications (e.g., via an API), or driver software. Other embodiments or portions of method 90 may be implemented in dedicated code (e.g., shaders) to be executed on a GPU. Other embodiments or portions of method 90 may be implemented in fixed-function logic or dedicated hardware (e.g., in a GPU or media processor).

[0113] In some embodiments, a focus region may be provided from a focus engine that includes an eye tracker that provides eye position information. Some embodiments may then use this eye position information to increase quality where the user is looking and reduce quality away from the focus region. According to some embodiments, reducing bitrate, increasing QP, and / or adjusting other encoding parameters may advantageously save memory, network, and / or computational bandwidth, and may provide power savings.

[0114] Some embodiments may be implemented for both wired and wireless applications (e.g., wireless VR). Wireless applications may particularly benefit from selectively reducing quality away from the focus area. For example, the QP value may increase away from the center (or focus area). Using a lower bitrate / quality may increase data transmission speed. By using a higher bitrate / quality primarily in the focus area, some embodiments may effectively dedicate resources to the areas of the screen that are most important to the user.

[0115] In one example of adjusting encoding quality, a region may be applied that is based on proximity to the focus region and the desired quality / QP / bitrate, etc. corresponding to the region. For example, the regions may be designed based on studies of human visual preferences. For example, there may be multiple different regions, and each of the regions may be different for a different quality factor. Any additional screen regions beyond the outermost region may be treated with the same settings as the outermost region, or may be further degraded.

[0116] Now go to Figures 15A to 15F In the embodiment of the set of regions for fovea coding, the set of regions for fovea coding can be represented by any of two or more continuously enclosed, non-intersecting regions. Although the regions are shown together, each region can be defined and applied separately. The region can have any suitable shape, such as a circle (e.g., Fig.15A and 15C ), elliptical (e.g. Fig. 15B , 15C and 15D), square or rectangular (e.g., Fig.15E ) or any shape (e.g. Fig.15F ). The innermost region is usually full encoding quality (e.g. 0% degradation quality / QP / etc), but can be used in some use cases (e.g. bandwidth saving settings, see the Fig.15F ) can have degradation applied. The innermost region can be surrounded by one or more continuous, non-intersecting regions, where more degradation is applied to each continuous region (e.g., further away from the focus region). These regions can have a common center (e.g., Fig.15A and 15B ) or have no common center (e.g. Fig.15D and 15F ). The direction of the region can be aligned with the display (e.g., Fig.15A , 15B , 15C and 15E) or are not aligned with the display (e.g., Fig.15D and 15F ). Each region can have the same shape (e.g., Fig.15A , 15B and 15D) or may be different from each other (e.g., Fig. 15C , 15E and 15F).

[0117] Now go to Figure 15G and Fig.15H , an embodiment of a set of regions 100 may be applied to an image region 102 based on the focus region. For example, if the focus region is roughly centered (e.g., if that is where the user is looking), then regions 100 may also be roughly centered when applied to the image region (e.g., see Figure 15GIf the focus area moves (e.g., based on gaze information, motion information, content, etc.), area 100 may similarly move based on the new focus area (e.g., see Fig.15H ). For example, the innermost region may be encoded with a low QP value (e.g., 0% degradation), while the outermost region may be encoded with a higher QP value (e.g., 50% degradation). Additional contiguous regions may be provided between the innermost and outermost regions with successively higher QP values ​​(e.g., 10% degradation, 30% degradation, etc.).

[0118] In another example of adjusting the encoding quality, a formula can be applied based on the position of the target macroblock relative to the focus area. For example, the system can calculate the shortest distance from the target macroblock to the boundary of the focus area and reduce the quality proportionally to the calculated distance. Alternatively, a specific macroblock can be selected as the focus (e.g., the focus macroblock), and the distance from the target macroblock to the focus macroblock can be calculated. The system can use a linear formula, a non-linear formula (e.g., parabolic, logarithmic, etc.), or other suitable formula for proportional encoding quality reduction. The system can also maintain a set of quality reduction ranges (e.g., adjacent blocks [no reduction]; 2 to 4 blocks away [reduced by 20%]; 5 or more blocks away [reduced by 50%]).

[0119] In some embodiments, an initial QP value may be selected, or the user may select from a set of predetermined regions to decide how much degradation to perform on each region. For example, some people may be more sensitive to certain quality parameters and less sensitive to others. In some embodiments, there may be calibration per user. Typically, eye trackers involve some user calibration. Regional calibration of various quality parameters may be performed simultaneously with eye tracker calibration. Calibration may be based on, for example, just noticeable differences (JND). During the calibration phase, the user may be asked to focus on an area and respond when they notice a change in quality or detail around them. Or the user may be asked if the two images look the same in the periphery (e.g., to determine how much change the user perceives) when there is actually a certain difference between the encoded QP values ​​of the images. In some embodiments, calibration or other settings may be user adjustable (e.g., settings / sliders for more compression / less compression), or included as part of various power / performance settings.

[0120] The human eye can be sensitive to motion on the periphery. The user may not immediately recognize the object, but they may notice the motion. The motion may then guide the user to look at the motion. Preferably, there is no sharp drop from one area to the next. In the focused area, for example, the encoding quality may be high quality / full quality. In the next area, if the resolution is degraded by 50%, the change may be too obvious. Gradual degradation may be preferred so that the boundaries are not so separated (e.g., 0% to 25% to 50%, etc.). For example, some displays may have a higher pixel density (e.g., 4K displays), and flickering may cause motion sickness or other adverse user experiences. In some embodiments, gradual degradation can also reduce perceptible flicker from one area to the next.

[0121] Advantageously, some embodiments may provide adaptive foveated encoding quality. For example, a central or focused area may have high quality encoding, while an edge area may have lower quality encoding. Some embodiments may identify a focused area and provide higher encoding quality at the focused area, and lower encoding quality outside the focused area.

[0122] Some embodiments may provide multiple bands of reduced encoding quality moving further away from the focus area, and the outermost bands may be encoded at a lower quality. For example, the focus area gets a higher quality encoding, and each additional band or threshold has the encoding quality adjusted to a lower quality as one moves out of the focus area. During encoding, a parameter may be set to indicate the encoding quality for each band (e.g., a different QP value for each band).

[0123] In some embodiments, a media pipeline including a media engine may perform encoding. Both the focus area (e.g., eye position) and the macroblock position may be known at encoding time. For each macroblock, there may be a parameter indicating how far it is from the focus area. Alternatively, the media engine may calculate how far the macroblock is from the focus area and reduce the encoding quality based on the calculation (e.g., a higher QP value may be used for macroblocks that are further away). After the rendering operation is completed, some embodiments may be implemented in a media pipeline. Compute threads may be dispatched to post-process the raster image. For example, a shader unit may run a compute shader to determine the distance of each macroblock from the focus area to determine which area each macroblock belongs to and set corresponding parameters.

[0124] Some embodiments may advantageously provide visual quality adaptive foveated coding for VR streaming. Non-limiting applications for some embodiments may include AR, VR, merged reality, mixed reality, computer-generated holography, VR games, automated infotainment, automated driver assistance systems, holographic lens type applications. Some wired VR systems may have issues with mobility (e.g., because the HMD may be tethered to a base system) and / or cost (e.g., due to the complex graphics operations involved). Some wireless VR systems may have issues with network bandwidth (e.g., due to the amount of data that needs to be transmitted) and / or image quality (e.g., because the bit rate may be reduced to support the available bandwidth). To improve the visual quality of VR streaming, some wireless VR systems may use high-bandwidth wireless technology (e.g., 60GHz wireless technology may provide 4Gbps data bandwidth). However, such high-bandwidth systems are more expensive and may require many proprietary wireless adapters that are not natively supported by user devices. Some embodiments may advantageously provide adaptive foveated coding based on focus information to improve quality in the focus area while reducing bandwidth requirements outside the focus area.

[0125] Visual quality may be very important for various VR experiences. Some embodiments may support a resolution of at least 2560x1440 for binocular VR systems. To have better visual quality, some embodiments may provide a bit rate of at least 80Mbps for a 2560x1440 display. Perceived latency may be very important for user experience. Higher bit rates may introduce additional latency. In order to have low-latency network transmission, some embodiments may utilize a network transmission protocol based on the User Datagram Protocol (UDP) to provide very low transmission overhead (e.g., compared to the Transmission Control Protocol (TCP)). Using the UDP mechanism, the size of the group of pictures (GOP) may be limited. Some embodiments may utilize an intra-frame coding-only strategy. One challenge of VR content streaming is how to obtain good visual quality based on a limited bitrate budget (e.g., 80Mbps@60FPS at a resolution of 2560x1440) and a limited GOP size. Some embodiments may advantageously provide visual quality adaptive foveated coding to improve visual quality in very limited network bandwidth without sacrificing user experience.

[0126] Some other encoding techniques may process the entire frame equally and assign the same QP to all macroblocks. Some embodiments may advantageously provide multiple quality levels based on a foveated visual model. Multiple quality levels may be based on the human eye, which is much more sensitive to the foveated area. Some embodiments may maintain the quality of the foveated area while reducing the quality of the distant peripheral area. By doing so, some embodiments may guarantee visual quality within the target bit rate. Some embodiments may also adaptively change the GOP size based on quality. In particular, some embodiments may achieve higher visual quality with limited network bandwidth (e.g., <100Mbps WIFI network), which may reduce the cost and / or complexity of the hardware configuration required to support VR applications. Some embodiments may be easily adapted to follow existing codec standards without any special changes on the receiving side. Some embodiments may be applied to VR applications on wireless streaming based on cloud WIGIG, as well as wired streaming applications (e.g., Ethernet, USB, etc.).

[0127] Now go to Fig.16 , the binocular system 104 may include a left eye display area 105 and a right eye display area 106. Without being limited to the theory of operation, the human visual system may include foveal vision and peripheral vision. The area on the retina corresponding to the center of gaze (called the fovea) may have a higher density of cones than any other area on the retina. In the fovea, retinal ganglion cells may have a smaller receptive field, while in the periphery, they may have a much larger receptive field. On the HMD display, the human eye visual system may follow the foveal visual system, where the user is more sensitive to the quality of the foveal area and less sensitive to the quality of the far peripheral area. Some VR scenes may be very complex and may be difficult to compress at a low bit rate. Some embodiments may advantageously use a higher bit rate for the foveal area. In order to simplify the human visual system, some embodiments may divide the quality of the entire VR content into three levels. The first priority quality areas 105a, 106a may include the foveal area and the near peripheral area (e.g., +30 degrees, -30 degrees). Because the user may be most sensitive to this area, some embodiments may ensure the quality of this area 105a, 106a. The second priority quality area 105b, 106b may include the middle peripheral area. The quality of the second priority area will be poorer than the first priority quality area 105a, 106a. The third priority quality area 105c, 106c may include the far peripheral area. Area 105c, 106c may have the relatively worst quality for the entire VR content because the user may not be sensitive to this area 105c, 106c.

[0128] Now go to Fig.17, the image region 110 may be divided into macroblocks 111 for encoding. Some embodiments may include more or fewer macroblocks. In some embodiments, the size of the macroblocks may not be uniform. In some embodiments, for example, macroblocks located toward the periphery may be larger than macroblocks located near the focus region. Some embodiments may identify a focus region 112, and may provide higher quality encoding for macroblocks in the focus region 112. Some embodiments may include only macroblocks completely within the focus region 112 for highest quality encoding, while some embodiments may additionally include any macroblocks intersecting the focus region 112 for highest quality encoding. Some embodiments may identify a second region 113 outside the focus region 112, and adjust the encoding quality to a lower quality encoding (e.g., a lower quality encoding compared to the highest quality encoding) for macroblocks in the second region 113 but outside the focus region 112. Some embodiments may include only macroblocks completely within the second region 113 for lower quality encoding, while some embodiments may additionally include any macroblocks intersecting the second region 113 for lower quality encoding. Some embodiments may adjust the encoding quality of macroblocks outside the focus area 112 and outside the second area 113 to a relatively lowest encoding quality.

[0129] Now go to Fig.18 , an embodiment of the electronic processing system 120 may include a host device 121 (e.g., a personal computer, a server, etc.) communicatively coupled to a user device 122 (e.g., a smart phone, a tablet, an HMD, etc.) in a wired or wireless manner. The host device 121 may include a VR renderer 123 (e.g., a high-performance graphics adapter) communicatively coupled to an adaptive encoder 124, which in turn may be communicatively coupled to a transceiver 125 (e.g., WIFI, WIGI, Ethernet, etc.). For example, the adaptive encoder 124 may utilize advanced video coding (AVC) and / or high-efficiency video coding (HEVC) and may be executed by a graphics processor or an external graphics adapter. The user device 122 may include a transceiver 126 communicatively coupled to a VR decoder 127 (e.g., configured to exchange information with the transceiver 125 of the host device 121), which in turn may be communicatively coupled to a display 128. The user device 122 may further include one or more sensors 129. The adaptive encoder 124 may include VR foveated encoder software 124a communicatively coupled to a hardware encoder 124b.

[0130] The host device 121 may include one or more GPUs that implement all or part of the VR renderer 123 and the adaptive encoder 124. The host device 121 may render VR graphics / video image content, encode the content, and stream the VR content to the user device 122. The user device 122 may decode the VR content and present the graphics / video image on the display 128. The user device may also support other local functions such as asynchronous time warp (ATW), frame buffer rendering (FBR), barrel distortion correction, etc. According to some embodiments, the user device 122 may provide sensor-related information back to the host device 121 to be advantageously utilized by the adaptive encoder 124, as described herein. For example, the user device 122 may send HMD position, 3DOF information, 6DOF information, and / or other sensor data back to the host device 121. For example, the adaptive encoder 124 may also include an adaptive motion encoder as described herein to adjust one or more video encoding parameters based on the sensor-related information received from the user device 122.

[0131] Regardless of the scenario, some embodiments of the system 120 can advantageously ensure visual quality by providing quality adaptive foveated encoding to improve visual quality. For example, the hardware encoder 124b on the transmitter side can report the frame level QP for each frame. Based on the reported previous frame level QP, the VR foveated encoder software 124a can have a general guide for that level of quality. For example, if the QP is about 41, the quality may be poor, which may affect the user experience. If the QP is about 25 or below, the quality is acceptable and no changes may be required. The VR foveated encoder software 124a can then generate a new set of QP differences / changes (ΔQP) for both the first priority area and the second priority area. Additionally or alternatively, the VR foveated encoder software 124a can adjust the GOP size. In some embodiments, the actual QP values ​​for the first priority area and the second priority area can be determined as follows:

[0132] QP of the first / second region = ΔQP of the first / second region + frame level QP [Equation 8]

[0133] If ΔQP is less than 0, the quality can be adjusted to be better than other areas.

[0134] In wireless environments network packets may sometimes drop. Some embodiments may use intra-frame-only coding for wireless environments. If the VR scene is too complex to be compressed with high quality, some embodiments may increase the GOP size to provide good quality because inter-frame references can be utilized to have better compression rates. Some embodiments may keep the GOP size less than 4 to avoid corruption or long motion-to-photon effects and improve the VR experience. Advantageously, some embodiments may only affect the encoder side without any special changes on the receiver side.

[0135] Now go to Fig.19 , the method 130 for adaptive encoding may include initializing the VR encoder at block 131 and preparing a new encoding workload at block 132. When the VR encoder SW starts preparing a new encoding workload, it may check encoding statistics from a previously encoded frame (e.g., a frame-level QP of the previous frame). If, at block 133, the foveal region QP (frame-level QP + ΔQP) ≤ threshold QP, the VR encoder SW may apply the same settings as the previous frame at block 134 (e.g., at the beginning, ΔQP may be set to -1 by default). The method 130 may then submit the workload to the GPU at block 135. The method 130 may then determine, at block 136, whether all encoding is complete, and if not, may prepare the next encoding workload at block 132.

[0136] If, at block 133, the foveal QP is greater than the threshold QP, at block 137, the method 130 may determine if there is room to adjust the delta QP. For example, if the frame level QP is less than the maximum QP (e.g., QP=51), there may still be room to change the delta QP. Otherwise, there may be no room to adjust the delta QP within the target bitrate. If there is still room to adjust the delta QP, the delta QP may be reduced a lot to ensure that the foveal has better quality. If the delta QP is not applied at block 137, the method 130 may apply the delta QP at block 138 to increase the foveal quality at block 138 and generate a new set of encoding parameters at block 139. The method 130 may then submit the workload to the GPU at block 135. The method 130 may then determine at block 136 whether all encoding is complete, and if not, the next encoding workload may be prepared at block 132.

[0137] If ΔQP has been applied at box 137, the VR encoder can try to use more P frames instead of only I frames (e.g., new GOP=previous GOP+1 && new GOP<4) at box 140 and generate a new set of encoding parameters at box 139. In some embodiments, the new GOP can be constrained to a maximum threshold (e.g., GOP is less than 4) to avoid longer motion-to-photon delays due to packet loss. If the VR encoder finds that the quality of the foveated area already meets the target and can be adjusted by ΔQP, the VR encoder can try to reduce the size of the GOP to check the quality again. The method 130 can then submit the workload to the GPU at box 135. The method 130 can then determine whether all encoding is completed at box 136, and if not, the next encoding workload can be prepared at box 132.

[0138] In some embodiments, a conservative setting of ΔQP can ensure that the far periphery can also have good quality. Under such a setting, foveated encoding can have a quality improvement of about 1.5db to 3dB at the foveated area using 1024x1024@60fps at 6Mbps bitrate compared to applying the same QP to each macroblock. If a more aggressive ΔQP is applied, there can be even better quality improvement in the foveated area.

[0139] System Overview

[0140] Fig. 20 1 is a block diagram of a processing system 150 according to an embodiment. In various embodiments, the system 150 includes one or more processors 152 and one or more graphics processors 158, and may be a single processor desktop system, a multi-processor workstation system, or a server system having a large number of processors 152 or processor cores 157. In one embodiment, the system 150 is a processing platform incorporated within a system on a chip (SoC) integrated circuit for use in a mobile device, handheld device, or embedded device.

[0141] In one embodiment, system 150 may include or be incorporated into the following: a server-based gaming platform, a gaming console including a gaming and media console, a mobile gaming console, a handheld gaming console, or an online gaming console. In some embodiments, system 150 is a mobile phone, a smart phone, a tablet computing device, or a mobile internet device. Processing system 150 may also include a wearable device that may be coupled to or integrated into a wearable device, such as a smart watch wearable device, a smart glasses device, an augmented reality device, or a virtual reality device. In some embodiments, processing system 150 is a television or set-top box device having one or more processors 152 and a graphical interface generated by one or more graphics processors 158.

[0142] In some embodiments, one or more processors 152 each include one or more processor cores 157 for processor instructions that, when executed, perform operations for system and user software. In some embodiments, each of the one or more processor cores 157 is configured to process a specific instruction set 159. In some embodiments, the instruction set 159 may facilitate complex instruction set computing (CISC), reduced instruction set computing (RISC), or computing via very long instruction words (VLIW). Multiple processor cores 157 may each process different instruction sets 159, which may include instructions for facilitating emulation of other instruction sets. The processor cores 157 may also include other processing devices, such as a digital signal processor (DSP).

[0143] In some embodiments, the processor 152 includes a cache memory 154. Depending on the architecture, the processor 152 may have a single internal cache or multiple levels of internal cache. In some embodiments, the cache memory is shared between various components of the processor 152. In some embodiments, the processor 152 also uses an external cache (e.g., a level 3 (L3) cache or a last level cache (LLC)) (not shown), which can be shared between the processor cores 157 using known cache coherence techniques. A register file 156 is additionally included in the processor 152, and the register file 156 may include different types of registers (e.g., integer registers, floating point registers, status registers, and instruction pointer registers) for storing different types of data. Some registers may be general purpose registers, while other registers may be specific to the design of the processor 152.

[0144] In some embodiments, one or more processors 152 are coupled to one or more interface buses 160 to transmit communication signals, such as address, data, or control signals, between the processor 152 and other components in the system 150. In one embodiment, the interface bus 160 may be a processor bus, such as a version of a direct media interface (DMI) bus. However, the processor bus is not limited to a DMI bus and may include one or more peripheral component interconnect buses (e.g., PCI, PCI Express), a memory bus, or other types of interface buses. In one embodiment, the processor(s) 152 include an integrated memory controller 166 and a platform controller hub 180. The memory controller 166 facilitates communication between memory devices and other components of the system 150, while the platform controller hub (PCH) 180 provides connections to I / O devices via a local I / O bus.

[0145] The memory device 170 may be a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, a flash memory device, a phase change memory device, or some other memory device having suitable performance to act as a process memory. In one embodiment, the memory device 170 may operate as a system memory for the system 150 to store data 172 and instructions 171 for use when one or more processors 152 execute applications or processes. The memory controller 166 is also coupled to an optional external graphics processor 162, which may communicate with one or more graphics processors 158 in the processor 152 to perform graphics operations and media operations. In some embodiments, a display device 161 may be connected to the processor(s) 152. The display device 161 may be one or more of the following: an internal display device, such as in a mobile electronic device or laptop device; or an external display device attached via a display interface (e.g., a display port, etc.). In one embodiment, the display device 161 may be a head mounted display (HMD), such as a stereoscopic display device for use in a virtual reality (VR) application or an augmented reality (AR) application.

[0146] In some embodiments, the platform controller hub 180 enables peripheral devices to be connected to the memory device 170 and the processor 152 via a high-speed I / O bus. The I / O peripherals include, but are not limited to, an audio controller 196, a network controller 184, a firmware interface 178, a wireless transceiver 176, a touch sensor 175, a data storage device 174 (e.g., a hard drive, flash memory, etc.). The data storage device 174 can be connected via a storage interface (e.g., SATA) or via a peripheral bus such as a peripheral component interconnect bus (e.g., PCI, PCI Express). The touch sensor 175 may include a touch screen sensor, a pressure sensor, or a fingerprint sensor. The wireless transceiver 176 may be a Wi-Fi transceiver, a Bluetooth transceiver, or a mobile network transceiver such as a 3G, 4G, or long term evolution (LTE) transceiver. The firmware interface 178 enables communication with the system firmware and may be, for example, a unified extensible firmware interface (UEFI). The network controller 184 may enable a network connection to a wired network. In some embodiments, a high-performance network controller (not shown) is coupled to the interface bus 160. In one embodiment, audio controller 196 is a multi-channel high definition audio controller. In one embodiment, system 150 includes an optional legacy I / O controller 190 for coupling legacy (e.g., Personal System 2 (PS / 2)) devices to the system. Platform controller hub 180 may also be connected to one or more Universal Serial Bus (USB) controllers 192 to connect input devices, such as a keyboard and mouse 193 combination, camera 194, or other USB input devices.

[0147] It will be appreciated that the illustrated system 150 is exemplary and not limiting, as other types of data processing systems configured in different manners may also be used. For example, instances of the memory controller 166 and the platform controller hub 180 may be integrated into a discrete external graphics processor, such as the external graphics processor 162. In one embodiment, the platform controller hub 180 and / or the memory controller 166 may be external to one or more processors 152. For example, the system 150 may include the external memory controller 166 and the platform controller hub 180, which may be configured as a memory controller hub and a peripheral controller hub within a system chipset that communicates with the processor(s) 152.

[0148] Fig.21 is a block diagram of an embodiment of a processor 200 having one or more processor cores 202A- 202N, an integrated memory controller 214 , and an integrated graphics processor 208 . Fig.21Those elements with the same reference numerals (or names) as those of any other figures herein can operate or function in any manner similar to that described elsewhere herein, but are not limited thereto. Processor 200 may include additional cores up to and including additional core 202N represented by a dashed box. Each of processor cores 202A-202N includes one or more internal cache units 204A-204N. In some embodiments, each processor core also has access to one or more shared cache units 206.

[0149] Internal cache units 204A-204N and shared cache unit 206 represent a cache memory hierarchy within processor 200. The cache memory hierarchy may include at least one level of instruction and data cache within each processor core and one or more levels of shared mid-level cache, such as level 2 (L2), level 3 (L3), level 4 (L4), or other levels of cache, where the highest level of cache before external memory is classified as LLC. In some embodiments, cache coherence logic maintains coherence between each cache unit 206 and 204A-204N.

[0150] In some embodiments, the processor 200 may also include a set of one or more bus controller units 216 and a system agent core 210. The one or more bus controller units 216 manage a set of peripheral buses, such as one or more PCI buses or PCI Express buses. The system agent core 210 provides management functions for various processor components. In some embodiments, the system agent core 210 includes one or more integrated memory controllers 214 for managing access to various external memory devices (not shown).

[0151] In some embodiments, one or more of the processor cores 202A-202N include support for simultaneous multithreading. In such embodiments, the system agent core 210 includes components for coordinating and operating the cores 202A-202N during multithreaded processing. The system agent core 210 may additionally include a power control unit (PCU) that includes logic and components for regulating the power state of the processor cores 202A-202N and the graphics processor 208.

[0152] In some embodiments, the processor 200 additionally includes a graphics processor 208 for performing graphics processing operations. In some embodiments, the graphics processor 208 is coupled to the set of shared cache units 206 and to a system agent core 210, which includes one or more integrated memory controllers 214. In some embodiments, the system agent core 210 also includes a display controller 211 for driving the graphics processor output to one or more coupled displays. In some embodiments, the display controller 211 may also be a separate module coupled to the graphics processor via at least one interconnect, or may be integrated within the graphics processor 208.

[0153] In some embodiments, a ring-based interconnect unit 212 is used to couple the internal components of the processor 200. However, alternative interconnect units may be used, such as point-to-point interconnects, switched interconnects, or other technologies, including those known in the art. In some embodiments, the graphics processor 208 is coupled to the ring interconnect 212 via an I / O link 213.

[0154] Exemplary I / O link 213 represents at least one of a plurality of various I / O interconnects, including an on-package I / O interconnect that facilitates communication between various processor components and a high-performance embedded memory module 218, such as an eDRAM module. In some embodiments, each of processor cores 202A-202N and graphics processor 208 may use embedded memory module 218 as a shared last-level cache.

[0155] In some embodiments, the processor cores 202A-202N are homogeneous cores that execute the same instruction set architecture. In another embodiment, the processor cores 202A-202N are heterogeneous in terms of instruction set architecture (ISA), wherein one or more of the processor cores 202A-202N execute a first instruction set, while at least one of the other cores executes a subset of the first instruction set or a different instruction set. In one embodiment, the processor cores 202A-202N are heterogeneous in terms of microarchitecture, wherein one or more cores with relatively high power consumption are coupled with one or more power cores with lower power consumption. In addition, the processor 200 may be implemented on one or more chips, or as a SoC integrated circuit having the components shown in addition to other components.

[0156] Fig. 223 is a block diagram of a graphics processor 300, which may be a discrete graphics processing unit, or may be a graphics processor integrated with multiple processing cores. In some embodiments, the graphics processor communicates via a memory-mapped I / O interface to registers on the graphics processor and using commands placed into processor memory. In some embodiments, the graphics processor 300 includes a memory interface 314 for accessing memory. The memory interface 314 may be an interface to local memory, one or more internal caches, one or more shared external caches, and / or system memory.

[0157] In some embodiments, the graphics processor 300 also includes a display controller 302, which is used to drive the display output data to the display device 320. The display controller 302 includes hardware for compositing one or more overlay planes and multiple layers of video or user interface elements for the display. The display device 320 can be an internal or external display device. In one embodiment, the display device 320 is a head-mounted display device, such as a virtual reality (VR) display device or an augmented reality (AR) display device. In some embodiments, the graphics processor 300 includes a video codec engine 306 for encoding media to one or more media encoding formats, decoding media from one or more media encoding formats, or transcoding media between one or more media encoding formats, including but not limited to: Moving Picture Experts Group (MPEG) format (such as MPEG-2), Advanced Video Coding (AVC) format (such as H.264 / MPEG-4AVC and Society of Motion Picture and Television Engineers (SMPTE) 421M / VC-1, and Joint Photographic Experts Group (JPEG) format (such as JPEG, and motion JPEG (MJPEG) format).

[0158] In some embodiments, graphics processor 300 includes a block image transfer (BLIT) engine 304 for performing two-dimensional (2D) rasterizer operations, including, for example, bit boundary block transfers. However, in one embodiment, 2D graphics operations are performed using one or more components of a graphics processing engine (GPE) 310. In some embodiments, GPE 310 is a compute engine for performing graphics operations, including three-dimensional (3D) graphics operations and media operations.

[0159] In some embodiments, GPE 310 includes a 3D pipeline 312 for performing 3D operations, such as rendering three-dimensional images and scenes using processing functions that act on 3D primitive shapes (e.g., rectangles, triangles, etc.). 3D pipeline 312 includes programmable and fixed-function elements that perform various tasks within elements and / or generated execution threads of 3D / media subsystem 315. Although 3D pipeline 312 can be used to perform media operations, embodiments of GPE 310 also include a media pipeline 316 that is specifically used to perform media operations, such as video post-processing and image enhancement.

[0160] In some embodiments, the media pipeline 316 includes fixed-function or programmable logic units for performing one or more specialized media operations, such as video decoding acceleration, video deinterlacing, and video encoding acceleration, instead of, or on behalf of the video codec engine 306. In some embodiments, the media pipeline 316 additionally includes a thread generation unit to generate threads for execution on the 3D / media subsystem 315. The generated threads perform calculations for media operations on one or more graphics execution units included in the 3D / media subsystem 315.

[0161] In some embodiments, the 3D / media subsystem 315 includes logic for executing threads generated by the 3D pipeline 312 and the media pipeline 316. In one embodiment, the pipeline sends thread execution requests to the 3D / media subsystem 315, which includes thread dispatch logic for arbitrating and dispatching various requests for available thread execution resources. The execution resources include an array of graphics execution units for processing 3D threads and media threads. In some embodiments, the 3D / media subsystem 315 includes one or more internal caches for thread instructions and data. In some embodiments, the subsystem also includes a shared memory for sharing data between threads and for storing output data, which includes registers and addressable memory.

[0162] Graphics processing engine

[0163] Fig.23 is a block diagram of a graphics processing engine 410 of a graphics processor according to some embodiments. In one embodiment, the graphics processing engine (GPE) 410 is Fig. 22 A version of GPE 310 is shown in FIG. Fig.23 Those elements having the same reference numerals (or names) as elements of any other figure herein can operate or function in any manner similar to that described elsewhere herein, but are not limited thereto. Fig. 22410. The 3D pipeline 312 and the media pipeline 316 of the GPE 410. The media pipeline 316 is optional in some embodiments of the GPE 410 and may not be explicitly included in the GPE 410. For example and in at least one embodiment, separate media and / or image processors are coupled to the GPE 410.

[0164] In some embodiments, GPE 410 is coupled to or includes a command stream converter 403, which provides a command stream to 3D pipeline 312 and / or media pipeline 316. In some embodiments, command stream converter 403 is coupled to a memory, which can be a system memory, or one or more of an internal cache memory and a shared cache memory. In some embodiments, command stream converter 403 receives commands from the memory and sends these commands to 3D pipeline 312 and / or media pipeline 316. These commands are instructions taken from a circular buffer that stores commands for 3D pipeline 312 and media pipeline 316. In one embodiment, the circular buffer may additionally include a batch command buffer that stores a batch of multiple commands. Commands for 3D pipeline 312 may also include references to data stored in memory, such as, but not limited to, vertex data and geometry data for 3D pipeline 312 and / or image data and memory objects for media pipeline 316. 3D pipeline 312 and media pipeline 316 process commands and data by executing operations via logic within the respective pipelines or by dispatching one or more execution threads to graphics core array 414. In one embodiment, graphics core array 414 includes blocks of one or more graphics cores (e.g., (multiple) graphics cores 415A, (multiple) graphics cores 415B), each block including one or more graphics cores. Each graphics core includes a collection of graphics execution resources, including: general execution logic and graphics-specific execution logic for performing graphics operations and computing operations; and fixed-function texture processing logic and / or machine learning and artificial intelligence acceleration logic.

[0165] In various embodiments, the 3D pipeline 312 includes fixed function and programmable logic for processing one or more shader programs, such as vertex shaders, geometry shaders, pixel shaders, fragment shaders, compute shaders, or other shader programs, by processing instructions and dispatching execution threads to the graphics core array 414. The graphics core array 414 provides a unified execution resource block for use in processing these shader programs. The multi-function execution logic (e.g., execution unit) within the (multiple) graphics cores 415A-415B of the graphics core array 414 includes support for various 3D API shader languages ​​and can execute multiple simultaneous execution threads associated with multiple shaders.

[0166] In some embodiments, graphics core array 414 also includes execution logic for performing media functions such as video and / or image processing. In one embodiment, the execution unit additionally includes general purpose logic that can be programmed to perform parallel general purpose computing operations in addition to performing graphics processing operations. The general purpose logic can be used with Fig. 20 (multiple) processor cores 157 or Fig.21 The general logic within the cores 202A-202N in the process performs processing operations in parallel or in combination.

[0167] Output data generated by threads executing on graphics core array 414 may output data to memory in unified return buffer (URB) 418. URB 418 may store data for multiple threads. In some embodiments, URB 418 may be used to send data between different threads executing on graphics core array 414. In some embodiments, URB 418 may additionally be used for synchronization between threads on the graphics core array and fixed function logic within shared function logic 420.

[0168] In some embodiments, graphics core array 414 is scalable such that the array includes a variable number of graphics cores, each having a variable number of execution units based on the target power and performance level of GPE 410. In one embodiment, execution resources are dynamically scalable such that execution resources can be enabled or disabled as needed.

[0169] The graphics core array 414 is coupled to shared function logic 420, which includes a plurality of resources that are shared between the graphics cores in the graphics core array. The shared functions within the shared function logic 420 are hardware logic units that provide specialized, complementary functions to the graphics core array 414. In various embodiments, the shared function logic 420 includes, but is not limited to, sampler logic 421, math logic 422, and inter-thread communication (ITC) logic 423. In addition, some embodiments implement one or more caches 425 within the shared function logic 420.

[0170] Shared functionality is implemented when the demand for a given specialized function is insufficient to be included in the graphics core array 414. Instead, a single instantiation of that specialized function is implemented as an independent entity in the shared functionality logic 420 and is shared between execution resources within the graphics core array 414. The exact set of functions shared between the graphics core array 414 and included within the graphics core array 414 varies from embodiment to embodiment. In some embodiments, specific shared functions within the shared functionality logic 420 that are widely used by the graphics core array 414 may be included within the shared functionality logic 416 within the graphics core array 414. In various embodiments, the shared functionality logic 416 within the graphics core array 414 may include some or all of the logic within the shared functionality logic 420. In one embodiment, all logic elements within the shared functionality logic 420 may be replicated within the shared functionality logic 416 of the graphics core array 414. In one embodiment, the shared functionality logic 420 is excluded in favor of the shared functionality logic 416 within the graphics core array 414.

[0171] Fig.24 is a block diagram of the hardware logic of graphics processor core 500 according to some embodiments described herein. Fig.24 Those elements having the same reference numerals (or names) as elements of any other figure in this document can operate or function in any manner similar to that described elsewhere in this document, but are not limited thereto. In some embodiments, the graphics processor core 500 shown is included in Fig.23 The graphics processor core 500 (sometimes referred to as a core slice) may be one or more graphics cores within a modular graphics processor. An example of a graphics processor core 500 is a graphics core slice, and based on a target power envelope and a performance envelope, a graphics processor as described herein may include multiple graphics core slices. Each graphics core 500 may include a fixed function block 530 coupled to multiple sub-cores 501A-501F (also referred to as sub-slices), and the multiple sub-cores 501A-501F include blocks of modular general and fixed function logic.

[0172] In some embodiments, fixed function block 530 includes a geometry / fixed function pipeline 536, which may be shared by all sub-cores in graphics processor 500, for example, in a lower performance and / or lower power graphics processor implementation. In various embodiments, geometry / fixed function pipeline 536 includes a 3D fixed function pipeline (e.g., Fig. 22 and Fig.23 3D pipeline 312 in ), video front end unit, thread generator and thread dispatcher, and unified return buffer manager, which manages the unified return buffer, such as in Fig.23The unified return buffer 418.

[0173] In one embodiment, fixed function block 530 also includes graphics SoC interface 537, graphics microcontroller 538, and media pipeline 539. Graphics SoC interface 537 provides an interface between graphics core 500 and other processor cores within the system on chip integrated circuit. Graphics microcontroller 538 is a programmable subprocessor that can be configured to manage various functions of graphics processor 500, including thread dispatching, scheduling, and preemption. Media pipeline 539 (e.g., Fig. 22 and Fig.23 The media pipeline 316 of the embodiment includes logic for facilitating decoding, encoding, pre-processing and / or post-processing of multimedia data including image data and video data. The media pipeline 539 implements media operations via requests to computational or sampling logic within the sub-cores 501A-501F.

[0174] In one embodiment, the SoC interface 537 enables the graphics core 500 to communicate with a general application processor core (e.g., a CPU) and / or other components within the SoC, including memory hierarchy elements such as a shared last-level cache memory, system RAM, and / or embedded on-chip or on-package DRAM. The SoC interface 537 may also enable communication with fixed-function devices such as a camera imaging pipeline within the SoC, and enable the use and / or implementation of global memory atomicity, which may be shared between the graphics core 500 and the CPU within the SoC. The SoC interface 537 may also implement power management control for the graphics core 500 and enable an interface between the clock domain of the graphics core 500 and other clock domains within the SoC. In one embodiment, the SoC interface 537 enables receiving a command buffer from a command stream converter and a global thread dispatcher, which are configured to provide commands and instructions to each of the one or more graphics cores within the graphics processor. These commands and instructions may be dispatched to media pipeline 539 when media operations are to be performed, or to geometry and fixed function pipelines (eg, geometry and fixed function pipeline 536, geometry and fixed function pipeline 514) when graphics processing operations are to be performed.

[0175] The graphics microcontroller 538 may be configured to perform various scheduling and management tasks for the graphics core 500. In one embodiment, the graphics microcontroller 538 may perform graphics and / or computational workload scheduling for each graphics parallel engine within the execution unit (EU) arrays 502A-502F, 504A-504F within the sub-cores 501A-501F. In this scheduling model, host software executing on a CPU core of a SoC including the graphics core 500 may submit a workload via one of a plurality of graphics processor doorbells, which invokes a scheduling operation to the appropriate graphics engine. The scheduling operation includes determining which workload to run next, submitting the workload to the command stream converter, preempting an existing workload running on the engine, monitoring the progress of the workload, and notifying the host software when the workload is completed. In one embodiment, graphics microcontroller 538 may also facilitate a low power or idle state for graphics core 500, providing graphics core 500 with the ability to save and restore registers within graphics core 500 across low power state transitions independent of the operating system and / or graphics driver software on the system.

[0176] The graphics core 500 may have more or fewer sub-cores 501A-501F than shown, up to N modular sub-cores. For each set of N sub-cores, the graphics core 500 may also include shared function logic 510, shared and / or cache memory 512, geometry / fixed function pipelines 514, and additional fixed function logic 516 for accelerating various graphics and compute processing operations. The shared function logic 510 may include logic that is shared by each of the N sub-cores within the graphics core 500 and that is associated with the graphics core 500. Fig.23 The shared function logic 420 (e.g., sampler logic, math logic, and / or inter-thread communication logic) of the graphics core 500 may be associated with the shared function logic 420 (e.g., sampler logic, math logic, and / or inter-thread communication logic). The shared and / or cache memory 512 may be a last-level cache for the set 501A-501F of N sub-cores within the graphics core 500, and may also serve as a shared memory accessible by multiple sub-cores. The geometry / fixed function pipeline 514 may be included in the fixed function block 530 instead of the geometry / fixed function pipeline 536, and the geometry / fixed function pipeline 514 may include the same or similar logic units.

[0177] In one embodiment, the graphics core 500 includes additional fixed function logic 516, which may include various fixed function acceleration logic for use by the graphics core 500. In one embodiment, the additional fixed function logic 516 includes an additional geometry pipeline for use in position-only shading. In position-only shading, there are two geometry pipelines: a full geometry pipeline within the geometry / fixed function pipelines 516, 536; and a culling pipeline, which is an additional geometry pipeline that may be included in the additional fixed function logic 516. In one embodiment, the culling pipeline is a streamlined version of the full geometry pipeline. The full pipeline and the culling pipeline can execute different instances of the same application, each with a separate context. Position-only shading can hide long culling runs for discarded triangles, thereby enabling shading to be completed earlier in some instances. For example and in one embodiment, the culling pipeline logic within the additional fixed function logic 516 can execute the position shader in parallel with the main application and generally generate key results faster than the full pipeline because the culling pipeline only takes the position attributes of the vertices and shades them without performing rasterization and rendering of the pixels to the frame buffer. The culling pipeline can use the generated key results to calculate visibility information for all triangles, regardless of whether those triangles are culled. The full pipeline (which may be referred to as a replay pipeline in this example) can consume this visibility information to skip culled triangles, thereby only shading visible triangles that are ultimately passed to the rasterization stage.

[0178] In one embodiment, the additional fixed function logic 516 may also include machine learning acceleration logic, such as fixed function matrix multiplication logic, which is used to include an optimized implementation for machine learning training or inference.

[0179] Included within each graphics sub-core 501A-501F is a collection of execution resources that can be used to perform graphics operations, media operations, and compute operations in response to requests made by a graphics pipeline, a media pipeline, or a shader program. Graphics sub-cores 501A-501F include: multiple EU arrays 502A-502F, 504A-504F; thread dispatch and inter-thread communication (TD / IC) logic 503A-503F; 3D (e.g., texture) samplers 505A-505F; media samplers 506A-506F; shader processors 507A-507F; and shared local memory (SLM) 508A-508F. EU arrays 502A-502F, 504A-504F each include multiple execution units, which are general-purpose graphics processing units capable of performing floating-point and integer / fixed-point logic operations to serve graphics operations, media operations, or computing operations (including graphics programs, media programs, or computing shader programs). TD / IC logic 503A-503F performs local thread dispatch and thread control operations for execution units within the sub-core, and facilitates communication between threads executed on the execution units of the sub-core. 3D samplers 505A-505F can read textures or other 3D graphics-related data into memory. 3D samplers can read texture data in different ways based on the configured sample state and the texture format associated with a given texture. Media samplers 506A-506F can perform similar read operations based on the type and format associated with media data. In one embodiment, each graphics sub-core 501A-501F can alternately include unified 3D and media samplers. Threads executing on execution units within each of the sub-cores 501A-501F may utilize shared local memory 508A-508F within each sub-core, such that threads executing within a thread group can execute using a common pool of on-chip memory.

[0180] Execution Unit

[0181] Figure 25A-25B Thread execution logic 600 is shown including an array of processing elements employed in a graphics processor core, according to embodiments described herein. Figure 25A-25B Those elements having the same reference numerals (or names) as elements of any other figure herein may operate or function in any manner similar to that described elsewhere herein, but are not limited thereto. Fig.25A An overview of thread execution logic 600 is shown, which may include Fig.24 Each of the sub-cores 501A-501F shows a variation of the hardware logic. Fig.25B Exemplary internal details of an execution unit are shown.

[0182] As in Fig.25A As shown in , in some embodiments, thread execution logic 600 includes a shader processor 602, a thread dispatcher 604, an instruction cache 606, a scalable execution unit array including a plurality of execution units 608A-608N, a sampler 610, a data cache 612, and a data port 614. In one embodiment, the scalable execution unit array can be dynamically scaled by enabling or disabling one or more execution units (e.g., execution units 608A, 608B, 608C, 608D, up to any one of 608N-1 and 608N) based on the computational requirements of the workload. In one embodiment, the included components are interconnected via an interconnect structure that links to each of the components. In some embodiments, thread execution logic 600 includes one or more connections to a memory (such as a system memory or a cache memory) through one or more of the instruction cache 606, the data port 614, the sampler 610, and the execution units 608A-608N. In some embodiments, each execution unit (e.g., 608A) is a self-contained programmable general-purpose computing unit capable of executing multiple simultaneous hardware threads while processing multiple data elements in parallel for each thread. In various embodiments, the array of execution units 608A-608N is scalable to include any number of separate execution units.

[0183] In some embodiments, execution units 608A-608N are primarily used to execute shader programs. Shader processor 602 can process various shader programs and can dispatch execution threads associated with shader programs via thread dispatcher 604. In one embodiment, thread dispatcher includes logic for arbitrating thread initiation requests from graphics pipelines and media pipelines and instantiating the requested threads on one or more execution units in execution units 608A-608N. For example, a geometry pipeline can dispatch vertex shaders, tessellation shaders, or geometry shaders to thread execution logic for processing. In some embodiments, thread dispatcher 604 can also process runtime thread generation requests from executed shader programs.

[0184] In some embodiments, execution units 608A-608N support an instruction set including native support for many standard 3D graphics shader instructions, so that shader programs from graphics libraries (e.g., Direct 3D and OpenGL) are executed with minimal conversion. These execution units support vertex and geometry processing (e.g., vertex programs, geometry programs, vertex shaders), pixel processing (e.g., pixel shaders, fragment shaders), and general processing (e.g., compute and media shaders). Each execution unit in execution units 608A-608N is capable of multi-issue single instruction multiple data (SIMD) execution, and multi-threaded operations enable efficient execution environments in the face of high latency memory accesses. Each hardware thread in each execution unit has a dedicated high-bandwidth register file and associated independent thread states. For pipelines capable of integer operations, single-precision floating-point operations, and double-precision floating-point operations, capable of SIMD branching capabilities, capable of logical operations, capable of transcendental operations, and capable of other miscellaneous operations, execution is multi-issued for each clock. While waiting for data from memory or one of the shared functions, dependency logic within execution units 608A-608N causes the waiting thread to sleep until the requested data has returned. While the waiting thread is sleeping, hardware resources can be dedicated to processing other threads. For example, during a delay associated with a vertex shader operation, an execution unit can perform operations for a pixel shader, a fragment shader, or another type of shader program including a different vertex shader.

[0185] Each of the execution units 608A-608N operates on an array of data elements. The number of data elements is the "execution size," or number of lanes for an instruction. An execution lane is a logical unit used for the execution of data element access, masking, and flow control within an instruction. The number of lanes may be independent of the number of physical arithmetic logic units (ALUs) or floating point units (FPUs) used for a particular graphics processor. In some embodiments, the execution units 608A-608N support integer and floating point data types.

[0186] The execution unit instruction set includes SIMD instructions. Various data elements can be stored in registers as compact data types, and the execution unit will process each element based on the data size of the element. For example, when a 256-bit wide vector is operated, 256 bits of the vector are stored in registers, and the execution unit operates the vector as four independent 64-bit compact data elements (quad word (QW) size data elements), eight independent 32-bit compact data elements (double word (DW) size data elements), sixteen independent 16-bit compact data elements (data elements of word (W) size), or thirty-two independent 8-bit data elements (data elements of byte (B) size). However, different vector widths and register sizes are possible.

[0187] In one embodiment, one or more execution units may be combined into a fused execution unit 609A-609N having a common thread control logic (607A-607N) for the fused EU. Multiple EUs may be fused into a EU group. Each EU in the fused EU group may be configured to execute a separate SIMD hardware thread. The number of EUs in the fused EU group may vary according to the embodiment. In addition, various SIMD widths may be executed EU by EU, including but not limited to SIMD8, SIMD16, and SIMD32. Each fused graphics execution unit 609A-609N includes at least two execution units. For example, the fused execution unit 609A includes a first EU 608A, a second EU 608B, and a common thread control logic 607A for the first EU 608A and the second EU 608B. Thread control logic 607A controls threads executing on fused graphics execution unit 609A, allowing each EU within fused execution units 609A-609N to execute using a common instruction pointer register.

[0188] One or more internal instruction caches (e.g., 606) are included in thread execution logic 600 to cache thread instructions for execution units. In some embodiments, one or more data caches (e.g., 612) are included to cache thread data during thread execution. In some embodiments, sampler 610 is included to provide texture sampling for 3D operations and media sampling for media operations. In some embodiments, sampler 610 includes specialized texture or media sampling functions to process texture data or media data during the sampling process before providing the sampled data to the execution unit.

[0189] During execution, the graphics pipeline and the media pipeline send thread initiation requests to the thread execution logic 600 via thread generation and dispatch logic. Once a set of geometric objects have been processed and rasterized into pixel data, the pixel processor logic (e.g., pixel shader logic, fragment shader logic, etc.) within the shader processor 602 is called to further calculate output information and cause the results to be written to the output surface (e.g., color buffer, depth buffer, stencil buffer, etc.). In some embodiments, the pixel shader or fragment shader calculates the value of each vertex attribute, and the value of each vertex attribute is interpolated across the rasterized object. In some embodiments, the pixel processor logic within the shader processor 602 then executes the pixel shader program or fragment shader program supplied by the application programming interface (API). To execute the shader program, the shader processor 602 dispatches the thread to the execution unit (e.g., 608A) via the thread dispatcher 604. In some embodiments, the shader processor 602 uses the texture sampling logic in the sampler 610 to access the texture data in the texture map stored in the memory. Arithmetic operations on texture data and input geometry data compute pixel color data for each geometry fragment, or discard one or more pixels without further processing.

[0190] In some embodiments, data port 614 provides a memory access mechanism for thread execution logic 600 to output processed data to memory for further processing in the graphics processor output pipeline. In some embodiments, data port 614 includes or is coupled to one or more cache memories (e.g., data cache 612) to cache data for memory access via the data port.

[0191] like Fig.25B As shown, the graphics execution unit 608 may include an instruction fetch unit 637, a general register file array (GRF) 624, an architectural register file array (ARF) 626, a thread arbiter 622, an issue unit 630, a branch unit 632, a set of SIMD floating point units (FPUs) 634, and a set of dedicated integer SIMD ALUs 635 in one embodiment. The GRF 624 and ARF 626 include a set of general register files and architectural register files associated with each simultaneous hardware thread that may be active in the graphics execution unit 608. In one embodiment, a per-thread architectural state is maintained in the ARF 626, while data used during thread execution is stored in the GRF 624. The execution state of each thread, including the instruction pointer for each thread, may be maintained in thread-specific registers in the ARF 626.

[0192] In one embodiment, graphics execution unit 608 has an architecture that is a combination of simultaneous multithreading (SMT) and fine-grained interleaved multithreading (IMT). The architecture has a modular configuration that can be fine-tuned at design time based on the target number of simultaneous threads and the number of registers per execution unit, where execution unit resources are divided across logic for executing multiple simultaneous threads.

[0193] In one embodiment, the graphics execution unit 608 can issue multiple instructions in coordination, and these instructions can be different instructions respectively. The thread arbiter 622 of the graphics execution unit thread 608 can dispatch the instruction to one of the following items for execution: the send unit 630, the branch unit 642 or (multiple) SIMD FPU 634. Each execution thread can access 128 general registers in the GRF 624, wherein each register can store 32 bytes that can be accessed as a SIMD 8 element vector with 32-bit data elements. In one embodiment, each execution unit thread has access to 4 kilobytes in the GRF 624, but the embodiment is not limited thereto, and more or less register resources can be provided in other embodiments. In one embodiment, up to seven threads are executed simultaneously, but the number of threads of each execution unit can also vary according to the embodiment. In an embodiment in which seven threads can access 4 kilobytes, the GRF 624 can store a total of 28 kilobytes. Flexible addressing modes can allow multiple registers to be addressed together, thereby establishing a substantially wider register or representing a strided rectangular block data structure.

[0194] In one embodiment, memory operations, sampler operations, and other longer latency system communications are dispatched via "send" instructions executed by message passing send unit 630. In one embodiment, branch instructions are dispatched to a dedicated branch unit 632 to facilitate SIMD divergence and eventual convergence.

[0195] In one embodiment, the graphics execution unit 608 includes one or more SIMD floating point units (FPUs) 634 for performing floating point operations. In one embodiment, the FPUs 634 also support integer computations. In one embodiment, the FPUs 634 can SIMD perform up to a number M of 32-bit floating point (or integer) operations, or SIMD perform up to 2M 16-bit integer or 16-bit floating point operations. In one embodiment, at least one of the FPUs provides extended math capabilities that support high throughput transcendental math functions and double precision 64-bit floating points. In some embodiments, a set 635 of 8-bit integer SIMD ALUs also exists and can be specifically optimized to perform operations associated with machine learning computations.

[0196] In one embodiment, an array of multiple instances of graphics execution unit 608 may be instantiated in graphics sub-core groupings (e.g., sub-slices). For scalability, product architects may choose the exact number of execution units per sub-core grouping. In one embodiment, execution unit 608 may execute instructions across multiple execution lanes. In further embodiments, each thread executed on graphics execution unit 608 is executed on a different lane.

[0197] Fig.26 700 is a block diagram illustrating a graphics processor instruction format 700 according to some embodiments. In one or more embodiments, a graphics processor execution unit supports an instruction set having instructions in multiple formats. Solid line boxes illustrate components that are typically included in execution unit instructions, while dashed lines include components that are optional or included only in a subset of instructions. In some embodiments, the instruction format 700 described and illustrated are macroinstructions because they are instructions supplied to the execution unit, as opposed to microinstructions that result from instruction decoding that occurs once the instruction is processed.

[0198] In some embodiments, the graphics processor execution unit natively supports instructions in the 128-bit instruction format 710. Based on the selected instructions, instruction options, and number of operands, a 64-bit compact instruction format 730 may be used for some instructions. The native 128-bit instruction format 710 provides access to all instruction options, while some options and operations are limited in the 64-bit format 730. The native instructions available in the 64-bit format 730 vary from embodiment to embodiment. In some embodiments, the instructions are partially compressed using a set of index values ​​in the index field 713. The execution unit hardware references a set of compression tables based on the index values ​​and uses the compression table output to reconstruct the native instructions of the 128-bit instruction format 710.

[0199] For each format, the instruction opcode 712 defines the operation to be performed by the execution unit. The execution unit executes each instruction in parallel across multiple data elements of each operand. For example, in response to an addition instruction, the execution unit performs a synchronous addition operation across each color channel representing a texture element or a picture element. By default, the execution unit executes each instruction across all data channels of the operand. In some embodiments, the instruction control field 714 enables control of certain execution options, such as channel selection (e.g., assertion) and data channel order (e.g., mixing). For instructions of the 128-bit instruction format 710, the execution size field 716 limits the number of data channels that will be executed in parallel. In some embodiments, the execution size field 716 is not available for the 64-bit compact instruction format 730.

[0200] Some execution unit instructions have up to three operands, including two source operands src0 720, src1 722, and one destination operand 718. In some embodiments, the execution unit supports dual destination instructions, where one of the dual destinations is implicit. Data manipulation instructions may have a third source operand (e.g., SRC2 724), where the instruction opcode 712 determines the number of source operands. The last source operand of an instruction may be an immediate (e.g., hard-coded) value passed with the instruction.

[0201] In some embodiments, the 128-bit instruction format 710 includes an access / addressing mode field 726 that specifies, for example, whether direct register addressing mode or indirect register addressing mode is used. When direct register addressing mode is used, the register address of one or more operands is provided directly by bits in the instruction.

[0202] In some embodiments, the 128-bit instruction format 710 includes an access / addressing mode field 726 that specifies the addressing mode and / or access mode of the instruction. In one embodiment, the access mode is used to define the data access alignment for the instruction. Some embodiments support access modes including a 16-byte aligned access mode and a 1-byte aligned access mode, wherein the byte alignment of the access mode determines the access alignment of the instruction operand. For example, when in a first mode, the instruction may use byte-aligned addressing for source operands and destination operands, and when in a second mode, the instruction may use 16-byte aligned addressing for all source operands and destination operands.

[0203] In one embodiment, the addressing mode portion of the access / addressing mode field 726 determines whether the instruction uses direct addressing or indirect addressing. When direct register addressing mode is used, the bits in the instruction directly provide the register address of one or more operands. When indirect register addressing mode is used, the register address of one or more operands can be calculated based on the address register value and the address immediate field in the instruction.

[0204] In some embodiments, instructions are grouped based on the opcode 712 bit field to simplify opcode decoding 740. For 8-bit opcodes, bit 4, bit 5, and bit 6 allow the execution unit to determine the type of opcode. The exact opcode grouping shown is only an example. In some embodiments, the move and logic opcode group 742 includes data movement and logic instructions (e.g., move (mov), compare (cmp)). In some embodiments, the move and logic group 742 shares five most significant bits (MSB), wherein the move (mov) instruction adopts the form of 0000xxxxb, and the logic instruction adopts the form of 0001xxxxb. The flow control instruction group 744 (e.g., call (call), jump (jmp)) includes the instruction of 0010xxxxb (e.g., 0x20) form. The miscellaneous instruction group 746 includes a mixture of instructions, including the synchronization instruction (e.g., wait (wait), send (send)) of 0011xxxxb (e.g., 0x30) form. The parallel math instruction group 748 includes component-wise arithmetic instructions (e.g., add, multiply (mul)) of the form 0100xxxxb (e.g., 0x40). The parallel math group 748 performs arithmetic operations in parallel across data lanes. The vector math group 750 includes arithmetic instructions (e.g., dp4) of the form 0101xxxxb (e.g., 0x50). The vector math group performs arithmetic on vector operands, such as dot product calculations.

[0205] Graphics Pipeline

[0206] Fig. 27 is a block diagram of another embodiment of a graphics processor 800 . Fig. 27 Those elements having the same reference numerals (or names) as elements of any other figure herein may operate or function in any manner similar to that described elsewhere herein, but are not limited thereto.

[0207] In some embodiments, the graphics processor 800 includes a geometry pipeline 820, a media pipeline 830, a display engine 840, a thread execution logic 850, and a rendering output pipeline 870. In some embodiments, the graphics processor 800 is a graphics processor within a multi-core processing system that includes one or more general-purpose processing cores. The graphics processor is controlled by register writes to one or more control registers (not shown) or via commands issued to the graphics processor 800 through the ring interconnect 802. In some embodiments, the ring interconnect 802 couples the graphics processor 800 to other processing components, such as other graphics processors or general-purpose processors. Commands from the ring interconnect 802 are interpreted by a command stream converter 803, which supplies instructions to various components of the geometry pipeline 820 or the media pipeline 830.

[0208] In some embodiments, the command stream converter 803 directs the operation of the vertex fetcher 805, which reads vertex data from memory and executes vertex processing commands provided by the command stream converter 803. In some embodiments, the vertex fetcher 805 provides the vertex data to the vertex shader 807, which performs coordinate space transformation and lighting operations on each vertex. In some embodiments, the vertex fetcher 805 and the vertex shader 807 execute the vertex processing instructions by dispatching execution threads to the execution units 852A-852B via the thread dispatcher 831.

[0209] In some embodiments, execution units 852A-852B are arrays of vector processors with instruction sets for performing graphics operations and media operations. In some embodiments, execution units 852A-852B have an attached L1 cache 851 that is dedicated to each array or shared between arrays. The cache can be configured as a data cache, an instruction cache, or partitioned into a single cache containing data and instructions in different partitions.

[0210] In some embodiments, the geometry pipeline 820 includes a tessellation component for performing hardware accelerated tessellation of 3D objects. In some embodiments, the programmable shell shader 811 configures the tessellation operation. The programmable domain shader 817 provides back-end evaluation of the tessellation output. The tessellation 813 operates under the direction of the shell shader 811 and includes dedicated logic for generating a detailed set of geometric objects based on a coarse geometric model that is provided as input to the geometry pipeline 820. In some embodiments, if tessellation is not used, the tessellation components (e.g., the shell shader 811, the tessellation 813, and the domain shader 817) can be bypassed.

[0211] In some embodiments, the complete geometric object may be processed by the geometry shader 819 via one or more threads dispatched to the execution units 852A-852B, or may proceed directly to the clipper 829. In some embodiments, the geometry shader operates on the entire geometric object rather than on vertices or vertex patches as in previous stages of the graphics pipeline. If tessellation is disabled, the geometry shader 819 receives input from the vertex shader 807. In some embodiments, the geometry shader 819 is programmable by a geometry shader program to perform geometry tessellation when the tessellation unit is disabled.

[0212] Before rasterization, the clipper 829 processes the vertex data. The clipper 829 can be a fixed function clipper or a programmable clipper with clipping and geometry shader functions. In some embodiments, the rasterizer and depth test component 873 in the rendering output pipeline 870 dispatches a pixel shader to convert the geometric object into a pixel-by-pixel representation. In some embodiments, the pixel shader logic is included in the thread execution logic 850. In some embodiments, the application can bypass the rasterizer and depth test component 873 and access the unrasterized vertex data via the outflow unit 823.

[0213] The graphics processor 800 has an interconnect bus, interconnect structure, or some other interconnect mechanism that allows data and messages to be passed among the main components of the processor. In some embodiments, the execution units 852A-852B and associated logic units (e.g., L1 cache 851, sampler 854, texture cache 858, etc.) are interconnected via data ports 856 to perform memory accesses and communicate with the rendering output pipeline components of the processor. In some embodiments, the sampler 854, caches 851, 858, and execution units 852A-852B each have a separate memory access path. In one embodiment, the texture cache 858 can also be configured as a sampler cache.

[0214] In some embodiments, the rendering output pipeline 870 includes a rasterizer and depth test component 873, which converts vertex-based objects into associated pixel-based representations. In some embodiments, the rasterizer logic includes a windower / masker unit for performing fixed-function triangle and line rasterization. An associated rendering cache 878 and depth cache 879 are also available in some embodiments. The pixel operation component 877 performs pixel-based operations on data, but in some instances, pixel operations associated with 2D operations (e.g., using mixed bit block image transfer) are performed by the 2D engine 841, or replaced by the display controller 843 using an overlay display plane when displaying. In some embodiments, a shared L3 cache 875 can be used for all graphics components, allowing data to be shared without using main system memory.

[0215] In some embodiments, the graphics processor media pipeline 830 includes a media engine 837 and a video front end 834. In some embodiments, the video front end 834 receives pipeline commands from the command stream converter 803. In some embodiments, the media pipeline 830 includes a separate command stream converter. In some embodiments, the video front end 834 processes the media commands before sending them to the media engine 837. In some embodiments, the media engine 837 includes a thread generation function for generating threads for dispatching to the thread execution logic 850 via the thread dispatcher 831.

[0216] In some embodiments, the graphics processor 800 includes a display engine 840. In some embodiments, the display engine 840 is external to the processor 800 and is coupled to the graphics processor via the ring interconnect 802, or some other interconnect bus or structure. In some embodiments, the display engine 840 includes a 2D engine 841 and a display controller 843. In some embodiments, the display engine 840 includes dedicated logic that can operate independently of the 3D pipeline. In some embodiments, the display controller 843 is coupled to a display device (not shown), which can be a system integrated display device (such as in a laptop computer) or an external display device attached via a display device connector.

[0217] In some embodiments, geometry pipeline 820 and media pipeline 830 can be configured to perform operations based on multiple graphics and media programming interfaces, and are not dedicated to any application programming interface (API). In some embodiments, the driver software of the graphics processor converts the API call dedicated to a specific graphics or media library into a command that can be processed by the graphics processor. In some embodiments, all open graphics libraries (OpenGL), open computing language (OpenCL) and / or Vulkan graphics and computing APIs from Khronos Group are provided with support. In some embodiments, support can also be provided for the Direct3D library from Microsoft. In some embodiments, the combination of these libraries can be supported. Support can also be provided for the open source computer vision library (OpenCV). If the mapping from the pipeline of the future API to the pipeline of the graphics processor can be carried out, the future API with compatible 3D pipelines will also be supported.

[0218] Graphics Pipeline Programming

[0219] Fig.28A is a block diagram illustrating a graphics processor command format 900 according to some embodiments. Fig.28B is a block diagram illustrating a graphics processor command sequence 910 according to an embodiment. Fig.28AThe solid-line boxes in show components that are generally included in the graphics commands, while the dashed lines include components that are optional or included only in a subset of the graphics commands. Fig.28A An exemplary graphics processor command format 900 includes data fields for identifying the client 902 of the command, a command operation code (opcode) 904, and data 906. A sub-opcode 905 and a command size 908 are also included in some commands.

[0220] In some embodiments, client 902 specifies the client unit of processing command data of graphics device. In some embodiments, graphics processor command parser checks the client field of each command to adjust the further processing of command and route command data to appropriate client unit. In some embodiments, graphics processor client unit includes memory interface unit, rendering unit, 2D unit, 3D unit and media unit. Each client unit has corresponding processing pipeline for processing command. Once command is received by client unit, client unit reads opcode 904 and sub-opcode 905 (if exists) to determine the operation to be performed. Client unit uses information in data field 906 to execute command. For some commands, explicit command size 908 is expected to specify the size of command. In some embodiments, command parser automatically determines the size of at least some commands in command based on command opcode. In some embodiments, command is aligned via multiples of double word.

[0221] Fig.28B 910. In some embodiments, software or firmware of a data processing system featuring an embodiment of a graphics processor uses a version of the command sequence shown to establish, execute, and terminate a set of graphics operations. The sample command sequence is shown and described for exemplary purposes only, as the embodiments are not limited to these particular commands or command sequences. Moreover, the commands may be issued as batches of commands in a command sequence so that the graphics processor will process the command sequence in an at least partially simultaneous manner.

[0222] In some embodiments, the graphics processor command sequence 910 may begin with a pipeline dump clear command 912 to cause any active graphics pipeline to complete the currently pending commands of the pipeline. In some embodiments, the 3D pipeline 922 and the media pipeline 924 do not operate concurrently. The pipeline dump clear is performed to cause the active graphics pipeline to complete any pending commands. In response to the pipeline dump clear, the command parser for the graphics processor will suspend command processing until the active painting engine completes the pending operation and the associated read cache is invalidated. Optionally, any data marked as "dirty" in the rendering cache can be dumped to memory. In some embodiments, the pipeline dump clear command 912 can be used for pipeline synchronization, or before placing the graphics processor in a low power state.

[0223] In some embodiments, when a command sequence requires the graphics processor to explicitly switch between pipelines, a pipeline select command 913 is used. In some embodiments, a pipeline select command 913 is only required once in an execution context before issuing pipeline commands unless the context will issue commands for both pipelines. In some embodiments, a pipeline flush command 912 is required immediately before a pipeline switch via a pipeline select command 913.

[0224] In some embodiments, pipeline control commands 914 configure the graphics pipeline for operation and are used to program the 3D pipeline 922 and the media pipeline 924. In some embodiments, pipeline control commands 914 configure the pipeline state of the active pipeline. In one embodiment, pipeline control commands 914 are used for pipeline synchronization and for clearing data from one or more cache memories within the active pipeline before processing a batch of commands.

[0225] In some embodiments, the return buffer state command 916 is used to configure a set of return buffers for a corresponding pipeline to write data. Some pipeline operations require allocating, selecting, or configuring one or more return buffers into which the operation writes intermediate data during processing. In some embodiments, the graphics processor also uses one or more return buffers to store output data and perform cross-thread communication. In some embodiments, the return buffer state 916 includes selecting the size and number of return buffers to be used for the set of pipeline operations.

[0226] The remaining commands in the command sequence differ based on the active pipeline for operation.Based on pipeline decision 920 , the command sequence is tailored for either 3D pipeline 922 starting at 3D pipeline state 930 , or media pipeline 924 starting at media pipeline state 940 .

[0227] The commands for configuring the 3D pipeline state 930 include 3D state setting commands for vertex buffer state, vertex element state, constant color state, depth buffer state, and other state variables that will be configured before processing 3D primitive commands. The values ​​of these commands are determined at least in part based on the specific 3D API in use. In some embodiments, if certain pipeline elements will not be used, the 3D pipeline state 930 commands can also selectively disable or bypass those elements.

[0228] In some embodiments, 3D primitive 932 commands are used to submit 3D primitives to be processed by the 3D pipeline. The commands and associated parameters passed to the graphics processor via the 3D primitive 932 commands are forwarded to the vertex fetching function in the graphics pipeline. The vertex fetching function uses the 3D primitive 932 command data to generate multiple vertex data structures. The vertex data structure is stored in one or more return buffers. In some embodiments, 3D primitive 932 commands are used to perform vertex operations on 3D primitives via vertex shaders. In order to process vertex shaders, the 3D pipeline 922 dispatches the shader execution thread to the graphics processor execution unit.

[0229] In some embodiments, the 3D pipeline 922 is triggered via an execution 934 command or event. In some embodiments, a register write triggers the command execution. In some embodiments, the execution is triggered via a "go" or "kick" command in the command sequence. In one embodiment, the command execution is triggered using a pipeline synchronization command to dump and clear the command sequence through the graphics pipeline. The 3D pipeline will perform geometry processing for 3D primitives. Once the operation is completed, the resulting geometric objects are rasterized and the pixel engine shades the resulting pixels. For those operations, additional commands for controlling pixel shading and pixel backend operations may also be included.

[0230] In some embodiments, when performing media operations, the graphics processor command sequence 910 follows the media pipeline 924 path. Generally, the specific purpose and manner of programming for the media pipeline 924 depends on the media or computing operation to be performed. During media decoding, specific media decoding operations can be transferred to the media pipeline. In some embodiments, the media pipeline can also be bypassed, and the resources provided by one or more general processing cores can be used to perform media decoding in whole or in part. In one embodiment, the media pipeline also includes elements for general purpose graphics processor unit (GPGPU) operations, wherein the graphics processor is used to perform SIMD vector operations using compute shader programs, which are not explicitly related to the rendering of graphics primitives.

[0231] In some embodiments, the media pipeline 924 is configured in a similar manner to the 3D pipeline 922. A set of commands for configuring the media pipeline state 940 is dispatched or placed into a command queue before the media object commands 942. In some embodiments, the commands for the media pipeline state 940 include data for configuring the media pipeline elements that will be used to process the media objects. This includes data for configuring the video decoding and video encoding logic within the media pipeline, such as encoding or decoding formats. In some embodiments, the commands for the media pipeline state 940 also support the use of one or more pointers to "indirect" state elements that contain batches of state settings.

[0232] In some embodiments, media object commands 942 supply pointers to media objects for processing by the media pipeline. The media object includes a memory buffer that contains video data to be processed. In some embodiments, all media pipeline states must be valid before issuing media object commands 942. Once the pipeline state is configured and media object commands 942 are queued, media pipeline 924 is triggered via an execution command 944 or an equivalent execution event (e.g., a register write). The output from media pipeline 924 can then be post-processed by operations provided by 3D pipeline 922 or media pipeline 924. In some embodiments, GPGPU operations are configured and executed in a manner similar to media operations.

[0233] Graphics software architecture

[0234] Fig.29 An exemplary graphics software architecture for data processing system 1000 is shown in accordance with some embodiments. In some embodiments, the software architecture includes 3D graphics application 1010, operating system 1020, and at least one processor 1030. In some embodiments, processor 1030 includes graphics processor 1032 and one or more general purpose processor cores 1034. Graphics application 1010 and operating system 1020 are each executed in system memory 1050 of the data processing system.

[0235] In some embodiments, the 3D graphics application 1010 includes one or more shader programs that include shader instructions 1012. The shader language instructions may be in a high-level shader language, such as High Level Shader Language (HLSL), or OpenGL Shader Language (GLSL). The application also includes executable instructions 1014 in a machine language suitable for execution by the general purpose processor core 1034. The application also includes graphics objects 1016 defined by vertex data.

[0236] In some embodiments, operating system 1020 is from Microsoft Corporation Operating system 1020 can support graphics API 1022, such as Direct3D API, OpenGL API or Vulkan API. When Direct3D API is in use, operating system 1020 uses front-end shader compiler 1024 to compile any shader instruction 1012 using HLSL into a lower-level shader language. Compilation can be just-in-time (JIT) compilation, or application executable shader precompilation. In some embodiments, during the compilation of 3D graphics application 1010, high-level shaders are compiled into low-level shaders. In some embodiments, shader instructions 1012 are provided in an intermediate form, such as a certain version of the standard portable intermediate representation (SPIR) used by Vulkan API.

[0237] In some embodiments, the user mode graphics driver 1026 includes a backend shader compiler 1027 for converting shader instructions 1012 into hardware-specific representations. When the OpenGL API is in use, the shader instructions 1012 in the GLSL high-level language are passed to the user mode graphics driver 1026 for compilation. In some embodiments, the user mode graphics driver 1026 uses the operating system kernel mode function 1028 to communicate with the kernel mode graphics driver 1029. In some embodiments, the kernel mode graphics driver 1029 communicates with the graphics processor 1032 to dispatch commands and instructions.

[0238] IP Core Implementation

[0239] One or more aspects of at least one embodiment may be implemented by representative code stored on a machine-readable medium, which represents and / or defines logic within an integrated circuit (such as a processor). For example, a machine-readable medium may include instructions representing various logics within a processor. When read by a machine, the instructions may cause the machine to manufacture logic for performing the techniques described herein. Such representations (referred to as "IP cores") are reusable units of logic for an integrated circuit, which may be stored on a tangible, machine-readable medium as a hardware model describing the structure of the integrated circuit. The hardware model may be supplied to each consumer or manufacturing facility that loads the hardware model on a manufacturing machine that manufactures the integrated circuit. The integrated circuit may be manufactured so that the circuit performs the operations described in association with any of the embodiments described herein.

[0240] Fig. 30A1 is a block diagram showing an IP core development system 1100 according to an embodiment, which can be used to manufacture integrated circuits to perform operations. The IP core development system 1100 can be used to generate modular, reusable designs that can be incorporated into larger designs or used to build entire integrated circuits (e.g., SOC integrated circuits). The design facility 1130 can generate software simulation 1110 of the IP core design using a high-level programming language (e.g., C / C++). The software simulation 1110 can be used to design, test, and verify the behavior of the IP core using a simulation model 1112. The simulation model 1112 can include functional simulation, behavioral simulation, and / or timing simulation. A register transfer level (RTL) design 1115 can then be created or synthesized from the simulation model 1112. The RTL design 1115 is an abstraction of the behavior of an integrated circuit (including associated logic executed using the modeled digital signals) that models the flow of digital signals between hardware registers. In addition to the RTL design 1115, a lower level design at the logic level or transistor level can also be created, designed, or synthesized. Thus, the specific details of the initial design and simulation can be different.

[0241] The RTL design 1115 or an equivalent solution can be further synthesized into a hardware model 1120 by the design facility, which can adopt a hardware description language (HDL) or some other representation of physical design data. The HDL can be further simulated or tested to verify the IP core design. The IP core design can be stored using a non-volatile memory 1140 (e.g., a hard disk, flash memory, or any non-volatile storage medium) for delivery to a third-party manufacturing facility 1165. Alternatively, the IP core design can be transmitted via a wired connection 1150 or a wireless connection 1160 (e.g., via the Internet). The manufacturing facility 1165 can then manufacture an integrated circuit based at least in part on the IP core design. The manufactured integrated circuit can be configured to perform operations according to at least one embodiment described herein.

[0242] Fig. 30BA cross-sectional side view of an integrated circuit package assembly 1170 according to some embodiments described herein is shown. The integrated circuit package assembly 1170 illustrates an implementation of one or more processors or accelerator devices as described herein. The package assembly 1170 includes a plurality of hardware logic units 1172, 1174 connected to a substrate 1180. The logic 1172, 1174 may be implemented at least in part in configurable logic or fixed-function logic hardware, and may include one or more portions of any of the processor cores, graphics processors, or other accelerator devices described herein (multiple) processor cores, (multiple) graphics processors, or other accelerator devices. Each logic unit 1172, 1174 may be implemented within a semiconductor die and coupled to the substrate 1180 via an interconnect structure 1173. The interconnect structure 1173 may be configured to route electrical signals between the logic 1172, 1174 and the substrate 1180, and may include interconnects such as, but not limited to, bumps or pillars. In some embodiments, the interconnect structure 1173 can be configured to route electrical signals, such as, for example, input / output (I / O) signals and / or power or ground signals associated with the operation of the logic 1172, 1174. In some embodiments, the substrate 1180 is a laminate substrate based on epoxy resin. In other embodiments, the package substrate 1180 may include other suitable types of substrates. The package assembly 1170 can be connected to other electrical devices via the package interconnect 1183. The package interconnect 1183 can be coupled to the surface of the substrate 1180 to route electrical signals to other electrical devices, such as a motherboard, other chipsets, or multi-chip modules.

[0243] In some embodiments, logic units 1172, 1174 are electrically coupled to a bridge 1182 configured to route electrical signals between logic 1172 and logic 1174. Bridge 1182 may be a dense interconnect structure that provides routing for electrical signals. Bridge 1182 may include a bridge substrate composed of glass or a suitable semiconductor material. Circuit features may be formed on the bridge substrate to provide a chip-to-chip connection between logic 1172 and logic 1174.

[0244] Although two logic cells 1172, 1174 and bridge 1182 are shown, the embodiments described herein may include more or fewer logic cells on one or more dies. The one or more dies may be connected by zero or more bridges, as bridge 1182 may be excluded when the logic is included on a single die. Alternatively, multiple dies or logic cells may be connected by one or more bridges. Additionally, multiple logic cells, dies, and bridges may be connected together in other possible configurations, including three-dimensional configurations.

[0245] Exemplary System-on-Chip Integrated Circuit

[0246] Figure 31-Figure 3 3 shows an exemplary integrated circuit and associated graphics processor that can be manufactured using one or more IP cores according to various embodiments described herein. In addition to what is shown, other logic and circuits may also be included, including additional graphics processors / cores, peripheral interface controllers, or general processor cores.

[0247] Fig.31 1 is a block diagram illustrating an exemplary system-on-chip integrated circuit 1200 that can be manufactured using one or more IP cores according to an embodiment. The exemplary integrated circuit 1200 includes one or more application processors 1205 (e.g., CPUs), at least one graphics processor 1210, and may additionally include an image processor 1215 and / or a video processor 1220, any of which may be modular IP cores from the same design facility or multiple different design facilities. The integrated circuit 1200 includes peripheral or bus logic, including a USB controller 1225, a UART controller 1230, an SPI / SDIO controller 1235, and an I 2 S / I 2 The integrated circuit may include a display device 1245 coupled to one or more of a high-definition multimedia interface (HDMI) controller 1250 and a mobile industry processor interface (MIPI) display interface 1255. Storage may be provided by a flash memory subsystem 1260 (including flash memory and a flash memory controller). A memory interface may be provided via a memory controller 1265 to obtain access to SDRAM or SRAM memory devices. Some integrated circuits additionally include an embedded security engine 1270.

[0248] Figure 32A-32B is a block diagram illustrating an exemplary graphics processor for use within a SoC according to embodiments described herein. Fig.32A An exemplary graphics processor 1310 of a system on chip integrated circuit that may be fabricated using one or more IP cores is shown in accordance with an embodiment. Fig.32B An additional exemplary graphics processor 1340 is shown that may be fabricated using one or more IP cores for a system on a chip integrated circuit in accordance with an embodiment. Fig.32A Graphics processor 1310 is an example of a low-power graphics processor core. Fig.32B The graphics processor 1340 of FIG. 1 is an example of a higher performance graphics processor core. Each of the graphics processors 1310 and 1340 may be Fig.31 A variant of graphics processor 1210.

[0249] like Fig.32AAs shown in , the graphics processor 1310 includes a vertex processor 1305 and one or more fragment processors 1315A-1315N (e.g., 1315A, 1315B, 1315C, 1315D, all the way to 1315N-1 and 1315N). The graphics processor 1310 can execute different shader programs via separate logic, so that the vertex processor 1305 is optimized to perform operations for the vertex shader program, while the one or more fragment processors 1315A-1315N perform fragment (e.g., pixel) shading operations for the fragment or pixel shader program. The vertex processor 1305 performs the vertex processing stage of the 3D graphics pipeline and generates primitive data and vertex data. (Multiple) fragment processors 1315A-1315N use the primitive data and vertex data generated by the vertex processor 1305 to generate a frame buffer that is displayed on the display device. In one embodiment, the fragment processor(s) 1315A-1315N are optimized to execute fragment shader programs as provided in the OpenGL API, which can be used to perform similar operations as pixel shader programs as provided in the Direct 3D API.

[0250] The graphics processor 1310 additionally includes one or more memory management units (MMUs) 1320A-1320B, cache(s) 1325A-1325B, and circuit interconnect(s) 1330A-1330B. The one or more MMUs 1320A-1320B provide virtual to physical address mappings for the graphics processor 1310 (including for the vertex processor 1305 and / or fragment processor(s) 1315A-1315N), which may reference vertex data or image / texture data stored in memory in addition to vertex data or image / texture data stored in the one or more caches 1325A-1325B. In one embodiment, the one or more MMUs 1320A-1320B may be synchronized with other MMUs within the system so that each processor 1205-1220 may participate in a shared or unified virtual memory system, including with other MMUs within the system. Fig.31 One or more MMUs associated with one or more application processors 1205, image processor 1215, and / or video processor 1220. According to an embodiment, one or more circuit interconnects 1330A-1330B enable graphics processor 1310 to interface with other IP cores within the SoC via an internal bus of the SoC or via a direct connection.

[0251] like Fig.32B As shown in FIG. 1 , the graphics processor 1340 includes Fig.32AOne or more MMUs 1320A-1320B, caches 1325A-1325B, and circuit interconnects 1330A-1330B of a graphics processor 1310. Graphics processor 1340 includes one or more shader cores 1355A-1355N (e.g., 1355A, 1355B, 1355C, 1355D, 1355E, 1355F, all the way to 1355N-1 and 1355N), which provide a unified shader core architecture in which a single core or type or core can execute all types of programmable shader code, including shader program code for implementing vertex shaders, fragment shaders, and / or compute shaders. The exact number of shader cores present may vary by embodiment and implementation. In addition, the graphics processor 1340 includes an inter-core task manager 1345 that acts as a thread dispatcher for dispatching execution threads to one or more shader cores 1355A-1355N and a tiling unit 1358 for accelerating tiling operations for tile-based rendering, in which rendering operations for a scene are subdivided in image space, for example to exploit local spatial consistency within a scene or to optimize the use of internal caches.

[0252] Figure 33A-Figure 33B Additional exemplary graphics processor logic is shown according to embodiments described herein. Fig.33A A graphics core 1400 is shown, which may be included in Fig.31 within the graphics processor 1210 and may be such as Fig.32B Unified shader cores 1355A-1355N in. Fig.33B A highly parallel general purpose graphics processing unit 1430 suitable for deployment on a multi-chip module is shown.

[0253] like Fig.33A, graphics core 1400 includes a shared instruction cache 1402, texture units 1418, and cache memory / shared memory 1420 that are common to execution resources within graphics core 1400. Graphics core 1400 may include multiple slices 1401A-1401N or partitions for each core, and a graphics processor may include multiple instances of graphics core 1400. Slices 1401A-1401N may include support logic including local instruction caches 1404A-1404N, thread schedulers 1406A-1406N, thread dispatchers 1408A-1408N, and a set of registers 1410A. To perform logical operations, slices 1401A-1401N may include a set of additional functional units (AFU 1412A-1412N), floating point units (FPU1414A-1414N), integer arithmetic logic units (ALU 1416A-1416N), address calculation units (ACU 1413A-1413N), double precision floating point units (DPFPU 1415A-1415N), and matrix processing units (MPU 1417A-1417N).

[0254] Some of these computing units operate with specific precision. For example, FPU 1414A-1414N can perform single-precision (32-bit) and half-precision (16-bit) floating-point operations, while DPFPU 1415A-1415N performs double-precision (64-bit) floating-point operations. ALU 1416A-1416N can perform variable-precision integer operations with 8-bit precision, 16-bit precision, and 32-bit precision, and can be configured for mixed-precision operations. MPU 1417A-1417N can also be configured for mixed-precision matrix operations, including half-precision floating-point operations and 8-bit integer operations. MPU 1417A-1417N can perform various matrix operations to accelerate machine learning application frameworks, including enabling support for accelerated general matrix-matrix multiplication (GEMM). AFU 1412A-1412N can perform additional logical operations that are not supported by floating-point units or integer units, including trigonometric operations (e.g., sine, cosine, etc.).

[0255] like Fig.33BAs shown in , a general purpose processing unit (GPGPU) 1430 can be configured to enable highly parallel computing operations to be performed by an array of graphics processing units. In addition, GPGPU 1430 can be directly linked to other instances of GPGPU to create a multi-GPU cluster, thereby improving the training speed of deep neural networks in particular. GPGPU 1430 includes a host interface 1432 for enabling connection to a host processor. In one embodiment, host interface 1432 is a PCI Express interface. However, the host interface can also be a communication interface or communication structure dedicated to the supplier. GPGPU 1430 receives commands from the host processor and distributes the execution threads associated with those commands to a collection 1436A-1436H of a computing cluster using a global scheduler 1434. Computing clusters 1436A-1436H share cache memory 1438. Cache memory 1438 can act as a higher level cache for cache memory within computing clusters 1436A-1436H.

[0256] GPGPU 1430 includes memory 1434A-1434B coupled to compute clusters 1436A-1436H via a set of memory controllers 1442A-1442B. In various embodiments, memory 1434A-1434B may include various types of memory devices, including dynamic random access memory (DRAM) or graphics random access memory, such as synchronous graphics random access memory (SGRAM), including graphics double data rate (GDDR) memory.

[0257] In one embodiment, computing clusters 1436A-1436H each include a collection of graphics multicores, such as Fig.33A The graphics core 1400 may include multiple types of integer logic units and floating point logic units that can perform computational operations including those suitable for machine learning computations within a range of precision. For example, and in one embodiment, at least a subset of the floating point units in each of the computing clusters 1436A-1436H may be configured to perform 16-bit or 32-bit floating point operations, while a different subset of the floating point units may be configured to perform 64-bit floating point operations.

[0258] Multiple instances of GPGPU 1430 may be configured to operate as a computing cluster. The communication mechanisms used by the computing cluster for synchronization and data exchange vary across embodiments. In one embodiment, multiple instances of GPGPU 1430 communicate via a host interface 1432. In one embodiment, GPGPU 1430 includes an I / O hub 1439 that couples GPGPU 1430 with a GPU link 1440 that enables direct connection to other instances of GPGPU. In one embodiment, GPU link 1440 is coupled to a dedicated GPU-GPU bridge that enables communication and synchronization between multiple instances of GPGPU 1430. In one embodiment, GPU link 1440 is coupled to a high-speed interconnect to transmit and receive data to other GPGPUs or parallel processors. In one embodiment, multiple instances of GPGPU 1430 are located in separate data processing systems and communicate via a network device that is accessible via a host interface 1432. In one embodiment, in addition to or in lieu of host interface 1432 , GPU link 1440 may be configured to enable connection to a host processor.

[0259] Although the illustrated configuration of GPGPU 1430 can be configured to train a neural network, one embodiment provides an alternative configuration of GPGPU 1430 that can be configured for deployment within a high-performance or low-power inference platform. In the inference configuration, relative to the training configuration, GPGPU 1430 includes fewer computing clusters in computing clusters 1436A-1436H. In addition, the memory technology associated with memory 1434A-1434B can be different between the inference configuration and the training configuration, where the higher bandwidth memory technology is dedicated to the training configuration. In one embodiment, the inference configuration of GPGPU 1430 can support inference-specific instructions. For example, the inference configuration can provide support for one or more 8-bit integer dot product instructions, which are typically used during inference operations for deployed neural networks.

[0260] Combination of the above Figures 20 to 33B The described embodiments may be configured to include one or more features or aspects of an adaptive encoder as described herein, including those described in the following additional description and examples.

[0261] Additional notes and examples:

[0262] Example 1 may include an electronic processing system comprising: a processor; a memory communicatively coupled to the processor; and logic communicatively coupled to the processor for determining information related to a head mounted device and determining one or more video encoding parameters based on the information related to the head mounted device, wherein the information related to the head mounted device includes at least one of information related to focus and information related to motion.

[0263] Example 2 may include the system of Example 1, wherein the logic is further used to: adjust a quality parameter for encoding of a macroblock based on information related to focus.

[0264] Example 3 may include the system of Example 2, wherein the logic is further to: identify a focus region based on the information related to focus; and adjust a quality parameter for encoding to provide relatively higher quality for macroblocks inside the focus region compared to macroblocks outside the focus region.

[0265] Example 4 may include the system of Example 1, wherein the logic is further for determining a global motion predictor for encoding of the macroblock based on the motion related information.

[0266] Example 5 may include the system of Example 4, wherein the logic is further for determining a hierarchical motion estimation offset based on a current head position, a previous head position, and a center point from the motion-related information.

[0267] Example 6 may include the system of any of Examples 1 to 5, wherein the logic is further for encoding a macroblock of a video image based on the one or more determined video encoding parameters.

[0268] Example 7 may include a semiconductor packaging device comprising: one or more substrates; and logic coupled to the one or more substrates, wherein the logic is at least partially implemented in one or more of configurable logic and fixed-function hardware logic, and the logic coupled to the one or more substrates is used to: determine information related to a head-mounted device, the information related to the head-mounted device including at least one of information related to focus and information related to motion; and determine one or more video encoding parameters based on the information related to the head-mounted device.

[0269] Example 8 may include the apparatus of Example 7, wherein the logic is further for adjusting a quality parameter for encoding of the macroblock based on the information related to focus.

[0270] Example 9 may include the apparatus of Example 8, wherein the logic is further to: identify a focus region based on the information related to focus; and adjust a quality parameter for encoding to provide relatively higher quality for macroblocks inside the focus region compared to macroblocks outside the focus region.

[0271] Example 10 may include the apparatus of Example 7, wherein the logic is further for determining a global motion predictor for encoding of the macroblock based on the motion-related information.

[0272] Example 11 may include the apparatus of Example 10, wherein the logic is further for determining a hierarchical motion estimation offset based on a current head position, a previous head position, and a center point from the motion-related information.

[0273] Example 12 may include the apparatus of any of Examples 7 to 11, wherein the logic is further for encoding a macroblock of a video image based on the one or more determined video encoding parameters.

[0274] Example 13 may include a method for adaptive encoding, comprising: determining information related to a head-mounted device, wherein the information related to the head-mounted device includes at least one of information related to focus and information related to motion; and determining one or more video encoding parameters based on the information related to the head-mounted device.

[0275] Example 14 may include the method of Example 13, further comprising: adjusting a quality parameter for encoding of the macroblock based on the information related to the focus.

[0276] Example 15 may include the method of Example 14, further comprising: identifying a focus area based on the information related to the focus; and adjusting a quality parameter for encoding to provide relatively higher quality for macroblocks inside the focus area compared to macroblocks outside the focus area.

[0277] Example 16 may include the method of Example 13, further comprising determining a global motion predictor for encoding of the macroblock based on the motion-related information.

[0278] Example 17 may include the method of Example 16, further comprising determining a hierarchical motion estimation offset based on a current head position, a previous head position, and a center point from the motion-related information.

[0279] Example 18 may include the method of any one of Examples 13 to 17, further comprising: encoding a macroblock of the video image based on the one or more determined video encoding parameters.

[0280] Example 19 may include at least one computer-readable medium comprising an instruction set that, when executed by a computing device, causes the computing device to: determine information related to a head-mounted device, the information related to the head-mounted device comprising at least one of information related to focus and information related to motion; and determine one or more video encoding parameters based on the information related to the head-mounted device.

[0281] Example 20 may include the at least one computer-readable medium of Example 19, comprising a further set of instructions that, when executed by a computing device, cause the computing device to: adjust a quality parameter for encoding of a macroblock based on the information related to focus.

[0282] Example 21 may include the at least one computer-readable medium of Example 20, comprising a further set of instructions that, when executed by a computing device, cause the computing device to: identify a focus region based on the information related to focus; and adjust a quality parameter for encoding to provide relatively higher quality for macroblocks inside the focus region compared to macroblocks outside the focus region.

[0283] Example 22 may include the at least one computer-readable medium of Example 19, comprising a further set of instructions that, when executed by a computing device, causes the computing device to: determine a global motion predictor for encoding of a macroblock based on the motion-related information.

[0284] Example 23 may include at least one computer-readable medium of Example 22, comprising a further set of instructions that, when executed by a computing device, causes the computing device to: determine a hierarchical motion estimation offset based on a current head position, a previous head position, and a center point from the motion-related information.

[0285] Example 24 may include at least one computer-readable medium of any one of Examples 19 to 23, comprising a further set of instructions that, when executed by a computing device, causes the computing device to: encode a macroblock of a video image based on one or more determined video encoding parameters.

[0286] Example 25 may include an adaptive encoder device comprising: a device for determining information related to a head-mounted device, wherein the information related to the head-mounted device includes at least one of information related to focus and information related to motion; and a device for determining one or more video encoding parameters based on the information related to the head-mounted device.

[0287] Example 26 may include the apparatus of Example 25, further comprising: means for adjusting a quality parameter for encoding of the macroblock based on the information related to focus.

[0288] Example 27 may include the apparatus of Example 26, further comprising: means for identifying a focus area based on the information related to the focus; and means for adjusting a quality parameter for encoding to provide relatively higher quality for macroblocks inside the focus area compared to macroblocks outside the focus area.

[0289] Example 28 may include the apparatus of Example 25, further comprising: means for determining a global motion predictor for encoding of a macroblock based on the motion-related information.

[0290] Example 29 may include the apparatus of Example 28, further comprising: means for determining a hierarchical motion estimation offset based on the current head position, the previous head position, and the center point from the motion-related information.

[0291] Example 30 may include the apparatus of any one of Examples 25 to 29, further comprising: means for encoding a macroblock of a video image based on the one or more determined video encoding parameters.

[0292] Embodiments are applicable to use with all types of semiconductor integrated circuit ("IC") chips. Examples of these IC chips include, but are not limited to, processors, controllers, chipset components, programmable logic arrays (PLA), memory chips, network chips, systems on chips (SoC), SSD / NAND controller ASICs, and the like. In addition, in some of the drawings, signal conductors are represented by lines. Some lines may be different to indicate more constitutive signal paths, may have digital labels to indicate the number of constitutive signal paths, and / or may have arrows at one or more ends to indicate the main information flow. However, this should not be interpreted in a restrictive manner. On the contrary, such added details may be used in conjunction with one or more exemplary embodiments to facilitate easier understanding of the circuit. Any signal line represented, whether or not it has additional information, may actually include one or more signals, which may travel in multiple directions and may be implemented with any suitable type of signal scheme, such as digital or analog lines implemented using differential pairs, fiber optic lines, and / or single-ended lines.

[0293] Example sizes / models / values / ranges may have been given, but embodiments are not limited thereto. As manufacturing techniques (e.g., photolithography) mature over time, it is expected that smaller devices can be manufactured. In addition, for simplicity of description and discussion and in order not to obscure certain aspects of the embodiments, known power / ground connections to IC chips and other components may or may not be shown in the accompanying drawings. In addition, various configurations may be shown in block diagram form to avoid obscuring the embodiments, and in view of the fact that the specific details of the implementation of the configurations relative to these block diagrams depend to a great extent on the platform on which the embodiments are implemented, that is, these specific details should fall within the scope of those skilled in the art. In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments, it is apparent that those skilled in the art can implement the embodiments without these specific details or by making changes to these specific details. The description is therefore considered to be illustrative rather than restrictive.

[0294] The term "coupled" may be used herein to represent any type of direct or indirect relationship between the components in question, and may apply to electrical, mechanical, fluid, optical, electromagnetic, electromechanical or other connections. Additionally, the terms "first," "second," etc. may be used herein merely to facilitate discussion, and do not carry a specific temporal or chronological meaning unless otherwise stated.

[0295] As used in this application and in the claims, a list of items linked by the term "one or more of" may mean any combination of the listed items. For example, the phrase "one or more of A, B, and C" and the phrase "one or more of A, B, or C" may both mean A; B; C; A and B; A and C; B and C; or A, B, and C.

[0296] Those skilled in the art will appreciate from the foregoing description that the broad techniques of the embodiments can be implemented in a variety of forms. Therefore, although the embodiments have been described in conjunction with specific examples of the embodiments, the true scope of the embodiments should not be so limited, as other modifications will become apparent to those skilled in the art after studying the drawings, the specification, and the appended claims.

Claims

1. A method for generating an encoded video, the method comprising: analyzing encoding statistics of one or more previously encoded frames, wherein the previously encoded frames are generated by encoding frames in a video, wherein the encoding statistics correspond to a central fovea region of each previously encoded frame of the one or more previously encoded frames; determining one or more quantization parameters for a current frame in the video based on the encoding statistics of the one or more previously encoded frames; as well as The current frame is encoded using the one or more quantization parameters.

2. The method of claim 1, wherein: The encoding statistics indicate a number of bits used to encode each previously encoded frame of the one or more previously encoded frames.

3. The method of claim 1, wherein: Determining the one or more quantization parameters for the current frame includes: The one or more quantization parameters for the current frame are determined further based on a threshold quantization parameter.

4. The method of claim 1, wherein: Determining the one or more quantization parameters for the current frame includes: The one or more quantization parameters for the current frame are determined further based on a bandwidth or bit rate of a wireless connection used to stream the encoded video.

5. The method of claim 1, wherein: The one or more quantization parameters for the current frame include a first quantization parameter for a first portion of the current frame and a second quantization parameter for a second portion of the current frame, and the first quantization parameter is different from the second quantization parameter.

6. The method of claim 1, wherein: Encoding the current frame using the one or more quantization parameters comprises: The current frame is encoded using the one or more quantization parameters and a hardware encoder.

7. The method of claim 1, wherein: The encoded video is used in a virtual reality system.

8. A machine-readable medium comprising instructions which, when executed by at least one processor, cause the processor to perform the method of any one of claims 1 to 7.

9. An apparatus comprising means for performing the method as claimed in any one of claims 1 to 7.

10. A computer program product comprising instructions which, when executed by at least one processor, cause the processor to perform the method of any one of claims 1 to 7.