Determination of candidate transform sets for video coding
Through block-based encoders and decoders in picture and video encoding, the transformation candidate list is determined according to the size of the residual block and the appropriate transformation is selected, which solves the problem of low coding efficiency in the existing technology and achieves efficient encoding and decoding process.
Patent Information
- Application Number
- CN201980034404.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-03-15
- Filing Date
- 2019-03-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-03-29
AI Technical Summary
In the existing technology, in picture and video encoding, the encoding work increases significantly as the picture size increases, resulting in low efficiency, and a method to improve the efficiency of the codec is needed.
Provide a block-based encoder and decoder that supports a set of transformations for residual encoding, by determining a list of transform candidates based on the height and width of the residual block, and selecting an appropriate transform to encode the residual block or decoding, able to selectively notify or derive selected transformations in the data stream, simplifying the signaling process.
Efficient encoding and decoding of pictures and videos is achieved. Through flexible and efficient transformation testing, the computational complexity and signaling amount are reduced, and the performance of the codec is improved.
Smart Images

Figure CN112567745B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to picture and video coding, and more particularly to block-based picture and video coding. The picture may be a static image or a continuous sequence of images in a dynamic picture sequence. Some specific examples and embodiments of the present invention relate to a unified extension scheme for residual coding using a mode-dependent transform candidate set for transform in the context of video coding to obtain a corresponding residual signal in the spatial domain. Background Art
[0002] In addition to DCT-II and 4×4 DST-VII adopted in some standards such as HEVC (High Efficiency Video Coding), other standards, such as JEM (Joint Exploration Test Model), for example, may define two additional transform families, namely, Adaptive Multicore Transform (AMT) and Mode-dependent Non-separable Secondary Transform (NSST).
[0003] 2.1 Adaptive Multi-Core Transformation [1,8]
[0004] AMT extends the set of available transforms for luma components with transforms from the DCT / DST family (i.e., DST-VII, DCT-VIII, DST-I, and DCT-V). AMT applies if the corresponding CU level flag is set, otherwise DCT-II is used. For inter-coded blocks, two additional flags decide between DST-VII and DCT-VIII for each horizontal and vertical transform, respectively. If the block is intra-coded, it depends on the intra prediction mode to decide which transforms are available. Each intra mode is mapped to two of three predefined sets. One for each horizontal and vertical transform. Each set consists of two transforms. If the number of significant coefficients is greater than a predefined threshold, the index is signaled for each direction, otherwise the first transform of each set is used.
[0005] 2.2 Mode-dependent inseparable secondary transformations [1,2]
[0006] NSST defines a secondary transform applied to the coefficients of the core transform (primary transform). "If both the width and height of the transform coefficient block are greater than or equal to 8, then an 8×8 non-separable secondary transform is applied to the upper left 8×8 region of the transform coefficient block. Otherwise, if either W or H of the transform coefficient block is equal to 4, then a 4×4 non-separable secondary transform is applied and a 4×4 non-separable transform is performed on the upper left min(8,W)×min(8,H) region of the transform coefficient block. The above transform selection rules apply to both luma and chroma components."[1]
[0007] 2.3 Large Block Size Transform with High Frequency Zeroing
[0008] "In JEM, large block size transforms up to 128×128 are enabled, which are primarily used for higher resolution video, such as 1080p and 4K sequences. For those transform blocks whose size (width or height, or both) is greater than or equal to 64, the high frequency transform coefficients are zeroed so that only the lower frequency coefficients are maintained. For example, for an M×N transform block, with M as the block width and N as the block height, when M is greater than or equal to 64, only the left 32 columns of transform coefficients are kept. Similarly, when N is greater than or equal to 64, only the top 32 rows of transform coefficients are kept. When transform skip mode is used for larger blocks, the entire block is used without zeroing any values." [1]
[0009] However, the prior art may have several disadvantages. For example, as the picture size increases, the encoding work also increases significantly. Therefore, it would be desirable to provide a codec with improved efficiency.
[0010] Therefore, it is proposed to provide a mode-dependent set of transform candidates. The identification of the transform used to obtain the residual signal in the spatial domain may employ a candidate list utilizing decoded syntax elements. The coefficients of the residual block may be decoded conditional on the available transforms in the candidate list. Thus, the candidate list itself may be reduced in an iterative manner by removing those transforms that conflict with the information already obtained about the coefficients. When all coefficients are decoded and more than one transform candidate is left, an index to the candidate list may be signaled.
[0011] The inventive concept of introducing mode-dependent candidate lists may allow flexible and efficient testing and signaling of transforms for residual blocks. For example, classification of structured transforms according to their causal constraints may allow exploiting the correlation between the selected transform, the resulting coefficients and neighboring transform blocks. Summary of the invention
[0012] According to a first aspect, an embodiment of the inventive concept may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding. The encoder may be configured to determine a transform candidate list for the transform of the current residual block from the transform set based on the height and width of the current residual block. The encoder may be further configured to encode the prediction residual within the residual block using a selected transform in the optional transform list, and selectively signal the selected transform in the data stream. Signaling may selectively indicate the fact that the candidate list may contain only one candidate transform, so that signaling can be omitted.
[0013] According to the first aspect, other embodiments of the inventive concept may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding. The decoder may be configured to determine a transform candidate list for the transform of the current residual block from the transform set based on the height and width of the current residual block, and decode the prediction residual within the residual block in the domain of a selected transform in the optional transform list, while selectively deriving the selected transform from the data stream. The derivation may selectively indicate the fact that the candidate list may contain only one candidate transform, so that signaling / derivation can be omitted.
[0014] According to a second aspect, an embodiment of the inventive concept may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding. The encoder may be configured to determine an optional transform list for a current residual block from the transform set, and to encode transform coefficient data into the data stream using a selected transform in the optional transform list, the transform coefficient data representing a prediction residual within the residual block. The encoder may be further configured to signal the selected transform in the data stream in a manner that depends on the transform coefficient data or on a portion of the transform coefficient data, and / or to perform determination of the optional list.
[0015] According to a second aspect, other embodiments of the inventive concept may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding. The decoder may be configured to determine an optional transform list for a current residual block from the transform set, and to decode transform coefficient data from the data stream using a selected transform in the optional transform list, the transform coefficient data representing a prediction residual within the residual block. The decoder may be further configured to derive the selected transform from the data stream in a manner that depends on the transform coefficient data or on a portion of the data transform coefficient data, and / or to perform the determination of the optional list.
[0016] According to a third aspect, an embodiment of the inventive concept may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding. The encoder may be configured to determine an optional transform list for a current residual block from the transform set and signal the selected transform in the data stream. The encoder may be further configured to encode a transform coefficient using a selected transform in the optional transform list in a manner depending on the selected transform or depending on the optional transform list, the transform coefficient representing a prediction residual within the residual block.
[0017] According to a third aspect, other embodiments of the inventive concept may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding. The decoder may be configured to determine an optional transform list for a current residual block from the transform set, and derive the selected transform from the data stream. The decoder may be further configured to use a selected transform in the optional transform list in a manner depending on the selected transform or the optional transform list to decode a transform coefficient from the data stream, the transform coefficient representing a prediction residual within the residual block.
[0018] According to a fourth aspect, an embodiment of the inventive concept may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding. The encoder may be configured to determine an optional transform list for a current residual block from the transform set, and use a selected transform in the optional transform list to encode a prediction residual within the residual block. The encoder may be further configured to signal the selected transform in the data stream using a transform indicator, wherein the transform indicator is signaled in the data stream using a code having one or more digits, wherein each of the set of one or more digits is uniquely associated with a corresponding transform attribute.
[0019] According to a fourth aspect, other embodiments of the inventive concept may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding. The decoder may be configured to determine an optional transform list for a current residual block from the transform set, and decode the prediction residual within the residual block from the data stream using a selected transform in the optional transform list. The decoder may be further configured to derive the selected transform from the data stream using a transform indicator, wherein the transform indicator is derived from the data stream using a code having one or more digits, wherein each of the one or more digits is uniquely associated with a corresponding transform attribute. For example, the code may include a segment of a transform indicator that has been binary arithmetic encoded or a syntax element that constitutes a transform indicator and can be parsed from the data stream.
[0020] According to a fifth aspect, an embodiment of the inventive concept may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding. The encoder may be further configured to predict the intra-prediction block by applying the spatial neighborhood of the intra-prediction block to a selected neural network among multiple neural networks to obtain a prediction of the intra-prediction block, and determine an optional transform set for the residual block covering the intra-prediction block from the transform set based on the selected neural network and the block size of the residual block. The encoder may be further configured to encode a prediction residual associated with the prediction of the intra-prediction block in the residual block using a selected transform in the optional transform set, and signal the selected transform in the data stream.
[0021] According to a fifth aspect, other embodiments of the inventive concept may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding. The decoder may be configured to predict the intra-prediction block by applying the spatial neighborhood of the intra-prediction block to a selected neural network among a plurality of neural networks to obtain a prediction of the intra-prediction block, and to determine an optional transform set for a residual block covering the intra-prediction block from the transform set based on the selected neural network and the block size of the residual block. The decoder may be further configured to decode a prediction residual associated with the prediction of the intra-prediction block in the residual block from the data stream in the domain of the selected transform by deriving a selected transform in the optional transform set from the data stream.
[0022] According to a sixth aspect, an embodiment of the present invention may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding. The encoder may be configured to predict an intra-prediction block by applying a spatial neighborhood of the intra-prediction block to a neural network to obtain a prediction of the intra-prediction block in a primary transform domain, and to encode a prediction residual associated with the prediction of the intra-prediction block in a residual block using a selected transform in an optional transform set, and to signal the selected transform in the data stream, wherein the optional transform set is populated by at least one multi-level transform, the at least one multi-level transform comprising a primary transform and a secondary transform applied to a subgroup of primary transform coefficients of the primary transform.
[0023] According to a sixth aspect, other embodiments of the present invention may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual coding. The decoder may be configured to predict an intra-prediction block by applying a spatial neighborhood of the intra-prediction block to a neural network to obtain a prediction of the intra-prediction block in a domain of a primary transform, and to decode a prediction residual associated with the prediction of the intra-prediction block in a residual block from the data stream in another domain of the selected transform by deriving a selected transform from a set of optional transforms from the data stream, wherein the set of optional transforms is filled by at least one multi-level transform, the at least one multi-level transform comprising a primary transform and a secondary transform applied to a subgroup of primary transform coefficients of the primary transform.
[0024] According to a seventh aspect, an embodiment of the present invention may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding. The encoder may be configured to use a selected intra-prediction mode in an intra-prediction mode set, predict an intra-prediction block based on a spatial neighborhood of the intra-prediction block to obtain a prediction of the intra-prediction block, and determine an optional transform set for a residual block covering the intra-prediction block from a transform set based on the selected intra-prediction mode and a block size of the residual block. The encoder may be further configured to encode a prediction residual associated with a prediction of the intra-prediction block in the residual block using a selected transform in the optional transform set, and signal the selected transform in the data stream.
[0025] According to the seventh aspect, other embodiments of the present invention may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding. The decoder may be configured to use a selected intra-frame prediction mode in an intra-frame prediction mode set, predict an intra-frame prediction block based on a spatial neighborhood of the intra-frame prediction block to obtain a prediction of the intra-frame prediction block, and determine an optional transform set for a residual block covering the intra-frame prediction block from a transform set based on the selected intra-frame prediction mode and a block size of the residual block. The decoder may be further configured to derive a selected transform in the optional transform set from the data stream, and decode a prediction residual associated with a prediction of the intra-frame prediction block in a residual block from the data stream in a domain of the selected transform.
[0026] According to an eighth aspect, an embodiment of the inventive concept may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding. The encoder may be configured to determine an optional transform list for the current residual block from the transform set based on a reference transform selected for a neighboring residual block, for example, also determined from the transform set in order to encode the prediction residual of the latter. The encoder may be further configured to encode the prediction residual within the residual block using a selected transform in the optional transform list, and signal the selected transform in the data stream.
[0027] According to an eighth aspect, other embodiments of the inventive concept may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding. The decoder may be configured to determine an optional transform list for the current residual block from the transform set based on a reference transform selected for a neighboring residual block, for example, also determined from the transform set in order to encode the prediction residual of the latter. The decoder may be further configured to decode the prediction residual within the residual block in the domain of the selected transform by deriving a selected transform in the optional transform list from the data stream.
[0028] According to a ninth aspect, an embodiment of the inventive concept may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding. The encoder may be configured to determine an optional transform list for the current residual block from the transform set in a manner depending on a quantization parameter of the current block. If the quantization parameter corresponds to a quantization finer than a specific threshold, the optional transform list for the current residual block is filled with at least one multi-level transform, the at least one multi-level transform including a primary transform applied to the prediction residual within the current residual block and a secondary transform applied to a subgroup of the primary transform coefficients of the primary transform. However, if the quantization parameter corresponds to a quantization coarser than a specific threshold, the optional transform list for the current residual block may be filled with a modification of at least one multi-level transform in addition to or in place of at least one multi-level transform, and the primary transform coefficients beyond the subgroup are zeroed according to the modification. In both cases, the encoder may be configured to encode the prediction residual within the residual block using one selected transform in the optional transform list and signal the selected transform in the data stream.
[0029] According to the ninth aspect, other embodiments of the inventive concept may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding. The decoder may be configured to determine an optional transform list for the current residual block from the transform set in a manner depending on the quantization parameter of the current block. If the quantization parameter corresponds to a quantization finer than a specific threshold, the optional transform list for the current residual block is filled with at least one multi-level transform, the at least one multi-level transform including a primary transform applied to the prediction residual within the current residual block and a secondary transform applied to a subgroup of the primary transform coefficients of the primary transform. However, if the quantization parameter corresponds to a quantization coarser than a specific threshold, the optional transform list for the current residual block is filled with a modification of at least one multi-level transform in addition to or in place of at least one multi-level transform, wherein the primary transform coefficients beyond the subgroup are set to zero. In both cases, the decoder may be configured to decode the prediction residual within the residual block in the domain of the selected transform by deriving a selected transform in the optional transform list from the data stream.
[0030] According to the tenth aspect, an embodiment of the inventive concept may provide an encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding. The encoder may be configured to determine an optional transform list for a current residual block from a transform set based on a reference transform selected for an adjacent residual block, in a manner that depends on the number of valid transform coefficients in one or more adjacent residual blocks or on the sum of the valid transform coefficients. If the number or sum is greater than a specific threshold, the optional transform list for the current residual block is filled with at least one multi-level transform, the at least one multi-level transform comprising a primary transform applied to a prediction residual of the current residual block and a secondary transform applied to a subgroup of the primary transform coefficients of the primary transform. However, if the number or sum is less than a specific threshold, the optional transform list for the current residual block is filled with a modification of the at least one multi-level transform in addition to or in place of the at least one multi-level transform, wherein the primary transform coefficients beyond the subgroup are set to zero. In both cases, the encoder may be configured to encode the prediction residual within the residual block using one selected transform from the list of selectable transforms and to signal the selected transform in the data stream.
[0031] According to the tenth aspect, other embodiments of the inventive concept may provide a decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding. The decoder may be configured to determine an optional transform list for a current residual block from a transform set based on a reference transform selected for an adjacent residual block, in a manner that depends on the number of valid transform coefficients in one or more adjacent residual blocks or on the sum of the valid transform coefficients. If the number or sum is greater than a specific threshold, the optional transform list for the current residual block is filled with at least one multi-level transform, the at least one multi-level transform comprising a primary transform applied to a prediction residual of the current residual block and a secondary transform applied to a subgroup of the primary transform coefficients of the primary transform. However, if the number or sum is less than a specific threshold, in addition to or instead of at least one multi-level transform, the optional transform list for the current residual block is filled with a modification of the at least one multi-level transform, wherein the primary transform coefficients beyond the subgroup are set to zero. In both cases, the decoder may be further configured to decode the prediction residual within the residual block in the domain of a selected transform from a list of selectable transforms by deriving it from the data stream.
[0032] According to another aspect, computer programs are provided, wherein each computer program is configured to implement the above encoding and / or decoding method when executed on a computer or a signal processor, so that the above method is implemented by one of the computer programs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Hereinafter, embodiments of the present disclosure are described in more detail with reference to the accompanying drawings, in which
[0034] Figure 1 shows a schematic block diagram of an encoder that can be used in one or more embodiments of the present invention,
[0035] Figure 2 shows a schematic block diagram of a decoder that can be used in one or more embodiments of the present invention,
[0036] Figure 3 A schematic block diagram of a block-based encoding scheme that can be used in one or more embodiments of the present invention is shown.
[0037] Figure 4a and Figure 4b Some examples of partitioning residual blocks into groups and subgroups of transform coefficients after applying a transform are shown,
[0038] Figure 5 Other examples of partitioning residual blocks into groups and subgroups of transform coefficients after applying a transform are shown,
[0039] Figure 6 shows some examples of different stages of a multi-stage transform including a primary transform and a secondary transform,
[0040] Figure 7 A schematic block diagram of performing block-based residual coding using a transform set including one or more neural networks according to an embodiment of the present invention is shown.
[0041] Figure 8 The concept of multi-stage transformation including primary transformation and secondary transformation according to an embodiment of the present invention is shown.
[0042] Fig. 9 The concept of a multi-level transform including a primary transform and a secondary transform in a spatial domain using a coding order in rows and columns according to an embodiment of the present invention is shown.
[0043] Fig.10 shows the concept of only primary transformation according to an embodiment of the present invention,
[0044] Fig.11 : a schematic block diagram of a block-based residual coding scheme using a multi-level transform including a neural network according to an embodiment of the present invention is shown,
[0045] Fig.12 A schematic block diagram of a block-based residual coding scheme using a transform set and an optional transform set according to an embodiment of the present invention is shown.
[0046] Fig.13 A schematic block diagram of a residual block including a plurality of significant and non-significant transform coefficients encoded in a predetermined encoding order according to an embodiment of the present invention is shown,
[0047] Fig.14 A schematic block diagram of a block-based residual coding scheme using a transform set and an optional transform set and using transform signaling according to an embodiment of the present invention is shown.
[0048] Fig.15 A schematic block diagram of a block-based residual coding scheme using a transform set and an optional transform set and using transform signaling according to an embodiment of the present invention is shown.
[0049] Fig.16 A schematic block diagram of a block-based residual coding scheme in which some transform coefficients are set to zero according to an embodiment of the present invention is shown,
[0050] Fig.17 1 shows an exemplary residual block according to an embodiment of the present invention, the residual block comprising a plurality of primary coefficients, wherein some of the plurality of primary coefficients are set to zero before performing secondary transformation on the primary coefficients of the remaining non-zero values,
[0051] Fig.18 A schematic block diagram showing a transform block according to an embodiment, from a decoder perspective, in which some transform coefficients may be set to zero, and
[0052] Fig.19 A schematic block diagram of a transform block according to another embodiment in which some transform coefficients may be set to zero is shown from a decoder perspective. DETAILED DESCRIPTION
[0053] Identical or equivalent elements or elements having the same or equivalent functionality are indicated in the following description by identical or equivalent reference signs.
[0054] The method steps depicted by means of block diagrams and described with reference to said block diagrams may also be performed in an order different from that depicted and / or described. Furthermore, method steps relating to specific features of an apparatus may be replaced by said features of said apparatus and vice versa.
[0055] The term "transformation" may also be abbreviated herein to the term trafo. The term "transformation" may be used synonymously for transformation (ie, the result of a transformation).
[0056] The following description of the drawings begins with the presentation of a description of a video encoder and a video decoder for encoding a block-based predictive codec for pictures of a video in order to form an example of a codec framework within which the embodiments described herein may be constructed. Figures 1 to 3 A video encoder and a video decoder are described. Thereafter, descriptions of other embodiments of the present application are presented with respect to the accompanying drawings. The same are numbered, and in the above subsections, references are made to the above parts of the embodiments described and claimed below. Although all of these embodiments may be constructed separately to Figure 1 and Figure 2 In video encoders and decoders, however, the embodiments described herein, such as those described with respect to subsequent figures, may also be used to form video encoders and decoders not based on Figure 1 and Figure 2 The video encoder and video decoder The following coding framework operates the video encoder and video decoder.
[0057] Figure 1 An apparatus is shown for predictively encoding a video 11 consisting of a sequence of pictures 12 into a data stream 14. Block-by-block predictive encoding is used for this purpose. In addition, transform-based residual encoding is used exemplarily. The reference numeral 10 is used to indicate an apparatus or an encoder.
[0058] Figure 2A corresponding decoder 20 is shown, i.e. a device 20 configured to predictively decode a video 11′ consisting of a picture 12′ from a data stream 14 in picture blocks, where transform-based residual decoding is also exemplarily used, wherein single quotes are used to indicate that the picture 12′ and video 11′ reconstructed by the decoder 20 deviate from the picture 12 originally encoded by the device 10, respectively, with respect to the coding losses introduced by the quantization of the prediction residual signal.
[0059] Figure 1 and Figure 2 Transform-based prediction residual coding is used illustratively, although the embodiments of the present application are not limited to such prediction residual coding. Figure 1 and Figure 2 The same is true for the other details described, as will be outlined below.
[0060] The encoder 10 is configured to perform a spatial to spectral transform on a prediction residual signal and encode the prediction residual signal thus obtained into a data stream 14. Likewise, the decoder 20 is configured to decode the prediction residual signal from the data stream 14 and perform a spectral to spatial transform on the prediction residual signal thus obtained.
[0061] Internally, the encoder 10 may include a prediction residual signal generator 22 that generates a prediction residual 24 in order to measure the deviation of the prediction signal 26 from the original signal (i.e., the video 11 or the current picture 12). The prediction residual signal generator 22 may be, for example, a subtractor that subtracts the prediction signal 26 from the original signal (i.e., the current picture 12).
[0062] The encoder 10 further comprises a transformer 28 which performs a spatial to spectral transformation on the prediction residual signal 24 to obtain a spectral domain prediction residual signal 24' which is then quantized by a quantizer 32 comprised by the encoder 10. The prediction residual signal 24" thus quantized is encoded into the bitstream 14.
[0063] To this end, the encoder 10 may optionally include an entropy encoder 34 that entropy encodes the transformed and quantized prediction residual signal into the data stream 14. The prediction residual 24 is generated by a prediction stage 36 of the encoder 10 based on the prediction residual signal 24" decoded into the data stream 14 and decodable from the data stream.
[0064] For this purpose, Figure 1As shown in , the prediction stage 36 may internally include: a dequantizer 38, which dequantizes the prediction residual signal 24" to obtain a spectral domain prediction residual signal 24"', which corresponds to the signal 24' except for the quantization loss; the dequantizer 38 is followed by an inverse transformer 40, which subjects the latter prediction residual signal 24"' to an inverse transform, that is, a spectrum-to-space transform, to obtain a prediction residual signal 24"" corresponding to the original prediction residual signal 24 except for the quantization loss. The 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, that is, a reconstruction of the original signal 12. The reconstructed signal 46 may correspond to the signal 12'.
[0065] Prediction module 44 of prediction stage 36 then generates prediction signal 26 based on signal 46 by using, for example, spatial prediction (ie, intra prediction) and / or temporal prediction (ie, inter prediction). Details regarding this are described below.
[0066] Likewise, internally, the decoder 20 may be composed of components corresponding to the prediction stage 36 and interconnected in a manner corresponding to the prediction stage 36. Specifically, the entropy decoder 50 of the decoder 20 may entropy decode the quantized spectral domain prediction residual signal 24" from the data stream, and the dequantizer 52, the inverse transformer 54, the combiner 56 and the prediction module 58 interconnected and cooperating in the manner described above with respect to the modules of the prediction stage 36 may restore the reconstructed signal based on the prediction residual signal 24" so that Figure 2 As shown in , the output of the combiner 56 results in a reconstructed signal, namely the video 11 ′ or its current picture 12 ′.
[0067] 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 to optimize a certain rate and distortion related criterion (i.e., encoding cost) and / or use a certain rate control. As described in more detail below, the encoder 10 and the decoder 20 and the corresponding modules 44, 58 support different prediction modes, such as intra-frame coding mode and inter-frame coding mode or a mode in which the intra-frame coding mode forms a set or pool of original prediction modes, where the prediction of the picture block is formed based on the original prediction mode. The granularity at which the encoder and the decoder switch between these prediction components may correspond to the subdivision of the pictures 12 and 12', respectively, into blocks. It should be noted that some of these blocks may be blocks that are only intra-frame coded, and some blocks may be blocks that are only inter-frame coded, and selectively, even other blocks may be blocks obtained using both intra-frame coding and inter-frame coding, but the details are explained below.
[0068] According to the intra coding mode, a prediction signal for the block is obtained based on the spatially encoded / decoded neighborhood of the corresponding block. There may be several intra coding sub-modes, the selection of which approximately represents an intra prediction parameter. There may be directional or angular intra coding sub-modes, according to which the prediction signal for the corresponding block is filled by extrapolating sample values of the neighborhood into the corresponding block along a certain direction specific to the corresponding directional intra coding sub-mode. The intra coding sub-modes may also include, for example: one or more other sub-modes such as a DC coding mode, according to which the prediction signal for the corresponding block assigns a DC value to all samples within the corresponding block; and / or a plane intra coding mode, according to which the prediction signal for the corresponding block is approximated or determined as a spatial distribution of sample values at sample positions of the corresponding block described by a two-dimensional linear function, wherein the tilt and offset of the plane defined by the two-dimensional linear function are derived based on neighboring samples.
[0069] In contrast, according to the inter prediction mode, the prediction signal for a block may be obtained, for example, by temporally predicting the interior of the block. For parameterization of the inter prediction mode, a motion vector may be signaled within the data stream, which indicates a spatial displacement of a portion of a previously coded picture of the video 11 at which the previously coded / decoded picture was sampled in order to obtain the prediction signal for the corresponding block. This means that, in addition to the residual signal encoding included by the data stream 14, such as the entropy encoded transform coefficient levels representing the quantized spectral domain prediction residual signal 24", the data stream 14 may also include prediction related parameters encoded therein for assigning to block prediction modes, prediction parameters for the assigned prediction modes (such as motion parameters for inter-frame prediction modes), and (optionally) further parameters for controlling the composition of the final prediction signal for the block using the assigned prediction modes and prediction parameters, as will be outlined in more detail below. In addition, the data stream 14 may include parameters for controlling and signaling the subdivision of the pictures 12 and 12', respectively, into blocks. The decoder 20 uses these parameters to subdivide the picture 12 in the same way as the encoder 10 did, thereby assigning the same prediction modes and parameters to the blocks and performing the same prediction to produce the same prediction signal.
[0070] Figure 3 The relationship between the reconstructed signal, ie the reconstructed picture 12', on the one hand and the combination of the prediction residual signal 24"" and the prediction signal 26 as signaled in the data stream 14, on the other hand is shown. As already indicated above, the combination may be an addition.
[0071] Prediction signal 26 in Figure 380 of different sizes, but this is only an example. The subdivision can be any subdivision, such as a conventional subdivision of the picture area into rows and columns of blocks, or a multi-tree subdivision of the picture 12 into leaf blocks of different sizes, such as a quadtree subdivision, etc., wherein Figure 3 The mixing of this segmentation is shown in Figure 3 In the example, the picture region is first subdivided into rows and columns of tree root blocks, and then the tree root blocks are further subdivided according to the recursive multi-tree subdivision to generate blocks 80 .
[0072] Figure 3 The prediction residual signal 24"" in is also shown as a subdivision of the picture area into blocks 84. These blocks may be referred to as transform or residual blocks in order to distinguish them from the coding blocks 80. In practice, Figure 3 It is shown that the encoder 10 and the decoder 20 can use two different subdivisions of the picture 12 and the picture 12', respectively, into blocks, namely one subdivision into coding blocks 80 and another subdivision into blocks 84. Both subdivisions can be identical, i.e. each block 80 can simultaneously form a transform block 84 and vice versa, but Figure 3 The following situation is shown: for example, the subdivision into transform blocks 84 forms an extension of the subdivision into blocks 80, so that any boundary between two blocks 80 overlaps with a boundary between two blocks 84, or alternatively, each block 80 coincides with one of the transform blocks 84 or with a cluster of transform blocks 84.
[0073] However, the subdivisions may also be determined or selected independently of each other, such that the transform block 84 alternatively straddles a block boundary between blocks 80. With respect to the subdivision into transform blocks 84, similar statements apply as those presented with respect to the subdivision into blocks 80, i.e. the blocks 84 may be the result of a conventional subdivision of the picture region into blocks arranged in rows and columns, the result of a recursive multitree subdivision of the picture region, or a combination thereof or any other kind of partitioning.
[0074] By the way, it should be noted that blocks 80 and 84 are not limited to square, rectangular or any other shape. In addition, the subdivision of the current picture 12 into blocks 80 (at which the prediction signal is formed) and the subdivision of the current picture 12 into blocks 84 (at which the prediction residual is encoded) may not be the only subdivisions used for encoding / decoding. These subdivisions form the granularity at which the prediction signal determination and residual encoding are performed, but firstly, the residual encoding is alternatively performed without subdivisions, and secondly, at a granularity different from these subdivisions, the encoder 10 and the decoder 20 may set certain encoding parameters, which may include some of the aforementioned parameters, such as prediction parameters, prediction signal composition control signals, etc.
[0075] Figure 3 It is shown that the combination of the prediction signal 26 and the prediction residual signal 24"" directly produces the reconstructed signal 12'. However, it should be noted that according to alternative embodiments, more than one prediction signal 26 may be combined with the prediction residual signal 24"" to produce the picture 12', such as prediction signals obtained from other views or from other coding layers, which are for example encoded / decoded in a separate prediction loop with a separate DPB.
[0076] exist Figure 3 , the transform blocks 84 should have the following notability. The transformer 28 and the inverse transformer 54 perform their transforms in units of these transform blocks 84. For example, many codecs use a certain DST or DCT for all transform blocks 84. Some codecs allow skipping transforms so that for some of the transform blocks 84, the prediction residual signal is encoded directly in the spatial domain. However, according to the embodiments described below, the encoder 10 and the decoder 20 are configured in such a way that they support several transforms. For example, the transforms supported by the encoder 10 and the decoder 20 may include:
[0077] οDCT-II (or DCT-III), where DCT stands for Discrete Cosine Transform
[0078] οDST-IV, where DST stands for discrete sine transform
[0079] οDCT-IV
[0080] οDST-VII
[0081] οIdentity Transformation (IT)
[0082] Naturally, while the transformer 28 will support all forward transformed versions of these transforms, the decoder 20 or inverse transformer 54 will support their corresponding backward or inverse versions:
[0083] οInverse DCT-II (or Inverse DCT-III)
[0084] οInverse DST-IV
[0085] οInverse DCT-IV
[0086] οReverse DST-VII
[0087] oIdentity Transformation (IT)
[0088] In any case, it should be noted that the set of supported transforms may include only one transform, such as a spectral to spatial or spatial to spectral transform.
[0089] As outlined above, it has been presented Figures 1 to 3As an example, the concepts further described below may be implemented in this example to form specific examples of video encoders and decoders according to the present application. In this regard, Figure 1 and Figure 2 The video encoder and decoder represent possible implementations of the video encoder and decoder described below, respectively.
[0090] Regarding the claims, it should be noted that “inseparable” refers to separability in both vertical and horizontal directions.
[0091] 3. Structured multi-level transformation
[0092] In general, any linear transform of a residual block of size D = W*H can be defined by D*D parameters. Here, these kinds of transforms are called fully connected transforms. Although most of these transforms are flexible, their complexity increases quadratically with the size D in terms of the number of operations required and the required parameter storage.
[0093] Therefore, fully connected transforms are only applicable to small transform sizes. To reduce complexity, transforms can be constrained to have a specific structure that allows efficient implementation and reduces the number of transform parameters. One approach requires the transform to be factorized into multiple transforms, where each transform level is itself separated into independent subgroups. The complexity of those multi-level transforms can be adjusted by choosing the number of transform levels, the size of the independent subgroups, and also by constraining the subgroup transforms.
[0094] Example: Reducing the number of multiplications due to segmentation into sub-blocks
[0095] Consider a data block with width W and height H. This data block can be represented by an H×W matrix B, which is serialized into a (H*W)×1 vector b for further processing.
[0096] Transform the data block through a fully connected transformation. The transformation is done by computing the matrix-vector product T*b between the transformation matrix T and the serialized data block vector b. The transformation matrix has shape (H*W)×(H*W), resulting in H*W number of multiplications per output coefficient. Therefore, for H*W output coefficients, a total of (H*W) is required. 2 Multiplication of .
[0097] For H=8 and W=8, this results in 4096 multiplications necessary for the transform coefficient calculation. Now, the data block is subdivided into H / 4*W / 4 subblocks, which can be represented by the 4x4 matrix B i It is assumed that both H and W are divisible by 4. Each sub-block is serialized into a 16×1 vector b again. iFor further processing. Now calculate the transform coefficients, transform each sub-block through a fully connected transform and concatenate the results. By calculating the sub-block transformation matrix T i With serialized sub-block b i The matrix-vector product T between i *b i to complete the transform again. Since the transform matrix shape is 16×16 in this case, a total of 16 multiplications are required per output coefficient. Therefore, in order to calculate the transform coefficients of a single subblock, 16*16=256 multiplications are required. Since there are H / 4*W / 4 subblocks, the necessary number of multiplications for all subblocks is H / 4*W / 4*256=H*W*16. Looking again at the case of H=8, W=8, the number of multiplications is reduced by 75% from 4096 to 1024 due to the partitioning into subblocks and the independent transformation of each subblock. Inter-block correlations can also be taken into account by adding another transform stage with different partitions. Assuming the complexity is the same as the first stage, the total number of multiplications is 2048, so the complexity is only half of that of a fully connected 8×8 transform.
[0098] Further reduction in complexity can be achieved by allowing non-bijective transforms. More precisely, these transforms are defined here as transforms that assume certain subgroups of transform levels are all zero and thereby reduce the size of the residual signal. These transforms are called transforms with size reduction and are a generalization of transforms with high frequency zeroing as described above. Here, coefficient zeroing can be applied in combination with any previous transform level and arbitrary size. This includes the case where coefficient zeroing is applied to the first level. These transforms allow not only efficient implementation, but also efficient signaling of non-significant coefficients, as described later.
[0099] In order to fully describe a multi-level transform as introduced above, each transform level needs to be given by a unique partitioning into subgroups and the transforms applied to these subgroups.
[0100] The complexity reduction of the multi-level transforms as described above derives from the fact that each subgroup transform can be applied independently of each other, has a limited size and / or can be applied using efficient algorithms. Therefore, each subgroup transform is one of the following types:
[0101] Subgroup transformation:
[0102] ·(constant)
[0103] Transforms from the DCT / DST family
[0104] Fully connected transform for subgroups up to 64
[0105] (Permutation +) Paired Givens rotation
[0106] (Permutation +) Pairwise Lifting Scheme Transformation
[0107] The multi-level transformation itself
[0108] The division into subgroups may be given by any of the following rules, some of which are depicted in Figure 4a and Figure 4b and Figure 5 In the following lowercase letters:
[0109] s) For each level and position, a label is stored in a ROM which assigns a unique subgroup to that label.
[0110] t) For each position, a label is stored in Rom, which assigns a unique subgroup to that label. This partitioning is used for all levels of transformations.
[0111] u) Given a unique scan order of positions and a list of subgroup sizes D = {d0, d1, dN}, segmentation is done by grouping consecutive positions along this scan, where the size of each group is given by the associated element of D.
[0112] v) Given the unique scanning order of positions, the first d0 consecutive positions are considered as one subgroup and the remaining positions are considered as the second subgroup.
[0113] w) The partitioning is done in the horizontal or vertical direction so that each row or column defines a subgroup.
[0114] x) Split in the horizontal direction so that each row is further split into subgroups of size {2, 4, 8, 16, 24, 48, 32, 64}
[0115] y) Split vertically so that each column is further split into subgroups of size {2, 4, 8, 16, 24, 48, 32, 64}
[0116] z) The segmentation is completed by considering the sub-blocks containing the first position (upper left) and having any of the shapes {4×4, 4×8, 4×12, 4×16, 8×4, 8×8, 12×4, 16×4} as one sub-group. The remaining positions form a second group.
[0117] aa) The partitioning is done by treating the sub-blocks containing the first position (upper left) and having any of the shapes {4×4, 4×8, 4×12, 4×16, 8×4, 8×8, 12×4, 16×4} as one sub-group. The remaining positions are partitioned into groups of size {1×2, 2×1, 2×2, 4×4}.
[0118] bb) partitioning into subgroups of shape 4×4 and / or 2×2 is done.
[0119] cc) Subgroup transforms with sizes in {2,4,8,16}
[0120] dd) Subgroup transforms with sizes in {24,32,48,64}
[0121] ee) complete the segmentation into subgroups with shape sizes in {2×2, 4×4, 4×8, 4×12, 4×16, 8×4, 8×8, 12×4, 16×4}
[0122] ff) The partitioning is derived from the width and height of the residual block by considering the subgroups of size min(8, width)×min(8, height) including the first position as one group, and the remaining positions form a second group.
[0123] gg) The partitioning is derived from the width (W) and height (H) of the residual block by taking a subgroup containing a first position and size in {4×4, 4×8, 4×12, 4×16, 8×4, 8×8, 12×4, 16×4} by applying the following rule: If W == H, then the shape of the subgroup is D×D, where D=min(W,8). If W>H, then the height of the subgroup is set to 4. Its width is selected by taking the maximum size in {8, 12, 16}, which is not greater than W. If H>W, then the width of the subgroup is set to 4. Its height is selected by taking the maximum size in {8, 12, 16}, which is not greater than H.
[0124] hh) Permutation + pairwise segmentation stored in ROM.
[0125] ii) Derived from the prediction model
[0126] jj) Hierarchy:
[0127] 1) N horizontal transformations (fully connected: dim M)
[0128] 2) M vertical transformations (fully connected: dim N) 3)
[0130] Transformation category:
[0131] Structuring transforms helps to reduce complexity on one hand, but also allows to group transforms by constraints on their causality. This classification can be useful for comparing transforms and defining correlation models for quantization and / or entropy coding stages.
[0132] As a type of transformation, Figure 6As exemplarily shown in , a multi-level transform factorized into two transforms, hereinafter referred to as primary transform and secondary transform, is considered. The naming originates from the encoder perspective, since the primary transform is directly applied to the prediction residual in the spatial domain to obtain the primary transform coefficients, while the secondary transform is applied to a subset of the primary transform coefficients.
[0133] It should be noted that the primary transform and the secondary transform may themselves be defined as multi-level transforms, with the secondary transform being reduced in size compared to the primary transform.
[0134] If a transform is not factorized into two transforms such that the second transform is applied only to a subset of the coefficients of the first transform, then the transform is referred to as a primary-only transform.
[0135] Another transform category is given by the fact that the transform can be factorized into vertical and horizontal transforms and is called a separable transform. It is a particularly simple form of a multi-level transform. In the first stage, the transform is applied column by column and in the second stage, the transform is applied column by column to the output (coefficients) of the first transform stage (or vice versa). Typically, in each stage, the same transform is applied to each row (column).
[0136] A special class of transforms is given by their size reducing property, ie if the size is explicitly reduced by the transform and in that case the exact coefficient positions are assumed to be zero.
[0137] Assuming that reconstruction of the residual signal from the coefficients encoded in the bitstream involves an inverse transform as part of the entropy coding stage, which is applied to the coefficients (possibly belonging to different residual blocks) before dequantization, it is necessary to have a lossless transform that does not introduce rounding errors. Whether a transform is lossless can also be a classification property.
[0138] Further classification of transforms can be done by distinguishing analytically constructed transforms, such as transforms from the DCT / DST family and those trained on a specific set of examples. For analytical transforms, the classification can be done precisely by their construction rules. This construction rule can be applied to different transform sizes, so this also allows comparison between transforms, even if they are of different sizes. It can help to explore inter-block dependencies, for example, to derive context models for transform decisions that depend on neighboring blocks.
[0139] Furthermore, data-driven transforms can be further classified depending on their specialization. Specifically, transforms trained for intra prediction residuals are more general, while transforms trained precisely for one specific intra mode, e.g. given by precise intra directions, result in more specialized transforms. This specialization can be further improved even by clustering data for a given prediction mode.
[0140] 3.1 Exemplary Embodiments of Primary and Secondary Conversion
[0141] Some examples and embodiments for primary and secondary transformations can be listed in the following non-exhaustive list:
[0142] Primary transformation:
[0143] A)
[0144] 1. Level: Split into rows, with dedicated transformations for each row
[0145] 2. Level: Split into columns, with dedicated transformations for each column.
[0146] Each subgroup transform can be of any type, as mentioned above.
[0147] Specifically:
[0148] A.1)
[0149] 1. Level: split into rows, same transformation for each subgroup (row).
[0150] 2. Level: Split into columns, with the same transformation used for each subgroup (column).
[0151] A.2)
[0152] 1. Level: Split into rows, same DCT / DST transform for each subgroup (row).
[0153] 2. Level: Split into columns, same DCT / DST transform for each subgroup (column).
[0154] A.3)
[0155] 1. Level: Split into rows, same DCT / DST transform with size reduction for each subgroup (row).
[0156] 2. Level: Split into columns, same DCT / DST transform for each subgroup (column).
[0157] A.4)
[0158] 1. Level: Split into rows, same DCT / DST transform for each subgroup (row).
[0159] 2. Level: Split into columns, same DCT / DST transform with size reduction for each subgroup (column).
[0160] A.5)
[0161] 1. Level: Split into rows, same DCT / DST transform with size reduction for each subgroup (row).
[0162] 2. Level: Split into columns, same DCT / DST transform with size reduction for each subgroup (column).
[0163] A.6)
[0164] 1. Level: Split into rows, with an identity "transform" for each subgroup (row).
[0165] 2. Level: Split into columns, same DCT / DST transform for each subgroup (column).
[0166] A.7)
[0167] 1. Level: Split into rows, same DCT / DST transform for each subgroup (row).
[0168] 2. Level: Split into columns, with an identity "transform" for each subgroup (column).
[0169] A.8)
[0170] 1. Level: Split into rows, with an identity "transform" for each subgroup (row).
[0171] 2. Level: Split into columns, with an identity "transform" for each subgroup (column).
[0172] (This is equivalent to applying no transformation at all.)
[0173] A.9)
[0174] 1. Level: split into rows, same fully connected transformation for each subgroup (row).
[0175] 2. Level: Split into columns, using the same fully connected transformation for each subgroup (column).
[0176] A.10)
[0177] 1. Level: Split into rows, dedicated fully connected transform for each subgroup (row).
[0178] 2. Level: Split into columns, dedicated fully connected transform for each subgroup (column).
[0179] B)
[0180] 1. Level: Split into subgroups of size S (e.g. 8) along the rows
[0181] 2. Level: Split into subgroups of size S (e.g. 8) along the columns
[0182] Each subgroup transform can be of any type, as mentioned above.
[0183] especially:
[0184] B.1)
[0185] 1. Level: Split along rows into subgroups of size S, which is half the block width.
[0186] 2. Level: Split into columns, with the same transformation used for each subgroup (column).
[0187] B.2)
[0188] 1. Level: Split into rows, same transformation for each subgroup (column).
[0189] 2. Level: Split along columns into subgroups of size S, which is half the block height.
[0190] B.3)
[0191] 1. Level: Split along rows into subgroups of size S, which is half the block width.
[0192] 2. Level: Split along columns into subgroups of size S, which is half the block height.
[0193] B.4)
[0194] 1. Level: Split into subgroups of size S along rows.
[0195] 2. Level: Split into subgroups of size S along columns.
[0196] The first subgroup is transformed to DCT / DST type and the second subgroup is set to zero.
[0197] B.5)
[0198] 1. Level: Split into subgroups of size S along rows.
[0199] 2. Level: Split into subgroups of size S along columns.
[0200] The first subgroup is set to zero and the second subgroup is transformed to DCT / DST type.
[0201] C)
[0202] 1. Level: Split into subgroups of size S (e.g. 8) along the rows
[0203] 2. Level: Split into subgroups of size S (e.g. 8) along the columns
[0204] 3. Level: Hierarchy with bypass (equivalent to subgroups with identity transformation)
[0205] Each subgroup transform can be of any type, as mentioned above.
[0206] especially:
[0207] C.1)
[0208] 1. Level: split into rows, same transformation for each subgroup (row).
[0209] 2. Level: Split into columns, with the same transformation used for each subgroup (column).
[0210] 3. Level: transformation with size reduction.
[0211] C.2)
[0212] 1. Level: Split into rows, same DCT / DST transform for each subgroup (row).
[0213] 2. Level: Split into columns, same DCT / DST transform for each subgroup (column).
[0214] 3. Level: transformation with size reduction.
[0215] Secondary transformation:
[0216] A)
[0217] Subgroup of primary coefficients for secondary transform derived from min(8,W),min(8,H). The secondary transform is a fully connected transform type.
[0218] A.1)
[0219] Subgroup of primary coefficients for secondary transform derived from min(8,W), min(8,H). The secondary transform is a fully connected transform type with size reduction.
[0220] B)
[0221] The primary coefficients are partitioned into 4x4 subgroups. Fully connected transforms are applied to subsets of the subgroups and combined in a hierarchy.
[0222] B.1)
[0223] The primary coefficients are partitioned into 4x4 subgroups. Fully connected transforms with size reduction are applied to subsets of the subgroups and combined in a hierarchy.
[0224] C)
[0225] The primary coefficients are partitioned into subgroups. The secondary transform is applied to a subset of those subgroups. The transform type (ie, connectivity) of the secondary transform depends on the position of the subgroup within the complete transform block.
[0226] 4. Candidate Transformation Set
[0227] The decoding process of the selected transform can be composed of the following steps:
[0228] First, the candidate list can be constructed using the decoded syntax elements.
[0229] Knowledge about the selected transform can support the process of decoding coefficients from the bitstream. Therefore, if the candidate list contains more than one transform, it may be beneficial to reduce the candidate list (or even identify the selected candidate list) by explicitly signaling information about the selected transform before the coefficient decoding process.
[0230] On the other hand, the decoded information about the coefficients can be used to determine the selected transform among the candidates. During the coefficient decoding process, the candidate list can be iteratively reduced by removing those transforms that conflict with the information already obtained about the coefficients. When all coefficients are decoded and more than one transform candidate remains, the index into the remaining candidate list must be signaled.
[0231] 4.1 Construction of Candidate List
[0232] The transform candidate list for the residual block is constructed by exploiting the decoded syntax elements. These syntax elements may include transform block parameters such as its total size, shape (width and height) and color channel type (luminance or chrominance), but also information about the prediction method used for the current block. Using different transform types for different change sizes can be motivated by the complexity considerations in Section 3.
[0233] Fig.12 A non-limiting example for encoding a picture 12 having a plurality of residual blocks 84, 84', 84" is shown. As exemplarily shown for the residual block 84, each residual block includes a specific block size 96 that may be defined by the width and height of the corresponding block 84. According to this non-limiting example, the construction of the transform candidate list may be described, for example, with reference to the corresponding block size 96.
[0234] Thus, an encoder 10 and a decoder 20 may be provided for encoding / decoding a picture 12 into / from a data stream 14 using block-based prediction and block-based residual coding, the encoder 10 and the decoder 20 supporting a transform set 94 for block-based residual coding. The encoder 10 and the decoder 20 may be configured to determine 122 a transform candidate list 98 for a transform of a current residual block 84 from the transform set 94 based on a size 96 (e.g., height and width) of the current residual block 84. The encoder 10 may be configured to encode a prediction residual 100 within the residual block 84 using one selected transform 102 from the optional transform list 98, and selectively signal the selected transform 102 in the data stream 14 with a new number. The decoder 20 may also be configured to selectively derive the selected transform 102 from the data stream 14 and decode the prediction residual 100 within the residual block 84 in the domain of one selected transform 102 from the optional transform list 98.
[0235] For the terms "domain" and "codomain", reference should be made to Fig.16 , which shows a detailed depiction of the above-mentioned residual block 84 including a plurality of samples 105. The number of samples 105 may determine a block size 96, e.g., a width and a height of the residual block 84 (e.g., a 4×4, 8×8 block, etc.). A primary transform may be performed on the residual block 84 or the samples 105, respectively, wherein the block size 96 and the samples 105 correspond to a domain of the primary transform. The samples 105 are transformed into primary transform coefficients 114, wherein one or more of the primary transform coefficients 114 may be included in a subgroup 112 of the primary transform coefficients. The output of the primary transform, i.e., the codomain of the primary transform, corresponds to the size of the subgroup 112 defined by the number of the primary transform coefficients 114.
[0236] exist Fig.16 In the non-limiting example shown in , the subgroup 112 may include one or more zero-valued primary transform coefficients 114 and one or more valid (i.e., non-zero-valued) primary transform coefficients 114. Some specific examples in which one or more primary transforms may be set to zero are described later in Subsection 5 below.
[0237] At present, we should continue to refer to Fig.16 1 to further describe the general principle. It can be seen that in this non-limiting example, the subgroup 112 is inverted "L" shape, that is, the left column and the upper row including the significant coefficients 114 are retained, while the remaining primary transform coefficients 114 outside the inverted "L" range can be set to zero, at least from the encoder's perspective. In more general terms that are also applicable to the decoder, the domain of the secondary transform is reduced compared to the domain of the primary transform.
[0238] The subgroup 112 of primary transform coefficients 114 may then be subjected to a secondary transform, resulting in a secondary subgroup 138 of secondary transform coefficients 134. The size of the subgroup 112, i.e., the number of primary transform coefficients 114 (which corresponds to the domain of the secondary transform), may be larger than the size of the secondary subgroup 138, i.e., the number of secondary transform coefficients 119 (which corresponds to the codomain of the secondary transform).
[0239] Fig.16 A first alternative A is shown, in which only the significant primary transform coefficients 114 are transformed by the secondary transform and zero-valued primary transform coefficients are implicitly reduced and not signaled, i.e. only the transformed significant transform coefficients (secondary subgroup 138) can be coded in this case. Fig.16 A second alternative B is shown (in dashed lines) in which the entire subblock 117 including the secondary subgroup 138 and the zero-valued coefficients outside this subgroup 138 may be present, ie all coefficients are encoded in this case.
[0240] Also Fig.16 As shown in , encoder 10 and decoder 20 may inverse transform secondary transform coefficients 134, where the domain of the inverse transform may correspond to the codomain of the secondary transform.
[0241] As mentioned above, the transform candidate list 98 for the residual block may be constructed by utilizing decoded syntax elements, eg transform block parameters, such as its overall size, shape (width and height), or in other words based on the domain / codomain of the corresponding transform.
[0242] Thus, the encoder 10 of this aspect may support multiple block sizes 96 (i.e., height and width). For each block size, the transform set 94 may include a transform subset whose domain corresponds to the corresponding block size 96. For each transform in the transform set 94, the encoder 10 may support an inverse transform (it should be noted that it is not necessary for T*T, such as for those transforms T with size reduction). -1 =1), the domain of the inverse transform is consistent with the codomain of the corresponding transform, wherein the encoder 10 can use the inverse transform to fill the decoded picture buffer at the residual block for which the corresponding transform is selected. The encoder 10 can also be configured to fill the transform exclusively with a transform from the transform subset when determining the transform candidate list 98, the domain of the transform corresponding to the height and width of the current residual block 84.
[0243] Thus, the decoder 20 of this aspect may support multiple block sizes (i.e., height and width). For each block size, the transform set 94 includes a transform subset whose codomain corresponds to the corresponding block size. It should be noted that the transforms referred to herein are inverse transforms relative to the transforms that occurred at the encoder 10. The decoder 20 may further be configured to exclusively populate the transforms with transforms from the transform subset when determining the transform candidate list 98, whose codomain corresponds to the height and width of the current residual block 84.
[0244] In summary, each transform (primary or secondary) may include a domain comparable to its input and a domain comparable to its output, wherein the respective co-domains of the first transform and the secondary transform may differ from each other. Reduced co-domain may be achieved, for example, by setting some of the primary and / or secondary coefficients to zero, as will be explained in more detail below.
[0245] As mentioned initially above, computational complexity can increase with transform size. Therefore, it is helpful to limit transform candidates for transform blocks with sizes above a threshold to simpler transform types in return. For now, a simple example is given by considering a separable transform defined by one horizontal and one vertical transform type. DCT-II followed by an identity "transform" with no additional computational complexity is considered a computationally simple transform type due to the efficient algorithm using its butterfly structure.
[0246] As stated in Section 3, the complexity of each transform type can be reduced by introducing transform candidates that implicitly reduce the dimensionality by forcing certain coefficients to be zero and thereby reduce the number of required multiplications.
[0247] In the following, some exemplary embodiments of the encoder 10 and the decoder 20 will be described, which are configured to set one or more of the primary transform coefficients and / or one or more of the secondary transform coefficients to zero, which will also be referred to as "zeroing". Setting the coefficients to zero can be applied at the encoder end, and the decoder can avoid decoding coefficients that are zero.
[0248] For example, three thresholds (T1, T2, T3) are defined. T1 is in accordance with subsection 2.3 and is defined by size (width or height), so that DCT-II is a candidate for the vertical (horizontal) transform of the block only when the height (width) of the block is less than T1. Otherwise, DCT-II with reduced size is a candidate, where the last height (width)-T1 high-frequency coefficients are set to zero. In addition, T2 defines the threshold size for other transform types (such as DST-VII, DCT-III, etc.), so that the full-size transform is a candidate only when its size is less than T2. Otherwise, its corresponding transform with reduced size is a candidate. Finally, T3 defines the threshold size for the identity "transform", which is a candidate only when its size is less than T3.
[0249] According to an example, the encoder 10 may be configured to, when determining the transform candidate list 98:
[0250] If the height and width of the current residual block 84 meet the first criterion (e.g., T1 and T2), then fill the transform candidate list 98 with one or more transforms from the transform subset whose domain corresponds to the height and width of the current residual block 84 and whose codomain is smaller than its domain (e.g., a transform with a “reduced width size”), or
[0251] If the height and width of the current residual block 84 do not satisfy the first criterion, one or more transforms from the transform subset are excluded from the transform candidate list 98, the domain of the one or more transforms corresponding to the height and width of the current residual block 84 and the codomain of the one or more transforms being smaller than its domain.
[0252] The decoder 20 may in turn be configured to, when determining the transform candidate list 98:
[0253] If the height and width of the current residual block 84 meet the first criterion (e.g., T1 and T2), then fill the transform candidate list 98 with one or more transforms from the transform subset whose codomain corresponds to the height and width of the current residual block 84 and whose domain is smaller than its codomain (i.e., the inverse transform of a transform with a "reduced width size") (e.g., including fewer samples / coefficients), or
[0254] If the height and width of the current residual block 84 do not satisfy the first criterion, one or more transforms from the transform subset whose codomains correspond to the height and width of the current residual block 84 and whose domains are smaller than its domain are excluded from the transform candidate list 98.
[0255] The one or more transforms mentioned above may be one or more of the following: DCT-II, DST-VII and DCT-III.
[0256] According to another example, the encoder 10 and the decoder 20 may be configured to perform, when determining the transform candidate list 98:
[0257] If the height and width of the current residual block 84 meet a second criterion (e.g., T3), then fill the transform candidate list 98 with an identity transform from the transform subset whose domain corresponds to the height and width of the current residual block 84, or
[0258] If the height and width of the current residual block 84 do not satisfy the second criterion, an identity transform from the transform subset, whose domain corresponds to the height and width of the current residual block 84 , is excluded from the transform candidate list 98 .
[0259] The encoder 10 and the decoder 20 may be configured to check the first criterion and / or the second criterion by checking whether the height, the width, both the height and the width, and / or the product of the height and the width exceeds a certain threshold.
[0260] In addition to defining limits independently by width and height of the residual block, rules can be applied by checking the relative shapes. For example, only candidates are allowed if either of their width or height exceeds the other. For separable transform candidates, this can be done by assigning one transform type to the larger transform size and another transform type to the smaller direction. For transforms with size reduction, this information can be used to decide which coefficients are set to zero.
[0261] According to yet another example, the encoder 10 and the decoder 20 may be configured to perform, when determining the transform candidate list:
[0262] If the height and width of the current residual block meet a third criterion (e.g., does the ratio of height to width exceed a certain threshold?), populate the transform candidate list with a separable spectral decomposition transform from the transform subset, the domain of which corresponds to the size of the current residual block (84),
[0263] If the height and width of the current residual block do not satisfy a third criterion, a separable spectral decomposition transform from the transform subset whose domain corresponds to the size of the current residual block (84) is excluded from the transform candidate list.
[0264] According to this example, the encoder 10 and decoder 20 may be configured to check the third criterion by checking whether the ratio of height to width exceeds a certain threshold. For the secondary transform, the width and height of the residual block may be used to decide which coefficients are transformed in another transform step. According to the complexity argument above, more flexible transform structures (compared to separable transforms) should also be restricted, which depend on the transform block size. Although transform levels for smaller block sizes may be defined so that the complete result (all coefficients) of the previous transform level are further transformed in the following stage (in section 3 referred to as primary-only transform), multi-level transforms consisting of primary+secondary transforms may be used for larger block sizes.
[0265] By assuming, for example, that the secondary transform is applicable to sizes up to 64 (primary transform coefficients), the construction rule for the secondary input can be formulated as subgroups defined by min(8, width)×min(8, height). In order to reduce the total number of defined transforms, the shapes of the secondary transform subgroups can be limited. For example, by defining only secondary transforms for shapes 8×8 and 4×4, the secondary transform subgroups are selected by the larger shape (width*height) applicable to a given transform block size.
[0266] For illustration, in this case, a transform block of size (4×32) has a sub-transform shape (4×4), while a transform block of size (8×16) has a sub-transform shape (8×8). Furthermore, the structure of the sub-transforms themselves should be defined with complexity limits that depend on their own size and or the size of the complete transform block. For example, a 4×4 sub-transform may be defined by a fully connected transform, while larger sub-transforms should be limited in their complexity by any of the methods described in subsection 3, such as by limiting the number of other transform stages or reducing their size by forcing certain coefficients to be zero.
[0267] Thus, the encoder 10 and the decoder 20 may be configured to fill the transform candidate list (98) with transforms that depend on the block size and shape when determining the transform candidate list (98), wherein scaling of the blocks may be used, as exemplarily described in the previous paragraph. As mentioned above, for example, a first transform block having a size (4×32) has a secondary transform shape (4×4), while a second transform block having a size (8×16) has a secondary transform shape (8×8). That is, the rows of the first and second transform blocks may include a scaling ratio of 1:2, while the columns of the first and second transform blocks may include a scaling ratio of 2:1.
[0268] Thus, if the height and width of the current residual block 84 correspond to the first predetermined block size, the encoder 10 and the decoder 20 may be configured to populate the transform candidate list 98 with the first one or more transforms in the transform subset, the codomain of the one or more transforms corresponding to the height and width of the current residual block 84 and the encoder 10 and the decoder 20 invert a multi-level transform 106 comprising a primary transform 108 applied to the prediction residual 100 within the current residual block 84, and a secondary transform 110 applied to a first subgroup 112 of primary transform coefficients 114 of the primary transform 108.
[0269] Alternatively, if the height and width of the current residual block 84 correspond to a second predetermined block size, the encoder 10 and the decoder 20 may be configured to fill the transform candidate list 98 with a second one or more transforms in the transform subset, the codomain of the one or more transforms corresponding to the height and width of the current residual block 84 and the encoder 10 and the decoder 20 invert the multi-level transform 106, which includes a primary transform 108 applied to the prediction residual 100 within the current residual block 84, and a secondary transform 110 applied to a first subgroup 112 of primary transform coefficients 114 of the primary transform 108.
[0270] In either case, the scaling that maps the first codomain of the first one or more transformed primary transforms 108 onto the second codomain of the first one or more transformed primary transforms 108 does not map the circumference of the first subgroup within the first codomain onto the circumference of the second subgroup within the second codomain.
[0271] With respect to the above-mentioned height / width ratio of the blocks after the primary transformation and the secondary transformation, it is possible that the periphery of the first subgroup 112 within the first companion domain will not be mapped onto the periphery of the second subgroup, for example, even if the height / width ratio (aspect ratio) of the companion domain of the primary transformation is the same as the height / width ratio of the first predetermined size and the second predetermined size.
[0272] Therefore, the encoder 10 and the decoder 20 may be configured to, when determining the transform candidate list: if the height and width of the current residual block correspond to the first predetermined block size, fill the transform candidate list with one or more transforms in the transform subset, the domain of the one or more transforms corresponding to the height and width of the current residual block 84, and the one or more transforms are a multi-level transform 106, which includes a primary transform 108 applied to the prediction residual 100 within the current residual block and a secondary transform 110 applied to the first subgroup 112 of the primary transform coefficients 114 of the primary transform. Alternatively, if the height and width of the current residual block correspond to the second predetermined block size, the encoder 10 and the decoder 20 may be configured to fill the transform candidate list with a second one or more transforms in the transform subset, the domain of the one or more transforms corresponding to the height and width of the current residual block 84, and the one or more transforms being a multi-level transform 106 including a primary transform 108 applied to the prediction residual 100 within the current residual block and a secondary transform 110 applied to a second subgroup 112 of primary transform coefficients 114 of the primary transform. In this example, scaling that maps a first codomain of the primary transform of the first one or more transforms onto a second codomain of the primary transform of the first one or more transforms may not map an outer periphery of the first subgroup within the first codomain to an outer periphery of the second subgroup within the second codomain.
[0273] The structure of the transform stages should be further constrained by their relative sizes, taking into account the relative complexity overhead of the transform stage to its full transform block size (e.g., by counting multiplications per pixel in the full transform block). Here, the worst case applies to only the primary multi-level transform, where by definition (see subsection 3), all coefficients (or all subgroups) of the previous transform stage are input to the next transform stage. Furthermore, all methods of subsection 3 are applicable.
[0274] Besides transforming the block shape, the prediction method used to obtain the residual block also provides insight into the characteristics of the residual signal and can thus be used to select appropriate transform candidates.
[0275] By having different transform candidates defined for chroma and luma residual blocks, the transform candidate list can also be adapted to the color channels. While having a dedicated chroma transform set gives higher flexibility, this also increases the amount of memory required to store the additional transform cores. Therefore, it is desirable to have a joint set of transform structures / cores to select candidates from. If the chroma residual block is associated with a luma transform block (e.g., belongs to the same CU, no binary tree), it is also desirable to share the same transform index (which must be signaled only once) or to derive the selected chroma transform from the selected luma transform. In order to allow unique identification, the chroma candidate list must be carefully selected and adapted to the luma candidate list. Mainly, chroma subsampling is used in video coding, so the chroma residual block size and therefore the chroma transform size is also different from the selected luma transform size. In order to identify the chroma candidate, the characteristics of the selected luma transform must match the transform category in the candidate list of the chroma block. In the case of having a transform from the DCT / DST category, this is straightforward because the transform is defined for different sizes. Thus, the candidate list for the chroma transform block can be populated with the same transform type (DCT / DST) as the associated luma block but of smaller size, and the selected transform can be uniquely identified, thereby knowing the selected luma candidate. This property also allows unique identification by allowing, for example, only one candidate to have a secondary+ transform. In addition, the reduced size property can be used to identify the associated chroma transform candidate. If the selected luma transform is reduced in size by setting predefined coefficient positions to zero, the chroma transform can be identified by taking candidates that force the same relative position to be zero. Here, the relative position refers to, for example, the first half of the block or the first row of the block, etc. If the same properties are shared between the same number of candidates in the luma and chroma lists, the order within the list and the selected luma transform index can be used to identify the chroma transform.
[0276] This may help to only add specific transforms to the candidate list if the quantization parameter is within a certain range. This is especially helpful for transforms with reduced size, and specialized transforms may be trained depending on the quantization parameter.
[0277] Given these properties, the transformation candidate list can be derived by construction rules or obtained by a lookup table.Here, a lookup table with transformation candidate lists for all possible attribute combinations is the most flexible and therefore the preferred variant.
[0278] The following subsections provide rules for constructing the transform candidate list.
[0279] 4.1.1 Large Residual Block
[0280] Large residual blocks with width or height greater than 64 may be transformed using DCT-II with high frequency zeroing as described in subsection 2.3 above.
[0281] 4.1.2 Inter-frame predicted residual block
[0282] For inter-predicted residual blocks, the transform and signaling scheme of AMT can be used, that is, the candidate list may include:
[0283] {[DCT-II,DCT-II],[DST-VII,DST-VII],[DST-VII,DCT-VIII],[DCT-VIII,DST-VII],[DCT-VIII,DCT-VIII]}
[0284] Among them: [vertical transformation, horizontal transformation]
[0285] 4.1.3 Residual Blocks Predicted by Intra-frame NN
[0286] Intra-frame NN transformation
[0287] For intra NN (neural network), a dedicated set of transforms for intra NN prediction blocks is provided. In the following, these transforms are referred to as intra NN transforms.
[0288] refer to Figure 7 , an encoder 10 (similar to the above reference Figure 1 The encoder described above) and the decoder 20 (similar to the above reference Figure 2 The encoder 10 and the decoder 20 are configured to encode / decode a picture 12 into / from a data stream 14 using block-based prediction and block-based residual coding. The encoder 10 and the decoder 20 support a transform set 94 for block-based residual coding, wherein one or more different transforms are available within the set 94. The encoder 10 and the decoder 20 are configured to predict the intra-prediction block 80 by applying a spatial neighborhood 90 of the intra-prediction block 80 to a selected neural network of a plurality of neural networks 92, thereby obtaining a prediction 104 of the intra-prediction block 80. The encoder 10 and the decoder 20 may determine a selectable transform set 98 from the transform set 94 for a residual block 84 covering the intra-prediction block 80 based on the selected neural network and a block size 96 based on the residual block 84. The encoder 10 may further encode the prediction residual 100 associated with the prediction of the intra-prediction block 80 within the residual block 84 using a selected transform 102 from the set of selectable transforms 98, and signal the selected transform with a new number in the data stream 14. The decoder 20 may in turn decode the prediction residual 100 associated with the prediction 104 of the intra-prediction block 80 within the residual block 84 from the data stream 14 in the domain of the selected transform 102 from the set of selectable transforms 98, while deriving the selected transform from the data stream 14.
[0289] Thus, a transform set 94 may be provided that includes one or more selectable sets 98 that may be selected from the set 94. The selectable set 98 may include one or more transforms 102, one of the transforms 102 being selectable from the selectable set 98. The encoder 10 may encode the prediction residual 100 using one of the selected transforms 102. The decoder 20 may decode the prediction residual 100 using one of the selected transforms 102.
[0290] These transforms are trained for specific characteristics of the prediction residual when conditioned on different intra NN modes. The intra NN transform set 98 includes only primary transforms for small block sizes (e.g., block sizes below a predetermined threshold) and primary+secondary transforms for larger block sizes (e.g., block sizes above a predetermined threshold).
[0291] For example, Figures 7 to 10 1 shows a residual block 84 including a plurality of samples 105. The residual block 84 may include prediction residuals 100 that may be encoded and decoded separately. The samples 105 may be subjected to one or more transforms, for example only a primary transform 118 ( Fig.10 ) or a multi-stage transform 106 including a primary transform 108 and a subsequent secondary transform 110 ( Figure 8 ).
[0292] The samples 105 may be subjected to a primary transform 108 such that the samples 105 may be transformed from the spatial domain into a transform domain. Thus, the transformed block may include one or more primary transform coefficients 114. A plurality of primary transform coefficients 114 may be arranged together in a primary subgroup 112 of primary transform coefficients 114. As shown, for example, in Fig. 9 As can be seen in , the primary transform 108 may transform one or more rows of the residual block 84 from the spatial domain into the transform domain, while the columns of the residual block 84 are not transformed and therefore remain in the spatial domain.
[0293] In some examples, the primary transform coefficients 114 may be further transformed by means of the secondary transform 110, so that the primary transform coefficients 114 may be transformed into the domain of the corresponding secondary transform. Thus, the re-transformed block 117 (due to the secondary transform 110) may include one or more secondary transform coefficients 134. A plurality of secondary transform coefficients 134 may be arranged together in a secondary subgroup 138 of secondary transform coefficients 134. For example, Fig. 9 As can be seen in FIG. 1 , the secondary transform 110 may transform one or more columns of the block from the spatial domain into the transformed domain. As mentioned above, the rows of the block may have been transformed with the aid of the primary transform 108. Thus, the rows and columns may have been transformed with the aid of multiple levels of transforms (i.e., by applying a primary transform and a subsequent secondary transform). However, the transform coefficients are not limited to rows and columns, as this is just a non-limiting example.
[0294] As mentioned previously, a predetermined set of transforms 94 is available to the encoder 10 and the decoder 20 can select from. Figure 7 and Figure 8 , the encoder 10 and the decoder 20 may be configured to perform the determination of the selectable set 98 such that for block sizes above a predetermined threshold, the selectable transform set 98 is filled by a first number of one or more multi-level transforms 106, each multi-level transform comprising a primary transform 108 applied to the prediction residual 100 and a secondary transform 110 applied to a subgroup 112 of primary transform coefficients 114 of the primary transform 108, the secondary transform 110 being inseparable and depending on the selected neural network. The subgroup 112 represents a low-frequency portion of the primary transform 108.
[0295] For example, for each block size and each intra NN prediction mode in S = {4, 8, 16, 32} × {4, 8, 16, 32}, there is a set of 4 intra NN transforms. More generally, the number of multi-level transforms can be 2 to 6, inclusive. For block sizes other than those in S, an intra NN transform is used to derive the size s′. The size s′ is obtained by taking the sizes in S, for each of which the vertical and horizontal dimensions are the smallest in S, but are at least the block size.
[0296] refer to Fig.10 Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to perform the determination of the selectable set 98 such that for block sizes below a predetermined threshold, the selectable transform set 98 is filled with a second number of one or more inseparable transforms 118. Figure 8 ) and the first number of inseparable transformations 118 ( Fig.10 ) may be equal.
[0297] Intra NN transforms are defined as primary-only transforms for sizes where both block height (H) and block width (W) are no larger than 8. For complexity reasons, larger transforms are defined as primary+secondary transforms, with a low-complexity separable primary transform and a secondary transform applied only to the primary coefficient subblock containing the first coefficient and having size (8,W)×min(8,H).
[0298] Version 1:
[0299] refer to Fig. 9, and further in addition to or instead of the intra NN transform, the encoder 10 and the decoder 20 may be configured to perform the determination of the selectable set 98 such that the selectable transform set 98 is further populated by a third number (e.g., 1 or 5) of one or more separable two-dimensional transforms 116, i.e., the transform candidate list for the residual block for intra NN prediction may include the following 5 separable (primary only) transforms from the DCT / DST family:
[0300] {[DCT-II,DCT-II],[DST-VII,DST-VII],[DST-VII,DCT-VIII],[DCT-VIII,DST-VII],[DCT-VIII,DCT-VIII]}
[0301] Among them: [vertical transformation, horizontal transformation]
[0302] Version 2:
[0303] Furthermore, in addition to or instead of the intra NN transform, the transform candidate list for the residual block for intra NN prediction may include a separable (primary only) {DCT-II, DCT-II} transform.
[0304] Version 3:
[0305] Intra NN prediction can be defined such that the prediction is given in the transformed domain representation rather than in the spatial domain representation. Thus, the prediction residual is given as coefficients of a specific transform level. In this case, the first level of the transform that is effectively applied is already well defined by the prediction used.
[0306] For example, the encoder 10 and the decoder 20 may be configured to perform the prediction such that the prediction of the intra prediction block 80 is obtained in the domain 118 of the primary transform 108. The encoder 10 and the decoder 20 may be further configured to perform the determination of the selectable set 98 such that the selectable transform set 98 is populated by a fourth number of one or more multi-level transforms 106, each multi-level transform comprising a primary transform 108 and a secondary transform 110 applied to a subgroup 112 of primary transform coefficients 114 of the primary transform 108, wherein the secondary transform 110 may be inseparable and depends on the selected neural network.
[0307] As an example, the prediction residual may be given as coefficients in the DCT-II domain, that is, the primary transform 108 may be a separable two-dimensional transform 116 ( Fig. 9). In the case of primary+secondary transform, the primary transform is considered to be the transform defined by the prediction mode (here DCT-II). Therefore, the secondary transform is defined on a subset of the DCT-II coefficients. Here, this is defined on a subset of the lowest frequency coefficients with size min(8,W)×min(8,H), i.e., subgroup 112 represents the low frequency part of the primary transform 108.
[0308] In this version, all transform candidates for residual blocks of intra NN prediction have the same first transform level explicitly given by the intra mode. In addition to the 4 (e.g. between 2 and 6) trained intra NN transforms built on top of the given transform level, the explicitly given transform itself is also added to the candidate list as only the primary transform (here DCT-II for all intra NN modes), i.e. the optional transform set 98 can be further populated by the primary transform 108.
[0309] Another example of an encoder 10 and a decoder 20 for intra-frame NN transformation is shown in Fig.11 This example can be similar to the reference above. Figure 7 and Fig.10 The accompanying drawings are also used to describe the following examples.
[0310] The encoder 10 of this example may be configured to generate a spatial neighborhood 90 of the intra prediction block 80 by applying the spatial neighborhood 90 of the intra prediction block 80 to the neural network NN # The intra prediction block 80 is predicted from the domain 118 ( Fig.10 , Fig.11 ) to obtain a prediction 104 for the intra-prediction block 80. The encoder 10 may be configured to encode the prediction residual 100 associated with the prediction 104 for the intra-prediction block 80 within the residual block 84 using a selected transform 102 from the selectable transform set 98, and signaling the selected transform 102 in the data stream 14. In this example, the selectable transform set 98 is populated by at least one multi-level transform 106, which includes a primary transform 108 and a subgroup 112 of primary transform coefficients 114 applied to the primary transform 108 ( Figure 8 ) on the secondary transformation 110.
[0311] The corresponding decoder 20 may be configured to generate a spatial neighborhood 90 of the intra-prediction block 80 by applying the spatial neighborhood 90 to the neural network NN # The intra prediction block 80 is predicted from the domain 118 ( Fig.10 , Fig.11) to obtain a prediction 104 of the intra-prediction block 80. The decoder 20 may be configured to decode a prediction residual 100 associated with the prediction 104 of the intra-prediction block 80 in the residual block 84 from the data stream 14 in another domain 119 of a selected transform 102 in the optional transform set 98 by deriving a selected transform 102 from the data stream 14. The optional transform set 98 is populated by at least one multi-level transform 106, the at least one multi-level transform comprising a primary transform 108 and a subgroup 112 of primary transform coefficients 114 applied to the primary transform 108 ( Figure 8 ) on the secondary transformation 110.
[0312] The encoder 10 and the decoder 20 may be configured to populate the selectable transform set 98 with a plurality of multi-level transforms 106, each comprising a primary transform 108 and a secondary transform 110 applied to a subgroup 112 of primary transform coefficients 114 of the primary transform 108, the secondary transform 110 being inseparable.
[0313] The number of multi-level transforms may be between 2 and 6, inclusive. Additionally or alternatively, the primary transform 108 may be a separable two-dimensional transform. Additionally or alternatively, the subgroups 112 may represent a low frequency portion of the primary transform.
[0314] The encoder 10 and the decoder 20 may be configured to perform the determination of the selectable set 98 such that the selectable transform set 98 is further populated by the primary transforms.
[0315] 4.1.4 Intra-predicted residual blocks (DC, planar, angular)
[0316] For intra-predicted residual blocks, a dedicated set of transforms is defined and trained for the specific characteristics of the residual signal given the intra mode and block size that it is actually applied in. These transforms include only the primary transform and, for complexity reasons, also the primary+secondary transforms, where the primary transform has a particularly low complexity implementation.
[0317] Reference again Figure 7 , an encoder 10 (similar to the above reference Figure 1 The encoder described above) and the decoder 20 (similar to the above reference Figure 2The encoder 10 and the decoder 20 may be configured to use a selected intra-prediction mode from a set of intra-prediction modes 120 to predict an intra-prediction block 80 based on a spatial neighborhood 90 of the intra-prediction block 80, thereby obtaining a prediction 104 of the intra-prediction block 80. The encoder 10 and the decoder 20 may be further configured to determine, from a transform set 94, an optional transform set 98 for a residual block 84 covering the intra-prediction block 80 based on the selected intra-prediction mode and a block size 96 of the residual block 84. The encoder 10 may be further configured to encode a prediction residual 100 associated with the prediction 104 of the intra-prediction block 80 within the residual block 84 using a selected transform 102 from the set of optional transforms 98, and to signal the selected transform 102 in the data stream 14. The decoder 20 may in turn be configured to decode a prediction residual 100 associated with a prediction 104 of the intra-prediction block 80 within the residual block 84 from the data stream 14 in the domain of a selected transform 102 from the selectable transform set 98, while the selected transform 102 is derived from the data stream (14).
[0318] If a transform of the DCT / DST family defined by AMT is among the primary transforms, this transform can be combined with the transform defined by NSST to construct only the primary transform and the primary+secondary transform, respectively. In other words, the primary transform 108 may depend on the selected intra prediction mode and may be a separable two-dimensional transform 116. Therefore, and again referring to Figure 8 , the encoder 10 and the decoder 20 may be configured to perform the determination of the selectable set 98 such that, for a block size in a first predetermined set of predetermined block sizes, the selectable transform set 98 is populated by a number of one or more multi-level transforms 106, each multi-level transform comprising a primary transform 108 applied to the prediction residual 100 and a secondary transform 110 applied to a subgroup 112 of primary transform coefficients 114 of the primary transform 108, the secondary transform 110 being inseparable and depending on the selected intra prediction mode.
[0319] Additional transforms may have been trained, including fully connected transform levels up to size 64 and intra-mode dependent partitioning of transform level coefficients (especially primary transform coefficients) (e.g., subgroup 112 may depend on the selected intra prediction mode). The transforms among these that are suitable for the residual block depending on its decoded syntax elements have been found experimentally and are given by a lookup table together with the following construction rules for the candidate list.
[0320] Therefore, and again referring to Fig.10, the encoder 10 and the decoder 20 may be configured to perform determination of the selectable set 98 such that for block sizes in a second predetermined set of predetermined block sizes that are smaller than the first predetermined set of predetermined block sizes, the selectable transform set 98 is populated by a second number of one or more non-separable transforms 118 .
[0321] While constructing the multi-level transform with the complexity constraints requiring the subgroups to be rectangular, dense and low dimensional, there is still freedom in choosing the shape of the subgroups. Specifically, the shape can be square or have a major dimension in the vertical or horizontal direction. If any of those are preferred, the shape depends on the selected primary transform and the actual intra prediction mode. For example, if DCT-II is the primary transform and the residual block is predicted with one of the modes in the horizontal direction, the residual primary coefficients are expected to be concentrated on the left side of the block, so the subgroups can be chosen to be taller than wide. The opposite can be chosen for the vertical intra direction.
[0322] Luminance component
[0323] Version 1
[0324] To generate a transform candidate list for an intra-predicted luma residual block, a lookup table may be used. This table stores transform candidate lists for combinations of sizes in S3 = {64×64} + {4,,8,,16,32} × {4,8,,16,,32} + {4x12,,12x4} and intra-mode indices in I0 = {0,…,34}. As mentioned above, the encoder 10 and the decoder 20 may be configured to determine an optional transform set 98 for the residual block 84 covering the intra-predicted block 80 from the transform set 94 based on the selected intra-prediction mode and based on the block size 96 of the residual block 84.
[0325] The actual rule for obtaining the candidate list of residual blocks is as follows:
[0326] Given that the intra mode is specified by one of the intra directions in {DC, Planar}+33 DirectionModes}, this intra direction is used as the intra mode index into the LUT.
[0327] Given that the intra mode is specified by one of the intra directions in {DC, Planar} + 65 directional modes}, the intra mode index into the LUT is obtained by the following mapping:
[0328]
[0329] For residual blocks with size in S3, this size is used as input to the LUT, otherwise a second lookup table is used which defines a fixed set of transform candidates for each intra mode index in I0.
[0330] Thus, the encoder 10 and the decoder 20 may be configured such that the secondary transform 110 depends on the selected intra prediction mode in a manner including intra prediction mode aggregation, for example, quantization of an intra prediction mode index or quantization of an intra prediction direction of an angular intra prediction mode among the intra prediction mode set 120 .
[0331] Additionally or alternatively, the encoder 10 and the decoder 20 may be configured such that the primary transform 108 depends on the selected intra-prediction mode in a manner that includes intra-prediction mode aggregation, for example, quantization of an intra-prediction mode index or quantization of an intra-prediction direction of an angular intra-prediction mode among the intra-prediction mode set 120.
[0332] Version 2
[0333] The difference from version 1 is the bias for transform candidates for residual blocks whose size is not in S3. Here, size s' is used to address the lookup table. Where s' is the smallest size in S3, where each size is greater than or equal to the corresponding size of s.
[0334] Chroma component (no chroma binary tree)
[0335] Version 1
[0336] The transform candidates for the chroma residual block are obtained from the same transform set as the luma transform candidates. Here, each transform key can define two separate chroma transform candidates. If the prediction mode of the chroma component is equal to the luma mode, the first candidate is used. Otherwise, the second candidate is used.
[0337] Version 2
[0338] The transform candidates for the chroma residual block are obtained from the same transform set as the luma transform candidates. Here, each transform key may define two separate chroma transform candidates. If so, both transforms are added to the chroma candidate list.
[0339] 4.1.5 Adding / Replacing and Reordering Candidates Depending on Transform Decisions of Neighboring Transform Blocks
[0340] In addition to transform candidates derived from the properties of the transform block itself (such as prediction mode, block size, etc.), candidates can also be derived from neighboring transform blocks. Some examples shall be discussed below:
[0341] For example, Fig.12The picture 12 is shown partitioned into a current residual block 84 and spatially adjacent residual blocks 84′, 84″ that may be adjacent to the current residual block 84 or spatially separated from the current residual block 84. Assuming that the adjacent residual blocks 84′, 84″ are similar in various properties (such as residual energy and signal structure), this similarity can be exploited by including information of selected adjacent transforms into the deviation process of the candidates for the current block 84.
[0342] refer to Fig.12 , an encoder 10 (similar to the above reference Figure 1 The encoder described above) and the decoder 20 (similar to the above reference Figure 2 A decoder as described herein is used to encode / decode a picture 12 into / from a data stream 14 using block-based prediction and block-based residual coding.
[0343] The encoder 10 and the decoder 20 may be configured to determine 122 an optional transform list 98 for a current residual block 84 from a transform set 94 based on the reference transforms selected for the neighboring residual blocks 84′, 84″. The encoder 10 may be configured to encode a prediction residual 100 within the residual block 84 using one of the selected transforms 102 in the optional transform list 98 and to signal the selected transform 102 in the data stream 14. The decoder 20 may in turn be configured to decode the prediction residual 100 within the residual block 84 in the domain of the selected transform 102 in the optional transform list 98 by deriving the selected transform 102 in the optional transform list 98 from the data stream 14.
[0344] In general, if the neighboring transform block 84', 84" has the same size and prediction mode as the current block 84, then the selected transform of the neighboring transform block 84', 84" is also a candidate for the current block 84, provided that the list is constructed as described above. In this case, the current candidate list can be reordered so that the previously selected candidate is placed in one of the multiple first positions in the candidate list. Therefore, the encoder 10 and the decoder 20 can be configured to sort 122 the optional list 98 using the reference transform.
[0345] For example, encoder 10 and decoder 20 may be configured to select the best VLC by ranking the best VLC with a rank (“n”) associated with the most likely choice (e.g., the first position, or the position associated with the lowest index value of index 124 or with the index value associated with the shortest VLC). #”) to locate the reference transform or a transform corresponding to the reference transform (e.g., for level 1, signaled by the high transform index 124 and thus likely to be a very specialized transform, i.e., an analysis transform type for neighboring blocks of different sizes). Alternatively, the encoder 10 and decoder 20 may sort 122 the selectable list 98 by rank (“n”) associated with the second most likely choice. # The selectable list 98 is sorted 122 by locating the reference transform or a transform corresponding to the reference transform.
[0346] This may improve the signaling of candidates and also allow an efficient fast search mode for testing transform candidates at the encoder by skipping the testing of following candidates.
[0347] If transformation decisions for more than one neighboring block 84', 84" are available, the actual position of each candidate in the current list is conditioned on the frequency with which it was selected in the neighboring blocks 84', 84" by placing the more frequently selected candidates at the front of the list. It may be beneficial to keep the first candidate in the list unchanged and place the most frequently selected candidate in the second position, because the first transformation is usually the most likely, even when conditioned on neighboring decisions.
[0348] Thus, the encoder 10 and the decoder 20 may be configured to determine 122 a list of selectable transforms 98 for the current residual block 84 from the transform set 94 based on the reference transforms selected for the set of neighboring residual blocks 84 ′, 84 ″.
[0349] Furthermore, the encoder 10 and the decoder 20 may be configured to sort 122 the selectable list 98 by positioning the reference transforms relative to each other in an order corresponding to the frequency with which the reference transforms were selected for the set of neighboring residual blocks 84 ′, 84 ″.
[0350] When neighboring residual blocks 84′, 84″ differ in prediction mode or block size, the selected neighboring transform is not necessarily already a candidate for the current block 84. In this case, if the selected transform is already defined for the current block size, the selected transform may be added to the current transform list. Therefore, the encoder 10 and the decoder 20 may be configured to populate 122 the optional list 98 with reference transforms.
[0351] If a transform is actually added to the candidate list, it should be conditioned on the similarity of the selected prediction modes of the two blocks. For example, if two blocks are predicted using a directional mode and their directional indices differ by more than 2, and the selected transform of the neighboring block is a transform specifically trained for that mode, then this transform is unlikely to be a promising candidate for the current block. If on the other hand the two prediction modes are similar or a common transform (such as DCT or DST) has been selected, it may also be added to the current candidate list. If the two blocks differ only in their size and the selected transform is already known to be from an analytically defined transform (such as from the DCT / DST family), the corresponding transform for the current block size may be directly derived and added to the candidate list.
[0352] Thus, the encoder 10 and the decoder 20 may be configured to perform padding provided that one or more specific characteristics associated with the neighboring blocks 84′, 84″ and the current residual block 84 are sufficiently similar, and / or the reference transform is a separable spectral decomposition transform. The one or more characteristics may, for example, include one or more of the intra-prediction modes.
[0353] Additionally or alternatively, the reference transform may be an analytically definable separable spectral decomposition transform (such as DCT, DST, FFT, etc.), and the encoder 10 and decoder 20 may be configured to populate 122 the optional list 98 with another transform derived by adapting the reference transform to the block size 96 of the current residual block 84.
[0354] Even when the selected transform of the neighboring block is not a candidate for the current list, it is known that the transform can help predict the best candidate for the current list, and thus the ordering of the candidates can be conditioned on the transform. For example, if the primary transform of the neighboring block is from the DCT / DST family, all candidates with the corresponding primary transform of the current size can be placed at the front of the candidate list, as mentioned above.
[0355] Furthermore, assuming that the energies of neighboring blocks are correlated, when the neighboring residual block has a large number of significant coefficients, the number of significant coefficients of the current block will likely be high. The same correlation can be assumed for the opposite case of very few coefficients.
[0356] Thus, the encoder 10 and the decoder 20 may be configured to order 122 the selectable list 98 by ranking transforms in the set of selectable transforms 98 according to similarity to the reference transform in terms of one or more specific characteristics, and / or determine the selectable list 98 in a manner that excludes transforms from the selectable list 98 that exceed a specific dissimilarity to the reference transform in terms of one or more specific characteristics. For example, the one or more characteristics may include one or more of the primary transforms (e.g., requiring equality of the primary transforms).
[0357] This information can be used to reorder the candidates or even to remove unlikely transforms from the list. For example, if a neighboring residual block 84′, 84″ has already much less than k significant coefficients, there is a transform candidate having a secondary transform defined on a subgroup of k coefficients, this candidate can be removed or placed in the last position. Furthermore, if only very few coefficients are expected to be significant, it is less likely to benefit from having transform candidates that share the same primary transform and differ only in their secondary transforms. If such transforms are among the candidates, the list can be reduced in this case by keeping only the first of those transforms or even by replacing these transforms with the corresponding primary-only transforms.
[0358] According to an example, the encoder 10 may be configured to determine 122 a list of optional transforms 98 for the current residual block from a set of transforms based on the reference transform selected for the neighboring residual blocks in a manner that depends on the number of significant transform coefficients or the sum of the significant transform coefficients in one or more neighboring residual blocks 84′, 84″. If the number or the sum is greater than a certain threshold, the list of optional transforms 98 for the current residual block is filled with at least one multi-level transform, the at least one multi-level transform comprising a primary transform applied to the prediction residual 100 of the current residual block and a secondary transform applied to a subgroup of the primary transform coefficients of the primary transform. If the number or the sum is less than a certain threshold, in addition to or instead of the at least one multi-level transform, the list of optional transforms for the current residual block is filled with a modification of the at least one multi-level transform, wherein the primary transform coefficients outside the subgroup are set to zero. In either case, the encoder 10 may be configured to encode the prediction residual within the residual block using one of the selected transforms in the list of optional transforms and to signal the selected transform in the data stream.
[0359] The corresponding encoder 20 may be configured to determine 122 a list of optional transforms 98 for the current residual block from the set of transforms based on the reference transforms selected for the neighboring residual blocks 84′, 84″ in a manner that depends on the number of significant transform coefficients in one or more neighboring residual blocks 84′, 84″ or on the sum of the significant transform coefficients. If the number or the sum is greater than a certain threshold, the list of optional transforms 98 for the current residual block is filled with at least one multi-level transform, the at least one multi-level transform comprising a primary transform applied to the prediction residual 100 of the current residual block and a secondary transform applied to a subgroup of primary transform coefficients of the primary transform. If the number or the sum is less than a certain threshold, in addition to or instead of the at least one multi-level transform, the list of optional transforms for the current residual block is filled with a modification of the at least one multi-level transform, wherein the primary transform coefficients outside the subgroup are set to zero. In either case, the decoder 20 may be configured to decode the prediction residual within the residual block in the domain of a selected transform in the list of optional transforms by deriving the one selected transform from the data stream.
[0360] Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to sort 122 the selectable list 98 by ranking transforms in the selectable transform set 98 according to one or more specific characteristics of the neighboring block 84' and / or determine the selectable transform list 98 in a manner that excludes transforms from the selectable list 98 according to one or more specific characteristics of the neighboring block 84'. For example, the one or more characteristics may include one or more of a certain number of significant transform coefficients.
[0361] Additionally or alternatively, the one or more characteristics may include one or more of a certain number of significant transform coefficients, wherein if the number of significant transform coefficients is below a particular threshold (e.g., depending on the number of coefficients in subgroup 112), it is less likely that the transform will be ranked or excluded for a subgroup 112 of a multi-stage type having primary transform coefficients that have undergone a secondary transform.
[0362] 4.1.6 Providing Transform Candidates Suitable for Quantization Parameters
[0363] The transform can be optimized for different reconstruction points of the quantization level (and thus for different quantization parameters (QP)). If a QP adaptive transform set is defined for the prediction mode, the candidate list is constructed by one of the following rules:
[0364] If a transform is defined for the current QP, this transform is added to the candidate list.
[0365] Transforms defined for a QP closest to the current QP are added to the candidate list.
[0366] Two transforms are added to the candidate list. First is the transform defined for the next QP smaller than the current QP, and second is the transform defined for the next QP larger than the current QP.
[0367] Therefore, reference Figure 7 , the encoder 10 and the decoder 20 may be configured to check whether the quantization parameter of the residual block 84 is included in the set of one or more predetermined quantization parameters. If the answer is "yes", the encoder 10 and the decoder 20 may perform a determination of the optional set 98 in order to further fill the optional transform set 98 with one or more predetermined transform sets associated with the set of one or more predetermined quantization parameters.
[0368] Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to check whether the quantization parameter of the intra-predicted block is included in the set of one or more predetermined quantization parameters. If the answer is "yes", the encoder 10 and the decoder 20 may perform a determination of the optional set 98 to further fill the optional transform set 98 with one or more predetermined transform sets associated with the set of one or more predetermined quantization parameters.
[0369] Further additionally or alternatively, the encoder 10 and the decoder 20 may be configured to check whether the quantization parameter of the residual block 84 is included in the set of one or more predetermined quantization parameters. If the answer is "yes", the encoder 10 and the decoder 20 may perform a determination of the optional set 98 to further fill the optional transform set 98 with one or more predetermined transform sets associated with the set of one or more predetermined quantization parameters.
[0370] Still additionally or alternatively, the encoder 10 and the decoder 20 may be configured to check whether the quantization parameter of the current block is included in the set of one or more predetermined quantization parameters. If the answer is "yes", the encoder 10 and the decoder 20 may perform a determination of the optional set 98 to further fill the optional transform set 98 with one or more predetermined transform sets associated with the set of one or more predetermined quantization parameters.
[0371] Add / replace candidates with transforms that have size reduction
[0372] Depending on the transform block size and the quantization parameter (QP), it may be beneficial to include transform candidates that explicitly reduce the size of the prediction residual and thereby allow efficient coding of the coefficients and implementation with reduced complexity. By definition, these transforms only produce error-free representations for a specific subclass of the residual signal. On the other hand, this is similar to coefficient quantization to zero and may allow efficient coding of non-significant coefficient positions.
[0373] One of the following rules applies:
[0374] If the candidate list contains at least one primary+secondary transform and the current QP is greater than a threshold Tqp, the primary+secondary transforms are replaced by corresponding transforms with size reduction properties.
[0375] These transforms are constructed from the corresponding initial candidates in the list by forcing to zero those coefficients that do not belong to a subgroup of coefficients that are further transformed by a secondary transform.
[0376] If the candidate list contains at least one primary+secondary transform and the current QP is greater than the threshold Tqp, a transform with reduced size is added to the list for each primary+secondary transform. These transforms are constructed from the initial candidates in the list by forcing those coefficients that do not belong to the subgroup of coefficients that are further transformed by the secondary transform to be zero.
[0377] If the candidate list contains at least one primary+secondary transform and the sum of the significant coefficients of the adjacent transform blocks is less than the threshold T, the primary+secondary transform is replaced by the corresponding transform with size reduction properties. These transforms are constructed from the corresponding initial candidates in the list by forcing those coefficients that do not belong to the subgroup of coefficients further transformed by the secondary transform to be zero.
[0378] If the candidate list contains at least one primary+secondary transform and the sum of significant coefficients of neighboring transform blocks is less than a threshold T, then for each primary+secondary transform a transform with reduced size is added to the list. These transforms are constructed from the initial candidates in the list by forcing to zero those coefficients that do not belong to a subgroup of coefficients that are further transformed by the secondary transform.
[0379] According to an example, the encoder 10 may be configured to encode the picture 12 into the data stream 14 using block-based prediction and block-based residual coding, the encoder supporting a transform set 94 for the block-based residual coding. The encoder 10 may be configured to determine an optional transform list 98 for the current residual block 84 from the transform set in a manner dependent on a quantization parameter of the current block, such that if the quantization parameter corresponds to a quantization finer than a certain threshold, the optional transform list 98 for the current residual block is filled with at least one multi-level transform 106, the at least one multi-level transform comprising a primary transform 108 applied to the prediction residual 100 within the current residual block and a secondary transform 110 applied to a subgroup 112 of primary transform coefficients 114 of the primary transform. If the quantization parameter corresponds to a coarser quantization than a certain threshold, then in addition to or instead of the at least one multi-level transform 106, the optional transform list for the current residual block is filled with a modification of the at least one multi-level transform, wherein the primary transform coefficients 114 beyond the subgroup 112 are set to zero. In either case, the encoder 10 can be configured to encode the prediction residual 100 within the residual block 84 using one of the selected transforms 102 in the optional transform list 98 and to signal the selected transform in the data stream 14.
[0380] Furthermore, a corresponding decoder 20 may be provided for decoding a picture 12 from a data stream 14 using block-based prediction and block-based residual decoding, the decoder supporting a transform set 94 for block-based residual decoding. The decoder 20 may be configured to determine an optional transform list 98 for a current residual block 84 from the transform set in a manner dependent on a quantization parameter of the current block, such that if the quantization parameter corresponds to a quantization finer than a certain threshold, the optional transform list 98 for the current residual block is populated with at least one multi-level transform 106, the at least one multi-level transform comprising a primary transform 108 applied to a prediction residual 100 within the current residual block and a secondary transform 110 applied to a subgroup 112 of primary transform coefficients 114 of the primary transform. If the quantization parameter corresponds to a quantization coarser than a certain threshold, then in addition to or instead of the at least one multi-level transform 106, the selectable transform list for the current residual block is filled with a modification of the at least one multi-level transform, wherein the primary transform coefficients 114 outside the subgroup 112 are set to zero. In either case, the decoder 20 may be configured to decode the prediction residual 100 within the residual block 84 in the domain of a selected transform in the selectable transform list 98 by deriving the selected transform from the data stream 14.
[0381] 4.2 Reduction of Transformation Candidate List
[0382] The list of transform candidates may be subsequently reduced during the decoding process of the residual coefficients if the newly obtained information does not meet the constraints of a particular transform in the list. This helps to reduce the coding cost of the selected candidates and also allows the following syntax elements to be adjusted according to the specific properties of the remaining transform candidates and thereby improves coding efficiency. It may be beneficial to increase the number of syntax elements affected by the reduced candidate list by explicitly encoding information about the previously selected transform.
[0383] refer to Fig.14 , an encoder 10 and a decoder 20 may be provided for encoding / decoding a picture 12 into / from a data stream 14 using block-based prediction and block-based residual coding. The encoder 10 and the decoder 20 may support a transform set 94 for block-based residual coding in a manner similar to that explained above. However, according to this example, the encoder 10 and the decoder 20 may be configured to determine 130 an optional transform list 98 for a current residual block from the transform set 94. The encoder 10 may be configured to encode transform coefficient data 126 into a data stream 14 representing a prediction residual 100 within a residual block 84 using one of the selected transforms 102 in the optional transform list 98. The encoder 10 may further be configured to signal 128 the selected transform 102 in the data stream 14, and / or to perform the determination 130 of the optional list 98 in a manner dependent on the transform coefficient data 126 or on a portion of the transform coefficient data 126. The decoder 20 may in turn be configured to use a selected transform 102 from the selectable transform list 98 to decode transform coefficient data 126 from the data stream 14, which represents the prediction residual 100 within the residual block 84. The decoder 20 may further be configured to derive 128 the selected transform 102 from the data stream 14 and / or to perform a determination 130 of the selectable list 98 in a manner that depends on the transform coefficient data 126 or on a portion of the transform coefficient data 126.
[0384] For example, the encoder 10 and the decoder 20 may be configured to determine 130 the selectable transform list 98 by filling the selectable transform list 98 with a number of transforms from the transform set 94 (whose number depends on the transform coefficient data 126 or a part of the transform coefficient data), and may be configured to perform signaling 128 of the selected transform 102 in the data stream 14 in such a way that the lower the number, the lower the code rate spent for signaling the selected transform 102 in the data stream 14.
[0385] Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to determine 130 the selectable transform list 98 by ordering the selectable transform list 98 according to the transform coefficient data 126 or a portion of the transform coefficient data 126, and may be configured to perform signaling 128 the selected transform 102 in the data stream 14 using a variable length code, the codewords of the variable length code being assigned to the transforms in the selectable transform list 98 according to an order of the transforms in the selectable transform list 98.
[0386] Fig.15 Other examples of encoders 10 and decoders 20 for encoding / decoding pictures 12 into / from a data stream 14 using block-based prediction and block-based residual coding are shown, both of which support a transform set for block-based residual coding. The encoder 10 and decoder 20 of this example may be configured to determine 130 an optional transform list 98 for a current residual block from the transform set. The encoder 10 may be configured to signal 128 the selected transform in the data stream 14 in a manner that depends on the selected transform 102 or the optional transform list 98 and may be configured to encode 140 a transform coefficient using one of the selected transforms in the optional transform list, the transform coefficient representing a prediction residual within the residual block. The decoder 20 may in turn be configured to derive 128 the selected transform from the data stream 14, decode 140 a transform coefficient from the data stream 14 using one of the selected transforms in the optional transform list, the transform coefficient representing a prediction residual within the residual block, in a manner that depends on the selected transform 102 or on the optional transform list 98.
[0387] For example, Fig.13 A block 114 is shown having a plurality of values of transform coefficients 134 of a selected transform, which values of transform coefficients 134 of the selected transform may be traversed in a predetermined scan order 136. Fig.13 An exemplary significant (ie, non-zero valued) transform coefficient position 132 is marked with an "x" in FIG. 1 , which may be the least significant transform coefficient position in this example.
[0388] Possible constraints on the transform candidate list may include requiring at least a certain number of significant (i.e., non-zero-valued) coefficients 134 in order to compensate for the additional signaling cost of the transform candidates. While this constraint may be satisfied by reducing the candidate list after the exact number of significant coefficients 134 has been obtained, it is also possible to remove the transform candidate indicated by the position of the last significant coefficient 132. Since the last position is usually pre-coded, this increases the number of syntax elements that are potentially affected by the reduced list.
[0389] According to the example (ref. Fig.13 and Fig.14), the encoder 10 and the decoder 20 may be configured such that the transform coefficient data 126 includes an indication of a significant transform coefficient position 132 of a selected transform 102 and values of transform coefficients 134 of the selected transform, the values being traversed forward from the significant transform coefficient positions 132 in a predetermined scan order 136 that sequentially traverses the coefficient positions of the selected transform, wherein the determination 130 of the optional list 98 depends on the indication, i.e., the indication is “part” of the transform coefficient data 126.
[0390] According to another example, the encoder 10 and the decoder 20 may be configured to count the number of significant transform coefficients 134 of the selected transform 102 , wherein the determination 130 of the selectable list 98 depends on the count.
[0391] For multi-level transform candidates that apply another transform level to only a specific subset of their primary transform coefficients, constraints may be defined based on the subset. This includes that at least a certain number of significant positions must fall within this subset. This constraint may have been violated by a maximum number of possible significant positions, which is known after decoding the last significant position or once the exact number of significant positions is known. Once the constraint is violated, the corresponding transform candidate is removed from the list and the following decoding process may benefit from a reduced set of candidate transforms.
[0392] Thus, the encoder 10 and the decoder 20 may be configured to determine the subgroup 138 ( Fig.13 ) exceeds a certain threshold, and a determination 130 of the selectable list 98 may be performed as follows depending on the count (that is, depending on the number of significant transform coefficients 134):
[0393] 1) If the number is greater than a certain threshold, the optional transform list 98 of the current residual block 84 is filled with at least one multi-level transform 106, which includes a primary transform applied to the prediction residual 100 of the current residual block and a secondary transform applied to the subgroup 112 of the primary transform coefficients 114 of the primary transform 106 to obtain a subgroup 138 of transform coefficients of the selected transform 102.
[0394] 2) If the number is less than a certain threshold, the optional transform list of the current residual block is not filled with any multi-level transform 106, which includes a primary transform applied to the prediction residual 100 of the current residual block and a secondary transform applied to a subgroup of the primary transform coefficients of the primary transform.
[0395] Furthermore, the reduction of the chroma candidate lists may depend on the actual transform decision for the luma component. Different candidate lists (e.g. luma and chroma) may also share one transform index, in which case the second list is reduced to the selected transform given by the transform index that has been decoded for the first list.
[0396] Example embodiment:
[0397] In the following, some exemplary embodiments are given in order to concretize the above general description:
[0398] If the number of significant coefficients is less than a threshold T0 (eg, 3), the transform candidate list is reduced to its first two entries.
[0399] If the number of significant coefficients is less than a threshold T1 (eg, 3), the transform candidate list is reduced to its first entry.
[0400] If luma and chroma share the same coding structure and the total number of significant coefficients (including luma and chroma components) (of all TUs in the CU) is less than the threshold T0, the candidate lists of all TUs in the CU are reduced to their first entries.
[0401] If the total number of significant coefficients (including luminance and chrominance components) (of all TUs in the CU) is less than the threshold T0, the candidate list of all TUs in the CU is reduced to its first two entries. Otherwise, if the total number of significant luminance coefficients of a single TU is less than the threshold T1, the candidate list is reduced to its first 5 entries.
[0402] Given the number of significant coefficients and a table mapping thresholds to the number of candidates to be maintained, the candidate list is reduced to its first entry.
[0403] Given the number of significant coefficients and a table mapping thresholds and prediction modes to the number of candidates to be maintained, the candidate list is reduced to its first entry.
[0404] Given the number of significant coefficients and the table mapping thresholds and QPs to the number of candidates to be maintained, the candidate list is reduced to its first entry.
[0405] If luma and chroma share the same coding structure and the residual signal is not encoded for the luma component, the candidate list of aligned chroma components is reduced to its first entry.
[0406] If luma and chroma share the same coding structure and the sum of significant coefficients of luma and chroma components of a transform unit is less than a threshold T3 (eg, 3), the candidate lists of all TUs in the CU are reduced to their first candidates.
[0407] If luma and chroma share the same coding structure and the luma transform has been decoded, the chroma transform candidate is kept only if it is of the same category as the luma transform.
[0408] If luma and chroma share the same coding structure and the luma transform is already decoded, then the chroma transform candidate is kept only if it is of the same category as the luma transform or if it is the first in the list.
[0409] Given the positions of the significant coefficients of the transform block, a check is made for each multi-level transform candidate if the input to the secondary transform includes at least K significant coefficients. Otherwise, the transform is removed from the candidate list.
[0410] Given the position of the last significant position, count how many coefficients are likely to be significant. Given a table mapping a threshold to that number of candidates to be maintained, reduce the candidate list to its first entry.
[0411] For each multi-level transform candidate, check whether the input to the secondary transform includes at least K positions that are likely to be valid, given the position of the last significant position of the transform block and the scan order. Otherwise, remove the transform from the candidate list.
[0412] Therefore, according to an embodiment, an encoder and a corresponding decoder are proposed, both of which are configured to encode the transform coefficients (134) of the residual block (84) by traversing a predetermined scanning order (136), and to determine the last valid transform coefficient (132) according to the scanning order. The encoder and the decoder are also configured to perform a determination (130) based on the position of the determined last encoded valid transform coefficient (132), so that
[0413] If the determined position of the last coded significant transform coefficient (132) indicates a first number of available significant transform coefficients ("first number"=enough significant coefficients available to perform the multi-level transform),
[0414] populating a selectable transform list (98) for the current residual block (84) with at least one multi-level transform (106) comprising a primary transform applied to a prediction residual (100) of the current residual block and a secondary transform applied to a subset (112) of primary transform coefficients (114) of the primary transform (106) to obtain a subset (138) of transform coefficients of a selected transform (102), and
[0415] If the determined position of the last coded significant transform coefficient (132) indicates that a second number of significant transform coefficients is available ("second number"=not enough significant coefficients are available to perform the multi-level transform),
[0416] An optional transform list (98) for a current residual block (84) is populated without using any multi-level transform (106) including a primary transform applied to a prediction residual (100) of the current residual block (84) and a secondary transform applied to a subset (112) of primary transform coefficients of the primary transform.
[0417] Given the position of the last significant position of the transform block and the scanning order, the number of input coefficients that are potentially significant is counted for each secondary transform.
[0418] The transform with the largest value is kept, and all other secondary transforms are removed.
[0419] All embodiments may be conditional on prediction mode and QP.
[0420] 4.3 Signaling
[0421] As mentioned above, reducing the transform candidate list by exploiting already decoded information about the transform block coefficients reduces the cost required for signaling the actual selected transform. On the other hand, this dependency can also be exploited by adjusting the coefficient decoding process according to the properties of the selected transform. Both methods require a specific coding order of syntax elements and can be applied jointly in an interleaved manner. As a special case, when all coefficients are already known, the transform index into the candidate list can be fully signaled at the beginning or at the end of the encoding process of the transform block. In the latter case, information about all coefficients can be used to reduce the candidate list, while in the former case, the candidates cannot be reduced in advance, but the decoding of each coefficient can benefit from the full knowledge about the used transform.
[0422] While it is obvious that reducing the candidate list also reduces the actual signaling cost for the selected candidates, conditional coding of coefficients on the selected transform is less straightforward and depends on the actual selected transform, the candidate list and the residual signal itself, if it can benefit at a reasonable complexity.
[0423] If the selected candidate is a transform with size reduction, there is no need to signal the significance information for the entire subgroup of coefficients at all. This also allows efficient signaling of the last position over a smaller set of remaining positions, or even to omit the signaling altogether by setting the possible last valid position to the last position given by the transform. In this case, a validity flag may be encoded for each possible valid position as defined by the transform, whereas the idea of first signaling a validity group flag for the entire group of positions may also be applied here. In order to exploit this dependency, it may be beneficial to check whether a transform with size reduction is among the candidates before encoding the coefficients, and if so, first signal whether those candidates were selected and, if necessary, which of those candidates were selected.
[0424] As an example, and again referring to Fig.13 and Fig.15 , the selectable transform list may include transforms with different numbers of transform coefficients 134. The encoder 10 and the decoder 20 may be configured to encode / decode the different numbers of transform coefficients 134, wherein the step of encoding / decoding the transform coefficients 134 includes encoding an indication of the significant transform coefficient positions 132 of the selected transform 102 and the values of the transform coefficients 134 of the selected transform, the values traversing from the significant transform coefficient positions forward in a predetermined scanning order 136 that sequentially traverses the coefficient positions of the selected transform. The encoder 10 and the decoder 20 of this example may be configured to encode / decode the transform coefficients 134 in such a way that the lower the number of transform coefficients 134 of the selected transform, the lower the code rate spent in the data stream 14 for encoding the indication.
[0425] As another example, the encoder 10 and the decoder 20 may be configured to selectively encode / decode the transform coefficients 134 depending on whether a transform with or without size reduction can be used (i.e., whether the selectable transform list includes a transform of a first number of transform coefficients 134 (e.g., a transform with size reduction) and a transform of a second number of transform coefficients 134 greater than the first number).
[0426] In a case where the number of transform coefficients 134 of the selected transform is a second number, the encoder 10 and the decoder 20 may be configured to encode / decode an indication of a significant transform coefficient position 132 of the selected transform and a value of the transform coefficient 134 of the selected transform, which is traversed forward from the significant transform coefficient position 132 in a predetermined scanning order 136 that sequentially traverses the coefficient positions of the selected transform.
[0427] In the case where the number of transform coefficients 134 of the selected transform is a first number, the encoder 10 and the decoder 20 may be configured to encode / decode values of all of the first number of transform coefficients 134 of the selected transform.
[0428] Another example where knowledge of the selected transform can be used to more efficiently encode coefficients is the case where more than one transform candidate is defined by the primary+secondary transforms, but the subgroups of locations to which the secondary transforms are applied are different. In this case, it may be beneficial to first encode the selected transform, or at least the partitioning used. With this knowledge, a dedicated set of context models can be used to encode those coefficients at locations that only undergo the primary transform, and those coefficients transformed by the secondary transform.
[0429] This knowledge can also be used to encode the last valid position as follows:
[0430] First, a flag is decoded indicating whether the last significant position is within the positions input to the secondary transform, then the exact position is encoded as a difference from the last possible significant position as defined by the transform or from the position of the first coefficient of a particular subgroup.
[0431] In more general terms, and still with reference to Fig.13 and Fig.15 The optional transform list 134 may include at least one multi-level transform, each multi-level transform including a primary transform applied to the current residual block and a secondary transform applied to a subgroup 138 of the primary transform coefficients 134 of the primary transform coefficients 134, wherein the subgroup 138 is different from different multi-level transforms in the at least one multi-level transform.
[0432] According to a first alternative, the encoder 10 and the decoder 20 may be configured to encode / decode transform coefficients 134 by encoding / decoding an indication of significant transform coefficient positions 132 of a selected transform and values of the transform coefficients 134 of the selected transform, the values traversing forward from the significant transform coefficient positions 132 in a predetermined scanning order 136 that sequentially traverses the coefficient positions of the selected transform. The indication may depend on whether the selected transform is a multi-level transform. If the selected transform is a multi-level transform, the indication includes a flag as to whether the significant transform coefficient position 132 is within a subgroup 138 of the transform coefficient 134, and if the transform coefficient position 132 is within the subgroup 138 of the transform coefficient 134, the indication indicates the significant transform coefficient position 132 relative to a position that was last traversed among all the transform coefficients 134 of the selected transform in a predetermined scanning order 136, and if the transform coefficient position 132 is not within the subgroup 138 of the transform coefficient 134, the indication indicates the significant transform coefficient position 132 relative to a position that was last traversed among all the transform coefficients 134 that are not within the subgroup 138 in the predetermined scanning order 136, wherein all the transform coefficients 134 within the subgroup 138 are traversed in the predetermined scanning order 136 after all the transform coefficients 134 that are not within the subgroup 138 have been traversed.
[0433] According to a second alternative, the encoder 10 and the decoder 20 may be configured to encode / decode the transform coefficient 134 if the selected transform is of a multi-level type by encoding the value of the transform coefficient 134 of the selected transform using entropy coding with a probability estimate that depends on whether the transform coefficient 134 is within a subgroup 138 of the transform coefficient 134 of the selected transform.
[0434] According to a third alternative, the encoder 10 and the decoder 20 may be configured to encode / decode the transform coefficient 134, if the selected transform is of a multi-level type, by encoding the value of the transform coefficient 134 of the selected transform using entropy coding using a probability estimate, the probability estimate being dependent on one or more adjacent transform coefficients 134, in a manner that depends on whether the transform coefficient 134 is within a subgroup 138 of the transform coefficients 134 of the selected transform.
[0435] It is assumed that the index into the transform candidate list is encoded so that the signaling cost of a candidate depends on its position in the list, where the cost increases according to the position. This can be done by encoding the transform index with a truncated unary code.
[0436] In addition, a transform candidate list is constructed in such a way that the candidates are classified according to their specialization. For example, the first transform is the most common separable transform [DCT-II, DCT-II] followed by [DST-VII, DST-VII] and then followed by a transform that is trained specifically for a specific intra-mode of the current residual block. The list is filled up with additional transforms, each of which is dedicated to a specific property of the residual signal that can appear in this intra-mode. This specialization can be trained by including a clustering method (such as fitting a Gaussian mixture model) to the data examples and training a separating transform for each obtained cluster. Under the assumption of such a classified candidate list, knowing the selected transform provides a deep understanding of the characteristics of the actual residual signal and thus the expected coefficient distribution. In particular, for smaller transform indices, low signal energy is expected due to higher coding costs, and the transform index cannot be adjusted by coding gain by using more specialized transforms.
[0437] This can be exploited by deriving a context model for the coding coefficients depending on the transform index itself. When Golomb-Rice codes are used for the coding coefficient levels, the actual Rice parameters can also be derived from the selected transform index.
[0438] According to an example, the encoder 10 may be configured to use an index to signal a selected transform with a new number, and may be configured to encode the transform coefficient 134 by encoding the value of the transform coefficient 134 of the selected transform using binarization and binary entropy coding, wherein the probability estimate for the binary entropy coding depends on the index, and / or wherein the binarization depends on the index.
[0439] The corresponding decoder 20 may be configured to derive the selected transform using the index, decode the transform coefficients 134 by decoding the values of the transform coefficients 134 of the selected transform using binarization and binary entropy coding, wherein the probability estimate for the binary entropy coding depends on the index, and / or wherein the binarization depends on the index.
[0440] The index may be a variable length coding (VLC) index.
[0441] A more complex example of using information from the selected transform for coefficient encoding assumes that there is a residual dependency of the transform coefficients that can be modeled by the correlation of the variances of the transform coefficients. Take two coefficients and assume their means are zero, the correlation of the variances only assumes that knowing that one of the coefficients is larger, the probability model for selecting the other has a higher variance, and thus the probability that the second coefficient is valid also increases. This assumed variance correlation model can be included in the process of training the transform so that given a transform, a specific correlation model is assumed at the decoder. The actual correlation model can also depend on the actual coefficient position or a subgroup of the multi-level transform. A specific model defines which coefficients are assumed to have variance correlation and how strong this correlation is. This can be used to make the context model selection suitable for a specific coefficient position on the already decoded coefficients. More precisely, when decoding a coefficient at a specific position, check which correlation model has been defined for that position by the selected transform. If the already decoded coefficient is among the energy-correlated positions given by the model, the levels of those coefficients are divided into a given threshold also defined by the model, and a specific set of context models is derived for decoding the level of the validity flag and the current coefficient.
[0442] The above correlation may be derived from neighboring transform coefficients. As an example, the encoder 10 and decoder 20 may be configured to encode / decode transform coefficients 134 by encoding the values of the transform coefficients 134 of the selected transform using entropy coding, wherein the entropy coding depends on one or more neighboring transform coefficients 134 in a manner that depends on the selected transform.
[0443] As another example, the encoder 10 and the decoder 20 may be configured to encode / decode the transform coefficient 134 by encoding / decoding the value of the transform coefficient 134 of the selected transform using entropy coding, wherein the entropy coding is performed by: selecting a local template of one or neighboring transform coefficients 134 in a manner that depends on the position of the transform coefficient in the selected transform, further determining the selected context for the transform coefficient 134 using a mapping of a domain of possible values of one or neighboring transform coefficients 134 to one or more context sets for the transform coefficient 134, and entropy encoding the value of the transform coefficient 134 using a probability estimate associated with the selected context, wherein at least one of the selection and mapping of the local template depends on the selected transform.
[0444] As a specific example, assume that it is already known at the decoder which primary+secondary transforms are used and which positions undergo the secondary transform. Furthermore, assume two different variance correlation models, one for only the primary transform coefficients and one for the remaining coefficient positions. Four context model sets and three thresholds are given for both models. When decoding a coefficient, first check which of the two context model groups is applicable for the current position. Next, take the average of the last 4 already decoded coefficient levels and compare with the threshold. The result uniquely defines the context model set used to decode the current coefficient.
[0445] It can be seen from the examples provided that different information about the selected transform can benefit specific parts of the decoding process of the coefficients. This motivates splitting the information required to identify the selected transform among the candidates into specific transform attributes and motivates signaling them interleaved with the coefficient encoding respectively. Thus, already decoded information about the transform can be used to decode information about the coefficients, while newly obtained information about the coefficients can be used to reduce the list of transform candidates, so that less information needs to be signaled to identify the selected candidate.
[0446] Which transform attributes should be encoded in which order also depends on the available candidates in the list and the information obtained about the residual signal, and can be selected adaptively. For example, the transform index is pre-encoded only when a transform with size reduction is among the candidates. In addition, once at least one coordinate of the last position has been decoded, the selected transform can be further decoded as a condition on the coordinate. It is known that one coordinate gives some evidence of the maximum energy expected in the residual signal and is given by, for example, counting the maximum number of possible valid positions. Only when this expected value is above a threshold, the transform index is decoded next, and the second coordinate can be decoded as a condition on the structure of the selected transform.
[0447] According to this example, the encoder 10 and the decoder 20 may be configured to perform signaling of the selected transform in the data stream 14 in such a way that the relative positioning of the signaling signaling the selected transform with respect to the transform coefficient data and / or the decomposition of the signaling into syntax elements depends on the list of selectable transforms.
[0448] Otherwise, once the actual number of significant positions is known and the constraint on minimum coefficients is violated, the decoding of the transform is postponed or possibly even skipped.
[0449] In either case, whether the transform index is signaled at the beginning, interleaved or at the end of a transform block, it may be beneficial to split the information about the selected transform into its attributes and signal the attributes separately when dependencies of these attributes exist between neighboring transform blocks. This dependency may then be exploited by using a dedicated set of context models for each transform attribute. Thus, the selected context model may also depend on the selected transform of the neighboring residual block that has already been decoded. According to this aspect, and with reference to Fig.13 and Fig.14 , an encoder 10 and a decoder 20 are provided for encoding / decoding a picture 12 into / from a data stream 14 using block-based prediction and block-based residual coding, the encoder 10 and the decoder 20 supporting a transform set 94 for block-based residual coding. The encoder 10 and the decoder 20 may be configured to determine 122 a selectable transform list 98 for a current residual block 84 from the transform set 94, and may be configured to encode / decode a prediction residual within the residual block using a selected transform in the selectable transform list. The encoder 10 may be configured to signal 128 the selected transform in the data stream 14 using a transform indicator 124, and the decoder 20 may be configured to derive the selected transform from the data stream 14 by using the transform indicator 124. The transform indicator 124 may be signaled in the data stream 14 using a code having one or more digits, wherein each digit in the set of one or more digits is uniquely associated with a corresponding transform attribute. The code may include segments of the transform indicator 124 that have been binary arithmetic encoded or syntax elements that constitute the transform indicator 124 and that may be parsed from the data stream 14 .
[0450] In general, knowing only the indices of selected transform candidates of neighboring blocks does not provide insight into the selected transform for the current block. An exception is when the candidates are ordered so that a high index indicates high specialization or high residual energy. Furthermore, if the actual selected neighboring transform is highly specialized for its prediction mode, the comparison of the current candidate only makes sense if the neighboring transforms share the same mode. On the other hand, knowing that a major transform, e.g. from the DCT / DST family, has been selected in the neighborhood, this information can be exploited by first signaling whether the current transform is from the same family and thereby reducing the candidate list.
[0451] According to an example, each transform property may be one of whether the selected transform is a multi-level transform or whether the selected transform is a transform having fewer transform coefficients than a predetermined number of transform coefficients.
[0452] Another benefit of splitting the encoding of the selected candidates and explicitly reducing the candidate list step by step by signaling the transform properties is that it is possible to simplify the exploitation of dependencies between different candidates in the list. For example, the binarization of the transform index and the context model bias can depend on the transform candidates in the list as follows. Assuming that one of the candidates (preferably the first candidate) is associated with the highest probability, a flag indicating whether this transform is used is encoded first, otherwise the flag is removed from the list. If the remaining transform candidates are of different transform classes, the transform class can be decoded first. This allows the transform class to depend on the context model bias signaled for the remaining transform indices.
[0453] Assume that the (remaining) candidates in the list are ordered with respect to their expected probability, with the most likely candidate being first in the list. Context modeling can then be used to truncate the unary code to binarize the transform index.
[0454] According to an example, the encoder 10 and the decoder 20 may be configured to encode / decode at least one digit of the set of at least one digit using entropy coding with a probability estimate depending on the transform indicator 124 of the neighboring residual block.
[0455] 4.3.1 Illustrative Embodiments
[0456] In the following, some specific but non-limiting examples are given in order to concretize the above general description by means of one or more exemplary embodiments.
[0457] Coding order:
[0458] When it is known that the residual signal for a block is encoded, the following situation occurs: when the coded block flag (CBF) has been decoded and is equal to one, the index in the candidate list can be decoded first, followed by the actual transform coefficients.
[0459] When it is known that the residual signal for a block is encoded, the following situation occurs, when the coded block flag (CBF) has been decoded and it is equal to 1, all coefficients of the block can be decoded first. If the candidate list has more than one transform, the index into the candidate list can be encoded after removing all candidates that violate the decoded coefficients.
[0460] When it is known that the residual signal for a block is encoded, the following situation occurs, when the coded block flag (CBF) has been decoded and is equal to one, and the candidate list contains transforms with different primary transform categories (such as non-separable transforms and transforms from the DCT / DST family), the primary transform category can be decoded first and the candidate list can be reduced accordingly. The decoding of all transform coefficients for the block can then be done. If the candidate list has more than one transform, the index into the candidate list can be decoded after removing all candidates that violate the decoded coefficients.
[0461] When it is known that the residual signal for a block is encoded, the following situation occurs, when the coded block flag (CBF) has been decoded and it is equal to one, and the candidate list contains only primary and primary + secondary transforms, it can be first signaled whether the secondary transform is applied. The decoding of all transform coefficients for this block can then be done. If the candidate list has more than one transform, the index into the candidate list can be decoded after removing all candidates that violate the decoded coefficients.
[0462] When it is known that the residual signal for a block is encoded, the following situation occurs, when the coded block flag (CBF) has been decoded and is equal to one, and the candidate list contains at least one transform with reduced size, it can be first decoded whether to use a transform with reduced size. If this occurs and more than one candidate has the reduced size property, where different positions are set to zero, then the index can be signaled to uniquely define which positions are set to zero. The decoding of all transform coefficients for this block can then be done. If the candidate list has more than one transform, the index into the candidate list can be decoded after removing all candidates that violate the decoded coefficients.
[0463] When it is known that the residual signal for a block is encoded, the following situation occurs, when the coded block flag (CBF) has been decoded and is equal to one, the position of the last significant coefficient can be decoded first. If a transform with size reduction is among the candidates, it is removed if it conflicts with the last significant position. According to the quantization parameter (QP), where the number of possible other transform coefficients given by the last significant position is less than a threshold, transforms that also have secondary transforms are removed or further put back in the candidate list. If more than one transform candidate is left, the index into the list is decoded. The coefficients are then decoded.
[0464] When it is known that the residual signal for a block is encoded, the following situation occurs, when the coded block flag (CBF) has been decoded and it is equal to one, then the positions of all significant coefficients can be decoded first. If a transform with size reduction is among the candidates, it can be removed if it conflicts with a significant position. According to the quantization parameter (QP), where the number of possible other transform coefficients given by the last significant position is less than a threshold, transforms that also have secondary transforms can be removed or further put back in the candidate list. If more than one transform candidate is left, the index into the list can be decoded. The remaining coefficient levels and signs can then be decoded.
[0465] When it is known that the residual signal for a block is coded, the following situation occurs, when the coded block flag (CBF) has been decoded and is equal to one, and the candidate list contains different categories of transforms, so that each category gives evidence that the expected last valid position is in a different region, then the transform category can be decoded first, followed by the last valid position. If necessary, the transform index can then be signaled, followed by the coefficient. For example, especially for high QP, a transform with a secondary transform gives evidence that the expected last position is in the region of coefficients that are further transformed by the secondary transform.
[0466] Signaling of change index:
[0467] The transform index may be encoded using a truncated unary code, where each bin may use a dedicated context model. Different sets of context models may be used depending on the number of remaining transform candidates.
[0468] The transform indexes may be encoded using a truncated unary code, where each segment may use a dedicated context model. The context model selection for each segment may depend on the transform decisions of neighboring residual blocks. Depending on the number of remaining transform candidates, a set of k context models may be selected for each segment of the truncated unary code. The transform indices of neighboring blocks may be summed up, and the sum may be compared to a k-1 threshold, which defines the actual context model to be used.
[0469] The transform index may be encoded by first encoding a flag that may indicate whether to select the first candidate. The context model selection for this flag may depend on the transform decisions of neighboring residual blocks. Depending on the number of remaining transform candidates, a context model set consisting of k context model sets may be selected. The transform indices of neighboring blocks may be summed up and the sum may be compared to k-1 thresholds, where the thresholds define the actual context model to be used. The remainder of the index may be encoded by a fixed length code.
[0470] The transform index is encoded by first encoding a flag indicating whether the first candidate is selected. Otherwise a fixed length code can be used for the remainder. The flag can be encoded using a dedicated context model selected by the size of the residual block.
[0471] Given that the partitioning into blocks includes partitioning into coding units (CUs), which may be further partitioned into transform blocks (TUs), and at least one residual may be encoded such that its coding block flag is 1, an additional flag may be encoded at the CU level. If this flag is zero, all residual blocks may take the first candidate in their lists. Otherwise, the first candidate of each list may be placed at the end of the list and the transform index of each residual block may be encoded.
[0472] The number of transform candidates may be 5. A flag may be encoded first, indicating whether the first candidate is selected. Otherwise, a second flag may be encoded, indicating whether the second or third candidate is selected. The final decision may be encoded by a third flag. All flags may be encoded using a dedicated context model.
[0473] The transform index may be encoded by first encoding a flag indicating whether the first candidate is selected. If the remaining transform candidates are associated with different transform categories, a truncated unary code may be used to encode the transform category. Here, only the primary transform may form one category, and the primary + secondary transforms may form a second category. Finally, if necessary, a truncated unary code may be used to encode the remaining indices by utilizing a dedicated set of context models depending on the transform category.
[0474] The transform index is encoded by first encoding a flag that indicates whether the first candidate is selected. If the remaining transform candidates are associated with different transform categories, a truncated unary code can be used to encode the transform category. Here, only the primary transform may form one category, and the primary + secondary transforms may form a second category. The context model can be selected by counting the occurrences of the transform categories of the decoded neighboring transforms. If the first category occurs more frequently, the first context model can be used, if the second category occurs more frequently, the second context model can be used, and if the number of each category is equal, the third context model can be used. Finally, if necessary, a truncated unary code can be used to encode the remaining indices by utilizing a dedicated set of context models that depends on the decoded transform category.
[0475] The transform index is encoded by first encoding a flag indicating whether the first candidate is selected. If the remaining transform candidates are associated with different transform categories, a truncated unary code can be used to encode the transform category. Here, transforms of the DCT / DST family form the first category, the inseparable primary-only transform forms the second category and the primary+secondary transform forms the third category. Finally, if necessary, a truncated unary code can be used to encode the remaining indices by utilizing a dedicated set of context models depending on the transform category.
[0476] Given that one coordinate of the last significant position has been decoded and that coordinate is at least 2, the transform index can then be decoded, and the decoding of the transform index (if necessary) can be postponed to the last step when the coefficients are already known and the candidate list has been reduced. If the transform is already known when the second coordinate of the last position is decoded and it is a primary+secondary transform, the context model selection for the truncated unary code portion can allow the data segments associated with the positions located in the secondary transform region to use a different set of context models than others.
[0477] Context model bias for coefficient encoding:
[0478] (refer to Fig.13 , Fig.14 , Fig.15 )
[0479] It is assumed that the transform index into the candidate list is directly related to the expected energy of the residual signal, so it is used for context model selection for encoding the last significant position.Each transform index value defines its own dedicated set of context models.
[0480] It is assumed that the transform index into the candidate list is directly related to the expected energy of the residual signal, so it is used for context model selection for encoding the last significant position. Transform indices 0 and 1 have their own dedicated context model set, while the remaining indices share one context model set.
[0481] Given that the transform class is already known, coefficient encoding utilizes a dedicated context model set for each transform class.Possible transform classes utilizing a dedicated context model set are transforms from the DCT / DST family and non-separable transforms.
[0482] Given that the partitioning of coefficient positions is defined by the transform, and that the partitioning is known, coefficient encoding utilizes a dedicated set of context models for each subgroup. One possible partitioning is given by the coefficients being further transformed by a secondary transform. Another partitioning is given by the number of subsequent transform stages.
[0483] Each defined transform is associated with a set of context models and is known to the decoder.
[0484] Given that the transform has been uniquely identified, the mapping of the transform to a set of context models is used to derive a set of context models for coefficient decoding.
[0485] Whereas coefficient encoding comprises context model selection based on already decoded coefficients, such that the (known) coefficient levels are weighted and accumulated depending on their relative positions. The set of context models actually used is selected by comparing the sum against a predefined threshold. The weights and thresholds used are given by the selected transform.
[0486] Special encoding mode
[0487] It may be first coded whether the first candidate in the list is used, and if not, it may be checked whether at least one of the remaining transform candidates is a transform with a reduced size. In this case, it may be coded whether the selected transform is one of those transforms. If this occurs and all other candidates have been removed from the list, it may be checked whether the remaining transforms are different in positions that are explicitly set to zero. If necessary, an index may be signaled that uniquely identifies which reduced size has been selected. Thus, even if more than one candidate remains, it is known exactly which coefficient positions remain potentially valid. If necessary, the index for the selected transform may be decoded after the coefficients have been decoded.
[0488] Given that a transform with size reduction is used and the positions that are explicitly set to zero are known, signaling the last significant coefficient position can be skipped. Given the scan order of the coefficients, the last position can be set to the position that is likely to be significant and the last position in the scan order. In this case, the significant flag should also be signaled for the last position.
[0489] Given that a transform with size reduction is used and the positions that are explicitly set to zero by the transform are known, all remaining coefficient-group significant flags may be set to one and thus do not need to be encoded.
[0490] Given that a transform with size reduction is used and the positions set to zero are known, a dedicated set of context models can be used to decode the remaining coefficients.
[0491] Given that a transform with size reduction is used and the positions set to zero are known, a dedicated set of context models can be used to decode the last coefficient position in the block.
[0492] Given that a transform with size reduction is used, dedicated biases for the Rice parameters for the coding coefficient levels may be used.
[0493] Given that a transform with size reduction is used, a dedicated template for context selection based on neighboring coefficients may be used.
[0494] All embodiments are adjustable with respect to prediction mode and QP.
[0495] 5. Primary transformation set to zero
[0496] In subsection 4.1, a general description is given, wherein in the following some examples are given, wherein one or more only primary coefficients are zeroed, i.e. set to zero (see subsection 5.1 below). Other examples are given, wherein one or more coefficients at certain positions are zeroed, i.e. set to zero (see subsection 5.2 below). Coefficients that may have the possibility of being subjected to zeroing may also be referred to as "candidates" for zeroing.
[0497] In general, reference Fig.12 , this aspect of the invention provides an encoder 10 and a decoder 20 for encoding a picture 12 into or decoding a picture 12 from a data stream 14 using block-based prediction and block-based residual coding, the encoder 10 and the decoder 20 supporting a transform set 94 for block-based residual coding. The encoder 10 and the decoder 20 may be configured to determine 122 a transform candidate list 98 for a transform of a current residual block 84 from the transform set 94 based on a size 96 (e.g., height and width) of the current residual block 84. The encoder 10 may be configured to encode a prediction residual 100 within the residual block 84 using a selected transform 102 in the selectable transform list 98 and selectively signal the selected transform 102 in the data stream 14. The decoder 20, in turn, decodes the prediction residual 100 within the residual block 84 in a domain of a selected transform 102 in the selectable transform list 98 using the selected transform 102 selectively derived from the data stream 14.
[0498] 5.1 Zeroing of primary coefficients only
[0499] Having a multi-level transform including a primary and a secondary transform, only the primary transform coefficients (ie, coefficients that are not further transformed) are set to zero.
[0500] c. The secondary transformation is a complete size transformation
[0501] d. A secondary transform is a transform with reduced size (possibly with a further reduction in the number of significant coefficients)
[0502] For example, let the transform candidates include a primary (separable) transform (e.g. [DCT-II, DCT-II] ...) for residual blocks with width and height >= 8, the combination of this transform and a secondary transform with input size (8×8) can also be a candidate. Applying the secondary transform implies that all coefficients that are not further transformed by the secondary transform are forced to zero.
[0503] For example, let the transform candidates include a primary (separable) transform (e.g. [DCT-II, DCT-II] ...) for the residual block with width or height (but not both) equal to 4, the combination of this transform and a secondary transform with input size (4×4) can also be a candidate. Applying the secondary transform implies that all coefficients that are not further transformed by the secondary transform are forced to zero.
[0504] For example, let the transform candidates include a primary (separable) transform (e.g. [DCT-II, DCT-II] ...) for residual blocks of width and height >= 8, a combination of this transform and a secondary transform with input size of 48 and output size of 16 (which is applied to the 3 leftmost / topmost coefficient subgroups of size (4×4)) can also be a candidate. Applying the secondary transform implies setting to zero all coefficients that are not further transformed by the secondary transform, so additionally, the secondary transform is a transform with a size reduction to 16 coefficients, with the last significant coefficient position being (3,3).
[0505] 5.2 Zeroing coefficients at specific locations
[0506] The multi-stage transform includes a primary transform and a secondary transform, and the coefficients of the positions X>Tx or Y>Ty are set to zero (eg, Tx=Ty=8).
[0507] c. The secondary transformation is a complete size transformation
[0508] d. The secondary transform is a transform with reduced size (the number of possible significant coefficients is further reduced)
[0509] Fig.17 An example of a residual block of size (e.g., width and height > 8) that has been subjected to a primary transform is shown. Thus, there may be a subgroup 112 with a plurality of primary coefficients 114. In this example, the subgroup 112 may include primary coefficients 114 of size 4×4. The three leftmost / topmost coefficient subgroups of size 4×4 are shown here. Thus, those three subgroups 112 together include 48 primary coefficients 114. They may be subjected to a secondary transform 110 of size 48×16, i.e., the coefficients are reduced from 48 to 16, some of which may be candidates for zeroing.
[0510] For example, let the transform candidates include a primary (separable) transform (e.g. [DCT-II, DCT-II] ...) for residual blocks of width and height >= 8, a combination of this transform and a secondary transform of size (48×16) applied to the three leftmost / topmost coefficient subgroups 112 of size (4×4) is also a candidate. Applying the secondary transform implies that the last significant coefficient position may be located at a maximum value (7,7), so the remaining primary-only coefficients (hatched) are set to zero.
[0511] For example, let the transform candidates include a primary (separable) transform (e.g. [DCT-II, DCT-II] ...) for residual blocks of width and height >= 8, the combination of this transform and a secondary transform of size (48x16) applied to the 3 leftmost / topmost coefficient subgroups of size (4x4) is also a candidate. Applying the secondary transform implies that the last significant coefficient position may be located at the maximum value (3,3), so the remaining primary-only coefficients are set to zero.
[0512] Signaling for 1+2
[0513] f) First signal the selected primary transform and coefficients. If the coefficients are valid (non-zero) at a position that would verify the constraints given by the transform candidate with the secondary transform, then the secondary transform is clearly not used and can therefore be removed from the candidate list and no additional signaling is required)
[0514] g) If the corresponding primary+secondary transform is among the candidates, first signal the selected primary transform, then signal if the secondary transform is applied. If the secondary transform is applied, set the maximum allowed last position accordingly, potentially by using a dedicated context model set, and signal the last position, followed by the remaining coefficient information.
[0515] State-of-the-art comparison with existing technologies:
[0516] h) Signal secondary transforms / indexes before / interleaved with the last position
[0517] i) Secondary transformation restrictions based on the number of last positions rather than the minimum valid position. (explicitly lastPosX+lastPosY>=T, e.g. 1 or 2)
[0518] j) Context modeling of coefficient sig flag depending on secondary transform flag
[0519] Therefore, the encoder 10 and the decoder 20 may be configured to determine the transform candidate list so that the transforms of the transform candidate list are consistent in the codomain, that is, the number and arrangement of transform coefficients are the same.
[0520] The transforms of the transform candidate list may include a first transform and a second transform that are identical in the codomain (i.e., the number and arrangement of transform coefficients are the same). The second transform corresponds to a secondary transform applied to the subgroup 112 of primary transform coefficients 114 of the first transform 108, wherein other primary transform coefficients 114 of the first transform 108 outside the subgroup 112 of primary transform coefficients of the first transform 108 are set to zero.
[0521] In this case, the encoder 10 may be configured to test encoding the current residual block with respect to the second transform by setting other primary transform coefficients 114 of the first transform 108 outside of the subgroup 112 of primary transform coefficients of the first transform 108 to zero.
[0522] Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to decide whether to fill the transform candidate list with at least one multi-level transform 106, or exclude at least one multi-level transform 106 from the transform candidates, wherein the at least one multi-level transform 106 includes a primary transform applied to the prediction residual 100 of the current residual block and a secondary transform applied to the subgroup 112 of the primary transform coefficients 114 of the primary transform 108 to obtain a subgroup 138 of transform coefficients of the selected transform 102, or a position in which the at least one multi-level transform 106 is to be placed in the transform candidate list, which depends on the position at which the significant transform coefficients are located according to the transform coefficient data 126.
[0523] Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to decide whether to populate the transform candidate list with at least one multi-level transform 106, or exclude at least one multi-level transform 106 from the transform candidate list, the at least one multi-level transform 106 comprising a primary transform applied to the prediction residual 100 of the current residual block and a secondary transform applied to the subgroup 112 of the primary transform coefficients 114 of the primary transform 108 to obtain a subgroup 138 of transform coefficients of the selected transform 102, or a position in the transform candidate list where the at least one multi-level transform 106 is to be placed, depending on whether any transform coefficients outside the subgroup 138 of transform coefficients are valid according to the transform coefficient data 126.
[0524] Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to encode / decode transform coefficients by encoding / decoding values of the transform coefficients of a selected transform using binarization and binary entropy coding, wherein the probability estimate used for the binary entropy coding depends on the selected transform, and / or wherein the binarization depends on the selected transform.
[0525] This dependency on the selected transform may be a dependency on whether the selected transform is a multi-level transform or not.
[0526] Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to decide whether to populate the transform candidate list 98 with at least one multi-level transform 106, or exclude at least one multi-level transform 106 from the transform candidate list 98, the at least one multi-level transform 106 comprising a primary transform applied to the prediction residual 100 of the current residual block 84 and a secondary transform applied to the subgroup 112 of the primary transform coefficients 114 of the primary transform 106 to obtain a subgroup 138 of transform coefficients for the selected transform 102, or a position in the transform candidate list 98 where the at least one multi-level transform 106 is to be located, depending on whether any transform coefficients within the subgroup 112 but outside the subgroup 138 of transform coefficients are valid according to the transform coefficient data 126.
[0527] Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to decide whether to fill the transform candidate list 98 with at least one multi-level transform 106, or exclude at least one multi-level transform 106 from the transform candidate list 98, the at least one multi-level transform 106 comprising a primary transform applied to the prediction residual 100 of the current residual block 84 and a secondary transform applied to a subgroup 112 of primary transform coefficients 114 of the primary transform 106 to obtain transform coefficients of the multi-level transform 106, the number of which is lower than the residual samples within the prediction residual 100 of the current residual block 84, and whose transform coefficient positions correspond to a subset 138 of transform coefficients of another transform in the transform candidate list 98 that is equivalent to the primary transform, wherein the primary transform coefficients 114 of the primary transform 106 are equal to the samples 105 within the prediction residual 100 of the current residual block 84, or wherein the primary transform coefficients 114 of the primary transform 106 are greater in number than the transform coefficients of the multi-level transform 106. Additionally or alternatively, the encoder 10 and the decoder 20 may be configured to decide where at least one multi-level transform 106 is to be placed in the transform candidate list 98 relative to another transform, wherein the decision depends on:
[0528] d) the positions where the significant transform coefficients are located based on the transform coefficient data 126, or
[0529] e) whether the significant transform coefficient is located outside the subgroup 138 of transform coefficients according to the transform coefficient data 126, or
[0530] f) Whether the significant transform coefficient is located outside the subgroup 112 of the preliminary transform coefficient 114 according to the transform coefficient data 126 .
[0531] Some examples should be referenced Figure 8 , Fig.18 and Fig.19 To explain.
[0532] For example, as described above, the signaling may depend on the significant transform coefficient positions 132 . Fig.18 and Fig.19 Transform coefficients 114 , 134 and subgroups 112 , 138 of transform coefficients 114 , 134 are exemplarily shown from a decoder perspective.
[0533] Fig.18 One non-limiting example of a multi-level transform with zeroing is shown, where a primary transform may produce a primary subgroup 112 of primary transform coefficients 114, which may be subjected to a secondary transform that may produce a secondary subgroup 138 of secondary transform coefficients 134. Some of the primary transform coefficients 114 and / or some of the secondary transform coefficients 134 may be zeroed, for example, based on the significant transform coefficient positions 132.
[0534] For example, Fig.18 As depicted in , if a secondary transform has been applied, transform coefficients 134 outside secondary subgroup 138, and therefore transform coefficients 114 outside primary subgroup 138, may be zero.
[0535] Fig.19 Another example is shown in which the secondary transform coefficients 134 may be set to zero, also from the decoder's perspective. The outlined 8×8 area represents the primary subgroup 112 of the primary transform coefficients 114, as explained above. The transform coefficients within the area marked with cross-hatching (green in the originally submitted application) may represent only primary transform coefficients. The transform coefficients within the area marked with hatching (blue in the originally submitted application) from the upper left to the lower right may represent transform coefficient positions that will have to be zero if the secondary transform is applied. This in turn means that if there are valid (non-zero valued) coefficients in the (blue) upper left to lower right hatched area, the decoder 20 knows that a secondary transform does not need to be performed, because otherwise these positions will have to be zero due to the secondary transform. Therefore, no index needs to be signaled.
[0536] Regarding signaling, some examples as mentioned above allow for whether signaling (e.g., signaling of an index) is necessary or can be omitted, which signaling can be derived from the significant coefficient positions 132. However, some examples may provide for the possibility that the signaling may not depend on the significant coefficient positions 132 but may always signal an index. In the latter case, if a secondary transform is applied to the primary subgroup 112, the primary transform coefficients 114 outside the primary subgroup 112 will have to be zero (e.g., Fig.19 ).
[0537] Therefore, decoder 20 may be configured to apply a multi-level transform with a primary transform and a secondary transform, wherein the primary transform may be implemented by zeroing up to the size of only primary subgroup 112. That is, for example, for 8×8 (primary subgroup 112) and 16×16 transform blocks, both horizontal and vertical primary transforms may be implemented by zeroing:
[0538] nonZeroW=8if block has secondary transform index set (if the block has a secondary transform index set);
[0539] else 16
[0540] nonZeroH=8if block has secondary transform index set (if the block has a secondary transform index set);
[0541] else 16
[0542] 5.3 Reduction / Restriction of Transform Candidate Lists for Application of Secondary Transforms
[0543] Minimum last position:
[0544] If the CBF flag is set to the following:
[0545] c. First (via coarse signaling) to signal whether the last position is at least (e.g., X+Y>T, lastposition!=(0,0))
[0546] d. First signal the position with the maximum value (ie, until the exact position of T, so either T or > T is known for sure)
[0547] If the conditions for the secondary transform are met, it is signaled whether the secondary transform / transform with size reduction is
[0548] b. Transform with size reduction (secondary transform with size reduction primary transform forced to zero), encoding the exact last position if necessary (= refinement), while setting the maximum last position according to the forced zero position
[0549] I. Adjusting the context model for efficient positional encoding
[0550] II. Adjusting the context model for grX encoding
[0551] III. Adjusting Columbrae parameters
[0552] Otherwise, it can be inferred that there is no zeroing and the encoding of the exact last position can be continued if necessary.
[0553] Therefore, and refer to Figures 13 to 16, the encoder 10 and decoder 20 may be configured to encode or decode a coarse version of the indication of the significant transform coefficient positions 132 of the selected transform 102. If the candidate list 98 does not include a multi-level transform, the exact last position may be encoded, i.e., a refinement of the coarse version of the indication and all coefficients are encoded or decoded ( Fig.16 , case B). If the candidate list 98 includes a multi-level transform, it may be further determined whether the actual transform is a multi-level transform. If so, the exact final position may be encoded, i.e., a refinement of the coarse version of the indication and only the primary transform coefficients 112 are encoded / decoded ( Fig.16 , case A). Otherwise, the exact last position may be encoded, ie a refinement of the coarse version of the indication and all coefficients are encoded / decoded.
[0554] Thus, the encoder 10 and the decoder 20 may be configured to encode into the data stream 14 or decode from the data stream 14 the indicated coarse version before the selected transform 102 is signaled 128 in the data stream 14 or derived from the data stream 14, wherein the determination 130 of the selectable list 98 depends on the indicated coarse version. The encoder 10 and the decoder 20 may further be configured to encode into the data stream 14 or decode from the data stream 14 a refinement of the indicated coarse version after the signaling / deriving and depending on the selected transform 102.
[0555] Additionally or alternatively, encoder 10 and decoder 20 may be configured to encode / decode a hint as a coarse version that reveals whether significant transform coefficient position 132 is within subgroup 138. Encoder 10 and decoder 20 may be further configured to encode / decode relative position information as a refinement that distinguishes significant transform coefficient position 132 in a position within subgroup 138 if significant transform coefficient position 132 is within subgroup 138, and in a position outside subgroup 138 if significant transform coefficient position 132 is outside subgroup 138.
[0556] Still additionally or alternatively, in the event that the hint reveals that the significant transform coefficient position 132 is within the subgroup 138, the encoder 10 and the decoder 20 may be configured to determine that the selectable list 98 includes at least one multi-level transform 106, the at least one multi-level transform 106 comprising a primary transform applied to the prediction residual 100 of the current residual block and a secondary transform applied to the subgroup 112 of primary transform coefficients 114 of the primary transform 106 to obtain the subgroup 138 of transform coefficients of the selected transform 102. In the event that the hint reveals that the significant transform coefficient position 132 is not within the subgroup 138, the encoder 10 and the decoder 20 may be configured to determine that the selectable list 98 does not include the at least one multi-level transform 106.
[0557] In the case where the hint reveals that the significant transform coefficient position 132 is within the subgroup 138, the encoder 10 and the decoder 20 may be configured to encode / decode the relative position information using variable length coding VLC with a first maximum number of codes corresponding to the number of coefficients within the subgroup 138. In the case where the hint reveals that the significant transform coefficient position 132 is not within the subgroup 138, the encoder 10 and the decoder 20 may be configured to encode / decode a second maximum number of codes corresponding to the number of coefficients outside the subgroup 138.
[0558] In the event that the hint reveals that the significant transform coefficient position 132 is within the subgroup 138, the encoder 10 and the decoder 20 may be configured to encode / decode a secondary transform indicator after the coarse version but before the refinement, the secondary transform indicator indicating whether the selected transform is among the at least one multi-level transform 106 and / or which one of the at least one multi-level transform 106 is the selected transform.
[0559] Where the hint reveals that significant transform coefficient positions 132 are within subgroup 138 , encoder 10 and decoder 20 may be configured to use a context that depends on the secondary transform indicator in order to context-adaptively entropy encode the transform coefficients within subgroup 138 .
[0560] Where the hint reveals that significant transform coefficient position 132 is not within subgroup 138 , encoder 10 and decoder 20 may be configured to context adaptively entropy encode transform coefficients both within and outside of subgroup 138 .
[0561] 5.4 If the secondary transition is tested at the last position of the tested transition without size reduction, adjust the encoder (encoder only)
[0562] 5.5 Chroma:
[0563] Signaled only once for the luma component and the two chroma components:
[0564] a) Signal luma + two chroma components once:
[0565] - Signaled in the first component that satisfies the condition (lastPosX>0 or lastPosY>0)
[0566] - (Allowed only if both components satisfy the condition (interleaved encoding of the last position of both components is required...)
[0567] b) Signal for each component (if conditions are met)
[0568] The invention can be further implemented by the following embodiments, which can be combined with any of the examples and embodiments described and claimed herein:
[0569] 1. An encoder for encoding a picture (12) into a data stream (14) using block-based prediction and block-based residual coding, the encoder supporting a transform set (94) for the block-based residual coding and being configured to:
[0570] The intra-frame prediction block (80) is predicted by applying a spatial neighborhood (90) of the intra-frame prediction block (80) to a selected neural network from a plurality of neural networks, thereby obtaining a prediction (104) of the intra-frame prediction block (80) and
[0571] determining, from the set of transforms (94), a selectable set of transforms (98) for the residual block (84) covering the intra-prediction block (80) based on the selected neural network and a block size (96) of the residual block (94);
[0572] A prediction residual (100) associated with the prediction of the intra-prediction block (80) within the residual block (84) is encoded using a selected transform (102) from the set of selectable transforms (98), and the selected transform is signaled in the data stream (14).
[0573] 2. The encoder according to embodiment 1 is configured as follows:
[0574] The determination is performed such that
[0575] For block sizes above a predetermined threshold,
[0576] The set of selectable transforms (98) is populated by a first number of one or more multi-level transforms (106), each multi-level transform (106) comprising a primary transform (108) applied to the prediction residual (100) and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (108), the secondary transform (110) being inseparable and dependent on the selected neural network.
[0577] 3. The encoder according to embodiment 2 is configured as follows:
[0578] The determining is performed such that the primary transform (108) is dependent on the selected neural network (102) and is a separable 2D transform (116).
[0579] 4. The encoder of embodiment 3, wherein the subgroup (112) represents a low frequency portion of the primary transform (108).
[0580] 5. An encoder according to any one of embodiments 2 to 4, wherein the first number is between 2 and 6, inclusive.
[0581] 6. The encoder according to any one of embodiments 2 to 5, configured as
[0582] The determination is performed such that
[0583] For block sizes below the predetermined threshold,
[0584] The set of selectable transforms (98) is populated by a second number of one or more inseparable transforms (118).
[0585] 7. An encoder according to embodiment 6, when dependent on embodiment 4, wherein the first number and the second number are equal.
[0586] 8. The encoder according to any one of embodiments 2 to 7, configured as
[0587] The determining is performed such that the set of selectable transforms (98) is further populated by a third number of one or more separable 2D transforms (116).
[0588] 9. The encoder of embodiment 8, wherein the third number is 1 or 5.
[0589] 10. The encoder according to any one of embodiments 1 to 9, configured as
[0590] performing said prediction such that said prediction of said intra-prediction block (80) is obtained in a domain (118) of a primary transform (108),
[0591] The determination is performed such that
[0592] The set of selectable transforms (98) is populated by a fourth number of one or more multi-level transforms (106), each multi-level transform comprising the primary transform (108) and a secondary transform (110) applied to a subgroup (112) of the primary transform coefficients (114) of the primary transform (108), the secondary transform (110) being inseparable and dependent on the selected neural network.
[0593] 11. The encoder according to embodiment 10, configured to
[0594] The determining is performed such that the primary transform (108) is a separable 2D transform (116).
[0595] 12. An encoder according to embodiment 10 or 11, wherein the subgroup (112) represents a low frequency portion of the primary transform (108).
[0596] 13. An encoder according to any one of embodiments 10 to 13, wherein the first number is between 2 and 6, inclusive.
[0597] 14. The encoder according to any one of embodiments 10 to 14, configured to
[0598] The determining is performed such that the set of selectable transforms (98) is further populated by the primary transform (108).
[0599] 15. The encoder according to any one of embodiments 1 to 14, configured to
[0600] checking whether the quantization parameter of the residual block (84) is included in a set of one or more predetermined quantization parameters,
[0601] If so, the determination is performed such that
[0602] The set of selectable transforms (98) is further populated by a set of one or more predetermined transforms associated with the set of one or more predetermined quantization parameters.
[0603] 21. A decoder for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual decoding, the decoder supporting a transform set (94) for the block-based residual decoding and being configured to:
[0604] predicting the intra-prediction block (80) by applying a spatial neighborhood (90) of the intra-prediction block (80) to a selected neural network of a plurality of neural networks (92) to obtain a prediction (104) of the intra-prediction block (80), and
[0605] determining, from the set of transforms (94), a selectable set of transforms (98) for the residual block (84) covering the intra-prediction block (80) based on the selected neural network and the block size (96) of the residual block (84),
[0606] A prediction residual (100) associated with the prediction (104) of the intra-prediction block (80) within the residual block (84) is decoded from the data stream (14) in the domain of the selected transform (102) by deriving the selected transform from the set of selectable transforms (98) from the data stream (14).
[0607] 22. The decoder according to embodiment 21, configured to
[0608] The determination is performed such that
[0609] For block sizes above a predetermined threshold,
[0610] The set of selectable transforms (98) is populated by a first number of one or more multi-level transforms (106), each multi-level transform (106) comprising a primary transform (108) applied to the prediction residual (100) and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (108), the secondary transform (110) being inseparable and dependent on the selected neural network.
[0611] 23. The decoder according to embodiment 22, configured to
[0612] The determining is performed such that the primary transform (108) depends on the selected neural network (102) and is a separable 2D transform (116).
[0613] 24. The decoder of embodiment 23, wherein the subgroup (112) represents a low frequency portion of the primary transform (108).
[0614] 25. The decoder of any one of embodiments 22 to 24, wherein the first number is between 2 and 6, inclusive.
[0615] 26. The decoder according to any one of embodiments 22 to 25, configured to
[0616] The determination is performed such that
[0617] For block sizes below the predetermined threshold,
[0618] The set of selectable transforms (98) is populated by a second number of one or more inseparable transforms (118).
[0619] 27. The decoder of embodiment 26, as dependent upon embodiment 24, wherein the first number and the second number are equal.
[0620] 28. The decoder according to any one of embodiments 22 to 27, configured to
[0621] The determining is performed such that the set of selectable transforms (98) is further populated by a third number of one or more separable 2D transforms (116).
[0622] 29. The decoder of embodiment 28, wherein the third number is 1 or 5.
[0623] 30. The decoder according to any one of embodiments 21 to 29, configured to
[0624] performing said prediction such that said prediction (104) of said intra-prediction block (80) is obtained in a domain (118) of a primary transform (108),
[0625] The determination is performed such that
[0626] The set of selectable transforms (98) is populated by a fourth number of one or more multi-level transforms (106), each multi-level transform (106) comprising the primary transform (108) and a secondary transform (110) applied to a subgroup (112) of the primary transform coefficients (114) of the primary transform (108), the secondary transform (110) being inseparable and dependent on the selected neural network.
[0627] 31. The decoder according to embodiment 30 is configured to
[0628] The determining is performed such that the primary transform (108) is a separable 2D transform (116).
[0629] 32. A decoder according to embodiment 30 or 31, wherein the subgroup (112) represents a low frequency portion of the primary transform (108).
[0630] 33. A decoder according to any one of embodiments 30 to 33, wherein the first number is between 2 and 6, inclusive.
[0631] 34. The decoder according to any one of embodiments 30 to 34, configured to
[0632] The determining is performed such that the set of selectable transforms (98) is further populated by the primary transform (108).
[0633] 35. The decoder according to any one of embodiments 21 to 34, configured to
[0634] checking whether the quantization parameter of the residual block (84) is included in a set of one or more predetermined quantization parameters,
[0635] If so, the determination is performed such that
[0636] The set of selectable transforms (98) is further populated by a set of one or more predetermined transforms associated with the set of one or more predetermined quantization parameters.
[0637] 41. An encoder for encoding a picture (12) into a data stream (14) using block-based prediction and block-based residual coding, the encoder being configured to:
[0638] By applying the spatial neighborhood (90) of the intra-frame prediction block (80) to a neural network (NN # ) to predict the intra-prediction block (80), thereby obtaining a prediction (104) of the intra-prediction block (80) in the domain (118) of the primary transform (108), and
[0639] encoding a prediction residual (100) associated with the prediction (104) of the intra-prediction block (80) within a residual block (84) using a selected transform (102) from the set of selectable transforms (98), and signaling the selected transform (102) in the data stream (14),
[0640] The selectable transform set (98) is populated by at least one multi-level transform (106), the at least one multi-level transform (106) comprising the primary transform (108) and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (108).
[0641] 42. The encoder of embodiment 41, wherein
[0642] The selectable transform set (98) is populated by a number of multi-level transforms (106), each multi-level transform (106) comprising the primary transform (108) and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (108), the secondary transform (110) being inseparable.
[0643] 43. An encoder according to embodiment 41 or 42, wherein the number is between 2 and 6, including 2 and 6.
[0644] 44. An encoder according to any one of embodiments 41 or 43, wherein the primary transform (108) is a separable 2D transform.
[0645] 45. An encoder according to any one of embodiments 41 to 44, wherein the subgroup (112) represents a low-frequency part of the primary transform.
[0646] 46. The encoder according to any one of embodiments 41 to 45, configured to
[0647] The determining is performed such that the set of selectable transforms (98) is further populated by the primary transform.
[0648] 47. An encoder according to any one of embodiments 41 to 46, configured to
[0649] checking whether the quantization parameter of the intra prediction block is included in a set of one or more predetermined quantization parameters,
[0650] If so, the determination is performed such that
[0651] The set of selectable transforms is further populated by a set of one or more predetermined transforms associated with the set of one or more predetermined quantization parameters.
[0652] 51. A decoder for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual coding, the decoder being configured to:
[0653] predicting the intra-prediction block (80) by applying its spatial neighborhood (90) to a neural network (NN#), thereby obtaining a prediction (104) of the intra-prediction block (80) in a domain (118) of a primary transform (108), and
[0654] Derived from the data stream (14) a selected transform (102) from a set of selectable transforms (98), a prediction residual (100) associated with the prediction (104) of the intra-prediction block (80) in a residual block (84) decoded from the data stream (14) in another domain (119) of the selected transform (102) [which may be the same domain as domain 118 as described in embodiment 56],
[0655] The selectable transform set (98) is populated by at least one multi-level transform (106), the at least one multi-level transform (106) comprising the primary transform (108) and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (108).
[0656] 52. The decoder of embodiment 51, wherein
[0657] The selectable transform set (98) is populated by a number of multi-level transforms (106), each multi-level transform (106) comprising the primary transform (108) and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (108), the secondary transform (110) being inseparable.
[0658] 53. A decoder according to embodiment 51 or 52, wherein the number is between 2 and 6, inclusive.
[0659] 54. A decoder according to any one of embodiments 51 to 53, wherein the primary transform (108) is a separable 2D transform.
[0660] 55. A decoder according to any one of embodiments 51 to 54, wherein the subgroup (112) represents a low frequency portion of the primary transform.
[0661] 56. The decoder according to any one of embodiments 51 to 55, configured to
[0662] The determining is performed such that the set of selectable transforms (98) is further populated by the primary transform.
[0663] 57. The decoder according to any one of embodiments 51 to 56, configured to
[0664] checking whether the quantization parameter of the intra prediction block is included in a set of one or more predetermined quantization parameters,
[0665] If so, the determination is performed such that
[0666] The set of selectable transforms is further populated by a set of one or more predetermined transforms associated with the set of one or more predetermined quantization parameters.
[0667] 61. An encoder for encoding a picture (12) into a data stream (14) using block-based prediction and block-based residual coding, the encoder supporting a transform set (94) for the block-based residual coding and being configured to:
[0668] predicting the intra-prediction block (80) based on its spatial neighborhood (90) using a selected mode from a set of intra-prediction modes (120) to obtain a prediction (104) of the intra-prediction block (80), and
[0669] determining, from the transform set (94), a selectable transform set (98) for the residual block (84) covering the intra-prediction block (80), based on the selected intra-prediction mode and the block size of the residual block,
[0670] A prediction residual (100) associated with the prediction (104) of the intra-prediction block (80) within the residual block (84) is encoded using a selected transform (102) from the set of selectable transforms (98), and the selected transform (102) is signaled in the data stream (14).
[0671] 62. The encoder according to embodiment 61, configured to
[0672] The determination is performed such that
[0673] For a block size in a first predetermined set of predetermined block sizes,
[0674] The selectable transform set (98) is populated by a number of one or more multi-level transforms (106), each multi-level transform (106) comprising a primary transform (108) applied to the prediction residual (100) and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (108), the secondary transform (110) being inseparable and dependent on the selected intra-prediction mode.
[0675] 63. The encoder according to embodiment 62 is configured to
[0676] The determining is performed such that the primary transform (108) is dependent on the selected intra-prediction mode and is a separable 2D transform (116).
[0677] 64. The encoder of embodiment 62 or 63, wherein the subgroup (138) depends on a selected intra-prediction mode.
[0678] 65. The encoder according to any one of embodiments 62 to 63, configured to
[0679] The determination is performed such that
[0680] For a block size of a second predetermined set that is smaller than the predetermined block size of the first predetermined set,
[0681] The set of selectable transforms (98) is populated by a second number of one or more inseparable transforms (118).
[0682] 66. An encoder according to any one of embodiments 62 to 65, configured such that the secondary transform (110) depends on the selected intra-frame prediction mode in a manner including intra-frame prediction mode aggregation (for example, quantization of the intra-frame prediction mode index or quantization of the intra-frame prediction direction of the angular intra-frame prediction mode in the set 120 of intra-frame prediction modes).
[0683] 66a. An encoder according to embodiment 63 is configured such that the primary transform (108) depends on the selected intra-frame prediction mode in a manner including intra-frame prediction mode aggregation (for example, quantization of intra-frame prediction mode index or quantization of intra-frame prediction direction of angular intra-frame prediction mode in the set 120 of intra-frame prediction modes).
[0684] 67. The encoder according to any one of embodiments 61 to 66, configured to
[0685] checking whether the quantization parameter of the residual block (84) is included in a set of one or more predetermined quantization parameters,
[0686] If so, the determination is performed such that
[0687] The set of selectable transforms (98) is further populated by a set of one or more predetermined transforms associated with the set of one or more predetermined quantization parameters.
[0688] 71. A decoder for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual decoding, the decoder supporting a transform set (94) for the block-based residual decoding and being configured to:
[0689] predicting the intra-prediction block (80) based on its spatial neighborhood (90) using a selected mode from a set of intra-prediction modes (120) to obtain a prediction (104) of the intra-prediction block (80), and
[0690] determining, from the transform set (94), a selectable transform set (98) for the residual block (84) covering the intra-prediction block (80), based on the selected intra-prediction mode and the block size (96) of the residual block (84),
[0691] A prediction residual (100) associated with the prediction (104) of the intra-prediction block (80) within the residual block (84) is decoded from the data stream (14) in the domain of the selected transform (102) by deriving the selected transform (102) from the data stream (14).
[0692] 72. The decoder according to embodiment 71 is configured to
[0693] The determination is performed such that
[0694] For a block size of a first predetermined set of predetermined block sizes,
[0695] The selectable transform set (98) is populated by a number of one or more multi-level transforms (106), each multi-level transform (106) comprising a primary transform (108) applied to the prediction residual (100) and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (108), the secondary transform (110) being inseparable and dependent on the selected intra-prediction mode.
[0696] 73. The decoder according to embodiment 72 is configured to
[0697] The determining is performed such that the primary transform (108) is dependent on the selected intra-prediction mode and is a separable 2D transform (116).
[0698] 74. The decoder of embodiment 72 or 73, wherein the subgroup (112) depends on the selected intra-prediction mode.
[0699] 75. The decoder according to any one of embodiments 72 to 74, configured to
[0700] The determination is performed such that
[0701] For a block size of a second predetermined set that is smaller than the predetermined block size of the first predetermined set,
[0702] The set of selectable transforms (98) is populated by a second number of one or more inseparable transforms (116).
[0703] 76. A decoder according to any one of embodiments 72 to 75, configured such that the secondary transform (110) depends on the selected intra-frame prediction mode in a manner including intra-frame prediction mode aggregation (for example, quantization of the intra-frame prediction mode index or quantization of the intra-frame prediction direction of the angular intra-frame prediction mode in the set 120 of intra-frame prediction modes).
[0704] 77. The decoder according to any one of embodiments 71 to 76, configured to
[0705] checking whether the quantization parameter of the residual block (84) is included in a set of one or more predetermined quantization parameters,
[0706] If so, the determination is performed such that
[0707] The set of selectable transforms (98) is further populated by a set of one or more predetermined transforms associated with the set of one or more predetermined quantization parameters.
[0708] 81. An encoder for encoding a picture (12) into a data stream (14) using block-based prediction and block-based residual coding, the encoder supporting a transform set (94) for the block-based residual coding and being configured to:
[0709] determining (122) from the set of transforms (94) a list of selectable transforms (98) for the current residual block (84) based on the reference transform selected for the neighboring residual block (84', 84") [e.g., for encoding the latter's prediction residual, also from the set 94],
[0710] A prediction residual (100) within the residual block (84) is encoded using a selected transform (102) from the list of selectable transforms (98), and the selected transform (102) is signaled in the data stream (14).
[0711] 82. The encoder of embodiment 81, configured to sort (122) the selectable list (98) using the reference transform.
[0712] 83. The encoder according to embodiment 81 or 82 is configured to
[0713] By ranking the reference transform or the transform corresponding to the reference transform ("n # ") to sort the optional list (98) [e.g., with respect to the first level, signaled by the high transform index 124, so it may be a very specialized transform, the analysis transform type of adjacent blocks of different sizes], the ranking is associated with the following:
[0714] The most likely choice [e.g., the first position], or [the portion associated with the lowest index value of index 124 or the portion associated with the index value associated with the shortest VLC]
[0715] The second most likely option.
[0716] 84. The encoder according to any one of embodiments 81 to 83, configured to
[0717] Based on the reference transforms selected for the set of neighboring residual blocks (84', 84"), a list of selectable transforms (98) for the current residual block (80) is determined (122) from the set of transforms (94).
[0718] 85. The encoder according to embodiment 84 is configured to
[0719] The selectable list (98) is ordered by positioning the reference transforms relative to each other in an order corresponding to the frequency with which the reference transforms were selected for the set of neighboring residual blocks (84', 84").
[0720] 86. An encoder according to any one of embodiments 81 to 85, configured to fill (122) the optional list (98) with the reference transform.
[0721] 87. The encoder of embodiment 86, wherein the reference transform is an analytically definable separable spectral decomposition transform [e.g., DCT, DST, FFT, etc.], and the encoder is configured to:
[0722] The selectable list (98) is populated with another transform derived by adapting the reference transform to a block size (96) of the current residual block (84).
[0723] 88. The encoder according to any one of embodiments 86 or 87, configured to
[0724] The filling is performed in the following cases,
[0725] One or more specific characteristics associated with the neighboring blocks (84', 84") and the current residual block (84) are sufficiently similar, and / or
[0726] The reference transform is a separable spectral decomposition transform.
[0727] 89. The encoder of embodiment 88, wherein the one or more characteristics include one or more of intra prediction modes.
[0728] 90. The encoder according to any one of embodiments 81 to 89, configured to
[0729] ordering the selectable list (98) by ranking the transforms in the set of selectable transforms (98) according to their similarity to the reference transform in one or more specific characteristics, and / or
[0730] The selectable list of transformations (98) is determined in such a way that transformations that exceed a certain dissimilarity with the reference transformation in one or more certain characteristics are excluded from the selectable list (98).
[0731] 91. An encoder according to embodiment 90, wherein the one or more characteristics include one or more of the primary transforms [e.g., requiring the primary transforms to be equal].
[0732] 92. The encoder according to any one of embodiments 81 to 91, configured to
[0733] ordering (122) the selectable list (98) by ranking the transforms in the set (98) of selectable transforms depending on one or more specific characteristics of the neighboring blocks (84'), and / or
[0734] The selectable transform list (98) is determined in such a way that transforms are excluded from the selectable list (98) depending on one or more specific characteristics of the neighboring block (84').
[0735] 93. An encoder according to embodiment 93, wherein the one or more characteristics include one or more of the number of significant transform coefficients.
[0736] 94. The encoder of embodiment 93 or 92, wherein the one or more characteristics include one or more of the following:
[0737] The number of significant transform coefficients, wherein if the number of significant transform coefficients is below a certain threshold, it is less likely that the transform will be ranked or excluded for a subgroup (112) of multi-level types having primary transform coefficients that have undergone secondary transforms (e.g., depending on the number of coefficients in the subgroup 112).
[0738] 95. The encoder according to any one of embodiments 81 to 94, configured to
[0739] Check whether the quantization parameter of the current block is included in a set of one or more predetermined quantization parameters,
[0740] If so, the determination is performed such that
[0741] The set of selectable transforms (98) is further populated by a set of one or more predetermined transforms associated with the set of one or more predetermined quantization parameters.
[0742] 101. A decoder for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual decoding, the decoder supporting a transform set (94) for the block-based residual decoding and being configured to:
[0743] determining (122) from the set of transforms (94) a list of selectable transforms (98) for the current residual block (84) based on the reference transform selected for the neighboring residual block (84', 84") [e.g., for encoding the latter's prediction residual, also from the set 94],
[0744] The prediction residual (100) within the residual block (84) is decoded in the domain of a selected transform (102) in the list of selectable transforms (98) derived from the data stream (14).
[0745] 102. The decoder of embodiment 101, configured to sort (122) the selectable list (98) using the reference transform.
[0746] 103. The decoder according to embodiment 101 or 102, configured to
[0747] The selectable list (98) is ordered (122) by positioning the reference transform or a transform corresponding to the reference transform by a rank (# in "n#") [e.g., with respect to one level, signaled by a high transform index 124, thus possibly a very specialized transform, analysis transform type for adjacent blocks of different sizes], the rank being associated with:
[0748] the most likely choice [e.g., the first position, or the portion associated with the lowest index value of index 124, or the portion associated with the index value associated with the shortest VLC], or
[0749] The second most likely option.
[0750] 104. The decoder according to any one of embodiments 101 to 103, configured to
[0751] Based on the reference transforms selected for the set of neighboring residual blocks (84', 84"), a list of selectable transforms (98) for the current residual block (80) is determined (122) from the set of transforms (94).
[0752] 105. The decoder according to embodiment 104, configured to
[0753] The selectable list (98) is sorted (122) by positioning the reference transforms relative to each other in an order corresponding to the frequency with which the reference transforms were selected for the set of neighboring residual blocks (84', 84").
[0754] 106. The decoder according to any one of embodiments 101 to 105, configured to fill (122) the optional list (98) with the reference transform.
[0755] 107. The decoder of embodiment 106, wherein the reference transform is an analytically definable separable spectral decomposition transform [e.g., DCT, DST, FFT, etc.], and the decoder is configured to:
[0756] The selectable list (98) is populated (122) with another transform derived by adapting the reference transform to a block size (96) of the current residual block (84).
[0757] 108. The decoder according to embodiment 106 or 107, configured to
[0758] The filling is performed in the following cases,
[0759] One or more specific characteristics associated with the neighboring blocks (84', 84") and the current residual block (84) are sufficiently similar, and / or
[0760] The reference transform is a separable spectral decomposition transform.
[0761] 109. The decoder of embodiment 108, wherein the one or more characteristics include one or more of intra-prediction modes.
[0762] 110. The decoder according to any one of embodiments 101 to 109, configured to
[0763] ordering (122) the selectable list (98) by ranking the transforms in the set (98) of selectable transforms according to their similarity to the reference transform in one or more specific characteristics, and / or
[0764] The selectable list of transformations (98) is determined in such a way that transformations that exceed a certain dissimilarity with the reference transformation in one or more certain characteristics are excluded from the selectable list (98).
[0765] 111. The decoder of embodiment 100, wherein the one or more specific characteristics include one or more primary transforms of the primary transforms [eg, requiring the primary transforms to be equal].
[0766] 112. The decoder according to any one of embodiments 101 to 111, configured to
[0767] ordering (122) the selectable list (98) by ranking the transforms in the set of selectable transforms (98) depending on one or more specific characteristics of the neighboring blocks (84"), and / or
[0768] The selectable transform list (98) is determined in such a way that transforms are excluded from the selectable list (98) depending on one or more specific characteristics of the neighboring block (84').
[0769] 113. The decoder of embodiment 112, wherein the one or more characteristics include one or more of the number of significant transform coefficients.
[0770] 114. The decoder of embodiment 113 or 112, wherein the one or more characteristics include one or more of the following:
[0771] The number of significant transform coefficients, wherein if the number of significant transform coefficients is below a certain threshold, it is less likely that the transform will be ranked or excluded for a subgroup (112) of multi-level types having primary transform coefficients that have undergone secondary transforms (e.g., depending on the number of coefficients in the subgroup 112).
[0772] 115. The decoder according to any one of embodiments 101 to 114, configured to
[0773] Check whether the quantization parameter of the current block is included in a set of one or more predetermined quantization parameters,
[0774] If so, the determination is performed such that
[0775] The set of selectable transforms (98) is further populated by a set of one or more predetermined transforms associated with the set of one or more predetermined quantization parameters.
[0776] 121. An encoder for encoding a picture (12) into a data stream (14) using block-based prediction and block-based residual coding, the encoder supporting a transform set (94) for the block-based residual coding and being configured to:
[0777] A list of selectable transforms (98) for transforming the current residual block (84) is determined from the transform set in a manner dependent on the quantization parameter of the current block, such that
[0778] If the quantization parameter corresponds to a quantization finer than a certain threshold,
[0779] then the optional transform list (98) for the current residual block is populated by at least one multi-level transform (106), the at least one multi-level transform (106) comprising a primary transform (108) applied to a prediction residual (100) within the current residual block and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform, and
[0780] If the quantization parameter corresponds to a quantization coarser than a certain threshold,
[0781] then in addition to or instead of the at least one multi-level transform (106), the optional transform list for the current residual block is filled by a modification of the at least one multi-level transform, wherein the primary transform coefficients (114) outside the subgroup (112) are set to zero, and
[0782] The prediction residual (100) within the residual block (84) is encoded using a selected transform (102) from the list of selectable transforms (98), and the selected transform is signaled in the data stream (14).
[0783] 122. An encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set (94) for the block-based residual coding and being configured to:
[0784] A list of selectable transforms (98) for the current residual block is determined (122) from the transform set based on a reference transform selected for the neighboring residual blocks in a manner dependent on the number or sum of significant transform coefficients in one or more neighboring residual blocks (84', 84"), such that
[0785] If the number or sum is greater than a certain threshold,
[0786] then the optional transform list (98) for the current residual block is populated by at least one multi-level transform, the at least one multi-level transform comprising a primary transform applied to the prediction residual (100) of the current residual block and a secondary transform applied to a subgroup of primary transform coefficients of the primary transform, and if the number or the sum is less than the specific threshold,
[0787] then in addition to or instead of the at least one multi-level transform, the list of alternative transforms for the current residual block is filled by a modification of the at least one multi-level transform, wherein primary transform coefficients outside the subgroup are set to zero, and
[0788] The prediction residual within the residual block is encoded using a selected transform from the list of selectable transforms, and the selected transform is signaled in the data stream.
[0789] 123. A decoder for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual decoding, the decoder supporting a transform set (94) for the block-based residual decoding and being configured to:
[0790] A list of selectable transforms (98) for the current residual block (84) is determined from the transform set in a manner that depends on the quantization parameter of the current block, such that
[0791] If the quantization parameter corresponds to a quantization finer than a certain threshold,
[0792] then the optional transform list (98) for the current residual block is populated by at least one multi-level transform (106), the at least one multi-level transform (106) comprising a primary transform (108) applied to a prediction residual (100) within the current residual block and a secondary transform (110) applied to a subgroup (112) of primary transform coefficients (114) of the primary transform, and
[0793] If the quantization parameter corresponds to a quantization coarser than a certain threshold,
[0794] then in addition to or instead of the at least one multi-level transform (106), the optional transform list for the current residual block is filled by a modification of the at least one multi-level transform, wherein the primary transform coefficients (114) outside the subgroup (112) are set to zero, and
[0795] The prediction residual (100) within the residual block (84) is decoded in the domain of a selected transform (102) in the list of selectable transforms (98) derived from the data stream (14).
[0796] 124. A decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding and being configured to:
[0797] A list of selectable transforms (98) for the current residual block is determined (122) from the transform set based on a reference transform selected for the neighboring residual blocks in a manner dependent on the number or sum of significant transform coefficients in one or more neighboring residual blocks (84', 84"), such that
[0798] If the number or sum is greater than a certain threshold,
[0799] then the optional transform list (98) for the current residual block is populated by at least one multi-level transform, the at least one multi-level transform comprising a primary transform applied to the prediction residual (100) of the current residual block and a secondary transform applied to a subgroup of primary transform coefficients of the primary transform, and if the number or the sum is less than the specific threshold,
[0800] then in addition to or instead of the at least one multi-level transform, the list of alternative transforms for the current residual block is filled by a modification of the at least one multi-level transform, wherein primary transform coefficients outside the subgroup are set to zero, and
[0801] The prediction residual within the residual block is decoded in a domain of a selected one of the selectable transform lists derived from the data stream.
[0802] 131. An encoder for encoding a picture (12) into a data stream (14) using block-based prediction and block-based residual coding, the encoder supporting a transform set (94) for the block-based residual coding and being configured to:
[0803] Determining (130) a list of selectable transforms (98) for the current residual block from the transform set (94);
[0804] encoding transform coefficient data (126) into the data stream (14) using a selected transform (102) from the selectable transform list (98), the transform coefficient data (126) representing a prediction residual (100) within the residual block (84);
[0805] The selected transform (102) is signaled (128) in the data stream (14) and / or the determination of the selectable list (98) is performed in a manner dependent on the transform coefficient data (126) or on a portion of the transform coefficient data (126).
[0806] 132. The encoder according to embodiment 21 is configured to
[0807] determining (130) the selectable transform list (98) by filling the selectable list (98) with a number of transforms from the transform set (94), the number being dependent on the transform coefficient data (126) or a portion of the transform coefficient data,
[0808] Signaling the selected transform (102) in the data stream (14) is performed in such a way that the lower the number, the lower the code rate spent in the data stream (14) for signaling the selected transform (102).
[0809] 133. The encoder according to embodiment 131 is configured to
[0810] determining (130) the selectable transform list (98) by ordering the selectable transform list (98) dependent upon the transform coefficient data (126) or a portion of the transform coefficient data (126),
[0811] Signaling (128) the selected transform (102) is performed in the data stream using a variable length code, codewords of the variable length code being assigned to transforms in the list of selectable transforms (98) depending on the order of the transforms in the list of selectable transforms (98).
[0812] 134. The encoder according to embodiment 132 or 133 is configured to
[0813] causing the transform coefficient data to include indications of significant transform coefficient positions (132) of a selected transform and values of transform coefficients (134) of the selected transform (102), the values traversing from the significant transform coefficient positions (132) onwards in a predetermined scan order (136) that sequentially traverses the coefficient positions of the selected transform;
[0814] Wherein said determining (130) is dependent on said indication.
[0815] 135. The encoder according to embodiment 132, 133 or 134 is configured to
[0816] counting the number of significant transform coefficients (134) of the selected transform (102);
[0817] Wherein said determining (130) is dependent on said counting.
[0818] 136. The encoder according to embodiment 134 or 135 is configured to
[0819] evaluating the transform coefficient data (126) as to whether a number of significant transform coefficients (134) of a selected transform (102) within a subgroup (138) of the transform coefficients (134) of the selected transform (102) exceeds a particular threshold;
[0820] The determination (130) depending on the count is performed such that
[0821] If the number is greater than the specified threshold,
[0822] then filling the selectable transform list (98) of the current residual block (84) with at least one multi-level transform (106), the at least one multi-level transform (106) comprising a primary transform applied to the prediction residual (100) of the current residual block and a secondary transform applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (106) to obtain the subgroup (138) of transform coefficients of a selected transform (102), and
[0823] If the number is less than the specified threshold,
[0824] The optional transform list for the current residual block is then not populated with any multi-level transform (106), the multi-level transform (106) comprising a primary transform applied to the prediction residual (100) of the current residual block and a secondary transform applied to the subgroup of primary transform coefficients of the primary transform.
[0825] 201. A decoder for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual decoding, the decoder supporting a transform set (94) for the block-based residual decoding and being configured to:
[0826] determining (130) a list of selectable transforms (98) for the current residual block from the transform set (94);
[0827] decoding transform coefficient data (126) from the data stream (14) using a selected transform (102) from the selectable transform list (98), the transform coefficient data (126) representing a prediction residual (100) within the residual block (84);
[0828] The selected transform (102) is derived (128) from the data stream (14) and / or the determination (130) of the selectable list (98) is performed in a manner dependent on the transform coefficient data (126) or on a portion of the transform coefficient data (126).
[0829] 202. The decoder according to embodiment 201 is configured to
[0830] determining (130) the selectable transform list (98) by filling the selectable list (98) with a number of transforms from the transform set (94), the number being dependent on the transform coefficient data (126) or a portion of the transform coefficient data,
[0831] Signaling the selected transform (102) in the data stream (14) is performed in such a way that the lower the number, the lower the code rate spent in the data stream (14) for signaling the selected transform (102).
[0832] 203. The decoder according to embodiment 201 is configured to
[0833] determining (130) the selectable transform list (98) by ordering the selectable transform list (98) dependent upon the transform coefficient data (126) or a portion of the transform coefficient data (126),
[0834] Signaling (128) the selected transform (102) in the data stream (14) is performed using a variable length code, codewords of the variable length code being assigned to transforms in the list of selectable transforms (98) depending on the order of the transforms in the list of selectable transforms (98).
[0835] 204. The decoder according to embodiment 202 or 203, configured to
[0836] causing the transform coefficient data to include indications of significant transform coefficient positions (132) of a selected transform (102) and values of transform coefficients (134) of the selected transform, the values traversing forward from the significant transform coefficient positions (132) in a predetermined scan order (136) that sequentially traverses the coefficient positions of the selected transform (102);
[0837] Wherein said determining (130) is dependent on said indication.
[0838] 205. The decoder according to embodiment 202, 203 or 204, configured to
[0839] counting the number of significant transform coefficients (134) of the selected transform (102);
[0840] Wherein said determining (130) is dependent on said counting.
[0841] 206. The decoder according to embodiment 204 or 205, configured to
[0842] evaluating the transform coefficient data (126) as to whether a number of significant transform coefficients (134) of a selected transform (106) within a subgroup (138) of the transform coefficients (134) of a selected transform (102) exceeds a particular threshold;
[0843] The determination (130) depending on the count is performed such that
[0844] If the number is greater than the specified threshold,
[0845] then filling the selectable transform list (98) of the current residual block (84) with at least one multi-level transform (106), the at least one multi-level transform (106) comprising a primary transform applied to the prediction residual (100) of the current residual block (84) and a secondary transform applied to a subgroup (112) of primary transform coefficients (114) of the primary transform (106) to obtain the subgroup (138) of transform coefficients of the selected transform (102), and
[0846] If the number is less than the specified threshold,
[0847] The optional transform list for the current residual block is then not populated with any multi-level transform (106), the multi-level transform (106) comprising a primary transform applied to the prediction residual (100) of the current residual block and a secondary transform applied to the subgroup of primary transform coefficients of the primary transform.
[0848] 141. An encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding and being configured to:
[0849] determining (130) a list of selectable transforms (98) for a current residual block (84) from the transform set;
[0850] signaling (128) the selected transformation in the data stream,
[0851] Transform coefficients are encoded (140) using a selected transform (102) from the selectable transform list in a manner that depends on the selected transform or the selectable transform set (98), the transform coefficients (134) representing a prediction residual within the residual block.
[0852] 142. The encoder according to embodiment 141,
[0853] wherein the selectable transform list includes transforms with different numbers of transform coefficients,
[0854] The encoding of the transform coefficients is performed in such a way that the lower the number of transform coefficients of the selected transform, the lower the code rate spent for the encoding of the transform coefficients in the data stream (14).
[0855] 143. The encoder according to embodiment 141 or 142, wherein the selectable transform list includes transforms of different numbers of transform coefficients (134),
[0856] wherein said encoding of said transform coefficients comprises encoding indications of significant transform coefficient positions (132) of a selected transform (102) and values of transform coefficients (134) of the selected transform, said values being traversed from said significant transform coefficient positions onwards in a predetermined scan order (136) that sequentially traverses the coefficient positions of the selected transform;
[0857] The encoder is configured to encode the transform coefficients (134) in a manner that achieves:
[0858] The lower the number of transform coefficients of the selected transform, the lower the code rate spent for the encoding of the indication in the data stream.
[0859] 144. The encoder according to embodiment 141 or 142,
[0860] wherein the selectable transform list includes transforms of a first number of transform coefficients (134) and transforms of a second number of transform coefficients (134) greater than the first number,
[0861] The encoding of the transform coefficients includes:
[0862] In case the number of transform coefficients of the selected transform is said second number,
[0863] encoding indications of significant transform coefficient positions of a selected transform and values of transform coefficients of the selected transform, the values traversing forward from the significant transform coefficient positions in a predetermined scanning order that sequentially traverses the coefficient positions of the selected transform;
[0864] In case the number of transform coefficients of the selected transform is said first number,
[0865] The values of all of the first number of transform coefficients of the selected transform are encoded.
[0866] 145. The encoder according to any one of embodiments 141 to 144,
[0867] wherein the selectable transform list comprises at least one multi-level transform, each multi-level transform comprising a primary transform applied to the current residual block and a secondary transform applied to a subgroup of primary transform coefficients of the primary transform coefficients, wherein the subgroups are different for different multi-level transforms in the at least one multi-level transform,
[0868] The encoder is configured to encode the transform coefficients in the following manner:
[0869] encoding an indication of a significant transform coefficient position of a selected transform and a value of a transform coefficient of the selected transform, the value traversing from the significant transform coefficient position onwards in a predetermined scan order that sequentially traverses the coefficient positions of the selected transform, wherein if the selected transform is a multi-level transform, the indication comprises a flag indicating whether the significant transform coefficient position is within the subgroup of transform coefficients, and if the transform coefficient position is within the subgroup of transform coefficients, the indication indicates the significant transform coefficient position relative to a last traversed position among all transform coefficients of the selected transform in the predetermined scan order, and if the transform coefficient position is not within the subgroup of transform coefficients, the indication indicates the significant transform coefficient position relative to a last traversed position among all transform coefficients not within the subgroup in the predetermined scan order, wherein the predetermined scan order traverses all transform coefficients within the subgroup after having traversed all transform coefficients not within the subgroup, and / or
[0870] If the selected transform is of the multi-level type, encoding values of transform coefficients of the selected transform using entropy coding with a probability estimate that depends on whether the transform coefficient is within the subgroup of transform coefficients of the selected transform,
[0871] If the selected transform is of the multi-level type, encoding the values of the transform coefficients of the selected transform using entropy coding with probability estimation in a manner that depends on whether the transform coefficients of the selected transform are within the subgroup of transform coefficients of the selected transform,
[0872] Wherein the probability estimate depends on one or more neighboring transform coefficients.
[0873] 145a. The encoder according to any one of embodiments 141 to 145,
[0874] wherein the selectable transform list comprises at least one multi-level transform, each multi-level transform comprising a primary transform applied to the current residual block and a secondary transform applied to a subgroup of primary transform coefficients of the primary transform, wherein the selectable list comprises at least one transform of only the primary transform type,
[0875] The encoder is configured to encode the transform coefficients in the following manner:
[0876] encoding an indication of a significant transform coefficient position of the selected transform and a value of the transform coefficient of the selected transform, the value being traversed onwards from the significant transform coefficient position in a predetermined scan order that sequentially traverses the coefficient positions of the selected transform, wherein the indication is relative to a last traversed position among all transform coefficients of the selected transform in the predetermined scan order if the selected transform is of the primary-only transform type, or relative to a last traversed position among all transform coefficients that are not within the subgroup in the predetermined scan order if the selected transform is a multi-level transform, and / or
[0877] by encoding an indication of a selected significant transform coefficient position and a value of a transform coefficient of the selected transform, the value traversing in a predetermined scan order sequentially through the coefficient positions of the selected transform onwards from the significant transform coefficient position, wherein if the selected transform is a multi-level transform, the indication comprises a flag indicating whether the significant transform coefficient position is within the subgroup of transform coefficients, and if the transform coefficient position is within the subgroup of transform coefficients, the indication indicates the significant transform coefficient position relative to a position last traversed in the predetermined scan order among all transform coefficients of the selected transform, and if the transform coefficient position is not within the subgroup of transform coefficients, the indication indicates the significant transform coefficient position relative to a position last traversed in the predetermined scan order among all transform coefficients not within the subgroup, wherein after traversing all transform coefficients not within the subgroup, the predetermined scan order traverses all transform coefficients within the subgroup, and / or
[0878] If the selected transform is of the multi-level type, encoding the values of the transform coefficients of the selected transform using entropy coding with a probability estimate that depends on whether the transform coefficient is within the subgroup of transform coefficients of the selected transform,
[0879] If the selected transform is of the multi-level type, encoding the values of the transform coefficients of the selected transform in a manner that depends on whether the transform coefficients of the selected transform are within the subgroup of transform coefficients of the selected transform using entropy coding with a probability estimate that depends on one or more neighboring transform coefficients.
[0880] 146. The encoder according to any one of embodiments 141 to 145,
[0881] is configured to signal the selected transform using a variable length coded index
[0882] is configured to encode transform coefficients of a selected transform by encoding their values using binarization and binary entropy coding, wherein
[0883] The probability estimate for binary entropy coding depends on the VLC index, and / or the binarization depends on the VLC index.
[0884] 147. The encoder according to any one of embodiments 141 to 146, configured to
[0885] The transform coefficients of the selected transform are encoded by encoding their values using entropy coding, wherein
[0886] The entropy encoding depends on one or more neighboring transforms in a manner that depends on the selected transform.
[0887] 148. The encoder according to embodiment 147,
[0888] The method is configured to encode the transform coefficients of the selected transform by encoding the values of the transform coefficients using entropy coding, the entropy coding being performed in the following manner:
[0889] selecting a local template of one or more neighboring transform coefficients in a manner that depends on the position of said transform coefficients in the selected transform,
[0890] determining a selected context for the transform coefficient using a mapping of a domain of possible values for the or a neighboring transform coefficient to a set of one or more contexts for the transform coefficient,
[0891] entropy encoding the values of the transform coefficients using probability estimates associated with the selected context,
[0892] Wherein at least one of said selecting of said local template and said mapping depends on a selected transformation.
[0893] 149. The encoder according to embodiment 148 is configured to
[0894] Said encoding of the values of said transform coefficients of the selected transform is performed by binarizing said values using binary entropy coding, wherein said probability estimate associated with the selected context is used for a segment of said binarization indicating whether said value is zero.
[0895] 150. The encoder according to any one of embodiments 141 to 149, configured to perform signaling of a selected transform in the data stream in the following manner,
[0896] Signaling of the selected transform with respect to the relative positioning of the transform coefficient data and / or decomposition of the signaling into syntax elements
[0897] Depends on the optional transform list.
[0898] 161. A decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding and being configured to:
[0899] determining (130) a list of selectable transforms (98) for the current residual block from the transform set (94);
[0900] deriving (128) a selected transform from the data stream,
[0901] Transform coefficients are decoded from the data stream using a selected transform from the list of selectable transforms in a manner that depends on the selected transform (102) or on the set of selectable transforms (98), the transform coefficients representing a prediction residual within the residual block.
[0902] 162. The decoder according to embodiment 161,
[0903] wherein the selectable transform list includes transforms with different numbers of transform coefficients,
[0904] The decoding of the transform coefficients is performed in such a way that the lower the number of transform coefficients of the selected transform, the lower the code rate spent for the transform coefficients in the data stream.
[0905] 163. The decoder according to embodiment 161 or 162,
[0906] wherein the selectable transform list includes transforms with different numbers of transform coefficients (134),
[0907] wherein the decoding of the transform coefficients comprises decoding indications of significant transform coefficient positions (132) of a selected transform (102) and values of the transform coefficients (134) of the selected transform, the values being traversed forward from the significant transform coefficient positions in a predetermined scan order (136) that sequentially traverses the coefficient positions of the selected transform;
[0908] wherein the decoder is configured to decode the transform coefficients in the following manner,
[0909] The lower the number of transform coefficients (134) of the selected transform, the lower the code rate spent for the indication in the data stream.
[0910] 164. The decoder according to embodiment 161 or 162,
[0911] wherein the selectable transform list includes transforms of a first number of transform coefficients (134) and transforms of a second number of transform coefficients (134) greater than the first number,
[0912] wherein said decoding of said transform coefficients comprises
[0913] In case the number of transform coefficients of the selected transform is said second number,
[0914] decoding indications of significant transform coefficient positions of a selected transform and values of transform coefficients of the selected transform, the values being traversed onwards from the significant transform coefficient positions in a predetermined scanning order that sequentially traverses the coefficient positions of the selected transform; or
[0915] In case the number of transform coefficients of the selected transform is said first number,
[0916] The values of all of the first number of transform coefficients of the selected transform are decoded.
[0917] 165. The decoder according to any one of embodiments 161 to 164,
[0918] wherein the selectable transform list comprises at least one multi-level transform, each multi-level transform comprising a primary transform applied to the current residual block and a secondary transform applied to a subgroup of primary transform coefficients of the primary transform, wherein the subgroups are different for different transforms in the at least one multi-level transform,
[0919] The decoder is configured to encode the transform coefficients in the following manner:
[0920] by decoding an indication of a significant transform coefficient position of a selected transform and a value of a transform coefficient of the selected transform, the value being traversed from the significant transform coefficient position onwards in a predetermined scan order that sequentially traverses the coefficient positions of the selected transform, wherein if the selected transform is a multi-level transform, the indication comprises a flag indicating whether the significant transform coefficient position is within the subgroup of transform coefficients, and if the significant transform coefficient position is within the subgroup of transform coefficients, the indication indicates the significant transform coefficient position relative to a position that was last traversed among all transform coefficients of the selected transform in the predetermined scan order, and if the transform coefficient position is not within the subgroup of transform coefficients, the indication indicates the significant transform coefficient position relative to a position that was last traversed among all transform coefficients that are not within the subgroup in the predetermined scan order, wherein after traversing all transform coefficients that are not within the subgroup, the predetermined scan order traverses all transform coefficients within the subgroup, and / or
[0921] if the selected transform is of the multi-level type, decoding the values of the transform coefficients of the selected transform by using entropy coding with a probability estimate that depends on whether the transform coefficient is within the subgroup of transform coefficients of the selected transform,
[0922] If the selected transform is of the multi-level type, decoding the values of the transform coefficients of the selected transform in a manner that depends on whether the transform coefficients of the selected transform are within the subgroup of transform coefficients of the selected transform using entropy coding with a probability estimate, wherein the probability estimate depends on one or more neighboring transform coefficients.
[0923] 165a. The decoder according to any one of embodiments 161 to 165,
[0924] wherein the selectable transform list comprises at least one multi-level transform, each multi-level transform comprising a primary transform applied to the current residual block and a secondary transform applied to a subgroup of primary transform coefficients of the primary transform, wherein the selectable list comprises at least one transform of only the primary transform type,
[0925] The decoder is configured to encode the transform coefficients in the following manner:
[0926] decoding an indication of a significant transform coefficient position of a selected transform and a value of a transform coefficient of the selected transform, the value being traversed onwards from the significant transform coefficient position in a predetermined scan order that sequentially traverses the coefficient positions of the selected transform, wherein the indication is relative to a last traversed position among all transform coefficients of the selected transform in the predetermined scan order in case the selected transform is of a primary-only transform type, or relative to a last traversed position among all transform coefficients that are not within the subgroup in the predetermined scan order in case the selected transform is a multi-level transform, and / or
[0927] decoding an indication of a significant transform coefficient position of a selected transform and a value of a transform coefficient of the selected transform, the value being traversed from the significant transform coefficient position onwards in a predetermined scan order that sequentially traverses the coefficient positions of the selected transform, wherein if the selected transform is a multi-level transform, the indication comprises a flag indicating whether the significant transform coefficient position is within the subgroup of transform coefficients, and if the significant transform coefficient position is within the subgroup of transform coefficients, the indication indicates the significant transform coefficient position relative to a position that was last traversed among all transform coefficients of the selected transform in the predetermined scan order, and if the significant transform coefficient position is not within the subgroup of transform coefficients, the indication indicates the significant transform coefficient position relative to a position that was last traversed among all transform coefficients that are not within the subgroup in the predetermined scan order, wherein the predetermined scan order traverses all transform coefficients within the subgroup after all transform coefficients that are not within the subgroup have been traversed, and / or
[0928] if the selected transform is of said multi-level type, decoding the values of the transform coefficients of the selected transform by using entropy coding with a probability estimate, said probability estimate being dependent on whether said transform coefficient is within said subgroup of transform coefficients of the selected transform, and / or
[0929] If the selected transform is of the multi-level type, decoding the values of the transform coefficients of the selected transform in a manner that depends on whether the transform coefficients of the selected transform are within the subgroup of transform coefficients of the selected transform using entropy coding with a probability estimate, wherein the probability estimate depends on one or more neighboring transform coefficients.
[0930] 166. The decoder according to any one of embodiments 161 to 165,
[0931] is configured to use a variable length coded index to derive the selected transform
[0932] is configured to decode transform coefficients of a selected transform by decoding their values using binarization and binary entropy decoding, wherein
[0933] The probability estimate for binary entropy coding depends on the VLC index, and / or the binarization depends on the VLC index.
[0934] 167. The decoder according to any one of embodiments 161 to 166, configured to
[0935] The transform coefficients of the selected transform are decoded by decoding their values using entropy decoding, wherein
[0936] The entropy encoding depends on one or more neighboring transform coefficients in a manner that depends on the selected transform.
[0937] 168. The decoder according to embodiment 167,
[0938] is configured to decode the transform coefficients of the selected transform by decoding their values using entropy decoding, the entropy decoding being performed by:
[0939] selecting a local template of one or more neighboring transform coefficients in a manner that depends on the position of said transform coefficient in the selected transform,
[0940] determining a selected context for the transform coefficient using a mapping of a domain of possible values for the one or neighboring transform coefficients to a set of one or more contexts for the transform coefficient,
[0941] entropy decoding the values of the transform coefficients using probability estimates associated with the selected context,
[0942] Wherein at least one of said selecting of said local template and said mapping depends on a selected transformation.
[0943] 169. The decoder according to embodiment 168,
[0944] The decoding of the value of the transform coefficient of the selected transform is performed by binarizing the value using binary entropy decoding, wherein the probability estimate associated with the selected context is a segment of the binarization indicating whether the value is zero.
[0945] 170. The decoder according to any one of embodiments 161 to 169, configured to
[0946] Signaling the selected transformation is performed in the data stream in a manner that achieves
[0947] Signaling of the selected transform with respect to the relative positioning of the transform coefficient data, and / or decomposition of the signaling into syntax elements
[0948] Depends on the optional transform list.
[0949] 181. An encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set for the block-based residual coding and configured to:
[0950] Determine a list of selectable transforms for the current residual block from the transform set;
[0951] encoding the prediction residual in the residual block using a selected transform from the selectable transform list;
[0952] signaling (128) the selected transform in the data stream using a transform indicator,
[0953] Wherein the transform indicator is signaled in the data stream using a code having one or more digits, wherein each digit in the set of one or more digits is uniquely associated with a corresponding transform attribute.
[0954] 182. The encoder of embodiment 181, wherein each transform attribute is one of:
[0955] whether the selected transformation is a multi-level transformation, and
[0956] Whether the selected transform is a transform having transform coefficients less than a predetermined number of transform coefficients.
[0957] 183. The encoder according to embodiment 181 or 182 is configured to
[0958] At least one digit of the set of at least one digit is encoded using entropy coding using a probability estimate that depends on a transform indicator of a neighboring residual block.
[0959] 191. A decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a transform set for the block-based residual decoding and being configured to:
[0960] Determine a list of selectable transforms for the current residual block from the transform set;
[0961] decoding a prediction residual within the residual block from the data stream (14) using a selected transform from the list of selectable transforms;
[0962] deriving (128) a selected transform (102) from the data stream using a transform indicator (124),
[0963] The transform indicator is derived from the data stream using a code having one or more digits [e.g., a digit segment of 124 that is binary arithmetic coded or a syntax element consisting of 124 or parsable from 14], wherein each of the set of one or more digits is uniquely associated with a corresponding transform attribute.
[0964] 192. The decoder of embodiment 191, wherein each transform attribute is one of:
[0965] whether the selected transformation is a multi-level transformation, and
[0966] Whether the selected transform is a transform having transform coefficients less than a predetermined number of transform coefficients.
[0967] 193. The decoder according to embodiment 191 or 192, configured to
[0968] At least one digit of the set of at least one digit is decoded using entropy decoding using a probability estimate that depends on a transform indicator of a neighboring residual block.
[0969] A method performed by any of the above encoders / decoders,
[0970] a computer program for performing the method,
[0971] The data stream generated by the encoding method of the present invention.
[0972] The invention can be further implemented by the following embodiments, which can be combined with any of the examples and embodiments described and claimed herein:
[0973] 1. An encoder for encoding a picture (12) into a data stream using block-based prediction and block-based residual coding, the encoder supporting a transform set (94) for the block-based residual coding and being configured to:
[0974] determining (122) a transform candidate list (98) for a transform of the current residual block (84) from the transform set (94) based on the height and width of the current residual block (84), and
[0975] A prediction residual (100) within the residual block (84) is encoded using a selected transform (102) from a list of selectable transforms (98), and the selected transform (102) is selectively signaled in the data stream (14).
[0976] 2. The encoder according to embodiment 1, wherein
[0977] The encoder supports multiple block sizes.
[0978] For each block size, the transform set (94) comprises a subset of transforms whose domain corresponds to the respective block size,
[0979] For each transform in the transform set (94), the encoder supports an inverse transform whose domain is consistent with a codomain of the corresponding transform, and the encoder uses the inverse transform to fill a decoded picture buffer at a residual block for which the corresponding transform has been selected,
[0980] The encoder is configured to populate the transform candidate list (98) exclusively with transforms in the transform subset when determining the transform candidate list (98), the domain of the transform corresponding to the height and width of the current residual block (84).
[0981] 3. The encoder according to embodiment 1 or 2, configured to, when determining the transform candidate list (98):
[0982] If the height and width of the current residual block (84) meet a first criterion, populating the transform candidate list (98) with one or more transforms from the transform subset, the domain of the one or more transforms corresponding to the height and width of the current residual block (84) and the codomain of the one or more transforms being smaller than the domain of the one or more transforms, or
[0983] If the height and width of the current residual block (84) do not meet the first criterion, the one or more transforms in the transform subset are excluded from the transform candidate list, the domain of the one or more transforms corresponding to the height and width of the current residual block (84), and the codomain of the one or more transforms is smaller than the domain of the one or more transforms.
[0984] 4. The encoder of embodiment 3, wherein the one or more transforms are one or more of: DCT-II, DST-VII, and DCT-III.
[0985] 5. The encoder according to any one of embodiments 1 to 4, configured to, when determining the transform candidate list (98):
[0986] If the height and width of the current residual block (84) meet a second criterion, populating the transform candidate list (98) with an identity transform from the transform subset, the domain of the identity transform corresponding to the height and width of the current residual block (84), or
[0987] If the height and width of the current residual block (84) do not satisfy a second criterion, the identity transform in the transform subset is excluded from the transform candidate list, the domain of the identity transform corresponding to the height and width of the current residual block (84).
[0988] 6. The encoder according to any one of embodiments 1 to 5 is configured to check the first standard and / or the second standard by checking whether the height, the width, both the height and the width, and / or the product of the height and the width exceeds a specific threshold.
[0989] 7. The encoder according to any one of embodiments 1 to 6, configured to, when determining the transform candidate list (98):
[0990] filling the transform candidate list (98) with a separable spectral decomposition transform from the transform subset, the domain of which corresponds to the size of the current residual block (84), if the height and width of the current residual block (84) meet a third criterion, or
[0991] If the height and width of the current residual block (84) do not meet a third criterion, the separable spectral decomposition transform in the transform subset is excluded from the transform candidate list (98), and the domain of the separable spectral decomposition transform corresponds to the size of the current residual block (84).
[0992] 8. The encoder according to embodiment 7 is configured to check the third criterion by checking whether the ratio of the height to the width exceeds a certain threshold.
[0993] 9. The encoder according to any one of embodiments 1 to 8, configured to, when determining the transform candidate list (98):
[0994] If the height and width of the current residual block (84) correspond to a first predetermined block size, populating the transform candidate list (98) with a first one or more transforms in the transform subset, the domain of the first one or more transforms corresponding to the height and width of the current residual block (84) and the first one or more transforms being a multi-level transform (106), the multi-level transform (106) comprising a primary transform (108) applied to a prediction residual (100) within the current residual block (84) and a secondary transform (110) applied to a first subgroup (112) of primary transform coefficients (114) of the primary transform (108), or
[0995] If the height and width of the current residual block (84) correspond to a second predetermined block size, populating the transform candidate list (98) with a second one or more transforms in the transform subset, the domain of the second one or more transforms corresponding to the height and width of the current residual block (84) and the second one or more transforms being a multi-level transform (106), the multi-level transform (106) comprising a primary transform (108) applied to a prediction residual (100) within the current residual block and a secondary transform (110) applied to a second subgroup (112) of primary transform coefficients (114) of the primary transform (108),
[0996] wherein scaling that maps a first codomain of the primary transform (108) of the first one or more transforms onto a second codomain of the primary transform (108) of the first one or more transforms does not map an outer perimeter of the first subgroup within the first codomain onto an outer perimeter of the second subgroup within the second codomain.
[0997] 10. A decoder for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual decoding, the decoder supporting a transform set (94) for the block-based residual decoding and being configured to:
[0998] determining a transform candidate list (98) for transforming the current residual block (84) from the transform set (94) based on the height and width of the current residual block (84), and
[0999] A prediction residual (100) within the residual block (84) is decoded in the domain of a selected transform (102) in a list of selectable transforms (98) selectively derived from the data stream (14).
[1000] 11. The decoder of embodiment 10, wherein
[1001] The decoder supports multiple block sizes (96),
[1002] For each block size (96), the transform set (94) comprises a subset of transforms whose codomain corresponds to the respective block size (96),
[1003] The decoder is configured to populate the transform candidate list (98) exclusively with transforms in the transform subset when determining the transform candidate list (98), the codomain of the transform corresponding to the height and width of the current residual block (84).
[1004] 12. The decoder according to embodiment 10 or 11, configured to, when determining the transform candidate list (98):
[1005] If the height and width of the current residual block (84) meet a first criterion, populating the transform candidate list (98) with one or more transforms from the transform subset, the codomain of the one or more transforms corresponding to the height and width of the current residual block (84) and the domain of the one or more transforms being smaller than the codomain of the one or more transforms,
[1006] If the height and width of the current residual block (84) do not meet the first criterion, one or more transforms in the transform subset are excluded from the transform candidate list (98), the codomain of the one or more transforms corresponding to the height and width of the current residual block (84), and the domain of the one or more transforms is smaller than the domain of the one or more transforms.
[1007] 13. The decoder of embodiment 12, wherein the one or more transforms are one or more of: inverse DCT-II, inverse DST-VII, and inverse DCT-III.
[1008] 14. The decoder according to any one of embodiments 10 to 13, configured to, when determining the transform candidate list (98):
[1009] If the height and width of the current residual block (84) meet a second criterion, filling the transform candidate list (98) with an identity transform in the transform subset, the codomain of the identity transform corresponding to the height and width of the current residual block (84),
[1010] If the height and width of the current residual block (84) do not satisfy a second criterion, the identity transform in the transform subset is excluded from the transform candidate list (98), the codomain of the identity transform corresponding to the height and width of the current residual block (84).
[1011] 15. The decoder according to any one of embodiments 10 to 14 is configured to check the first criterion and / or the second criterion by checking whether the height, the width, both the height and the width, and / or the product of the height and the width exceeds a specific threshold.
[1012] 16. The decoder according to any one of embodiments 10 to 15, configured to, when determining the transform candidate list (98):
[1013] filling the transform candidate list (98) with a separable spectral decomposition transform from the transform subset, the codomain of which corresponds to the size of the current residual block (84), if the height and width of the current residual block (84) meet a third criterion, or
[1014] If the height and width of the current residual block (84) do not meet a third criterion, the separable spectral decomposition transform in the transform subset is excluded from the transform candidate list (98), and the codomain of the separable spectral decomposition transform corresponds to the size of the current residual block (84).
[1015] 17. The decoder of embodiment 16, configured to check the third criterion by checking whether the ratio of the height to the width exceeds a certain threshold.
[1016] 18. The decoder according to any one of embodiments 10 to 17, configured to, when determining the transform candidate list (98):
[1017] If the height and width of the current residual block (84) correspond to a first predetermined block size, populating the transform candidate list (98) with a first one or more transforms in the transform subset, the codomain of the first one or more transforms corresponding to the height and width of the current residual block (84) and the first one or more transforms inverting a multi-level transform (106), the multi-level transform (106) comprising a primary transform (108) applied to a prediction residual (100) within the current residual block (84) and a secondary transform (110) applied to a first subgroup (112) of primary transform coefficients (114) of the primary transform (108), or
[1018] If the height and width of the current residual block (84) correspond to a second predetermined block size, populating the transform candidate list (98) with a second one or more transforms in the transform subset, the codomain of the second one or more transforms corresponding to the height and width of the current residual block (84) and the second one or more transforms inverting a multi-level transform (106), the multi-level transform (106) comprising a primary transform (108) applied to a prediction residual (100) within the current residual block (84) and a secondary transform (110) applied to a second subgroup (112) of primary transform coefficients (114) of the primary transform (108),
[1019] wherein scaling that maps a first codomain of the primary transform (108) of the first one or more transforms onto a second codomain of the primary transform (108) of the first one or more transforms does not map an outer perimeter of the first subgroup within the first codomain onto an outer perimeter of the second subgroup within the second codomain.
[1020] 19. A method for encoding a picture (12) into a data stream (14) using block-based prediction and block-based residual coding, the method supporting a transform set (94) for the block-based residual coding, wherein the method comprises the following steps:
[1021] determining (122) a transform candidate list (98) for transforming the current residual block (84) from the transform set (94) based on the height and width of the current residual block (84), and
[1022] A prediction residual (100) within the residual block (84) is encoded using a selected transform (102) from a list of selectable transforms (98), and the selected transform (102) is selectively signaled in the data stream (14).
[1023] 20. A method for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual decoding, the method supporting a transform set (94) for the block-based residual decoding, wherein the method comprises the following steps:
[1024] determining (122) a transform candidate list (98) for a transform of the current residual block (84) from the transform set (94) based on the height and width of the current residual block (84), and
[1025] A prediction residual (100) within the residual block (84) is decoded in the domain of a selected transform (102) in a list of selectable transforms (98) selectively derived from the data stream (14).
[1026] 21. An encoder for encoding a picture (12) into a data stream (14) u...
Claims
1. An encoder for encoding a picture (12) into a data stream using block-based prediction and block-based residual coding, the encoder being configured to: A transform candidate set (98) for the current residual block (84) is determined (122) from a transform set (94) based on the height and width of the current residual block (84), wherein: The determined transform candidate set (98) includes a primary transform (108); and The transform set (94) includes a number of primary+secondary transforms (106) and transforms of the primary transform (108), each of the primary+secondary transforms (106) including the primary transform (108) and a corresponding non-separable secondary transform (110) applied to a subgroup (112) of primary transform coefficients to obtain a subgroup (138) of secondary transform coefficients; determining whether any transform coefficients outside of the subgroup (138) of secondary transform coefficients are significant; In response to determining that no transform coefficients outside of the subgroup (138) of secondary transform coefficients are significant, including the number of primary+secondary transforms in the determined transform candidate set (98); In response to determining that at least one transform coefficient outside of the subgroup (138) of secondary transform coefficients is significant, excluding the number of primary+secondary transforms from the determined transform candidate set (98); selecting a transform (102) from the determined set of transform candidates (98); In response to determining that no transform coefficients outside of the subgroup (138) of secondary transform coefficients are significant, signaling an index in the data stream (14); In response to determining that at least one transform coefficient outside of the subgroup (138) of secondary transform coefficients is significant, determining not to signal the index in the data stream (14); as well as The prediction residual (100) within the residual block (84) is encoded using the selected transform (102).
2. A decoder for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual decoding, the decoder being configured to: A transform candidate set (98) for the current residual block (84) is determined from a transform set (94) based on the height and width of the current residual block (84), wherein: The determined transform candidate set (98) includes an inverse transform of the primary transform (108); and The transform set (94) includes a number of inverse transforms of primary+secondary transforms (106) and inverse transforms of the primary transform (108), each of the primary+secondary transforms (106) comprising the primary transform (108) and a corresponding non-separable secondary transform (110) applied to a subgroup (112) of primary transform coefficients to obtain a subgroup (138) of secondary transform coefficients; determining whether any transform coefficients outside of the subgroup (138) of secondary transform coefficients are significant; In response to determining that no transform coefficients outside the subgroup (138) of secondary transform coefficients are significant, including inverse transforms of the certain number of primary+secondary transforms in the determined transform candidate set (98); In response to determining that at least one transform coefficient outside of the subgroup (138) of secondary transform coefficients is significant, excluding the number of inverse transforms of the primary+secondary transform from the determined transform candidate set (98); selecting a transform (102) from the determined set of transform candidates (98); In response to determining that no transform coefficients outside the subgroup (138) of secondary transform coefficients are significant, decoding an index from the data stream (14); In response to determining that at least one transform coefficient outside of the subgroup (138) of secondary transform coefficients is significant, determining not to decode the index from the data stream (14); as well as The prediction residual (100) within the residual block (84) is decoded using the selected transform (102).
3. The decoder according to claim 2, wherein: The subgroup (112) of primary transform coefficients represents a low frequency portion of the primary transform.
4. The decoder of claim 2, further configured to decode an indication of a last significant transform coefficient position (132) of a selected transform (102) and values of transform coefficients (134) of the selected transform, the values traversing from the last significant transform coefficient position (132) onwards in a predetermined scanning order (136) that traverses the coefficient positions of the selected transform in sequence, and wherein determining (130) the transform candidate set (98) is dependent on the indication.
5. The decoder according to claim 2, wherein: The subgroups of primary transform coefficients (112) include three 4x4 leftmost / topmost coefficient subgroups.
6. The decoder according to claim 2, wherein: Determining the transform candidate set (98) is also based on intra prediction mode aggregation.
7. The decoder according to claim 2, wherein: The number of primary+secondary transformations (106) is between two and six.
8. A method for encoding a picture (12) into a data stream (14) using block-based prediction and block-based residual coding, the method comprising: A transform candidate set (98) for the current residual block (84) is determined (122) from the transform set (94) based on the height and width of the current residual block (84), where: The determined transform candidate set (98) includes a primary transform (108); and The transform set (94) includes a number of primary+secondary transforms (106) and transforms of the primary transform (108), each of the primary+secondary transforms (106) including the primary transform (108) and a corresponding non-separable secondary transform (110) applied to a subgroup (112) of primary transform coefficients to obtain a subgroup (138) of secondary transform coefficients; determining whether any transform coefficients outside of the subgroup (138) of secondary transform coefficients are significant; In response to determining that no transform coefficients outside of the subgroup (138) of secondary transform coefficients are significant, including the number of primary+secondary transforms in the determined transform candidate set (98); In response to determining that at least one transform coefficient outside of the subgroup (138) of secondary transform coefficients is significant, excluding the number of primary+secondary transforms from the determined transform candidate set (98); selecting a transform (102) from the determined set of transform candidates (98); In response to determining that no transform coefficients outside of the subgroup (138) of secondary transform coefficients are significant, signaling an index in the data stream (14); In response to determining that at least one transform coefficient outside of the subgroup (138) of secondary transform coefficients is significant, determining not to signal the index in the data stream (14); and The prediction residual (100) within the residual block (84) is encoded using the selected transform (102).
9. A method for decoding a picture (12) from a data stream (14) using block-based prediction and block-based residual decoding, the method comprising: A transform candidate set (98) for the current residual block (84) is determined (122) from a transform set (94) based on the height and width of the current residual block (84), wherein: The determined transform candidate set (98) includes an inverse transform of the primary transform (108); and The transform set (94) includes a number of inverse transforms of primary+secondary transforms (106) and inverse transforms of the primary transform (108), each of the primary+secondary transforms (106) comprising the primary transform (108) and a corresponding non-separable secondary transform (110) applied to a subgroup (112) of primary transform coefficients to obtain a subgroup (138) of secondary transform coefficients; determining whether any transform coefficients outside of the subgroup (138) of secondary transform coefficients are significant; In response to determining that no transform coefficients outside the subgroup (138) of secondary transform coefficients are significant, including inverse transforms of the certain number of primary+secondary transforms in the determined transform candidate set (98); In response to determining that at least one transform coefficient outside of the subgroup (138) of secondary transform coefficients is significant, excluding the number of inverse transforms of the primary+secondary transform from the determined transform candidate set (98); selecting a transform (102) from the determined set of transform candidates (98); In response to determining that no transform coefficients outside the subgroup (138) of secondary transform coefficients are significant, decoding an index from the data stream (14); In response to determining that at least one transform coefficient outside of the subgroup (138) of secondary transform coefficients is significant, determining not to decode the index from the data stream (14); and By selectively deriving a selected transform (102) from the set of transform candidates (98) from the data stream (14), a prediction residual (100) within the residual block (84) is decoded in a domain of the selected transform (102).
Citation Information
Patent Citations
Image encoding / decoding method based on wavelet transformation
CN101631243A
Method for encoding image, method for decoding image, image encoder, and image decoder
CN105120272A
Multi-dimensional and multi-stage transforming apparatus and method
US20100046613A1
Coding syntax elements for adaptive scans of transform coefficients for video coding
US20120008675A1
Transform coefficient coding
US20140362925A1
