Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
TRANSFORMATIONS FOR SIGNAL ENHANCEMENT CODING
Document Type and Number:
WIPO Patent Application WO/2020/025957
Kind Code:
A1
Abstract:
Measures are provided to encode a signal. An input frame (102) is received and down-sampled to obtain a down-sampled frame (103). The down-sampled frame (103) is passed to an encoding module (104) which encodes the down-sampled frame (103) to generate an encoded frame (105). A decoded frame is obtained from a decoding module (106) which generates the decoded frame by decoding the encoded frame (105). A set of residual data (113) is generated by taking a difference between the decoded frame and the down-sampled frame (103) and is encoded to generate a set of encoded residual data. The encoding comprises transforming the set of residual data into a transformed set of residual data. The set of encoded residual data is output to a decoder to enable the decoder to reconstruct the input frame. Measures are also provided to decode a signal.

Inventors:
MEARDI GUIDO (GB)
DAMNJANOVIC IVAN (GB)
Application Number:
PCT/GB2019/052154
Publication Date:
February 06, 2020
Filing Date:
August 01, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
V NOVA INT LTD (GB)
International Classes:
H04N19/36; H04N19/132; H04N19/167; H04N19/172; H04N19/33; H04N19/59; H04N19/60; H04N19/61
Domestic Patent References:
WO2013171173A12013-11-21
Foreign References:
EP2816805A12014-12-24
US201313893669A2013-05-14
EP2013059847W2013-05-13
Other References:
H. SCHWARZ ET AL: "Overview of the Scalable Video Coding Extension of the H.264/AVC Standard", IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, vol. 17, no. 9, 1 September 2007 (2007-09-01), US, pages 1103 - 1120, XP055378169, ISSN: 1051-8215, DOI: 10.1109/TCSVT.2007.905532
Attorney, Agent or Firm:
EIP (GB)
Download PDF:
Claims:
CLAIMS

1. A method of encoding a signal, the method comprising:

receiving an input frame;

down-sampling the input frame to obtain a down-sampled frame;

passing the down-sampled frame to an encoding module, the encoding module being configured to encode the down-sampled frame to generate an encoded frame; obtaining a decoded frame from a decoding module, the decoding module being configured to generate the decoded frame by decoding the encoded frame;

generating a first set of residual data by taking a difference between the decoded frame and the down-sampled frame;

up-sampling a combination of the first set of residual data and the decoded frame to generate a reference reconstructed frame;

generating a second set of residual data by taking a difference between the reference reconstructed frame and the input frame;

encoding the first and second sets of residual data to generate first and second sets of encoded residual data respectively, wherein the encoding comprises transforming the first and second sets of residual data into transformed first and second sets of residual data respectively; and

outputting the encoded frame and the first and second sets of encoded residual data for a decoder, wherein the encoded frame and the first and second sets of residual data enable the decoder to reconstruct the input frame.

2. A method according to claim 1, wherein the encoding module is configured to encode the down-sampled frame in accordance with a first encoding method in order to generate the encoded frame, and wherein:

the encoding of the first set of residual data is performed according to a second encoding method, the second encoding method being different from the first encoding method; and/or

the encoding of the second set of residual data is performed according to a third encoding method, the third encoding method being different from the first encoding method.

3. A method according to claim 1 or 2, wherein the encoding and decoding modules are configured to use a block-based coding algorithm. 4. A method according to any of claims 1 to 3, wherein the first set of residual data represents a compression error associated with the encoding module and/or the decoding module.

5. A method according to any of claims 1 to 5, wherein the second set of residual data represents a reconstruction error associated with the down-sampling and the up- sampling.

6. A method according to any of claims 1 to 6, wherein the method is performed in a hierarchical coding system having exactly two hierarchical levels.

7. A method according to claim 6, wherein one of the two hierarchical levels corresponds to a baseline layer and the other one of the two hierarchical levels corresponds to an enhancement layer. 8. A method according to any of claims 1 to 7, wherein the transforming uses a

Hadamard-based transform.

9. A method according to any of claims 1 to 8, wherein the transforming uses a 2x2 transform kernel.

10. A method according to any of claims 1 to 9, wherein the transforming of the first set of residual data comprises:

selecting a subset of the first set of residual data; and

applying a transformation on the subset of the first set of residual data to generate a corresponding subset of the transformed first set of residual data.

11. A method according to claim 10, wherein one of the subset of the transformed first set of residual data is obtained by averaging the subset of the first set of residual data.

12. A method according to any of claims 1 to 11, wherein the transforming of the second set of residual data comprises:

selecting a subset of the second set of residual data; and

applying a transformation on the subset of the second set of residual data to generate a corresponding subset of the transformed second set of residual data.

13. A method according to claim 12, wherein one of the subset of the transformed second set of residual data is obtained by the difference between:

an average of a subset of the input frame; and

a corresponding element of the combination of the first set of residual data and the decoded frame.

14. A method according to any of claims 1 to 13, wherein the encoding comprises quantizing at least some of the transformed first and second sets of residual data respectively into quantized first and second sets of residual data respectively.

15. A method according to claim 14, wherein the encoding comprises entropy- encoding the quantized first and second sets of residual data respectively into entropy- encoded first and second sets of residual data

16. A method according to any of claims 1 to 15, wherein the signal comprises a video signal and/or an image signal.

17. A method of encoding a signal, the method comprising:

generating first and second sets of residual data; and

encoding the first and second sets of residual data to generate first and second sets of encoded residual data respectively, wherein the encoding comprises transforming the first and second sets of residual data into transformed first and second sets of residual data respectively, and wherein the transforming comprises:

selecting subsets of the first and second sets of residual data; and applying transformations on the subsets to generate corresponding subsets of the transformed first and second sets of residual data respectively, wherein one of the subset of the transformed first set of residual data is obtained by averaging the subset of the first set of residual data; and

wherein one of the subset of the transformed second set of residual data is obtained by the difference between:

an average of a subset of the input frame; and

a corresponding element of the combination of the first set of residual data and the decoded frame.

18. A method of encoding a signal, the method comprising:

receiving an input frame;

down-sampling the input frame to obtain a down-sampled frame;

passing the down-sampled frame to an encoding module, the encoding module being configured to encode the down-sampled frame to generate an encoded frame; obtaining a decoded frame from a decoding module, the decoding module being configured to generate the decoded frame by decoding the encoded frame;

generating a first set of residual data by taking a difference between the decoded frame and the down-sampled frame;

encoding the first set of residual data to generate a first set of encoded residual data, wherein the encoding comprises transforming the first set of residual data into a transformed first set of residual data; and

outputting data comprising at least the first set of encoded residual data for a decoder, wherein the output data enables the decoder to reconstruct the input frame.

19. A method of decoding a signal, the method comprising:

receiving an encoded frame and first and second sets of encoded residual data; passing the encoded frame to a decoding module, the decoding module being configured to generate a decoded frame by decoding the encoded frame; decoding the first and second sets of encoded residual data to generate first and second sets of reconstructed residual data, wherein the decoding comprises transforming the first and second sets of encoded residual data into reconstructed first and second sets of residual data respectively;

combining the first set of reconstructed residual data with the decoded frame to obtain a combined frame;

up-sampling the combined frame to obtain a reference decoded frame; and combining the second set of reconstructed residual data with the reference decoded frame to obtain a reconstructed frame.

20. Apparatus configured to perform a method according to any of claims 1 to 19.

Description:
TRANSFORMATIONS FOR SIGNAL ENHANCEMENT CODING

Technical Field

The present disclosure relates to methods and apparatuses for encoding and/or decoding signals. More particularly, the present disclosure relates to encoding and decoding video signals and image signals, but can be extended to any other type of data to be compressed and decompressed.

Background

The methods and apparatuses described herein are based on an overall algorithm which is built over an existing encoding and/or decoding algorithm (which works as a baseline for an enhancement layer) and which works according to a different encoding and/or decoding algorithm. Examples of existing encoding and/or decoding algorithms include, but are not limited to, MPEG standards such as AVC/H.264, HEVC/H.265, etc. and non-standard algorithm such as VP9, AV1, and others.

Summary

Various measures (for example, encoding and decoding methods and apparatuses) provided in accordance with the present disclosure are defined in the accompanying claims.

Further features and advantages will become apparent from the following description, given by way of example only, which is made with reference to the accompanying drawings. Brief Description of the Drawings

Figure 1 shows a diagram depicting an example of LOQ-l residual encoding; Figure 2 shows a diagram depicting an example of LOQ-O residual encoding; Figure 3 shows a diagram depicting an example of a decoding process and system;

Figure 4 shows a diagram depicting an example of a data structure for transformed residuals; Figure 5 shows a diagram depicting an example of a compression error calculation;

Figure 6 shows a diagram depicting an example of an average decomposition process;

Figure 7 shows a diagram depicting an example of a horizontal decomposition process;

Figure 8 shows a diagram depicting an example of a vertical decomposition process;

Figure 9 shows a diagram depicting an example of a diagonal decomposition process;

Figure 10 shows a diagram depicting an example of an LoQ-0 average decomposition calculation;

Figure 11 shows a diagram depicting an example of an inverse directed decomposition (DD) transform process (LOQ-l); and

Figure 12 shows a diagram depicting an example of how to reconstruct an average component at a decoder starting from an encoded average, A e n C .

Detailed Description

The overall algorithm described herein hierarchically encodes and/or decodes a video frame, as opposed to using block-based approaches as used in the MPEG family of algorithms. The methods of hierarchically encoding a frame that are described herein include generating residuals for the full frame, and then a decimated frame and so on. Different levels in the hierarchy may relate to different resolutions, referred to herein as Levels of Quality - LOQs - and residual data may be generated for different levels. In examples, video compression residual data for a full-sized video frame may be termed as“LOQ-0” (for example, 1920x1080 for a High-Definition - HD - video frame), while that of the decimated frame may be termed“LOQ-x”. In these cases,“x” denotes the number of hierarchical decimations. In certain examples described herein, the variable“x” has a maximum value of one and hence there are exactly two hierarchical levels for which compression residuals will be generated (e.g. x = 0 and x =1)· Figure 1 shows an example of how encoded data for one Level of Quality - LOQ-l - is generated at an encoding device.

The overall algorithm and methods are described using an AVC/H.264 encoding/decoding algorithm as an example baseline algorithm. However, other encoding/decoding algorithms can be used as baseline algorithms without any impact to the way the overall algorithm works. Figure 1 shows the process 100 of generating entropy-encoded residuals for the LOQ-l hierarchy level.

The first step 101 is to decimate an incoming, uncompressed video by a factor of two. This may involve down-sampling an input frame 102 (labelled“Input Frame” in Figure 1) having height H and width W to generate a decimated frame 103 (labelled “Half-2D size” in Figure 1) having height H/2 and width W/2. The down-sampling process involves the reduction of each axis by a factor of two and is effectively accomplished via the use of 2x2 grid blocks. Down-sampling can be done in various ways, examples of which include, but are not limited to, averaging and Lanczos resampling.

The decimated frame 103 is then passed through a base coding algorithm (in this example, an AVC/H.264 coding algorithm) where an entropy-encoded reference frame 105 (labelled“Half-2D size Base” in Figure 1) having height H/2 and width W/2 is then generated by an entity 104 labelled“H.264 Encode” in Figure 1 and stored as H.264 entropy-encoded data. The entity 104 may comprise an encoding component of a base encoder-decoder, e.g. a base codec or base encoding/decoding algorithm. A base encoded data stream may be output as entropy-encoded reference frame 105, where the base encoded data stream is at a lower resolution than an input data stream that supplies input frame 102.

In the present example, an encoder then simulates a decoding of the output of entity 104. A decoded version of the encoded reference frame 105 is then generated by an entity 106 labelled“H.264 Decode” in Figure 1. Entity 106 may comprise a decoding component of a base codec. The decoded version of the encoded reference frame 105 may represent a version of the decimated frame 103 that would be produced by a decoder following receipt of the entropy-encoded reference frame 105.

In the example of Figure 1, a difference between the decoded reference frame output by entity 106 and the decimated frame 103 is computed. This difference is referred to herein as“LOQ-l residuals”. The difference forms an input to a transform block 107.

The transform (in this example, a Hadamard-based transform) used by the transform block 107 converts the difference into four components. The transform block 107 may perform a directed (or directional) decomposition to produce a set of coefficients or components that relate to different aspects of a set of residuals. In Figure 1, the transform block 107 generates A (average), H (horizontal), V (vertical) and D (diagonal) coefficients. The transform block 107 in this case exploits directional correlation between the LOQ-l residuals, which has been found to be surprisingly effective in addition to, or as an alternative to, performing a transform operation for a higher level of quality - an LOQ-O level. The LOQ-O transform is described in more detail below. In particular, it has been identified that, in addition to exploiting directional correlation at LOQ-O, directional correlation can also be present and surprisingly effectively exploited at LOQ-l to provide more efficient encoding than exploiting directional correlation at LOQ-O alone, or not exploiting directional correlation at LOQ-O at all.

The coefficients (A, H, V and D) generated by the transform block 107 are then quantized by a quantization block 108. Quantization may be performed via the use of variables called“step-widths” (also referred to as“step-sizes”) to produce quantized transformed residuals 109. Each quantized transformed residual 109 has a height H/4 and width W/4. For example, if a 4x4 block of an input frame is taken as a reference, each quantized transformed residual 109 may be one pixel in height and width. Quantization involves reducing the decomposition components (A, H, V and D) by a pre-determined factor (step-width). Reduction may be actioned by division, e.g. dividing the coefficient values by a step-width, e.g. representing a bin-width for quantization. Quantization may generate a set of coefficient values having a range of values that is less than the range of values entering quantization block 108 (e.g. transformed values within a range of 0 to 21 may be reduced using a step-width of 7 to a range of values between 0 and 3). In a hardware implementation, an inverse of a set of step-width values can be pre-computed and used to perform the reduction via multiplication, which may be faster than division (e.g. multiplying by the inverse of the step-width). The quantized residuals 109 are then entropy-encoded in order to remove any redundant information. Entropy encoding may involve, for example, passing the data through a run-length encoder (RLE) 110 followed by a Huffman encoder 111.

The quantized, encoded components (Ae, He, Ve and De) are then placed within a serial stream with definition packets inserted at the start of the stream. The definition packets may also be referred to as header information. Definition packets may be inserted per frame. This final stage may be accomplished using a file serialization routine 112. The definition packet data may include information such as the specification of the Huffman encoder 111, the type of up-sampling to be employed, whether or not A and D coefficients are discarded, and other information to enable the decoder to decode the streams. The output residuals data 113 are therefore entropy- encoded and serialized.

Both the reference data 105 (the half-sized, baseline entropy-encoded frame) and the entropy-encoded LOQ-l residuals data 113 are generated for decoding by the decoder during a reconstruction process. In one case the reference data 105 and the entropy-encoded LOQ-l residuals data 113 may be stored and/or buffered. The reference data 105 and the entropy-encoded LOQ-l residuals data 113 may be communicated to a decoder for decoding.

In the example of Figure 1, a number of additional operations are performed in order to produce a set of residuals at another (e.g. higher) level of quality - LOQ-0. In Figure 1, a number of decoder operations for the LOQ-l stream are simulated at the encoder.

First, the quantized output 109 is branched off and reverse quantization 114 (or “de-quantization”) is performed. This generates a representation of the coefficient values output by the transform block 107. However, the representation output by the de-quantization block 109 will differ from the output of the transform block 107, as there will be errors introduced due to the quantization process. For example, multiple values in a range of 7 to 14 may be replaced by a single quantized value of 1 if the step- width is 7. During de-quantization, this single value of 1 may be de-quantized by multiplying by the step-width to generate a value of 7. Hence, any value in the range of 8 to 14 will have an error at the output of the de-quantization block 109. As the higher level of quality LOQ-O is generated using the de-quantised values (e.g. including a simulation of the operation of the decoder), the LOQ-O residuals may also encode a correction for a quantization/de-quantization error.

Second, an inverse transform block 115 is applied to the de-quantized coefficient values output by the de-quantization block 114. The inverse transform block 115 applies a transformation that is the inverse of the transformation performed by transform block 107. In this example, the transform block 115 performs an inverse Hadamard transform, although other transformations may be used. The inverse transform block 115 converts de-quantised coefficient values (e.g. values for A, H, V and D in a coding block or unit) back into corresponding residual values (e.g. representing a reconstructed version of the input to the transform block 107). The output of inverse transform block 115 is a set of reconstructed LOQ-l residuals (e.g. representing an output of a decoder decoding process of LOQ-l). The reconstructed LOQ-l residuals are added to the decoded reference data (e.g. the output of decoding entity 106) in order to generate a reconstructed video frame 116 (labelled“Half-2D size Recon (To LOQ-0)” in Figure 1) having height H/2 and width W/2. The reconstructed video frame 116 closely resembles the originally decimated input frame 103, as it is reconstructed from the output of the decoding entity 106 but with the addition of the LoQ-l reconstituted residuals. The reconstructed video frame 116 is an interim output to an LOQ-O engine. This process mimics the decoding process and hence is why the originally decimated frame 103 is not used. Adding the reconstructed LOQ-l residuals to the decoded base stream, i.e. the output of decoding entity 106, allows the LOQ-O residuals to also correct for errors that are introduced into the LOQ-l stream by quantization (and in certain cases the transformation), e.g. as well as errors that relate to down-sampling and up-sampling.

Figure 2 shows an example of how LOQ-O is generated 200 at an encoding device.

In order to derive the LOQ-O residuals, the reconstructed LOQ-l sized frame 216 (labelled“Half-2D size Recon (from LOQ-l)” in Figure 2) is derived as described above with reference to Figure 1. For example, the reconstructed LOQ-l sized frame 216 comprises the reconstructed video frame 116.

The next step is to perform an up-sampling of the reconstructed frame 216 to full size, WxH. In this example, the upscaling is by a factor of two. At this point, various algorithms may be used to enhance the up-sampling process, examples of which include, but are not limited to, nearest, bilinear, sharp or cubic algorithms. The reconstructed, full-size frame 217 is labelled as a“Predicted Frame” in Figure 2 as it represents a prediction of a frame having a full width and height as decoded by a decoder. The reconstructed, full-size frame 217 having height H and width W is then subtracted from the original uncompressed video input 202, which creates a set of residuals, referred to herein as“LOQ-O residuals”. The LOQ-O residuals are created at a level of quality (e.g. a resolution) that is higher than the LOQ-l residuals.

Similar to the LOQ-l process described above, the LOQ-O residuals are transformed by a transform block 218. This may comprise using a directed decomposition such as a Hadamard transform to produce A, H, V and D coefficients or components. The output of the transform block 218 is then quantized via quantization block 219. This may be performed based on defined step-widths as described for the first level of quality (LOQ-l). The output of the quantization block 219 is a set of quantised coefficients, and in Figure 2 these are then entropy-encoded 220, 221 and file-serialized 222. Again, entropy-encoding may comprise applying run-length encoding 220 and Huffman encoding 221. The output of the entropy encoding is a set of entropy-encoded output residuals 223. These form a LOQ-O stream, which may be output by the encoder as well as the LOQ-l stream (i.e. 113) and the base stream (i.e. 105). The streams may be stored and/or buffered, prior to later decoding by a decoder.

As can be seen in Figure 2, a“predicted average” component 224 (described in more detail below and denoted A enc below) can be derived using data from the (LOQ- 1) reconstructed video frame 116 prior to the up-sampling process. This may be used in place of the A (average) component within the transform block 218 to further improve the efficiency of the coding algorithm.

Figure 3 shows schematically an example of how the decoding process 300 is performed. This decoding process 300 may be performed by a decoder.

The decoding process 300 begins with three input data streams. The decoder input thus consists of entropy-encoded data 305, the LOQ-l entropy-encoded residuals data 313 and the LOQ-O entropy-encoded residuals data 323 (represented in Figure 3 as file-serialized encoded data). The entropy-encoded data 305 includes the reduced- size encoded base, e.g. data 105 as output in Figure 1. The entropy-encoded data 305 is, for example, half-size, with dimensions W/2 and H/2 with respect to the full frame having dimensions W and H.

The entropy-encoded data 305 are decoded by a base decoder 306 using the decoding algorithm corresponding to the algorithm which has been used to encode those data (in this example, an AVC/H.264 decoding algorithm). This may correspond to the decoding entity 106 in Figure 1. At the end of this step, a decoded video frame 325, having a reduced size (for example, half-size) is produced (indicated in the present example as an AVC/H.264 video). This may be viewed as a standard resolution video stream.

In parallel, the LOQ-l entropy-encoded residuals data 313 are decoded. As explained above, the LOQ-l residuals are encoded into four components (A, V, H and D) which, as shown in Figure 3, have a dimension of one quarter of the full frame dimension, namely W/4 and H/4. This is because, as also described below and in previous patent applications US 13/893,669 and PCT/EP2013/059847, the contents of which are incorporated herein by reference, the four components contain all the information associated with a particular direction within the untransformed residuals (e.g. the components are defined relative to a block of untransformed residuals). As described above, the four components may be generated by applying a 2x2 transform kernel to the residuals whose dimension, for LOQ-l, would be W/2 and H/2, in other words the same dimension as the reduced-size, entropy-encoded data 305. In the decoding process 300, as shown in Figure 4, the four components are entropy-decoded at entropy decode block 326, then de-quantized at de-quantization block 314 before an inverse transform is applied via inverse transform block 315 to generate a representation of the original LOQ-l residuals (e.g. the input to transform block 107 in Figure 1). The inverse transform may comprise a Hadamard inverse transform, e.g. as applied on a 2x2 block of residuals data. The de-quantization block 314 is the reverse of the quantization block 108 described above with reference to Figure 1. At this stage, the quantized values (i.e. the output of the entropy decode block 326) are multiplied by the step-width (i.e. stepsize) factor to generate reconstructed transformed residuals (i.e. components or coefficients). It may be seen that blocks 114 and 115 in Figure 1 mirror blocks 314 and 315 in Figure 3. The decoded LOQ-l residuals, e.g. as output by the inverse transform block 315, are then added to the decoded video frame, e.g. the output of base decode block 306, to produce a reconstructed video frame 316 at a reduced size (in this example, half- size), identified in Figure 3 as“Half-2D size Recon”. This reconstructed video frame 316 is then up-sampled to bring it up to full resolution (e.g. the 0 th level of quality from the I st level of quality) using an up-sampling filter such as bilinear, bicubic, sharp, etc. In this example, the reconstructed video frame 316 is up-sampled from half width (W/2) and half height (H/2) to full width (W) and full height (H)).

The up-sampled reconstructed video frame 317 will be a predicted frame at LOQ-O (full-size, WxH) to which the LOQ-O decoded residuals are then added.

In Figure 3, the LOQ-O encoded residual data 323 are decoded using an entropy decode block 327, a de-quantization block 328 and an inverse transform block 329. As described above, the LOQ-O residuals data 323 are encoded using four components (i.e. are transformed into A, V, H and D components) which, as shown in Figure 3, have a dimension of half the full frame dimension, namely W/2 and H/2. This is because, as described herein and in previous patent applications US 13/893,669 and PCT/EP2013/059847, the contents of which are incorporated herein by reference, the four components contain all the information relative to the residuals and are generated by applying a 2x2 transform kernel to the residuals whose dimension, for LOQ-O, would be W and H, in other words the same dimension of the full frame. The four components are entropy-decoded by the entropy decode block 327, then de-quantized by the de- quantization block 328 and finally transformed 329 back into the original LOQ-O residuals by the inverse transform block 329, transform (e.g., in this example, a 2x2 Hadamard inverse transform).

The decoded LOQ-O residuals are then added to the predicted frame 317 to produce a reconstructed full video frame 330. The frame 330 is an output frame, having height H and width W. Hence, the decoding process 300 in Figure 3 is capable of outputting two elements of user data: a base decoded video stream 325 at the first level of quality (e.g. a half-resolution stream at LOQ-l) and a full or higher resolution video stream 330 at a top level of quality (e.g. a full-resolution stream at LOQ-O).

The above description has been made with reference to specific sizes and baseline algorithms. However, the above methods apply to other sizes and/or baseline algorithms. The above description is only given by way of example of the more general concepts described herein.

Figure 4 shows a representation of an example residuals data structure 400.

In the encoding/decoding algorithm described above, there are typically three planes (for example, YUV or RGB), with two level of qualities (LOQs) which are described as LOQ-O (or top level, full resolution) and LOQ-l (or lower level, reduced- size resolution such as half resolution) in every plane. Each plane may relate to a different colour component of the video data. Every LOQ contains four components, namely A, H, V and D. In certain examples, these may be seen as different layers within each plane. A frame of video data at a given level of quality may thus be defined by a set of planes, where each plane has a set of layers. In the examples of Figures 1-3, there are a total of 2x3x4 = 24 surfaces, i.e. 2 levels of quality, 3 colour components, and 4 layers of components or coefficients. As described with reference to Figures 1 and 2, 12 of these surfaces are full size (for example, WxH for LOQ-0) and 12 are reduced- size (for example, W/2xH/2 for LOQ-l).

As described above, a Directed-Decomposition transform (DD-Transform) may be used to decompose an error component (i.e. the difference or residuals) between the down-sampled input frame 103 and the decoded, baseline reduced-size version of the same frame (e.g. as output by decoding entity 106) into four distinct components; average (A), horizontal (H), vertical (V) and diagonal (D). This operation may be performed in grid sizes of 2x2 blocks. Each grid has no dependency with its neighbours. It is therefore suitable for efficient implementation, such as a fully parallel operation. However, since all the operations used for the decomposition are linear, it is feasible to perform this operation using the Just-In-Time (JIT) processing paradigm (on-the-fly).

Figure 5 shows an example of a compression error calculation that may be performed for the first level of quality (LOQ-l) 500.

In Figure 5, a set of LOQ-l residuals are calculated as the difference between a baseline reference decoded frame 531 (e.g. an output of decoding entity 106 in Figure 1) and a down-sampled input frame 503 (e.g. the down-sampled frame 103 in Figure 1. In Figure 5, the baseline decoded frame 531 is an H.264-based frame, which is subtracted from the down-sampled frame 503 to obtain the set of LOQ-l residuals 532. The set of LOQ-l residuals may be seen as a“compression error”, as they represent a difference between an input to a base encoder and a decoded output of the same base encoder, i.e. differences between data 503 and 531 may be seen as resulting from the encoding and decoding process for the base stream, wherein these differences are typically the result of lossy encoding algorithms applied by the base encoder. As well as compression errors the LOQ-l residuals 532 may also represent other artefacts generated by the process of base encoding and base decoding, which may include motion correction artefacts, blocking artefacts, quantization artefacts, symbol encoding artefacts, etc.

Figure 6 shows an example of an average decomposition process 600 that may be used for the first level of quality (LOQ-l). For example, the average decomposition process 600 may be used to determine an Average - A - component as described above. In Figure 6, the average decomposition is computed as the average of all compression error pixels (residuals) in a current 2x2 grid of the compression error 632 frame. The average decomposition may be repeated for a plurality of 2x2 grids within the compression error 632 frame, e.g. Figure 6 shows a first and last 2x2 grid or coding block for the frame. The average decomposition may be performed in a manner similar to the down-sampling shown by arrow 101 in Figure 1.

Figure 7 shows an example of a horizontal decomposition process 700 that may be used for the first level of quality (LoQ-l). For example, the horizontal decomposition process 700 may be used to determine a Horizontal - H - component as described above. In Figure 7, the operation calculates the normalized difference in the horizontal plane between residuals in the 2x2 grid of the compression error frame 732. For example, as shown in Figure 7, residual values in the first column of the 2x2 grid (Doo and Dio) are summed and then the residual values in the second column of the 2x2 grid (Doi and Du) are subtracted from the sum. In Figure 7, a normalising division by 4 is applied to generate the Horizontal - H - component. The operation to derive the horizontal decomposition is a linear process and hence can be performed on-the-fly if required. Visually, the result of this operation will look largely vertical in nature if any distinct errors (residuals) exist across the plane. Ideally, similar errors (residuals) will exist in the plane (no added entropy) and hence will result in a reduction in the amount of data being compressed via the entropy encoder. Figure 8 shows an example of vertical decomposition process 800 that may be used for the first level of quality (LoQ-l). For example, the vertical decomposition process 800 may be used to determine a Vertical - V - component as described above. This operation calculates the normalized difference in the vertical plane between residuals in the 2x2 grid of the compression error frame 832. For example, as shown in Figure 8, residual values in the first row of the 2x2 grid (Doo and Doi) are summed and then the residual values in the second row of the 2x2 grid (Dio and Du) are subtracted from the sum. In Figure 8, a normalising division by 4 is applied to generate the Vertical - V - component. The operation to derive the vertical decomposition is a linear process and hence can be performed on-the-fly if required, e.g. as 2x2 sets of residuals are received at a transform block such as 107.

Figure 9 shows an example of diagonal decomposition process 900 that may be used for the first level of quality (LoQ-l). For example, the diagonal decomposition process 900 may be used to determine a Diagonal - D - component as described above. This operation calculates the normalized difference in the diagonal plane between residuals in the 2x2 grid of the compression error frame 932. For example, as shown in Figure 9, a difference of residual values in the first row of the 2x2 grid (D 00 and D 0l ) is determined and then a difference of the residual values in the second row of the 2x2 grid (Dio and Du) is added. In Figure 9, a normalising division by 4 is applied to generate the Diagonal - D - component.

Figure 10 shows an example directed decomposition (DD) transform process 1000 that may be performed at the upper level of quality (LoQ-0). In Figure 10, an LoQ-l reconstructed frame 1016 is up-sampled. As described with reference to Figures 1 and 2, the reconstructed frame 1016 may comprise a sum of the decoded LOQ-l residuals (e.g. as output by the inverse transform block 115) and a decoded base encoded frame (e.g. as output by decoding entity 106). In this case, up-sampling takes a single reconstructed frame pixel Ro and converts it into a 2x2 block of up-sampled LOQ-l predictions (see above). This may be performed for all reconstructed frame pixel values in the LoQ-l reconstructed frame 1016. In Figure 10, the up-sampled LOQ- 1 predictions are then subtracted from the full-sized input frame 1002 in order to generate residuals 1033 for the LoQ-0 processing stage. The horizontal, vertical and diagonal decompositions for LoQ-0 may be calculated in a similar manner to that described above for LOQ-l. However, the average decomposition may be calculated differently to reduce an entropy of the quantized transformed LOQ-O residuals to be encoded.

In Figure 10, the reconstructed pixel value, Ro, from the previous stage (LoQ-l) is used in the calculation of the average component 1024 for the LOQ-O transformed residuals data rather than recalculating the average value from the reconstruction error 1033. For example, at the transform block 218 in Figure 2, the Average - A - value may not be determined using the input data from the sum of 217 and 202 as for the H, V and D components. By using the configuration of Figure 10 the calculation may produce fewer errors (residuals) if the pre-upsampled data 1016 is used. This effectively excludes any extra errors owing to the up-sampling filters and hence will result in reduced entropy at the input of the entropy encoders.

In particular, Ro is the reconstructed element at level LOQ-l obtained by adding the decoded reduced-size frame to the LOQ-l residuals as described above. The single element Ro , when up-sampled, would result in four elements in the up-sampled LOQ-l prediction frame 1017, namely H 00 , Hoi, Hio and Hu, assuming an up-sample from half size to full size. In Figure 10, the reconstructed element Ro is subtracted from the average of the four elements in the original image 1002, namely loo, Ioi, Lo and In, corresponding in position to the four elements in the up-sampled LoQ-l prediction frame 1017, Hoo, Hoi, Hio and Hu. For example, the average at block 1030 may be generated in a similar manner to the computation of Figure 6. The resulting average, denoted“A enc ”, 1024 is then quantized and encoded for transmission to the decoder, e.g. instead of an Average - A - output of the LOQ-O transform block 1018. Where the average of the four elements in the original image 1002, namely loo, Ioi, Lo and In, is denoted Ai, then A enc = Ai - Ro. The resulting encoding average 1024 may be generated for multiple 2x2 blocks or grids throughout the complete frame.

Using A enc rather than the standard average A (which would be the average of the reconstruction errors Dooto Du in the 2x2 block shown in 1033) is effective since the entropic content of A enc is lower than that of the average (A) and therefore it results in a more efficient encoding. This is because, if Ro has been reconstructed correctly (for example, the error introduced by the encoder and decoder has been corrected properly by the LOQ-l residuals), then the difference between Ro and the average of the four original elements of the input frame 1002 should, in most cases, be zero. On the other hand, the standard average (A) would contain significantly fewer zero values since the effects of the up-sampler and down-sampler would be taken into account.

Figure 11 shows an example of an inverse DD transform 1100. For example, this may be used to perform the inverse transform at one of the blocks 115, 314 in Figures 1 and 3.

The aim of this process 1100 is to convert the (directional) decomposed values back into the original residuals. The residuals were the values which were derived by subtracting the reconstructed video frame from the ideal input (or down-sampled) frame. The inverse DD transform 1100 shown in Figure 11 is an LoQ-l inverse transform performed at LoQ-l . The LoQ-0 inverse transform performed at LoQ-0 may be different in the case that a predicted average is used. One example of a different implementation is described below with reference to Figure 12.

Figure 12 shows an example of an LoQ-0 inverse transform 1200 that may use the encoding average 1024 described with reference to Figure 10.

Owing to the method used to decompose into the average component there is a difference in calculating the inverse transform for LoQ-0 compared to LoQ-l. In particular, an extra step is used to re-form the average component so that it conforms to the ‘input-minus-predicted-residuaF format. This is used so that the inverse calculations can be performed.

As described above, the A enc component corresponds to the average (A) component computed by subtracting Ro (the LOQ-l reconstruction element) from the average of the corresponding elements in the original input frame (loo to In), which can be expressed as A enc = Ai - Ro. Where the average value of the 2x2 grid of the up- sampled and reconstructed LoQ-l frame is denoted Au, then A = Ai - Au since the average (A) at LoQ-0 is based on the difference between the elements in the original input frame and the elements in the up-sampled and reconstructed LoQ-l frame. This can be rewritten as A = { Ai - Ro} + (Ro - Au} or, using the above equation for A enc , A = Aenc + {Ro - Au} . The reformed average (A reformeci ) therefore consists of adding the LOQ-l reconstruction element, Ro, to the decoded A enc (referred to as A mwQ in Figure 12 - i.e. A enc that is entropy decoded and de-quantised) and subtracting the average value of the 2x2 grid of the up-sampled and reconstructed LoQ-l frame, Au. As such, decoder-side, A re formeci = Ai nwQ + Ro - Au. As can be seen in the formula shown in Figure 12, the resulting equation corresponds to what should have been the actual average (A) component to be encoded at the encoder. Following this, the same steps as described in Figure 11 are performed (with A in the reverse transform substituted by Areformed) in order to generate the residuals Doo to Du.

The present disclosure describes a method for encoding and decoding a signal, in particular a video signal and/or an image signal.

There is described a method of encoding a signal, the method comprising receiving an input frame and processing the input frame to generate at least one first set of residual data, said residual data enabling a decoder to reconstruct the original frame from a reference reconstructed frame.

In some examples, the method comprises obtaining the reconstructed frame from a decoded frame obtained from a decoding module, wherein the decoding module is configured to generate said decoded frame by decoding a first encoded frame which has been encoded according to a first encoding method. The method further comprises down-sampling the input frame to obtain a down-sampled frame, and passing said down-sampled frame to an encoding module configured to encode said down-sampled frame in accordance with the first encoding method in order to generate the first encoded frame. Obtaining the reconstructed frame may further comprise up-sampling the decoded frame to generate the reconstructed frame.

In some examples, the method comprises obtaining the reconstructed frame from a combination of a second set of residual data and a decoded frame obtained from a decoding module, wherein the decoding module is configured to generate said decoded frame by decoding a first encoded frame which has been encoded according to a first encoding method. The method further comprises down-sampling the input frame to obtain a down-sampled frame and passing said down-sampled frame to an encoding module configured to encode said down-sampled frame in accordance with the first encoding method in order to generate the first encoded frame. The method further comprises generating said second set of residual data by taking a difference between the decoded frame and the down-sampled frame. The method further comprises encoding said second set of residual data to generate a first set of encoded residual data. Encoding said second set of residual data may be performed according to a second encoding method. The second encoding method comprises transforming the second set of residual data into a transformed second set of residual data. Transforming the second set of residual data comprises selecting a subset of the second set of residual data, and applying a transformation on said subset to generate a corresponding subset of transformed second set of residual data. One of the subset of transformed second set of residual data may be obtained by averaging the subset of the second set of residual data. Obtaining the reconstructed frame may further comprise up-sampling the combination of the second set of residual data and a decoded frame to generate the reconstructed frame.

In some examples, generating the at least one set of residual data comprises taking a difference between the reference reconstructed frame and the input frame. The method further comprises encoding said first set of residual data to generate a first set of encoded residual data. Encoding said first set of residual data may be performed according to a third encoding method. The third encoding method comprises transforming the first set of residual data into a transformed first set of residual data. Transforming the first set of residual data comprises selecting a subset of the first set of residual data, and applying a transformation on said subset to generate a corresponding subset of transformed first set of residual data. One of the subsets of transformed first set of residual data may be obtained by the difference between an average of a subset of the input frame and a corresponding element of the combination of the second set of residual data and the decoded frame.

There is also described a method of decoding a signal, the method comprising receiving an encoded frame and at least one set of encoded residual data. The first encoded frame may be encoded using a first encoding method. The at least one set of residual data may be encoded using a second and/or a third encoding method.

The method further comprises passing the first encoded frame to a decoding module, wherein the decoding module is configured to generate a decoded frame by decoding the encoded frame which has been encoded according to a first encoding method.

The method further comprises decoding the at least one set of encoded residual data according to the respective encoding method used to encode them. In some examples, a first set of encoded residual data is decoded by applying a second decoding method corresponding to said second encoding method to obtain a first set of decoded residual data. The method further comprises combining the first set of residual data with the decoded frame to obtain a combined frame. The method further comprises up-sampling the combined frame to obtain a reference decoded frame.

The method further comprises decoding a second set of encoded residual data by applying a third decoding method corresponding to said third encoding method to obtain a second set of decoded residual data. The method further comprises combining the second set of decoded residual data with the reference decoded frame to obtain a reconstructed frame.

In some examples, the method comprises up-sampling the decoded frame to obtain a reference decoded frame.

The method further comprises decoding a set of encoded residual data by applying a second or third decoding method corresponding to said second or third encoding method to obtain a set of decoded residual data. The method further comprises combining the set of decoded residual data with the reference decoded frame to obtain a reconstructed frame.

The above embodiments are to be understood as illustrative examples. Further embodiments are envisaged.

It is to be understood that any feature described in relation to any one embodiment may be used alone, or in combination with other features described, and may also be used in combination with one or more features of any other of the embodiments, or any combination of any other of the embodiments. Furthermore, equivalents and modifications not described above may also be employed without departing from the scope of the invention, which is defined in the accompanying claims.




 
Previous Patent: A FILTER ASSEMBLY FOR A FAN

Next Patent: A CONTACTOR