A method, system and medium for video encoding and decoding
Region of interest (ROI) decoding is implemented in video processing through temporal downsampling technology, which solves the problems of reduced image quality and system complexity outside the ROI in the existing technology, improves encoding and decoding efficiency, and is suitable for non-rectangular ROI and Multiple ROIs.
Patent Information
- Application Number
- CN202080078511.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-19
- Filing Date
- 2020-10-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-10-20
AI Technical Summary
Existing region of interest (ROI) decoding technology has the disadvantage of reducing background image quality in video processing, and non-rectangular image processing is complex. Traditional methods require multiple encoder and decoder instances, increasing system complexity.
Temporal down-sampling technology is adopted to reduce the encoding bit count by eliminating information from image frames or parts thereof, and perform temporal up-sampling on the decoder side to reconstruct the original image, achieving faster encoding and decoding processes while allowing the ROI size to be changed and position, applicable to non-rectangular ROIs and multiple ROIs.
Effectively reducing the bit count of encoding and transmission, increasing encoding speed, reducing bandwidth requirements, and simplifying system complexity, maintaining the detail fidelity of ROI.
Smart Images

Figure CN115053047B_ABST
Abstract
Description
Technical Field
[0001] Aspects of the present disclosure relate to digital image encoding and decoding. In particular, the present disclosure relates to region of interest coding. Background Art
[0002] In video processing, region of interest (ROI) coding generally refers to the process of improving the visual quality of a selected portion of a video frame relative to the rest of the video frame. ROI coding can be used to reduce bandwidth and ensure that visual fidelity in important parts of a scene is maintained during network congestion.
[0003] Traditional ROI decoding involves manipulating the quantization parameter (QP) during encoding so that a lower QP is used for the area inside the ROI and a higher QP is used for the rest of the area. This results in reducing the bit share of the area outside the ROI, which in turn reduces the picture quality of the background. Although this method can reduce the bit rate, it does not speed up the encoding process because the method does not reduce the number of pixels processed.
[0004] Some existing non-uniform resampling methods apply the transform function to the entire image, which may produce non-rectangular images that are not suitable for popular image and video compression standards. To decode non-rectangular pixel arrangements, a rectangular bounding box with padded pixels is used, and then the padded rectangular image is compressed using traditional methods. This is also suboptimal because the encoder may need to process padded pixels that will not be displayed.
[0005] Other approaches might use two separate bitstreams, one for the ROI and another for the background. The background can be downsampled to a lower resolution to reduce encoding time. The final image is generated by blending the ROI over the background. The disadvantage of this approach is that two encoder instances are required to generate the two bitstreams. On the display side, two decoder instances are required and additional synchronization is required, which adds complexity.
[0006] It is against this background that aspects of the present disclosure are presented. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1A A method for encoding with temporal downsampling or motion information according to aspects of the present disclosure is shown.
[0008] Figure 1B is a graphical depiction of a method for encoding with temporal downsampling or motion information according to aspects of the present disclosure.
[0009] Figure 2 A method for decoding a temporally downsampled image stream according to aspects of the present disclosure is depicted.
[0010] Figure 3AAn alternative approach for temporal downsampling according to aspects of the present disclosure is depicted.
[0011] Figure 3B A method for temporal downsampling of frame rates according to aspects of the present disclosure is graphically depicted.
[0012] Figure 3C Another implementation of temporal down-sampling according to aspects of the present disclosure is graphically illustrated.
[0013] Figure 3D Another implementation with both temporal downsampling and multi-segment spatial downsampling according to aspects of the present disclosure is graphically depicted.
[0014] Figure 4A A method for decoding encoded temporally downsampled frames having downsampled frame rate information is depicted according to aspects of the present disclosure.
[0015] Figure 4B A method of decoding an encoded image frame that has been temporally downsampled to a frame rate is graphically depicted.
[0016] Figure 4C Another implementation of decoding an image frame that is temporally downsampled at a frame rate and includes information from a previous frame outside a ROI in an intermediate frame according to aspects of the present disclosure is graphically illustrated.
[0017] Figure 4D Another implementation of decoding a frame rate temporally downsampled image frame and a plurality of temporally downsampled frames according to aspects of the present disclosure is shown.
[0018] Figure 5A Graphs showing examples of how the temporal downsampling interval varies with frames having information blanked out according to distance from a region of interest, in accordance with aspects of the present disclosure.
[0019] Figure 5B Depicted are methods for further reducing encoded data size using gaze tracking according to aspects of the present disclosure.
[0020] Figure 6A Depicted is a motion information temporal downsampling process according to aspects of the present disclosure.
[0021] Figure 6B A frame rate temporal downsampling process according to aspects of the present disclosure is shown.
[0022] Figure 7 An example method for decoding temporally downsampled stream data with ROI parameters according to aspects of the present disclosure is shown.
[0023] Figure 8ADepicts an example of a deep pupil gaze tracking system that may be used in the context of the present disclosure.
[0024] Figure 8B Eye tracking for determining a region of interest is shown in accordance with aspects of the present disclosure.
[0025] Figure 9 Depicted is an example system for encoding or decoding with temporal downsampling according to aspects of the present disclosure. DETAILED DESCRIPTION
[0026] Introduction
[0027] The new method of performing ROI decoding uses temporal downsampling to reduce the bit count of the image during transmission without losing details in the ROI. The reduced bit count speeds up the encoding process to produce a compressed bitstream and reduces the bandwidth required to transmit the encoded image data. On the decoder side, the compressed bitstream is temporally upsampled during decompression to reconstruct the image as a close replica of the original image at the original resolution. The proposed method achieves ROI decoding while reducing the time required to perform encoding and significantly reducing the size of the compressed image stream.
[0028] As used herein, "temporal downsampling" refers to reducing the coded bit count of an image frame or a portion of an image frame during a time interval (referred to as the temporal downsampling interval) by eliminating information about the image frame or portion of an image frame used during compression. Additionally, as used herein, "temporal upsampling" refers to generating information of an image frame or portion of an image frame present in an encoded image during the temporal downsampling interval.
[0029] The proposed solution has several advantages over existing ROI decoding techniques. The proposed solution greatly reduces the bit count of the encoded input image during the temporal downsampling interval without losing details in the ROI, thereby achieving faster encoding. ROI decoding using the proposed solution can be performed using existing compression standards. Controlling the picture quality of the ROI and background by adjusting the QP can be avoided. ROI decoding using the proposed solution can be implemented using a single encoder instance. The proposed solution allows changing the ROI size and position between video frames. The proposed solution also allows controlling the picture quality difference between the ROI and the background. In addition, some aspects of the proposed solution can be extended to non-rectangular ROIs and multiple ROIs in the same image.
[0030] Method
[0031] Temporal downsampling as described above significantly reduces the bit count of a frame within the temporal downsampling interval. This allows for more efficient frame encoding and transmission. Combining temporal downsampling with ROI encoding allows for high fidelity or more accurate rendering of areas of the image that the viewer is looking at, while lower fidelity or less accurate rendering of areas that the viewer has poorer perception.
[0032] One method of temporal downsampling is to reduce motion information of regions outside the ROI. As an example and not by way of limitation, the motion information may include a motion vector, information identifying the picture to which the motion vector refers, a segment size covered by the motion vector, such as a block size, or some combination of two or more of these items.
[0033] Before describing the down / up sampling methods in detail, it is useful to briefly describe two examples of down / up sampling methods. The first method is referred to as in-loop down / up sampling in this article. According to this method, down sampling on the encoder side is part of the encoding loop, while up sampling on the decoder side is part of the decoding loop. In this method, the encoder omits or partially omits motion information for areas outside the ROI of the picture within the down sampling interval. The decoder upsamples the motion information before using the motion information to reconstruct the decoded pixels.
[0034] In the second method, the encoder encodes stationary pixels or omits pixels outside the ROI of the picture within the downsampling interval. Then, the decoder first decodes the compressed picture. After decompressing the picture, the decoder temporally upsamples the decoded pixels. Because downsampling occurs before encoding and upsampling occurs after decoding, downsampling and upsampling can be considered to occur outside the encoding / decoding loop. Therefore, this method is referred to as out-of-loop up / downsampling in this article.
[0035] Figure 1A A method for encoding with temporal in-loop down / up sampling of motion information according to aspects of the present disclosure is shown. ROI parameters related to, for example, the size, position, and shape of the ROI may be determined, as indicated at 101. As an example and not limitation, in the case of a rectangular ROI, these parameters may include an offset from each edge of the rectangular image to the corresponding ROI boundary, and the dimensions of the image and ROI, such as length and width. More information on determining ROI parameters, pixel offsets, and multi-segment spatial down sampling may be found in the following document: Krishnan et al., co-owned co-pending application Ser. No. 16 / 004,271, entitled FAST REGION OF INTEREST CODING USING MULTI-SEGMENT RESAMPLING, the contents of which are incorporated herein by reference.
[0036] Once the ROI parameters are determined, encoding of the image using the ROI parameters may begin, as indicated at 102. Image encoding is a multi-step process, as will be discussed in later sections. The multi-step process includes calculating motion information, such as motion vectors and related information for each image. The ROI parameters may be included in this encoding step to ensure that they are available during the decoding process. According to aspects of the present disclosure, the method may use the ROI parameters to determine the ROI and omit the calculation of motion information for areas outside the ROI in the temporal downsampling interval, as indicated at 103. According to aspects of the present disclosure, the start and end frames of the temporal downsampling interval may retain motion information for portions outside the ROI to ensure that motion information for other frames in the temporal downsampling interval may be regenerated. Additional frames within the temporal downsampling interval may retain their motion information outside the ROI, such as, but not limited to, areas with a large amount of motion information or areas with recognized motion patterns. Temporal downsampling simplifies motion prediction outside the ROI, thereby speeding up the encoding process. Some implementations may additionally use pattern recognition to eliminate some motion vectors and reduce the complexity of motion prediction for the encoder.
[0037] In some implementations, according to aspects of the present disclosure, the temporal downsampling interval may be included in the encoded image frame, as indicated at 104. After the encoding process is completed, the encoded image frame may be transmitted to a client, another memory location, or another device, as indicated at 105. Such transmission may involve, for example, a data bus within the device, a wide area network (WAN) such as the Internet, a local area network (LAN), or a personal area network (PAN) such as a Bluetooth network.
[0038] Figure 1B Graphically depict the above Figure 1A Method described. As shown, during the encoding process at 102, motion vectors for an image frame 112 are generated. In the simplified description shown, arrows represent motion vectors generated for each segment of the image, represented by a grid. Downsampling of the motion information at 103 can remove motion information from areas outside the ROI 113. Alternatively, motion information for areas outside the ROI can simply not be calculated during the encoding process (not shown). The data of the ROI 113 as shown can retain motion information, such as but not limited to motion vectors. Motion information for one or more areas outside the ROI for a picture stream can be removed at a temporal downsampling interval. The start picture 115 and the end picture 116 of the temporal downsampling interval can retain their motion information, while the motion information of all other intermediate pictures 114 is omitted, such as not calculated or removed.
[0039] The information describing the temporal downsampling interval may be encoded together with the picture or separately at 104. In an alternative embodiment, the temporal downsampling information may be encapsulated with the coded picture in, for example but not limited to, Network Abstraction Layer (NAL) coding.
[0040] In some alternative implementations according to aspects of the present disclosure, the temporal downsampling interval may be a fixed interval selected to minimize the encoding delay and bandwidth required to transmit the encoded image without losing quality. In such implementations, both the encoder and the decoder may simply retain the temporal downsampling interval without transmitting the temporal downsampling interval information between the devices. In other implementations, the temporal downsampling interval may be variable, and thus the encoder may include some temporal downsampling information with the encoded picture data. In yet another implementation, the temporal downsampling interval information may simply be a preset interval known to the decoder. In some implementations, the temporal downsampling interval may depend on the distance of the zone relative to the ROI. There may be multiple zones of the image around the ROI. Zones closer to the ROI may require smaller downsampling intervals than zones farther away from the ROI.
[0041] Figure 2 A method for decoding a temporally downsampled image stream according to aspects of the present disclosure is depicted. Initially, an encoded image stream may be received over a network at a device, as indicated at 201. In some implementations, the image stream may include temporally downsampled intervals encoded within the image stream or as a separate transmission. As indicated at 202, the device may begin decoding the image stream. As part of the decoding process, the temporal downsampled intervals may be entropy decoded and used later in the process.
[0042] In a normal decoding process, the encoded motion information, such as motion vectors, is decoded and used to reconstruct the macroblock motion within the image. Due to the temporal downsampling process using motion information, motion information outside the ROI does not exist for the frames within the temporal downsampling interval. Therefore, the omitted motion information outside the ROI must be generated or reconstructed 203. The generation of motion information can be performed using interpolation. According to aspects of the present disclosure, the start image and the end image in the temporal downsampling interval retain their motion information. The device can interpolate between the motion information of the start frame and the motion information of the end frame to generate interpolated motion information for each frame in the temporal downsampling interval. In some implementations, several start and end frames within several temporal downsampling periods can be interpolated to generate motion information. In other implementations, additional motion information during the temporal downsampling interval, such as in areas with a large amount of motion information, can be used during interpolation to more accurately regenerate information. Interpolation can be any interpolation method known in the art, such as but not limited to linear interpolation, polynomial interpolation, or spline interpolation.
[0043] After generating motion information for the frames in the temporal downsampling interval, the motion information is applied to corresponding frames lacking motion information in regions outside the ROI, as indicated at 204. The frames in the temporal downsampling interval with the generated motion information can then be further processed during decoding to generate a fully decoded and reconstructed image. Data corresponding to the fully decoded image can be stored in a memory or storage device, transmitted over a network or sent to a display device and displayed on the display device, as indicated at 206.
[0044] Figure 3A Describe an alternative method for temporal downsampling according to aspects of the present disclosure. As previously described, ROI parameters related to the size, position and shape of the ROI are determined at 301. The ROI is positioned using the ROI parameters, and the frame rate of one or more regions outside the ROI is reduced at 302. Here, the frame rate can refer to the frequency of raw pixels, typically the rate at which non-repeated chrominance and luminance information can be obtained. As an example and not as a limitation, the chrominance and luminance information for macroblocks outside the ROI can be changed to null values, thereby eliminating the image information of those macroblocks. In another example, the chrominance and luminance information of pixels outside the ROI is copied from a previous frame. In addition, the temporal downsampling interval can be used to determine which frames to discard. According to aspects of this embodiment, it can be the frame rate of one or more regions outside the ROI or a multiple of the frame rate.
[0045] The image frame with the reduced frame rate in one or more regions outside the ROI is then fully encoded using an image encoding method at 303, which will be discussed in a later section. Encoding the temporally downsampled image frame may include at least entropy decoding.
[0046] In some alternative implementations, in accordance with aspects of the present disclosure, the temporal downsampling interval may be included as metadata and encoded with each image frame, or included in and encoded with the image stream, as indicated at 304. In other implementations, the temporal downsampling interval information may be sent as data separate from the image stream or included as encoded data in a network abstraction layer.
[0047] Finally, the encoded temporally downsampled image may be transmitted to the device at 305, either over a network or from a cache to a memory.
[0048] Figure 3BThe above method for temporal downsampling of frame rates according to aspects of the present disclosure is graphically depicted. A picture with a ROI can have the frame rate of the portion outside the ROI reduced, as described above with respect to 302. As shown, after reducing the frame rate outside the ROI, the ROI 312 maintains the same frame rate, while the area 313 outside the ROI 312 is eliminated. The temporal downsampling interval specifies the number of frames that retain chrominance and luminance information in one or more regions around the ROI. As described above, the start frame 314 and the end frame 316 in the temporal downsampling interval retain their chrominance and luminance information, while the intermediate frame 315 only has the chrominance and luminance information of the ROI. The picture with the reduced frame rate in one or more regions outside the ROI is then further encoded at 303. The temporal downsampling interval information can be encoded with the picture or packaged with the picture as part of the NAL encoding at 304. After encoding, the encoded package can be transmitted to another device or another location on an encoding device such as a storage device or memory.
[0049] Figure 3C Another implementation of temporal downsampling according to aspects of the present disclosure is shown. In the illustrated implementation, a previous frame 321, an intermediate frame 322, and a final frame 323, each having ROIs 324, 325, 326, are used for a temporal downsampling operation. In this operation, instead of eliminating the chrominance and luminance information outside the ROI from the intermediate frame 322, the chrominance and luminance information from the previous frame 321 is simply repeated 327. In addition, the ROI position is moved from the previous frame 324 to the intermediate frame 325. During temporal downsampling, the chrominance and luminance information in the ROI of the previous frame 324 is combined with the chrominance and luminance information of the intermediate frame 325 to generate missing information for an area 328 outside the ROI 329 in the downsampled intermediate frame. The chrominance and luminance values in the ROI replace any chrominance and luminance values that may appear from outside the ROI in the previous frame. Figure 3C and Figure 3D The pattern shown in represents the original chrominance and luminance information of the frame, wherein the new pattern represents the new chrominance and luminance information. After temporal downsampling, the frame can be encoded.
[0050] Figure 3DAnother implementation with both temporal downsampling and multi-segment spatial downsampling is depicted. In the illustrated implementation, a previous frame 331, an intermediate frame 332, and a final frame 333, each having ROIs 334, 335, 336, are used for a temporal downsampling operation. In this operation as before, instead of eliminating the chrominance and luminance information outside the ROI from the intermediate frame 332, the chrominance and luminance information outside the ROI from the previous frame 331 is replicated in the temporally downsampled intermediate frame 337. After multi-segment downsampling in the previous frame 337, the intermediate frame 340, and the final frame, the area outside the ROI is reduced due to the multi-segment downsampling operation. In addition, as shown, the ROI position is moved from the previous frame 324 to the intermediate frame 325. During temporal downsampling and multi-segment downsampling, the chrominance and luminance information in the ROI of the previous frame 334 is combined with the chrominance and luminance information of the intermediate frame 335 to generate missing information for the area 339 outside the ROI 335 in the downsampled intermediate frame. The chrominance and luminance values in the ROI replace any chrominance and luminance values that may have appeared from outside the ROI in the previous frame. Multi-segment downsampling is not applied to segment frames containing ROIs, so the spatial resolution of the previous ROI 339 position in the intermediate frames is preserved. After temporal downsampling and multi-segment downsampling, the frame can be encoded.
[0051] Figure 4A A method for decoding an encoded temporally downsampled frame having downsampled frame rate information is depicted. Initially, a device may receive an encoded image frame transmitted over a network from another device or from another portion of the device, as indicated at 401 .
[0052] As indicated at 402, the encoded temporally downsampled image may be decoded according to methods discussed in later sections or according to any method for encoding an image frame.
[0053] During decoding, temporal upsampling may be applied to frames within a temporal downsampling interval, as indicated at 403. Frame rate temporal upsampling may be applied to frames having pixel information repeated with previous frames or lacking color or other image information due to temporal downsampling to generate images of temporal downsampling frames. As an example and not as a limitation, one method of temporal upsampling is to interpolate an area outside the ROI of a start frame in a temporal reduction interval with an area outside the ROI of an end frame in a temporal reduction interval. Unlike the above-described embodiments regarding motion information, in the current embodiment, image information such as color information or chromaticity and brightness information of one or more regions is interpolated. As discussed above, the interpolation method may be any method known in the art, such as but not limited to optical flow, linear interpolation, polynomial interpolation, or spline interpolation. Such interpolation may be viewed as a reconstruction of an image in one or more regions outside the ROI, or a reconstruction of a synthetic image created in one or more regions outside the ROI created by interpolation. In some implementations, interpolation may be replaced by simply repeating the previous frame to save computational cycles.
[0054] Optical flow is a per-pixel prediction that estimates how the brightness of a pixel moves across the screen over time. Optical flow assumes that the characteristics of a pixel (e.g., chrominance or brightness value) at a given time t are the same at a later time t+Δt but at a different location, where the change in location is predicted by the flow field. Optical flow is a more accurate but slower interpolation process. Optical flow is described in detail in "What is Optical Flow and why does it matter in deep learning" by Mark Gituma, which is incorporated herein by reference and a copy of which can be accessed at the following URL:
[0055] https: / / medium.com / swlh / what-is-optical-flow-and-why-does-it-matter-in-deep-learning-b3278bb205b5.
[0056] Interpolation of the start and end images of the temporal downsampling interval may be used to create multiple composite images. These composite images are combined with non-composite images in the ROI so that their information is preserved during encoding, as indicated at 404. Reconstructing one or more regions outside the ROI of a frame in the temporal downsampling interval effectively increases the frame rate of the image region because more chrominance and luminance information is available for display in the reconstructed region.
[0057] Once the frames in the temporal downsampling interval have been regenerated, they may be stored in a storage device for later use 405. Alternatively, the regenerated frames may be stored in a display buffer for display on a display device or sent to a display device. In another implementation, the regenerated frames may be stored and sent to a remote display device, such as a television.
[0058] Figure 4B A method of decoding an encoded image frame that has been temporally downsampled to a frame rate is graphically depicted. During decoding, images with chrominance and luminance information outside of the ROI 411 and images with chrominance and luminance information only in the ROI 412 are decoded. The chrominance and luminance information is reconstructed at 403 using interpolation as described above for pictures that lack chrominance and luminance information in areas outside the ROI 412. ROI parameters are used to guide the placement of the ROI 413 within the generated image. The reconstructed images are then inserted into their appropriate locations in the image stream using temporal downsampling interval information 414.
[0059] Figure 4C A method for decoding an image frame is shown, the image frame being temporally downsampled at a frame rate and including information from a previous frame outside an ROI in an intermediate frame. The temporally downsampled picture may be initially encoded with a known encoding method, such as, but not limited to, AVC / H.264, HEVC / H.265, etc., as generally described in later sections. The decoded image frame may include an initial image frame 421, an intermediate image 427, and a final image frame 423. The image frame may contain an ROI that moves during the rendering process. As shown, the previous frame has an ROI 424, the intermediate frame has an ROI 429, and the final frame has an ROI 426. The intermediate frame is spatially downsampled during the encoding process, and in this implementation, the chrominance and luminance values outside the ROI are copied from the area outside the ROI of the previous frame. In addition, because the position of the ROI 429 of the intermediate frame 427 is moved, the chrominance and luminance information from the ROI 424 of the initial frame 421 is used to fill the area outside the ROI 428 of the intermediate frame.
[0060] The chroma and luminance information of the area outside the ROI can be reconstructed during decoding by temporal upsampling. Temporal upsampling can interpolate the chroma and luminance values of the area outside the ROI 425 in the intermediate frame 422 within the temporal downsampling interval 430. In the example shown, the chroma and luminance values of the area outside the ROI of the initial frame 421 and the final frame 423 are interpolated to create the chroma and luminance values of the area outside the ROI 425 of the intermediate frame 422. Because the ROI moves from the previous frame 421 to the final frame 426, the chroma and luminance values in the ROI of the previous frame 424 and the final frame 426 can be used during interpolation to reconstruct the area outside the ROI in the intermediate frame. The area that is part of the ROI in the previous frame and used during interpolation will not be spatially upsampled in the intermediate frame to maintain the correct frame size. Information about the location of the ROI and the temporal downsampling interval can be stored in the metadata of the image frame or as separately transmitted data.
[0061] Figure 4D A method for decoding image frames and multi-segment spatial downsampled frames that have been temporally downsampled at a frame rate is shown. Temporally and spatially downsampled pictures may be initially encoded with a known encoding method, such as but not limited to AVC / H.264, HEVC / H.265, etc., as generally described in later sections. The decoded image frame may include a spatially downsampled initial image frame 437, an intermediate image 438, and a final image frame 440. As shown, due to multi-segment spatial downsampling, the decoded image frame is smaller than the source image frame. The image frame may include an ROI that moves during the rendering process. As shown, the previous frame has an ROI 434, the intermediate frame has an ROI 435, and the final frame has an ROI 436. The intermediate frame is spatially downsampled during the encoding process, and in this implementation, the chrominance and luminance values outside the ROI are copied from the area outside the ROI of the previous frame. Additionally, because the position of the ROI 435 of the intermediate frame 438 is moved, the chrominance and luminance information from the ROI 434 of the initial frame 437 is used to fill the area outside the ROI 439 of the intermediate frame.
[0062] The chroma and brightness information of the area outside the ROI can be reconstructed during decoding by temporal upsampling and multi-segment spatial upsampling. Spatial upsampling can use the position of the ROI in each image frame and interpolate between adjacent pixels in the area outside the ROI to generate an upsampled image frame. In some implementations, the ROI may not undergo interpolation during spatial upsampling because its size and position are fixed by the ROI parameters. Temporal upsampling can interpolate the chroma and brightness values of the area outside the ROI 435 in the intermediate frame 432 within the temporal downsampling interval 430. In the example shown, the chroma and brightness values of the area outside the ROI of the initial frame 431 and the final frame 433 are interpolated to create the chroma and brightness values of the area outside the ROI 435 of the intermediate frame 432. Because the ROI moves from the previous frame 431 to the final frame 436, the chroma and brightness values in the ROI of the previous frame 434 and the final frame 426 can be used to reconstruct the area outside the ROI in the intermediate frame during interpolation. Information about the location of the ROI and the temporal downsampling interval can be stored in the metadata of the image frame or as separately transmitted data. According to aspects of the present disclosure, interpolation can be used to generate missing information in the frame that occurs during the temporal downsampling interval. Many different interpolation techniques are known, including linear interpolation, polynomial interpolation, and spline interpolation. In general, interpolation generates an equation for a curve or line that fits the connection between two or more data points and allows other data points to be generated using the curve.
[0063] According to another aspect of the present disclosure, the temporal downsampling interval may not be fixed throughout the image frame. The temporal downsampling interval may vary depending on the position within the image frame. Figure 5A As shown in , for example but not limited to, the temporal downsampling interval may be smaller close to the ROI and larger away from the ROI within the frame. Figure 5A Graphs are shown that depict how the temporal downsampling interval varies with frames having information extinguished with distance from the region of interest, in accordance with aspects of the present disclosure. In the linear case, it is shown that regions close to the ROI have frames with less extinguished information than regions far from the ROI. Additionally, the variation in the temporal downsampling interval as the distance from the ROI increases may be, for example, but not limited to, Figure 5A Linear, exponential, or S-shaped as shown in .
[0064] Low-pass Filtering During Saccades
[0065] According to aspects of the present disclosure, the transmission bandwidth can be further reduced by filtering the image during a glance. When a user blinks, the eyelids close the visual information of the user's eyes in the form of light. The human eye also exhibits rapid eye movements, which are called glances. A phenomenon called glance masking occurs during a glance. Saccade masking causes the brain to suppress visual information during eye movement. There is a relatively large variation in the duration of a glance or blink. For example, a glance usually lasts 20 to 200ms. This corresponds to 2 to 25 frames at a frame rate of 120 frames per second (fps). Even if it takes 10ms to detect the start of a glance, and the glance only lasts 20ms, the graphics system can save a frame, such as not rendering to reduce calculations or turning off the display to save power or both. A blink usually lasts about 100ms to about 150ms, which is enough time for 12 to 18 frames at 120fps.
[0066] Figure 5B Describe the method for further reducing the size of the encoded data using gaze tracking according to aspects of the present disclosure. The determination of ROI parameters may include the detection or prediction of a blink or a saccade 501. The gaze tracking information or image information used to determine the ROI parameters may be analyzed to detect the beginning of a saccade or a blink and predict its duration. For example, the beginning of a saccade may be related to the rotation speed and / or acceleration of the eye. The beginning of a blink may be related to the movement of the eyelid, as determined by analyzing the image or electrophysiological information collected by the sensor. As an example and not limitation, the duration of a saccade may be estimated based on the measured rotation speed of the eye obtained from gaze tracking and the known correlation between the rotation speed and the duration of the saccade. For example, the duration of a saccade masking tends to increase with the increase in the rotation speed of the eye at the beginning of the saccade. For more information on blink and saccade detection and processing operations, see U.S. Patent No. 10,372,205 to Young et al.
[0067] In response to blinking or panning, the device can apply a low pass filter to the image comprising the ROI during encoding, as indicated at 502. The device can synchronize the application of the low pass filter with the panning so that the image frame that occurs during the panning has applied the low pass filter, and the image frame that does not occur during the panning has not yet applied the low pass filter. Applying the low pass filter to the image frame can reduce the number of bits required for encoding the image frame. The cut-off and decay of the low pass filter can be selected to reduce the bit count of the encoded image. After the low pass filter is applied to the image frame that is determined to occur synchronously with the panning of the user, the image frame is fully encoded, as indicated at 503.
[0068] After encoding, the resulting encoded image data may be transmitted 504 to a client device, for example but not limited to, over a network or from a cache to a memory or to another device over a personal area network.The above aspects may be applied in conjunction with temporal downsampling to reduce the encoded image size.
[0069] Encoding
[0070] like Figure 6A The motion vector temporal downsampling encoding process shown in initially begins with unencoded image frame data 601, which may be generated by the system or received from some other source. The system uses a prediction algorithm, gaze tracking device, or other such method or apparatus to parse ROI parameters 612. The ROI parameters 612 are used with the digital picture set 601 to perform motion vector temporal downsampling at 613. The ROI parameters are saved and encoded, as indicated at 608 or otherwise included in the decoded picture data 611. It should be understood that each frame or picture in the digital picture set may have its own ROI parameters and that the ROI parameters may change from frame to frame or from picture to picture. Likewise, in some embodiments, the digital picture set may be, but is not limited to, a still image.
[0071] Uncoded digital picture data 601 can be encoded in a normal manner. As an example and not a limitation, digital data can be encoded according to a general method 600. The encoder receives data corresponding to a plurality of digital images 601 and encodes the data of each image. The encoding of the digital picture data 601 can be performed section by section. The encoding process of each section can optionally involve padding 602, image compression 604, and pixel reconstruction 606. In order to facilitate the common processing flow of pictures for intra-frame decoding and inter-frame decoding, all undecoded pixels within the currently processed picture 601 can be filled with temporary pixel values to generate a padded picture, as indicated at 602. The filling can continue, for example, as described above in U.S. Patent No. 8,711,933, which is incorporated herein by reference. The padded picture can be added to a reference picture list 603 stored in a buffer. Padding the picture at 602 helps to use the currently processed picture as a reference picture in subsequent processing during image compression 604 and pixel reconstruction 606. Such filling is described in detail in commonly assigned US Pat. No. 8,218,641, which is incorporated herein by reference.
[0072] As used herein, image compression refers to the application of data compression to digital images. The purpose of image compression 604 is to reduce the redundancy of the image data of a given image 601 so that the data of the image can be stored or transmitted in an effective form of compressed data. Image compression 604 can be lossy or lossless. Lossless compression is sometimes more suitable for artificial images, such as technical drawings, icons or cartoons. This is because lossy compression methods introduce compression artifacts when used, especially at low bit rates. For high-value content, such as medical images or image scans performed for archiving purposes, lossless compression methods may also be preferred. Lossy methods are particularly suitable for natural images, such as photos in applications where a small (sometimes imperceptible) loss of fidelity can be accepted to achieve a significant reduction in bit rate.
[0073] Examples of lossless image compression methods include, but are not limited to, run-length encoding used in GIF and TIFF (used as the default method in PCX and as one possible method in BMP, TGA, TIFF, entropy coding, adaptive dictionary algorithms such as LZW), and deflation used in PNG, MNG, and TIFF. Examples of lossy compression methods include reducing the color space of picture 604 to the most common colors in the image, chroma subsampling, transform coding, and fractal compression.
[0074] In color space reduction, the selected colors can be specified in a palette in the header of the compressed image. Each pixel simply references an index of a color in the palette. This method can be used in conjunction with dithering to avoid color separation. Chroma subsampling takes advantage of the fact that the eye perceives brightness more acutely than color by discarding half or more of the chroma information in the image. Transform coding is probably the most commonly used image compression method. Transform coding typically applies a Fourier-related transform, such as a discrete cosine transform (DCT) or a wavelet transform, followed by quantization and entropy coding. Fractal compression relies on the fact that in some images, some parts of the image are similar to other parts of the same image. Fractal algorithms convert these parts, or more accurately geometric shapes, into mathematical data called "fractal codes" that are used to recreate the encoded image.
[0075] Image compression at 604 may include region of interest coding, where certain portions of image 601 are encoded at a higher quality than other portions. This may be combined with scalability, which involves encoding certain portions of the image first and then encoding other portions. The compressed data may contain information about the image (sometimes referred to as meta-information or metadata), which may be used to categorize, search, or browse the image. Such information may include color and texture statistics, small preview images, and author / copyright information.
[0076] As an example and not limitation, during image compression at 604, the encoder may search for the best way to compress a block of pixels. The encoder may search all reference pictures in the reference picture list 603, including the current padded picture, for a good match. If the current picture (or sub-segment) is decoded as an intra picture (or sub-segment), only the padded pictures in the reference list are available. The image compression at 604 produces motion vectors MV and transform coefficients 607, which are then used with one or more reference pictures (including the padded picture) during pixel reconstruction at 606.
[0077] Image compression 604 typically includes a motion search MS for the best inter prediction match, an intra search IS for the best intra prediction match, an inter / intra comparison C for deciding whether the current macroblock is to be inter-coded or intra-coded, and subtracting S original input pixels from the segment coded with the best matching prediction pixels to calculate lossless residual pixels 605. The remaining pixels then undergo a transform and quantization XQ to produce transform coefficients 607. The transform is typically based on a Fourier transform, such as a discrete cosine transform (DCT).
[0078] The transform outputs a set of coefficients, each of which is a weighted value of a standard basis pattern. When combined, the weighted basis patterns recreate a block of residual samples. The output of the transform (block of transform coefficients) is quantized, i.e., each coefficient is divided by an integer value. Quantization reduces the precision of the transform coefficients according to the quantization parameter (QP). Typically, the result is a block where most or all coefficients are zero and a few coefficients are non-zero. Setting the QP to a high value means that more coefficients are set to zero, resulting in high compression, but at the expense of poor decoded image quality. For low QP values, more non-zero coefficients are retained after quantization, resulting in better decoded image quality but lower compression ratio. Conversely, for high QP values, fewer non-zero coefficients are retained after quantization, resulting in higher image compression ratio but lower image quality.
[0079] The inter / intra comparison C, also called mode decision, uses a parameter called the Lagrange multiplier λ that is related to the QP. The cost function J is calculated using the λ value determined from the value of the QP. The coding mode is determined based on whether the calculated cost function J for inter mode coding is higher or lower than the calculated cost for intra mode coding. For example, the H.264 / AVC codec supports the cost function J H , the cost function should minimize the cost function by calculating the actual bit consumption R for encoding the overhead of the segment (e.g., motion vector, type) and the reconstruction distortion D (e.g., as the absolute difference and SAD between the original segment and the reconstructed area). In this case, the cost function J is calculated according to the following formula H :
[0080] J H =D+λ·R.
[0081] In alternative implementations, the distortion D may be calculated differently. There are many ways to represent distortion, such as sum of squared differences (SSD), sum of absolute transformed differences (SATD), mean absolute difference (MAD), etc. Those skilled in the art will recognize that for different distortion measures, the cost function must be modified or rescaled accordingly.
[0082] In some cases, incorrect coding mode decisions can trigger unnecessary IDR or I frame insertion. Consider the example of streaming video during an online video game. The encoder attempts to meet a target bit rate for the video stream generated by the gaming application. The target bit rate is related to the number of bits per frame. If the game is paused, the video is essentially a stream of still frames. For still frames, the QP is low to meet the target bits for the frame during rate-distortion optimization. When the QP is low, the mode decision selects intra-coding for most segments (e.g., macroblocks) in the still frame. If the number of intra-coded segments in a frame is above a threshold, the codec triggers scene change detection and decodes the next frame as an intra-frame with a very low QP, which requires a large number of bits to encode. This is because extremely low values of QP (e.g., QP=1, 2) in this case mean almost lossless decoding. As an example and not by way of limitation, the threshold for triggering scene change detection can be approximately 60% to 80% of intra-frame MBs in a frame. Even if the same frame is repeated, a series of still frames will result in a series of scene change detections. In bandwidth-limited communication channels, intra-frame sequences may cause large and frequent spikes in bit rate usage.
[0083] Typically the relationship between λ and QP is fixed by the codec and is the same for all pictures. According to aspects of the present disclosure, the relationship between λ and QP can be adjusted between pictures according to the number of bits per partition in the picture.
[0084] According to aspects of the present disclosure, the relationship between λ and QP may be adjusted based on the number of bits per partition so that coding mode decisions may be configured in a manner that reduces the likelihood of unnecessary IDR or I-frame insertions.
[0085] According to aspects of the present disclosure, the relationship between λ and QP can be selectively adjusted during encoding, for example, at the beginning of encoding of a video stream or at the beginning of each video frame in a stream, in a manner that makes it more likely that a segment coding mode decision will result in an "inter" coding decision rather than an "intra" coding mode.
[0086] In some implementations, one can even change the λ vs. QP relationship for each segment if, for example, there are different size segments in a frame as is possible in H.265. This may be beneficial, for example, in a two-pass encoding use case, since the first pass will provide more details about the picture segment content, allowing better coding mode decisions to be made.
[0087] By way of example and not limitation, the adjustment of the relationship between λ and QP may depend on the number of bits in a segment (NBS), which typically depends on a target bit rate (e.g., in bits per second), a frame rate (e.g., in frames per second), and the number of segments in a frame. The number of bits in a segment NBS may be calculated by dividing the target bit rate BR by the product of the frame rate FR and the number of segments per frame (NSF). By way of example and not limitation, this may be expressed as:
[0088] NBS = BR / (FR NSF)
[0089] More generally, the number of bits per segment (NBS) can be more broadly expressed as
[0090] NBS = (BPF) / (NSF), where BPF is the target number of bits per frame.
[0091] This extended expression allows that the value of NBS may differ between frames, depending on, for example, the target bits allocated by the underlying rate control scheme.With a fixed target number of bits per frame, BPF becomes BR / FR.
[0092] The number of segments per frame (e.g., MB) depends on the resolution. Changes to the table can be triggered by a combination of resolution, frame rate, and bit rate. For example, a table change will be triggered for a frame with 960×540 resolution, a frame rate of 30fps, and a target rate of 8 to 10Mbps or higher. For a given bit rate and frame rate, if the resolution increases, it is less likely that a table change will be triggered. For a given bit rate and resolution, if the frame rate increases, it is less likely that a table change will be triggered. For a given resolution at a frame rate, if the bit rate decreases, it is less likely that a table change will be triggered.
[0093] The relationship between λ and QP is generally non-linear. Typically, when QP is high, λ is high, and when QP is low, λ is low. An example of the relationship between λ and QP is described in U.S. Patent 9,386,317, the entire contents of which are incorporated herein by reference.
[0094] The QP value can be adjusted based on the target bit rate. Since QP controls the bit usage in encoding, many encoding programs use a rate controller to adjust the QP to obtain the desired bit rate. The encoder receives uncompressed source data (e.g., input video) and produces a compressed output. Video decoding methods typically use QP values that affect bit usage to encode video segments, thereby affecting the bit rate. Typically, a lower QP results in a higher bit rate. The rate controller determines the QP value based on the desired bit rate that can be specified by an external application. The encoder uses the QP value determined by the rate controller and determines the actual bit usage and bit rate generated. The rate controller can use the actual bit rate to adjust the QP value in the feedback loop.
[0095] The relationship between bit rate and QP value depends in part on the complexity of the image. The relationship between bit rate and QP can be represented by a set of curves, with different curves for different levels of complexity. The core of the algorithm implemented by the rate controller is a quantitative model that describes the relationship between QP, the actual bit rate and some complexity measure. The relevant bit rate and complexity are usually only related to the difference between the source pixels and the predicted pixels (usually called the residual), because the quantization parameter QP may only affect the details of the information carried in the transformed residual.
[0096] Complexity usually refers to the amount of spatial variation within a picture or part of a picture. At a local level, such as the block or macroblock level, spatial variation can be measured by the variance of pixel values within the relevant segment. However, for video sequences, complexity can also be related to the temporal variation of the scene of the image sequence. For example, a video sequence consisting of an object with significant spatial variation that slowly translates across the field of view may not require many bits because temporal prediction can easily capture the motion using a single reference picture and a series of motion vectors. Although it is difficult to define an inclusive video complexity measure that is also easy to calculate, the mean difference (MAD) of the prediction error (the difference between the source pixel value and the predicted pixel value) is often used for this purpose.
[0097] It should be noted that the quantization parameter QP may be determined by a number of factors, including but not limited to the picture type of the source picture, the complexity of the source picture, the estimated target number of bits, and the underlying rate-distortion model. For example, the QP may be determined on a segment-by-segment basis using the variation of the segments of the current coded picture, such as the segment (e.g., MB) variance. Alternatively, the actual bit count used to encode the same position segment (e.g., MB) in the previous frame may be used to determine the QP of the current coded segment. Examples of such QP level calculations are described, for example, in commonly assigned U.S. Patent Application Publication No. 2011 / 0051806, now U.S. Patent No. 8,879,623 to Hung-Ju Lee, which is incorporated herein by reference.
[0098] Motion search and prediction depend on the type of picture being encoded. Referring again to FIG. 6 , if an intra picture is to be decoded, motion search MS and inter / intra comparison C are turned off. However, in an embodiment of the present invention, these functions are not turned off because filler pictures can be used as references. Therefore, the image compression at 604 is the same for intra-frame decoded pictures and inter-frame decoded pictures.
[0099] The motion search MS can generate a motion vector MV by searching for the best matching block or macroblock for motion compensation in the picture 601, which is usually performed as part of the pixel reconstruction of the inter-frame decoding picture. If the current picture 601 is an intra-frame decoding picture, in contrast, the existing codecs usually do not allow prediction across pictures. In contrast, for intra-frame pictures (e.g., I frames) and pictures decoded by generating transform coefficients and performing pixel prediction, all motion compensation is usually turned off. However, in some implementations, intra-frame pictures can be used to perform inter-frame prediction by matching a segment in the current picture with another offset segment in the same picture. The offset between the two segments can be decoded as a motion vector MV', which can be used for pixel reconstruction at 606. For example, the encoder can try to match a block or macroblock in the intra-frame picture with some other offset segment in the same picture, and then decode the offset between the two as a motion vector. The "intra-frame" picture can then be motion vector compensated using the normal motion vector compensation of the codec for the "inter-frame" picture. Some existing codecs have functions that can convert the offset between two blocks or macroblocks into a motion vector, which can then be used for pixel reconstruction at 606. However, these functions are traditionally turned off for encoding intra pictures. In an embodiment of the present invention, the codec can be instructed not to turn off this "inter" picture function for encoding intra pictures.
[0100] According to aspects of the present disclosure, motion information, such as motion vectors MV and MV', may be omitted from one or more regions outside of the ROI 613 in each picture. The ROI parameters 612 may be used to determine the position of the ROI within the image frame. If both intervals are constant, it is desirable to synchronize the interval used to generate intra pictures (the "intra interval") with the temporal downsampling interval. For example, the intra interval may be divisible by the downsampling interval. If intra pictures are inserted as a result of scene change detection, the intra interval may not be constant. In this case, intra picture decisions may be made independently of the downsampling interval.
[0101] Typically, the encoder encodes only the difference between the previously encoded motion vector and the current motion vector. The decoder can then use the differential motion vector and the previous motion vector to reconstruct the current motion vector. According to aspects of the present disclosure, if it is determined that the frame is within the temporal downsampling interval, the differential motion vector is not simply generated for the area outside the ROI. The previously encoded motion vector can be used instead to reconstruct the area outside the ROI. In addition, the corresponding reference picture can have a corresponding one or more areas outside the ROI that are blanked by replacing with null values. Therefore, the amount of information to be reconstructed 606 is reduced. In addition, the temporal downsampling interval 612 can be used to determine which pictures omit motion information. In an alternative embodiment, instead of blanking the motion vector 613 after calculation, the motion vector 606 for one or more areas outside the ROI is not simply generated during motion compression, and the reference picture in this alternative embodiment has one or more areas outside the ROI blanked at 613 before being sent to pixel reconstruction. If the encoder decides to blank the area outside the ROI, no motion vector and DCT coefficient are generated.
[0102] The temporal downsampling interval according to aspects of the present disclosure starts and ends in a frame that retains motion vector information. The motion vector temporal downsampling interval may specify the amount of frame motion vector information that is blanked or omitted from the calculation. The temporal downsampling interval may be used for each segment of a picture. For example, but not limited to, each macroblock, block, or subblock of a picture may have a temporal downsampling interval. The temporal downsampling interval may also be modified during encoding to account for intra-frame predicted pictures that do not have motion information. In some embodiments, the temporal downsampling interval may also specify frames that retain their motion information, such as areas outside the ROI that have a large number of motion vectors. Areas with a large number of motion vectors may be detected during the omission of motion vectors 613, and entries in the temporal downsampling interval 612 for the areas with a large number of motion vectors may be edited to accommodate additional information during decoding. As described above, the downsampling interval of a zone may depend on its distance relative to the ROI.
[0103] According to aspects of the present disclosure, a residual that facilitates temporal upsampling (interpolation) may be generated as part of pixel reconstruction. As used herein, pixel reconstruction refers to a technique for describing a picture based on a transformation from a reference image to a currently processed image. Typically, pixel reconstruction 606 acts as a local decoder within an encoder that implements the encoding process 600. Specifically, pixel reconstruction 606 includes inter-frame prediction IP1 and (optionally) intra-frame prediction IP2 to obtain a predicted pixel PP using a motion vector MV or MV' from image compression 604 and a reference pixel from a picture in a reference list. Inverse quantization and inverse transformation IQX of transform coefficients 607 from image compression 604 produce lossy residual pixels 605L, which are added to the predicted pixel PP to generate decoded pixels 609. Decoded pixels 609 are inserted into the reference picture and can be used in image compression 604 and pixel reconstruction 606 for subsequent sections of the currently processed picture 601. After the decoded pixels have been inserted, the undecoded pixels in the reference picture may undergo padding 602. For in-loop down / up sampling, the encoder local decoder may calculate the temporal upsampling result. The encoder then considers the difference between the original input picture pixels and the corresponding upsampled pixels as residual pixels. Since the quality of the area outside the ROI may be lower, these residual pixels can be encoded using a larger quantization parameter (QP).
[0104] In some encoder implementations, if the current picture is intra-coded, the inter-prediction portion of pixel reconstruction 606 is turned off because no other pictures can be used for pixel reconstruction. Alternatively, pixel reconstruction can be performed on any picture 601, regardless of whether a particular picture is inter-coded or intra-coded. In some implementations, the encoder implementation can be modified to add a filler picture to the reference picture list 603 and not turn off the inter-prediction portion of pixel reconstruction 606, even if the current processed image is intra-coded. Therefore, during pixel reconstruction 606, the processing flow of both the inter-coded segment and the intra-coded segment is the same. The only major difference is the selection of reference pictures for encoding. It should be noted that in some implementations, motion compensation does not need to be performed on all pictures, and the filled pictures do not need to be added to the reference picture list.
[0105] As an example and not a limitation, in a type of pixel reconstruction called block pixel reconstruction (BMC), each image can be divided into blocks of pixels (e.g., macroblocks of 16×16 pixels). Each block is predicted from a block of the same size in a reference frame. These blocks are not transformed in any way except for shifting to the location of the prediction block. The motion vector MV represents this shift. In order to exploit the redundancy between adjacent block vectors (e.g., for a single moving object covered by multiple blocks), only the difference between the current and previous motion vectors in the bitstream is usually encoded. The result of this difference process is mathematically equivalent to a global pixel reconstruction that can be translated. In addition, along the encoding pipeline, the method 600 can optionally use entropy decoding 608 to reduce the output size by exploiting the resulting statistical distribution of motion vectors around the zero vector. In some embodiments, the ROI parameters and the time downsampling interval 612 are included in the digital picture 611 as part of the network package in the network abstraction layer (NAL). In other embodiments, the ROI parameters and the time downsampling interval 612 can be included in the digital picture during entropy decoding 608.
[0106] Blocks can be shifted by a non-integer number of pixels, which is called sub-pixel precision. Intermediate pixels are generated by interpolating adjacent pixels. Half-pixel or quarter-pixel precision is often used. Sub-pixel precision is much more computationally expensive due to the extra processing required for interpolation and the greater number of potential source blocks to evaluate on the encoder side.
[0107] Block pixel reconstruction divides the current coded image into non-overlapping blocks and calculates pixel reconstruction vectors indicating the origin of these blocks in the reference image. Reference blocks usually overlap in the source frame. Some video compression algorithms combine the current image from several different reference image fragments in the reference image list 603.
[0108] The result of image compression 604 and pixel reconstruction 606 and (optionally) entropy decoding 608 is a set of data 611, which for convenience is called a coded picture. Motion vectors MV (and / or intra-prediction mode motion vectors MV') and transform coefficients 607 may be included in the coded picture 611.
[0109] Figure 6B An alternative embodiment of the present disclosure that uses picture frame rate to achieve temporal downsampling is depicted. A digital picture 601 can have its frame rate downsampled 614 in one or more regions outside the ROI. ROI parameters 612 are used to determine the location, shape, and size of the ROI. The temporal downsampling interval is used to determine the frame rate of the region outside the ROI. The frame rate downsampling 614 can be achieved by, for example, but not limited to, replacing chrominance and luminance values in one or more regions outside the ROI with null values.
[0110] In this example, the temporal downsampling interval can specify how many frames have regions with null values for chrominance and luminance. The temporal downsampling interval can be specified for regions of different sizes, for example but not limited to, the temporal downsampling interval can be scaled by line, macroblock, block, or sub-block. As described above, the start frame and end frame of the temporal downsampling interval can retain their information outside the ROI. Here, for the start frame and end frame of the temporal downsampling interval, the chrominance and luminance information of the region outside the ROI is retained. After performing frame rate downsampling, the temporal downsampled frame 615 undergoes other encoding operations, including image compression at 604 and (optionally) padding at 602, as described above. It should be noted that in these embodiments, motion vector temporal downsampling is not performed, so motion vectors for regions outside the ROI are not removed.
[0111] Decoding
[0112] Figure 7 An example of a possible process flow in a method 700 for decoding temporally downsampled stream data 701 with ROI parameters that can be used in conjunction with aspects of the present disclosure is shown. This particular example shows a process flow for video decoding using, for example, the AVC (H.264) standard. The encoded stream data 701 may initially be stored in a buffer. In the case where the encoded stream data 701 (e.g., a video data bitstream) has been passed over a network such as the Internet, the data 701 may initially undergo a process known as network abstraction layer (NAL) decoding, as indicated at 702. The Network Abstraction Layer (NAL) is part of a stream data standard such as the H.264 / AVC and HEVC video coding standards. The primary goal of the NAL is to provide a "network-friendly" representation of stream data for "conversational" (e.g., video telephony) and "non-conversational" (storage, broadcast, or streaming) applications. NAL decoding may remove information from the data 701 that was added to aid in the transmission of the data. This information, called "network wrapper," may identify the data as video data, or indicate the beginning or end of a bitstream, bits used to align the data, and / or metadata about the video data itself.
[0113] In addition, as an example, the network package may include information about the data 701, including, for example, resolution, picture display format, a palette transformation matrix for displaying the data, information about the number of bits in each picture, slice, or macroblock, and information used in lower level decoding, such as data indicating the beginning or end of a slice. This information can be used to determine the number of macroblocks to be passed to each task group in a single segment. Due to its complexity, NAL decoding is typically done at the picture and slice level. The minimum NAL buffer for NAL decoding is typically the size of a slice. According to the macroblock and AVC (H.264) standard description Figure 7. However, these are not limiting features of aspects of the present disclosure. For example, in the latest H.265 (HEVC) standard, there is no concept of macroblocks. Instead, more flexible concepts of coding units (CU), prediction units (PU), and transform units (TU) are introduced. Various aspects of the present disclosure may operate in conjunction with such coding standards. As an example and not a limitation, the network package may include ROI parameters and a temporal downsampling interval 727. Alternatively, the ROI parameters and the temporal downsampling interval may be received separately or may not be encoded. In addition, the temporal downsampling interval may be encoded in the headers of the frames that make up the bitstream or in other frame metadata. Alternatively, the temporal downsampling interval may be included as part of supplemental enhancement information, which is additional information that can be inserted into the bitstream.
[0114] In some embodiments, after the NAL decoding at 702, three different thread groups or task groups may be used to implement Figure 7 , which are referred to herein as video coding layer (VCL) decoding 704, motion vector (MV) reconstruction 710, and picture reconstruction 714. The picture reconstruction task group 714 may include pixel prediction and reconstruction 716 and post-processing 720. In some embodiments of the present invention, these task groups may be selected based on data dependencies so that each task group can complete processing of all macroblocks in a picture (e.g., frame or field) or segment before sending the macroblocks to the next task group for subsequent processing.
[0115] Some coding standards may use a form of data compression that includes transforming pixel information from the spatial domain to the frequency domain. One such transform is called a discrete cosine transform (DCT). The decoding process of such compressed data involves an inverse transform from the frequency domain back to the spatial domain. In the case of DCT compressed data, the inverse process is called an inverse discrete cosine transform (IDCT). The transformed data is sometimes quantized to reduce the number of bits used to represent the numbers in the discrete transformed data. For example, the numbers 1, 2, 3 may all be mapped to 2 and the numbers 4, 5, 6 may all be mapped to 5. To decompress the data, a process called inverse quantization (IQ) is used before performing an inverse transform from the frequency domain to the spatial domain. The data dependencies of the VCL IQ / IDCT decoding process 704 are typically at the macroblock level of macroblocks within the same slice. Therefore, the results produced by the VCL decoding process 704 can be buffered at the macroblock level.
[0116] VCL decoding 704 typically includes a process called entropy decoding 706, which is used to decode the VCL syntax. Many codecs such as AVC (H.264) use a coding layer called entropy coding. Entropy coding is a coding scheme that assigns codes to signals so as to match the code length to the probability of the signal. Typically, an entropy encoder is used to compress data by replacing symbols represented by equal-length codes with symbols represented by codes proportional to the negative logarithm of the probability. AVC (H.264) supports two entropy coding schemes, namely context-adaptive variable length coding (CAVLC) and context-adaptive binary arithmetic coding (CABAC). Because CABAC often provides 10% more compression than CAVLC, CABAC is favored by many video encoders when generating AVC (H.264) bitstreams. Decoding the entropy layer of an AVC (H.264) decoded data stream can be computationally intensive and can pose challenges to devices that decode AVC (H.264) decoded bitstreams using general-purpose microprocessors. For this reason, many systems use hardware decoder accelerators.
[0117] In addition to entropy decoding 706, the VCL decoding process 704 may involve inverse quantization (IQ) and / or inverse discrete cosine transform (IDCT), as indicated at 708. These processes may decode the header 709 and data from the macroblock. The decoded header 709 may be used to assist in VCL decoding of neighboring macroblocks. In embodiments where ROI parameters are encoded, the decoded header may contain the ROI parameters.
[0118] VCL decoding 704 can be implemented with macroblock-level data-dependent frequency. Specifically, different macroblocks within the same slice can be VCL decoded in parallel, and the results can be sent to the motion vector reconstruction task group 710 for further processing.
[0119] According to aspects of the present disclosure, the illustrated decoding method distinguishes between motion information temporal downsampling and frame rate temporal downsampling at 729. In some embodiments of the present disclosure, the temporal downsampling type may be distinguished by, for example, but not limited to, a bit identifier in metadata or temporal downsampling interval information 727. In addition, it should be understood that decoders with only motion information temporal downsampling decoding capabilities or only frame rate temporal downsampling decoding capabilities are possible. In embodiments with limited decoding capabilities, for embodiments with only motion information temporal downsampling decoding capabilities, only path MV will be present in the decoder. Similarly, for embodiments with only frame rate downsampling decoding capabilities, only path frame rate will be present.
[0120] Subsequently, all macroblocks in the picture or segment may undergo motion vector reconstruction 710. The MV reconstruction process 710 may involve motion vector reconstruction 712 using a header from a given macroblock 711 and / or a co-located macroblock header 713. Motion vectors describe apparent motion within a picture. Such motion vectors allow the picture (or portion thereof) to be reconstructed based on knowledge of pixels of previous pictures and the relative motion of these pixels between pictures. Once the motion vectors have been recovered, the pixels may be reconstructed using a process based on residual pixels from the VCL decoding process 704 and motion vectors from the MV reconstruction process 710 at 716. The data dependency frequency (and parallelism) of the MV depends on whether the MV reconstruction process 710 involves co-located macroblocks from other pictures. For MV reconstruction that does not involve co-located MB headers from other pictures, the MV reconstruction process 710 may be implemented in parallel at the slice level or the picture level. For MV reconstruction involving co-located MB headers, the data dependency frequency is at the picture level, and the MV reconstruction process 710 may be implemented in parallel at the slice level.
[0121] The picture subjected to temporal downsampling of motion information lacks motion information in the area outside the ROI of the frame in the temporal downsampling interval between the start frame and the end frame of the interval. Therefore, during the MV reconstruction process 710, motion vectors must be generated for the frames in the temporal downsampling interval. The generation of motion vectors for these frames can use the temporal downsampling interval information 727 to determine the start frame and the end frame. As described above, the start frame and the end frame of the temporal downsampling interval retain their motion information. The motion reconstruction process can be configured to interpolate between the motion vectors of the start frame and the end frame in the temporal downsampling interval. The interpolation can be adjusted to take into account the number of frames in the temporal downsampling interval. In addition, the temporal downsampling interval information 727 can indicate additional frames that retain their motion information in the temporal downsampling interval, and the motion information of these frames can be used to further refine the fit of the interpolation. As described above, the interpolation can be, for example, but not limited to, linear interpolation.
[0122] Motion vector reconstruction 710 can use ROI parameters to locate the motion ROI within the frame. As described above, the ROI retains its motion vector, so the ROI can always be accurately reconstructed. During motion vector reconstruction, the motion vector of the ROI can be combined with the motion vector generated by interpolation. The ROI parameters help locate the ROI motion vector within the frame.
[0123] One problem with the motion vector generation process is that the actual position of the sample may move off the screen or change in other ways. In this case, unwanted image effects may appear at the edges of objects. In this case, a residual may be generated during encoding and used to identify and correct the problematic areas during reconstruction. As an example and not limitation, for in-loop down / upsampling, the encoder's local decoder performs the same upsampling as the decoder. The encoder calculates the residual pixels based on the decoder's upsampling results. If the encoder detects an upsampling gap at the edge of an object, the encoder will encode the edge residual pixels with higher quality to cover this unwanted upsampling effect.
[0124] The result of the motion vector reconstruction 710 is sent to the picture reconstruction task group 714, which can be parallelized at the picture frequency level. Within the picture reconstruction task group 714, all macroblocks in the picture or segment can be pixel predicted and reconstructed 716 in conjunction with deblocking 720. The pixel prediction and reconstruction tasks 716 and the deblocking tasks 720 can be parallelized to improve decoding efficiency. These tasks can be parallelized within the picture reconstruction task group 714 at the macroblock level based on data correlation. For example, pixel prediction and reconstruction 716 can be performed on one macroblock, followed by deblocking 720. Reference pixels from the decoded picture obtained by deblocking 720 can be used to perform pixel prediction and reconstruction 716 on subsequent macroblocks. Pixel prediction and reconstruction 718 produces a decoded segment 719 (e.g., a decoded block or macroblock) including adjacent pixels, which can be used as input to the pixel prediction and reconstruction process 718 of the subsequent macroblock. The data correlation of the pixel prediction and reconstruction 716 allows a certain degree of parallel processing at the macroblock level of macroblocks in the same slice.
[0125] The post-processing task group 720 may include a deblocking filter 722 that is applied to blocks in the decoded segment 719 to improve visual quality and prediction performance by smoothing sharp edges that may form between blocks when block decoding techniques are used. The deblocking filter 722 may be used to improve the appearance of the resulting deblocked segment 724.
[0126] The decoded segment 719 or the deblocking segment 724 may provide neighboring pixels for deblocking adjacent macroblocks. Additionally, the decoded segment 719 including segments from the current decoded picture may provide reference pixels for pixel prediction and reconstruction 718 of subsequent macroblocks. It is at this stage that pixels from within the current picture may optionally be used for pixel prediction within the same current picture as described above, regardless of whether the picture (or its sub-segment) is inter-coded or intra-coded. Deblocking 720 may be parallelized at the macroblock level for macroblocks in the same picture.
[0127] The decoded segments 719 and the post-processed segments 724 generated before post-processing 720 can be stored in the same buffer, such as the decoded picture buffer 725, depending on the specific codec involved. It should be noted that deblocking is a post-processing filter in H.264. H.264 uses pre-deblocking macroblocks as references for intra-frame prediction of adjacent macroblocks, and uses post-deblocking macroblocks as references for inter-frame prediction of future picture macroblocks. Because both pre-deblocking and post-deblocking pixels are used for prediction, the decoder or encoder must buffer pre-deblocking macroblocks and post-deblocking macroblocks. For most low-cost consumer applications, pre-deblocking pictures and post-deblocking pictures share the same buffer to reduce memory usage. For standards earlier than H.264, such as MPEG2 or MPEG4 except MPEG4 Part 10 (Note: H.264 is also called MPEG4 Part 10), only post-processing pre-macroblocks (e.g., pre-deblocking macroblocks) are used as references for prediction of other macroblocks. In such codecs, pre-filtered pictures may not share the same buffer with filtered pictures.
[0128] For embodiments including temporal downsampling of the frame rate, interpolation 726 is performed after processing one or more regions outside the ROI of the start and end images in the temporal downsampling interval. As described above, the outer loop upsampling is after the entire decompression process is completed. Interpolation is used to generate brightness and chrominance values for regions outside the ROI that are missing brightness and chrominance values due to temporal downsampling. The ROI parameters can be used to locate the ROI in the frame. The temporal downsampling interval can be used to determine the number of frames that lack chrominance and brightness information in one or more regions outside the ROI due to temporal downsampling of the frame rate. During the interpolation step 726, the temporal downsampling interval can be used to create an accurate fitting interpolation.
[0129] Once images for one or more regions outside the ROI have been generated, the actual images inside the ROI generated by the decoding process can be combined. Image placement within the ROI can be guided by ROI parameters 727 to generate a completed picture 728. For pictures that are subject to temporal downsampling of motion information, the completed picture 728 can be generated after the decoding process without interpolation. The completed picture 728 can be stored in the output buffer.
[0130] For H.264, after pixel decoding, the decoded segment 719 is saved in the decoded picture buffer 725. Later, the post-processing segment 724 replaces the decoded segment 719 in the decoded picture buffer 725 before interpolation 726. For non-H.264 cases, the decoder only saves the decoded segment 719 in the decoded picture buffer 725. Interpolation 726 is done at display time, and the upsampled output 728 may not share the same buffer as the decoded picture buffer 725. Information about the encoder / decoder program can be found in published application 2018 / 0007362, the contents of which are incorporated by reference.
[0131] ROI Determination
[0132] The region of interest represents portions of screen space that are determined by the application to be important to the viewer and therefore allocated a larger share of available graphics computing resources. The ROI data may include information identifying the location of the centroid of the foveal region in screen space, the size of the foveal region relative to the screen space, and the shape of the foveal region. The ROI may be determined by the application to be of interest to the viewer because (a) it is a region that the viewer is likely to be looking at, (b) it is a region that the viewer is actually looking at, or (c) it is a region that it is desirable to attract the user to look at.
[0133] With respect to (a), the foveal region may be determined to be likely to be viewed in a context-sensitive manner. In some implementations, an application may determine that certain portions of the screen space or certain objects in the corresponding three-dimensional virtual space are "interesting" and these objects may be drawn consistently using a greater number of vertices than other objects in the virtual space. The foveal region may be defined as interesting in a static or dynamic manner in context. As a non-limiting example of a static definition, if the foveal region is determined to be a portion of the screen space that the viewer is most likely to see, this region may be a fixed portion of the screen space, such as a region near the center of the screen. For example, if the application is a driving simulator that displays images of the vehicle dashboard and windshield, the viewer may be viewing these portions of the image. In this example, the foveal region may be statically defined in the sense that the region of interest is a fixed portion of the screen space. As a non-limiting example of a dynamic definition, in a video game, the user's avatar, the avatar of a fellow player, an enemy artificial intelligence (AI) character, or certain objects of interest (e.g., a ball in a sports game) may be of interest to the user. Such objects of interest may move relative to the screen space, so the foveal region may be defined to move with the objects of interest.
[0134] With respect to (b), the viewer's gaze may be tracked to determine which portion of the display the viewer is looking at. Tracking the viewer's gaze may be accomplished by tracking some combination of the user's head pose and the user's eye pupil orientation. Some examples of such gaze tracking are described, for example, in U.S. Patent Application Publication Nos. 2015 / 0085250, 2015 / 0085251, and 2015 / 0085097, all of which are incorporated herein by reference in their entirety. More details of head pose estimation may be found, for example, in the following document: Erik Murphy, "Head Pose Estimation in Computer Vision: A Survey," IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 31, No. 4, April 2009, pp. 607-626, the contents of which are incorporated herein by reference. Other examples of head pose estimation that can be used in conjunction with embodiments of the present invention are described in the following documents: Athanasios Nikolaidis, "Facial feature extraction and pose determination," Pattern Recognition, Vol. 33 (July 7, 2000), pp. 1783-1791, the entire contents of which are incorporated herein by reference. Other examples of head pose estimation that can be used in conjunction with embodiments of the present invention are described in the following documents: Yoshio Matsumoto and Alexander Zelinsky, "An Algorithm for Real-time Stereo Vision Implementation of Head Pose and Gaze Direction Measurement," Proceedings of the Fourth IEEE International Conference on Automatic Face and Gesture Recognition FG'00, 2000, pp. 499-505, the entire contents of which are incorporated herein by reference. Other examples of head pose estimation that may be used in conjunction with embodiments of the present invention are described in the following document: Qiang Ji and Ruong Hu, “3D Face Pose Estimation from a Monocular Camera,” Image and Vision Computing, Vol. 20, No. 7, February 20, 2002, pp. 499-511, the entire contents of which are incorporated herein by reference.
[0135] Regarding (c), this is a common film device for changing the depth of focus of a scene to focus on a portion of interest (e.g., a particular actor who is speaking). This is done to draw the viewer's attention to the focused portion of the image. According to aspects of the present disclosure, a similar effect can be achieved with computer graphics by moving the fovea to the desired portion of the screen so that that portion has a greater vertex density and is therefore rendered in more detail.
[0136] There are several techniques for eye tracking (also known as gaze tracking). Techniques for eye gaze tracking and selective rendering compression are described in published application 2017 / 0285736, the contents of which are incorporated herein by reference. Some of these techniques determine the gaze direction of a user based on the orientation of the pupil of the user's eye. Some known eye gaze tracking techniques involve illuminating the eye by emitting light from one or more light sources, and using a sensor to detect the reflection of the emitted light from the cornea. Typically, this is achieved using an invisible light source in the infrared range and capturing image data (e.g., an image or video) of the illuminated eye with an infrared-sensitive camera. Image processing algorithms are then used to analyze the image data to determine the eye gaze direction.
[0137] Generally speaking, eye tracking image analysis utilizes characteristics distinct from how light reflects off the eye to determine eye gaze direction from an image. For example, an image may be analyzed to identify eye position based on corneal reflections in the image data, and the image may be further analyzed to determine gaze direction based on the relative position of the pupil in the image.
[0138] Two common gaze tracking techniques for determining the direction of eye gaze based on pupil position are known as bright pupil tracking and dark pupil tracking. Bright pupil tracking involves illuminating the eye with a light source that is substantially in line with the camera's optical axis, causing the emitted light to reflect off the retina and back through the pupil to the camera. The pupil appears in the image as an identifiable bright spot at the location of the pupil, similar to the red-eye effect that appears in images during common flash photography. In this gaze tracking method, if the contrast between the pupil and the iris is insufficient, the bright reflection from the pupil itself helps the system locate the pupil.
[0139] Dark pupil tracking involves illuminating the pupil with a light source that is not substantially aligned with the camera's optical axis, causing light that passes through the pupil to reflect off the camera's optical axis, creating an identifiable dark spot in the image at the location of the pupil. In an alternative dark pupil tracking system, an infrared light source and a camera aimed at the eye are able to observe the corneal reflection. This camera-based system tracks the position of the pupil and the corneal reflection, which provide parallax due to the different depths of the reflections and provide additional accuracy.
[0140] Figure 8AAn example of a deep pupil gaze tracking system 800 that can be used in the context of the present disclosure is depicted. The gaze tracking system tracks the orientation of a user's eye E relative to a display screen 801 presenting a visible image. Figure 8A A display screen is used in the example system of , but some alternative embodiments may utilize an image projection system capable of projecting an image directly into the user's eye. In these embodiments, the user's eye E will be tracked relative to the image projected into the user's eye. Figure 8A In the example of , the eye E collects light from the screen 801 through the variable iris I; and the lens L projects the image on the retina R. The opening in the iris is called the pupil. In response to nerve impulses from the brain, muscles control the rotation of the eye E. In response to other nerve impulses, the upper eyelid muscle ULM and the lower eyelid muscle LLM control the upper eyelid UL and the lower eyelid LL, respectively.
[0141] The photosensitive cells on the retina R generate electrical pulses that are sent to the user's brain (not shown) via the optic nerve ON. The visual cortex of the brain interprets the pulses. Not all parts of the retina R are equally sensitive to light. Specifically, the photosensitive cells are concentrated in an area called the fovea.
[0142] The image tracking system shown includes one or more infrared light sources 802, such as light emitting diodes (LEDs) that direct invisible light (e.g., infrared light) toward the eye E. A portion of the invisible light is reflected from the cornea C of the eye, and a portion is reflected from the iris. The reflected invisible light is directed to a suitable sensor 804 (e.g., an infrared camera) by a wavelength selective mirror 806. The mirror transmits visible light from the screen 801, but reflects invisible light reflected from the eye.
[0143] The sensor 804 is preferably an image sensor, such as a digital camera that can generate an image of the eye E, which can be analyzed to determine the gaze direction GD from the relative position of the pupil. This image can be generated by the local processor 820 or by transmitting the obtained gaze tracking data to the remote computing device 860. The local processor 820 can be configured according to a well-known architecture (e.g., single core, dual core, quad core, multi-core, processor-coprocessor, cell processor, etc.). The image tracking data can be transmitted between the sensor 804 and the remote computing device 860 via a wired connection (not shown), or wirelessly transmitted between a wireless transceiver 825 included in the eye tracking device 810 and a second wireless transceiver 826 included in the remote computing device 860. The wireless transceiver can be configured to implement a local area network (LAN) or a personal area network (PAN) via a suitable network protocol for the PAN (e.g., Bluetooth).
[0144] Gaze tracking system 800 may also include upper sensor 808 and lower sensor 809, which are configured, for example, to be placed above and below eye E, respectively. Sensors 808 and 809 may be separate components, or may alternatively be part of component 810 worn on the user's head, which may include, but is not limited to, any combination of sensor 804, local processor 820, or inertial sensor 815 described above. Figure 1A In the example system shown in , sensors 808 and 809 are capable of collecting data about electrical impulses of the nervous system and / or movement and / or vibration of the muscle system from those areas of the eye E. This data may include, for example, electrophysiological and / or vibration information of the muscles and / or nerves around the eye E, as monitored by the upper sensor 808 and the lower sensor 809. The electrophysiological information collected by the sensors 808 and 809 may include, for example, electroencephalogram (EEG), electromyogram (EMG), or evoked potential information collected due to nerve function in the area around the eye E. As a result of detecting muscle vibrations or twitches of the muscles around the eye E, the sensors 808 and 809 may also be capable of collecting, for example, mechanical myogram or surface electromyogram information. The sensor 808 may also be capable of collecting information related to motion sickness reactions, including, for example, heart rate data, electrocardiogram (ECG), or galvanic skin response data. The data collected by the sensors 808 and 809 may be transmitted to the local processor 820 and / or the remote computing device 860 as described above, along with the image tracking data.
[0145] The gaze tracking system 800 may also be capable of tracking the user's head. Head tracking may be performed by an inertial sensor 815 that is capable of generating a signal in response to the position, motion, orientation, or orientation change of the user's head. This data may be sent to a local processor 820 and / or transmitted to a remote computing device 860. The inertial sensor 815 may be a separate component, or may alternatively be part of a component 810 worn on the user's head, which may include, but is not limited to, any combination of the sensor 804, local processor 820, or sensors 808 and 809 described above. In an alternative embodiment, head tracking may be performed via tracking of a light source on the component 810. The gaze tracking system 800 may also include one or more memory units 877 (e.g., random access memory (RAM), dynamic random access memory (DRAM), read-only memory (ROM), etc.).
[0146] The local processor 820 may be configured to receive encoded data from the network connection 825. The local processor 820 may be operatively coupled to one or more memory units 877 and configured to execute one or more programs stored on the memory unit 877. Execution of such programs may enable the system to decode a video stream from the remote computing device 860 and generate a video with a high-fidelity ROI for display on the display 801. By way of example and not limitation, the programs may include a blender / transform space configuration program 879, a temporal upsampler / downsampler program 876, and a decoder program 880.
[0147] The remote computing device 860 may be configured to operate in conjunction with the eye tracking device 810 and the display screen 801 to perform eye gaze tracking and determine lighting conditions according to aspects of the present disclosure. The computing device 860 may include one or more processor units 870, which may be configured according to well-known architectures such as single-core, dual-core, quad-core, multi-core, processor-coprocessor, cell processor, etc. The computing device 860 may also include one or more memory units 872 (e.g., random access memory (RAM), dynamic random access memory (DRAM), read-only memory (ROM), etc.).
[0148] The processor unit 870 may execute one or more programs, portions of which may be stored in a memory 872, and the processor 870 may be operably coupled to the memory 872, for example, by accessing the memory via a data bus 878. The programs may be configured to perform eye gaze tracking and determine lighting conditions for the system 800. By way of example and not limitation, the programs may include: a gaze tracking program 873, execution of which may cause the system 800 to track the gaze of a user, for example, as described above; a color space conversion program (CSC) 874, which converts a stream of video frames into a form that can be presented by a display device; an encoder program 875; and a video stream temporal upsampler / downsampler program 876, which performs encoding of a stream video frame with temporally downsampled segments and selected original segments of a video frame with full motion information or chrominance and luminance information to be sent to a display, wherein the encoded video frames are decoded and the downsampled segments are generated prior to display.
[0149] By way of example and not limitation, gaze tracking program 873 may include processor-executable instructions that cause system 800 to determine one or more gaze tracking parameters of system 800 from eye tracking data collected with sensor 804 while emitting light from light source 802 and eye movement data collected from upper sensor 808 and lower sensor 809, respectively. Gaze tracking program 873 may also include instructions that analyze images collected with sensor 804 to detect the presence of a change in lighting conditions.
[0150] As in Figure 8B As can be seen in , the image 881 showing the user's head H can be analyzed to determine the gaze direction GD based on the relative position of the pupil. For example, the image analysis can determine the 2-dimensional offset of the pupil P relative to the center of the eye E in the image. By direct geometric calculation of a three-dimensional vector based on the known size and shape of the eyeball, the position of the pupil relative to the center can be converted to a gaze direction relative to the screen 801. The determined gaze direction GD can show the rotation and acceleration of the eye when the eye E moves relative to the screen 801.
[0151] like Figure 8B It is also seen in FIG. 1 that the image may also include reflections 887 and 888 of invisible light from the cornea C and lens L, respectively. Because the cornea and lens are at different depths, the parallax and refractive index between the reflections can be used to provide additional accuracy in determining the gaze direction GD. An example of this type of eye tracking system is a dual Purkinje tracker, where the corneal reflection is the first Purkinje image and the lens reflection is the fourth Purkinje image. If the user is wearing the user's glasses 893, there may also be reflections 190 from the user's glasses.
[0152] Current HMD panels refresh at a constant rate of 90 or 120 Hertz (Hz), depending on the manufacturer. High refresh rates increase the power consumption of the panel and the bandwidth requirements of the transmission medium to send frame updates. Information about gaze tracking devices with foveated views and scale coding can be found in co-pending application 15 / 840,893, which has been published as U.S. Patent Application Publication No. 20180192058, the contents of which are incorporated by reference.
[0153] Implementation
[0154] Figure 9An example system 900 is depicted that further illustrates various aspects of the present disclosure. System 900 may include a computing device 960 coupled to an eye tracking display system 901. Eye tracking display device 901 includes a local processor 903, a local memory 917, well-known support circuits 905, a network interface 916, an eye tracking device 902, and a display device 904 to perform eye gaze tracking and / or eye tracking calibration according to aspects of the present disclosure. Display device 904 may be in the form of a cathode ray tube (CRT), a flat screen, a touch screen, or other device that displays text, numbers, graphic symbols, or other visual objects. Local processor 903 may be configured according to well-known architectures such as single core, dual core, quad core, multi-core, processor-coprocessor, cell processor, etc. Eye tracking display system 901 may also include one or more memory units 917 (e.g., random access memory (RAM), dynamic random access memory (DRAM), read-only memory (ROM), etc.).
[0155] The local processor unit 903 may execute one or more programs, portions of which may be stored in a memory 917, and the processor 903 may be operably coupled to the memory 917, for example, by accessing the memory via a data bus 918. The programs may be configured to create a video with a high fidelity ROI for the eye tracking display system 901. By way of example and not limitation, the programs may include a CSC 913, a video temporal upsampler / downsampler program 914, and a decoder program 915. By way of example and not limitation, the CSC 913 may include processor executable instructions that cause the system 901 to format a regenerated video stream received from the temporal upsampler and / or downsampler program 914, and create a video with a high fidelity ROI for display on a display device according to the method 904 described above. The sampler 914 may include instructions that, when executed, cause the local processor to interpolate between a start frame and an end frame in an ROI-outside region of a video frame with a downsampling interval, and combine the ROI image data with the interpolated image data to regenerate a video stream received from the decoder 915. The decoder program 915 may include instructions that, when executed by the local processor, cause the system to receive encoded video stream data from the network interface 916 and decode the encoded video stream data. The decoder program may alternatively be implemented as a discrete logic unit (not shown) that is communicatively coupled to the local processor via, for example, the main bus 918. According to aspects of the present disclosure, the eye tracking display device 901 may be an embedded system, a mobile phone, a personal computer, a tablet computer, a portable gaming device, a workstation, a game console, a head mounted display device, etc. In addition, the computing device 960 may also be an embedded system, a mobile phone, a personal computer, a tablet computer, a portable gaming device, a workstation, a game console, etc.
[0156] The eye tracking display device 901 can be coupled to a computing device 960 and can include a Figures 8A to 8B The embodiment of the invention is a dynamic light source 910 of the light source 910 of the eye tracking device. By way of example and not limitation, the light source 910 can be an invisible light source in the form of one or more infrared LEDs, which can be configured to illuminate the user's eyes in order to collect eye tracking data using, for example, sensor 912. The sensor 912 of the eye tracking device can be a detector that is sensitive to light emitted from the light source 910. For example, the sensor 912 can be a camera that is sensitive to the light source, such as an infrared camera, and the camera 912 can be positioned relative to the eye tracking device and the light source so that it can capture an image of the area illuminated by the light source 910.
[0157] The computing device 960 may be configured to operate in conjunction with the eye tracking display system 901 to perform eye gaze tracking and determine lighting conditions according to aspects of the present disclosure. The computing device 960 may include one or more processor units 970, which may be configured according to well-known architectures such as single core, dual core, quad core, multi-core, processor-coprocessor, cell processor, etc. The computing device 960 may also include one or more memory units 972 (e.g., random access memory (RAM), dynamic random access memory (DRAM), read-only memory (ROM), etc.).
[0158] The processor unit 970 may execute one or more programs, portions of which may be stored in a memory 972, and the processor 970 may be operably coupled to the memory 972, for example by accessing the memory via a data bus 976. The programs may be configured to perform eye gaze tracking and determine lighting conditions for the system 900. By way of example and not limitation, the programs may include a gaze tracking program 973, execution of which may cause the system 900 to track a user's gaze. By way of example and not limitation, the gaze tracking program 973 may include processor-executable instructions that cause the system 900 to determine one or more gaze tracking parameters of the system 900 from eye tracking data collected with the camera 912 while emitting light from the dynamic light source 910. The gaze tracking program 973 may also include instructions that analyze images collected with the camera 912, for example, as described above with respect to Figure 8B The gaze tracking program may alternatively be implemented as a discrete logic unit (not shown) communicatively coupled to a local processor via, for example, the main bus 918 .
[0159] In some implementations, gaze tracking program 973 can analyze gaze tracking information to predict periods of inactivity when the user's visual perception is obscured, such as during a blink, or during a glance. Predicting the start of such periods can be used to reduce unnecessary rendering calculations, power consumption, and network bandwidth usage. Examples of such techniques are described in commonly assigned U.S. Patent Application No. 15 / 086,953, filed on March 31, 2016, the entire contents of which are incorporated herein by reference.
[0160] The computing device 960 and the eye tracking display device 901 may also include well-known support circuits 978 905, such as input / output (I / O) circuits 979 906, power supplies (P / S) 980 909, clocks (CLK) 981 908, and caches 982 907, which may communicate with other components of the system, for example, via buses 976 918, respectively. The computing device 960 may include a network interface 990 to facilitate communication with a network interface 916 similarly configured on the eye tracking display device 901. The processor unit 970 903 and the network interface 990 916 may be configured to implement a local area network (LAN) or a personal area network (PAN) via a suitable network protocol for the PAN (e.g., Bluetooth). The computing device 960 may optionally include a mass storage device 984, such as a disk drive, a CD-ROM drive, a tape drive, a flash memory, etc., and the mass storage device 984 may store programs and / or data. The computing device 960 may also include a user interface 988 for facilitating interaction between the system 900 and the user. The user interface 988 may include a keyboard, a mouse, a light pen, a game control pad, a touch interface or other devices. In an alternative embodiment, the user interface 988 may also include a display screen, and the computing device 960 may enable a coder / decoder (codec) 975 to decode the coded video stream in the data packet 999 from the network, and a temporal upsampler / downsampler program 974 may interpolate between the start frame and the end frame in the region outside the ROI of the video frame with the downsampling interval, and combine the ROI image data with the interpolation image data to regenerate the image frame of the video stream. As described above, the CSC program 976 may obtain the upsampled video screen and configure it to be displayed on a display screen coupled to the user interface 988. For example, the CSC may convert the input image from one color format to another color format (e.g., from RGB to YUV, and vice versa) before encoding. In this embodiment, the head tracker may not exist and the ROI position may be determined by the above-mentioned prediction method. In other embodiments, a head tracker may exist, but the display screen may not be coupled to the tracking device. In other embodiments, the encoder may transmit the encoded video stream data and ROI parameters through the network interface 916 , which will be received and processed by the decoder program 915 .
[0161] The system 900 may also include a controller (not shown) that interfaces with the eye-tracking display device 901 to interact with the program executed by the processor unit 970. The system 900 may also execute one or more general-purpose computer applications (not shown), such as video games or video streaming, which may incorporate aspects of eye gaze tracking sensed by the tracking device 902 and processed by the tracking program 993, CSC 976, temporal upsampler / downsampler 974, and video stream encoder 975, which converts the video frame data into a form that can be presented by the display device.
[0162] The computing device 960 may include a network interface 990 configured to support the use of Wi-Fi, an Ethernet port, or other communication methods. The network interface 990 may incorporate suitable hardware, software, firmware, or some combination thereof to facilitate communication over a telecommunications network. The network interface 990 may be configured to enable wired or wireless communication over a local area network and a wide area network such as the Internet. The network interface 990 may also include the aforementioned wireless transceiver that facilitates wireless communication with the eye tracking device 902 and the display device 979. The computing device 960 may send and receive data and / or requests for files over the network via one or more data packets 999.
[0163] Aspects of the present disclosure allow for a reduction in bit count during transmission of image data without losing detail in the ROI. The reduced bit count speeds up the encoding process to produce a compressed bitstream and reduces the bandwidth required to transmit the encoded image data. The reduced bit count advantageously reduces the time required to encode the image data without significantly increasing the time required to decode the encoded data.
[0164] Although the above is a complete description of the preferred embodiment of the present invention, it is possible to use various alternatives, modifications and equivalents. Therefore, the scope of the present invention should not be determined with reference to the above description, but should instead be determined with reference to the appended claims and their full range of equivalents. Any feature described herein (whether preferred or not) may be combined with any other feature described herein (whether preferred or not). In the appended claims, Indefinite Article "a" or "an" It refers to the quantity of one or more of the item following the article unless explicitly stated otherwise. The appended claims should not be read as including means-plus-function limitations unless such a limitation is explicitly recited in a given claim using the phrase "means for..."
Claims
1. A method for video encoding, comprising: a) determining one or more region of interest (ROI) parameters and a temporal downsampling interval for a picture in a picture stream; b) temporally downsampling one or more regions outside the ROI in a picture in the picture stream according to the temporal downsampling interval to generate a temporally downsampled picture; c) encoding the temporally downsampled picture; as well as d) transmitting the encoded temporally downsampled picture, Temporally downsampling the region outside the ROI includes using the ROI parameters to determine the region outside the ROI, and omitting motion information of the region outside the ROI for frames within a temporal downsampling interval. 2 . The method of claim 1 , wherein the motion information comprises a motion vector, information identifying a reference picture to which a motion vector refers, or a size of a segment covered by a motion vector. 3 . The method of claim 1 , wherein encoding the temporally downsampled picture comprises entropy encoding the picture having a downsampled region outside the ROI. 4 . The method of claim 1 , wherein temporally downsampling the region outside the ROI comprises using the ROI parameters to determine the one or more regions outside the ROI and reducing a frame rate of the region outside the ROI. The method of claim 4 , wherein the temporal downsampling interval determines the frame rate of the region outside the ROI. The method of claim 1 , wherein the temporal downsampling interval varies based on a downsampling location within the picture and the region of interest parameter. 7 . The method of claim 6 , wherein the temporal downsampling interval increases as the downsampling location within the picture moves away from the location of the ROI.
8. The method of claim 7, wherein the temporal downsampling interval increases at a linear rate as the downsampling location within the picture moves away from the location of the ROI.
9. The method of claim 7, wherein the temporal downsampling interval increases at a non-linear rate as the downsampling location within the picture moves away from the location of the ROI.
10. The method of claim 9, wherein the temporal downsampling interval increases as a sigmoid function of downsampling rate and distance from the ROI.
11. The method of claim 9, wherein the temporal downsampling interval increases as an exponential function of the downsampling rate and the distance from the ROI.
12. The method of claim 1, further comprising applying a low pass filter to pictures in the picture stream during a glance prior to encoding the temporally downsampled pictures.
13. The method of claim 1, further comprising encoding the temporal downsampling interval and transmitting the temporal downsampling interval over a network.
14. The method of claim 1, further comprising applying multiple stages of spatial downsampling to the region outside the ROI prior to encoding the temporally downsampled picture.
15. The method of claim 1, wherein the temporal downsampling interval of a specific region among the one or more regions outside the ROI depends on a distance of the specific region relative to the ROI.
16. The method of claim 1, further comprising applying multi-stage spatial downsampling to the region outside the ROI prior to said encoding the temporally downsampled picture.
17. A method for video decoding, comprising: a) decoding a coded picture in a coded picture stream; b) temporally upsampling an area outside the ROI of the picture from the coded picture stream; c) inserting the temporally upsampled region outside the ROI of the picture from the coded picture stream into the decoded coded picture stream; d) storing the temporally upsampled picture, The temporal upsampling of the area outside the ROI includes: interpolating motion information in the area outside the ROI from a start frame and an end frame of a temporal downsampling interval to generate motion information of the area outside the ROI for each frame in the downsampling interval. The method of claim 17 , wherein the motion information is a motion vector.
19. The method of claim 17, wherein the temporal upsampling is performed on an area outside the ROI. include: The region outside the ROI is interpolated between a start frame and an end frame of a temporal downsampling interval to generate an image of the region outside the ROI for each frame in the downsampling interval.
20. The method of claim 17, further comprising decoding a downsampling interval.
21. The method of claim 17, further comprising performing multi-segment spatial upsampling after inserting the temporally upsampled region outside the ROI into the picture.
22. The method of claim 17, further comprising storing the temporally upsampled picture in a storage device and displaying the temporally upsampled picture on a display device at e).
23. The method of claim 17, further comprising performing multi-stage spatial upsampling after said inserting said temporally upsampled region outside said ROI of said picture from said encoded picture stream into said decoded encoded picture stream.
24. A system for video encoding, comprising: processor; a memory coupled to the processor; non-transitory instructions embedded in the memory, which when executed cause the processor to perform a method for video encoding, the method comprising a) determining one or more region of interest (ROI) parameters and a temporal downsampling interval for a picture in a picture stream; b) temporally downsampling one or more regions outside the ROI in a picture in the picture stream according to the temporal downsampling interval to generate a temporally downsampled picture; c) encoding the temporally downsampled picture; as well as d) transmitting the encoded temporally downsampled picture, Temporally downsampling the region outside the ROI comprises using the ROI parameters to determine the region outside the ROI, and omitting motion information of the region outside the ROI for frames within the temporal downsampling interval.
25. The system of claim 24, wherein temporally downsampling the region outside the ROI comprises using the ROI parameters to determine the one or more regions outside the ROI and reducing a frame rate of the region outside the ROI.
26. The system of claim 24, wherein the method for video encoding further comprises applying multiple stages of spatial downsampling to the region outside the ROI prior to said encoding the temporally downsampled picture.
27. A non-transitory computer readable medium having embedded therein instructions which, when executed, cause a computer to perform a method for video encoding, the method comprising a) determining one or more region of interest (ROI) parameters and a temporal downsampling interval for a picture in a picture stream; b) temporally downsampling one or more regions outside the ROI in a picture in the picture stream according to the temporal downsampling interval to generate a temporally downsampled picture; c) encoding the temporally downsampled picture; as well as d) transmitting the encoded temporally downsampled picture, Temporally downsampling the region outside the ROI comprises using the ROI parameters to determine the region outside the ROI, and omitting motion information of the region outside the ROI for frames within the temporal downsampling interval.
28. The non-transitory computer readable medium of claim 27, wherein temporally downsampling the region outside the ROI comprises using the ROI parameters to determine the one or more regions outside the ROI and reducing a frame rate of the region outside the ROI.
29. The non-transitory computer-readable medium of claim 27, wherein the method for video encoding further comprises applying multi-stage spatial downsampling to the region outside the ROI prior to the encoding of the temporally downsampled picture.
30. A system for video decoding, comprising: processor; a memory coupled to the processor; non-transitory instructions embedded in the memory, which when executed cause the processor to perform a method for video decoding, the method comprising: a) decoding a coded picture in a coded picture stream; b) temporally upsampling an area outside the ROI of the picture from the coded picture stream; c) inserting the temporally upsampled region outside the ROI of the picture from the coded picture stream into the decoded coded picture stream; d) storing the temporally upsampled picture, The temporal upsampling of the area outside the ROI includes: interpolating motion information in the area outside the ROI from a start frame and an end frame of a temporal downsampling interval to generate motion information of the area outside the ROI for each frame in the downsampling interval.
31. The system of claim 30, wherein the temporal upsampling is performed on an area outside the ROI. include: The region outside the ROI is interpolated between a start frame and an end frame of a temporal downsampling interval to generate an image of the region outside the ROI for each frame in the downsampling interval.
32. The system of claim 30, wherein the method for video decoding further comprises performing multi-stage spatial upsampling after the inserting the temporal upsampled region outside the ROI of the picture from the encoded picture stream into the decoded encoded picture stream.
33. A non-transitory computer readable medium having embedded therein instructions which, when executed, cause a computer to perform a method for video decoding, the method comprising a) decoding a coded picture in a coded picture stream; b) temporally upsampling an area outside the ROI of the picture from the coded picture stream; c) inserting the temporally upsampled region outside the ROI of the picture from the coded picture stream into the decoded coded picture stream; d) storing the temporally upsampled picture, The temporal upsampling of the area outside the ROI includes: interpolating motion information in the area outside the ROI from a start frame and an end frame of a temporal downsampling interval to generate motion information of the area outside the ROI for each frame in the downsampling interval.
34. The non-transitory computer readable medium of claim 33, wherein the temporal upsampling is performed on an area outside the ROI. include: The region outside the ROI is interpolated between a start frame and an end frame of a temporal downsampling interval to generate an image of the region outside the ROI for each frame in the downsampling interval.
35. The non-transitory computer-readable medium of claim 33, wherein the method for video decoding further comprises performing multi-stage spatial upsampling after the inserting the temporally upsampled region outside the ROI of the picture from the encoded picture stream into the decoded encoded picture stream.
