Residual processing in video coding

By modifying residuals based on spatial and temporal characteristics before encoding, the method addresses the challenge of optimizing data size and processing speed in hybrid backward compatible encoding, enhancing user experience and efficiency in video encoding.

JP7558965B2Active Publication Date: 2024-10-01V NOVA INT LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2021558487
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-07-05
Filing Date
2019-12-13
Publication Date
2024-10-01
Estimated Expiration
2039-12-13

AI Technical Summary

Technical Problem

Existing hybrid backward compatible encoding techniques face challenges in optimizing data size reduction while maintaining processing speed and user experience, particularly in video encoding, without compromising the overall impression of the reconstructed signal.

Method used

A method is introduced to modify residual data before encoding, involving the selection and modification of residuals based on spatial and temporal characteristics, using quantization and entropy encoding to reduce data size while optimizing computational efficiency and user experience.

Benefits of technology

The method effectively reduces overall data size by selectively encoding residuals, balancing processing speed and user experience, and allows for efficient encoding and decoding of video signals across various resolutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007558965000001
    Figure 0007558965000001
  • Figure 0007558965000002
    Figure 0007558965000002
  • Figure 0007558965000003
    Figure 0007558965000003
Patent Text Reader

Abstract

According to an aspect of the present invention, a method for modifying a set of residual data is provided, where the residual data can compensate or enhance data of a base stream, e.g., frames of video coded using a different video coding technique. A method for encoding an input signal may be provided, the method including: receiving an input signal; generating one or more sets of residuals based on differences between the input signal and one or more reconstructed signals at one or more respective resolutions; modifying the one or more sets of residuals based on a selected residual mode; and encoding the one or more sets of modified residuals to generate one or more respective coded streams, where the encoding includes transforming the one or more sets of modified residuals, and the modifying includes selecting a subset of the residuals not to code based on the selected residual mode. An encoder may also be provided.
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] Hybrid backward compatible coding techniques have been previously proposed, for example, in WO2014 / 170819 and WO2018 / 046940, the contents of which are incorporated herein by reference.

[0002] Proposed therein is a method of parsing a data stream into a first portion of encoded data and a second portion of encoded data, implementing a first decoder for decoding the first portion of encoded data into a first rendition of a signal, and implementing a second decoder for decoding the second portion of encoded data into reconstructed data, where the reconstruction data specifies how to modify the first rendition of the signal, and applying the reconstruction data to the first rendition of the signal to generate a second rendition of the signal.

[0003] Further, an addition is proposed therein, in which the set of residual elements can be used to reconstruct a rendition of a first time sample of the signal. A set of spatial-temporal correlation elements associated with the first time sample is generated. The set of spatial-temporal correlation elements indicates a degree of spatial correlation between the residual elements and a degree of temporal correlation between a first reference data based on the rendition and a second reference data based on a rendition of a second time sample of the signal. The set of spatial-temporal correlation elements is used to generate output data. As mentioned above, the set of residuals is coded to reduce the overall data size.

[0004] Optimizations are required to further reduce the overall data size, balancing the need to preserve the overall impression given to the user when the signal is reconstructed with optimizing processing speed and complexity. Summary of the Invention

[0005] According to an aspect of the present invention, there is provided a method for modifying a set of residual data, where the residual data can be used to correct or enhance data of a base stream, e.g., frames of video encoded using legacy video encoding techniques.

[0006] According to a first aspect, there may be provided a method of encoding an input signal, the method comprising: receiving the input signal; generating one or more sets of residuals based on differences between the input signal and one or more reconstructed signals at one or more respective resolutions; modifying the one or more sets of residuals based on a selected residual mode; and encoding the one or more sets of modified residuals to generate one or more respective encoded streams, wherein the encoding comprises transforming the one or more sets of modified residuals, and the modifying comprises selecting a subset of the residuals not to encode based on the selected residual mode.

[0007] The input signal may preferably be an image, more preferably a video signal including multiple frames. The residuals may correspond to picture elements or elements of a video frame. They may be considered as "difference pictures". The set of residuals may include one or more residuals, each corresponding to a particular signal element. In some cases, the set of residuals may include residual values ​​corresponding to pixels of an input image or frame at one or more resolutions. The encoding may include a series of operations, such as, for example, transform, quantization, and entropy coding. The modification is performed before the transformation of the residuals, such that the transformed coefficients are based on the modified residuals, so that the changes are propagated through the pipeline and the transformation operations are reduced.

[0008] By modifying the residuals before encoding, the overall data size may be reduced and / or computational efficiency may be optimized while balancing the potential impact on the viewer experience when the signal is reconstructed at a decoder. The modification may include changing a quantization parameter of the encoding operation or removing or deselecting a subset of one or more sets of residuals. The step of selecting a subset of residuals not to code based on the selected residual mode may be performed by deselecting a number of residuals for transformation or by quantizing a set of transform coefficients to zero, where the transform coefficients represent the corresponding input residuals. In other cases, not propagating a subset of residuals may include setting the values ​​of the subset to zero. Deselecting the residuals before transformation may improve the accuracy of the modification, selection, and analysis.

[0009] The input signal may be at a first resolution. The method may further include downsampling the input signal to create a downsampled signal at a second resolution, receiving a base encoded signal from a base encoder, the base encoded signal being generated by encoding the downsampled signal using the base encoder, reconstructing a signal from the base encoded signal to generate a first reconstructed signal in one or more reconstructed signals, and comparing the first reconstructed signal with the input signal to generate a first set of residuals in one or more sets of residuals. Encoding the downsampled signal may be performed by a remote or third-party component, and may optionally be implemented remotely, such as with a legacy, existing, or future implemented codec. The residuals may be usable to reconstruct the input signal. The residuals may be used to correct artifacts introduced by the encoding and reconstruction process.

[0010] Comparing the first reconstructed signal to the input signal to generate a first set of one or more sets of residuals may include decoding a base encoded signal to generate a base decoded signal, and using the difference between the base decoded signal and a downsampled version of the input signal to generate a first set of residuals, and the method further includes generating a second set of residuals in the one or more sets of residuals by: correcting the base decoded signal using the first set of residuals to create a corrected decoded version, upsampling the corrected decoded version, and using the difference between the corrected decoded signal and the input signal to generate a second set of residuals, and the modification is performed separately on one or more of the first and second sets of residuals. Each set of residuals may be modified in the same way, differently, or not modified at all. Thus, the residuals may be modified to optimize the way in which they are used. For example, higher fidelity may be required at the highest level, and different residuals may be more important if the residuals are correcting artifacts in the base encoding scheme. In this manner, by filtering a particular subset of the residuals, the bit rate may be reduced and / or allow more capacity for other corrections.

[0011] The first set of residuals may be at a first spatial resolution and the second set of residuals may be at a second spatial resolution, the first spatial resolution being lower than the second spatial resolution. For example, the first set of residuals may be at a standard resolution or a high resolution (SD or HD) and the second set of residuals may be at a high resolution or an ultra high resolution (HD or UHD).

[0012] The modifying step may include ranking the residuals in one or more sets of residuals and filtering the residuals based on the ranking. The filtering may be based on a predetermined or dynamically variable threshold. By filtering and ranking the residuals, the subset may be adjusted such that high priority residuals are encoded while low priority residuals are deselected, thus optimizing the efficiency of the encoding pipeline. The priority may be based on various factors including spatial-temporal characteristics.

[0013] The modifying includes determining a score associated with each residual or each group of residuals, where the score may indicate a relative importance of each residual or each group of residuals, and the selection of a subset of the residuals not to code may be based on the score associated with each residual or each group of residuals. Scoring the residuals provides a high degree of control over the modification process. Determining may also be obtaining, computing, or receiving. The score may also be considered a metric. The score or metric may be associated with a particular residual, a tile of residuals, or a coding unit of residuals, where a tile represents a group of adjacent residuals of a predetermined size, and multiple tiles make up a set of residuals.

[0014] The score may be based on one or more spatial and / or temporal characteristics of the input signal. The score may be based on the level of contrast or the level of texture of the input signal, or both. In an embodiment, the luminance of the input signal may be analyzed and the score determined.

[0015] The method may include quantizing one or more sets of residuals. Quantizing one or more sets of residuals may include applying a variable size dead zone. The dead zone may be determined as a function of a quantization step width. Quantizing one or more sets of residuals may include quantizing one or more sets of residuals in a first stage to achieve modification and quantizing one or more sets of residuals in a second stage to achieve encoding. The quantizing in the first stage may be selective based on the score. The first quantizing stage may be considered as pre-quantizing. It is noted that pre-quantizing may be particularly beneficial when the contrast of an image, frame, or set of residuals is significantly low, such that the preferred residuals are concentrated at very low values.

[0016] The modifying may include comparing the score to a set of ranges, where in response to the score falling within a first range, the residual or group of residuals is not encoded; in response to the score falling within a second range, the residual or group of residuals is compared to a quantization dead zone and if the residual or group of residuals falls within the dead zone, the residual or group of residuals is not encoded; in response to the score falling within a third range, the residual or group of residuals is pre-quantized with a first quantization step width; and in response to the score falling within a fourth range, the residual or group of residuals is passed for encoding without modification.

[0017] Modifying the one or more sets of residuals may include obtaining a categorization of the residuals or group of residuals and applying the modification based on the categorization. The category may include, for example, background or foreground. Obtaining the categorization may include categorizing the residuals or group of residuals based on one or more spatial and / or temporal characteristics of the input signal or of the one or more sets of residuals.

[0018] The one or more spatial and / or temporal characteristics may include one or more selected from the group including spatial activity between one or more signal elements or groups of signal elements, a level of contrast between one or more signal elements or groups of signal elements, a measure of change in one or more spatial directions, temporal activity between one or more signal elements or groups of signal elements, a measure of change in one or more temporal directions, spatial activity between one or more residuals, temporal activity between one or more residuals, and differences between different sets of the one or more sets of residuals, or differences in one or more spatial and / or temporal characteristics between different sets of the one or more sets of residuals.

[0019] The modifying may include setting a control flag indicating whether the residual should be coded in the encoding, with the coding being selectively done based on the control flag. Note that during the processing, values ​​of 0 or 1 may be injected or certain blocks may be skipped entirely. However, the processing is still related to the residual, i.e., effectively setting a set of residual values ​​to 0. This may be considered a non-destructive selection.

[0020] The modifying may include receiving a set of residual weights, the residual weights including zero values, and applying the set of residual weights to the residuals in one of the one or more sets of residuals to generate a weighted set of residuals. Following applying the set of residual weights, the method may further include thresholding the weighted set of residuals using a set of thresholds. By weighting the residuals, a high degree of flexibility may be applied to the modification. The weights may be a matrix of non-binary values, such that each residual may be assigned a non-binary value, which may then be used to filter or prioritize the residuals in a flexible, scalable, and large amount of detail. One or more of the set of residual weights and the set of thresholds may be determined based on a classification of the input signal. Similarly, the classification may be based on the residuals, or a reconstructed version of the input signal using the residuals. This latter example may include an element of iteration or feedback, such that the modification is improved based on an analysis of the reconstructed version.

[0021] The set of residual weights may include a residual mask. The residual mask may be received from a remote location. The residual mask may be pre-generated based on pre-processing of the input signal prior to encoding. Thus, the remote location may perform computationally expensive maneuvers and the encoder may be "dumb". The residual mask may be generated once for a particular video and reused across multiple encoders and / or multiple times to reduce resource usage. Among other advantages, such remote storage of the residual mask may provide scalable encoding or replication of the residual mask. In another advantage, the residual mask may be generated by applying complex algorithms, such as detailed machine learning based algorithms that facilitate intensive and complex analysis and determination of the mask, and thus the mask may be improved by being obtained from the remote location. The obtained mask may be used for all frames of the input signal, where the input signal is a video, or a different mask may be used for each frame.

[0022] The modification may be performed on the residual coding unit.

[0023] According to a further aspect, a method of encoding an input signal may be provided, the method including: receiving the input signal; generating a set of residuals based on a difference between the input signal and a reconstructed signal; determining a set of perceptual metrics corresponding to the set of residuals; selectively pre-quantizing the set of residuals based on the set of perceptual metrics; and transforming and quantizing one or more sets of modified residuals to generate one or more respective encoded streams. Thus, the transform and quantization may be performed more efficiently. The perceptual metric facilitates a balance between efficiency and user or viewer experience.

[0024] Determining the set of perceptual metrics may include, for each given residual group in the set of residual groups, determining whether a perceptual metric should be used for the given residual group, and in response to determining that a perceptual metric should be used, obtaining at least one perceptual metric for the given residual group. Thus, the metrics may be determined at a level at which the metrics may have some influence.

[0025] The method may include comparing a perceptual metric for the one or more residuals to a set of ranges, where in response to the perceptual metric falling within a first range, the one or more residuals are not coded; in response to the perceptual metric falling within a second range, the one or more residuals are compared to a pre-quantization dead zone and if the one or more residuals fall within the dead zone, the one or more residuals are not coded; in response to the perceptual metric falling within a third range, the one or more residuals are pre-quantized with a pre-quantization step width; and in response to the perceptual metric falling within a fourth range, the one or more residuals are passed for coding without modification.

[0026] An encoder configured to perform the method of any of the above aspects of implementation may also be provided.

[0027] According to further aspects, there may be provided an encoder for encoding an input video comprising: a first encoder for receiving and encoding a first set of residuals to create a first enhanced stream; and a second encoder for receiving and encoding a second set of residuals to create a second enhanced stream, wherein the first set of residuals is based on a comparison of a first version of the input video to a first reconstructed version of the input video, the first reconstructed version being derived from a base encoder, the base encoder being distinct from the first and second encoders; the second set of residuals is based on a comparison of a second version of the input video to a second reconstructed version of the input video, the second reconstructed version being derived from the first reconstructed version; and one or more of the first and second encoders configured to selectively pre-process the residuals prior to encoding such that a subset of non-zero values ​​in each of the first and second sets of residuals are not present in the respective first and second enhancement level streams.

[0028] The first and second encoders may each independently process a set of coding units for each frame of the video.

[0029] According to a further aspect, an encoder for encoding an input video, comprising: a first encoder for receiving and encoding a first set of residuals to create a first enhanced stream; a second encoder for receiving and encoding a second set of residuals to create a second enhanced stream; and a configuration interface for receiving configuration data, wherein the first set of residuals is based on a comparison of a first version of the input video and a first reconstructed version of the input video, the first reconstructed version being derived from a base encoder, the base encoder being different from the first and second encoders; An encoder may be provided, wherein the second set of residuals is based on a comparison of a second version of the input video and a second reconstructed version of the input video, the second reconstructed version being derived from the first reconstructed version, and the configuration data includes a residual mask for one or more of the first and second encoders, each of the first and second encoders configured to selectively apply the residual mask to a respective one of the first and second sets of residuals prior to encoding such that a subset of non-zero values ​​in is not present in the respective first and second enhancement level streams.

[0030] According to a further aspect of the present invention, a computer readable medium may be provided which, when executed by a processor, causes the processor to perform any of the methods of the above aspects. [Brief description of the drawings]

[0031] [Figure 1] 1 shows a high level schematic of the encoding process. [Diagram 2] 1 shows a high level schematic of the decoding process. [Diagram 3] 1 shows a high-level schematic diagram of the encoding process and specific encoding steps. [Figure 4] 1 shows a high-level schematic diagram of the decoding process and certain decoding steps. [Diagram 5] 1 shows a high-level schematic diagram of the encoding process and residual processing. [Figure 6] 2 shows a high level schematic diagram of a further decoding process. [Figure 7] 1 shows a high-level schematic diagram of the encoding process and residual mode control. [Figure 8] Classification and residual weighting are shown. [Figure 9A-9C] Shows cloud configuration. [Figure 10] 1 shows a flow chart of the concepts described herein. [Figure 11] 1 illustrates a range of perceptual metrics that may be used to identify corresponding actions. [Figure 12] 12 shows a flowchart of how the perceptual metrics and ranges of FIG. 11 can be applied, according to certain embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0032] The present invention relates to a method, in particular to a method for encoding and decoding a signal. Processing data may include, but is not limited to, obtaining, deriving, outputting, receiving, and reconstructing data.

[0033] The encoding techniques discussed herein are flexible, adaptable, highly efficient and computationally inexpensive encoding formats that combine a video encoding format, a base codec (e.g., AVC, HEVC, or any other current or future codec), with enhancement level encoded data encoded using a different technique. The techniques use a downsampled source signal encoded using a base codec to form a base stream. The enhancement stream is formed using an encoded set of residuals that corrects or enhances the base stream, for example, by increasing the resolution or by increasing the frame rate. There may be multiple levels of enhancement data in a hierarchical structure. In certain arrangements, the base stream may be decoded by a hardware decoder, while the enhancement stream may be suitable for software implementation.

[0034] It is important that any optimizations used in the new encoding technique are tailored to the specific requirements or constraints of the enhancement stream and are low in complexity. Such requirements or constraints include the potential computational degradation resulting from the need for software decoding of the enhancement stream, the need for combining the decoded set of residuals with the decoded frames, the likely configuration of the residual data, i.e., a relatively high proportion of zero values ​​with data values ​​with high variance over a large range, the nuances of the quantized blocks of coefficients, and the configuration where the enhancement stream is a set of discrete residual frames separated into various components. Note that the constraints imposed on the enhancement stream mean that a simple and fast entropy coding operation is essential to allow the enhancement stream to effectively correct or enhance individual frames of the base decoded video. Note that in some scenarios, the base stream is also being decoded substantially simultaneously before combination, putting a strain on resources.

[0035] In some cases, the methods described herein may be applied to so-called planes of data reflecting different color components of a video signal. For example, the methods described herein may be applied to different planes of YUV or RGB data reflecting different color channels. The different color channels may be processed in parallel. Thus, as described herein, reference to a set of residuals may include multiple sets of residuals, with each color component having a different set of residuals that form part of the combined enhanced stream. The components of each stream may be collated in any logical order, for example, planes of the same level may be grouped and transmitted together, or alternatively, sets of residuals of different levels within each plane may be transmitted together.

[0036] This document preferably meets the requirements of the following ISO / IEC documents: "Call for Proposals for Low Complexity Video Coding Enhancements" ISO / IEC JTC1 / SC29 / WG11 N17944, Macao, CN, Oct. 2018, and "Requirements for Low Complexity Video Coding Enhancements" ISO / IEC JTC1 / SC29 / WG11 N18098, Macao, CN, Oct. 2018, which are incorporated herein by reference. Additionally, the approaches described herein may be incorporated into products supplied by V-Nova International Ltd.

[0037] The general structure of the proposed encoding scheme, to which the techniques described herein may be applied, uses a downsampled source signal encoded with a base codec, adds a first level of correction data to the decoded output of the base codec to generate a corrected picture, and then adds a further level of enhancement data to an upsampled version of the corrected picture. Thus, the streams are considered to be a base stream and an enhancement stream. This structure creates multiple degrees of freedom that allow high flexibility and adaptability to many situations, making the encoding format suitable for many use cases such as over-the-top (OTT) transmission, live streaming, live ultra-high definition (UHD) broadcasting, etc. The decoded output of the base codec is not intended for viewing, but is a fully decoded video at a lower resolution, making the output compatible with existing decoders and usable as a lower resolution output if deemed suitable. In some cases, the base codec can be used to create the base stream. The base codec may include an independent codec controlled in a modular or "black box" manner. The methods described herein may be implemented by computer program code that is executed by a processor and makes function calls to a base codec implemented in hardware and / or software.

[0038] In general, as used herein, the term "residual" refers to the difference between the values ​​of a reference array or frame and the actual array or frame of data. The array may be a one-dimensional or two-dimensional array representing a coding unit. For example, a coding unit may be a 2x2 or 4x4 set of residual values ​​corresponding to a similarly sized region of an input video frame. Note that this generalized example is agnostic with respect to the coding operation performed and the nature of the input signal. As used herein, reference to "residual data" refers to data derived from a set of residuals, e.g., the set of residuals themselves or the output of a set of data processing operations performed on the set of residuals. Throughout this specification, in general, a set of residuals includes multiple residuals or residual elements, each of which corresponds to a signal element, i.e., an element of the signal or original data. The signal may be an image or video. In these examples, the set of residuals corresponds to an image or frame of video, each residual is associated with a pixel of the signal, and the pixel is a signal element. The embodiments disclosed herein describe how these residuals can be modified (i.e., processed) to affect the encoding pipeline or the final decoded image while reducing the overall data size. The residuals or sets can be processed on a per residual element (or residual) basis, or on a group basis, such as per tile or per coding unit, where a tile or coding unit is a contiguous subset of the set of residuals. In some cases, a tile may include a smaller coding unit group. Note that processing can be done for each frame of the video, or only for a set number of frames in a sequence.

[0039] In general, each or both enhancement streams may be encapsulated within one or more enhancement bitstreams using a set of Network Abstraction Hierarchical Units (NALUs). A NALU is meant to encapsulate an enhancement bitstream in order to apply the enhancement to the correct base reconstructed frame. A NALU may, for example, contain a reference index to a NALU that contains the base decoder reconstructed frame bitstream to which the enhancement should be applied. In this way, the enhancement may be synchronized to the base stream, and frames of each bitstream are combined to generate a decoded output video (i.e., the residual of each frame of the enhancement level is combined with a frame of the base decoded stream). A group of pictures may represent multiple NALUs.

[0040] Returning to the initial process described above, where a base stream is provided with two levels (or sub-levels) of enhancement in the enhancement stream, an example of a generalized encoding process is shown in the block diagram of FIG. 1. An input full resolution video 100 is processed to generate various encoded streams 101, 102, 103. A first encoded stream (encoded base stream) is generated by feeding a downsampled version of the input video to a base codec (e.g., AVC, HEVC, or any other codec). The encoded base stream may be referred to as a base layer or base level. A second encoded stream (encoded level 1 stream) is generated by processing a residual obtained by taking the difference between the reconstructed base codec video and the downsampled version of the input video. A third encoded stream (encoded level 2 stream) is generated by processing a residual obtained by taking the difference between an upsampled version of the compensated version of the reconstructed base encoded video and the input video. In some cases, the components of FIG. 1 may provide a general low-complexity encoder. In some cases, the enhancement stream may be generated by an encoding process that forms part of a low-complexity encoder, which may be configured to control a separate base encoder and decoder (e.g., packaged as a base codec). In other cases, the base encoder and decoder may be provided as part of the low-complexity encoder. In some cases, the low-complexity encoder of FIG. 1 may be considered a form of wrapper for a base codec, and the functionality of the base codec may be hidden from the entity that implements the low-complexity encoder.

[0041] A downsampling operation, exemplified by downsampling component 105, may be applied to the input video to generate a downsampled video that is encoded by a base encoder 113 of the base codec. Downsampling may be performed either in both the vertical and horizontal directions, or alternatively only in the horizontal direction. The base encoder 113 and the base decoder 114 may be implemented by a base codec (e.g., as different functions of a common codec). The base codec, and / or one or more of the base encoder 113 and the base decoder 114 may comprise suitably configured electronic circuitry (e.g., hardware encoder / decoder) and / or computer program code executed by a processor.

[0042] Each enhancement stream encoding process does not necessarily include an upsampling step: for example, in Figure 1, the first enhancement stream is conceptually a compensation stream, while the second enhancement stream is upsampled to provide a level of enhancement.

[0043] Looking at the process of generating the enhanced stream in more detail, the encoded base stream is decoded by the base decoder 114 to generate an encoded level 1 stream (i.e., a decoding operation is applied to the encoded base stream to generate a decoded base stream). The decoding may be performed by the decoding function or mode of the base codec. Then, a difference between the decoded base stream and the downsampled input video is created in the level 1 comparator 110 (i.e., a subtraction operation is applied to the downsampled input video and the decoded base stream to generate a first set of residuals). The output of the comparator 110 may be referred to as a first set of residuals, e.g., a surface of a frame of residual data, and a residual value is determined for each picture element at the resolution of the output of the base encoder 113, the base decoder 114, and the downsampling block 105.

[0044] The differences are then encoded by a first encoder 115 (i.e., a level 1 encoder) to generate an encoded level 1 stream 102 (i.e., an encoding operation is applied to a first set of residuals to generate a first enhanced stream).

[0045] As mentioned above, the enhanced stream may include a first level of enhancement 102 and a second level of enhancement 103. The first level of enhancement 102 may be considered to be a stream that provides a level of correction to a corrected stream, e.g., a base encoded / decoded video signal at a lower resolution than the input video 100. The second level of enhancement 103 may be considered to be a further level of enhancement that transforms the corrected stream into the original input video 100, e.g., applies a level of enhancement or correction to a signal reconstructed from the corrected stream.

[0046] In the embodiment of FIG. 1, the second level enhancement 103 is created by encoding a further set of residuals. The further set of residuals is generated by a level 2 comparator 119. The level 2 comparator 119 determines the difference between an upsampled version of the decoded level 1 stream, e.g., the output of the upsampling component 117, and the input video 100. The input to the upsampling component 117 is generated by applying a first decoder (i.e., a level 1 decoder) to the output of the first encoder 115. This generates a decoded set of level 1 residuals. These are then combined with the output of the base decoder 114 in a summation component 120. This effectively applies the level 1 residuals to the output of the base decoder 114. This allows the losses of the level 1 encoding and decoding process to be compensated by the level 2 residuals. The output of the summation component 120 can be considered as a simulated signal representing the output of applying level 1 processing to the encoded base stream 101 and the encoded level 1 stream 102 in the decoder.

[0047] As described above, the upsampled stream is compared to the input video, thereby creating a further set of residuals (i.e., a difference operation is applied to the upsampled re-created stream to generate a further set of residuals). The further set of residuals is then encoded by the second encoder 121 (i.e., the level 2 encoder) as a coded level 2 enhancement stream (i.e., an encoding operation is then applied to the further set of residuals to generate a coded level 2 enhancement stream).

[0048] Thus, as shown in FIG. 1 and described above, the output of the encoding process is a base stream 101 and one or more enhancement streams 102, 103, preferably including a first level of enhancement and a further level of enhancement. The three streams 101, 102, and 103 may be combined, with or without additional information such as a control header, to generate a combined stream for a video encoding framework that represents the input video 100. Note that the components shown in FIG. 1 may operate on blocks or coding units of data, for example, corresponding to a 2×2 or 4×4 portion of a frame at a particular level of resolution. The components operate without any inter-block dependency, and thus the components may be applied in parallel to multiple blocks or coding units within a frame. This differs from the comparative video encoding schemes, where there are dependencies (e.g., either spatial or temporal dependencies) between blocks. The dependencies of the comparative video encoding schemes limit the level of parallelism and require much higher complexity.

[0049] FIG. 1 shows a residual mode selection block 140. If a residual mode (RM) is selected, the residual is processed (i.e., modified and / or ranked and selected) to determine which residual should be transformed and coded, i.e., which residual should be processed by the first and / or second encoders 115 and 121. Preferably, this processing is performed before entropy coding. The residual mode selection 140 is an optional step that may configure or activate the processing or modification of the residual, i.e., the processing of the residual is performed according to the selected mode. For example, the "residual mode (RM)" may correspond to a residual pre-processing mode, in which the residual for the enhancement layer is pre-processed before coding. This mode may be turned on or off depending on the requirements. For example, the residual mode may be configured via one or more control headers or fields. In an alternative embodiment, the residual may always be modified (i.e., pre-processed), so no mode selection is necessary. In this case, the residual pre-processing may be hard-coded. Examples of residual processing are described in detail below. The residual mode, if selected, may act to filter the residual, preferably at a stage prior to the encoding subcomponent, within one or more of the level 1 and level 2 encoding operations.

[0050] The corresponding generalized decoding process is shown in the block diagram of Fig. 2. It can be said that Fig. 2 shows a low-complexity decoder corresponding to the low-complexity encoder of Fig. 1. The low-complexity decoder receives the three streams 101, 102, 103 generated by the low-complexity encoder together with a header 204 containing further decoding information. The encoded base stream 101 is decoded by a base decoder 210 corresponding to the base codec used in the low-complexity encoder. The encoded level 1 stream 102 is received by a first decoder 211 (i.e., a level 1 decoder), which decodes a first set of residuals encoded by the first encoder 115 of Fig. 1. In a first summation component 212, the output of the base decoder 210 is combined with the decoded residuals obtained from the first decoder 211. The combined video, which can be said to be a level 1 reconstructed video signal, is upsampled by an upsampling component 213. The encoded level 2 stream 103 is received by a second decoder 214 (i.e., a level 2 decoder). The second decoder 214 decodes a second set of residuals encoded by the second encoder 121 of FIG. 1. Although the header 204 is shown in FIG. 2 as being used by the second decoder 214, the header 204 may also be used by the first decoder 211, as well as the base decoder 210. The output of the second decoder 214 is a second set of decoded residuals. These may be of higher resolution relative to the first set of residuals and the input to the upsampling component 213. In the second summation component 215, the second set of residuals from the second decoder 214 is combined with the output of the upsampling component 213, i.e., the upsampled reconstructed level 1 signal, to reconstruct the decoded video 250.

[0051] Like the low-complexity encoder, the low-complexity decoder of Figure 2 may operate in parallel on different blocks or coding units of a given frame of a video signal. Furthermore, decoding by two or more of the base decoder 210, the first decoder 211, and the second decoder 214 may occur in parallel. This is possible because there are no inter-block dependencies.

[0052] In the decoding process, the decoder may parse the header 204 (which may include global configuration information, picture or frame configuration information, and data block configuration information) and configure a low-complexity decoder based on those headers. To recreate the input video, the low-complexity decoder may decode each of the base stream, the first enhancement stream, and the further or second enhancement stream. Frames of the streams may be synchronized and then combined to derive the decoded video 250. The decoded video 250 may be a lossy or lossless reconstruction of the original input video 100, depending on the configuration of the low-complexity encoder and decoder. In many cases, the decoded video 250 may be a lossy reconstruction of the original input video 100, where losses have reduced or minimal impact on the perception of the decoded video 250.

[0053] In each of Figures 1 and 2, the encoding operations of level 2 and level 1 may include steps of transform, quantization, and entropy encoding (e.g., in that order). Similarly, at the decoding stage, the residual may be passed through an entropy decoder, an inverse quantizer, and an inverse transform module (e.g., in that order). Any suitable encoding and corresponding decoding operations may be used. However, preferably, the encoding steps of level 2 and level 1 may be performed in software (e.g., by one or more central processing units or graphical processing units in the encoding device).

[0054] The transforms described herein may use directional decomposition transforms, such as Hadamard-based transforms. Both may involve small kernels or matrices applied to flattened coding units of the residual (i.e., 2x2 or 4x4 blocks of the residual). Details of the transforms may be found, for example, in patent applications PCT / EP2013 / 059847 or PCT / GB2017 / 052632, which are incorporated herein by reference. The encoder may select between different transforms used, for example, between the size of the kernel applied.

[0055] The transformation may convert the residual information into four surfaces. For example, the transformation may generate the following components: average, vertical, horizontal, and diagonal.

[0056] In summary, the methods and apparatus herein are based on an overall approach that builds on existing encoding and / or decoding algorithms (such as MPEG standards such as AVC / H.264, HEVC / H.265, and non-standard algorithms such as VP9, ​​AV1, etc.) that serve as a baseline for an enhancement layer that works appropriately for different encoding and / or decoding approaches. The idea behind the overall approach of the embodiment is to hierarchically encode / decode video frames, as opposed to using a block-based approach as used in the MPEG family of algorithms. Hierarchically encoding frames includes generating residuals for the entire frame, then for thinned frames, etc.

[0057] The video compression residual data of a full size video frame may be referred to as LoQ-2 (e.g., 1920×1080 for HD video frames), while the video compression residual data of a decimated frame may be referred to as LoQ-x, where x indicates a numerical value corresponding to the hierarchical decimation. In the illustrated embodiment of FIG. 1 and FIG. 2, the variable x may have values ​​of 1 and 2, representing the first and second enhanced streams. Thus, there are two hierarchical levels at which the compressed residuals will be generated. Other naming schemes of the levels may also be applied without change in functionality (e.g., the level 1 and level 2 enhanced streams described herein may alternatively be referred to as level 1 and level 2 streams, representing a countdown from the highest resolution).

[0058] A more detailed encoding process is shown in the block diagram of FIG. 3. The encoding process is split in two, as indicated by the dashed line. Below the dashed line is the base level of the encoder 300, which may be usefully implemented in hardware or software. Above the dashed line is the enhanced level, which may be usefully implemented in software. The encoder 300 may comprise only the enhanced level processes, or a combination of the base level processes and the enhanced level processes, as desired. The encoder 300 may be usefully implemented in software, especially in the enhanced level. This configuration allows, for example, a legacy hardware encoder that provides a base level to be upgraded using a firmware (e.g., software) update, where the firmware is configured to provide the enhanced level. In newer devices, both the base level and the enhanced level may be provided in hardware and / or a combination of hardware and software.

[0059] The encoder topology at a general level is as follows: The encoder 300 comprises an input I for receiving an input signal 30. The input signal 30 may comprise an input video signal to which the encoder is applied on a frame-by-frame basis. The input I is connected to a downsampler 305D and a processing block 300-2. The downsampler 305D may correspond to the downsampling component 105 of FIG. 1, and the processing block 300-2 may correspond to the second encoder 121 of FIG. 1. The downsampler 305D outputs to a base codec 320 at the base level of the encoder 300. The base codec 320 may implement the base encoder 113 and the base decoder 114 of FIG. 1. The downsampler 305D also outputs to a processing block 300-1. The processing block 300-1 may correspond to the first encoder 115 of FIG. 1. The processing block 300-1 passes the output to an upsampler 305U, which then outputs to the processing block 300-2. The upsampler 305U may correspond to the upsampling component 117 of FIG. 1. Each of the processing blocks 300-2 and 300-1 comprises one or more of the following modules: a transform block 310, a quantization block 320, an entropy coding block 330, and a residual processing block 350. The residual block 350 may precede the transform block 310 and / or the control residual processing in the processing block 300. The processing order may be as shown in the figure.

[0060] An input signal 30, e.g., a full (or highest) resolution video in this embodiment, is processed by the encoder 300 to generate various encoded streams. The base encoded stream is generated by feeding a downsampled version of the input video 30 to a base codec 320 (e.g., AVC, HEVC, or any other codec) at a base level using a downsampler 305D. The base encoded stream may include the output of a base encoder of the base codec 320. The first encoded stream (encoded level 1 stream) is created by reconstructing the encoded base stream to create a base reconstruction and then taking the difference between the base reconstruction and the downsampled version of the input video 30. Reconstructing the encoded base stream may include receiving a decoded base stream from the base codec (i.e., the input to processing block 300-1 includes the base decoded stream shown in FIG. 1). The difference signal is then processed in block 300-1 to create an encoded level 1 stream. Block 300-1 comprises a transform block 310-1, a quantization block 320-1 and an entropy coding block 330-1. A second coded stream (coded level 2 stream) is created by upsampling a corrected version of the base reconstruction using the upsampler 305U and obtaining the difference between the corrected version of the base reconstruction and the input signal 30. This difference signal is then processed in block 300-2 to create a coded level 2 stream. Block 300-2 comprises a transform block 310-2, a quantization block 320-2, an entropy coding block 330-2 and a residual processing block 350-2. As with processing block 300-1, these blocks may be performed in the order shown in the figure (e.g., residual processing followed by transform, followed by quantization, followed by entropy coding).

[0061] Any known quantization scheme may be useful for quantizing the residual signal so that certain variables may assume only certain discrete magnitudes. In some cases, quantizing includes performing a division with a predetermined step size. This may be applied at both levels (1 and 2). For example, quantizing in block 320 may include dividing the transformed residual value by a step size. The step size may be predetermined and selected, for example, based on the desired level of quantization. In some cases, the division by the step size may be converted to a multiplication by an inverse step size, which may be more efficiently implemented in hardware. In this case, dequantizing, for example in block 320, may include multiplication by the step size. As described herein, entropy encoding may include run-length encoding (RLE), and the encoded output is then processed using a Huffman encoder. In some cases, only one of these schemes may be used if entropy encoding is desired.

[0062] The encoded base stream is sometimes called a base level stream.

[0063] FIG. 3 shows residual processing blocks 350-2, 350-1 located before the transform block 310. Although the residual processing is shown before the transform, optionally this processing step may be located elsewhere, e.g., later in the encoding process, but when located before the transform step, the residual processing may have the greatest impact throughout the encoding pipeline, since efficiencies are propagated through the pipeline. For example, if the residual values ​​are filtered at an early stage (e.g., by setting them to zero), this reduces the amount of calculations that need to be performed in subsequent stages in the processing block 300. The residual processing block 350 may be activated or configured by the residual mode selection block 140 (not shown in FIG. 3, but shown in FIG. 1). For example, the residual processing block 350 may be activated when a residual mode is selected (e.g., turned on). The residual mode may be selected independently for the first and second enhancement streams (e.g., residual processing blocks 350-2 and 350-1 may be activated and applied separately, one may be turned off while the other is on).

[0064] The residual processing block is configured to modify a set of residuals. Although certain specific functions of the residual processing block 310 are described in detail below, conceptually, the residual processing block 310 functions to modify the residuals. This may be considered a form of filtering or pre-processing. In certain embodiments, the residuals may be ranked or prioritized as part of the filtering or pre-processing, whereby those with higher ranks or priorities are passed on for further processing and those with lower ranks or priorities are not passed on for further processing (e.g., set to 0 or a corresponding low value). In effect, the residual processing block is configured to "bury" one or more residuals prior to the transformation, such that the transformation operates on a subset of the residuals.

[0065] The residual processing block 310 may be the same in the L2 and L1 paths, or may be configured differently (or not included in a particular path) to reflect the different nature of those streams.

[0066] Particular embodiments may implement different residual processing modes. The residual mode selection block 140 may indicate whether the residual should be processed and, in certain embodiments, also the type of processing to be performed. In general, an encoder (such as the low-complexity encoder of FIG. 1 or the encoder 300 of FIG. 3) may comprise a residual mode control component 140 that selects and implements a residual mode, and a residual mode implementation component that implements the processing of the selected residual mode in relation to one or more enhancement streams. In other cases, only the residual processing block 350 may be provided within each level of enhancement coding, without higher control functions (e.g., in a higher-level control component such as the control component 140). In this latter case, the functionality of the residual mode control component 140 may be considered to be incorporated in the first and / or second encoders 115 and 121 of FIG. 1.

[0067] Examples of residual modes that may be implemented include, but are not limited to, a mode in which no residual processing is performed, a binary mode in which a particular residual is multiplied by 0 or 1, a weighted mode in which the residual is multiplied by a weighting factor, a control mode in which a particular block or coding unit is not processed (e.g., equivalent to setting all residual values ​​in a 2x2 or 4x4 coding unit to 0), a ranked or prioritized mode in which the residuals are ranked in a list or given a priority and selected for further processing based on the rank or priority, a scoring mode in which the residuals are given a score that is used to configure the residual coding, and a categorization mode in which the residuals and / or picture elements are categorized and the corresponding residuals are modified or filtered based on the categorization.

[0068] As shown herein, once the residual is calculated (e.g., by comparators 110 and / or 119 in FIG. 1), the residual may be processed to determine how the residual is coded and transmitted. As previously mentioned, the residual is calculated by comparing the original form of the image signal with the reconstructed form of the image signal. For example, in one case, the residual of the L-2 enhancement stream is determined by dividing the output of the upsampling from the original form of the image signal (e.g., the input video as shown in the figure). The input to the upsampling can be said to be the reconstruction of the simulated decoded signal. In another case, the residual of the L-1 enhancement stream is determined by subtracting the image stream output by the base decoder from the downsampled form of the original image signal (e.g., the output of the downsampling).

[0069] For example, the residual may be categorized in order to process the residual in a selected residual mode. For example, the residual may be categorized in order to select a residual mode and / or to selectively apply pre-processing within a particular mode. The residual categorization process may be performed, for example, based on particular spatial and / or temporal characteristics of the input image. This is illustrated in FIG. 1 by the input to the residual mode selection component 140 from the input video 100. In other embodiments, the input may come from other signals within the encoder, including the downsampled video and / or the residual itself.

[0070] In one example, an input image is processed to determine for each element (e.g., a pixel, or a region including multiple pixels) and / or group of elements (e.g., a coding unit including a 2×2 or 4×4 region of pixels, or a tile including a set of coding units) whether the element and / or group of elements has a particular spatial and / or temporal characteristic. For example, the elements are measured against one or more thresholds to determine how to classify the element with respect to its respective spatial and / or temporal characteristic. The spatial characteristics may include a level of spatial activity between a particular element or group of elements (e.g., how much variation exists between adjacent elements), or a level of contrast between a particular element and / or group of elements (e.g., how different a group of elements is from one or more other groups of elements). In some cases, a contrast metric may be calculated for a frame of video at one or more resolutions and used as a basis for categorization. This contrast metric may be determined at a per picture element level (e.g., corresponding to a per residual element level) and / or at a group level (e.g., corresponding to a tile, coding unit, or block of residuals). The spatial characteristics may be a measure of change within a set of spatial directions (e.g., horizontal and / or vertical directions in a 2D planar image). The temporal characteristics may include the temporal activity of a particular element and / or group of elements (e.g., how different an element and / or group of elements is between elements and / or groups of elements placed together on one or more previous and / or future frames). The temporal characteristics may be a measure of change in the temporal direction (e.g., along a time series). The characteristics may be determined per element and / or group of elements, but may also be per pixel and / or per 2x2 or 4x4 residual block and / or per tile (e.g., group of residual blocks). In further embodiments, texture or level of detail may be used (e.g., how much detail is represented by an element or group of elements). Texture metrics indicative of texture or level of detail may be determined in a similar manner to the contrast metric.The metrics described herein may be normalized to be represented within a predetermined range, such as 0 to 1, or 0% to 100%, or 0 to 255 (i.e., an 8-bit integer). A tile may include a 16x16 set of picture elements or residuals (e.g., an 8x8 set of 2x2 coding units, or a 4x4 set of 4x4 coding units).

[0071] These spatial and / or temporal characteristics may be combined and / or weighted to determine a complexity measure for a group of elements. In some cases, the complexity measures or other metrics described herein may be determined prior to encoding (e.g., in an initial processing stage of the video file) and obtained at the encoding stage to apply residual processing. Similarly, metrics may be calculated periodically, for example, for a group of frames or planes. Furthermore, multiple different metrics may be stored and used for different sets of residuals, for example, a different metric may be pre-computed for each plane of a frame and used in subsequent comparisons for that plane of residuals.

[0072] Note that, for example, if a group of elements is static, temporal characteristics are important since it is easier for a viewer to spot minute details, and therefore it may be important to preserve the residual information, e.g., a particular static residual element may be given a higher priority than a comparison set of transient residual elements. Also, noise sources in the original video recording at a higher resolution (e.g., an L-2 enhancement stream) may result in many small but transient residual values ​​(e.g., normally distributed values ​​of -2 or -1, or 1 or 2), which may be given a lower priority and / or set to 0 prior to residual processing in the enhancement level encoder.

[0073] The categorization may associate a respective weight with each element and / or group of elements based on spatial and / or temporal characteristics of the element and / or group of elements. The weight may be a normalized value between 0 and 1.

[0074] In a residual mode, a decision may be made as to whether to code and transmit a given set of residuals. For example, in a residual mode, a particular residual (and / or a residual block, such as a 2×2 or 4×4 block described herein) may be selectively forwarded along the L-2 or L-1 enhancement processing pipeline by the ranking and / or selection components. In other words, different residual modes may have different residual processing in the L-2 and L-1 encoding components of FIG. 1. For example, in a residual mode, a particular residual may not be forwarded for further L-2 or L-1 encoding, e.g., may not be transformed, quantized, and entropy coded. In some cases, a particular residual may not be forwarded by setting the residual value to 0 and / or by setting a particular control flag associated with the residual or a group that includes the residual. The control flags are discussed in more detail below.

[0075] In one residual mode, a binary weight of 0 or 1 may be applied to the residuals, for example by the components discussed above. This may correspond to a mode in which selective residual processing is "on". In this mode, a weight of 0 may correspond to "ignoring" certain residuals, e.g., not forwarding them for further processing in the enhancement pipeline. In another residual mode, there may be no weighting (or the weight may be set to 1 for all residuals), which may correspond to a mode in which selective residual processing is "off". In yet another residual mode, a normalized weight between 0 and 1 may be applied to the residuals, or groups of residuals. This may indicate an importance or "usefulness" weight for reconstructing the video signal at the decoder, e.g., 1 indicates that the residual has normal use and values ​​less than 1 reduce the importance of the residual. In other cases, the normalized weight may be in another range, e.g., a range between 0 and 2 may emphasize certain residuals with a weight greater than 1.

[0076] In the residual mode described above, the residuals and / or groups of residuals may be multiplied with assigned weights, which may be assigned according to a categorization process applied to the corresponding set of elements and / or groups of elements. For example, in some cases, each element or group of elements may be assigned a class (e.g., 10 classes from 0 to 9) represented by an integer value selected from a predetermined set of integers or a predetermined range of integers. Each class may then have a corresponding weight value (e.g., 0 for class 0, 0.1 for class 1, or some other non-linear mapping). The relationship between the classes and the weight values ​​may be determined by analysis and / or experimentation, for example, based on image quality measurements at the decoder and / or within the encoder. The weights may then be used to multiply the corresponding residuals and / or groups of residuals, for example, the residuals and / or groups of residuals corresponding to the elements and / or groups of elements. In some cases, this correspondence may be spatial, for example, the residuals are calculated based on specific input element values, and categorization is applied to the specific input element values ​​to determine the weights for the residuals. In other words, categorization may be performed across elements and / or groups of elements of an input image, which may be a frame of a video signal, but weights determined from this categorization are then used to weight the co-located residuals and / or groups of residuals rather than the elements and / or groups of elements. In this manner, characterization may be performed as a separate process from the encoding process and may therefore be computed in parallel with the encoding of the residuals process.

[0077] To identify appropriate residuals to modify, the process may analyze the set of residuals and identify characteristics or patterns. Alternatively, the process may analyze the original input signal corresponding to that set of residuals. Furthermore, the process may predict the impact of that set (or a modified set) of residuals on a reconstructed image. Prediction may include reconstructing an image by combining the residuals with signals from lower levels, analyzing the reconstructed signal, and processing the residuals adaptively or iteratively.

[0078] It has been described above how to prevent certain residuals from being forwarded by setting the residual value to 0 and / or by setting a specific control flag associated with the residual or a group containing the residual. In the latter case, a set of flags or binary identifiers may be used, each corresponding to an element or group of elements of the residual. Each residual may be compared to the set of flags and prevented from being transformed based on the flag. In this way, the residual processing may be non-destructive. Alternatively, the residual may be deleted based on the flag. A set of flags is further advantageous because it may be used repeatedly for the residuals or groups of residuals and used as a reference, without having to process each set or residual independently. For example, each frame may have a binary bitmap that serves as a mask indicating whether the residual should be processed and coded. In this case, only the residuals with a corresponding mask value of 1 may be coded, and the residuals with a corresponding mask value of 0 may be set collectively to 0.

[0079] In the ranking and filtering mode, the set of residuals may be assigned a priority or rank, which is compared to a threshold to determine which residuals should be deselected or "buried". The threshold may be predetermined or may be variable according to a desired image quality, transmission speed, or computational efficiency. For example, the priority or rank may be a value within a given range, such as, for example, a floating point value between 0 and 1 or an integer value between 0 and 255. The upper limit of the range (e.g., 1 or 255) may indicate the highest rank or priority. In this case, the threshold may be set as a value within the range. In the comparison, residuals with a corresponding rank or priority value below the threshold may be deselected (e.g., set to 0).

[0080] A decoder 400 performing a decoding process corresponding to the encoder of FIG. 3 is shown in the block diagram of FIG. 4. The decoding process is divided in two, as indicated by the dashed line. Below the dashed line is a base level of the decoder 400 that may be usefully implemented in hardware. Above the dashed line is an enhanced level that may be usefully implemented in software. The decoder 400 may comprise only enhanced level processes or a combination of base level and enhanced level processes, as appropriate. The decoder 400, especially at the enhanced level, may be usefully implemented in software and may sit conveniently on top of legacy decoding techniques, especially legacy hardware techniques. Legacy techniques refer to older techniques previously developed and sold that are already present on the market, inconvenient and / or expensive to replace, and may still serve the purpose of decoding a signal. In other cases, the base level may include any existing and / or future video encoding tools or techniques.

[0081] The decoder topology at a general level is as follows: The decoder 400 comprises an input (not shown) for receiving one or more input signals including the encoded base stream, the encoded level 1 stream, and the encoded level 2 stream, together with an optional header containing further decoding information. The decoder 400 comprises a base decoder 420 at the base level and processing blocks 400-1 and 400-2 at the enhanced level. An upsampler 405U is provided between the processing blocks 400-1 and 400-2 and provides an upsampled version of the signal output by the processing block 400-1 to the processing block 400-2. The base decoder 420 may correspond to the base decoder 210 of FIG. 2, the processing block 400-1 may correspond to the first decoder 211 of FIG. 2, the processing block 400-2 may correspond to the second decoder 214 of FIG. 2, and the upsampler 405U may correspond to the upsampler 213 of FIG. 2.

[0082] The decoder 400 receives one or more input signals and directs the three streams generated by the encoder 300. The encoded base stream is directed to and decoded by a base decoder 420, which corresponds to the base codec 420 used in the encoder 300 and acts to reverse the encoding process at a base level. The encoded level 1 stream is processed by a block 400-1 of the decoder 400 to recreate a first set of residuals created by the encoder 300. The block 400-1 corresponds to a processing block 300-1 in the encoder 300 and acts to reverse or substantially reverse the processing of the block 300-1 at a basic level. The output of the base decoder 420 is combined with a first set of residuals obtained from the encoded level 1 stream. The combined signal is upsampled by an upsampler 405U. The encoded level 2 stream is processed by a block 400-2 to recreate further residuals created by the encoder 300. Block 400-2 corresponds to processing block 300-2 of encoder 300 and acts, at a basic level, to reverse or substantially reverse the processing of block 300-2. The upsampled signal from upsampler 405U is combined with a further residual obtained from the encoded level 2 stream to generate a level 2 reconstruction of input signal 30. The output of processing block 400-2 may be considered as a decoded video similar to decoded video 250 of FIG. 2.

[0083] As mentioned above, the enhancement stream may include two streams: an encoded level 1 stream (first level of enhancement) and an encoded level 2 stream (second level of enhancement). The encoded level 1 stream provides a set of correction data that may be combined with a decoded version of the base stream to generate a corrected picture.

[0084] FIG. 5 illustrates the encoder 300 of FIG. 1 in more detail. The encoded base stream is created directly by the base encoder 320E and may be quantized and entropy coded, if necessary. In some cases, these latter processes may be performed as part of the encoding by the base encoder 320E. The encoded base stream is decoded in the encoder 300 (i.e., a decoding operation is applied to the encoded base stream in the base decoding block 320D) to generate the encoded level 1 stream. The base decoding block 320D is illustrated as part of the base level of the encoder 300 and is shown separately from the corresponding base encoding block 320E. For example, the base decoder 320D may be a decoding component that complements the encoding component in the form of the base encoder 320E with a base codec. In other embodiments, the base decoding block 320D may instead be part of an enhancement level, in particular, part of the processing block 300-1.

[0085] Returning to FIG. 5, the difference between the decoded base stream output from the base decoding block 320D and the downsampled input video is created (i.e., a subtraction process 310-S is applied to the downsampled input video and the decoded base stream to generate a first set of residuals). Here, the term residual is used as known in the art, i.e., the residual represents the error or difference between a reference signal or frame and a desired signal or frame. Here, the reference signal or frame is the decoded base stream and the desired signal or frame is the downsampled input video. Thus, the residual used at the first enhancement level may be considered as a correction signal, since the residual may "correct" future decoded base streams to be a closer approximation of the downsampled input video used in the base encoding operation. This is useful, since it may correct for quirks or other idiosyncrasies of the base codec. These include, among others, the motion compensation algorithm applied by the base codec, the quantization and entropy coding applied by the base codec, and the block adjustment applied by the base codec.

[0086] The components of block 300-1 of FIG. 3 are shown in more detail in FIG. 5. In particular, a first set of residuals is transformed, quantized, and entropy coded to generate an encoded level 1 stream. In FIG. 5, a transform operation 310-1 is applied to the first set of residuals, a quantization operation 320-1 is applied to the transformed set of residuals to generate a set of quantized residuals, and an entropy coding operation 330-1 is applied to the quantized set of residuals to generate an encoded level 1 stream with a first level of enhancement. However, it should be noted that in other embodiments, only the quantization step 320-1 may be performed, or only the transform step 310-1 may be performed. Entropy coding may not be used, or may be used optionally in addition to one or both of the transform step 110-1 and the quantization step 320-1. The entropy encoding operation may be any suitable type of entropy encoding, such as a Huffman encoding operation, or a run-length encoding (RLE) operation, or a combination of both Huffman encoding and RLE operations. Residual processing operations 350-2, 350-1 may be provided prior to either or both of the transform operations 310-2, 310-1 in certain embodiments. The residual processing operation 350 applies residual pre-processing as described herein, such as, for example, filtering the residuals received by the block to pass only a subset of the received residuals to the transform operation 310 (or, in other words, set certain residual values ​​to zero so that the original values ​​are not processed in subsequent operations of the pipeline).

[0087] As mentioned above, the enhancement stream may include an encoded level 1 stream (first level enhancement) and an encoded level 2 stream (second level enhancement). The first level enhancement may be considered as a base level, enabling a corrected video, i.e., for example, to correct for encoder and / or decoder artifacts. The second level enhancement may be considered as a further level of enhancement that can be used to transform the corrected video into the original input video or a close approximation thereof (e.g., add detail or sharpness). For example, the second level enhancement may add fine details lost during downsampling and / or help to correct from errors introduced by one or more of the transform operation 310-1 and the quantization operation 320-1.

[0088] 3 and 5, a further level of enhancement information is created in block 300-2 by generating and encoding a further set of residuals, which are the differences between an upsampled version (via upsampler 305U) of a corrected version of the decoded base stream (reference signal or frame) and the input signal 30 (desired signal or frame) to generate an encoded level 2 stream.

[0089] To achieve reconstruction of the compensated version of the decoded base stream as produced in the decoder 400, at least some of the processing steps of the block 300-1 are reversed to mimic the process of the decoder 200 and to account for at least some losses and quirks of the transform and quantization process. To this end, the block 300-1 comprises an inverse quantization block 320-1i and an inverse transform block 310-1i. The quantized first set of residuals is inverse quantized in the inverse quantization block 320-1i and inverse transformed in the inverse transform block 310-1i in the encoder 100 to regenerate a decoder-side version of the first set of residuals.

[0090] The decoded base stream from the decoder 320D is combined with this improved decoder-side version of the first set of residuals (i.e., a summation operation 310-C is performed on the decoded base stream and the decoder-side version of the first set of residuals). The summation operation 310-C produces a reconstruction of a downsampled version of the input video, as would possibly be produced at a decoder - i.e., a reconstructed base codec video. As shown in Figures 3 and 5, the reconstructed base codec video is then upsampled by the upsampler 305U.

[0091] The upsampled signal (i.e., a reference signal or frame) is then compared to the input signal 30 (i.e., a desired signal or frame) to generate a second set of residuals (i.e., a differencing operation 300-S is applied to the upsampled reconstructed stream to generate a further set of residuals). The second set of residuals is then processed in block 300-2 to become an encoded level 2 stream (i.e., an encoding operation is then applied to the further or second set of residuals to generate a further or second encoded enhanced stream).

[0092] In particular, the second set of residuals is transformed (i.e., a transform operation 310-2 is performed on the further set of residuals to generate a further transformed set of residuals). The transformed residuals are then quantized and entropy coded in the manner described above with respect to the first set of residuals (i.e., a quantization operation 320-2 is applied to the transformed set of residuals to generate a further set of quantized residuals, and an entropy coding operation 320-2 is applied to the quantized further set of residuals to generate an encoded level 2 stream including a further level of enhancement information). However, only the quantization step 20-1 may be performed, or only the transform and quantization steps. Entropy coding may optionally be used in addition. Preferably, the entropy coding operation may be a Huffman coding operation, or a run-length coding (RLE) operation, or both. Similar to block 300-1, residual processing operation 350-2 serves to pre-process, ie, filter, the residual prior to the encoding operation of this block.

[0093] Thus, as shown in FIG. 3 and FIG. 5 and as described above, the output of the encoding process is a base stream at a base level, and preferably one or more enhanced streams at enhanced levels including a first level of enhancement and a further level of enhancement. As discussed with reference to the previous embodiment, since there is no inter-block dependency, the operations of FIG. 5 may be applied in parallel to the coding units or blocks of color components of a frame. The coding of each color component in a set of color components may also be performed in parallel (e.g., such that the operations of FIG. 5 are repeated according to (number of frames)*(number of color components)*(number of coding units per frame). It should also be noted that different color components may have different numbers of coding units per frame, and for example, a luma (e.g., Y) component may be processed at a higher resolution than a set of chroma (e.g., U or V) components, since human vision may detect changes in brightness more than changes in color.

[0094] The encoded base stream and one or more enhancement streams are received at a decoder 400. Figure 6 shows the decoder of Figure 4 in more detail.

[0095] The encoded base stream is decoded in the base decoder 420 to generate a base reconstruction of the input signal 30 received at the encoder 300. This base reconstruction may in fact be used to provide a viewable rendition of the signal 30 at a lower quality level. However, the main purpose of this base reconstruction signal is to provide a base for a higher quality rendition of the input signal 30. To that end, the decoded base stream is provided to a processing block 400-1, which also receives the encoded level 1 stream and reverses any encoding, quantization and transformation applied by the encoder 300. The block 400-1 comprises an entropy decoding process 430-1, an inverse quantization process 420-1 and an inverse transform process 410-1. Optionally, only one or more of these steps may be performed depending on the operations performed in the corresponding block 300-1 in the encoder. By performing these corresponding steps, a decoded level 1 stream including a first set of residuals is made available to the decoder 400. The first set of residuals is combined with the decoded base stream from the base decoder 420 (i.e., a summation operation 410-C is performed on the decoded base stream and the decoded first set of residuals to generate a reconstruction of a downsampled version of the input video, i.e., a reconstructed base codec video). As shown in Figures 4 and 6, the reconstructed base codec video is then upsampled by the upsampler 405U.

[0096] Further, optionally in parallel, the encoded level 2 stream is processed in block 400-2 of FIG. 2 to generate a decoded further set of residuals. Similar to processing block 300-2, processing block 400-2 comprises an entropy decoding process 430-2, an inverse quantization process 420-2, and an inverse transform process 410-2. Of course, these operations correspond to those performed in block 300-2 in encoder 300, and one or more of these steps may be omitted as required. Block 400-2 generates a decoded level 2 stream including a further set of residuals, which are summed in operation 400-C with the output from upsampler 405U to create a level 2 reconstruction of input signal 30. The level 2 reconstruction may be considered as an output decoded video, such as 250 in FIG. 2. In certain embodiments, it may also be possible to obtain and view the reconstructed video passed to upsampler 405U, which may have the first level of enhancement but at a lower resolution than the level 2 reconstruction.

[0097] Thus, as illustrated and described above, the output of the decoding process is a (optional) base reconstruction and a higher level reconstruction of the original signal. This embodiment is particularly suitable for creating videos encoded and decoded at different frame resolutions. For example, the input signal 30 may be an HD video signal including frames at a resolution of 1920×1080. In some cases, both the base reconstruction and the level 2 reconstruction may be used by the display device. For example, in the case of network traffic, the level 2 stream may be interrupted to a greater extent than the level 1 and base streams (because the level 2 stream may contain up to four times the amount of data where downsampling reduces the dimensionality in each direction by two). In this case, when traffic occurs, the display device may revert to displaying the base reconstruction while the level 2 stream is interrupted (e.g., while the level 2 reconstruction is unavailable), and when network conditions improve, revert to displaying the level 2 reconstruction. A similar approach may be applied when the decoding device is resource constrained; for example, a set-top box performing a system update may have an operation-based decoder 220 to output a base reconstruction, but may not have the processing power to compute a level 2 reconstruction.

[0098] The encoding configuration also allows a video distributor to distribute video to a heterogeneous set of devices, where devices with only the base decoder 220 may watch the base reconstruction, while devices with the enhanced level may watch the higher quality level 2 reconstruction. In the comparative case, two full video streams of separate resolutions were required to serve both sets of devices. The enhanced streams of level 2 and level 1 may be coded more efficiently because they code residual data, e.g., the distribution of residual data typically has most of their mass around 0 (i.e., no difference) and typically takes a small range of values ​​around 0. This may be the case especially after quantization. In contrast, full video streams of different resolutions would have different distributions with non-zero means or medians, requiring higher bit rates for transmission to the decoder.

[0099] As can be seen by the examples of Figures 4 and 6, the residual mode may be applied at the encoder and the decoder may not require any additional residual processing. However, when residual processing is applied at the encoder, the level 1 and / or level 2 enhancement streams received at the decoder may differ from a comparison case where no residual processing is applied at the encoder. For example, when residual processing is applied, such as in any of the examples described herein, the level 1 and / or level 2 enhancement streams will typically contain a larger number of zero values ​​that can be more efficiently compressed by the entropy encoding stage.

[0100] 7 shows an example implementation of the encoding process described and illustrated above, expanded in detail to clearly identify the encoding and decoding steps of the stream.

[0101] In general, these steps include a residual filtering mode step, a transform step, a quantization step, and an entropy coding step. The encoding process identifies whether a residual filtering mode is selected. The residual filtering mode may include a form of residual ranking. At the lowest level, the ranking may be binary, e.g., the residual may be ranked as either 0 or 1, and if the residual is ranked 0, the residual may not be selected for further processing, and only the residuals ranked 1 may be passed for further processing. In other cases, the ranking may be based on more levels. If a residual mode is selected, a residual filtering step may be performed (e.g., a residual ranking operation may be performed on the first step of the residuals to generate a ranked set of residuals). The ranked set of residuals may be filtered so that not all residuals are coded into the first enhancement stream (or correction stream). In some cases, the ranking and filtering steps may be combined into a single step, i.e., some residual values ​​are filtered out while other residual values ​​are passed on for encoding.

[0102] In the example of Figure 7, if a residual mode is applied such that the residual values ​​are processed before encoding within one or more enhancement levels, the results of the residual processing (e.g., a modified set of residuals) are transformed, quantized, and entropy coded to generate an encoded level 1 or level 2 stream. If a residual mode is not selected, the residual values ​​may pass through the residual processing components for transformation, quantization, and entropy coding.

[0103] As mentioned above, it is generally preferable to "bury" the residuals rather than the transformed coefficients. This is because processing the residuals at an early stage, for example by filtering them based on rank or other categorization, means that values ​​may be set to 0, simplifying the calculations at later, more computationally expensive stages. Furthermore, in some cases, the residual mode may be set at a block or tile level. In this case, the residual pre-processing (i.e., the residual mode) may be selected for all residual values ​​corresponding to a particular coding unit, or for a particular group of coding units. Since there is no inter-block dependency, it does not matter if certain residual values ​​are pre-processed while other residual values ​​are not pre-processed. The ability to select the residual mode at the block or tile level increases the flexibility of the proposed coding scheme.

[0104] It is further contemplated that in addition to or instead of modifying the residual, the quantization parameters of subsequent quantization steps may be modified. In certain embodiments, a quantizer dead zone may be modified according to a threshold that prevents the residual from being transformed. A dead zone is a region of the spectrum where values ​​are not quantized. This dead zone may correspond to a distance from a threshold or may be a multiplier (e.g., of the step size). In further embodiments, the quantizer step size may be modified based on the processing.

[0105] Similarly, feedback mechanisms from the quantization operation may affect the residual processing operation: for example, if a transform coefficient is not quantized or is quantized to zero, the residual underlying the transform coefficient does not need to be transformed and may be deselected.

[0106] In further embodiments, a "pre-quantization" operation may be performed in which a first stage of quantization is performed on the residual (e.g., in addition to and prior to the quantization operation 320 shown in the figure). The modification of the residual may include "pre-quantization", or further modification may be performed on the (pre-)quantized residual. Further quantization operations may be performed after modification of the residual in block 320. In some cases, "pre-quantization" may also include applying a dead zone, which may be configurable based on a quantization step width (e.g., determined for a given residual element and / or group of residual elements). More details of pre-quantization are provided below in the context of FIG. 11.

[0107] FIG. 7 illustrates a residual mode control block 360-1 that may be used to apply a residual mode at one or more later stages in the encoding pipeline. Here, the residual mode control is shown only in the L1 path, but may also be configured in the L2 path. The residual mode control block 360-1 is preferably located between the quantization 320-1 block and the entropy coding 330-1 block. In this case, the residual values ​​may be categorized, ranked, and / or assigned a score in the residual mode selection block 350-1, but modification of the residual values ​​may occur after the residual mode selection block 350-1. Although not shown in the figure, the residual mode control block 360-1 may control one or more of the transform operation 310-1 and the quantization operation 320-1. In some cases, the residual mode selection block 350-1 may set control flags for the residual elements (e.g., as described above), and these control flags may be used by the residual mode control block 360-1 to control one or more of the transform operation 310-1 and the quantization operation 320-1, or further operations after the quantization operation 320-1. In some cases, all residual values ​​may be processed by the transform operation 310-1 and the quantization operation 320-1, but may be filtered, weighted, and / or set to zero via the residual mode control block 360-1. In other cases, the quantization operation 320-1 may be configured to apply a coarser level of quantization based on the rank or priority (including binary rank and priority) of the residuals, such that the quantization operation 320-1 effectively sets a larger percentage of the residual values ​​to zero compared to when the residual mode is not activated.

[0108] Residual mode control block 360-1 also optionally provides some degree of feedback, analyzing the residuals for the effect of the treatment and determining whether the treatment is having the proper effect or whether the treatment should be adjusted.

[0109] FIG. 8 shows an embodiment 800 in which a residual mode is applied. The embodiment 800 relates to an embodiment in which classification (i.e. categorization) and weighting are applied. The concepts described with reference to this embodiment may also be partially applied to other residual modes. This embodiment relates to an L-2 stream, but a similar set of components may be provided for an L-1 stream. This embodiment is described with reference to a 2×2 coding unit, but other coding units and / or pixel groupings may be used. A set of input image elements 801 (pixel values ​​i ij The input image data (denoted as x, y, z, y, z; for example, these may be 16-bit or 8-bit integers representing a particular color component such as one of YUV or RGB, where i indicates an image row and j indicates an image column) are classified via a classification process 802 to generate a set of class indications 803 (e.g., with an integer range of 0 to 4 representing five classes). The classes may indicate levels of contrast and / or texture. In other examples, the "classes" may include ranges of metrics such as contrast and / or texture metrics for groupings of pixels or residuals.

[0110] In FIG. 8, the class indication 803 may then be used by a weight mapping component 804 to obtain a set of weights 805 associated with the class indication 803. In this simple example, the weights are a set of values ​​from 0 to 1. Each class may have an associated weight, which may be obtained from a lookup table. In other cases, each weight may be a function of the class or metric value (e.g., as an example, the weights in FIG. 8 are one-tenth of the class value, but the relationship between class value and weight may be any relationship as set by a lookup table).

[0111] At the same time, in FIG. 8, a set of reconstructed upsampled elements 806 (elements u ij ) is subtracted from the input image elements 801 by a subtraction component 807 to obtain an initial set of residuals 808 (elements r ijAs shown in the figure, each coding unit or block of residual values ​​may be associated with a corresponding coding unit or block of picture elements and / or reconstructed picture elements at a particular resolution (for level 1 residuals, a similar process may be applied, but the picture elements may correspond to downsampled pixels). The residual 808 and a set of weights 805 are then multiplied by the residual 808 with the set of weights 805 to produce a modified residual (r' ij 8 , the original residual values ​​r 10 are not passed on to further processing, but instead are set to 0. Residuals with non-zero weights applied (such as 811) are passed on for further processing, but modified. In the simple case with binary weights (e.g., two classes), a weight of 1 may indicate that the residual value is processed without modification. A non-zero weight may modify the residual in a manner that modifies the way in which the residual is coded. For example, the classification in block 802 may include image classification, whereby the residual is modified based on the image classification of the particular pixel. In another case, the classification in block 802 may include assigning image values ​​801 to a particular grouping based on one or more of brightness and contrast. In other examples, the classification in block 802 may select a single class and weight for a four element coding unit.

[0112] In some cases, the characterization may be performed remotely from the encoder and communicated to the encoder. For example, a pre-recorded movie or television program may be processed once (e.g., by applying classification 802 and weight mapping 804) to determine a set of residuals or a set of weights 805 for groups of residuals. These weights may be communicated over a network to the encoder, for example, these weights may include a residual mask as described with reference to Figures 9A-9C, as described in more detail below.

[0113] In some cases, instead of or not only weighting the residuals, the residuals may be compared to one or more thresholds derived from a categorization process. For example, the categorization process may determine a set of classes with an associated set of weights and thresholds or only an associated set of thresholds. In this case, the residuals are compared to the determined thresholds, and residuals below a certain threshold or thresholds are discarded and not coded. For example, additional thresholding may be applied to the modified residuals from FIG. 8, and / or the weight mapping 804 and weight multiplication 809 stages may be replaced by threshold mapping and threshold application stages. In general, in both cases of this example, the residuals are modified for further processing based on the categorization process, and the categorization process may be applied to the corresponding image elements.

[0114] 8, in certain implementations, the local classification step may be optional (e.g., as indicated by the dotted lines), in which case one or more of the class indication 803 and the set of weights 805 may be obtained by a local process (e.g., from a remote location and / or from a stored file).

[0115] The above-mentioned methods of residual mode processing may be applied at the encoder but not at the decoder. This therefore represents a form of asymmetric coding that may allow for increased resources at the encoder to improve communication. For example, the residual may be weighted to reduce the size of the data transmitted between the encoder and the decoder, allowing for improved quality for a constrained bitrate (e.g., if the discarded residual has reduced detectability at the decoder). Residual weighting may have complex effects on the transform and quantization. Thus, residual weights may be applied to control the transform and quantization operations, e.g., to optimize the bitstream given a particular available bandwidth.

[0116] In certain embodiments, the encoder (or encoding process) may communicate with one or more remote devices. FIG. 9A shows an encoder 900 communicating over a network 910 (represented by a cloud in the figure). The encoder may include an implementation of any of the encoders from the previous figures, such as, for example, the low-complexity encoder of FIG. 1 or the encoder 300 of any of FIG. 3, FIG. 5, or FIG. 7. In some cases, the encoder 900 may receive configuration data over the network 910 and / or transmit configuration data over the network 910. In the embodiment of FIG. 9A, the encoder receives one or more of encoder parameters and a residual mask. The encoder parameters may include values ​​of one or more parameters that control the encoder 900. In some cases, the encoder parameters may include parameters for one or more of the base encoder, the processing components for the level 1 stream, and the processing components for the level 2 stream. The encoder parameters may be used to configure one or more of the stream resolution, quantization, sequence processing, bit rate, and codec for each stream. The residual mask may include weights, e.g., from 0 to 1, to apply to a set of residuals, e.g., to a 2×2 or 4×4 grouping (i.e., block) of residuals. The residual mask may be similar to one of the class indications 803 and set of weights 805 of FIG. 8. The residual mask may be applied at a per-residual or per-residual group (e.g., coding unit or block) level. The residual mask may be provided as a surface for each frame of video (whereby there may be multiple surfaces for different color components). If the mask is applied at the group level, any received surface may be at reduced resolution (e.g., for a 2×2 coding block, the mask may include half-resolution video including the residual weight values). The residual mask may indicate a priority of the block for delivery to the decoder and / or for encoding. In another case, the residual mask may include weights that control processing of the block, e.g., certain blocks may be visually enhanced or weighted.The weighting may be set based on a class (e.g., a label or a numerical value) applied to one or more blocks of the residual. In some cases, the residual mask may be a binary mask (e.g., a binary bitmap) that indicates whether to encode the residual value.

[0117] In some cases, the encoder may be adapted to perform encoding at multiple bit rates. In this case, encoder parameters may be provided for each of the multiple bit rates. In some cases, configuration data received from the network may be provided as one or more of the global configuration data, on a per frame data and per block data basis. In an embodiment, the residual mask and temporal signaling may be provided on a per frame basis. For example, the multiple bit rates may be set based on the available capacity of the communication channel, e.g., a measured bandwidth, and / or a desired usage, e.g., 2 Mbps usage of a 10 Mbps downlink channel, etc.

[0118] The configuration data communicated from the encoder 900 may include one or more of a base codec type, a set of required bit rates, and sequence information. The base codec type may indicate the type of base encoder used for the current set of processing. In some cases, different base encoders may be available. In some cases, the base encoder may be selected based on the received base codec type parameter, and in other cases, the base codec type may be selected based on local processing within the encoder and communicated over the network. The set of required bit rates may indicate one or more bit rates used to encode the base stream and one or more of the two enhancement streams. The different streams may use different (or respective) bit rates. The enhancement streams may use additional bandwidth if available, e.g., if bandwidth is not available, the bandwidth may be used by the encoded base stream and level 1 stream to provide a first level of quality at a given bit rate, and the encoded level 2 stream may then use a second bit rate to provide further improvement. This approach may also be applied differently to the base stream and level 2 stream instead of the base stream and level 1 stream. The residual processing described herein may be used in conjunction with a bitrate parameter to control the bitrate of one or more of the enhancement streams.

[0119] In some cases, the encoder parameters received over the network may indicate one or more of the residual modes to be applied by the encoder. Again, the residual modes may be set at a per-frame, per-tile, and / or per-block or coding unit level. The encoder parameters may indicate the mode of each stream individually or may indicate a common mode of both enhancement streams. The residual mode parameters may be received by a residual mode selection component described herein. In some cases, the residual mode selection component may be omitted and the residual mode parameters may be received directly by other components of the encoder, e.g., components of the examples herein may receive the residual mode parameters from a cloud interface of the encoder. In some cases, each residual mode may be indicated by an integer value. The residual mode may indicate which form of residual (pre-)processing should be applied.

[0120] In some cases, the encoder 900 may have different configuration settings related to remote or cloud configuration. In one mode, which may be a "default" mode, the encoder 900 may be configured to make a remote program call over a network to obtain initial configuration parameters for performing encoding as described herein. In another mode, which may be a "custom" mode, the encoder 900 may obtain local parameter values ​​that indicate a particular user configuration, e.g., a particular set of tools used by the encoder 900 and / or the configuration of those tools. In some cases, the encoder 900 may have different modes that indicate which parameters should be obtained from a remote device and which parameters should be obtained from local storage.

[0121] FIG. 9B shows that the encoder 900 may transmit and / or receive configuration data to and / or from a remote control server 920 via a network 910. The control server 920 may comprise a server computing device that implements an application programming interface for receiving or transmitting data. For example, the control server 920 may implement a RESTful interface, whereby data may be communicated by (secure) Hypertext Transfer Protocol (HTTP) requests and responses. In another case, a side channel implemented using a specific communication protocol (e.g., transport layer or application layer) may be used for communication between the control server 920 and the encoder 900 via the network 910. The network 910 may include one or more wired and / or wireless networks, including local area networks and wide area networks. In some cases, the network 910 may include the Internet.

[0122] FIG. 9C illustrates how the encoder 900 may include a configuration interface 930 configured to communicate with, for example, a remote control server 920 over a network 910. The configuration interface 930 may include, for example, software that provides a hardware interface, such as an Ethernet and / or wireless adapter, and / or a communication stack for communicating over one or more communication networks. In FIG. 9C, configuration parameters and settings 932 used and / or stored by the encoder 900 are communicated over the network using the configuration interface 930. Encoder configuration parameters, which may be stored, for example, in one or more memories or registers, are received 934 from the configuration interface. In some cases, the encoder configuration parameters may control, for example, one or more of the downsampling, base encoder, and base decoder components within the encoder, as shown in the figure. The configuration interface also communicates L-1 control data 936 and L-2 control data 938 data to each of the L-1 and L-2 stream control components. These components may configure the use of tools in each enhancement stream. In some cases, the L-1 and L-2 stream control components control one or more of the residual mode selection, transform, quantization, residual mode control, and entropy coding components (e.g., as shown in the figures and described herein).

[0123] Using cloud configuration as described herein may provide implementation advantages. For example, the encoder 900 may be remotely controlled, for example, based on a network control system and measurements. The encoder 900 may also be upgraded to provide new functionality by upgrading firmware that provides enhanced processing with additional data, for example, based on measurements or pre-processing provided by one or more remote data sources or control servers. This provides a flexible manner for upgrading and controlling legacy hardware devices.

[0124] In certain embodiments, the residuals may be considered to be errors or differences at a particular level of quality or resolution. In the described embodiment, there are two levels of quality or resolution and thus two sets of residuals (L-1 and L-2). Each set of residuals described herein models a different form of error or difference. For example, the L-1 residuals typically correct for characteristics of the base encoder, e.g., correcting artifacts introduced by the base encoder as part of the decoding process. In contrast, for example, the L-2 residuals typically correct for complex effects introduced by the shift in the level of quality and difference introduced by the L-1 correction (e.g., artifacts produced by the L-1 encoding pipeline over a wider spatial scale, such as a region of 4 or 16 pixels). This means that it is not obvious that operations performed on one set of residuals necessarily have the same effect on another set of residuals, e.g., each set of residuals may have a different set of statistical patterns and correlations.

[0125] In the embodiment described herein, the residual is coded by a coding pipeline. This may include transform, quantization, and entropy coding operations. This may also include ranking, weighting, and filtering of the residual. These pipelines are shown in FIG. 1 and FIG. 3A and FIG. 3B. The residual is then sent to the decoder, for example, as L-1 and L-2 enhancement streams, and the L-1 and L-2 enhancement streams may be combined with the base stream as a hybrid stream (or may be sent separately). In some cases, a bit rate is set for a hybrid data stream including the base stream and both enhancement streams, and then different adaptive bit rates are applied to the individual streams based on the data being processed to meet the set bit rate (e.g., a high-quality video perceived with low levels of artifacts may be constructed by adaptively allocating bit rates to different individual streams, even at a frame-by-frame level, so that constrained data may be used by the most perceptually impactful individual streams, which may change as the image data changes).

[0126] A set of residuals as described herein may be considered sparse data, e.g., in many cases there is no variance at a given pixel or region, and the resulting residual value is zero. Looking at the distribution of residuals, most of the probability mass is assigned to small residual values ​​located near zero, e.g., for a particular video, values ​​such as -2, -1, 0, 1, 2, etc. occur most frequently. In some cases, the distribution of residual values ​​is symmetric or nearly symmetric about 0. For a particular test video, the distribution of residual values ​​was found to take a shape similar to a logarithmic or exponential distribution (e.g., symmetric or nearly symmetric) about 0. The exact distribution of residual values ​​may depend on the content of the input video stream.

[0127] The residuals may be treated as inherently two-dimensional images, such as delta images of differences. Viewed in this way, the sparseness of the data may be seen as manifesting in features such as "dots", small "lines", "edges", "corners", etc. that are visible in the residual image. These features are typically found to be perfectly uncorrelated (e.g., in space and / or time). They have properties that differ from those of the image data from which they are derived (e.g., pixel properties of the original video signal).

[0128] Because the characteristics of the residuals are different from the characteristics of the image data from which they are derived, it is generally not possible to apply standard encoding approaches, such as those found in conventional Moving Picture Experts Group (MPEG) encoding and decoding standards. For example, many comparison schemes use large transforms (e.g., transforms of large regions of pixels in a regular video frame). Due to the characteristics of the residuals, such as those described above, it would be very inefficient to use these relatively large transforms on the residual image. For example, it would be very difficult to encode a small dot in the residual image using large blocks designed for regions of regular images.

[0129] Certain embodiments described herein address these issues by instead using small and simple transform kernels (e.g., 2×2 or 4×4 kernels, Directional Decomposition and Directional Decomposition Squared, as presented herein). The transforms described herein may be applied using Hadamard matrices (e.g., 4×4 matrices for flattened 2×2 coded blocks, or 16×16 matrices for flattened 4×4 coded blocks). This moves in a different direction than comparative video coding approaches. Compression efficiencies arise when these new approaches are applied to blocks of residuals. For example, certain transforms produce uncorrelated coefficients (e.g., in space) that can be efficiently compressed. Correlation between coefficients can be exploited, for example, for lines in the residual image, but can result in coding complexity that is difficult to implement on legacy and low-resource devices, and often produces other complex artifacts that require correction. Pre-processing the residuals by setting certain residual values ​​to 0 (i.e., not forwarding them for processing) may provide a controllable and flexible scheme to manage bitrate and stream bandwidth, as well as resource usage. For example, an aggressive residual mode setting may be active to deselect a larger subset of the residual during times of high computational load and / or reduced bandwidth. Residual pre-processing may provide a complementary control path to controlling quantization parameters in the encoding pipeline.

[0130] Certain embodiments described herein take into account the temporal characteristics of the residual, e.g., along with the spatial characteristics. For example, in a residual image, details such as "edges" and "dots" that may be observed in the residual "image" show little temporal correlation. This is because "edges" in a residual image often do not translate or rotate like edges perceived in a regular video stream. For example, in a residual image, "edges" may actually change shape over time, e.g., a head turn may be captured in the "edges" of multiple residual images, but may not move in a standard manner (because "edges" reflect complex differences that depend on factors such as lighting, magnification, coding coefficients, etc.). These temporal aspects of a residual image, e.g., a residual "video" that includes successive residual "frames" or "pictures", typically differ from the temporal aspects of a conventional image, e.g., a video frame (e.g., in the Y, U, or V plane). Thus, it is not clear how to apply conventional coding approaches to the residual image, and indeed, it has been found that comparative video coding schemes and motion compensation approaches from standards are unable to code the residual data (e.g., in a useful manner). However, by using these temporal characteristics as a basis for ranking and filtering the residuals, it may be possible to discard residual information that has little effect on the perception of the decoded video signal. For example, transient residuals may be deselected by a pre-processing stage even though they are beyond the normal quantization dead zone. Classification and / or scoring based on one or more of luminance and contrast may also provide another way to reduce the energy of the residual signal while having minimal impact on perceptual quality (because human perception is biased such that certain luminance and contrast patterns are less likely to be observed). For example, sensitivity to contrast differences may depend on the average contrast level, effectively meaning that a contrast difference of a set magnitude at a low average contrast is less likely to be detected than the same contrast difference at a higher average contrast level.In this case, if a coding unit is classified as having low average contrast, the residuals may be deselected (or more heavily down-weighted) since they will be less perceptible compared to medium average contrast blocks. Similar effects are perceived for different spatial frequencies (i.e., texture), with certain textures being more observable than others. For example, small scale high spatial frequencies may be unresolvable, so residuals that are indicated as relating to these (e.g., via explicit classification or via representative metric evaluation) may be given a lower priority or ranking.

[0131] Furthermore, many comparative video coding approaches attempt to provide temporal prediction and motion compensation as a default for conventional video data. These "built-in" approaches may not only fail when applied to consecutive residual images, but may also occupy unnecessary processing resources (e.g., these resources may actually be used to the detriment of the video coding). These "built-in" approaches may also generate unnecessary bits that interrupt the allocated bit rate. It is not clear from conventional approaches how to address these issues.

[0132] To summarize some of the principles described herein in a specific use case, the encoder may first analyze the input video to identify certain spatial and / or temporal characteristics of the signal. From these characteristics, the encoder may create a weighted residual mask. For example, let us say that the input signal is a news broadcast where a high percentage of the video is portraits located substantially in the center of the frame. It will therefore be determined that the background of the video signal does not change substantially in time, and that the details that the viewer wants to see are in the facial expressions and details of the portraits in the center of the frame. The residual mask will therefore highlight that the most important residuals to be processed are located in this area of ​​the screen. The encoder will then start to encode the input video. In the residual processing step before the residuals are converted into transformed coefficients, the residuals of each frame are compared to the residual weighted mask and the residuals are weighted. According to a specified threshold set by the encoder, the less important ones of the residuals are deselected (according to the weighted mask) and are not transformed. Thus, the less important ones of the residual mask are not propagated through the pipeline. In summary, in this embodiment, in order to reduce computing resources and reduce the overall data size, only the most significant residuals of an image are processed.

[0133] In a similar example, suppose the input video represents sports. In this example, the encoder may analyze the input video and prepare a set of residual masks for each frame of the video. For example, the residual masks may prioritize areas of the picture where detail is needed, such as fast moving action, rather than the background of a sports field. Now, each frame may be compared to a particular residual weighted mask, where the residuals are weighted according to a value between 0 and 1, and filtered and deselected according to a threshold.

[0134] Now, suppose that instead of the encoder performing an analysis of the input video, the central server proposes residual weighted masks according to the type of input video. The central server may provide, for example, a set of residual weighted masks covering sports, movies, news, etc. When the encoder processes the residual masks, it may use the set of residual weighted masks according to the type of input signal being processed.

[0135] In a final embodiment, the central server may provide a set of companion residual weighted masks based on a centralized analysis of the input signal, so that the encoder may be made simpler and streamlined, with the analysis being performed on a computationally powerful and capable central server, i.e., the encoder may be "dumb" and utilize the provided set of residual masks in processing each of the residuals according to the masks proposed by the central server that performed the computationally intensive analysis.

[0136] For completeness, FIG. 10 illustrates the broad principles of the concepts described herein in the form of a flow chart. The method 1000 includes receiving an input signal (step 1001), generating one or more sets of residuals (step 1002), modifying one or more sets of residuals (step 1003), and encoding one or more sets of residuals (step 1004). The signal may include a video signal, and the input signal at step 1001 may include frames of video, and the method is repeated for multiple frames. The method may be adapted to perform the processing of any of the encoders described herein. The method may further include transmitting one or more of the base encoded stream, the first level (L-1) encoded stream, and the second level (L-2) encoded stream.

[0137] Corresponding decoding methods may also be provided. For example, a method of decoding a plurality of encoded streams into a reconstructed output video may include receiving a first base encoded stream, decoding the first base encoded stream according to a first codec to generate a first output video, receiving one or more further encoded streams, decoding the one or more further encoded streams to generate a set of residuals, and combining the set of residuals with the first video to generate a decoded video. Further adaptations may also be performed as described.

[0138] In the method 1000 of FIG. 10, modifying one or more sets of residuals may include ranking the set of residuals and selecting a subset of the residuals to be transformed and coded based on a prior analysis of the set of residuals. In one embodiment, the method 1000 includes analyzing the set of residuals and performing or not performing the following steps of ranking the set of residuals and selecting a subset of the residuals to be transformed and coded based on the analysis. In one embodiment, the method 1000 includes analyzing the set of residuals, ranking the set of residuals, and selecting a subset of the residuals to be transformed and coded, such that the steps of ranking and / or selecting are performed differently based on the analysis. In these embodiments, applying a transform as part of the coding step 1004 is performed on the selected subset of the residuals. These steps may be performed on one or more of the level 1 and level 2 sets of residuals as described herein.

[0139] In some cases, step 1003 of method 1000 includes receiving a set of residual weights and applying the set of residual weights to the set of residuals to generate modified residuals. For example, this may be applied according to the embodiment of FIG. 8 or as a variation of this embodiment. In some cases, the embodiment may be adapted to threshold the modified residuals using a set of thresholds. In certain embodiments, one or more of the set of residual weights and the set of thresholds are determined based on a classification of the input video. In certain embodiments, the set of residual weights includes a residual mask received from a remote location. In certain embodiments, one or more of the set of residual weights and the set of thresholds are applied to a group of residuals. The residual mask may be a binary mask in a base case, whereby the residuals may be ranked as either "to be processed" or "to be discarded".

[0140] A method has been described above in which a set of residuals may be modified to improve the efficiency of a pipeline, including a step of pre-quantization. In summary, it has been described that a process may determine a set of perceptual metrics corresponding to a set of residuals, selectively pre-quantize the set of residuals based on the set of perceptual metrics, and transform and quantize one or more sets of modified residuals to generate one or more respective encoded streams.

[0141] FIG. 11 shows a diagram of how such pre-quantization may be implemented. In FIG. 11, an axis 1110 is shown representing the value of a perceptual metric. The process compares the perceptual metric for one or more residuals to a set of ranges indicated by the axis 1110. In some cases, the perceptual metric may be determined for each 2×2 or 4×4 coding unit, or for a 16×16 tile. The perceptual metric may be determined based on at least a luminance (e.g., Y) picture element. The perceptual metric may be determined for a picture element corresponding to a given set of residuals (e.g., when the picture element and the residuals are associated with the same spatial index in the image matrix). The perceptual metric may be based on one or more of texture and contrast, as described above. Conceptually, where along the visualized axis 1110 the perceptual metric corresponding to a particular residual lies indicates which action should be taken for that residual. The axis 1110 of Figure 11 implies that a high perceptual metric is negative (e.g., used to filter out the residual) and a low perceptual metric indicates high priority (e.g., used to pass the residual on for processing), although this could of course be reversed. What is visually shown is that important residuals have corresponding perceptual metrics on the left side of the axis, and unimportant residuals have corresponding perceptual metrics on the right side of the axis.

[0142] In response to a perceptual metric falling within the first range 1118, one or more residuals are not coded. That is, residuals having metrics within the first range 1112 are "buried" or, alternatively, set to or quantized to a zero value. Conceptually, all residuals after the marker 1124 are "buried."

[0143] In response to the perceptual metric falling within the second range 1116, one or more residuals are compared to a pre-quantization dead zone, and if one or more residuals fall within the dead zone, one or more residuals are not coded. The dead zone may be a function of the quantization step width of the residuals (e.g., 5 times the step width). The step width may be a dynamic parameter that varies by residual position (e.g., by residual or group of residuals) or a static parameter for all residuals. All residuals having metrics that fall between the Start marker 1122 and the All marker 1124 may be buried if they fall within a defined dead zone, with the Start marker 1122 indicating where the residuals begin to be "buried" using the dead zone and the All marker 1124 indicating where all residuals are "buried" (e.g., regardless of their value). The term threshold may be used interchangeably with the term marker herein, but applicants use the term marker to more closely and visually correspond to the axes of FIG. 11.

[0144] In response to the perceptual metric falling within a third range 1114 between a marker or threshold 1120 and a Start marker 1122, one or more residuals are pre-quantized with a pre-quantization step size. None of these residuals are buried, but they are pre-quantized with a different set of parameters than the normal quantization operation later in the encoding. For example, the pre-quantization step size may be a multiple of the step size used for later quantization (e.g., double the normal step size).

[0145] In response to the perceptual metric falling within the fourth range 1112, one or more residuals are passed for encoding without modification. Thus, residuals having a high priority (i.e., a good perceptual metric) are not modified.

[0146] FIG. 12 conceptually illustrates in a flow diagram 1200 how a perceptual metric may be calculated and modified depending on a corresponding set of residuals, and how a corresponding range of actions may be calculated or identified. The process considers a group of adjacent residuals, i.e., a neighboring subset of the set of residuals. This may be a coding unit or tile as described above. An initial perceptual metric is first identified in block 1208 based on one or more of contrast, texture, or luminance of a picture element associated with the group. The perceptual metric may be determined in a manner similar to that described above and may be based on one or more of the picture elements and residuals as well described above (e.g., with reference to FIG. 8). These terms are used elsewhere herein, and other characteristics may be similarly used to calculate the perceptual metric as described elsewhere. In some cases, an initial perceptual metric may be calculated and then normalized within a predetermined range for later comparison.

[0147] The remaining blocks of the method perform comparisons with a set of thresholds similar to those shown in FIG. 11. In block 1224, the step width (SW) from the (later) quantization operation for the grouping of residuals is obtained and used to determine a first threshold. The ranges and thresholds are described above in the context of FIG. 11. Block 1224 may determine the value of threshold 1120 of FIG. 11. If the generated perceptual metric is less than the first threshold (decision 1220: "yes"), all residuals are kept, i.e., the metric is within range 1112. If the metric is greater than or equal to the first threshold (decision 1220: "no"), in block 1228, a further set of thresholds is generated. These may include thresholds 1122 and 1124 of FIG. 11, or another set of thresholds. These thresholds may be considered as a form of smoothing thresholds when filtering the residuals. The perceptual metric is then compared to a second threshold (e.g., threshold 1122) in decision block 1230. If the perceptual metric is within the next range 1114, the residuals are prequantized with the determined step size in block 1232. If the metric is within a further range, the metric is compared to a further, third threshold in decision block 1234. The third threshold may include threshold 1124, and based on this comparison, all residuals in the grouping are buried in block 1236, or a portion of the group or set of residuals is buried by applying a dead zone, i.e., by the dead zone extension described above.

[0148] For example, the methods and processes described herein may be embodied as code (e.g., software code) and / or data in both the streaming server, or the client device, or the encoder and decoder implemented in the client device decoding from the data store. The encoder and decoder may be implemented in hardware or software, as is well known in the art of data compression. For example, hardware acceleration using a specially programmed Graphical Processing Unit (GPU) or a specially designed Field Programmable Gate Array (FPGA) may provide certain efficiencies. For completeness, such code and data may be stored on one or more computer-readable media, which may include any device or medium that may store code and / or data for use by a computer system. When the computer system reads and executes the code and / or data stored on the computer-readable medium, the computer system executes the methods and processes embodied as data structures and code stored in the computer-readable storage medium. In certain embodiments, one or more of the steps of the methods and processes described herein may be executed by a processor (e.g., a processor of a computer system or a data storage system).

[0149] In general, any of the functions described in this text or shown in the figures may be implemented using software, firmware (e.g., fixed logic circuitry), programmable or non-programmable hardware, or a combination of these implementations. As used herein, the term "component" or "function" generally refers to software, firmware, hardware, or a combination of these implementations. For example, in the case of a software implementation, the term "component" or "function" may refer to program code that performs specified tasks when executed on one or more processing devices. The illustrative separation of components and functions into separate units may reflect any actual or conceptual physical groupings and allocations of such software and / or hardware and tasks.

Claims

1. 1. A method for encoding an input signal, the method comprising: Receiving an input signal; generating a set of residuals based on differences between the input signal and one or more reconstructed signals at one or more respective resolutions, wherein a first set of residuals is based on a comparison of a first version of the input signal to a first reconstructed version of the input signal, the first reconstructed version being derived from a base encoder, and a second set of residuals is based on a comparison of a second version of the input signal to a second reconstructed version of the input signal, the second reconstructed version being derived from the first reconstructed version; Selecting 140 a residual mode; modifying the first and second sets of residuals based on the selected residual mode; encoding the set of modified residuals to generate a respective encoded stream, the encoding being distinct from the base encoder; The encoding includes transforming the set of modified residuals; a second set of residuals that is not coded, and wherein the modifying includes selecting a subset of each set of residuals that is not coded, and wherein the modifying is performed separately on the first and second sets of residuals based on the selected residual mode, and wherein each set of residuals may be modified in the same manner, or in a different manner, or may not be modified at all.

2. the input signal is at a first resolution, and the method comprises: downsampling the input signal to create a downsampled signal at a second resolution; receiving a base encoded signal from the base encoder, the base encoded signal being generated by encoding the downsampled signal using the base encoder; reconstructing a signal from the base encoded signal to generate a first reconstructed signal in the one or more reconstructed signals; comparing the first reconstructed signal with the input signal to generate the first set of residuals; comparing the first reconstructed signal to the input signal to generate the first set of the residuals; decoding the base encoded signal to generate a base decoded signal; generating the first set of residuals using a difference between the base decoded signal and the downsampled version of the input signal; The method further comprising: generating a second set of the residuals, correcting the base decoded signal using the first set of residuals to produce a corrected decoded version; upsampling the corrected decoded version; and and generating the second set of residuals using a difference between the corrected decoded signal and the input signal.

3. 2. The method of claim 1, wherein the first set of residuals is at a first spatial resolution and the second set of residuals is at a second spatial resolution, the first spatial resolution being lower than the second spatial resolution.

4. The modifying step includes: ranking the residuals within each of said sets of residuals; and filtering the residuals based on said ranking.

5. The modification is determining a score associated with each residual or each group of residuals; the score indicating the relative importance of each residual or each group of residuals; the selecting a subset of residuals not to be coded is based on the score associated with each residual or each group of residuals; the score is based on one or more spatial and / or temporal characteristics of the input signal; A method according to any one of claims 1 to 4, wherein the score is based on the level of contrast, or the level of texture, or both, of the input signal.

6. The modification is quantizing the residuals in each set of residuals, the quantizing including applying a variable sized dead zone; The method according to any one of claims 1 to 5, wherein the dead zone is determined as a function of a quantization step width.

7. said modifying includes quantizing each residual in said set of residuals; quantizing the residual quantizing said residual in a first stage to achieve said modification; Quantizing the residual in a second stage to achieve the encoding.

8. The modification is comparing said score to a set of ranges; in response to the score falling within a first range, the residual or group of residuals is not encoded; responsive to the score falling within a second range, the residual or group of residuals is compared to a quantization dead zone, and if the residual or group of residuals falls within the dead zone, the residual or group of residuals is not coded; responsive to the score falling within a third range, the residual or group of residuals is pre-quantized with a first quantization step size; The method of claim 5 , wherein in response to the score falling within a fourth range, the residual or group of residuals is passed for encoding without modification.

9. Modifying the one or more sets of residuals obtaining a categorization of the residuals or groups of residuals; applying said modification based on said categorization; Categorization can be achieved by: categorizing residuals or groups of residuals based on at least one spatial and / or temporal characteristic of the input signal or the set of residuals; The one or more spatial and / or temporal characteristics include: Spatial activity between one or more signal elements or groups of signal elements; the level of contrast between one or more signal elements or groups of signal elements; A measure of change in one or more spatial directions; Temporal activity between one or more signal elements or groups of signal elements; one or more measures of change in time; the spatial activity between one or more residuals, one or more temporal activities between the residuals; and 9. The method of any one of claims 1 to 8, comprising one or more selected from the group comprising differences between different ones of the sets of residuals, or differences in one or more spatial and / or temporal characteristics between different ones of the sets of residuals.

10. The modifying step comprises: setting a control flag indicating whether a residual should be coded in the coding; The method of any one of claims 1 to 9, wherein said encoding is selectively performed based on said control flag.

11. The modification is receiving a set of residual weights, the residual weights including zero values; applying the set of residual weights to the residuals in one of the one or more sets of residuals to generate a weighted set of residuals; subsequent to said applying said set of residual weights, thresholding the weighted set of residuals using a set of thresholds; The method of any one of claims 1 to 10, wherein at least one of the set of residual weights and the set of thresholds is determined based on a classification of the input signal.

12. the set of residual weights includes a residual mask; The method of claim 11 , optionally wherein the residual mask is pre-generated based on pre-processing of the input signal prior to encoding.

13. An encoder configured to carry out the method according to any one of claims 1 to 12.

14. A non-transitory computer readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 12.

Citation Information

Patent Citations

  • Spatial Scalable Compression Scheme with Dead Zones

    JP2007514359A

  • Unit and method for processing image, and program

    JP2009071389A

  • Backward-compatible coding for ultra high definition video signal with enhanced dynamic range

    JP2015233297A

  • Spatial scalable compression scheme with a dead zone

    US20070160300A1

  • Backward-Compatible Coding for Ultra High Definition Video Signals with Enhanced Dynamic Range

    US20150341675A1