Device and method for encoding and decoding image by using image boundary processing

The recursive multi-tree partitioning method addresses the inflexibility of H.265/HEVC by reducing splitting modes based on image boundaries, improving encoding and decoding efficiency.

JP2024147790AActive Publication Date: 2024-10-16FRAUNHOFER GESELLSCHAFT ZUR FORDERUNG DER ANGEWANDTEN FORSCHUNG EV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024119404
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2018-03-29
Filing Date
2024-07-25
Publication Date
2024-10-16
Estimated Expiration
2039-03-21

AI Technical Summary

Technical Problem

Existing video coding methods, such as H.265/HEVC, are inflexible when handling image boundaries during recursive partitioning, leading to inefficient bit allocation and reduced signal processing flexibility.

Method used

Implement a recursive multi-tree partitioning method that reduces the set of available splitting modes based on the position of image boundaries, allowing for more flexible segmentation by selecting from a pre-defined set of modes and signaling only the uncertainty in the data stream.

Benefits of technology

Enhances flexibility in image boundary processing while reducing bit allocation for signal processing, providing more efficient encoding and decoding of images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024147790000001_ABST
    Figure 2024147790000001_ABST
Patent Text Reader

Abstract

To provide an image encoding / decoding method, device and program for flexibly performing block division processing in an image boundary.SOLUTION: An image encoding method determines whether the sum of an x coordinate position xb and width wb of a prescribed block 101 m(and / or 101e or 101o) is larger than picture width wf, determines a set of available division modes about a prescribed block that exceeds the boundary of an image 12 on the basis of determination as to whether the sum of a y coordinate position yb and height hb of the prescribed block is larger than picture height, and selects at least one of a vertical two-division and a horizontal two-division for dividing the prescribed block into two subblocks along a split line being at least one of a four-division or one parallel with the boundary of the image in the prescribed block and juxtaposed with the boundary of the image and one arranged at the inner center of the prescribed block from the set of available division modes.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to image and video coding. Embodiments of the present invention relate to a particular method for partitioning input image and video data of a particular size into smaller entities. In particular, embodiments of the present invention relate to image boundary processing in recursive image signal partitioning. [Background technology]

[0002] In modern video coding applications, an input video signal of a certain size is partitioned into smaller chunks [1]. This partition consists of a number of structures with specific information and descriptions associated with each level. In the state-of-the-art video codec H.265 / HEVC [1], the most important subdivision is into macroblocks. These macroblocks, or coding tree units (CTUs), are secondary structures of a predefined size (e.g. 32x32 or 64x64 luma samples) that span a fixed grid on the coded image. All other levels of partitioning are defined in terms of this fixed subdivision. For example, the coarser higher-level partitioning into slices and tiles is defined in terms of the CTUs they contain.

[0003] In H.265 / HEVC[1], starting from each CTU, a quadtree structure is signaled to provide a means to recursively split the fixed CTU into flexible sub-structures. At each level, with a defined parameter range, blocks that need to be split into four sub-blocks or coded at the specified level are inferred or signaled. This process is repeated recursively until no further split is possible as defined by the current high-level parameters or a flag is read indicating that no further splitting needs to be performed at the current level. In this case, the signal of the coding unit and its sub-structures are read.

[0004] The signal of the quadtree partition may sometimes be omitted and inferred as either true or false. Most notably, due to its fixed nature, CTUs are not necessarily aligned with video picture boundaries. In this case, if a CTU or a sub-block of the quadtree partition structure is not completely contained within the picture boundary, the partition flag is inferred as positive without any explicit signaling. If, after partition, a sub-block is completely outside the video picture boundary, no further signaling for this block is read.

[0005] In the development of future video standards with capabilities beyond H.265 / HEVC[1], the quad-tree recursive partitioning structure is extended by various partitioning configurations[2]. If a block is not partitioned into four secondary subparts, a bipartition is signaled to indicate that this block should be partitioned into two rectangular blocks using a partitioning ratio of 1 / 2. This signal also includes information about whether the partition should be applied horizontally or vertically. Such rectangular blocks can be further partitioned recursively into smaller secondary or rectangular blocks using the binary tree partitioning syntax. This extended partitioning tree is called QTBT[2]. QTBT handles image boundaries using an implicit quadrant, exactly like the H.265 / HEVC standard[1]. In QTBT, when a block crosses an image boundary, a quadrant is inferred and no signal is read.

[0006] US Patent No. 5,999,366 describes a new splitting method, Generalized Binary Splitting (GBS), which may or may not include 4-way splitting, but may be used in conjunction with 4-way splitting. In this method, 2-way splitting can be signaled to perform splitting with a split ratio other than 1 / 2 (in QTBT, 2-way splitting performs splitting in the middle of the current block). This splitting may also be signaled using syntax related to the previous splitting (e.g. vertical and parallel instead of horizontal and vertical).

[0007] However, conventional segmentation methods are rather strict in their handling of image boundaries. As explained above, conventional segmentation methods can use an implicit 4-partition at image boundaries. That is, the prior art uses a fully implicit segmentation derivation at image boundaries. Such implicit signal processing may allow good signal processing efficiency. However, this may result in low flexibility. Summary of the Invention [Problem to be solved by the invention]

[0008] Therefore, it is an object of the present invention to extend existing segmentation methods to make them more flexible in image boundary processing while at the same time reducing the bit budget for signal processing of image boundary processing. [Means for solving the problem]

[0009] The invention provides a solution by providing an apparatus for encoding an image according to claim 1, an apparatus for decoding an image according to claim 10, a method for encoding an image according to claim 19, a method for decoding an image according to claim 20 and a computer program according to claim 21.

[0010] A first aspect relates to an apparatus for encoding an image. The apparatus is configured to split an image into leaf blocks using a recursive multi-tree partitioning. That is, the apparatus is configured to split an image into smaller chunks using the recursive multi-tree partitioning. The smaller chunks can be blocks of a certain size. By performing a multi-tree step, the partitioning of the image can start from a tree root block of a first level and end with a leaf block, which is the last block of the multi-tree and thus the smallest element of the partitioning. Between the tree root block and the partitioned leaf block, the apparatus can perform stepwise from one partitioning tree level to one or more subsequent partitioning tree levels, where at each tree level, the current block of a certain tree level is partitioned into two or more smaller blocks. For example, in HEVC, the tree root block is referred to as a so-called macroblock or coding tree unit (CTU), and the leaf block is referred to as a so-called sub-block or coding unit (CU). Thus, the CTU can be partitioned into one or more CUs, and the leaf block or any block at a tree level between the tree root block and the leaf block can be referred to as a sub-block. Further, in this disclosure, the tree root block, or a leaf block, or any block at a tree level between the tree root block and the leaf block, may be referred to as a predetermined block. Thus, the predetermined block may correspond to a predetermined tree level of a multi-tree partition. The device may utilize a block-based coding scheme, i.e., the device is configured to block-based encode an image into a data stream by using a partition of the image into leaf blocks. The partitioning may also be referred to as a split. To partition the tree root block into smaller leaf blocks, a particular partitioning procedure may be used to partition the block into smaller sub-blocks. These partitioning procedures may also be referred to as partitioning modes, and the partitioning modes may differ for different tree levels. Furthermore, the predetermined block may include a predetermined size.When the predetermined blocks are arranged as a grid on the image, due to their size, some of the predetermined blocks may extend beyond the image boundary. For example, a first part of the predetermined block may be placed inside the image, while a second part of the predetermined block may be placed outside the image. Thus, the image boundary may intersect the predetermined block. In general, the image boundary may intersect the predetermined block at different positions. For example, when a corner of the image is included in the predetermined block, the image boundary may intersect the predetermined block horizontally, vertically, or both. To handle these situations, the present invention provides the following solution. While partitioning the image into leaf blocks, the device is configured to partition the predetermined block, which corresponds to a predetermined tree level of the multi-tree partitioning and extends beyond the image boundary, by using a reduced set of partition modes compared to the fully implicit partition derivation used by the prior art. According to the present invention, the device is configured to reduce the set of available partition modes for partitioning the predetermined block depending on the above-mentioned position where the image boundary intersects the predetermined block. Thus, the device obtains a reduced set of one or more partition modes. The reduced set may include a cardinality indicating the number of partition modes available in the reduced set of partition modes. Thus, if the cardinality of the reduced set is 1, i.e. if the reduced set includes only one partition mode, the device is configured to apply the partition mode of this reduced set for partitioning the given block. If the cardinality of the reduced set is greater than 1, i.e. if the reduced set includes two or more different partition modes, the device is configured to select one of these partition modes of the reduced set and apply the selected one of the partition modes for partitioning the given block, the device signaling the respective selection in the data stream. In other words, the device of the present invention may pre-select a reduced set of partition modes for partitioning the current given block. The pre-selection may depend on the current position of the block relative to the image border.As a result, the inventive device may only need to select a suitable partitioning mode from a preselected reduced set of partitioning modes, thereby reducing the bit allocation for signaling the selected partitioning mode in the data stream, since no information about the partitioning itself needs to be transferred and only the remaining uncertainty needs to be signaled, e.g., in one bin, if the reduced partitioning set includes more than one partitioning mode.

[0011] A second aspect relates to an apparatus for decoding an image. The apparatus is configured to divide the image into leaf blocks using a recursive multi-tree partitioning. The apparatus is further configured to decode the image from a data stream on a block basis using the partitioning of the image into leaf blocks. The apparatus is further configured to reduce, when partitioning the image into leaf blocks, a set of available partitioning modes for partitioning the given block according to a position where the boundary intersects with the given block, corresponding to a given tree level of the multi-tree partitioning and extending beyond the boundary of the image, to obtain a reduced set of one or more partitioning modes. If the cardinality of the reduced set is 1, the apparatus is configured to apply the reduced set of partitioning modes for partitioning the given block, and if the cardinality of the reduced set is greater than 1, the apparatus is configured to select one of the partitioning modes of the reduced set and apply the selected one of the partitioning modes for partitioning the given block according to the signaling in the data stream. Regarding the advantages of the apparatus for decoding the image, please refer to the passage above describing the advantages of the apparatus for encoding an image.

[0012] A third aspect relates to a method for encoding an image, the method comprising: dividing the image into leaf blocks using a recursive multi-tree partitioning. The method further comprises: block-based encoding the image into a data stream using the partitioning of the image into leaf blocks. The method further comprises, when dividing the image into leaf blocks, reducing a set of available partitioning modes for partitioning the given block according to a position where the boundary intersects with the given block, corresponding to a given tree level of the multi-tree partitioning and extending beyond the boundary of the image, to obtain a reduced set of one or more partitioning modes. If the cardinality of the reduced set is 1, the method comprises applying the reduced set of partitioning modes for partitioning the given block, and if the cardinality of the reduced set is greater than 1, the method comprises selecting one of the partitioning modes of the reduced set, applying the selected one of the partitioning modes for partitioning the given block, and signaling the selection in the data stream. With regard to advantages of the method for encoding the image, please refer to the passage above describing advantages of the device for encoding an image.

[0013] A fourth aspect relates to a method for decoding an image, the method comprising: splitting the image into leaf blocks using a recursive multi-tree partitioning. The method further comprises: decoding the image from a data stream in a block-based manner using the partitioning of the image into leaf blocks. The method further comprises: for a given block corresponding to a given tree level of the multi-tree partitioning and extending beyond a boundary of the image, reducing a set of available partition modes for partitioning the given block according to a position where the boundary intersects with the given block to obtain a reduced set of one or more partition modes when the cardinality of the reduced set is 1; and if the cardinality of the reduced set is greater than 1, the method further comprises: selecting one of the partition modes of the reduced set; and applying the selected one of the partition modes for partitioning the given block according to a signaling in the data stream. With regard to advantages of the method for decoding the image, please refer to the passage above describing advantages of the device for encoding an image.

[0014] According to a fifth aspect, there is provided computer programs, each of the computer programs configured to implement the above method when executed on a computer or signal processor, such that the above method is implemented by one of the computer programs.

[0015] Advantageous aspects of the invention are the subject matter of the independent claims. Preferred embodiments of the present application as defined in the dependent claims are described below, by way of example, with reference to the figures, in which: [Brief description of the drawings]

[0016] [Figure 1] 1 shows a block diagram of an apparatus for predictively coding images as an example of an encoder capable of implementing the intra-prediction concept according to an embodiment of the present application; [Diagram 2]As an example of a decoder capable of implementing the intra prediction concept according to the embodiments of the present application, a block diagram of an apparatus for predictively decoding an image, matching the apparatus of FIG. 1, is shown. [Diagram 3] 1 shows a schematic diagram illustrating an example of the relationship between the prediction residual signal, the prediction signal, and the reconstructed signal, respectively showing possible settings for coding mode selection, transform selection, and subdivision of the transform performance. [Figure 4A] 1 shows an embodiment of an encoder according to the present concepts. [Figure 4B] 1 shows an embodiment of a decoder according to the present concepts. [Figure 5A] A fully unrestricted decision tree is shown, including the full set of available split modes. [Figure 5B] 1 shows a restricted decision tree that includes a reduced set of partitioning modes according to the present concepts. [Figure 5C] A more complete unrestricted decision tree is shown, including the full set of available splitting modes. [Figure 5D] 1 shows a restricted decision tree that includes a reduced set of partitioning modes according to the present concepts. [Figure 6] 3 shows schematic diagrams of different cases where blocks extend beyond the image border; [Figure 7A] An example of 4-split mode is shown below. [Figure 7B] An example of vertical split mode is shown below. [Figure 7C] An example of a horizontal split mode is shown below. [Figure 7D] An example of vertical 3-way split mode is shown below. [Figure 7E] An example of horizontal split-thirds mode is shown below. [Figure 8A] An example is given of dividing a macroblock into leaf blocks using only 4-way partitioning. [Figure 8B] An example is shown of partitioning a macroblock into leaf blocks using quadrants, vertical quadrants, and horizontal quadrants selected from a reduced set of partition modes. [Figure 9]1 shows a block diagram of a method for encoding an image according to the present concept. [Figure 10] 1 shows a block diagram of a method for decoding an image according to the present concept. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] In the following description, one or more elements that are equal or have equal or equivalent functions are indicated with equal or equivalent reference numbers.

[0018] The following description of the figures may only describe some of the many illustrative and non-limiting examples and embodiments of the concepts described herein. CTUs may be described as a non-limiting example of macroblocks, while CUs may be described as a non-limiting example of subblocks. Furthermore, an image (e.g., rectangular) may be composed of, for example, many tiles, each representing an image itself. In HEVC [1], such tiling is used and processed by the high-level concept of image tiles, for example, for omnidirectional video. Such tiling is available at CTU resolution. If such restrictions were relaxed, the "encoded image" may be composed of many tiles, each with its own boundary and its own content. In that sense, the encoded image may include more image boundaries, with each tile constituting its own "image data" with its own "image data" boundary, and the same rules as described in the present invention may apply. Thus, when the term "image boundary" is used in this specification, it may also include, for example, the "current image data boundary" belonging to one or more tiles.

[0019] The following diagrammatic description begins with the presentation of a description of a block-based predictive coding encoder and decoder for encoding images of a video to form an example of a coding framework in which embodiments can be incorporated. The encoder and decoder are described in Figures 1-3. Below, a description of embodiments of concepts of the present application is presented together with a description of how such concepts can be incorporated into the encoder and decoder of Figures 1 and 2, respectively, although the embodiments in subsequent Figure 4 and described below can also be used to form encoders and decoders that do not operate according to the coding framework underlying the encoder and decoder of Figures 1 and 2.

[0020] FIG. 1 shows an example of an apparatus for predictively coding an image 12 into a data stream 14 using transform-based residual coding. The coding apparatus, or encoder, is indicated with the reference numeral 10. FIG. 2 shows a corresponding decoding apparatus, or decoder 20, also configured to predictively decode an image 12' from the data stream 14 using transform-based residual decoding, where the apostrophe is used to indicate that the image 12' reconstructed by the decoder 20 may deviate from the image 12 originally coded by the apparatus 10 in terms of coding losses introduced by quantization of the predictive residual signal. Although FIG. 1 and FIG. 2 use transform-based predictive residual coding as an example, the embodiments of the present application are not limited to this type of predictive residual coding. This also applies to other details described with respect to FIG. 1 and FIG. 2, as outlined below.

[0021] The encoder 10 may be configured to subject the prediction residual signal to a spatial-to-spectral transformation and to encode the thus obtained prediction residual signal into the data stream 14. Similarly, the decoder 20 may be configured to decode the prediction residual signal from the data stream 14 and to subject the thus obtained prediction residual signal to a spectral-to-spatial transformation.

[0022] Internally, the encoder 10 may include a prediction residual signal former 22 for generating a prediction residual 24 for measuring the deviation between an original signal, i.e. a signal from the image 12, and a prediction signal 26. The prediction residual signal former 22 may for example be a subtractor for subtracting the prediction signal from the original signal, i.e. the signal of the image 12. The encoder 10 further includes a transformer 28 for spatial-spectral transforming the prediction residual signal 24 to obtain a spectral domain prediction residual signal 24', which is quantized by a quantizer 32 included in the encoder 10. The prediction residual signal 24'' thus quantized is coded into the bitstream 14. For this purpose, the encoder 10 may optionally comprise an entropy coder 34 for entropy coding the prediction residual signal transformed and quantized into the data stream 14. The prediction residual 26 is generated by a prediction stage 36 of the encoder 10 on the basis of the prediction residual signal 24'' coded into and decodable from the data stream 14. For this purpose, the prediction stage 36 may internally include an inverse quantizer 38 for inverse quantizing the prediction residual signal 24'' to obtain a spectral domain prediction residual signal 24''' corresponding to the signal 24' except for the quantization losses, as shown in FIG. 1, and then an inverse transformer 40 for subjecting the prediction residual signal 24''' to an inverse transformation, i.e. a spectral-spatial transformation, to obtain a prediction residual signal 24'''' corresponding to the original prediction residual signal 24 except for the quantization losses. A combiner 42 of the prediction stage 36 then adds and recombines the prediction signal 26 and the prediction residual signal 24'''' to obtain a reconstructed signal 46, i.e. a reconstruction of the original signal 12. The reconstructed signal 46 may correspond to the signal 12'. A prediction module 44 of the prediction stage 36 then generates a prediction signal 26 based on the signal 46, for example by using a spatial prediction, i.e. an intra-prediction, and / or a temporal prediction, i.e. an inter-prediction.

[0023] Similarly, as shown in Fig. 2, the decoder 20 may be internally configured from components corresponding to the prediction stage 36 and interconnected in a manner corresponding to the prediction stage 36. In particular, an entropy decoder 50 of the decoder 20 may entropy decode a quantized spectral domain prediction residual signal 24'' from the data stream, after which an inverse quantizer 52, an inverse transformer 54, a synthesizer 56 and a prediction module 58 interconnect and cooperate in the manner described above with respect to the modules of the prediction stage 36 to output a reconstruction signal based on the prediction residual signal 24'', such that an output of the synthesizer 56 results in a reconstructed signal, i.e., an image 12', as shown in Fig. 2.

[0024] Although not specifically described above, it is readily apparent that the encoder 10 can set several encoding parameters, including, for example, prediction modes, motion parameters, etc., according to several optimization schemes, such as, for example, a method for optimizing certain rate- or distortion-related criteria, i.e., encoding cost. For example, the encoder 10 and the decoder 20 and corresponding modules 44, 58 can support different prediction modes, such as intra- and inter-coding modes, respectively. The granularity at which the encoder and the decoder switch between these prediction mode types may correspond to a subdivision of the images 12 and 12' into coding segments or coding blocks, respectively. In units of these coding segments, for example, the image may be subdivided into intra-coded and inter-coded blocks. As outlined in more detail below, the intra-coded blocks are predicted based on the spatial and already coded / decoded neighborhood of the respective blocks. Several intra-coding modes may exist and be selected for each intra-coded segment, including directional or angular intra-coding modes, whereby each segment is filled by extrapolating to the respective intra-coded segment the sample values ​​of the neighborhood along a particular direction specific to the intra-coding mode of the respective direction. The intra-coding modes may include one or more further modes, such as, for example, a DC coding mode (whereby the prediction of each intra-coded block assigns a DC value to all samples in the respective intra-coded segment) and / or a planar intra-coding mode (whereby the prediction of each block is approximated or determined to be a spatial distribution of sample values ​​described by a two-dimensional linear function over the sample positions of the respective intra-coded block, based on neighboring samples, with a planar driving slope and offset defined by the two-dimensional linear function). In comparison, inter-coded blocks may, for example, be predicted temporally.In the case of inter-coded blocks, motion vectors may be signaled in the data stream, indicating the spatial displacement of parts of the previously coded image of the video to which the image 12 belongs, at the locations where the previously coded / decoded image is sampled to obtain the prediction signal of the respective inter-coded block. This means that in addition to the residual signal coding contained in the data stream 14, such as the entropy-coded transform coefficient levels representing the quantized spectral domain prediction residual signal 24'', the data stream 14 may be coded to optional additional parameters, such as coding mode parameters that assign coding modes to the various blocks, prediction parameters for some of the blocks, such as motion parameters for the inter-coded segments, as well as parameters that control and signal the subdivision of the images 12 and 12' into segments, respectively. The decoder 20 uses these parameters to subdivide the images in the same way as the encoder did, assign the same prediction modes to the segments, and perform the same predictions to generate the same prediction signals.

[0025] FIG. 3 illustrates the relationship of the combination of the reconstructed signal of the reconstructed image 12′, the prediction residual signal 24″″ signaled in the data stream, and the prediction signal 26. As mentioned above, the combination may be additive. The prediction signal 26 is illustrated in FIG. 3 as a subdivision of the image region into intra-coded blocks, exemplarily illustrated using hatching, and inter-coded blocks, exemplarily illustrated without hatching. The subdivision may be any subdivision, such as a regular subdivision of the image region into rows and columns of blocks, or a multi-tree subdivision of the image 12 into leaf blocks of various sizes, such as a quad-tree subdivision into blocks, a mixture of which is illustrated in FIG. 3, where the image region is first subdivided into rows and columns of tree-root blocks, and then further subdivided according to a recursive multi-tree subdivision. Again, the data stream 14 may have an intra-coding mode for the intra-coded blocks 80 that assigns one of several supported intra-coding modes to each intra-coded block 80. Further details are described below. In the case of an inter-coded block 82, the data stream 14 may have one or more motion parameters coded therein. Generally speaking, the inter-coded block 82 is not limited to being temporally coded. Alternatively, the inter-coded block 82 may be any block predicted from a previously coded image of the video to which the image 12 belongs, or from a previously coded portion beyond the current image 12 itself, such as another view or a hierarchically lower image in the case of the encoder 10 and the decoder 20, which are scalable encoders and decoders, respectively. The prediction residual signal 24'''' in FIG. 3 is also shown as a subdivision of the image region into blocks 84. These blocks may be called transform blocks to distinguish them from the coding blocks 80 and 82. In effect, FIG. 3 shows that the encoder 10 and the decoder 20 can be used to subdivision the image 12 and the image 12', respectively, into blocks, i.e., one can be used for subdivision into coding blocks 80 and 82, respectively, and the other can be used for subdivision into transform blocks 84.Although both subdivisions may be the same, i.e. each coding block 80 and 82 may simultaneously form a transformed block 84, FIG. 3 shows, for example, the case where the subdivision into the transformed blocks 84 forms an extension of the subdivision into the coding blocks 80, 82, whereby any boundary between the two blocks 80 and 82 overlaps with the boundary between the two blocks 84, or, alternatively, each block 80, 82 coincides with one of the transformed blocks 84 or with a cluster of transformed blocks 84. However, the subdivisions may also be determined or selected independently of one another, such that the transformed blocks 84 may alternately cross the block boundary between the blocks 80, 82. Thus, as far as the subdivision into the transformed blocks 84 is concerned, similar statements apply as those posed with regard to the subdivision into the blocks 80, 82, i.e. the blocks 84 may be the result of a regular subdivision into blocks arranged in rows and columns of the image area, or of a recursive multi-tree subdivision of the image area, or a combination thereof, or of any other type of blocking. As an aside, it should be noted that blocks 80, 82, and 84 are not limited to being quadratic, rectangular, or any other shape.

[0026] 3 shows that the combination of the prediction signal 26 and the prediction residual signal 24'''' results in a direct reconstructed signal 12'. However, it should be noted that, according to alternative embodiments, more than one prediction signal 26 can be combined with the prediction residual signal 24'''' to result in an image 12'.

[0027] In Fig. 3, the transform blocks 84 shall have the following meaning: the transformer 28 and the inverse transformer 54 perform their transforms in units of these transform blocks 84. For example, many codecs use some kind of DST or DCT for all transform blocks 84. Some codecs allow to skip the transform, so that for some of the transform blocks 84, the prediction residual signal is directly coded in the spatial domain. However, according to the embodiment described below, the encoder 10 and the decoder 20 are configured such that they support several transforms. For example, the transforms supported by the encoder 10 and the decoder 20 may include: DCT-II (or DCT-III), DCT stands for discrete cosine transform DST-IV, DST stands for discrete sine transform DCT-IV DST-VII Identity Transformation (IT)

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

[0029] The following description provides further details about transforms that may be supported by the encoder 10 and the decoder 20. Note that in any case, the set of supported transforms may include only one transform, such as one spectral-to-spatial or spatial-to-spectral transform.

[0030] As already outlined above, Figs. 1-3 are presented as examples in which the concepts further described below can be implemented to form specific examples of an encoder 10 and a decoder 20 according to the present application. So far, the encoder 10 and the decoder 20 of Figs. 1 and 2 respectively represent possible implementations of the encoder and the decoder described below in this specification. However, Figs. 1 and 2 are merely examples. An encoder according to an embodiment of the present application may perform block-based encoding of the image 12 using different concepts than the encoder shown in Fig. 1, as will be explained in more detail later. For example, it is not a video encoder but a still image encoder and it does not support inter prediction, but the subdivision into blocks 80 is performed in a different way than illustrated in Fig. 3. Furthermore, this encoder does not use transform prediction residual coding, but instead directly codes the prediction residual, for example in the spatial domain. Similarly, a decoder according to an embodiment of the present application may perform block-based decoding of the image 12' from the data stream 14, as will be explained further below, but it may be different from the decoder 20 of Fig. 2, for example, it is not a video decoder but a still image decoder. Similarly, they may not support intra-prediction, or may subdivide image 12′ into blocks in a manner different from that described with respect to FIG. 3, and / or may not derive prediction residuals from data stream 14 in the transform domain but, for example, in the spatial domain.

[0031] 4A shows an embodiment of an apparatus 10 for encoding an image 12 into a data stream 14. The image 12 may be subdivided into blocks or, for example, in the case of an HEVC-based codec, into macroblocks, also referred to as CTUs, 101a, 101b, ..., 101o.

[0032] The device 10, also referred to as encoder 10 in the following, is configured to further divide the macroblocks 101a, 101b, ..., 101o into smaller sub-blocks 102a, 102b, 102c, 102d and finally into leaf blocks (leaf blocks are not yet shown in Fig. 4A, but will be explained later with reference to Figs. 8A and 8B). The encoder 10 is configured to divide the image 12 into leaf blocks using a recursive multi-tree partitioning. For further processing of said leaf blocks, the encoder 10 is configured for block-based encoding of the image 12 into a data stream 14, i.e. by encoding the leaf blocks.

[0033] Block-based encoding of image 12 into data stream 14 may include respective signals in data stream 14 that may include, among other things, instructions regarding the division into data stream 14, e.g., instructions indicating one or more division parameters, e.g., the division mode and division ratio used to divide the current block.

[0034] With regard to multi-tree partitioning, a block may be partitioned along a partition tree (e.g., FIG. 5A-FIG. 5D), and each node of the partition tree may belong to a respective block in the image. If a block is partitioned, the partitioned tree may continue to subsequent tree nodes at subsequent partition levels, also referred to as partition levels. The above signals in the data stream 14 may be performed at one or more partition levels. According to some examples, partition parameters (e.g., partition mode, partition ratio, etc.) may be signaled in the data stream 14 at one or more partition levels, and in some other examples, partition parameters (e.g., partition mode, partition ratio, etc.) may be signaled in the data stream 14 at each partition level. According to further examples, partition parameters may be signaled in the data stream 14 at a partition level of a partition tree, and tree nodes of said partition level may belong to one or more blocks placed at an image boundary of the image 12 to be encoded. The above signals in the data stream 14 may be used in conjunction with each of the inventive concepts and corresponding embodiments described herein.

[0035] Returning to Fig. 4A, it can be seen that macroblocks 101a, 101b, ..., 101o are a secondary structure of a given size that spans a fixed grid on image 12. Since this fixed grid may exceed the size of image 12, it may sometimes happen that some of the macroblocks 101a, 101b, ..., 101o of said grid may exceed the boundaries of image 12. In Fig. 4A, such a scenario is exemplarily shown by macroblocks 101e, 101m, and 101o.

[0036] For example, with respect to macroblock 101e, the upper left and lower left portions of macroblock 101e are located inside image 12, while the upper right and lower right portions of macroblock 101e are located outside image 12. Thus, macroblock 101e extends beyond the boundary of image 12, such that said boundary of image 12 intersects macroblock 101e at a particular location, i.e., such that the upper left and lower left portions of macroblock 101e are located inside image 12, while the upper right and lower right portions of macroblock 101e are located outside image 12.

[0037] For example, with respect to macroblock 101o, only the upper left portion of macroblock 101o is located inside image 12, while the upper right, lower right, and lower left portions of macroblock 101o are located outside image 12. Furthermore, with respect to macroblock 101m, the upper left and upper right portions of macroblock 101m are located inside image 12, while the lower left and lower right portions of macroblock 101m are located outside image 12. Thus, each boundary of image 12 intersects with each macroblock 101e, 101m, 101o at a different location. Details regarding the location of the macroblocks, and in particular the location of macroblocks 101e, 101m, 101o relative to the boundary of image 12, are described somewhat later in the text with reference to FIG. 6.

[0038] As mentioned above, macroblocks 101a, 101b, ..., 101o may be split into smaller sub-blocks and finally into leaf blocks. A non-limiting example is shown with respect to sub-blocks 102a, 102b, 102c, 102d. The sub-blocks themselves may be subjected to splitting until a leaf block is reached. Splitting is also called splitting, and such splitting of macroblocks and sub-blocks may be performed by using different splitting modes. Examples may be 4-way split, horizontal 2-way split (also called bi-split), vertical 2-way split, horizontal 3-way split (also called tri-split), and vertical 3-way split. Split signaling may be performed using a binary decision tree, and the split signaling may be indicated in the data stream 14 in the manner described above.

[0039] For a brief description of such decision trees, see Figures 5A-5D, which compare split signaling at image borders with split signaling within an image: Figures 5A and 5C show fully unrestricted decision trees that can be used for intra-image split signaling, while Figures 5B and 5D show exemplary restricted decision trees according to the present concepts that can be used for split signaling at image borders.

[0040] The fully unconstrained decision tree of FIG. 5A may be used in the present concept as a set of available partition modes, which may be based on, for example, a quad-tree plus binary tree (QTBT) structure as described in Non-Patent Document 2. The QTBT scheme includes a set of available partition modes for partitioning a block into smaller blocks, and the set of available partition modes includes the four indicated partition modes, namely, 4-way partition, no partition, vertical partition, or horizontal partition. Thus, every time a block is partitioned into smaller blocks, the prior art encoder may always have to run the fully unconstrained decision tree, i.e., the full set of available partition modes. As can be seen, it is necessary to spend three bins in the decision tree to reach a horizontal or vertical partition (i.e., a leaf block). The encoder further needs to signal the respective selected partition mode in the data stream. However, at image boundaries, the prior art may perform an implicit 4-way partition and refrain from signaling the related indication in the data stream. This makes the processing of blocks at image boundaries very inflexible.

[0041] The fully unconstrained decision tree of FIG. 5C may be used in the present concept as a set of available partition modes, which may be based on, for example, a quad-tree plus binary tree (QTBT) plus multi-type tree (MTT) structure as described in Non-Patent Document 2 and Non-Patent Document 3. The QTBT+MTT scheme includes a set of available partition modes for partitioning a block into smaller blocks, and the set of available partition modes includes six indicated partition modes, namely, 4-partition, no partition, vertical 2-partition, vertical 3-partition, horizontal 2-partition, and horizontal 3-partition. Thus, every time a block is partitioned into smaller blocks, the prior art encoder may always have to execute the fully unconstrained decision tree, i.e., the complete set of available partition modes. In this example, it is necessary to spend four bins in the decision tree to reach a horizontal or vertical partition (i.e., a leaf block). The encoder further needs to signal the respective selected partition mode in the data stream. However, at image boundaries, the prior art may perform an implicit 4-partition and refrain from signaling the related indication in the data stream. This results in less flexibility in handling blocks at image borders compared to FIG. 5A.

[0042] Therefore, according to the present invention, the encoder 10 is configured to reduce the set of available partition modes to provide a reduced set of partition modes at least for certain blocks (macroblocks or sub-blocks) that are located on the image border (i.e., at least partially inside the image 12), as previously described illustratively with reference to certain blocks 101e, 101m, and 101o shown in FIG. 4A.

[0043] 5B and 5D, the aforementioned reduced set of split modes may include, for example, exactly two split modes. Alternatively, the reduced set of split modes may include more than two split modes, or exactly one split mode.

[0044] For example, the reduced set of split modes may include a 4-way split (FIG. 7A) and a vertical split, which may be, for example, a vertical 2-way split (FIG. 7B) or a vertical 3-way split (FIG. 7D).

[0045] Additionally or alternatively, the reduced set of split modes may include, for example, a 4-way split and a horizontal split, which may be, for example, a horizontal 2-way split (FIG. 7C) or a horizontal 3-way split (FIG. 7E).

[0046] Additionally or alternatively, the reduced set of split modes may include, for example, a vertical split and a horizontal split, where the horizontal split may be, for example, a horizontal halving or a horizontal third, and the vertical split may be, for example, a vertical halving or a vertical third.

[0047] Additionally or alternatively, the reduced set of partition modes may include, for example, only 4-partition.

[0048] Additionally or alternatively, the reduced set of split modes may include either horizontal (2 or 3) split or vertical (2 or 3) split, for example, if 4 split is not available.

[0049] Additionally or alternatively, the reduced split mode may include exactly one predefined split mode, which may be, for example, either a horizontal split or a vertical split. Which split to choose may depend on the location of the predefined block relative to the respective image border, for example, a horizontal split may be chosen in case of the bottom image border, while a vertical split may be chosen in case of the right image border. The horizontal split may be a horizontal 2-split or a horizontal 3-split. The vertical split may be a vertical 2-split or a vertical 3-split. As can be seen from the decision tree, for example, in FIG. 5D, only one of the horizontal or vertical splits may be available in the reduced set.

[0050] In each of the above cases, one or more of the two splits may include, for example, a split ratio of 1 / 2.

[0051] Summarized in more general terms, a reduced set of partitions according to the innovative principles described herein may include the following splits: (a) Open-ended splits that, when applied, do not prevent further subdivision of a given block, if such splits exist. (b) a split that sets edges parallel to the image boundary, if such a split exists; and i. a split located in the middle of a split block, if such a split exists and is permitted for a given block, or ii. A split that sets a dividing edge collocated with the image boundary, if such a split exists and is allowed for the given block.

[0052] Based on QTBT, but also valid for non-patent document 3 and non-patent document 4, as well as other splitting schemes offering the different splitting possibilities mentioned above: split by 4, split by 3 vertically, split by 2 vertically (e.g., split ratio of 1 / 2), split by 3 horizontally, and split by 2 horizontally (e.g., split ratio of 1 / 2) (see Figures 7A to 7E), In a specific, non-limiting embodiment of the present invention, a reduced split set according to the innovative principles described herein may be as follows: 4-way split (a) and 2-way split (e.g. 1 / 2 split) (b)-i or 3-way split (b)-ii 4-way division (a) and horizontal 2-way division (e.g., 1 / 2 division ratio) (b)-i or horizontal 3-way division (b)-ii A division into four (a), or into two or three horizontal or vertical divisions, e.g., a division ratio of 1 / 2 (e.g., if a division into four may not be possible due to some constraints)

[0053] Thus, the reduced set of partition modes according to the innovative principle may include a preselection of partition modes that split blocks at image boundaries. The encoder 10 may select one of the partition modes included in the reduced set of partition modes that split blocks at image boundaries, and the encoder 10 may signal the selected partition mode in the data stream 14. Thus, the present concept may enhance the signaling of blocks at image boundaries when compared to the implicit four-way partition in the prior art. However, the encoder 10 may only need to signal the uncertainty in the data stream 14, which keeps the signaling effort at a non-negligible level. However, the present concept provides much more flexibility in splitting blocks at image boundaries compared to the prior art. This increased flexibility may compensate and / or outweigh the slightly higher signaling effort.

[0054] 5B may exemplarily show a reduced set of split modes including two different split modes, namely 4-way and vertical 2-way, but the reduced set may also include 4-way and horizontal 2-way, or vertical 2-way and horizontal 2-way, or any other combination of the above. According to an example, the reduced set of split modes may include at least one split mode. According to a further example, the reduced set of split modes may include at least two different split modes. According to a further example, the reduced set of split modes may include only exactly two different split modes, even though the set of available split modes may include more than these two different split modes.

[0055] The selection of the division modes to be included in the reduced set of division modes may depend on the position of each given block 101e, 101m, 101o relative to the boundary of the image 12, i.e., on the position where the boundary of the image 12 intersects with the given block 101e, 101m, 101o.

[0056] In other words, the encoder 10 is configured, when dividing the image 12 into leaf blocks, to reduce the set of available partitioning modes for partitioning a given block 101e, 101m, 101o depending on where the boundary of the image 12 intersects with the given block 101e, 101m, 101o, which corresponds to a given tree level of the multi-tree partitioning and extends beyond the boundary of the image 12, to obtain a reduced set of one or more partitioning modes.

[0057] According to the present invention, if the cardinality of the reduced set is 1, i.e. if the reduced set of partition modes can only contain one partition mode, the encoder 10 is configured to apply the partition mode of this reduced set for partitioning a given block 101e, 101m, 101o.

[0058] However, if the cardinality of the reduced set is greater than one, i.e., if the reduced set of partition modes includes more than one partition mode, the encoder 10 is configured to select one of these partition modes of the reduced set and apply the selected one of the partition modes for partitioning the given block 101e, 101m, 101o. Furthermore, the encoder 10 is configured to signal the respective selection, i.e., the selected partition mode, in the data stream 14 in the manner described above. For example, the encoder 10 may signal the selection by setting a one-bit flag. However, as described above, it may be the case that only the uncertainty between the partition modes included in the already reduced set of partition modes has to be signaled in the data stream 14.

[0059] As noted above, the cardinality of the reduced set may be, for example, exactly one or exactly two.

[0060] FIG. 4B shows a corresponding device 20 for decoding the images 12 in the data stream 14, which device will also be referred to as a decoder 20 in the following.

[0061] The decoder 20 is configured to divide the image 12 into leaf blocks using a recursive multi-tree partitioning, and to perform block-based decoding of the image 12 from the data stream 14 using the partitioning of the image 12 into leaf blocks.

[0062] The decoder 20 is further configured, in dividing the image 12 into leaf blocks, to reduce the set of available partitioning modes for dividing a given block depending on where the boundary of the image 12 intersects with the given block, so as to obtain a reduced set of one or more partitioning modes, for a given block that corresponds to a given tree level of the multi-tree partitioning and extends beyond a boundary of the image 12.

[0063] Again, if the cardinality of the reduced set is one, i.e., the reduced set of partition modes can only include one partition mode, then decoder 20 is configured to apply the reduced set of partition modes for partitioning a given block.

[0064] If the cardinality of the reduced set is greater than one, i.e., if the reduced set of partition modes includes two or more partition modes, the decoder 20 is configured to select one of the partition modes of the reduced set and apply the selected one of the partition modes for partitioning a given block according to signaling in the data stream 14. That is, the decoder 20 may derive a signal from the data stream 14 indicating to the decoder 20 which partition mode to use for partitioning. This signal may be the above-mentioned one-bit flag that may have been previously included in the data stream by the encoder 10.

[0065] Thus, the concept described herein provides a new mechanism for boundary processing, which may be generally applicable to all recursive partitioning methods that allow more than one partition at a certain level. Again, the concept can enhance signal processing of blocks at image boundaries when compared to the implicit partitioning of the prior art. However, the concept provides much more flexibility in partitioning blocks at image boundaries compared to the prior art. This increased flexibility may compensate for and / or outweigh the slightly higher signaling effort of the reduced set of partitioning modes provided by the concept.

[0066] A non-limiting example of this concept is shown in FIG. 6, which shows a segmented image 12 similar to FIG. 4A. However, FIG. 6 shows some additional details, namely, the size w f ×h f 1 shows an image 12 having a length (width x height) that is subdivided into blocks, e.g., macroblocks 101a, 101b, ..., 101o, smaller sub-blocks, and finally leaf blocks. Three particular macroblocks are highlighted and numbered with circled numbers 1, 2, and 3. These exemplary highlighted macroblocks may correspond to the previously mentioned macroblocks 101e, 101m, 101o shown in FIG. 4. Furthermore, leaf blocks are described in more detail later in the text with reference to FIG. 8A and FIG. 8B.

[0067] FIG. 6 illustrates the partitioning of the image 12 into a strict macroblock structure of fixed size (e.g., CTU partitioning in H.265 / HEVC [1] or future video standards with features beyond H.265 / HEVC [2]). In this example, it may be assumed that the resolution of the video signal may not be spatially limited to a multiple of the size of a single macroblock 101a, 101b, ..., 101o. Given these preconditions, it may be inferred that the last macroblock in a macroblock row and / or all macroblocks in the last macroblock row may cross at least one boundary of the image 12. In such a case, a low-level partitioning of this macroblock into coding units (CUs), prediction units (PUs), and transform units (TUs), or any other type of sub-CTU level partitioning, needs to ensure that the coded partitions are placed inside the boundaries of the image 12. The concepts described herein may enable the definition of reduced split sets of partitioning blocks, e.g., a macroblock 101m may be partitioned into a CU of width w b , and height h b Position x with b , y b This block is of size w in at least one of the following six cases: f ×h f may exceed the boundaries of image 12.

[0068] C1: corresponding to block 101e, i.e. the top right corner of block 101e is not included in image 12, and the bottom left corner is included in image 12 (the top left corner is inside image 12): x b +w b >w f ;y b +h b ≦h f ;x b ≧0;y b ≧0, C2: corresponding to block 101m, i.e. the top right corner of block 101m is included in image 12 and the bottom left corner is not included in image 12 (the top left corner is inside image 12): x b +wb ≦w f ;y b +h b >h f ;x b ≧0;y b ≧0, C3: corresponding to block 101o, i.e. both the top right corner and the bottom left corner are not included in image 12 (the top left corner is inside image 12): x b +w b >w f ;y b +h b >h f ;x b ≧0;y b ≧0, C4: The top left corner of the block is not included in the image, the bottom left corner is not included in image 12, and the top right corner is included in image 12: x b <0;y b ≧0;x b +w b >0 (this case is treated the same as case 1 and may not be specified separately), C5: The top left corner of the block is not in image 12, the top right corner is not in image 12, and the bottom left corner is in image 12: x b ≧0;y b <0;y b +h b >0 (this case is treated the same as case 2 and may not be specified separately), C6: Only one of the following block corners is included in image 12: bottom right, top right, or bottom left (this case is treated equivalently to case 3 and is not specified separately).

[0069] If none of cases C1-C6 apply for a particular given block and image 12, then the given block may be outside the boundaries of image 12 and may not be of further interest to the concepts described herein. Two or more cases may apply simultaneously, specifically case pairs C1 and C4, C2 and C5, or C3 and C6 may apply simultaneously. All of these case pairs are treated equally, so there is no need to treat a particular constellation individually.

[0070] To handle at least one of these cases C1 to C6, the present concept provides a reduced set of partition modes, which may include one or more partition modes selected from the set of actually available partition modes.

[0071] The set of actually available partition modes may be selected by the encoder 10 depending on the block-based encoding scheme used. According to one example, the encoder 10 may Independently of the location of a given block relative to the image borders, and / or Depending on the sequence of partition modes of the preceding tree levels in which a given block appears, It may be configured to determine the set of available partition modes for a given block.

[0072] The same applies to the decoder 20. According to one example, the decoder 20 comprises: Independently of the location of a given block relative to the image borders, and / or Depending on the sequence of partition modes of the preceding tree levels in which a given block appears, It may be configured to determine the set of available partition modes for a given block.

[0073] Again, to handle at least one of the above cases C1 to C6, the present concept provides a reduced set of partition modes, which may include one or more partition modes selected from the set of actually available partition modes.

[0074] For example, the reduced split set might consist of the following splits: (a) If such a split exists: An unrestricted split, which when applied, imposes no restrictions on further splits of a given block. (b) For cases C1 and C2, if such a split exists: a split that sets an edge parallel to the boundary of image 12. i. A split located in the middle of the split block, if such a split exists and is allowed for the given block. ii. A split that sets a dividing edge collocated with the boundary of image 12, if such a split exists and is allowed for the given block.

[0075] In other words, the encoder 10 may select from the set of available partition modes, such that the set of available partition modes is reduced to a reduced set of one or more partition modes. A first split mode that includes a split that imposes no restrictions on one or more subsequent splits in subsequent tree levels following a given tree level (e.g., see split (a) above); and may be configured to select at least one of a second split mode including a split that divides a given block into two or three sub-blocks along at least one split line; The dividing line is parallel to the location of the boundary within the given block, and the dividing line is at least one of: centrally located inside the given block (e.g., see split (b)-i above); and juxtaposed to the boundary of image 12 (e.g., see split (b)-ii above).

[0076] The same applies to the decoder 20, respectively, i.e. the decoder 20 selects from the set of available partition modes, A first split mode that includes a split that imposes no restrictions on one or more subsequent splits in subsequent tree levels following a given tree level (e.g., see split (a) above); and may be configured to select at least one of a second partitioning mode including a split that divides a given block into two or three sub-blocks along at least one partition line; The dividing line is parallel to the location of the boundary within the given block, and the dividing line is at least one of: centrally located inside the given block (e.g., see split (b)-i above); and juxtaposed to the boundary of image 12 (e.g., see split (b)-ii above).

[0077] If split (b)-ii is not available for the partitioning method used for a given block, then split (b)-i may be included in the reduced split set. Split (b)-i may generally be preferred over split (b)-ii. As noted above, at least one split may be included in the reduced split set.

[0078] According to one example, split (a) may be a 4-way split, and split (b)-i may be at least one of a horizontal 2-way split or a vertical 2-way split. According to a further example, one of the additionally introduced splits as described in Non-Patent Document 3 and Non-Patent Document 4 may be used for (b)-ii, if the border of the image 12 is at 1 / 4 or 3 / 4 of the split block. In a particular implementation, a vertical or horizontal split with a split ratio of 1 / 2 may be preferred over the additional splits introduced in Non-Patent Document 3 and / or Non-Patent Document 4.

[0079] The above partitions are shown diagrammatically in Figures 7A-7E. Figure 7A shows a 4-split where a given block 701 (macroblock or subblock) is divided into four equal sections 71a, 71b, 71c, 71d. Figure 7B shows a vertical 2-split where a given block 702 (macroblock or subblock) is divided into two equal vertical sections 72a, 72b. Figure 7C shows a horizontal 2-split where a given block 703 (macroblock or subblock) is divided into two equal horizontal sections 73a, 73b. Figure 7D shows a vertical 3-split as described in Non-Patent Document 3 where a given block 704 (macroblock or subblock) is divided into three vertical sections 74a, 74b, 74c. FIG. 7E illustrates a horizontal 3-part division as described in Non-Patent Document 3, where a given block 705 (macroblock or subblock) is divided into three horizontal sections 75a, 75b, 75c.

[0080] According to one example, a vertical bisection as shown in Fig. 7B may be applied when the respective borders of the image 12 intersect with the respective predefined blocks 702, so that the borders of the image 12 lying inside the respective blocks 702 are also vertical, i.e. parallel to the vertical split line. Such a case may for example apply to block 101e as shown in Fig. 6.

[0081] A horizontal bisection as shown in Fig. 7C may be applied when the respective boundaries of the image 12 intersect with the respective predefined blocks 703, such that the boundaries of the image 12 lying inside the respective blocks 703 are also horizontal, i.e. parallel to the horizontal split line. Such a case may, for example, apply to block 101m as shown in Fig. 6.

[0082] According to further examples where Generalized Binary Splitting (GBS) can be used, if a generalized GBS tree is used as a subtree of a quadtree structure, split (a) may be a vertical split with a split ratio of 1 / 2 (which may be the default split for GBS, if the split tree is not so limited) or a 4-way split. Vertical and horizontal splits that may be translated to vertical / parallel semantics may be used as splits (b)-i or (b)-ii (possibly with split modifiers adjusted accordingly). Again, a split with modifier 1 / 2 may be preferred even if other splits provide splits that are juxtaposed on the boundaries of the image 12.

[0083] In a further example, which may be based on QTBT, but which may also be valid for the schemes described in [3] and [4], as well as any other splitting scheme that offers the following three split possibilities: 4-way split, vertical split with a split ratio of 1 / 2, and horizontal split with a split ratio of 1 / 2, three exemplary reduced split sets (RSS) are: RSS1:4 split (a) and vertical split with split ratio 1 / 2 (b)-i; RSS2: 4-way split (a) and horizontal split with a split ratio of 1 / 2 (b)-i; It may be either an RSS 3:4 split (a) or a vertical or horizontal split with a split ratio of 1 / 2 (b)-i.

[0084] These exemplary reduced sets of partition modes, i.e., RSS1, RSS2, and RSS3, may be one non-limiting example of a subset of the set of available partition modes. That is, the reduced set of partition modes may include one or more available splits that are available (for a given block at a given tree level) in the set of available partition modes. The number of splits included in the set of available partition modes may vary depending on the encoding scheme, and the number of splits included in the reduced set of partition modes may vary depending on the location of each given block (i.e., split at the current tree level) relative to the boundaries of image 12.

[0085] As described above, the encoder 10 can determine a set of available partition modes, i.e., the encoder 10 can selectively select which partition modes (e.g., 4-partition, 2-partition vertically, 2-partition horizontally, etc.) are included in the set of available partition modes.

[0086] For example, the above block-based coding scheme may include a basic set of partitioning modes including a 4-partition, at least one horizontal 2-partition (possibly with different modifiers), and at least one vertical 2-partition (possibly with different modifiers).

[0087] However, some splits, especially some bipartites, may be restrictive. For example, if a bipartite is applied to a given block, a 4-way split may not be allowed as a subsequent split. In other words, a 4-way split may only be allowed at a particular tree level if the preceding splits at the previous tree level do not contain one of the restrictive splits, especially one of the restrictive bipartites.

[0088] Thus, if one of the restrictive splits, and in particular one of the restrictive bisections, has been applied to a given block at a given tree level, subsequent splits may only include the primitive set mentioned above and not include the 4-split.

[0089] Thus, according to one embodiment, the encoder 10 comprises: If all partitioning modes of the preceding tree level in which a given block appears are not a restricted set of bipartitions, then it is equivalent to a primitive set of partitioning modes that contains a 4-partition, at least one horizontal bipartition, and at least one vertical bipartition; If the partitioning mode of the preceding tree level in which a given block appears is one of a restricted set of 2-partitions, then we set the partitioning mode to a primitive set equal to minus 4-partitions. It may be configured to determine a set of available partitioning modes.

[0090] The same applies to the decoder 20. Thus, the decoder 20 If all partitioning modes of the preceding tree level in which a given block appears are not a restricted set of bipartitions, then it is equivalent to a primitive set of partitioning modes that contains a 4-partition, at least one horizontal bipartition, and at least one vertical bipartition; If the partitioning mode of the preceding tree level in which a given block appears is one of a restricted set of 2-partitions, then we set the partitioning mode to a primitive set equal to minus 4-partitions, It may be configured to determine a set of available partitioning modes.

[0091] Additionally or alternatively, the above primitive set of a split mode may include at least one horizontal third split (possibly using different modifiers) and at least one vertical third split (possibly using different modifiers).

[0092] As described above, the encoder 10 can reduce the set of available partition modes to provide a reduced set of partition modes. Thus, the encoder 10 can selectively select a reduced subset of partition modes (i.e., one or more partition modes) from the set of available partition modes for each given block. Only these selectively selected partition modes may be included in the reduced set of partition modes. Thus, the reduced set of partition modes may include at least one of the above four-way split by split (a) and one of the splits by split (b)-i or split (b)-ii.

[0093] Thus, according to one embodiment, the encoder 10 selects from the set of available partition modes: Fourth division (a), and may be configured to select at least one of two splits dividing a given block 702, 703 into two sub-blocks 72a, 72b, 73a, 73b along a split line, the split line being parallel to the location of an image boundary within the given block 702, 703 and at least one of the split lines being centered inside the given block according to split (b)-i and juxtaposed to the boundary according to split (b)-ii. It is.

[0094] Again, the same applies to the decoder 20. Thus, the decoder 20 may select from the set of available partition modes, such that the decoder 20 reduces the set of available partition modes to a reduced set of one or more partition modes. Fourth division (a), and may be configured to select at least one of two splits splitting a given block 702, 703 into two sub-blocks 72a, 72b, 73a, 73b along a split line, the split line being parallel to the location of an image boundary within the given block 702, 703 and at least one of the split lines being centered inside the given block according to split (b)-i and juxtaposed to the boundary according to split (b)-ii. It is.

[0095] Again, split (b)-i may involve a split in two (possibly using different modifiers, but preferably using a split ratio of 1 / 2), and split (b)-ii may involve a split in two and / or a split in three (possibly using different modifiers).

[0096] Thus, according to one embodiment, the encoder 10 selects from the set of available partition modes: Fourth division (a), and may be configured to select at least one of three splits that splits a given block 704, 705 into three sub-blocks 74a, 74b, 74c, 75a, 75b, 75c along a split line, the split line being parallel to the location of the image boundary within the given block 704, 705 and the split line being juxtaposed to the boundary in accordance with split (b)-ii.

[0097] Again, the same applies to the decoder 20. Thus, the decoder 20 may select from the set of available partition modes, such that the decoder 20 reduces the set of available partition modes to a reduced set of one or more partition modes. Fourth division (a), and may be configured to select at least one of three splits that splits a given block 704, 705 into three sub-blocks 74a, 74b, 74c, 75a, 75b, 75c along a split line, the split line being parallel to the location of the image boundary within the given block 704, 705 and the split line being juxtaposed to the boundary in accordance with split (b)-ii.

[0098] 8A and 8B show an example of how the concepts described herein can be applied to a block-based coding scheme together with image border processing.

[0099] Figure 8A shows a division of a given block, which in this example may correspond to macroblock 101o as shown in Figure 6. The hatched portion of block 101o represents the location of the lower right corner of image 12. This example shows the division of macroblock 101o into smaller sub-blocks by applying only 4-way division.

[0100] The numbers shown on each subblock may indicate the number of quadrants that need to be applied to arrive at a leaf block division of the macroblock 101o, as shown in Fig. 8A. The first quadrant divides the macroblock 101o into four equal subblocks 801a, 801b, 801c, 801d. As can be seen, only the two subblocks 801a, 801d on the left side may still contain the border of the image 12. The two subblocks 801b, 801c on the right side are placed outside the image 12 and no longer contain the border of the image 12. They may be discarded.

[0101] The second quad splits the two left sub-blocks 801a, 801d again into four smaller sub-blocks. As can be seen, the two left sub-blocks 802a, 802b (from the second quad split) are placed inside the image 12 and do not include the image border anymore. These two sub-blocks 802a, 802b can therefore be further split using open-ended split sets according to the split method used. Further splitting of these blocks may not be described in further detail herein with respect to the present concept.

[0102] However, the remaining sub-blocks (derived from the second 4th division) may all contain image boundaries and therefore require a third division, which leads to a leaf block denoted by the number "3".

[0103] 8B illustrates an alternative partitioning that applies the reduced split set concept described herein. The numbers for each subblock indicate the number of 4-partitions and non-4-partitions (e.g., 2-partitions) that need to be applied to arrive at the leaf block partition of macroblock 101o as shown in FIG. 8B. The first number may indicate the number of 4-partitions and the second number may indicate the number of non-4-partitions.

[0104] For example, the top left leaf block 802a (1,1) has one quad and one vertical bisection applied to it. The adjacent right leaf block 803a (1,2) has one quad and two vertical bisections applied to it. The adjacent bottom leaf block 803b (2,1) has two quads and one horizontal bisection applied to it. The leaf block 803c (3,0) in the bottom right corner of image 12 has three quads and no non-quads applied to it.

[0105] In FIG. 8B, solid lines indicate edges (split lines) set by a four-way division, dashed lines indicate edges (split lines) set by a vertical two-way division, and dot-dash lines indicate edges (split lines) set by a horizontal two-way division.

[0106] More specifically, as a first split at the first tree level, a 4-way division is applied, resulting in four equal sub-blocks 801a, 801b, 801c, 801d. As can be seen, only the two sub-blocks 801a, 801d on the left side may still contain the border of the image 12. The two sub-blocks 801b, 801c on the right side are placed outside the image 12 and no longer contain the border of the image 12. They may be discarded.

[0107] The top-left subblock 801a may be further split at the second tree level. A reduced split set may be provided for the split of the subblock 801a. For example, a reduced split set may be provided that includes at least one of a 4-way split and a vertical 2-way split, or that includes only a vertical 2-way split. In the example shown in FIG. 8B, the subblock 801a may be subjected to a vertical 2-way split with a modifier 1 / 2 at the second tree level, and the split line 811 is centered inside the block 801a. Thus, as a result, the top-left subblock 802a may be set.

[0108] In this concept, only one 4-way division and one vertical 2-way division (hence only two tree levels) need to be applied to reach sub-block 802a, which is a leaf block. Instead, in Figure 8A, two blocks 802a, 802b are needed to cover the same area of ​​image 12 as only one block 802a in Figure 8B.

[0109] Further, the right adjacent block 802b in FIG. 8B is then further split at the third tree level. A reduced split set may be provided for the split of sub-block 802b. For example, a reduced split set may be provided that includes at least two vertical splits, since the previous split may already be a vertical bisection, which may not allow a subsequent four-way split. In the example shown in FIG. 8B, sub-block 802b may be subjected to a vertical bisection at the third tree level with modifier 1 / 2, and the split line 812 is centered inside block 802b and juxtaposed to the image boundary. Thus, a left sub-block 803a may be set at the third tree level as a result, and although the left sub-block 803a is a leaf block, it may also be further split with the split method used.

[0110] In this concept, it is only necessary to apply one 4-way split and two vertical 2-way splits (hence only three tree levels) to reach sub-block 803a, which is a leaf block. Instead, in Figure 8A, four blocks are needed to cover the same area of ​​image 12 as only one block 803a in Figure 8B. However, if encoder 10 so determines, a 4-way split can be applied as in Figure 8A, provided that it is always selected from the reduced split set.

[0111] Further, the lower adjacent block 802d in FIG. 8B may be derived from two consecutive 4-partitions at the first and second tree levels, respectively, and the block 802d may be further divided at the third tree level. A reduced split set may be provided for the division of the sub-block 802d. For example, a reduced split set may be provided that includes at least a 4-partition and a horizontal 2-partition, or a reduced split set that includes only a horizontal 2-partition. In the example shown in FIG. 8B, the sub-block 802d may be subjected to a horizontal 2-partition with a modifier 1 / 2 at the third tree level, and the split line 813 is centered inside the block 802d and juxtaposed to the image boundary. Thus, the sub-block 803b may be set at the third tree level as a result, where the sub-block 803b is a leaf block.

[0112] In this concept, it is only necessary to apply two 4-way partitions and one horizontal 2-way partition (hence only three tree levels) to reach sub-block 803b, which is a leaf block. Instead, two blocks are needed in Figure 8A, only one of which covers the same area of ​​image 12 as block 803b in Figure 8B.

[0113] Block 803c may also be a leaf block that may be derived from three consecutive quadrants. This example of leaf block 803c may be identical to the quadrant of the same block shown in Figure 8A. Because the corners of image 12 are included in blocks that lead to leaf block 803c, the syntax may allow for the quadrant to be provided only in a reduced set of partitioning modes.

[0114] According to one example, the encoder 10 may be configured to select a four-way partition from the set of available partition modes only if a given block extends beyond a corner of the image 12, such that the set of available partition modes is reduced to a reduced set of one or more partition modes.

[0115] The same applies to decoder 20. Thus, decoder 20 may be configured to select a 4-way partition from the set of available partition modes only if a given block extends beyond a corner of image 12, so as to reduce the set of available partition modes to a reduced set of one or more partition modes.

[0116] 8B, the resulting leaf blocks 802a, 803a, 803b, 803c represent the minimum division required to process the boundaries of image 12. Additionally or alternatively, the resulting leaf blocks 802a, 803a, 803b, 803c may be further divided within the given limits of the division method used.

[0117] In general, further restrictions may be imposed on the reduced split set, provided that it contains at least one valid split at the end. These restrictions are: Divisibility of a given block size (see Figure 8B); Partitionability at a given depth, It can be, but is not limited to,

[0118] The latter bullet point, "Divisibility at a Specified Depth," is briefly explained using the following example and with reference to Figures 5A and 5B.

[0119] To ensure optimal efficiency, some signaling is used instead of a purely implicit split derivation, but only limited information needs to be signaled. In particular, no information about the split itself needs to be transferred. In the above image border cases C1-C3 (see FIG. 6), the split is performed. If the reduced split set contains more than one element, only the remaining uncertainty needs to be signaled. In a particular embodiment based on the above QTBT, one binary signal needs to be transferred for cases C1 (see FIG. 5B) and C2, and no signaling is required for case C3, since C1 may contain a reduced split set including a 4-way split and a 2-way split in the vertical direction, C2 may contain a reduced split set including a 4-way split and a 2-way split in the horizontal direction, and C3 may contain a reduced split set including only a 4-way split.

[0120] Further syntax restrictions may apply to the concept. For example, if the splitting results in additional restrictions, split blocks may be completely or partially discarded if they overlap an image boundary. According to one example, the number of subsequent bipartitions (as opposed to 4-partitions) may be limited (e.g., if part of a tree with split restrictions, if the split is not the default split, or if the method is used to complement a quadtree structure).

[0121] If bisections are applied across image boundaries as part of the reduced set, they may not be counted in enforcing this restriction.

[0122] Thus, according to one example, when bisections from a reduced set are applied and the number of consecutive bisections is limited to a predetermined maximum number of consecutive bisections, the encoder 10 may be configured to not count consecutive bisections if they are applied across an image boundary.

[0123] The same applies to the decoder 20. Thus, when bisections from a reduced set are applied and the number of consecutive bisections is limited to a predetermined maximum number of consecutive bisections, the decoder 20 may be configured to not count consecutive bisections if they are applied across an image boundary.

[0124] Other restrictions, e.g., the prohibition of a quadrant following a non-quadrant split, may be further enforced even across image boundaries (e.g., when used as a complement to a quadtree structure).

[0125] FIG. 9 shows a block diagram of a method for encoding an image 12 according to the present concept.

[0126] In block 901, the image is partitioned into leaf blocks using recursive multi-tree partitioning.

[0127] At block 902, the image is block-based encoded into a data stream using a division of the image into leaf blocks.

[0128] In block 903, for a given block, a set of available partitioning modes for partitioning the given block is reduced depending on where the image boundary intersects the given block to obtain a reduced set of one or more partitioning modes.

[0129] If the cardinality of the reduced set is one (C=1), then the partitioning mode of the reduced set is applied to partition the given block, as shown in block 904 .

[0130] If the cardinality of the reduced set is greater than one, then one of the partition modes of the reduced set is selected, as shown in block 905, and the selected one of the partition modes is applied to partition the given block.

[0131] At block 906, a selection, ie, a selected one of the partitioning modes from the reduced set of partitioning modes, is signaled in the data stream.

[0132] FIG. 10 shows a block diagram of a method for decoding an image 12 according to the present concept.

[0133] In block 1001, the image is partitioned into leaf blocks using recursive multi-tree partitioning.

[0134] At block 1002, an image is decoded on a block basis from the data stream using the division of the image into leaf blocks.

[0135] In block 1003, for a given block, a set of available partitioning modes for partitioning the given block is reduced depending on where the image boundary intersects the given block to obtain a reduced set of one or more partitioning modes.

[0136] If the cardinality of the reduced set is one (C=1), then the partitioning mode of the reduced set is applied to partition the given block, as shown in block 1004 .

[0137] If the cardinality of the reduced set is greater than one, then one of the partition modes of the reduced set is selected, as shown in block 1005, and the selected one of the partition modes is applied to partition the given block.

[0138] As indicated in block 1006, the selection of one of the partitioning modes from the reduced set of partitioning modes is based on signaling in the data stream.

[0139] The method steps represented by the blocks in the block diagrams of FIGS. 9 and 10, respectively, may also be performed in an order different from that shown.

[0140] Although some aspects have been described in the context of an apparatus, it will be apparent that these aspects also represent a description of a corresponding method, with blocks or devices corresponding to method steps or features of method steps. Similarly, aspects described in the context of a method step also represent a description of a corresponding block or item or feature of a corresponding apparatus. Some or all of the method steps may be performed by (or using) a hardware apparatus, such as, for example, a microprocessor, a programmable computer, or an electronic circuit. In some embodiments, one or more of the most important method steps may be performed by such an apparatus.

[0141] Depending on the specific implementation requirements, embodiments of the present invention can be implemented in hardware or in software, or at least partially in hardware or at least partially in software. The implementation can be performed using a digital storage medium, such as a floppy disk, DVD, Blu-ray, CD, ROM, PROM, EPROM, EEPROM or flash memory, on which electronically readable control signals are stored, which cooperate (or can cooperate) with a programmable computer system so that the respective method is executed. The digital storage medium can thus be computer readable.

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

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

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

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

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

[0147] A further embodiment of the inventive method is therefore a data stream or a sequence of signals representing the computer program for performing one of the methods described herein, the data stream or the sequence of signals may be adapted to be transferred via a data communication connection, such as for example the Internet.

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

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

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

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

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

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

[0154] The above-described embodiments merely illustrate the principles of the present invention. It is understood that modifications and variations of the arrangements and details described herein will be apparent to those skilled in the art. It is therefore intended to be limited only by the scope of the claims and not by the specific details presented as illustrative and explanatory of the embodiments herein.

[0155] References [1]ITU-T and ISO / IEC.High efficiency video coding.ITU-T Recommendation H.265|ISO / IEC23008 10(HEVC)、edition1、2013;edition2、2014. [2]J.Chen、E.Alshina、GJSullivan、JR.Ohm、J.Boyce、Algorithm Description of Joint Exploration Test Model 6(JEM 6)、JVET、doc.JVET-F1001、April 2017. [3]X.Li、H.-C.Chuang、J.Chen、M.Karczewicz、L.Zhang、X.Zhao、A.Said、Multi-Type-Tree、JVET、doc.JVET-D0117、Oct.2016. [4]F.Le Leannec、T.Poirier、F.Urban、Asymmetric Coding Units in QTBT、JVET、doc.JVET-D0064、Oct.2016. [5]The 17182209.1-1718209.

Claims

1. 1. A method for block-based encoding of an image into a data stream by recursive multi-tree partitioning of the image into leaf blocks, the method comprising: determining a set of available partition modes for blocks that extend beyond a boundary of the image; a vertical or horizontal bisection that divides the block into two sub-blocks along a split line that is parallel to the image border and centered inside the block; and imposing a limit on the amount of splitting based on whether the vertical bisection or horizontal bisection is applied across the border of the image; from the set of available split modes.

2. The method of claim 1 , further comprising the step of selecting the vertical bisection from the set of available partitioning modes when the boundary of the image inside the block is vertical.

3. The method of claim 1 , further comprising the step of selecting the horizontal bisection from the set of available partitioning modes when the boundary of the image inside the block is horizontal.

4. The set of available partitioning modes includes: The x-coordinate position of the block (x b ) and width (w b ) is the picture width (w f ) and determining whether The y coordinate position of the block (y b ) and height (h b ) is the picture height (h f 2. The method of claim 1 , based on determining whether the first eigenvalue is greater than the second eigenvalue.

5. 1. A method for block-based decoding of an image from a data stream by recursive multi-tree partitioning of the image into leaf blocks, the method comprising: determining a set of available partition modes for blocks that extend beyond a boundary of the image; a vertical or horizontal bisection that divides the block along a split line that is parallel to the image border and centered inside the block; and imposing a limit on the amount of splitting based on whether the vertical bisection or horizontal bisection is applied across the border of the image; from the set of available split modes.

6. The method of claim 5 , further comprising the step of selecting the vertical bisection from the set of available partition modes when the boundary of the image located inside the block is vertical.

7. The method of claim 5 , further comprising the step of selecting the horizontal bisection from the set of available partitioning modes when the boundary of the image inside the block is horizontal.

8. The set of available partitioning modes includes: The x-coordinate position of the block (x b ) and width (w b ) is the picture width (w f ) and determining whether The y coordinate position of the block (y b ) and height (h b ) is the picture height (h f 6. The method of claim 5, based on determining whether the first eigenvalue is greater than the second eigenvalue.

9. Apparatus configured to carry out the method of claim 1 or 5.

10. A computer program for carrying out the method according to claim 1 or 5 when the computer program is run on a computer or signal processor.

Citation Information

Patent Citations

  • METHOD AND APPARATUS FOR ENCODING / DECORDING A CODING UNIT ACROSS A PICTURE BOUNDARY - Patent application

    JP2013509788A

  • Moving image encoding device, moving image encoding method, moving image encoding computer program, moving image decoding device, moving image decoding method, and moving image decoding computer program

    WO2019077751A1