Encoder, decoder, method and computer program for improved lossless compression - Patents.com

By disabling specific tools and using reversible transforms, the solution addresses inefficiencies in lossless video encoding, achieving high coding efficiency and reduced bitrates in modern video coding standards.

JP7538929B2Active Publication Date: 2024-08-22FRAUNHOFER GESELLSCHAFT ZUR FORDERUNG DER ANGEWANDTEN FORSCHUNG EV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023152138
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-07-05
Filing Date
2023-09-20
Publication Date
2024-08-22
Estimated Expiration
2040-07-02

AI Technical Summary

Technical Problem

Modern video coding standards face challenges in achieving lossless compression at low bitrates due to redundant encoding capabilities and operational inefficiencies in tools like adaptive loop filters and reshaper tools, leading to higher bitrates and loss of information.

Method used

The solution involves disabling certain tools in encoders and decoders to enable lossless predictive residual encoding without explicit signaling, using reversible transforms, and switching between lossless and lossy encoding modes based on encoding parameters, thereby reducing computational complexity and bitrates.

Benefits of technology

This approach achieves high coding efficiency and reduced bitrates by optimizing encoding parameters to enable lossless compression without additional signaling, improving the overall compression performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007538929000016
    Figure 0007538929000016
  • Figure 0007538929000022
    Figure 0007538929000022
  • Figure 0007538929000008
    Figure 0007538929000008
Patent Text Reader

Abstract

To provide an encoder, a decoder and a method for lossless compression in a newest hybrid image and a video coding solution, .and a computer program.SOLUTION: A decoder, which decodes a picture 12 from a data stream (14), confirms whether or not a plurality of coding parameters 98, included in the data stream, which relate to an existing part 100 of the picture and control quantization accuracy concerning a predictive residual conversion mode and the existing part, show coding parameter settings corresponding to reversible predictive residual coding (106); and makes settings (110) so that one or more tools of the decoder are invalid to the existing part, by deriving one or more existing coding options concerning the one or more tools of the decoder for processing a predictive residual correction predictive reconfiguration for the existing part (120), in response to the fact that the plurality of coding parameters show the coding parameter settings corresponding to reversible predictive residual coding 1061.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Technical Field FIELD OF THE DISCLOSURE The present invention relates to an encoder, a decoder, a method and a computer program for improved lossless compression.The present invention relates to an extension for lossless compression in modern hybrid image and video coding solutions.

[0002] Introduction: Various embodiments and aspects of the invention are described below, with further embodiments defined by the accompanying claims.

[0003] It should be noted that any embodiment defined by the claims can be supplemented by any details (features and functions) described in the following various embodiments and aspects of the invention.

[0004] It should also be noted that the individual aspects described herein may be used individually or in combination, and thus details may be added to each of the individual aspects without adding details to another one of the aspects.

[0005] Also, note that this disclosure explicitly or implicitly describes features that can be used in an encoder (apparatus for providing an encoded representation of an input signal) and a decoder (apparatus for providing a decoded representation of a signal based on the encoded representation). Thus, any of the features described herein can be used in the context of an encoder as well as in the context of a decoder.

[0006] Moreover, features and functions disclosed herein relating to a method may also be used in an apparatus (configured to perform such functions). Moreover, any feature and function disclosed herein with respect to an apparatus may also be used in the corresponding method. In other words, the method disclosed herein may be supplemented by any feature and function described with respect to the apparatus.

[0007] Additionally, the features and functions described herein can be implemented in hardware or software, or using a combination of hardware and software, as described in the "Alternative Implementations" section. [Background technology]

[0008] Background technology In modern lossy video compression, the encoder quantizes the prediction residual or the transformed prediction residual using a certain quantization step size Δ. The smaller the step size, the finer the quantization and the smaller the error between the original and the reconstructed signal. Recent video coding standards (such as H.264 and H.265) derive their quantization step size Δ using an exponential function of the so-called quantization parameter (QP), e.g.

number

[0009] Modern video coding schemes such as the High Efficiency Video Coding (HEVC) and Versatile Video Coding (VVC) standards optimize the energy compaction of various kinds of residual signals by allowing additional transforms beyond the integer approximation of the widely used type II discrete cosine transform (DCT-II). The HEVC standard further specifies an integer approximation of the type VII discrete sine transform (DST-VII) for 4 × 4 transform blocks using certain intra-directional modes. This fixed mapping eliminates the need to signal whether to use DCT-II or DST-VII. Furthermore, for 4 × 4 transform blocks, an identity transform can be selected. Here, the encoder needs to signal whether to apply DCT-II / DST-VII or an identity transform. The identity transform is also called a transform skip, since it is a matrix equivalent to multiplication with 1. Furthermore, current VVC development allows the encoder to select more transforms of the DCT / DST family for the residual, as well as adding inseparable transforms, which are applied after the DCT / DST transform at the encoder and before the inverse DCT / DST at the decoder. Both the extended set of DCT / DST transforms and the additional non-separable transforms require additional signaling per transform block. A delta QP can be signaled for each QP (also called a group).

[0010] Figure 1b shows a hybrid video coding approach with a forward transform and subsequent quantization of the residual signal 24 in the encoder 10, and scaling of the quantized transform coefficients followed by an inverse transform for the decoder 36. Blocks 28 / 32 and 52 / 54 related to transform and quantization are highlighted.

[0011] Modern image and video coding solutions such as High Efficiency Video Coding (HEVC, H.265, ISO / IEC 23008-3) and Versatile Video Coding (VVC, H.266), currently under development, are able to efficiently compress still and moving images even at very low bitrates. A typical use case for these codec (coder-decoder) solutions is the lossy compression of high-resolution video material for broadcast (e.g., television) and streaming (e.g., video-over-IP) applications. However, codecs also support lossless compression, thus allowing a mathematically perfect reconstruction of the encoded input signal upon decoding. More specifically, HEVC offers several Pulse Code Modulation (PCM)-related coding tools, as well as the so-called transform quantization bypass coding mode, which simplifies the entropy coding process and facilitates lossless coding by disabling the quantization, transform (DCT or DST) and deblocking steps. More details can be found in the publicly available HEVC syntax and decoding specification in [1].

[0012] The latest version of VVC, the successor of HEVC under development, inherits most of the lossless coding features of HEVC, at least in the reference coding and decoding software [2]. That is, both PCM-related coding tools and transform quantization bypass coding mode can be activated in both HEVC encoders and the current VVC reference encoders. Furthermore, a transform quantization bypass coding flag (a one-bit syntax element) is specified not only for the whole bitstream or a picture (frame) of a bitstream, but also for individual sub-blocks (coding units, CUs or transform units, TUs) of said bitstream or frame. In other words, in both HEVC and VVC, transform quantization bypass coding can be enabled on a sub-block basis, and thus quantization, transform and deblocking coding tools can be disabled individually for each sub-block.

[0013] Recently, as explained above, a contribution to the VVC standardization activity within JVET has been introduced, which corrects the shortcomings related to the specific lossless coding of the transform skip coding feature in the current VVC draft, which is also present in HEVC, and specifies that for a given coding sub-block (CU or TU), the inverse residual coefficient transform operation (inverse DCT or inverse DST) is bypassed. More specifically, this contribution proposes to limit the quantization step size governed by the quantization parameter (QP) to a value equal to or greater than 1 (represented by QP being 4) in case of an activated transform skip in a sub-block. As a result, lossless coding can be achieved when transform skip is activated, when QP is 4 and in-loop filtering is disabled in the spatial region covered by said sub-block. However, this behavior is the same as using the transform quantization bypass coding mode, since quantization with QP=4 (i.e., unity step size) effectively represents a bypass of the quantization algorithm.

[0014] Furthermore, to achieve lossless encoding at acceptable low bitrates using VVC or other video codecs with similar lossless encoding capabilities and toolsets, it may be necessary to modify the operation of some other newly introduced encoding tools that are not available in HEVC or previous video encoding standards. In particular, ●It may be desirable to disable the newly introduced adaptive loop filter (ALF) and reshaper tools. ●The matrix of the joint intra-chrominance transform [3] needs to be modified to enable lossless encoding. Summary of the Invention [Problem to be solved by the invention]

[0015] The object of the present invention is to provide a solution to the two above-mentioned drawbacks of redundant lossless encoding capabilities (related to the transform quantization bypass and transform skip functions) and the need to modify the operational details of some encoding tools when lossless encoding is desired.

[0016] It is therefore desirable to provide a concept for lossless encoding of pictures or videos at acceptably low bit rates and / or improved lossless compression.

[0017] This is achieved by the subject matter of the independent claims of the present application.

[0018] Further embodiments of the invention are defined by the subject matter of the dependent claims of this application. [Means for solving the problem]

[0019] Summary of the Invention According to a first aspect of the present invention, the inventors of the present application have noticed that one problem faced when trying to improve lossless coding of pictures or videos is due to the fact that some tools of the decoder or encoder, such as the adaptive loop filter (ALF) or the reshaper tool, result in lossy coding. According to the first aspect of the present application, this difficulty is overcome by disabling one or more tools for processing the prediction residual compensated prediction reconstruction in order to avoid loss of information after lossless reconstruction of a given part of the picture. In other words, post-reconstruction modifications of samples of the given part of the picture are disabled. Furthermore, the first aspect is based on the idea that one or more tools can be disabled for lossless coding without requiring a syntax element indicating lossless predictive residual coding of the given part of the picture. The decoder and the encoder may be configured to infer that lossless predictive residual coding is used for a given part of the picture based on a number of coding parameters contained in the data stream, whereby no explicit signaling of lossless coding is required. The decoder is configured to advantageously switch between lossless and lossy coding for individual parts of the picture. No additional signaling is required to indicate lossless coding for individual parts of the picture. This results in a reduced amount of data to be coded and also a reduced amount of data used to decode a given part of the picture. Improved lossless coding compression can be achieved. Although the data stream can include a lossless coding syntax element indicating whether a given region of the picture or the entire picture is coded using lossless coding, it is no longer necessary for the data stream to include a lossless coding syntax element for each part of the picture. This is because the decoder and / or encoder can check whether the coding parameters indicate lossless predictive residual coding or not. Furthermore, it has been found that by combining disabling one or more tools of the decoder or encoder and checking whether a plurality of coding parameters indicate coding parameter settings corresponding to lossless predictive residual coding, higher coding efficiency and reduced bitrate can be achieved.

[0020] Thus, according to a first aspect of the present application, a decoder for decoding a picture from a data stream is configured to check whether a number of coding parameters, e.g., a quantization parameter (QP) and / or a transform mode (TM), included in the data stream and relating to a given part of the picture and controlling a prediction residual transform mode and a quantization precision for the given part, indicate a coding parameter setting corresponding to a lossless prediction residual coding. A coding parameter setting corresponding to such a lossless prediction residual coding is represented, for example, by (QP, TM) = (4, transform skip) or (QP, TM) = (1...4, transform skip). A coding parameter setting corresponds to a lossless prediction residual coding because such coding is signaled immediately by the coding parameter setting or by the decoder being configured to interpret or change such coding parameter setting into a coding parameter setting leading to a lossless residual coding, e.g., by mapping a quantization parameter smaller than 4 (QP<4) to a quantization parameter equal to 4 (QP=4) when the transform mode is transform skip. The interpretation or modification of the coding parameter setting may be based on the plurality of coding parameters. The decoder may be configured to derive from the plurality of coding parameters whether to use lossy or lossless predictive residual coding for a given portion of the picture. In response to the plurality of coding parameters indicating a coding parameter setting corresponding to lossless predictive residual coding, the decoder is configured to set one or more default coding options for one or more tools of the decoder for processing prediction residual-compensated prediction reconstruction for the given portion, such as deblocking, sample adaptive offset filtering (SAO) and / or adaptive loop filtering (ALF), such that the one or more tools are disabled for the given portion.

[0021] In parallel with the decoder, an encoder for encoding a picture into a data stream is configured to signal a plurality of coding parameters in the data stream and to ascertain whether a plurality of coding parameters associated with a predefined portion of the picture and controlling a prediction residual transform mode and a quantization precision for the predefined portion indicate coding parameter settings corresponding to lossless prediction residual coding. In response to the plurality of coding parameters indicating coding parameter settings corresponding to lossless prediction residual coding, the encoder is configured to set one or more predefined coding options associated with one or more tools of the encoder for processing a prediction residual-compensated prediction reconstruction for the predefined portion such that the one or more tools are disabled for the predefined portion in a prediction loop of the encoder.

[0022] According to a second aspect of the present invention, the inventors of the present application have noticed that one problem faced when trying to improve lossless coding of pictures or videos is due to the fact that lossless coding usually causes a significantly higher bit rate compared to lossy coding. According to a second aspect of the present application, this difficulty is overcome by using different codes in the binarization for lossless coding and lossy coding. It is possible to switch between different binarizations for lossless coding and lossy coding. It has been found that binarization with reduced computational complexity with respect to binarization in the lossy case significantly reduces the bit rate for lossless coding. In the case of lossless coding compared to lossy coding, for example in CABAC using context modeling and binary arithmetic coding, the computational complexity is reduced by coding more bins using equal probability bypass mode instead of normal coding mode. Thus, processing bottlenecks can be prevented.

[0023] Therefore, a second aspect of the present application relates to a decoder for decoding a picture from a data stream and an encoder for encoding a picture into a data stream. The decoder (encoder) is configured to determine for a given part of a picture whether it is encoded into the data stream using lossless or lossy encoding. The decoder (encoder) is configured to decode (encode) a prediction residual for the given part from the data stream (into the data stream) using binarization of prediction residual data into a bin string and context-adaptive binary entropy decoding (encoding) of the bin string in a first manner if the given part of the picture is encoded into the data stream using lossless encoding, and in a second manner if the given part of the picture is encoded into the data stream using lossy encoding. The first and second methods are different, and the first method has a reduced computational complexity compared to the second method.

[0024] According to a third aspect of the present invention, the inventors of the present application have realized that one problem faced when trying to improve lossless coding of pictures or videos is due to the fact that a transform by an encoder or an inverse transform by a decoder may require an integer rounding step that prohibits a mathematically perfect reconstruction of a picture or a part of a picture. Therefore, currently, the transform process is bypassed or disabled for lossless coding. According to a third aspect of the present application, this difficulty is overcome by using a fully lossless transform for lossless coding. The decoder / encoder is configured to be able to switch between different transform modes for lossless and lossy coding. With a fully lossless transform, lossless coding can be realized since no rounding errors occur. A fully lossless transform is, for example, an inter-component transform or a spectrally resolved color intra-component transform. Although there may be additional syntax elements required in the data stream to indicate and / or control the fully lossless transform, it has been found that the bit rate is significantly reduced, thereby increasing the efficiency of the coding.

[0025] Therefore, a third aspect of the present application relates to a decoder for decoding a picture from a data stream and an encoder for encoding a picture into a data stream. The decoder (encoder) is configured to determine for a given part of a picture whether it is (is) encoded into the data stream using lossless or lossy coding. The decoder (encoder) is configured to perform (e.g., in a prediction loop of the encoder) a full lossless transform for a prediction residual or a prediction residual compensated reconstruction of the given part if the given part of the picture is (is) encoded into the data stream using lossless coding, or an incomplete lossless transform if the given part of the picture is (is) encoded into the data stream using lossy coding.

[0026] According to a fourth aspect of the present invention, the inventors of the present application have realized that one problem faced when trying to improve lossless coding of pictures or videos is due to the fact that smoothing filters introduce loss of information. According to a fourth aspect of the present application, this difficulty is overcome by disabling or reducing the filtering used to obtain the prediction signal for a part of the picture that is to be losslessly decoded or encoded compared to lossy coding. As a result of disabling the filtering for that part, there are no syntax elements related to filtering in the data stream, which allows for improved bitstream compression to be achieved. Alternatively, the prediction signal for the part of the picture is less filtered in the case of lossless coding than in the case of lossy coding. In the case of lossless coding, for example, an interpolation filter can be applied, where the higher half of the frequencies of the overall spatial frequency spectrum of the prediction signal have a higher energy in the case of lossless coding than in the case of lossy coding. This is based on the idea that in the case of lossless coding, it is advantageous to change the prediction signal as little as possible when deriving it. It has been found that the special filtering options for lossless coding result in a higher efficiency, with a higher information content of the prediction signal, resulting in a lower bitrate.

[0027] Thus, a fourth aspect of the present application relates to a decoder for decoding a picture from a data stream and an encoder for encoding a picture into a data stream. The decoder (encoder) is configured to determine for a given part of a picture whether it is (is) encoded into the data stream using lossless or lossy coding. The decoder (encoder) is configured to derive a prediction signal for the given part in a first manner if the given part of the picture is (is) encoded into the data stream using lossless coding, and in a second manner if the given part of the picture is (is) encoded into the data stream using lossy coding. The first and second manners are different in that the prediction signal is not filtered in the first manner than in the second manner, for example by using an interpolation filter, or is filtered in the second manner but not filtered in the first manner.

[0028] According to a fifth aspect of the present invention, the inventors of the present application have realized that one problem faced when trying to improve lossless coding of pictures or videos is due to the fact that in-loop filters and / or quantization result in loss of information. According to a fifth aspect of the present application, this difficulty is overcome by disabling one or more tools of the decoder / encoder for processing prediction residual compensation prediction reconstruction for a given part and / or by disabling one or more tools of the decoder / encoder for prediction residual requantization / quantization. Disabling the tools for that part results in the absence or reduction of post-processing related syntax elements and / or (re)quantization related syntax elements in the data stream, thereby achieving improved bitstream compression.

[0029] Thus, a fifth aspect of the present application relates to a decoder for decoding a picture from a data stream and an encoder for encoding a picture into a data stream. The decoder (encoder) is configured to determine, for a given part of a picture, whether it is encoded into the data stream using lossless or lossy encoding. The decoder (encoder) is configured to infer that one or more default encoding options associated with one or more tools of the decoder (encoder) for processing prediction residual-compensated prediction reconstruction for the given part (e.g., in a prediction loop of the encoder) and / or for prediction residual requantization (quantization) are set by deriving one or more default encoding options from a plurality of encoding parameters if the given part of the picture is encoded into the data stream using lossless encoding, such that the one or more tools are disabled for the given part if the given part of the picture is encoded into the data stream using lossy encoding.

[0030] According to a sixth aspect of the present invention, the inventors of the present application have noticed that one problem faced when trying to improve lossless coding of pictures or videos is due to the fact that the difference between the bit depth associated with the video to be encoded or associated with the video output by the decoder, i.e. the input bit depth, and the internal bit depth results in information loss. According to the sixth aspect of the present application, this difficulty is overcome by making a bit depth transition. Thus, either the input bit depth or the difference between the input bit depth and the internal bit depth is encoded into the data stream by the encoder and read from the data stream by the decoder. Alternatively, the input bit depth or said difference can be indicated by one or more coding parameters, such as a quantization parameter (QP). With information about the input bit depth or the difference, the decoder is configured to output the video at the input bit depth, whereby the bit depth of the video output is equal to the bit depth of the video input encoded by the encoder. In this way, lossless coding can be realized. When the bit depth is indicated by one or more parameters, no additional syntax elements are required, thereby improving bit stream compression can be realized. Note that the input bit depth, which is the bit depth at which the decoder outputs the video - so named due to the fact that the input bit depth is what the encoder receives the video for encoding - does not have to be equal to the internal bit depth, but the encoder and decoder are capable of different configurations of the data stream, including some where both bit depths are the same and some where they are not.

[0031] Therefore, a sixth aspect of the present application relates to a video decoder and a video encoder. The decoder is configured to perform video decoding from a data stream at an internal bit depth and output a video at an input bit depth or an internal bit depth. In parallel with the decoder, the encoder is configured to perform video encoding on the data stream at an internal bit depth and receive a video input at an input bit depth or an internal bit depth. For example, if the bit depth of the input video and / or the output video, i.e. the input bit depth, is equal to the internal bit depth, the output video and / or the input video is associated with the internal bit depth. Furthermore, the decoder (encoder) is configured to read (encode) a syntax element from (into) the data stream, which indicates a difference between the input bit depth and / or the internal bit depth and the input bit depth.

[0032] Therefore, a sixth aspect of the present application relates to a video decoder configured to perform video decoding from a data stream at an internal bit depth and to output a video at an input bit depth or an internal bit depth. In parallel with the video decoder, a video encoder is configured to perform video encoding to a data stream at an internal bit depth and to receive a video input at an input bit depth or an internal bit depth. For example, if the bit depth of the input video and / or the output video, i.e. the input bit depth, is equal to the internal bit depth, the output video and / or the input video is associated with the internal bit depth. Furthermore, the decoder (encoder) is configured to read (encode) from (into) the data stream a syntax element indicating a minimum value of a quantization step size scale parameter (QP min), i.e. an absolute or relative quantization step size, requantization step size or scaling parameter. The minimum quantization step size scale parameter may represent a quantization parameter equal to unity step size, i.e. 4. The syntax element indicates, for example, the minimum value of the quantization step size scale parameter that results from a non-zero difference between the internal bit depth and the input bit depth. The decoder may, for example, be informed of this difference between the internal bit depth and the input bit depth in addition to the QP minimum, either by sending the difference as described above, or by sending both values, i.e., the internal bit depth and the input bit depth. A QP other than 4 may result in lossless or almost lossless encoding. A QP smaller than 4 may be adapted by the decoder to a QP equal to 4, resulting in lossless encoding if the QP minimum is set to 4.

[0033] Therefore, a sixth aspect of the present application relates to a video decoder (encoder) configured to decode (encode) from a data stream showing an internal bit depth and an input bit depth or a difference between them, and to perform video decoding (encode) from the data stream (to a data stream) at the internal bit depth. Furthermore, the decoder is configured to output video at the input bit depth, and the encoder is configured to receive, i.e., input video at the input bit depth. The decoder (encoder) is configured to check whether the internal bit depth is lower than the input bit depth, and to change the internal bit depth to correspond to the input bit depth. In this way, the difference between the input bit depth and the internal bit depth is corrected, and lossless encoding is realized.

[0034] The embodiments relate to a method based on similar considerations as the encoder and / or decoder described above, however the method may be completed with all the features and functions described with respect to the encoder and / or decoder.

[0035] One embodiment relates to a computer program having a program code for performing the methods described herein, when the computer program runs on a computer.

[0036] An embodiment relates to a data stream obtained by a method for block-based coding of a picture signal.

[0037] BRIEF DESCRIPTION OF THE DRAWINGS The drawings are not necessarily to scale, with emphasis instead generally being placed upon illustrating the principles of the invention. In the following description, various embodiments of the invention are described with reference to the following drawings: [Brief description of the drawings]

[0038] [Figure 1a] FIG. 1a shows a schematic diagram of an encoder. [Figure 1b] FIG. 1b shows a schematic diagram of an alternative encoder. [Diagram 2] FIG. 2 shows a schematic diagram of a decoder. [Diagram 3] FIG. 3 shows a schematic diagram of block-based coding. [Figure 4] FIG. 4 shows a schematic diagram of decoder-side scaling and inverse transform in modern video coding standards. [Diagram 5] FIG. 5 shows a schematic diagram of decoder-side scaling and inverse transformation according to one embodiment. [Figure 6] FIG. 6 shows a schematic diagram of a lossless coding check performed by a decoder and / or encoder according to one embodiment. [Figure 7] FIG. 7 shows a block diagram of a method for using different binarization depending on lossless or lossy encoding. [Figure 8] FIG. 8 shows a block diagram of a method using a full lossless transform for lossless encoding. [Figure 9] FIG. 9 shows a block diagram of a method for deriving a prediction signal depending on lossless or lossy encoding. [Figure 10] FIG. 10 shows a block diagram of a method for setting one or more default encoding options according to lossless or lossy encoding. [Figure 11a] FIG. 11a shows a block diagram of a method taking into account the input bit depth and the internal bit depth according to a first embodiment. [Figure 11b] FIG. 11b shows a block diagram of a method taking into account the input bit-depth and the internal bit-depth according to the first embodiment. [Figure 12a] FIG. 12a shows a block diagram of a method taking into account the input bit depth and the internal bit depth according to a second embodiment. [Figure 12b] FIG. 12b shows a block diagram of a method taking into account the input bit depth and the internal bit depth according to the second embodiment. [Figure 13a] FIG. 13a shows a block diagram of a method taking into account the input bit depth and the internal bit depth according to a third embodiment. [Figure 13b]FIG. 13b shows a block diagram of a method taking into account the input bit-depth and the internal bit-depth according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0039] Detailed Description of the Embodiments In the following description, equal or similar elements or elements having equal or similar functions are designated by equal or similar reference numbers even if they are depicted in different figures.

[0040] In the following description, a number of details are set forth to more fully describe the embodiments of the present invention. However, it will be apparent to those skilled in the art that the embodiments of the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form, rather than in detail, in order not to obscure the embodiments of the present invention. In addition, the features of the various embodiments described below in this specification may be combined with each other unless otherwise specified.

[0041] The following diagrammatic description begins with the presentation of an encoder and decoder of a block-based predictive codec for encoding pictures of video to form an example for an encoding framework in which embodiments of the present invention may be incorporated. Respective encoders and decoders are described with respect to Figures 1a to 3. Although embodiments of the inventive concepts described herein may be incorporated into the encoders and decoders of Figures 1a, 1b and 2, respectively, the embodiments described in Figures 4 to 6 may also be used to form encoders and decoders that do not operate according to the encoding framework underlying the encoders and decoders of Figures 1a, 1b and 2.

[0042] FIG. 1a shows an apparatus (e.g., a video encoder / picture encoder) for predictively encoding a picture 12 into a data stream 14, exemplarily using transform-based residual coding. The apparatus, or encoder, is indicated with reference number 10. FIG. 1b also shows an apparatus for predictively encoding a picture 12 into a data stream 14, showing a possible prediction module 44 in more detail. FIG. 2 shows a corresponding decoder 20, i.e. an apparatus 20 configured to predictively decode a picture 12' from a data stream 14 that also uses transform-based residual coding, where the apostrophe is used to indicate that the picture 12' reconstructed by the decoder 20 deviates from the picture 12 originally encoded by the apparatus 10 in coding the loss introduced by the quantization of the prediction residual signal. Although FIGS. 1a, 1b and 2 exemplarily use transform-based predictive residual coding, embodiments of the present application are not limited to this type of predictive residual coding. As outlined below, this also applies to other details described with respect to FIGS. 1a, 1b and 2.

[0043] The encoder 10 is configured to perform a spatial-spectral transformation on the prediction residual signal and to encode the resulting prediction residual signal into a data stream 14. Similarly, the decoder 20 is configured to decode the prediction residual signal from the data stream 14 and performs a spatial-spectral transformation on the resulting prediction residual signal.

[0044] Internally, the encoder 10 may comprise a prediction residual signal former 22 for generating a prediction residual 24 to measure the deviation of a prediction signal 26 from an original signal, i.e. the picture 12, where the prediction signal 26 may also be interpreted as a linear combination of a set of one or more prediction blocks according to an embodiment of the present invention. The prediction residual signal former 22 may for example be a subtractor for extracting the prediction signal from the original signal, i.e. the picture 12. The encoder 10 further comprises a transformer 28 for performing a spatial-spectral transformation on the residual signal 24 to obtain a spectral domain prediction residual signal 24', which is then quantized by a quantizer 32 provided in the encoder 10. The prediction residual signal 24'' thus quantized is coded into the bitstream 14. For this purpose, the encoder 10 may optionally comprise an entropy coder 34 for entropy coding the prediction residual signal transformed and quantized into the data stream 14.

[0045] The prediction signal 26 is generated by a prediction stage 36 of the encoder 10 on the basis of a prediction residual signal 24'' encoded in the data stream 14 and decodable therefrom. For this purpose, the prediction stage 36 may comprise, as shown in FIG. 1a, an inverse quantizer 38 for inverse quantizing the prediction residual signal 24'' so as to obtain a spectral domain prediction residual signal 24''' corresponding to the signal 24' except for the quantization losses, followed by an inverse transformer 40 for inversely transforming, i.e. performing a spectral-spatial transformation, the latter prediction residual signal 24'' to obtain a prediction residual signal 24'''' corresponding to the original prediction residual signal 24 except for the quantization losses. A combiner 42 of the prediction stage 36 then recombines the prediction signal 26 and the prediction residual signal 24'''', for example by addition, to obtain a reconstructed signal 46, i.e. a reconstructed version of the original signal 12. The reconstructed signal 46 may correspond to the signal 12'. A prediction module 44 of the prediction stage 36 then generates a prediction signal 26 based on the signal 46, for example using spatial prediction, i.e. intra-picture prediction, and / or temporal prediction, i.e. inter-picture prediction, as shown in more detail in FIG. 1b.

[0046] Similarly, as shown in Figure 2, the decoder 20 may be internally configured with components corresponding to the prediction stage 36, interconnected in a manner corresponding to the prediction stage 36. In particular, an entropy decoder 50 of the decoder 20 may entropy decode a quantized spectral domain prediction residual signal 24'' from the data stream, whereby an inverse quantizer 52, an inverse transformer 54, a combiner 56 and a prediction module 58, interconnected and cooperating in the manner described above with respect to the modules of the prediction stage 36, recover a reconstructed signal based on the prediction residual signal 24'', resulting in a reconstructed signal, i.e., picture 12', at the output of the combiner 56, as shown in Figure 2.

[0047] Although not specifically described above, it is readily apparent that the encoder 10 may set some encoding parameters, including, for example, prediction modes, motion parameters, etc., according to some optimization schemes, such as, for example, some rate and distortion criteria, i.e., a method for optimizing the encoding cost. For example, the encoder 10 and the decoder 20 and their corresponding modules 44, 58 may support various prediction modes, such as intra-coding and inter-coding modes. The granularity with which the encoder and the decoder switch between these prediction mode types may correspond to subdivision of each of the pictures 12 and 12' into coding segments or coding blocks. In units of these coding segments, for example, a picture may be subdivided into intra-coded and inter-coded blocks.

[0048] Intra-coded blocks are predicted based on the spatially already coded / decoded neighbors (e.g., current template) of the respective block (e.g., current block), as described in more detail below. Several intra-coding modes exist and may be selected for each intra-coding segment, including a directional intra-coding mode or an angular intra-coding mode, depending on filling the respective segment by extrapolating the sample values ​​of neighbors along a particular direction, specified for the respective directional intra-coding mode, to the respective intra-coding segment. The intra-coding modes may include one or more other modes, such as, for example, a DC coding mode in which the prediction of the respective intra-coded block assigns a DC value to all samples in the respective intra-coded segment, and / or a planar intra-coding mode in which the prediction of the respective block approaches or determines a spatial distribution of sample values ​​described by a two-dimensional linear function on the sample positions of the respective intra-coded block that drives the tilt and offset of the plane defined by the two-dimensional linear function based on the neighboring samples.

[0049] In comparison, inter-coded blocks may be predicted, for example, temporally. For inter-coded blocks, motion vectors may be signaled in the data stream 14, indicating the spatial displacement of parts of a previously coded picture (e.g., a reference picture) of the video to which the picture 12 belongs, and the previously coded / decoded picture is sampled to obtain a prediction signal for each inter-coded block. This means that in addition to the residual signal coding constituted by the data stream 14, such as the entropy-coded transform coefficient levels representing the quantized spectral domain prediction residual signal 24'', the data stream 14 may also code therein any other parameters, such as coding mode parameters for assigning coding modes to the various blocks, prediction parameters for parts of the blocks, such as motion parameters for the inter-coded segments, as well as parameters for controlling and signaling the subdivision of each of the pictures 12 and 12' into segments. The decoder 20 uses these parameters to subdivide the pictures in the same way as the encoder did, assign the same prediction modes to the segments, perform the same predictions, and result in the same prediction signals.

[0050] FIG. 3 shows the relationship between the reconstructed signal, i.e. the reconstructed picture 12′, on the one hand, and the combination of the prediction residual signal 24″″ and the prediction signal 26 signaled in the data stream 14, on the other hand. As already mentioned above, the combination may be additive. The prediction signal 26 is shown in FIG. 3 as a subdivision of the picture area into intra-coded blocks, exemplarily shown using hatching, and inter-coded blocks, exemplarily shown without hatching. The subdivision may be arbitrary, such as a regular subdivision of the picture area into rows and columns of square or non-square blocks, or a multi-tree subdivision of the picture 12 from a tree root block into a number of leaf blocks of various sizes, such as a quad-tree subdivision, a mix of which is shown in FIG. 3, where the picture area is first subdivided into rows and columns of tree root blocks, which are then further subdivided by recursively multi-tree subdivision of one or more leaf blocks.

[0051] Furthermore, for intra-coded blocks 80, data stream 14 may be coded in an intra-coding mode therein, assigning one of several supported intra-coding modes to each intra-coded block 80. For inter-coded blocks 82, data stream 14 may have one or more coded motion parameters therein. Generally speaking, inter-coded blocks 82 are not limited to being temporally coded. Instead, inter-coded blocks 82 may be any blocks predicted from previous coded portions beyond current picture 12 itself, such as pictures of previous coded video belonging to picture 12, or pictures of other views, or in the case of the respective encoders and decoders of scalable encoders and decoders, of hierarchically lower layers.

[0052] In FIG. 3, the prediction residual signal 24'''' is illustrated as a subdivision of the picture domain into blocks 84. These blocks may be called transform blocks to distinguish them from the coding blocks 80 and 82. In effect, FIG. 3 shows that the encoder 10 and the decoder 20 may use two different subdivisions of the picture 12 and the picture 12' into blocks, respectively, namely, on the one hand, into coding blocks 80 and 82, respectively, and on the other hand, into transform blocks 84. Both subdivisions can be the same, i.e., each coding block 80 and 82 can simultaneously form a transform block 84, but FIG. 3 shows the case where the subdivision into transform blocks 84 forms an extension of the subdivision into coding blocks 80, 82, for example, such that any boundary between the two blocks 80 and 82 overlaps the boundary between the two blocks 84, or, alternatively, such that each block 80, 82 coincides with one of the transform blocks 84 or with a group of transform blocks 84. However, the subdivisions may be determined or selected independently of one another, and the transform blocks 84 may alternately cross the block boundaries between the blocks 80, 82. Thus, as far as the subdivision into transform blocks 84 is concerned, similar assertions apply as those made with respect to the subdivision into blocks 80, 82, i.e., the blocks 84 may be the result of a regular subdivision of the picture region into blocks (with or without arrangement into rows and columns), a recursive multi-tree subdivision of the picture region, or a combination thereof or any other kind of blocking. As an aside, it should be noted that the blocks 80, 82, 84 are not limited to being quadratic, rectangular or any other shape.

[0053] 3 further illustrates that the combination of the prediction signal 26 and the prediction residual signal 24'''' directly results in the reconstructed signal 12'. However, it should be noted that according to alternative embodiments, multiple prediction signals 26 may be combined with the prediction residual signal 24'''' to result in the picture 12'.

[0054] In Fig. 3, the transform blocks 84 have the following meaning. The transformer 28 and the inverse transformer 54 perform their transforms in units of these transform blocks 84. For example, many codecs use some DST (Discrete Sine Transform) or DCT (Discrete Cosine Transform) for all transform blocks 84. For some transform blocks 84, some codecs can skip the transform so that the prediction residual signal is directly coded in the spatial domain. However, according to the embodiment described below, the encoder 10 and the decoder 20 are configured to support various transforms. For example, the transforms supported by the encoder 10 and the decoder 20 can include the following: ● DCT-II (or DCT-III), where DCT stands for discrete cosine transform. ● DST-IV, where DST stands for discrete sine transform. ● DCT-IV ● DST-VII ● Identity transformation (IT)

[0055] Naturally, the transformer 28 will support all of the forward transform versions of these transforms, and the decoder 20 or inverse transformer 54 will support the corresponding backward or inverse versions of them below. ● Inverse DCT-II (or inverse DCT-III) ● Reverse DST-IV ● Inverse DCT-IV ● Reverse DST-VII ● Identity transformation (IT)

[0056] The following description explains in more detail which transforms may be supported by the encoder 10 and the decoder 20. In any case, it should be noted that while the set of supported transforms may include one transform, such as a spectral-spatial or spatial-spectral transform, it is also possible that for all or a single block 80, 82, 84, no transform is used by the encoder or decoder.

[0057] As already outlined above, Figures 1a to 3 are presented as examples in which the inventive concepts described herein may be implemented to form specific examples for an encoder or decoder according to the present application. To that extent, each of the encoders and decoders of Figures 1a, 1b and 2 may represent possible implementations of the encoders and decoders described herein above. However, Figures 1a, 1b and 2 are examples. However, an encoder according to an embodiment of the present application may perform a block-based encoding of the picture 12 using concepts outlined in more detail elsewhere in this specification and may differ from the encoder of Figures 1a, 1b, for example, in that the subdivision into blocks 80 is performed in a different way than illustrated in Figure 3 and / or in that a transform (e.g., transform skip / identity transform) is used for all or a single block. Similarly, a decoder according to an embodiment of the present application performs block-based decoding of picture 12′ from data stream 14 using the coding concepts outlined further below, but may differ from decoder 20 of FIG. 2 in that, for example, it subdivides picture 12′ into blocks in a different manner than described in relation to FIG. 3, and / or it does not derive prediction residuals from data stream 14, for example in the spatial domain rather than the transform domain, and / or it does not use transforms at all for all or even single blocks.

[0058] According to an embodiment, the inventive concept described below may relate to the transformer 28 / inverse transformer 40 and quantizer 32 / inverse quantizer 38 of the encoder or the inverse transformer 54 and inverse quantizer 52 of the decoder. According to an embodiment, the transformer 28, inverse transformer 40, 54, quantizer 32 and / or inverse quantizer 38, 52 may disable lossless coding of blocks of the picture, where lossless coding is indicated by coding parameters such as the quantization parameter and the transformation mode. The inventive concept may relate to further processing of the prediction residual 24'' and / or the prediction signal 26 and / or the prediction residual-compensated prediction reconstruction 46, where the focus is on the functionality of the decoder / encoder in lossless coding.

[0059] The quantization step size, i.e., the quantization precision, can vary depending on the selected transform and transform block size as described below. The description is written from the decoder's point of view, and the decoder-side scaling 52 (multiplication) with the quantization step size can be seen as the inverse (lossy) of the encoder-side division by the step size.

[0060] On the decoder side, in recent video coding standards such as H.265 / HEVC, a (quantized) transform coefficient level scaling 52, i.e. inverse quantization, is shown for transform coefficients resulting from a DCT / DST integer transform with higher precision, as shown in Fig. 4, where the variable bitDepth specifies the bit depth of the image samples, e.g. 8 or 10 bits. The variables log2TbW and log2TbH specify the logarithm to the base 2 of the width and height of the transform block, respectively. Fig. 4 shows the decoder side scaling 52 and inverse transform 54 in recent video coding standards such as H.265 / HEVC.

[0061] At the decoder, two 1-D DCT / DST-based integer transforms 1281 are

number

[0062] For QPs below 4, the levelScale for these QPs is 64=26 is smaller than the step size or scaling factor

number

[0063] Varying the quantization step size depending on the selected transform, e.g., whether to skip a transform or not, may be used to derive different quantization step sizes for the transform skip 1282. In particular, for the lowest QPs 0, 1, 2 and 3, this would solve the problem of having a quantization step size / scaling factor smaller than 1 for the lowest QP. In one example shown in FIG. 5, the solution can be to clip 53 the quantization parameter to the minimum allowed value of 4 (QP'), resulting in a quantization step size that is not smaller than 1. In addition, the size-dependent normalization 541 by bdShift1 and the final rounding to bit depth 542 by bdShift2 required by the transform can be moved up the transform path 54. This reduces the transform skip scaling to a downshift by 10 bits with rounding. In another example, instead of clipping the QP value to 4, a bitstream restriction can be defined that prevents the encoder from using QP values ​​that result in a scaling factor smaller than 1 for the transform skip. FIG. 5 shows an improved decoder-side scaling 52 and inverse transform 54 according to the invention.

[0064] At the other end of the bitrate range, i.e. lower bitrates, the quantization step size of the Identity Transform 1282 may be reduced by an offset, resulting in higher fidelity for blocks that do not apply a transform or that apply the Identity Transform 1282. This allows the encoder to select an appropriate QP value for the transform skip block to achieve higher compression efficiency. This aspect is not limited to the Identity Transform / Transform Skip 1282, but can also be used to modify by offsetting the QP of other transform types 1281. The encoder will determine this offset in a way that improves coding efficiency, for example by maximizing the perceived visual quality for a given bitrate, or by minimizing an objective distortion such as squared error, or by reducing the bitrate for a given quality / distortion. This optimal derivation (with respect to the applied criterion) from the slice QP depends on further factors, such as, for example, the content, the bitrate or complexity operating point, and the selected transform and transform block size. The present invention describes a method for signaling QP offsets in the case of multiple transforms. Without loss of generality, given two alternative transforms, a fixed QP offset may be signaled by the encoder in a high-level syntax structure (such as a sequence parameter set, picture parameter set, tile group header, slice header, or similar) for each of the two alternative transforms. Alternatively, the QP offset is signaled by the encoder for each transform block, e.g., when the encoder selects an alternative transform. A combination of the two approaches is the signaling of a basis QP offset in a high-level syntax structure, and an additional offset for each transform block that uses an alternative transform. The offset can be a value that is added or subtracted from the base QP, or an index into a set of offset values. The set may be predefined or signaled in a high-level syntax structure.

[0065] ● The QP offset relative to the base QP of the identity transform may be signaled at a higher level syntax structure, e.g., at the sequence, picture, tile group, tile or slice level. ● Alternatively, a QP offset relative to the base QP of the identity transform may be signaled for each coding unit or a predefined set of coding units. ● Alternatively, a QP offset relative to the base QP of the identity transform may be signaled to each transform unit that applies the identity transform.

[0066] Figure 6 shows the features and functionality of a decoder, for example the decoder 20 or 36 shown in Figures 1a to 2. Also, although the following description is written mainly from the perspective of a decoder, it will be apparent that an encoder may have parallel features.

[0067] The picture 12 is encoded by an encoder into a data stream 14, and the decoder is configured to provide a reconstructed picture based on the data stream 14, the reconstructed picture being equal to the picture 12 or, in case of lossless encoding, having minimally discernible differences to the picture 12. The picture 12 can be divided into portions 100, i.e., blocks, and regions 104. The regions 104 include a number of portions 100. A predefined portion 100 is within a predefined region 104. The data stream 14 may include portion-specific information, such as a number of coding parameters 98, and optionally region-specific information, such as lossless coding syntax elements 102. The number of coding parameters 98 are associated with the predefined portion 100 of the picture 12 and control, for the predefined portion 100, a prediction residual transform mode, e.g., in the transformer 28 and inverse transformer 40, 54 shown in Figs. 1a-2, and a quantization precision, e.g., in the quantizer 28 and inverse quantizer 40, 54 shown in Figs. 1a-2. The prediction residual transform mode may be controlled by a transform mode indication syntax element 981. The quantization precision may be controlled by a quantization parameter (QP) 982.

[0068] A decoder for decoding the picture 12 from the data stream 14 is configured to check 106 whether the plurality of coding parameters 98 indicates coding parameter settings corresponding to lossless predictive residual coding 1061, either because they signal such coding immediately or because the decoder is configured to interpret or change such settings to settings that lead to lossless residual coding, such as mapping QP<4 to QP=4 when TM=transform skip. An encoder for encoding the picture 12 into the data stream 14 may also be configured to check whether the plurality of coding parameters 98 indicates coding parameter settings corresponding to lossless predictive residual coding 1061. (QP, TM)=(4, transform skip) or (QP, TM)=(1...4, transform skip) may indicate coding parameter settings corresponding to lossless predictive residual coding 1061. An encoding parameter setting in which the quantization parameter 982 is set to a quantization precision equal to or finer than the default quantization precision and / or the transform mode indication syntax element 981 is set to transform skip as the transform mode may correspond to lossless predictive residual encoding 1061.

[0069] According to one embodiment, the decoder / encoder is configured to read / signal a plurality of coding parameters 98 from / to the data stream 14, check whether the prediction residual transformation mode indicated by the plurality of coding parameters 98, e.g. the prediction residual transformation mode indicated by the transformation mode indication syntax element 981, corresponds to a transform skip mode, and whether the quantization precision indicated by the plurality of coding parameters 98, e.g. the quantization precision indicated by the quantization parameter 982, corresponds to a quantization precision finer than a default quantization step size corresponding to no quantization, e.g. QP<4, and if so, change the quantization step size to the default quantization step size, e.g. QP=4. If the transformation mode is set to transform skip, the decoder / encoder is configured to map the quantization parameter 982 finer than the default quantization precision (QP<4) to a quantization parameter 982 equal to the default quantization precision to enable lossless encoding. The default quantization precision may represent no quantizer 32,52, or bypassing or disabling the quantizer 32,52.

[0070] In response to the plurality of coding parameters 98 indicating coding parameter settings corresponding to lossless prediction residual coding 1061, the decoder / encoder is configured to set 110 one or more default coding options for one or more tools of the decoder / encoder for processing prediction residual-compensated predictive reconstruction (e.g., in a prediction loop of the encoder) for the default portion 100 such that the one or more tools are disabled for the default portion 100. The prediction residual-compensated predictive reconstruction may represent the output of the combiner 56 or 42, respectively, i.e. the reconstructed signal 46, as shown in Figures 1a-2. The one or more tools may, for example, relate to deblocking, SAO, ALF and be arranged downstream of the output 46 of the combiner 56 or 42, respectively.

[0071] According to one embodiment, the decoder / encoder is configured to set one or more default encoding options for the default portion 100 such that if the plurality of encoding parameters indicates an encoding parameter setting corresponding to lossless predictive residual encoding 1061, then one or more tools are disabled 110 for the default portion 100, and to a default tool state if the plurality of encoding parameters does not indicate an encoding parameter setting corresponding to lossless predictive residual encoding, i.e. in the case of lossy encoding 1062.

[0072] The decoder is configured to read from the data stream 14 a lossless coding syntax element 102 (e.g., determined and encoded by the encoder) that optionally indicates whether a predefined region 104 of the picture covering or including the predefined portion 100 has been coded into the data stream 14 using lossless coding or lossy coding for portions that satisfy a check 106, but not exclusively. The decoder is configured to set 110 one or more default coding options such that one or more tools are disabled for the predefined portion 100 if the lossless coding syntax element 102 indicates that the predefined region 104 of the picture 12 has been coded into the data stream 14 using lossless coding 1061 and the plurality of coding parameters 98 indicate coding parameter settings that correspond to the lossless predictive residual coding 1061. Further, the decoder is configured to set 120 the one or more default encoding options to be the default tool state if the plurality of encoding parameters 98 does not indicate, i.e., is not equal to, an encoding parameter setting corresponding to lossless predictive residual encoding 1061 or if the lossless encoding syntax element 102 indicates that a given region 104 of the picture 12 is encoded into the data stream 14 using lossy encoding 1062. The lossless encoding syntax element 102 is signaled for a region 104 of the picture 12, and for each portion 100 within the region 104, the decoder / encoder checks 106 whether the plurality of encoding parameters 98 indicates lossless encoding 1061 or lossy encoding 1062 for the respective portion 100. Thus, some portions can be decoded / encoded differently than indicated by the lossless encoding syntax element 102 for the entire region 104.

[0073] According to one embodiment, the decoder is configured to determine a default tool state in response to one or more syntax elements 108 in the data stream 14, e.g. syntax elements related to SAO, ALF, etc. In the case of lossless encoding 1061, since one or more tools are disabled 110, the decoder is configured to skip 122 reading one or more tool syntax elements 108. Optionally, if one or more default encoding options for the default portion 100 are set 110 such that one or more tools are disabled for the default portion 100, compare with aspect 3.4, where at least one of the one or more syntax elements 108 is absent from the data stream 14.

[0074] According to one embodiment, the decoder is configured to set 130 one or more further coding options for the given portion 100 to a default state, e.g. as described in the following description with respect to aspects 1 to 3.4 below, in response to the plurality of coding parameters 98 indicating a coding parameter setting corresponding to a lossless predictive residual coding 1061. The default state may represent reduced filtering or disabled filtering with respect to the low-pass filtering for the derivation of the prediction signal of the given portion 100, e.g. the prediction signal 26 shown in Figures 1a to 2, see aspect 3.3, and / or performing a full inverse transform on the prediction residual signal, e.g. the prediction residual signal 24 shown in Figures 1a to 2, see aspect 3.2. Further encoding options may relate to binarization of prediction residual data into bin strings and context-adaptive binary entropy decoding of the bin strings, see embodiment 3.1, and / or using a full inverse transform on the prediction residuals 24'',24'''' or the prediction residual compensated reconstruction 46 of the predefined portion 100, see embodiment 3.2, and / or disabling or reducing filtering for derivation of the prediction signal 26 of the predefined portion, see embodiment 3.3, and / or disabling the processing of the prediction residual compensated prediction reconstruction 46 or prediction residual requantization for the predefined portion 100, see embodiment 3.4. Similarly, other encoding options for the encoder may relate to binarization of prediction residual data into bin strings and context-adaptive binary entropy encoding of the bin strings, and / or using a full inverse transform on the prediction residuals 24''', 24'''' or the prediction residual compensated reconstruction 46 of the given portion in the prediction loop of the encoder, and / or disabling or reducing filtering for derivation of the prediction signal 26 of the given portion, and / or disabling the processing of prediction residual compensated prediction reconstruction 46 or the processing of prediction residual quantization for the given portion 100.

[0075] The encoder may be configured to determine and encode a plurality of coding parameters 98, lossless coding syntax elements 102 and / or tool syntax elements 108 in the data stream 14. The encoder may have parallel features and / or functionality as described with respect to the decoder. This applies at least to the prediction loop 36 of the encoder having the same features and / or functionality as the decoder. However, it will be apparent that features related to the inverse transformer 54 or inverse quantizer 52 of the decoder may also be applied to the transformer 28 and / or quantizer 32 of the encoder as well.

[0076] One or more of the following aspects may be integrated into the decoder / encoder described with respect to Figure 6. Alternatively, the following aspects may be implemented individually in the decoder or encoder.

[0077] Aspect 1: Reducing the number of syntax elements for lossless image or video coding The basic approach of this aspect is that if the above modification adopts a coding quantization parameter (QP) of 4 (unity step size) and post-reconstruction modification of block samples by coding tools such as in-loop filters is disabled, the transform quantization bypass coding flag for sub-blocks is obsolete since its functionality is fully provided by the transform skip function for sub-blocks. Such post-filter disabling can be achieved by conditioning the transform skip mode with a QP of 4 or less.

[0078] In the following paragraphs, various possible implementations are identified.

[0079] An embodiment of aspect 1 is by a 1-bit transform skip indicator for the coding block (here for the transform block, for the color component), called transform_skip_flag. This indicator is transmitted as part of the coding syntax for the transform unit, e.g., as shown in Table 1. The coding parameters 98 may include a transform_skip_flag, i.e., a transform mode indication syntax element 981, that controls the prediction residual transform mode for a given portion 100 of the picture 12. The transform_skip_flag defines transform skip as the transform mode for the given portion 100, i.e., the prediction residual transform mode.

[0080] [Table 1] [Table 2]

[0081] Depending on this transform_skip_flag (value 1 if transform skip is used, value 0 otherwise), the actual quantization parameter qP 982 may be determined, for example, as specified in equations (436)-(438) for palette coding in Section 1.1 and equation (1153) for transform coefficient scaling in Section 1.2 otherwise. The plurality of coding parameters 98 may include this quantization parameter qP 982, which controls the quantization precision for a given portion 100 of picture 12.

[0082] 1.1 Decoding for Palette Mode The inputs to this process are: - a position (xCbComp, yCbComp) that identifies the top-left sample of the current coding block with respect to the top-left sample of the current picture; - a variable treeType that identifies whether a single or dual tree is used, and if a dual tree is used, whether the current tree corresponds to the luma or chroma component. - a variable cIdx which identifies the color component of the current block; and two variables nCbW and nCbH which identify the width and height, respectively, of the current coding block. The output of this process is the array recSamples[x][y], where x=0..nCbW-1, y=0..nCbH-1, which specifies the reconstructed sample values ​​of the block.

[0083] Depending on the value of treeType, the variables startComp, numComps and maxNumPalettePredictorSize are derived as follows: -When treeType equals SINGLE_TREE: startComp=0 (422) numComps=sps_chroma_format_idc==0? 1 : 3 (423) maxNumPalettePredictorSize=63 (424) - otherwise, if treeType equals DUAL_TREE_LUMA: startComp=0 (425) numComps=1 (426) maxNumPalettePredictorSize=31 (427) - else if treeType equals DUAL_TREE_CHROMA: startComp=1 (428) numComps=2 (429) maxNumPalettePredictorSize=31 (430)

[0084] Depending on the value of cIdx, the variables nSubWidth and nSubHeight are derived as follows; - if cIdx is greater than 0 and startComp is equal to 0, nSubWidth is set equal to SubWidthC and nSubHeight is set equal to SubHeightC. - Otherwise, nSubWidth is set equal to 1 and nSubHeight is set equal to 1.

[0085] A (nCbW x nCbH) block of the reconstructed sample array recSamples at position (xCbComp, yCbComp) is denoted as recSamples[x][y], where x=0..nCbW-1, y=0..nCbH-1, and the value of recSamples[x][y] for each x in the range 0 to nCbW-1 and each y in the range 0 to nCbH-1 are derived as follows:- The variables xL, yL, xCbL, yCbL are derived as follows: xL=x*nSubWidth (431) yL=y*nSubHeight (432) xCbL=xCbComp*nSubWidth (433) yCbL=yCbComp*nSubHeight (434) - The variable bIsEscapeSample is derived as follows: - If PaletteIndexMap[xCbL+xL][yCbL+yL] is equal to MaxPaletteIndex and palette_escape_val_present_flag is 1, bIsEscapeSample is set to 1. Otherwise, bIsEscapeSample is set to 0. If -bIsEscapeSample is equal to 0, the following applies: recSamples[x][y] = CurrentPaletteEntries[cIdx][PaletteIndexMap[xCbL+xL][yCbL+yL]] (435) - otherwise (bIsEscapeSample is equal to 1), the following ordered steps are applied: 1. The quantization parameter qP is derived as follows: -If cIdx is equal to 0, qP=Max(QpPrimeTsMin,Qp'Y) (436) -Otherwise, if cIdx is equal to 1, qP=Max(QpPrimeTsMin,Qp'Cb) (437) -Otherwise (cIdx is equal to 2), qP=Max(QpPrimeTsMin,Qp'Cr) (438)

[0086] 1.2 Scaling of conversion coefficients The inputs to this process are: - luma position (xTbY, yTbY) which identifies the top left sample of the current luma transform block with respect to the top left luma of the current picture - variable nTbW which identifies the width of the transform block - variable nTbH which identifies the height of the transform block - variable predMode which identifies the color component of the coding unit - variable cIdx which identifies the color component of the current block The output of this process is a (nTbW) x (nTbH) array d of scaled transform coefficients with elements d[x][y]. The quantization parameter qP and the variable QpActOffset are derived as follows. -If cIdx is equal to 0, the following applies: qP=Qp'Y (1142) QpActOffset = cu_act_enabled_flag[xTbY][yTbY]? -5 : 0 (1143) - Otherwise, if TuCResMode[xTbY][yTbY] is equal to 2, the following applies: qP=Qp'CbCr (1144) QpActOffset=cu_act_enabled_flag[xTbY][yTbY]? 1 : 0 (1145) - otherwise, if cIdx is equal to 1, the following applies: qP=Qp'Cb (1146) QpActOffset=cu_act_enabled_flag[xTbY][yTbY]? 1 : 0 (1147) - otherwise (cIdx is equal to 2), the following applies: qP=Qp'Cr (1148) QpActOffset=cu_act_enabled_flag[xTbY][yTbY]? 3 : 0 (1149) The quantization parameter qP is modified and the variables rectNonTsFlag and bdShift are derived as follows:--if transform_skip_flag[xTbY][yTbY][cIdx] is equal to 0, the following applies: qP=Clip3(0,63+QpBdOffset,qP+QpActOffset) (1150) rectNonTsFlag=(((Log2(nTbW)+Log2(nTbH))&1)==1)? 1 : 0 (1151) bdShift=BitDepth+rectNonTsFlag+ ((Log2(nTbW)+Log2(nTbH)) / 2) - 5 + sh_dep_quant_used_flag (1152) - otherwise (if transform_skip_flag[xTbY][yTbY][cIdx] is equal to 1), the following applies: qP=Clip3(QpPrimeTsMin,63+QpBdOffset,qP+QpActOffset) (1153) rectNonTsFlag=0 (1154) bdShift=10 (1155)

[0087] According to one embodiment, the value of qP is constrained to be greater than or equal to a minimum value of QpPrimeTsMin, a constant (across all of a given video sequence) specified by equation (69).

[0088] sps_internal_bitdepth_minus_input_bitdepth specifies the minimum allowed quantization parameter for transform skip mode as follows: QpPrimeTsMin=4+6*sps_internal_bitdepth_minus_input_bitdepth (69) The value of sps_internal_bitdepth_minus_input_bitdepth should be in the range 0 to 8 inclusive.

[0089] In other words, the decoder / encoder is configured to read / signal a plurality of coding parameters 98 from / to the data stream 14, check whether the prediction residual transform mode indicated by the plurality of coding parameters corresponds to a default quantization step size corresponding to transform skip mode and no quantization, i.e. a quantization step size finer than QpPrimeTsMin, and if so, change the quantization step size to the default quantization step size. Finally, QpPrimeTsMin is specified by a parameter sps_internal_bitdepth_minus_input_bitdepth (in the header of the sequence) transmitted sequence by sequence. The default quantization step size may depend on the internal bit depth and the input bit depth, for example on the difference between the internal bit depth and the input bit depth. The decoder / encoder may be configured to infer a minimum value of the quantization step size scale parameter, i.e. the default quantization step size and / or QpPrimeTsMin based on the difference, and may be configured to follow the minimum quantization step size scale parameter for the portion 100 in the prediction residual transform skip mode. The decoder / encoder may be configured, in following the minimum quantization step size scale parameter for the portion 100 coded in predictive residual transform skip mode, to change the signaled quantization step size scale parameter 982 signaled in the data stream 14 for the portion 100 to be equal to the minimum quantization step size scale parameter if the signaled quantization step size scale parameter is below the minimum quantization step size scale parameter. Note that if this parameter is equal to zero (a commonly unseen case), this results in a value of QpPrimeTsMin of 4.

[0090] Thus, the element sps_internal_bitdepth_minus_input_bitdepth, the element transform_skip_flag and the variable QpPrimeTsMin can be used to achieve lossless coding of prediction residual-compensated predicted reconstructed picture samples within a particular picture region, such as a coding or transform unit, and a particular color component.

[0091] Even when there is in-loop “post-reconstruction” deblocking filtering, to achieve lossless coding, the deblocking filtering parameters also depend on the actual quantization parameter qP, such that filtering is effectively bypassed when the value of qP is less than or equal to QpPrimeTsMin. This is achieved by the corresponding specification of the deblocking parameters β′ and tc′ to both be zero, as shown in equations (1280) and (1282) of Table 2, section 1.3. Note that this may require signaling certain appropriate values ​​for sh_luma_beta_offset_div2 for equation (1280) and sh_luma_tc_offset_div2 for equation (1282) when QpPrimeTsMin in equation (69) is greater than 4 (and, as a consequence, when sps_internal_bitdepth_minus_input_bitdepth>0). The decoder / encoder is configured to infer that one or more default encoding options associated with one or more tools of the decoder / encoder for processing prediction residual compensated prediction reconstruction or for prediction residual requantization / quantization for the default portion 100 are set 110 by deriving 120 the one or more default encoding options from the plurality of encoding parameters 98 if the default portion 100 of the picture 12 is encoded into the data stream 14 using lossy encoding 1062, such that the one or more tools are disabled for the default portion 100 if the default portion 100 of the picture 12 is encoded into the data stream 14 using lossy encoding 1062.

[0092] 1.3 Luma block edge detection process The inputs to this process are: - a picture sample array recPicture, - a position (xCb,yCb) identifying the top left sample of the current coding block relative to the top left sample of the current picture, - a position (xBl,yBl) identifying the top left sample of the current block relative to the top left sample of the current coding block, - a variable edgeType specifying whether to filter a vertical edge (EDGE_VER) or a horizontal edge (EDGE_HOR), - a variable bS specifying the filtering strength of the border, - a variable maxFilterLengthP specifying the maximum filter length, - a variable maxFilterLengthQ specifying the maximum filter length. The outputs of this process are: variables dE, dEp and dEq containing the decisions, variables maxFilterLengthP and maxFilterLengthQ of the modified filter lengths, variable t C The sample values ​​pi,k and qj,k, where i=0.Max(2,maxFilterLengthP), j=0.Max(2,maxFilterLengthQ), k=0,3, are derived as follows: - If edgeType is equal to EDGE_VER, the following applies: q j,k =recPicture[xCb+xBl+j][yCb+yBl+k] (1273) p i,k =recPicture[xCb+xBl-i-1][yCb+yBl+k] (1274) - Otherwise (edgeType is equal to EDGE_HOR), the following applies: q j,k =recPicture[xCb+xBl+k][yCb+yBl+j] (1275) p i,k =recPicture[xCb+xBl+k][yCb+yBl-i-1] (1276) The variable qpOffset is derived as follows: - if sps_ladf_enabled_flag is equal to 1, the following applies: The reconstructed luma level variable lumaLevel is derived as follows: lumaLevel=((p 0,0 +p 0,3 +q 0,0 +q 0,3 )>>2), (1277) - The variable qpOffset is set equal to sps_ladf_lowest_interval_qp_offset and modified as follows: for(i=0;i <sps_num_ladf_intervals_minus2+1 ; i++){ if(lumaLevel>SpsLadfIntervalLowerBound[i+1]) qpOffset=sps_ladf_qp_offset[i] (1278) else break }- Otherwise, qpOffset is set equal to 0. Variable Qp Q and Qp P is the sample q 0,0 and p 0,0 Qp of the coding unit including the coding block containing each of Y The value is set equal to the value of The variable qP is derived as follows: qP=((Qp Q +Qp P +1)>>1)+qpOffset (1279) The value of the variable β′ is determined as specified in Table 2 based on the quantization parameter Q, which is derived as follows. Q=Clip3(0,63,qP+(sh_luma_beta_offset_div2<<1)) (1280) where sh_luma_beta_offset_div2 is the offset of the sample q 0,0 The value of the syntax element sh_luma_beta_offset_div2 for the slice containing The variable β is derived as follows. β=β′*(1<<(BitDepth-8)) (1281) Variable t C The value of ' is determined as specified in Table 2 based on the quantization parameter Q, which is derived as follows: Q=Clip3(0,65,qP+2*(bS-1)+(sh_luma_tc_offset_div2<<1)) (1282) where sh_luma_tc_offset_div2 is the distance between the sample q 0,0 The value of the syntax element sh_luma_tc_offset_div2 for the slice that contains Variable t C is derived as follows: roundOffset=1<<(9-BitDepth) (1283) tC=BitDepth<10?(tC′+roundOffset)>>(10-BitDepth):tC′*(1<<(BitDepth-10)) (1284)

[0093] [Table 3]

[0094] Feature 2: Introducing a new "global" lossless_coding flag To streamline the VVC configuration for lossless coding performance, it is proposed to introduce a new 1-bit flag, referred to herein as lossless_coding, in the sequence, frame, picture, subpicture, tile group, or slice header syntax of an image or video coding bitstream. In other words, it is proposed to introduce a new "global" flag (to the subblock level) that can have a value of 0 (no lossless coding operation, i.e., normal mode) or 1 (lossless mode) and controls the operation (activation or deactivation or algorithm details) of at least two coding tools provided (i.e., specifying) by the affected image or video codec. Specifically, the operation of at least two of the tools in the following list depends on the lossless_coding flag: ● Entropy coder for any residual (spatial or transform) signal coefficients ● Inter-component coupling transformation (ICT) for transform matrix manipulation ● Smooth filtering operation of some predictive coding tools (disable) ● In-loop filters: Deblocking, shape adaptive offset, adaptive loop filter (ALF), reshaper (voiding) ● Quantization (invalidation) of residual spatial or transform coefficients

[0095] Aspect 3: Desirable effect of a "global" lossless_coding flag on individual encoding tools This third aspect specifies in detail how the value of the lossless_coding flag or the inferred meaning of the transform mode (indicating transform skip functionality) and QP (indicating a particular step size) described in aspect 1 above alters the operation of the entropy coding, inter-component transform, prediction and in-loop filtering tools for a given picture region or portion associated with said lossless_coding flag or said inferred meaning.

[0096] 3.0 Quantization The quantization parameter (QP) is equal to 4, resulting in a lossless quantization mode of the residual signal by using the transform skip mode. If the input bit depth and the internal bit depth are different, a bit depth correction is necessary. The difference between the input bit depth and the internal bit depth can be achieved by signaling the input bit depth in the higher syntax. Alternatively, the difference between the input bit depth and the internal bit depth can be conveyed in the higher syntax. Another alternative is to signal the minimum allowed QP of the transform skip in the higher syntax, either absolutely or relative to the base QP.

[0097] The embodiment relates to a video decoder configured to perform video decoding from a data stream 14 at an internal bit depth and to provide a video output at an input bit depth or at the internal bit depth. The video decoder is configured to read a syntax element from the data stream indicating a difference between the internal bit depth and the input bit depth. In parallel, a video encoder is configured to perform video encoding to the data stream 14 at the internal bit depth and to receive a video input at the input bit depth or at the internal bit depth. The video encoder is configured to encode the syntax element indicating a difference between the internal bit depth and the input bit depth into the data stream 14.

[0098] The bit depth transition may be performed from the internal reconstructed video version 46 to the input bit depth. The decoder may be configured to perform this transition before the video output, and the encoder may be configured to perform this transition in the prediction loop 36.

[0099] According to one embodiment, the decoder / encoder is configured to infer a minimum value of the quantization step size scale parameter, e.g., quantization parameter 982, based on the difference, e.g., due to a non-zero difference, such that a QP other than 4 results in lossless or near-lossless encoding, and is configured to follow the minimum quantization step size scale parameter for parts of the video encoded in predictive residual transform skip mode. The decoder / encoder is configured to map a quantization step size scale parameter 982 that is finer than the minimum, e.g., QP<4, to a quantization step size scale parameter 982 equal to the minimum to enable lossless encoding. For lossless encoding, the minimum value may be associated with no quantizer 32, 52 or bypassing or disabling the quantizer 32, 52. The decoder / encoder may be configured, when following the minimum quantization step size scale parameter for a video portion 100 encoded in predictive residual transform skip mode, to change the signaled quantization step size scale parameter signaled in data stream 14 for the video portion 100 to be equal to the minimum quantization step size scale parameter if the signaled quantization step size scale parameter is less than the minimum quantization step size scale parameter. The decoder / encoder may follow the minimum quantization step size scale parameter only in video regions 104 where data stream 14 signals a lossless coding mode 1061.

[0100] Another embodiment relates to a video decoder, configured to perform video decoding from the data stream 14 at the internal bit depth, perform video output at the input bit depth or at the internal bit depth, and read from the data stream 14 a syntax element indicating a minimum value of the quantization step size scale parameter (QP min), e.g. due to a non-zero difference between the input bit depth or the internal bit depth, which difference may also be signaled to the decoder, e.g. by either transmitting the difference or transmitting both values, i.e. the input bit depth and the internal bit depth, in addition to the QP min. A QP other than 4 may result in lossless or nearly lossless encoding. In parallel, a video encoder may be configured to perform video encoding to the data stream 14 at the internal bit depth, receive a video input at the input bit depth or at the internal bit depth, and encode a syntax element indicating a minimum value of the quantization step size scale parameter into the data stream 14. The decoder / encoder, in following the minimum quantization step size scale parameter for a video portion 100 encoded in predictive residual transform skip mode, may optionally be configured to change a signaled quantization step size scale parameter signaled in data stream 14 for the video portion 100 to be equal to the minimum quantization step size scale parameter if the signaled quantization step size scale parameter is less than the minimum quantization step size scale parameter. The decoder / encoder may follow the minimum quantization step size scale parameter only in video regions 104 where data stream 14 signals a lossless coding mode 1061.

[0101] Another embodiment relates to a video decoder / encoder configured to derive / encode an indication of the internal bit depth and the input bit depth or their difference from / to the data stream 14 and perform video decoding / encoding from / to the data stream 14 at the internal bit depth, the decoder configured to output video at the input bit depth and the encoder configured to receive video input at the input bit depth. Furthermore, the decoder / encoder is configured to check if the internal bit depth is less than the input bit depth and to modify the internal bit depth to correspond to the input bit depth. Optionally, the decoder / encoder is configured to derive / encode an indication of the lossless encoded video portion from / to the data stream 14 and to check and modify within the lossless encoded video portion and to use the internal bit depth for the lossy encoded video portion, e.g. as derived from the data stream 14. The internal bit depth may be signaled at the encoder in the data stream.

[0102] Entropy Coding For example, because lossless coding with QP 4 typically results in significantly higher bitrates than lossy coding, the entropy coding engine can switch to a high-throughput mode to prevent processing bottlenecks. This can be done, for example, by using a different code in the binarization, or by processing many bins after binarization in a bypass coding mode instead of the normal coding mode in CABAC, which uses context modeling and binary arithmetic coding.

[0103] One embodiment relates to a decoder (encoder) configured to determine, for a given portion 100 of a picture 12, whether it has been (is) coded into the data stream 14 using lossless coding 1061 or lossy coding 1062, and to extract a prediction residual for the given portion from (to) the data stream 14 using binarization of prediction residual data into a bin string and context-adaptive binary entropy decoding (encoding) of the bin string in a first manner (referred to as residual_ts_coding( ) in Table 1) if the given portion 100 of the picture 12 has been (is) coded into the data stream 14 using lossless coding 1061, or in a second manner (referred to as residual_coding( ) in Table 1) if the given portion 100 of the picture 12 has been (is) coded into the data stream 14 using lossy coding 1062. )), the first method and the second method are different, and the first method has a reduced computational complexity compared to the second method.

[0104] The determination of whether a given portion 100 of a picture 12 is coded in the data stream 14 using lossless coding 1061 or lossy coding 1062 can be made based on the data stream 14, or by reading a transform quantization bypass coding flag for the portion, or in a different manner, for example as described with respect to the decoder / encoder of Fig. 6. According to one embodiment, the decoder is configured to make the determination by reading from the data stream 14 a lossless coding syntax element, e.g. 102, indicating whether the given portion 100 of the picture 12 or a given region 104 including the given portion 100 is coded in the data stream 14 using lossless coding 1061 or lossy coding 1062, and making the decision in response to the lossless coding syntax element. The encoder can encode this lossless coding syntax element.

[0105] The computational complexity may be reduced for the first method compared to the second method by at least one of the following: - the number of bins in the bin strings encoded using the equal probability bypass mode is greater in the first method than in the second method; and Different binarization codes, such as exponential-Golomb codes, truncated unary codes, etc., are used in the first and second methods.

[0106] According to one embodiment, the amount of bin strings belonging to the unary code or truncated unary code of the bin strings is less in the first method than in the second method.

[0107] 3.2 Inter-component transformation (ICT) The coefficients of the ICT inverse transform matrix do not allow for lossless coding, since in the absence of quantization of the residual signal there is no corresponding forward transform matrix that leads to a completely lossless reconstruction. It is therefore proposed that when lossless_coding is equal to 1, the codec employs a different ICT inverse transform matrix (specified as a list of coefficients or mathematical operations such as shifts and multiplications) than when lossless_coding is equal to 0 (the normal operation). In particular, when lossless_coding is equal to 0, a conventional ICT upmix operation may be employed, e.g. cb = c1 + c2, cr = sign*(c1 - c2), where c1, c2 are the two transmitted residual block signals, and cb and cr are the associated output residual signals resulting from the inverse ICT. However, if lossless_coding is equal to 1, instead of the above operations, lifting transforms [4,5] or modulo transforms [6] operations may be applied to c1 and c2, which allows perfect reconstruction of the prediction residuals of cb and cr in the absence of quantization and in-loop filtering. Another but equivalent way of describing this property of perfect reconstruction is to state that the transform is mathematically perfectly invertible, even in practical applications, for example, that are usually performed on computers where the transform operation requires a round-to-integer step that mathematically prohibits perfect reconstruction. For example, in the case of a forward reversible ICT, c1 = cb + sign*cr, c2 = cb - sign*INT(c1 / 2) together with the corresponding reversible ICT cb' = c2 + sign*INT(c1 / 2), cr' = sign*(c1 - cb'), where INT() denotes the floor (round towards minus infinity), ceiling (round towards plus infinity), or rounding (round towards nearest integer) operator and sign is equal to 1 or -1, perfect reconstruction of both cb and cr (i.e., cb' = cb, cr' = cr) is achieved. Thus, the above invertible lossless ICT operations resulting in cb' and cr' are preferably applied in a decoder if lossless encoding is desired. Note that perfect reconstruction may be achieved by switching between the forward and backward reversible operations above, such that the forward reversible ICT is given by the following equation: c1 = cr + sign*INT(cb / 2), c2 = sign*(cb - c1) and the corresponding reversible ICT in the reverse direction is given by: cb' = c1 + sign*c2, cr' = c1 - sign*INT(cb' / 2).

[0108] Also note that the + and - signs in the above equations may differ in a particular implementation, although they will lead to equivalent results (i.e., cb'=cb, cr'=cr).Finally, it should be noted that slightly different formulations may be employed as lossless transforms in the decoding process, e.g., a formulation equivalent to the integer mid-side (M / S) process in HD-AAC described in [5].

[0109] A decoder (encoder) according to one embodiment is configured to determine for a given portion 100 of a picture 12 whether it has been (is) coded into the data stream 14 using lossless coding 1061 or lossy coding 1062, and to perform (e.g., in the prediction loop of the encoder) a full lossless transformation on the prediction residual 24'''', 24'''' or prediction residual corrected reconstruction 46 of the given portion 100 if the given portion 100 of the picture 12 has been coded into the data stream 14 using lossless coding 1061, or an incomplete lossless transformation if the given portion 100 of the picture 12 has been coded into the data stream 14 using lossy coding 1062.

[0110] The determination of whether a given portion 100 of a picture 12 is coded in the data stream 14 using lossless coding 1061 or lossy coding 1062 can be made based on the data stream 14, or by reading a transform quantization bypass coding flag for the portion, or in a different manner, for example as described with respect to the decoder / encoder of Fig. 6. According to one embodiment, the decoder is configured to make the determination by reading from the data stream 14 a lossless coding syntax element, e.g. 102, indicating whether the given portion 100 of the picture 12 or a given region 104 including the given portion 100 is coded in the data stream 14 using lossless coding 1061 or lossy coding 1062, and making the decision in response to the lossless coding syntax element. The encoder can encode this lossless coding syntax element.

[0111] The perfect lossless transforms and the imperfect lossless transforms may be inter-color component transforms or spectrally resolved intra-color component transforms.

[0112] 3.3 Smoothing filters in some predictors For lossless coding at high bit rates, filters applied to the predicted signal to attenuate compression artifacts, such as smoothing filters to reduce quantization artifacts, may not be beneficial, so in the case of transform skip with quantization skip, these filters can be disabled for lossless coding.

[0113] A decoder (encoder) according to one embodiment is configured to determine, for a given portion 100 of a picture 12, whether it has been (is) encoded into the data stream 14 using lossless coding 1061 or lossy coding 1062, and to derive a prediction signal 26 for the given portion 100 in a first manner if the given portion 100 of the picture 12 has (is) encoded into the data stream 14 using lossless coding 1061, and in a second manner if the given portion 100 of the picture 12 has (is) encoded into the data stream 14 using lossy coding 1062, where the first and second methods are different such that in the first method the prediction signal 26 is not filtered, e.g. by an interpolation filter, compared to the second method, or is filtered in the second method but not filtered in the first method.

[0114] The determination of whether a given portion 100 of a picture 12 is coded in the data stream 14 using lossless coding 1061 or lossy coding 1062 can be made based on the data stream 14, or by reading a transform quantization bypass coding flag for the portion, or in a different manner, for example as described with respect to the decoder / encoder of Fig. 6. According to one embodiment, the decoder is configured to make the determination by reading from the data stream 14 a lossless coding syntax element, e.g. 102, indicating whether the given portion 100 of the picture 12 or a given region 104 including the given portion 100 is coded in the data stream 14 using lossless coding 1061 or lossy coding 1062, and making the decision in response to the lossless coding syntax element. The encoder can encode this lossless coding syntax element.

[0115] According to one embodiment, the predicted signal 26 is less filtered in the first method than in the second method, or is low-pass filtered in the second method but not in the first method, for example, the predicted signal 26 has more energy when derived according to the first method than according to the second method at half the higher frequencies of the overall spatial frequency spectrum of the predicted signal 26.

[0116] 3.4 In-loop filters and quantization When lossless_coding is equal to 1, all in-loop filters (e.g., deblocking, shape adaptive offset (SAO), reshaper) and quantization are disabled and their associated syntax elements, including activation flags and any QP or delta QP for individual sequences or frames, must not be present in the coded bitstream.

[0117] A decoder (encoder) according to one embodiment is configured to determine, for a given portion 100 of a picture 12, whether it has been (is) encoded into the data stream 14 using lossless coding 1061 or lossy coding 1062, and to infer that one or more default encoding options associated with one or more tools of the decoder (encoder) for processing prediction residual compensated prediction reconstruction 46 or for prediction residual requantization 52, 38 (quantization 52) for the given portion 100 are set by deriving one or more default encoding options from a plurality of encoding parameters 98 if the given portion 100 of a picture 12 is encoded into the data stream 14 using lossless coding 1061, such that the one or more tools are disabled for the given portion 100, if the given portion 100 of a picture 12 is encoded into the data stream 14 using lossy coding 1062.

[0118] The determination of whether a given portion 100 of a picture 12 is coded in the data stream 14 using lossless coding 1061 or lossy coding 1062 can be made based on the data stream 14, or by reading a transform quantization bypass coding flag for the portion, or in a different manner, for example as described with respect to the decoder / encoder of Fig. 6. According to one embodiment, the decoder is configured to make the determination by reading from the data stream 14 a lossless coding syntax element, e.g. 102, indicating whether the given portion 100 of the picture 12 or a given region 104 including the given portion 100 is coded in the data stream 14 using lossless coding 1061 or lossy coding 1062, and making the decision in response to the lossless coding syntax element. The encoder can encode this lossless coding syntax element.

[0119] Various embodiment methods are described below.

[0120] FIG. 7 shows a method 200 for decoding (encoding) a picture into a data stream, comprising a step 106 of determining, for a given portion of a picture, whether it has been encoded into the data stream using lossless or lossy encoding, and a step of decoding (encoding) a prediction residual for the given portion from the data stream (into the data stream) using binarization of the prediction residual data into a bin string and context-adaptive binary entropy encoding of the bin string in a first method 210 if the given portion of the picture has been encoded into the data stream using lossless encoding, and in a second method 220 if the given portion of the picture has been encoded into the data stream using lossy encoding, where the first method 210 and the second method 220 are different and the first method 210 has a reduced computational complexity compared to the second method 220.

[0121] FIG. 8 shows a method 300 for decoding (encoding) a picture from (into) a data stream, comprising the steps of determining, for a given portion of a picture, whether it has been (is) encoded into the data stream using lossless or lossy coding, and performing, for a prediction residual or prediction residual compensated reconstruction of the given portion, a full lossless transform 310 if the given portion of the picture has been (is) encoded into the data stream using lossless coding, or an incomplete lossless transform 320 if the given portion of the picture has been (is) encoded into the data stream using lossy coding.

[0122] FIG. 9 shows a method 400 for decoding (encoding) a picture from (into) a data stream, comprising the steps of determining, for a given portion of a picture, whether it has been (is) encoded into the data stream using lossless or lossy encoding, and deriving a prediction signal for the given portion in a first method 410 if the given portion of the picture has been (is) encoded into the data stream using lossless encoding, and in a second method 420 if the given portion of the picture has been (is) encoded into the data stream using lossy encoding, where the first and second methods differ in that in the first method 410 the prediction signal is not filtered, for example using an interpolation filter, compared to the second method 420, or is filtered in the second method 420 but not filtered in the first method 410.

[0123] FIG. 10 shows a method 500 for decoding (encoding) a picture from (into) a data stream, comprising: determining 106, for a given portion of the picture, whether it has been (is) encoded into the data stream using lossless or lossy encoding; and inferring 510 that one or more default encoding options associated with one or more tools of the decoder / encoder for processing prediction residual compensated prediction reconstruction or performing prediction residual quantization for the given portion are set such that if the given portion of the picture has been (is) encoded into the data stream using lossless encoding, the one or more tools are disabled for the given portion; and by deriving 520 the one or more default encoding options from a plurality of encoding options if the given portion of the picture has been (is) encoded into the data stream using lossy encoding.

[0124] Figure 11a shows a method 600 including steps 610 of performing video decoding from a data stream at an internal bit depth, 620 of performing video output at an input bit depth or at the internal bit depth, and 630 of reading a syntax element from the data stream indicating a difference between the internal bit depth and the input bit depth. Figure 11b shows a parallel method 600 including steps 612 of performing video encoding to a data stream at an internal bit depth, 622 of receiving a video input at an input bit depth or at the internal bit depth, and 632 of encoding a syntax element into the data stream indicating a difference between the internal bit depth and the input bit depth.

[0125] Figure 12a shows a method 700 including a step 610 of performing video decoding from a data stream at an internal bit depth, a step 620 of performing video output at an input bit depth or at the internal bit depth, and a step 730 of reading a syntax element indicating a minimum value of a quantization step size scale parameter from the data stream. Figure 12b shows a parallel method 700 including a step 612 of performing video encoding to a data stream at an internal bit depth, a step 622 of receiving a video input at an input bit depth or at the internal bit depth, and a step 732 of encoding a syntax element indicating a minimum value of a quantization step size scale parameter into the data stream.

[0126] Figure 13a shows a method 800 including a step 810 of deriving an indication of the internal bit depth and the input bit depth or their difference from a data stream, a step 610 of performing video decoding from the data stream at the internal bit depth, a step 620 of performing video output at the input bit depth, a step 820 of checking whether the internal bit depth is less than the input bit depth, and a step 830 of modifying the internal bit depth to correspond to the input bit depth. Figure 13b shows a parallel method 800 including a step 812 of encoding an indication of the internal bit depth and the input bit depth or their difference into a data stream video, a step 612 of performing video encoding into the data stream at the internal bit depth, a step 622 of receiving a video input at the input bit depth, a step 820 of checking whether the internal bit depth is less than the input bit depth, and a step 830 of modifying the internal bit depth to correspond to the input bit depth.

[0127] References [1] ITU-T, Recommendation H.265 and ISO / IEC, Int. Standard 23008-2, "High efficiency video coding," Geneva, Switzerland, Feb. 2018. Online: http: / / www.itu.int / rec / T-REC-H.265. [2] JVET / Fraunhofer HHI, "VVCSoftware_VTM: VVC VTM reference software," Jul. 2019. Online: https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM. [3] C. Helmrich, H. Schwarz, T. Nguyen, C. Rudat, D. Marpe, and T. Wiegand, "CE7: Joint Chroma Residual Coding with Multiple Modes (Tests CE7-2.1, CE7-2.2)," Joint Video Experts Group, document JVET-O0105, Gothenburg, June 2019. [4] I. Daubechies and W. Sweldens, "Factoring Wavelet Transforms into Lifting Steps," J. Four. Anal. Appl., Sep. 1996. [5] R. Geiger, R. Yu, J. Herre, S. Rahardja, S.-W. Kim, X. Lin, and M. Schmidt, "ISO / IEC MPEG-4 High-Definition Scalable Advanced Audio Coding," J. Aud. Eng. Soc., vol. 55, no. 1 / 2, pp. 27-43, Jan. 2007. [6] S. Srinivasan, "Modulo transforms - An alternative to lifting," IEEE Trans. on Signal Processing, vol. 54, no. 5, pp. 1864-1874, June 2006.

[0128] Alternative implementation: Although some aspects have been described in the context of an apparatus, it will be apparent that these aspects also represent a description of a corresponding method, where a block or device corresponds to a method step or a function of a method step. Similarly, aspects described in the context of a method step also represent a description of a corresponding block or item or function of a corresponding apparatus. Some or all of the method steps can be performed by (or using) a hardware apparatus, such as, for example, a microprocessor, a programmable computer, or an electronic circuit. In some embodiments, one or more of the most important method steps can be performed by such an apparatus.

[0129] Depending on specific implementation requirements, embodiments of the present invention can be implemented in hardware or in software. Implementation can be performed using a digital storage medium, such as a floppy disk, DVD, CD, Blu-ray disk, ROM, PROM, EPROM, EEPROM or flash memory, having electronically readable control signals stored thereon and cooperating (or capable of cooperating) with a programmable computer system such that the respective methods are performed. Hence, the digital storage medium can be computer readable.

[0130] Some embodiments of the present invention comprise a data carrier having electronically readable control signals capable of cooperating with a programmable computer system to cause one of the methods described herein to be performed.

[0131] Generally, embodiments of the present invention may be implemented as a computer program product having program code operable to perform one of the methods when the computer program product runs on a computer. The program code may for example be stored on a machine readable carrier.

[0132] Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.

[0133] In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.

[0134] A further embodiment of the inventive method is therefore a data carrier (or digital storage medium or computer readable medium) comprising a computer program recorded thereon for performing one of the methods described herein. The data carrier, digital storage medium or recording medium is typically tangible and / or non-transitory.

[0135] A further embodiment of the inventive method is therefore a data stream or a sequence of signals representing the computer program for performing one of the methods described herein. The data stream or the sequence of signals can for example be adapted to be transmitted over a data communication connection, for example the Internet.

[0136] A further embodiment comprises a processing means, for example a computer, or a programmable logic device, configured to or adapted to perform one of the methods described herein.

[0137] A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.

[0138] Further embodiments according to the invention comprise an apparatus or a system configured to transmit (e.g. electronically or optically) a computer program for performing one of the methods described herein to a receiver. The receiver may be, for example, a computer, a mobile device, a memory device, etc. The apparatus or system may comprise, for example, a file server which transmits the computer program to the receiver.

[0139] In some embodiments, a programmable logic device (e.g., a field programmable gate array) may be used to perform some or all of the functions of the methods described herein. In some embodiments, a field programmable gate array may cooperate with a microprocessor to perform one of the methods described herein. In general, the methods are preferably performed by any hardware apparatus.

[0140] The apparatus described herein can be implemented using a hardware apparatus, or using a computer, or using a combination of a hardware apparatus and a computer.

[0141] The apparatus described herein or any elements of the apparatus described herein may be implemented at least partly in hardware and / or in software.

[0142] The methods described herein can be performed using a hardware apparatus, or using a computer, or using a combination of a hardware apparatus and a computer.

[0143] Any elements of the methods or apparatus described herein may be implemented at least partly in hardware and / or in software.

[0144] The above described embodiments are merely illustrative of the principles of the present invention. It is understood that modifications and variations of the arrangements and details described herein will be apparent to those skilled in the art. It is therefore intended that the present invention be limited only by the scope of the impending claims and not by the specific details expressed by the description and illustration of the embodiments herein.

Claims

1. 1. An encoder for encoding pictures into a data stream, comprising: encoding a plurality of coding parameters into the data stream, the plurality of coding parameters being associated with a predetermined portion of the picture and controlling a prediction residual transformation mode and a quantization precision for the predetermined portion; determining whether the plurality of coding parameters indicate coding parameter settings corresponding to lossless predictive residual coding; in response to determining that the plurality of coding parameters indicates coding parameter settings corresponding to the lossless predictive residual coding, setting one or more default coding options for one or more tools of the encoder for processing prediction residual-compensated prediction reconstruction for the default portion such that the one or more tools are disabled for the default portion; determining whether the prediction residual transform mode indicated by the plurality of coding parameters corresponds to a transform skip mode and a quantization step size finer than a default quantization step size corresponding to no quantization; an encoder configured to change the quantization step size to the default quantization step size in response to a determination that the prediction residual transform mode indicated by the plurality of coding parameters corresponds to a quantization step size that is finer than a default quantization step size that corresponds to a transform skip mode and no quantization.

2. encoding into the data stream a lossless coding syntax element that indicates whether a predefined region of the picture covering or including the predefined portion is coded into the data stream using lossless coding or lossy coding; if the lossless coding syntax element indicates that the predetermined region of the picture is coded into the data stream using lossless coding, and if the plurality of coding parameters indicates coding parameter settings that correspond to the lossless predictive residual coding, then the one or more tools are disabled with respect to the predetermined portion; and 2. The encoder of claim 1, configured to set the one or more default encoding options to a default tool state if the plurality of encoding parameters does not indicate an encoding parameter setting that corresponds to the lossless predictive residual encoding or if the lossless encoding syntax element indicates that the predetermined region of the picture is encoded into the data stream using lossy encoding.

3. The encoder of claim 2 configured to encode one or more syntax elements into the data stream that are associated with the predefined tool state.

4. 2. The encoder of claim 1, configured to set one or more further encoding options for the predetermined portion to a default state in response to the plurality of encoding parameters indicating the encoding parameter settings corresponding to the lossless predictive residual encoding.

5. The default state is: With respect to low-pass filtering for the derivation of the prediction signal of said predetermined portion, reducing the filtering or disabling the filtering, and / or The encoder of claim 4 , further comprising: performing a full lossless transform on the prediction residual signal.

6. The one or more further encoding options are binarization of prediction residual data into bin strings and context-adaptive binary entropy coding of said bin strings; using a full lossless transform for the prediction residual or prediction residual-compensated reconstruction of said given portion; Disabling or reducing filtering for the derivation of the predicted signal of said predetermined portion, and / or The encoder of claim 4 involving disabling a prediction residual compensation prediction reconstruction process or a prediction residual requantization process for the predetermined portion.

7. 2. The encoder of claim 1 , configured to encode a prediction residual for the given portion of the data stream in a first manner if the plurality of encoding parameters indicates an encoding parameter setting corresponding to the lossless predictive residual coding, and in a second manner if the plurality of encoding parameters does not indicate an encoding parameter setting corresponding to the lossless predictive residual coding, using binarization of prediction residual data into a bin string and context-adaptive binary entropy coding of the bin string, wherein the first and second methods are distinct and the first method has reduced computational complexity compared to the second method.

8. 2. The encoder of claim 1, configured to perform a full lossless transform on the prediction residual or prediction residual-compensated reconstruction of the given portion if the plurality of coding parameters indicate an encoding parameter setting corresponding to the lossless prediction residual coding, and to perform an incomplete lossless transform on the prediction residual or prediction residual-compensated reconstruction of the given portion if the plurality of coding parameters indicate an encoding parameter setting corresponding to the lossless prediction residual coding, and to perform an incomplete lossless transform on the prediction residual or prediction residual-compensated reconstruction of the given portion if the plurality of coding parameters do not indicate an encoding parameter setting corresponding to the lossless prediction residual coding.

9. 2. The encoder of claim 1 , configured to derive a prediction signal for the predetermined portion in a first manner if the plurality of coding parameters indicates an encoding parameter setting corresponding to the lossless predictive residual coding, and in a second manner if the plurality of coding parameters does not indicate an encoding parameter setting corresponding to the lossless predictive residual coding, wherein the first and second methods are different such that the prediction signal is not filtered in the first method compared to the second method, or is filtered in the second method but not filtered in the first method.

10. 2. The encoder of claim 1, further comprising: a processor configured to infer that one or more default coding options associated with one or more tools of the encoder for processing prediction residual-compensated prediction reconstruction or for prediction residual requantization for the predetermined portion are set such that the one or more tools are disabled for the predetermined portion if the plurality of coding parameters indicate coding parameter settings corresponding to the lossless predictive residual coding, and by deriving the one or more default coding options from the plurality of coding parameters if the plurality of coding parameters do not indicate coding parameter settings corresponding to the lossless predictive residual coding.

11. if the plurality of coding parameters indicate coding parameter settings corresponding to the lossless predictive residual coding, the one or more tools are disabled for the default portion; 2. The encoder of claim 1, further configured to set the one or more default encoding options for the default portion to a default tool state if the plurality of encoding parameters does not indicate an encoding parameter setting that corresponds to the lossless predictive residual encoding.

12. The encoder of claim 11 , configured to encode one or more syntax elements into the data stream depending on the predefined tool state.

13. 13. The encoder of claim 12, wherein if the one or more default encoding options for the default portion are set such that the one or more tools are disabled for the default portion, then at least one of the one or more syntax elements is not encoded into the data stream.

14. 1. A method for encoding a picture into a data stream, comprising the steps of: encoding a plurality of coding parameters into the data stream, the plurality of coding parameters being associated with a predetermined portion of the picture and controlling a prediction residual transformation mode and a quantization precision for the predetermined portion; determining whether the plurality of coding parameters indicate coding parameter settings corresponding to lossless predictive residual coding; in response to determining that the plurality of coding parameters indicate coding parameter settings corresponding to the lossless predictive residual coding, setting one or more default coding options associated with one or more tools for processing prediction residual-compensated prediction reconstruction for the default portion such that the one or more tools are disabled for the default portion; determining whether the prediction residual transform mode indicated by the plurality of coding parameters corresponds to a transform skip mode and a quantization step size finer than a default quantization step size corresponding to no quantization; and in response to determining that the prediction residual transform mode indicated by the plurality of coding parameters corresponds to a quantization step size finer than a default quantization step size corresponding to a transform skip mode and no quantization, changing the quantization step size to the default quantization step size.

15. When executed by the processor, - encoding a plurality of coding parameters into a data stream, the plurality of coding parameters being associated with a predetermined portion of a picture and controlling a prediction residual transformation mode and a quantization precision for the predetermined portion; determining whether the plurality of coding parameters indicate coding parameter settings corresponding to lossless predictive residual coding; in response to determining that the plurality of coding parameters indicate coding parameter settings corresponding to the lossless predictive residual coding, setting one or more default coding options associated with one or more tools for processing prediction residual-compensated prediction reconstruction for the default portion such that the one or more tools are disabled for the default portion; determining whether the prediction residual transform mode indicated by the plurality of coding parameters corresponds to a transform skip mode and a quantization step size finer than a default quantization step size corresponding to no quantization; in response to determining that the prediction residual transform mode indicated by the plurality of coding parameters corresponds to a finer quantization step size than a default quantization step size corresponding to a transform skip mode and no quantization, changing the quantization step size to the default quantization step size; A non-transitory computer-readable storage medium storing instructions for causing the processor to execute.

Citation Information

Patent Citations

  • Method and apparatus for encoding image data

    JP2008104072A