Encoding and decoding images
By dynamically dividing image blocks using a recursive multi-branch tree splitting method, the problem of insufficient compression efficiency in existing video coding is solved, achieving more efficient encoding and decoding.
Patent Information
- Application Number
- CN202411053750.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2019-01-02
- Filing Date
- 2019-12-30
- Publication Date
- 2024-10-01
AI Technical Summary
Existing video coding technologies suffer from insufficient compression efficiency in their partitioning tree design. In particular, in high-efficiency video coding standards, the fixed-size block partitioning method limits the adaptation to the characteristics of video signals.
A recursive multi-branch tree splitting method is adopted to divide the image into coded blocks. By decoding the splitting flag, quadruple flag, splitting direction flag, and ternary flag in the splitting information in the data stream, the splitting method of the block is dynamically determined, including whether to split, how many sub-blocks to split into, and the splitting direction, thereby reducing unnecessary data transmission.
It improves the compression efficiency of image encoding and decoding, reduces the size of the data stream, and enhances encoding efficiency.
Smart Images

Figure CN118741133A_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with application number 201980093565.X, application date 2019.12.30, and invention name “Encoding and Decoding Images”. Technical Field
[0002] Embodiments of the present disclosure relate to the field of encoding and decoding images, such as in the field of image or video coding. In particular, embodiments relate to partition tree design and its encoding in hybrid video compression, such as in the field of block-based image or video coding. Background Art
[0003] In hybrid video coding, the image is usually divided into smaller blocks of variable size, by which an adaptation to the characteristics of the input video signal can be achieved, ultimately improving the compression efficiency. The division into blocks of variable size is usually represented by a tree structure such as a quadtree, binary tree, etc. The associated signaling depends on the selected tree structure and has an impact on the compression efficiency.
[0004] In modern hybrid video coding such as the High Efficiency Video Coding (HEVC) standard, the input image is initially decomposed into non-intersecting square blocks of fixed size. Each of these fixed-size square blocks forms the root of a partition tree and can be further subdivided into smaller blocks. The blocks corresponding to the leaves of the partition tree are used for prediction and transform coding. For these variable-sized blocks, the original signal is usually predicted; the difference between the original signal and the predicted signal is called the residual signal. The residual signal is transmitted using transform coding. In HEVC, the video image is initially divided into square blocks, which are called coding tree units (CTUs), and each of the CTUs forms the root of a partition tree. HEVC uses a quadtree structure to subdivide into smaller units. At the leaves of the quadtree, the final block is called a coding unit (CU). Each CU forms the root node of two other partition trees: one partition tree for prediction parameters and another partition tree for the transform coding stage. An important property of the quadtree structure is that the partition syntax elements consist of only a single binary bit. It signals whether the current block is split into four equal-sized and disjoint blocks; therefore, it is also called a split flag. Figure 1The results of a single split into a partition tree and the results in a two-dimensional image are illustrated. The split syntax element is encoded in the normal mode of a context-based adaptive entropy coding engine (HEVC uses context-based adaptive arithmetic coding CABAC). Specifically, an adaptive context model is used to encode this syntax element. The context modeling process for the split syntax element of the quadtree uses data about the quadtree depth of the current node and the transmitted partition trees of the neighboring blocks. One of the three available context models is selected depending on the depth of the neighboring partition trees; the following three cases are distinguished: (a) the two neighboring depths are greater than or equal to the current depth, (b) the two neighboring depths are less than the current depth, and (c) all other configurations.
[0005] In the latest video coding standardization activities of ITU-T and ISO / IEC, called Versatile Video Coding (VVC), non-square block shapes are used. Two alternative partitioning trees have been incorporated into the existing quadtree design: binary and ternary trees. As the names imply, nodes can be split into two or three rectangular shapes. These split shapes can be interchanged and themselves form further split trees: binary ternary trees (BTT).
[0006] For example, block-based image / video coding and context modeling for content prediction are used to compress image or video data. Summary of the invention
[0007] Therefore, the object of the present disclosure is to provide a concept for encoding and decoding images with high compression efficiency. This object is achieved by the subject matter of the independent technical solutions attached hereto.
[0008] One aspect of the present disclosure relates to an apparatus for decoding an image. The apparatus is configured to divide the image into coding blocks, such as leaf blocks, using recursive multitree splitting depending on splitting information signaled in a data stream. The apparatus is further configured to decode the image from coding information signaled in the data stream and associated with the coding blocks. The apparatus is configured to divide the image into the coding blocks by decoding a splitting flag of the splitting information from the data stream depending on splitting information signaled in a data stream, such as the data stream, the splitting flag indicating whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks. That is, for example, if the splitting flag indicates that the predetermined block is not to be split, the recursive multitree splitting is stopped. If the splitting flag indicates that the predetermined block of the image is to be split, the partitioning of the image includes decoding a quad flag of the splitting information from the data stream, the quad flag indicating whether the predetermined block of the image is to be split into four sub-blocks. If the split flag indicates that the predetermined block of the image is to be split, and if the quad flag indicates that the predetermined block of the image is not to be split into four sub-blocks, the partitioning of the image includes decoding one or more further flags of the split information from the data stream, the one or more further flags indicating whether the predetermined block of the image is to be split vertically or horizontally into two or three sub-blocks. Additionally, if the split flag indicates that the predetermined block of the image is to be split, the partitioning of the image includes resuming the recursive multitree splitting of the sub-blocks using further further flags of the split information. For example, in further recursions of the recursive multitree splitting, one of the sub-blocks may be a predetermined block. When the device may stop partitioning, if the split flag indicates that the predetermined block of the image is to be split, and when the device may decode and / or evaluate the split flag before decoding further flags such as a quad flag, if the predetermined block is not to be further split, the device may only decode one flag, i.e., the split flag. Stopping the recursive partitioning after decoding only one flag improves decoding efficiency. Additionally, if a predetermined block is not to be further split, it may be sufficient to have a split flag in the split information, thus reducing the size of the data stream.
[0009] Another aspect relates to an apparatus for decoding an image. The apparatus is configured to divide the image into coding blocks using recursive multitree splitting depending on split information signaled in a data stream. The apparatus is further configured to decode the image from coding information signaled in the data stream and associated with the coding blocks. The apparatus is configured to divide the image into the coding blocks by decoding a split flag of the split information and a quad flag from the data stream depending on split information signaled in a data stream, such as the data stream. The split flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks. The quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the division of the image includes obtaining information about a split direction flag and information about a triple flag. If neither the second predetermined criterion nor the third predetermined criterion is met, the apparatus is configured to obtain the information about the split direction flag by decoding a split direction flag from the data stream, the split direction flag indicating whether the predetermined block of the image is to be split vertically or horizontally. If the second predetermined criterion is met, the apparatus is configured to obtain the information about the split direction flag by inferring that the split direction flag indicates that the predetermined block of the image is to be split vertically. If the third predetermined criterion is met, the apparatus is configured to obtain the information about the split direction flag by inferring that the split direction flag indicates that the predetermined block of the image is to be split horizontally. If the fourth predetermined criterion is not met, the apparatus is configured to obtain the information about the split direction flag by decoding a ternary flag from the data stream. The ternary flag indicates that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the fourth predetermined criterion is met, the apparatus is configured to obtain the information about the split direction flag by inferring that the ternary flag indicates that the predetermined block of the image is to be split into two sub-blocks. In addition, if the predetermined block of the image is to be split, the partitioning of the image includes restoring the recursive multitree splitting of the sub-blocks using a further flag of the splitting information. The apparatus is further configured to decode the split direction flag from the data stream using a second context by context adaptive entropy decoding. The second context depends on whether the following conditions are met and distinguishes the following conditions.In a first case, the fourth predetermined criterion will not be satisfied in case the splitting direction indicated by the splitting direction flag is horizontal and in case the splitting direction indicated by the splitting direction flag is vertical, or the fourth predetermined criterion will be satisfied in case the splitting direction indicated by the splitting direction flag is horizontal and in case the splitting direction indicated by the splitting direction flag is vertical. In a second case, the fourth predetermined criterion will be satisfied in case the splitting direction indicated by the splitting direction flag is horizontal and will not be satisfied in case the splitting direction indicated by the splitting direction flag is vertical. In a third case, the fourth predetermined criterion will not be satisfied in case the splitting direction indicated by the splitting direction flag is horizontal and will be satisfied in case the splitting direction indicated by the splitting direction flag is vertical.
[0010] A further aspect relates to an apparatus for decoding an image, configured to divide the image into coding blocks using recursive multitree splitting depending on splitting information signaled in a data stream. The apparatus is further configured to decode the image from coding information signaled in the data stream and associated with the coding blocks. The apparatus is configured to divide the image into the coding blocks by decoding a split flag of the splitting information and a quaternary flag from the data stream depending on the splitting information signaled in the data stream. The splitting flag indicates whether a predetermined block of the image is to be split or not to be split, the latter meaning that the recursive multitree splitting stops, wherein the predetermined block becomes one of the coding blocks. The quaternary flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the apparatus is configured to obtain information about a splitting direction flag and information about a ternary flag. If neither the second predetermined criterion nor the third predetermined criterion is met, obtaining the information about the split direction flag comprises decoding a split direction flag from the data stream, the split direction flag indicating that the predetermined block of the image is to be split vertically or horizontally. If the second predetermined criterion is met, obtaining the information about the split direction flag comprises inferring that the split direction flag indicates that the predetermined block of the image is to be split vertically. If the third predetermined criterion is met, obtaining the information about the split direction flag comprises inferring that the split direction flag indicates that the predetermined block of the image is to be split horizontally. If the fourth predetermined criterion is not met, obtaining the information about the ternary flag comprises decoding a ternary flag from the data stream, the ternary flag indicating that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the fourth predetermined criterion is met, obtaining the information about the ternary flag comprises inferring that the ternary flag indicates that the predetermined block of the image is to be split into two sub-blocks. In addition, if a fifth predetermined criterion is met, obtaining the information about the ternary flag includes inferring that the ternary flag indicates that the predetermined block of the image is to be split into three sub-blocks, and suppressing the decoding of the ternary flag from the data stream. If the predetermined block of the image is to be split, the partitioning of the image includes using a further flag of the split information to restore the recursive multi-tree split of the sub-blocks. In addition, the apparatus is configured to decode the split direction flag from the data stream using a second context by context adaptive entropy decoding. The second context depends on whether the first number of the criteria in the fourth predetermined criterion and the fifth predetermined criterion is equal to, greater than or less than the second number of the criteria in the fourth predetermined criterion and the fifth predetermined criterion, and distinguishing between the first number and the second number.In case the splitting direction indicated by the splitting direction flag is horizontal, the fourth predetermined criterion and the first number of the criteria in the fifth predetermined criterion will be satisfied. In case the splitting direction indicated by the splitting direction flag is vertical, the fourth predetermined criterion and the second number of the criteria in the fifth predetermined criterion will be satisfied.
[0011] Another aspect relates to an apparatus for decoding an image, configured to divide the image into coding blocks using recursive multitree splitting depending on splitting information signaled in a data stream. The apparatus is further configured to decode the image from coding information signaled in the data stream and associated with the coding blocks. The apparatus is configured to divide the image into the coding blocks by decoding a split flag of the splitting information and a quad flag from the data stream depending on splitting information signaled in a data stream, such as the data stream. The split flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks. The quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the partitioning of the image includes decoding a split direction flag from the data stream and decoding a ternary flag from the data stream. The split direction flag indicates whether the predetermined block of the image is to be split vertically or horizontally. The ternary flag indicates that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split, the partitioning of the image includes using a further flag of the splitting information to restore the recursive multi-tree splitting of the sub-blocks. The device is further configured to decode the ternary flag from the data stream using a third context by context adaptive entropy decoding. The third context depends on the number of splits of the recursive multi-tree splitting used to obtain the predetermined block, such as a recursive number of the recursive multi-tree splitting, or the third context depends on the size of the predetermined block. Alternatively or additionally, the third context depends on whether the split direction flag indicates a horizontal splitting direction or the split direction flag indicates a vertical splitting direction, and distinguishes between the split direction flag indicating a horizontal splitting direction and the split direction flag indicating a vertical splitting direction.
[0012] Another aspect relates to an apparatus for decoding an image, configured to divide the image into coding blocks using recursive multitree splitting depending on splitting information signaled in a data stream. The apparatus is further configured to decode the image from coding information signaled in the data stream and associated with the coding blocks. The apparatus is configured to divide the image into the coding blocks depending on splitting information signaled in a data stream, such as the data stream, by decoding a splitting flag of the splitting information and a quad flag from the data stream. The splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks. The quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, dividing the image includes decoding one or more additional flags of the splitting information from the data stream, the one or more additional flags indicating that the predetermined block of the image is to be split vertically or horizontally into two or three sub-blocks. If the predetermined block of the image is to be split, dividing the image comprises restoring the recursive multitree splitting of the sub-blocks using a further flag of the splitting information. The apparatus is further configured to select one of a first mode and a second mode. In the first mode, the apparatus is configured to decode the quad flag after the split flag if the split flag indicates that the predetermined block of the image is to be split. In the second mode, the apparatus is configured to decode the split flag after the quad flag if the quad flag indicates that the predetermined sub-block of the image is not to be split into four sub-blocks.
[0013] Another aspect relates to an apparatus for encoding an image. The apparatus is configured to divide the image into coding blocks using recursive multitree splitting. The apparatus is configured to encode splitting information in a data stream, the splitting information defining the division of the image. The apparatus is further configured to encode the image into coding information associated with the coding blocks and encode the coding information in the data stream. The apparatus is configured to encode the splitting information in the data stream by encoding a splitting flag of the splitting information into the data stream. The splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks. For example, if the predetermined block is a coding block, such as a leaf block, or if the predetermined block is further split by another recursion of the recursive multitree splitting, the splitting flag may indicate to a decoder to decode the splitting flag, thereby instructing the decoder to perform another such recursion. If the splitting flag indicates that the predetermined block of the image is to be split, the encoding of the splitting information includes encoding a quad flag of the splitting information into the data stream. The quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the split flag indicates that the predetermined block of the image is to be split, and if the quad flag indicates that the predetermined block of the image is not to be split into four sub-blocks, the encoding of the split information further includes encoding one or more additional flags of the split information into the data stream. The one or more additional flags indicate that the predetermined block of the image is to be split vertically or horizontally into two or three sub-blocks. If the split flag indicates that the predetermined block of the image is to be split, the encoding of the split information further includes using further flags of the split information to restore the encoding of the split information of the sub-block. For example, in a further recursion of the recursive multitree splitting, one of the sub-blocks may be a predetermined block.
[0014] Another aspect relates to an apparatus for encoding an image, configured to divide the image into coding blocks using recursive multitree splitting and to encode splitting information in a data stream, the splitting information defining the division. The apparatus is further configured to encode the image into coding information associated with the coding blocks and to encode the coding information in the data stream. The apparatus is configured to encode the splitting information in the data stream by encoding a splitting flag and a quad flag of the splitting information into the data stream. The splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks. The quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, and if both the second predetermined criterion and the third predetermined criterion are not met, the encoding of the splitting information includes encoding a splitting direction flag into the data stream. The splitting direction flag indicates whether the predetermined block of the image is to be split vertically or horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, and if the second predetermined criterion is met, the encoding of the splitting information comprises suppressing the encoding of the splitting direction flag, wherein if the second predetermined criterion is met, the splitting direction flag will be inferred to indicate that the predetermined block of the image is to be split vertically. If the predetermined block of the image is to be split but not to be split into four sub-blocks, and if the third predetermined criterion is met, the encoding of the splitting information comprises suppressing the encoding of the splitting direction flag, wherein if the third predetermined criterion is met, the splitting direction flag will be inferred to indicate that the predetermined block of the image is to be split horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, and if the fourth predetermined criterion is not met, the encoding of the splitting information comprises encoding a ternary flag into the data stream. The ternary flag indicates that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split but is not to be split into four sub-blocks, and if the fourth predetermined criterion is met, the encoding of the splitting information includes suppressing the encoding of the ternary flag, wherein if the fourth predetermined criterion is met, the ternary flag will be inferred to indicate that the predetermined block of the image is to be split into two sub-blocks. If the predetermined block of the image is to be split, the encoding of the splitting information includes restoring the encoding of the splitting information of the sub-block using a further flag of the splitting information. The device is further configured to encode the splitting direction flag into the data stream using a second context by context adaptive entropy coding. The second context depends on whether the following situations are met and distinguishes the following situations.In a first case, the fourth predetermined criterion will not be satisfied in case the splitting direction indicated by the splitting direction flag is horizontal and in case the splitting direction indicated by the splitting direction flag is vertical, or the fourth predetermined criterion will be satisfied in case the splitting direction indicated by the splitting direction flag is horizontal and in case the splitting direction indicated by the splitting direction flag is vertical. In a second case, the fourth predetermined criterion will be satisfied in case the splitting direction indicated by the splitting direction flag is horizontal and will not be satisfied in case the splitting direction indicated by the splitting direction flag is vertical. In a third case, the fourth predetermined criterion will not be satisfied in case the splitting direction indicated by the splitting direction flag is horizontal and will be satisfied in case the splitting direction indicated by the splitting direction flag is vertical.
[0015] Another aspect relates to an apparatus for encoding an image, configured to divide the image into coding blocks using recursive multitree splitting and to encode splitting information in a data stream, the splitting information defining the division. The apparatus is further configured to encode the image into coding information signaled in the data stream and associated with the coding blocks and to encode the coding information in the data stream. The apparatus is configured to divide the image into the coding blocks by encoding a splitting flag of the splitting information and a quad flag into the data stream, depending on the splitting information signaled in the data stream. The splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks. The quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, and if both the second predetermined criterion and the third predetermined criterion are not met, the division of the image includes encoding a splitting direction flag into the data stream. The split direction flag indicates that the predetermined block of the image is to be split vertically or horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, and if both the second predetermined criterion and the third predetermined criterion are not met, the partitioning of the image includes suppressing the encoding of the split direction flag, wherein if the second predetermined criterion is met, the split direction flag will be inferred to indicate that the predetermined block of the image is to be split vertically. If the predetermined block of the image is to be split but not to be split into four sub-blocks, and if the third predetermined criterion is met, the partitioning of the image includes suppressing the encoding of the split direction flag, wherein if the third predetermined criterion is met, the split direction flag will be inferred to indicate that the predetermined block of the image is to be split horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, and if the fourth predetermined criterion and the fifth predetermined criterion are not met, the partitioning of the image includes encoding a ternary flag into the data stream. The ternary flag indicates that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split but will not be split into four sub-blocks, and if the fourth predetermined criterion is met, the division of the image includes suppressing the encoding of the ternary flag, wherein if the fourth predetermined criterion is met, the ternary flag will be inferred to indicate that the predetermined block of the image is to be split into two sub-blocks.If the predetermined block of the image is to be split but is not to be split into four sub-blocks, and if the fifth predetermined criterion is met, the partitioning of the image includes suppressing the encoding of the ternary flag, wherein if the fifth predetermined criterion is met, the ternary flag will be inferred to indicate that the predetermined block of the image is to be split into three sub-blocks. If the predetermined block of the image is to be split, the partitioning of the image includes restoring the encoding of the split information of the sub-block using a further flag of the split information. In addition, the apparatus is configured to encode the split direction flag into the data stream using a second context by context adaptive entropy coding, the second context depending on whether a first number is equal to, greater than or less than a second number, and distinguishing between the first number and the second number. The first number is a first number of the fourth predetermined criterion and the fifth predetermined criterion to be satisfied if the split direction indicated by the split direction flag is horizontal. The second number is a second number of the fourth predetermined criterion and the fifth predetermined criterion to be satisfied if the split direction indicated by the split direction flag is vertical.
[0016] Another aspect relates to an apparatus for encoding an image, configured to divide the image into coding blocks using recursive multitree splitting and to encode splitting information in a data stream, the splitting information defining the division. In addition, the apparatus is configured to encode the image into coding information associated with the coding blocks and to encode the coding information in the data stream. The apparatus is configured to encode the splitting information into the data stream by encoding a splitting flag and a quaternary flag of the splitting information into the data stream, wherein the splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quaternary flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the encoding of the splitting information includes encoding a splitting direction flag into the data stream and encoding a ternary flag into the data stream. The splitting direction flag indicates that the predetermined block of the image is to be split vertically or horizontally. The ternary flag indicates that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split, the encoding of the splitting information includes using a further flag of the splitting information to recover the encoding of the splitting information of the sub-block. The device is configured to encode the ternary flag into the data stream using a third context by context adaptive entropy coding. The third context depends on the number of splits of the recursive multi-tree splitting used to obtain the predetermined block, or the third context depends on the size of the predetermined block. Additionally or alternatively, the third context depends on whether the splitting direction flag indicates a horizontal splitting direction or the splitting direction flag indicates a vertical splitting direction, and distinguishes between the splitting direction flag indicating a horizontal splitting direction and the splitting direction flag indicating a vertical splitting direction.
[0017] Another aspect relates to an apparatus for encoding an image, configured to divide the image into coding blocks using recursive multitree splitting and to encode splitting information in a data stream, the splitting information defining the division. The apparatus is further configured to encode the image into coding information associated with the coding blocks and to encode the coding information in the data stream. The apparatus is configured to encode the splitting information into the data stream by encoding a splitting flag and a quad flag of the splitting information into the data stream, wherein the splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the encoding of the splitting information includes encoding one or more additional flags of the splitting information into the data stream, the one or more additional flags indicating that the predetermined block of the image is to be split vertically or horizontally into two or three sub-blocks. If the predetermined block of the image is to be split, the encoding of the splitting information comprises restoring the encoding of the splitting information of the sub-block using a further flag of the splitting information. The apparatus is configured to select one of a first mode and a second mode. In the first mode, the apparatus is configured to encode the quad flag after the split flag if the split flag indicates that the predetermined block of the image is to be split. In the second mode, the apparatus is configured to encode the split flag after the quad flag if the quad flag indicates that the predetermined sub-block of the image is not to be split into four sub-blocks.
[0018] A further aspect relates to a method for decoding an image, comprising dividing the image into coding blocks using recursive multitree splitting depending on splitting information signaled in a data stream, and further comprising decoding the image from coding information signaled in the data stream and associated with the coding blocks. The method further comprises dividing the image into the coding blocks by decoding a split flag of the splitting information from the data stream depending on the splitting information signaled in the data stream, the splitting flag indicating whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks. If the splitting flag indicates that the predetermined block of the image is to be split, the dividing of the image comprises decoding a quad flag of the splitting information from the data stream, the quad flag indicating whether the predetermined block of the image is to be split into four sub-blocks. If the quad flag indicates that the predetermined block of the image is not to be split into four sub-blocks, the partitioning of the image comprises decoding one or more further flags of the splitting information from the data stream, the one or more further flags indicating that the predetermined block of the image is to be split vertically or horizontally into two or three sub-blocks. If the splitting flag indicates that the predetermined block of the image is to be split, the partitioning of the image comprises restoring the recursive multitree splitting of the sub-blocks using further further flags of the splitting information.
[0019] A further aspect relates to a method for decoding an image, comprising dividing the image into coding blocks using recursive multitree splitting depending on split information signaled in a data stream. The method further comprises decoding the image from coding information signaled in the data stream and associated with the coding blocks. The method comprises dividing the image into the coding blocks by decoding a split flag and a quad flag of the split information from the data stream depending on the split information signaled in the data stream, wherein the split flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the dividing of the image comprises decoding a split direction flag from the data stream if both a second predetermined criterion and a third predetermined criterion are not met, the split direction flag indicating that the predetermined block of the image is to be split vertically or horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the partitioning of the image comprises inferring that the split direction flag indicates that the predetermined block of the image is to be split vertically if the second predetermined criterion is met. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the partitioning of the image comprises inferring that the split direction flag indicates that the predetermined block of the image is to be split horizontally if the third predetermined criterion is met. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the partitioning of the image comprises decoding a ternary flag from the data stream if a fourth predetermined criterion is not met, the ternary flag indicating that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the partitioning of the image comprises inferring that the ternary flag indicates that the predetermined block of the image is to be split into two sub-blocks if the fourth predetermined criterion is met. If the predetermined block of the image is to be split, the partitioning of the image comprises restoring the recursive multitree splitting of the sub-blocks using further indications of the splitting information.The method further includes decoding the split direction flag from the data stream using a second context by context adaptive entropy decoding, wherein the second context depends on whether the following situations are satisfied and distinguishes the following situations: (i) the fourth predetermined criterion will not be satisfied when the split direction indicated by the split direction flag is horizontal and when the split direction indicated by the split direction flag is vertical, or the fourth predetermined criterion will be satisfied when the split direction indicated by the split direction flag is horizontal and when the split direction indicated by the split direction flag is vertical, (ii) the fourth predetermined criterion will be satisfied when the split direction indicated by the split direction flag is horizontal, and the fourth predetermined criterion will not be satisfied when the split direction indicated by the split direction flag is vertical, and (iii) the fourth predetermined criterion will not be satisfied when the split direction indicated by the split direction flag is horizontal, and the fourth predetermined criterion will be satisfied when the split direction indicated by the split direction flag is vertical.
[0020] A further aspect relates to a method for decoding an image, comprising dividing the image into coding blocks using recursive multitree splitting depending on splitting information signaled in a data stream, and further comprising decoding the image from coding information signaled in the data stream and associated with the coding blocks. The method comprises dividing the image into the coding blocks by decoding a split flag and a quad flag of the split information from the data stream depending on the splitting information signaled in the data stream, wherein the split flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the dividing of the image comprises decoding a split direction flag from the data stream if both a second predetermined criterion and a third predetermined criterion are not met, the split direction flag indicating that the predetermined block of the image is to be split vertically or horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the partitioning of the image further comprises inferring that the split direction flag indicates that the predetermined block of the image is to be split vertically if the second predetermined criterion is met. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the partitioning of the image further comprises inferring that the split direction flag indicates that the predetermined block of the image is to be split horizontally if the third predetermined criterion is met. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the partitioning of the image further comprises decoding a ternary flag from the data stream if a fourth predetermined criterion is not met, the ternary flag indicating that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split but is not to be split into four sub-blocks, the partitioning of the image further comprises inferring that the ternary flag indicates that the predetermined block of the image is to be split into two sub-blocks if the fourth predetermined criterion is met, and inferring that the ternary flag indicates that the predetermined block of the image is to be split into three sub-blocks if a fifth predetermined criterion is met, and suppressing the ternary flag from the decoding of the data stream. If the predetermined block of the image is to be split, the partitioning of the image comprises restoring the recursive multitree splitting of the sub-blocks using a further flag of the splitting information.In addition, the method includes decoding the split direction flag from the data stream using a second context by context adaptive entropy decoding, wherein the second context depends on whether the following items are true and distinguishes between the following items: (i) a first number of criteria among the fourth predetermined criterion and the fifth predetermined criterion to be satisfied when the split direction indicated by the split direction flag is horizontal is equal to a second number of criteria among the fourth predetermined criterion and the fifth predetermined criterion to be satisfied when the split direction indicated by the split direction flag is vertical, (ii) the first number is greater than the second number, and (iii) the first number is less than the second number.
[0021] A further aspect relates to a method for decoding an image, comprising dividing the image into coding blocks using recursive multitree splitting depending on splitting information signaled in a data stream, and further comprising decoding the image from coding information signaled in the data stream and associated with the coding blocks. The method comprises dividing the image into the coding blocks by decoding a split flag and a quaternary flag of the splitting information from the data stream depending on the splitting information signaled in the data stream, wherein the splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quaternary flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the dividing of the image comprises: decoding a split direction flag from the data stream, the split direction flag indicating that the predetermined block of the image is to be split vertically or horizontally; and decoding a ternary flag from the data stream, the ternary flag indicating that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split, the partitioning of the image comprises restoring the recursive multitree splitting of the sub-blocks using a further flag of the splitting information. Decoding the ternary flag from the data stream by context adaptive entropy decoding comprises using a third context, the third context depending on the number of splits of the recursive multitree splitting used to obtain the predetermined block or the size of the predetermined block. Additionally or alternatively, the third context depends on whether the split direction flag indicates a horizontal splitting direction or whether the split direction flag indicates a vertical splitting direction, and distinguishing between the split direction flag indicating a horizontal splitting direction and the split direction flag indicating a vertical splitting direction.
[0022] A further aspect relates to a method for decoding an image, comprising dividing the image into coding blocks using recursive multitree splitting depending on splitting information signaled in a data stream and decoding the image from coding information signaled in the data stream and associated with the coding blocks. The method comprises dividing the image into the coding blocks by decoding a split flag and a quad flag of the splitting information from the data stream depending on the splitting information signaled in the data stream, wherein the splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but is not to be split into four sub-blocks, dividing the image comprises decoding one or more further flags of the splitting information from the data stream, the one or more further flags indicating that the predetermined block of the image is to be split vertically or horizontally into two or three sub-blocks. If the predetermined block of the image is to be split, the partitioning of the image comprises restoring the recursive multitree splitting of the sub-blocks using a further flag of the splitting information. The method further comprises selecting one of a first mode and a second mode, and in the first mode, decoding the quad flag after the split flag if the split flag indicates that the predetermined block of the image is to be split, and in the second mode, decoding the split flag after the quad flag if the quad flag indicates that the predetermined sub-block of the image is not to be split into four sub-blocks.
[0023] Another aspect relates to a method for encoding an image, comprising dividing the image into coding blocks using recursive multitree splitting and encoding splitting information in a data stream, the splitting information defining the division. The method further comprises encoding the image into coding information associated with the coding blocks and encoding the coding information in the data stream. In addition, the method comprises encoding the splitting information in the data stream by encoding a splitting flag of the splitting information into the data stream, the splitting flag indicating whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks. If the splitting flag indicates that the predetermined block of the image is to be split, the partitioning of the image comprises encoding a quad flag of the splitting information into the data stream, the quad flag indicating whether the predetermined block of the image is to be split into four sub-blocks. If the quad flag indicates that the predetermined block of the image is not to be split into four sub-blocks, the method comprises encoding one or more further flags of the splitting information into the data stream, the one or more further flags indicating that the predetermined block of the image is to be split vertically or horizontally into two or three sub-blocks. If the splitting flag indicates that the predetermined block of the image is to be split, the method comprises recovering the encoding of the splitting information of the sub-blocks using further further flags of the splitting information.
[0024] Another aspect relates to a method for encoding an image, comprising dividing the image into coding blocks using recursive multitree splitting and encoding splitting information in a data stream, the splitting information defining the division. The method further comprises encoding the image into coding information associated with the coding blocks and encoding the coding information in the data stream. In addition, the method comprises encoding the splitting information in the data stream by encoding a splitting flag and a quad flag of the splitting information into the data stream, wherein the splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises encoding a splitting direction flag into the data stream if both the second predetermined criterion and the third predetermined criterion are not met, the splitting direction flag indicating that the predetermined block of the image is to be split vertically or horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises suppressing the encoding of the split direction flag if the second predetermined criterion is met, wherein if the second predetermined criterion is met, the split direction flag will be inferred to indicate that the predetermined block of the image is to be split vertically. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises suppressing the encoding of the split direction flag if the third predetermined criterion is met, wherein if the third predetermined criterion is met, the split direction flag will be inferred to indicate that the predetermined block of the image is to be split horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises encoding a ternary flag into the data stream if a fourth predetermined criterion is not met, the ternary flag indicating that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split but is not to be split into four sub-blocks, the method comprises suppressing the encoding of the ternary flag if the fourth predetermined criterion is met, wherein if the fourth predetermined criterion is met, the ternary flag is inferred to indicate that the predetermined block of the image is to be split into two sub-blocks. If the predetermined block of the image is to be split, the method comprises restoring the encoding of the splitting information of the sub-block using a further flag of the splitting information.The method further includes encoding the split direction flag into the data stream using a second context by context adaptive entropy coding, the second context depending on whether and distinguishing between the following: (i) the fourth predetermined criterion will not be satisfied when the split direction indicated by the split direction flag is horizontal and when the split direction indicated by the split direction flag is vertical, or the fourth predetermined criterion will be satisfied when the split direction indicated by the split direction flag is horizontal and when the split direction indicated by the split direction flag is vertical, (ii) the fourth predetermined criterion will be satisfied when the split direction indicated by the split direction flag is horizontal, and the fourth predetermined criterion will not be satisfied when the split direction indicated by the split direction flag is vertical, (iii) the fourth predetermined criterion will not be satisfied when the split direction indicated by the split direction flag is horizontal, and the fourth predetermined criterion will be satisfied when the split direction indicated by the split direction flag is vertical.
[0025] A further aspect relates to a method for encoding an image, comprising dividing the image into coding blocks using recursive multitree splitting and encoding splitting information in a data stream, the splitting information defining the division. In addition, the method comprises encoding the image into coding information signaled in the data stream and associated with the coding blocks and encoding the coding information in the data stream. The method comprises dividing the image into the coding blocks by encoding a split flag of the splitting information and a quad flag into the data stream depending on the splitting information signaled in the data stream, wherein the split flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises encoding a split direction flag into the data stream if both the second predetermined criterion and the third predetermined criterion are not met, the split direction flag indicating that the predetermined block of the image is to be split vertically or horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises suppressing the encoding of the split direction flag if the second predetermined criterion is met, wherein if the second predetermined criterion is met, the split direction flag will be inferred to indicate that the predetermined block of the image is to be split vertically. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises suppressing the encoding of the split direction flag if the third predetermined criterion is met, wherein if the third predetermined criterion is met, the split direction flag will be inferred to indicate that the predetermined block of the image is to be split horizontally. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises encoding a ternary flag into the data stream if the fourth predetermined criterion and the fifth predetermined criterion are not met, the ternary flag indicating that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split but is not to be split into four sub-blocks, the method comprises suppressing the encoding of the ternary flag if the fourth predetermined criterion is met, wherein if the fourth predetermined criterion is met, the ternary flag is inferred to indicate that the predetermined block of the image is to be split into two sub-blocks. If the predetermined block of the image is to be split but is not to be split into four sub-blocks, the method comprises suppressing the encoding of the ternary flag if the fifth predetermined criterion is met, wherein if the fifth predetermined criterion is met, the ternary flag is inferred to indicate that the predetermined block of the image is to be split into three sub-blocks.If the predetermined block of the image is to be split, the method comprises recovering the encoding of the split information of the sub-block using a further flag of the split information. The method comprises encoding the split direction flag into the data stream by context adaptive entropy coding using a second context, the second context depending on whether and distinguishing between the following: (i) a first number of criteria in the fourth predetermined criterion and the fifth predetermined criterion to be satisfied when the split direction indicated by the split direction flag is horizontal is equal to a second number of criteria in the fourth predetermined criterion and the fifth predetermined criterion to be satisfied when the split direction indicated by the split direction flag is vertical, (ii) the first number is greater than the second number, and (iii) the first number is less than the second number.
[0026] Another aspect relates to a method for encoding an image, comprising dividing the image into coding blocks using recursive multitree splitting and encoding splitting information in a data stream, the splitting information defining the division. The method further comprises encoding the image into coding information associated with the coding blocks and encoding the coding information in the data stream. In addition, the method comprises encoding the splitting information into the data stream by encoding a split flag and a quad flag of the splitting information into the data stream, wherein the split flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises: encoding a split direction flag into the data stream, the split direction flag indicating that the predetermined block of the image is to be split vertically or horizontally; and encoding a ternary flag into the data stream, the ternary flag indicating that the predetermined block of the image is to be split into three sub-blocks or two sub-blocks. If the predetermined block of the image is to be split, the method comprises using a further flag of the split information to recover the encoding of the split information of the sub-block. In addition, the method comprises encoding the ternary flag into the data stream using a third context by context adaptive entropy coding, the third context depending on the number of splits of the recursive multi-tree splitting used to obtain the predetermined block or the size of the predetermined block. Additionally or alternatively, the third context depends on whether the split direction flag indicates a horizontal split direction or the split direction flag indicates a vertical split direction, and distinguishing between the split direction flag indicating a horizontal split direction and the split direction flag indicating a vertical split direction.
[0027] A further aspect relates to a method for encoding an image, comprising: dividing the image into coding blocks using recursive multitree splitting and encoding splitting information in a data stream, the splitting information defining the division; and encoding the image into coding information associated with the coding blocks and encoding the coding information in the data stream. In addition, the method comprises encoding the splitting information into the data stream by encoding a splitting flag and a quad flag of the splitting information into the data stream, wherein the splitting flag indicates whether a predetermined block of the image is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block becomes one of the coding blocks, and the quad flag indicates whether the predetermined block of the image is to be split into four sub-blocks. If the predetermined block of the image is to be split but not to be split into four sub-blocks, the method comprises encoding one or more further flags of the splitting information into the data stream, the one or more further flags indicating that the predetermined block of the image is to be split vertically or horizontally into two or three sub-blocks. If the predetermined block of the image is to be split, the method comprises restoring the encoding of the split information of the sub-block using a further flag of the split information. In addition, the method comprises selecting one of a first mode and a second mode, and in the first mode, if the split flag indicates that the predetermined block of the image is to be split, encoding the quad flag after the split flag, and in the second mode, if the quad flag indicates that the predetermined sub-block of the image is not to be split into four sub-blocks, encoding the split flag after the quad flag.
[0028] The method relies on the same concept as the device described above, thereby providing equal or equivalent functionality and advantages. The method can be optionally combined with (or supplemented by) any of the features, functionalities and details described herein for the corresponding device. The method can be optionally combined with the features, functionalities and details mentioned, individually or in any combination thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Embodiments of the present disclosure are described in more detail with reference to the accompanying drawings, in which
[0030] Figure 1 A schematic diagram showing an apparatus for encoding an image, which apparatus may implement the disclosed concept,
[0031] Figure 2 A schematic diagram showing an apparatus for decoding an image, which apparatus may implement the disclosed concept,
[0032] Figure 3 describing a signal used by an encoder or a decoder according to an embodiment,
[0033] Figure 4 A schematic diagram showing an apparatus for decoding an image according to an embodiment,
[0034] Figure 5 shows a schematic diagram of an apparatus for decoding an image according to a further embodiment,
[0035] Figure 6 shows a schematic diagram of an apparatus for decoding an image according to a further embodiment,
[0036] Figure 7 describing an exemplary embodiment of a second context,
[0037] Figure 8 shows a schematic diagram of an apparatus for decoding an image according to a further embodiment,
[0038] Fig. 9 shows a schematic diagram of an apparatus for decoding an image according to a further embodiment,
[0039] Fig. 10A , Fig. 10B illustrating quadtree splitting according to an embodiment,
[0040] Fig.11 Description According to the current VVC partition tree,
[0041] Fig.12 Describe a partition tree according to an embodiment,
[0042] Fig.13 A schematic diagram showing an apparatus for encoding an image according to an embodiment is shown,
[0043] Fig.14 A flow chart showing an embodiment of a method for decoding an image,
[0044] Fig.15 A flow chart showing an embodiment of a method for decoding an image,
[0045] Fig.16 A flow chart showing an embodiment of a method for decoding an image,
[0046] Fig.17 A flow chart showing an embodiment of a method for decoding an image,
[0047] Fig.18 A flow chart showing an embodiment of a method for decoding an image,
[0048] Fig.19 As shown in Table 1,
[0049] Fig. 20 As shown in Table 2,
[0050] Fig.21 As shown in Table 3,
[0051] Fig. 22 As shown in Table 4,
[0052] Fig.23 Table 5 is shown. DETAILED DESCRIPTION
[0053] In the following, different inventive embodiments and aspects will be described. Further embodiments will be defined by the accompanying claims.
[0054] It should be noted that any embodiment as defined in the claims may be supplemented by any of the details (features and functionalities) described herein. Again, the embodiments described herein may be used individually and may also be optionally supplemented by any of the details (features and functionalities) included in the claims. Again, it should be noted that the individual aspects described herein may be used individually or in combination. Therefore, details may be added to each of the individual aspects without adding details to another of the aspects. It should also be noted that the present disclosure explicitly or implicitly describes features that can be used for encoding and decoding images / videos. Therefore, any of the features described herein may be used in the context of encoding and decoding images / videos.
[0055] The present invention will be more fully understood from the detailed description given below and from the accompanying drawings of embodiments of the present invention, which, however, should not be considered to limit the present invention to the specific embodiments described but are for explanation and understanding purposes only.
[0056] The following description of the figures begins with a description of an encoder and a decoder presenting a block-based predictive codec for encoding images of a video to form an example of a coding framework in which embodiments of the present invention may be constructed. Figures 1 to 3 In the following, a description of embodiments of the concepts of the present invention and how these concepts can be respectively constructed into Figure 1 as well as Figure 2 , but using the following Figure 4 The embodiments described below can also be used to form a structure not based on Figure 1 as well as Figure 2 The encoder and decoder of the lower layer encoding framework operate the encoder and decoder.
[0057] Figure 1An apparatus is shown for predictively encoding an image 12 into a data stream 14, exemplarily using transform-based residual coding. Reference numeral 10 is used to indicate an apparatus or encoder. Figure 2 A corresponding decoder 20 is shown, i.e. an apparatus 20 configured to predictively decode an image 12' from a data stream 14 also using transform-based residual decoding, wherein a prime has been used to indicate that the image 12' as reconstructed by the decoder 20 deviates from the image 12 originally encoded by the apparatus 10 in terms of coding losses introduced by quantization of the prediction residual signal. Figure 1 as well as Figure 2 Transform-based prediction residual coding is used illustratively, but the embodiments of the present application are not limited to such prediction residual coding. Figure 1 as well as Figure 2 The same is true for the other details described, as will be outlined below.
[0058] The encoder 10 is configured to subject the prediction residual signal to a spatial to spectral transform and to encode the prediction residual signal thus obtained into a data stream 14. Likewise, the decoder 20 is configured to decode the prediction residual signal from the data stream 14 and to subject the prediction residual signal thus obtained to a spectral to spatial transform.
[0059] Internally, the encoder 10 may include a prediction residual signal former 22 that generates a prediction residual 24 in order to measure the deviation of the prediction signal 26 from the original signal, that is, from the image 12. The prediction residual signal former 22 may, for example, be a subtractor that subtracts the prediction signal from the original signal, that is, from the image 12. The encoder 10 then further comprises a transformer 28 that subjects the prediction residual signal 24 to a spatial to spectral transformation in order to obtain a spectral domain prediction residual signal 24', which is then subjected to quantization by a quantizer 32 also comprised by the encoder 10. The thus quantized prediction residual signal 24" is encoded into a bit stream 14. For this purpose, the encoder 10 may optionally include an entropy encoder 34 that entropy encodes the prediction residual signal as transformed and quantized into a data stream 14. The prediction signal 26 is generated by a prediction stage 36 of the encoder 10 based on the prediction residual signal 24" that is encoded into the data stream 14 and can be decoded from the data stream. For this purpose, as Figure 1As shown in , the prediction stage 36 may internally include: a dequantizer 38, which dequantizes the prediction residual signal 24" in order to obtain a spectral domain prediction residual signal 24"', which corresponds to the signal 24' except for the quantization loss; an inverse transformer 40 after the dequantizer, which subjects the latter prediction residual signal 24"' to an inverse transformation, that is, a spectrum to spatial transformation, to obtain a prediction residual signal 24", which corresponds to the original prediction residual signal 24 except for the quantization loss. The combiner 42 of the prediction stage 36 then recombines the prediction signal 26 with the prediction residual signal 24", such as by addition, so as to obtain a reconstructed signal 46, that is, a reconstruction of the original signal 12. The reconstructed signal 46 may correspond to the signal 12'. The prediction module 44 of the prediction stage 36 then generates the prediction signal 26 based on the signal 46 by using, for example, spatial prediction, that is, intra-image prediction, and / or temporal prediction, that is, inter-image prediction.
[0060] Likewise, Figure 2 As shown in , the decoder 20 may be internally composed of components corresponding to the prediction stage 36 and interconnected in a manner corresponding to the prediction stage. In particular, the entropy decoder 50 of the decoder 20 may entropy decode the quantized spectral domain prediction residual signal 24″ from the data stream, and then the dequantizer 52, the inverse transformer 54, the combiner 56 and the prediction module 58 interconnected and cooperating in the manner described above with respect to the modules of the prediction stage 36 may restore the reconstructed signal based on the prediction residual signal 24″, so that Figure 2 As shown in , the output of combiner 56 produces a reconstructed signal, ie, image 12 ′.
[0061] Although not specifically described above, it is easy to understand that the encoder 10 can adapt some coding parameters, including, for example, prediction modes, motion parameters and the like, such as according to a certain optimization scheme, for example, in a manner to optimize a certain rate and distortion related criterion (i.e., coding cost). For example, the encoder 10 and the decoder 20 and the corresponding modules 44, 58 can support different prediction modes, such as intra-frame coding mode and inter-frame coding mode, respectively. The granularity used by the encoder and the decoder to switch between these prediction mode types can correspond to the subdivision of the image 12 and 12' into coding segments or coding blocks, respectively. In these units of coding segments, for example, the image can be subdivided into intra-frame coded blocks and inter-frame coded blocks. The intra-frame coded blocks are predicted based on the spatially encoded / decoded neighboring areas of each block as outlined in more detail below. Several intra coding modes may exist and be selected for each intra coded segment, including directional or angular intra coding modes, each segment is filled according to a directional or angular intra coding mode by extrapolating sample values of neighboring areas into each intra coded segment along a direction specific to each directional intra coding mode. The intra coding modes may, for example, also include one or more other modes, such as: a DC coding mode, according to which the prediction of each intra coded block assigns a DC value to all samples within each intra coded segment; and / or a planar intra coding mode, according to which the prediction of each block is estimated or determined as a spatial distribution of sample values described by a two-dimensional linear function at the sample positions of each intra coded block, each intra coded block having a driving tilt and offset of a plane defined by the two-dimensional linear function based on neighboring samples. In contrast, inter coded blocks may, for example, be predicted in time. For inter-coded blocks, motion vectors may be signaled within the data stream, the motion vectors indicating the spatial displacement of a portion of a previously coded image of the video to which the image 12 belongs, the previously coded / decoded images being sampled at the data stream in order to obtain a prediction signal for each inter-coded block. This means that in addition to the residual signal encoding included by the data stream 14, such as a number of levels of entropy coded transforms representing the quantized spectral domain prediction residual signal 24″, the data stream 14 may have encoded it into coding mode parameters for assigning coding modes to the various blocks, prediction parameters for some of the blocks, such as motion parameters for inter-coded segments, and optionally other parameters, such as parameters for controlling and signaling the subdivision of the images 12 and 12′, respectively, into segments. The decoder 20 uses these parameters to subdivide the images in the same way as the encoder, thereby assigning the same prediction modes to the segments and performing the same predictions to produce the same prediction signals.
[0062] Figure 3The relationship between the reconstructed signal, ie the reconstructed image 12', on the one hand, and the combination of the prediction residual signal 24"" as signaled in the data stream 14 and the prediction signal 26 on the other hand is described. As already indicated above, the combination may be an addition. The prediction signal 26 is Figure 3 1 is illustrated as a subdivision of an image region into intra-coded blocks illustratively indicated using hatching and inter-coded blocks illustratively indicated with non-shading. The subdivision may be any subdivision, such as a conventional subdivision of an image region into rows and columns of square blocks or non-square blocks, or a multitree subdivision of the image 12 from a tree root block, such as a CTU, into a plurality of leaf blocks of different sizes, such as a CU. The subdivision may be any subdivision, such as a quadtree subdivision or a binary or ternary subdivision or the like, with mixtures thereof illustrated in Figure 3 In which the image region is first subdivided into rows and columns of tree root blocks, which are then further subdivided into one or more leaf blocks according to a recursive multitree subdivision. The recursive multitree subdivision may also be referred to as a recursive multitree splitting.
[0063] Furthermore, for the intra-coded blocks 80, the data stream 14 may encode therein an intra-coding mode, which assigns one of several supported intra-coding modes to each intra-coded block 80. For the inter-coded blocks 82, the data stream 14 may encode therein one or more motion parameters. In general, the inter-coded blocks 82 are not limited to being encoded in time. Alternatively, the inter-coded blocks 82 may be any block predicted from a previously coded portion beyond the current image 12 itself, such as a previously coded image of the video to which the image 12 belongs, or an image of another view or a hierarchically lower layer in the case where the encoder and decoder are tunable encoders and decoders, respectively.
[0064] Figure 3 The prediction residual signal 24″″ in FIG. 8 is also illustrated as a subdivision of the image area into blocks 84. These blocks may be referred to as transform blocks in order to distinguish them from the coding blocks 80 and 82. In practice, Figure 3 It is illustrated that the encoder 10 and the decoder 20 may use two different subdivisions of the image 12 and the image 12' into blocks, namely one subdivision into coding blocks 80 and 82 and another subdivision into transform blocks 84. The two subdivisions may be identical, i.e. each coding block 80 and 82 may simultaneously form a transform block 84, but Figure 3The following case is described, in which the subdivision into, for example, a transform block 84 forms an extension of the subdivision into coding blocks 80, 82, such that any boundary between two blocks of blocks 80 and 82 overlaps with a boundary between two blocks 84, or each block 80, 82 coincides with one of the transform blocks 84 or with a cluster of transform blocks 84. However, the subdivision may also be determined or selected independently of one another, such that the transform block 84 may instead cross a block boundary between blocks 80, 82. With regard to the subdivision into transform blocks 84, similar statements therefore hold true as those made with regard to the subdivision into blocks 80, 82, i.e. the block 84 may be the result of a conventional subdivision of an image region into blocks (with or without an arrangement into rows and columns), the result of a recursive multitree subdivision (or recursive multitree splitting) of an image region, or a combination thereof or any other kind of block division. Incidentally, it should be noted that the blocks 80, 82 and 84 are not limited to square, rectangular or any other shape.
[0065] Figure 3 It is further illustrated that the combination of the prediction signal 26 and the prediction residual signal 24"" directly produces the reconstructed signal 12'. However, it should be noted that more than one prediction signal 26 may be combined with the prediction residual signal 24"" to produce the image 12' according to alternative embodiments.
[0066] exist Figure 3 In the embodiment described below, the transform blocks 84 should have the following importance. 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 skipping transforms so that for some of the transform blocks 84, the prediction residual signal is encoded directly in the spatial domain. However, according to the embodiments described below, the encoder 10 and the decoder 20 are configured in a manner that supports several transforms. For example, the transforms supported by the encoder 10 and the decoder 20 may include:
[0067] o DCT-II (or DCT-III), where DCT stands for Discrete Cosine Transform
[0068] o DST-IV, where DST stands for Discrete Sine Transform
[0069] o DCT-IV
[0070] o DST-VII
[0071] oIdentity Transformation (IT)
[0072] Of course, while the transformer 28 will support all forward transform versions of these transforms, the decoder 20 or inverse transformer 54 will support their corresponding backward or inverse versions:
[0073] oInverse DCT-II (or Inverse DCT-III)
[0074] o Anti-DST-IV
[0075] o Inverse DCT-IV
[0076] o Anti-DST-VII
[0077] oIdentity Transformation (IT)
[0078] The subsequent description provides more details on schemes that may be supported by the encoder 10 and the decoder 20 for subdividing or partitioning or splitting a tree root block into one or more leaf blocks. For example, these splitting schemes may provide a means for obtaining coding blocks 80, 82 and / or transform blocks 84, 84a.
[0079] Fig. 10A as well as Fig. 10B An example of a quadtree split and resulting nodes, such as sub-blocks, is illustrated. Fig. 10A Depicts a partition tree where node A is further split into four nodes. Fig. 10B Depicts the result of a partition where block A is subdivided into four disjoint blocks of equal size. For example, node A is Fig. 10A as well as Fig. 10B The split into four nodes B, C, D, E shown in FIG. 1 may represent the splitting of a parent block into child blocks, such as may be performed recursively through a recursive multitree splitting.
[0080] like Fig. 10A as well as Fig. 10B The partitioning shown in can be applied in a recursive manner. That is, for example, the partitioning can partition a parent block into one or more child blocks, and the child blocks in the child blocks can serve as parent blocks for further recursions of the partitioning. For example, the tree root block can be partitioned multiple times to obtain one or more leaf blocks. For example, different leaf blocks may have been obtained by different or the same number of recursions of different or the same partitioning types, so that the form and size of different leaf blocks may be different from each other. The number of recursions used to obtain the partitioning of a specific block of the image can, for example, be referred to as the tree depth of the specific block.
[0081] The scheme for splitting a parent block into child blocks may include information about splitting or not splitting the parent block and information about how to split the parent block. This scheme may be described by a partition tree.
[0082] Fig.11A partition tree 1100 of current VVC development with binary and ternary partition trees is illustrated, for example, rules for splitting a parent block 1111 into one or more child blocks 1112. In addition to existing blocks, such as blocks resulting from quadtree splitting known from previous codecs, other rectangular shapes may be represented, for example, by the partition tree 1100. When the quadtree split flag is equal to zero, deviations from the quadtree may occur. For example, if the quadtree split flag indicates that the parent block 1111 is not to be split into four child blocks, the binary ternary tree starts in the quadtree leaf node. Similar to the quadtree, but in the case of different splits that can be applied, for example, at each node of each parent block, for example, if the parent block is not split into four child blocks, the binary ternary tree forms a recursive split tree. In addition, depending on specific node properties such as size, position or tree depth, not all splits are available for each node. Only flags that cannot be inferred based on already available data need to be transmitted. When mtt_split_flag is signaled or inferred to be equal to zero, the partition tree terminates at this node (ie, the corresponding node represents a leaf node, and the associated blocks are used for prediction and transform coding).
[0083] like Figure 2 As indicated in , at most four syntax elements are required to specify the final CU shape. In this scheme, further subdivision does not require at least two syntax elements (qt_split_flag is equal to 0 and mtt_split_flag is equal to 0). The context modeling for qt_split_flag is similar to the method used in HEVC. The quadtree depth of the current node is compared with the final quadtree depth of the adjacent coding tree (the neighboring area above the current block and the neighboring area to the left of the current block). In addition, when the current quadtree depth is greater than one, a separate context model set is used. Instead of the quadtree depth, the width and height of the current node are compared relative to the width of the upper neighboring area and the height of the left neighboring area for mtt_UNK_flag. Three different context model sets are used depending on the current CU size of the luma component, while a dedicated context model set is used for the chroma component. It should be noted that when the tile type is intra, that is, when the prediction inside the current image (or tile or slice) is limited to intra-image prediction, the current VVC draft allows different partitioning trees to be used for luma and chroma.
[0084] mtt_split_vertical_flag involves three context models depending on the aspect ratio of the current node: a context model for the case where the node is a square block, another context model for the case where the width is greater than the height, and a third context model for the opposite case. In contrast, a single context model is used for mtt_split_binary_flag.
[0085] As outlined above, it has been presented Figures 1 to 3 As an example, the inventive concept further described below can be implemented in the example to form a specific example of a video encoder and a decoder according to the present application. In this regard, Figure 1 as well as Figure 2 The encoder and decoder may represent possible implementations of the video encoder and decoder described below, respectively. Figure 1 as well as Figure 2 However, an encoder according to an embodiment of the present application may perform block-based encoding of the image 12 using the concepts outlined in more detail below, as well as encoding the image 12 in conjunction with a decoder such as Figure 1 The difference between the encoder and the encoder is that the encoder according to the embodiment of the present application is not a video encoder, but is still an image encoder, the difference is that the encoder according to the embodiment of the present application does not support inter-frame prediction, or the difference is that the subdivision into blocks 80 is different from Figure 3 Likewise, a decoder according to an embodiment of the present application may perform block-based decoding of an image 12' from a data stream 14 using the coding concepts outlined further below, but in contrast to, for example, Figure 2 The difference of the decoder 20 according to the embodiment of the present application may be that the decoder according to the embodiment of the present application is not a video decoder, but is still an image decoder, the difference is that the decoder according to the embodiment of the present application does not support intra-frame prediction, or the difference is that the decoder according to the embodiment of the present application uses a different method from that of the embodiment of the present application. Figure 3 The described way subdivides the image 12 ′ into blocks and / or differs in that the decoder according to an embodiment of the application derives the prediction residual not from the transform domain but from the data stream 14 , for example in the spatial domain.
[0086] Figure 4An apparatus 400 for decoding an image 12' according to an embodiment of the present disclosure is described. For example, the apparatus 400 may be similar to the decoder 20. The apparatus 400 is configured to divide the image 12' into coding blocks 425 using recursive multitree splitting depending on split information 415 signaled in the data stream 14. The apparatus 400 is further configured to decode the image 12' from encoding information 440 signaled in the data stream 14. The encoding information 416 relates to the coding blocks 425. In order to divide the image 12' into the coding blocks 425, the apparatus 400 is configured to decode a split flag 416 of the split information 415 from the data stream 14. The split flag 416 indicates that a predetermined block 411 of the image 12' is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block 411 becomes one of the coding blocks 425. If the split flag 416 indicates that the predetermined block 411 of the image 12 ′ is to be split, the apparatus 400 is configured for decoding a quad flag 417 of the split information 415 from the data stream 14 , the quad flag indicating whether the predetermined block 411 of the image 12 ′ is to be split into four sub-blocks 412 .
[0087] If the split flag 416 indicates that a predetermined block of the image 12' is to be split, and if the quad flag 417 indicates that a predetermined block 411 of the image 12' is not to be split into four sub-blocks 412, the division of the image 12' includes one or more additional flags 418 decoding the split information 415 from the data stream 14, wherein the one or more additional flags indicate that the predetermined block 411 of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412.
[0088] Additionally, if the split flag 416 indicates that the predetermined block 411 of the image 12′ is to be split, the partitioning of the image 12′ includes resuming the recursive multitree splitting of the sub-blocks 412 using further flags of the split information 415. For example, in a further recursion of the recursive multitree splitting, one of the sub-blocks 412 may be the predetermined block 411.
[0089] For example, the device 400 can be configured to receive a data stream 14, the data stream 14 including split information 415 and encoding information 440. The device 400 can be further configured to decode the image 12' from the data stream to provide a decoded signal including the image 12'. For example, the predetermined block 411 can be any block of the current recursion of the image 12' that is subject to recursive multi-tree splitting, that is, the current recursion can infer the split block. For example, the predetermined block 411 of the first recursion of the recursive multi-tree splitting can be a tree root block, such as a CTU. If the split flag 416 indicates that the predetermined block 411 of the image 12' is to be split, the device 400 is configured to restore the recursive multi-tree splitting of the sub-blocks of the predetermined block 411. The sub-block 412 can be one or more sub-blocks of the predetermined block 411 generated by dividing the predetermined block. For example, the apparatus 400 is configured to resume the recursive multitree splitting by selecting one of the child blocks 412 of the predetermined block as the predetermined block 411 for subsequent recursion of the partitioning and performing the partitioning as described for the predetermined block. For example, if the split flag 416 indicates that the predetermined block 411 of the image 12' is not to be split, the apparatus 400 can be configured to stop the recursive multitree splitting, wherein the predetermined block 411 becomes one of the coding blocks 425. The apparatus 400 can then continue to utilize the partitioning of another block, such as a sister block of the predetermined block or a sister block of a parent block of the predetermined block or another block.
[0090] Therefore, according to an embodiment, the apparatus 400 is configured to resume the recursive multitree splitting of the sub-block 412 using a further flag of the splitting information 415 by decoding a further splitting flag 416 of the splitting information 415 from the data stream 14 for a predetermined sub-block of the sub-block 412, the splitting flag indicating that the predetermined sub-block of the image 12' is to be split or is not to be split, thereby stopping the recursive multitree splitting in the case where the predetermined sub-block becomes a coding block. If the further splitting flag 416 indicates that the predetermined sub-block of the image 12' is to be split, resuming the recursive multitree splitting of the sub-block 412 comprises decoding a further quad flag 417 of the splitting information 415 from the data stream 14, the quad flag indicating whether the predetermined sub-block of the image 12' is to be split into four sub-blocks 412. If the further split flag 416 indicates that the predetermined sub-block of the image 12' is to be split, and if the further quad flag 417 indicates that the predetermined sub-block of the image 12' is not to be split into four sub-blocks 412, restoring the recursive multitree splitting of the sub-block 412 comprises decoding one or more further flags 418 of the split information 415 from the data stream 14, the one or more further flags indicating that the predetermined sub-block of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412. Additionally, if the further split flag 416 indicates that the predetermined sub-block of the image 12' is to be split, restoring the recursive multitree splitting of the sub-block 412 comprises using still further flags of the split information 415 to restore the recursive multitree splitting of the sub-block 412 of the predetermined sub-block.
[0091] That is, for example, the apparatus 400 is configured to resume the recursive multitree splitting of the sub-block 412 by selecting one of the sub-blocks 425, the sub-blocks being generated from splitting the predetermined block 411 in the recursion of the recursive multitree splitting for a subsequent recursion of the recursive multitree splitting. For example, if the split flag 416 of the predetermined block 411, such as the predetermined block or the predetermined sub-block, referring to the current recursion indicates that the predetermined block 411 will not be split, the recursive splitting can be stopped.
[0092] For example, in Fig. 10A as well as Fig. 10B In the example, node A Fig. 10A as well as Fig. 10B The splitting into four nodes B, C, D, E shown in FIG. 4 may represent the splitting of the predetermined block 411 into sub-blocks 412, as may be a possible result of a recursion of the recursive multi-tree splitting as described with respect to the apparatus 400 and with respect to the apparatus described in the following figures.
[0093] Fig.12 An alternative partitioning tree 1200 illustrating separation splits and type information, such as information about the type of split. For example, the partitioning tree 1200 may represent one recursion of recursive splitting according to an exemplary embodiment of the apparatus 400.
[0094] Fig.11 The property of the partition tree 1100 is "no further splitting" option, which requires the transmission of two syntax elements, for example, it may be necessary to indicate that no quadtree splitting is performed in the first syntax element and to indicate that the parent block 1111 is not further split using the second syntax element. Since the split information can independently indicate the shape type after the split information, the exemplary embodiment of the present invention is modified as follows Fig.12 It should be noted that when the second depth has been reached, that is, when the mtt_vertical_flag is transmitted, the syntax is relative to Fig.11 The partition tree 1100 represented in remains the same. Therefore, the modifications to the syntax elements mtt_vertical_flag and mtt_split_binary_flag apply to Fig.11 as well as Fig.12 The binarization scheme depicted in both. For example, the partitioning scheme of an embodiment of the present invention can be similar to the partitioning tree 1100 of Figure 1100, but a modified syntax can be used to define the split type. By separating the split and type information, the cost of the non-split option can be reduced, which can become important at lower bit rate operating points.
[0095] In other words, embodiments of the present invention describe the general concept of further improving compression efficiency by involving an adaptive tree structure and associated context modeling.
[0096] For example, Fig.11 as well as Fig.12 The partitioning tree illustrated in may depict only the common case where all options are possible. However, each node may have availability constraints. Examples of such constraints are size constraints (e.g., splits that would produce child nodes with sizes smaller than the minimum allowed block size are not allowed), consecutive split restrictions (e.g., a quadtree split may only be signaled if the previous split was also a quadtree split). For these reasons, each of the syntax elements within the partitioning tree may change its meaning slightly depending on the particular availability constraints. That is, for example, some or all options for a split may not be available for a predetermined block 411.
[0097] Embodiments of the present invention may explicitly use availability information, such as information about available options for splitting a predetermined block 411, for context modeling of a grammatical element of a partition tree. Availability information enriches context modeling, such that, for example, additional options for context modeling are possible. For example, information indicated by a predetermined flag of the split information 415 may be inferred by using a context model, such that the information may be inferred without decoding the predetermined flag. Therefore, the split information 415 does not necessarily need to include a predetermined flag, such that the size of the data stream 14 may be reduced. For example, context modeling may depend on one or more criteria.
[0098] In general, embodiments of the present invention may employ various implementations of partitioning trees for recursively splitting an image. The partitioning may depend on a number of flags, each of which may indicate that the splitting option referred to by the respective flag is to be applied to a predetermined block of the current recursion that is subject to recursive splitting. The flag may be part of the splitting information, which may be contained in the data stream. However, the flag may also be inferred from the availability information. In addition, in order to decode the flag from the data stream or from the splitting information, context modeling may be used. For example, context modeling may use the available information to reduce the number of possible options, so that one or more flags may be encoded as less information or one or more flags may be decoded from less information, thereby reducing the size of the data stream. For example, the partitioning of the image may depend on one or more of the splitting flag 416, the quadruple flag 417, the splitting direction flag 518, and the ternary flag 519. An exemplary order for evaluating such flags is shown in Fig.12 About Figures 4 to 9 as well as Figures 13 to 18 The described embodiments may employ different orders or dependencies or conditions to evaluate or decode one or more of the flags. For example, different types for context modeling may be employed. Context modeling may, for example, rely on the described availability information, or rely on information about neighboring blocks of, for example, already partitioned blocks.
[0099] For example, the first context may be used to decode the split flag 416, however, different embodiments may employ different criteria or take different information to derive the first context.
[0100] For example, the second context may be used to decode the split direction flag 418, however, different embodiments may employ different criteria or take different information to derive the second context.
[0101] For example, the third context may be used to decode the ternary flag 419 , however, different embodiments may employ different criteria or take different information to derive the third context.
[0102] In other words, the context modeling for some or all syntax elements of the partition tree may depend only on the availability information. Secondly, the context modeling for some or all syntax elements of the partition tree may be a mixture of the availability information and some other information, such as the partition structure information (tree depth or size) of neighboring blocks.
[0103] According to an embodiment, the device 400 is configured to infer that one or more flags of the split information 415 take a predetermined flag state without decoding one or more flags of the split information 415 from the data stream 14 depending on whether one or more criteria are met or not met.
[0104] For example, the data stream 14 does not necessarily include all or any of the split flag 416, the quad flag 417, and the additional flag 418 for the predetermined block. For example, the apparatus 400 may be configured to infer the flag states of one or more or all of the flags for the predetermined block, for example, from information about the predetermined block 411 or about neighboring blocks.
[0105] According to an embodiment, the one or more criteria relate to one or more of a sub-block area, a sub-block width, a sub-block height, a current split depth, and alignment of a split line with an image boundary. For example, there may be a lower limit on the area, width, or height of the sub-block 425 resulting from the splitting of the predetermined block 411. The device 400 may predict the measure of the sub-block 425, and the device 400 may infer from the measure that one or more flags of the split information 415, such as a split flag 416, a quad flag 417, or one or more additional flags 418, take a predetermined flag state. For example, the device 400 may infer from the measure that the predetermined block 411 will not be further split, or that the predetermined block 411 will not be split into four sub-blocks 412. For example, the current split depth may refer to a tree depth or a quad tree depth, that is, for example, the number of recursions performed to obtain the recursive splitting of the predetermined block 411.
[0106] According to an embodiment, the apparatus 400 is configured to start recursive multi-branch tree splitting at each of the root blocks into which the image 12 ′ is subdivided in rows and columns.
[0107] According to an embodiment, the apparatus 400 is configured to start the recursive multitree splitting at a root block into which the image 12 ′ is subdivided into rows and columns.
[0108] According to an embodiment, if the first predetermined criterion is met, the apparatus 400 is configured to infer that the quad flag 417 indicates that the predetermined block 411 of the image 12 ′ is not to be split into four sub-blocks 412 , and to suppress decoding of the quad flag 417 from the data stream 14 .
[0109] According to an embodiment, if the predetermined block 411 is generated by a non-quad split of a parent block, the apparatus 400 is configured such that a first predetermined criterion is satisfied.
[0110] According to an embodiment, the apparatus 400 is configured to decode a split direction flag from the data stream 14 when decoding one or more further flags 418, the split direction flag indicating that a predetermined block 411 of the image 12' is to be split vertically or horizontally. In addition, in order to decode one or more further flags 418, the apparatus 400 may be configured to decode a ternary flag from the data stream 14, the ternary flag indicating that a predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412.
[0111] According to an embodiment, the device 400 is configured to infer that the split direction flag indicates that a predetermined block 411 of the image 12' is to be split vertically, and suppress the split direction flag from decoding of the data stream 14 if a second predetermined criterion is met, and to infer that the split direction flag indicates that a predetermined block 411 of the image 12' is to be split horizontally, and suppress the split direction flag from decoding of the data stream 14 if a third predetermined criterion is met.
[0112] According to an embodiment, the second predetermined criterion is satisfied if halving the predetermined block 411 horizontally would result in a width that falls below a predetermined minimum size, and the third predetermined criterion is satisfied if halving the predetermined block 411 vertically would result in a height that falls below a predetermined minimum size.
[0113] According to an embodiment, if the fourth predetermined criterion is met, the apparatus 400 is configured to infer that the ternary flag indicates that the predetermined block 411 of the image 12 ′ is to be split into two sub-blocks 412 , and to suppress decoding of the ternary flag from the data stream 14 .
[0114] According to an embodiment, if the fourth predetermined criterion is met, the device 400 is configured to infer that the ternary flag indicates that the predetermined block 411 of the image 12' is to be split into two sub-blocks 412, and suppress the decoding of the ternary flag from the data stream 14, and if the fifth predetermined criterion is met, the device 400 is further configured to infer that the ternary flag indicates that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412, and suppress the decoding of the ternary flag from the data stream 14.
[0115] According to an embodiment, if dividing the predetermined block 411 into three equal parts in the splitting direction indicated by the direction flag will result in a size of the predetermined block 411 along the splitting direction, the fourth predetermined criterion is satisfied, the splitting falls below a predetermined minimum size.
[0116] According to an embodiment, the fifth predetermined criterion is met if halving the predetermined block 411 in the splitting direction indicated by the direction flag would result in a size of the predetermined block 411 along the splitting direction exceeding a predetermined maximum size.
[0117] According to an embodiment, the apparatus 400 is configured to resume the recursive multitree splitting of the sub-block 412 using a further flag of the splitting information 415 by decoding a further quad flag 417 of the splitting information 415 from the data stream 14 for a predetermined sub-block of the sub-block 412, the quad flag indicating whether the predetermined sub-block of the image 12' is to be split into four sub-blocks 412. If the further quad flag 417 indicates that the predetermined sub-block of the image 12' is not to be split into four sub-blocks 412, resuming the recursive multitree splitting of the predetermined sub-block comprises decoding a further splitting flag 416 of the splitting information 415 from the data stream 14, the splitting flag indicating that the predetermined sub-block of the image 12' is to be split or is not to be split, thereby stopping the recursive multitree splitting in the case where the predetermined sub-block becomes a coded block. If the further quad flag 417 indicates that the predetermined sub-block of the image 12' is not to be split into four sub-blocks 412, and if the further split flag 416 indicates that the predetermined sub-block of the image 12' is to be split, restoring the recursive multitree splitting of the predetermined sub-block comprises decoding one or more further flags 418 of the split information 415 from the data stream 14, the one or more further flags indicating that the predetermined sub-block of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412. If the further quad flag 417 indicates that the predetermined sub-block of the image 12' is not to be split into four sub-blocks 412, and if the further split flag 416 indicates that the predetermined sub-block of the image 12' is to be split, restoring the recursive multitree splitting of the predetermined sub-block comprises restoring the recursive multitree splitting of the sub-blocks 412 of the predetermined sub-block using the further flag of the split information 415. That is, for example, the order of the split flag 416 and the quad flag 417 may be different for different recursions of the recursive splitting.
[0118] According to an embodiment, if the first predetermined criterion is met, the apparatus 400 is configured to infer that the quad flag 417 indicates that the predetermined block 411 of the image 12' is not to be split into four sub-blocks 412, and to suppress the decoding of the quad flag 417 from the data stream 14. According to this embodiment, the apparatus 400 is further configured to decode the split flag 416 of the split information 415 from the data stream 14 by context adaptive entropy decoding using a first context, the first context depending on whether the first predetermined criterion is met.
[0119] For example, in Fig.12 In the binarization presented in FIG. 1 , split_flag, such as split flag 416, can be as shown in Table 1 (see Fig.19 ) and is modeled with respect to the following information:
[0120] - Availability of Quadtree Splitting (QT)
[0121] - Current quadtree depth
[0122] -Current width and height
[0123] -Current brightness area
[0124] - Width of the upper neighboring area
[0125] - The height of the neighboring area on the left.
[0126] Fig.19 Table 1 shown in shows an exemplary context modeling and existing context modeling for the syntax element split_flag using availability information, such as the split flag 416. The context modeling is adjusted to the availability of quadtree splitting (QT), the current quadtree depth, the current width and height, the current luma area (W×H), and the width of the upper neighboring area and the height of the left neighboring area.
[0127] According to an embodiment, the first context additionally depends on the number of splits of the recursive multitree split used to obtain the predetermined block 411. For example, this dependency can be modeled as shown in the second column of Table 1. Alternatively or additionally, the first context additionally depends on the size of the predetermined block 411. For example, this dependency can be modeled as shown in the third column of Table 1.
[0128] According to an embodiment, the first context additionally depends on whether the number of splits of the recursive multitree split used to obtain the predetermined block 411 is lower than a predetermined threshold number of splits and distinguishes between said number of splits and said predetermined threshold number of splits. Alternatively, the first context additionally depends on whether the size of the predetermined block 411 is higher than a predetermined threshold size and distinguishes between said size and said predetermined threshold size.
[0129] According to an embodiment, the first context additionally depends on the width of the coding block above the predetermined block 411 and the height of the coding block to the left of the predetermined block 411. Examples of this dependency of the context model are shown in the fourth and fifth columns of Table 1.
[0130] According to an embodiment, the first context additionally depends on, and distinguishes between,
[0131] - The width of the coding block above the predetermined block 411 is smaller than the width of the predetermined block 411, and the height of the coding block on the left side of the predetermined block 411 is smaller than the height of the predetermined block 411
[0132] - The width of the coding block above the predetermined block 411 is smaller than the width of the predetermined block 411, and the height of the coding block on the left side of the predetermined block 411 is greater than the height of the predetermined block 411
[0133] - The width of the coding block above the predetermined block 411 is smaller than the width of the predetermined block 411 and the height of the coding block on the left side of the predetermined block 411 is larger than the height of the predetermined block 411, or the width of the coding block above the predetermined block 411 is larger than the width of the predetermined block 411 and the height of the coding block on the left side of the predetermined block 411 is smaller than the height of the predetermined block 411
[0134] For example, this dependency of the context model is given by Fig.19 The context modeling shown in Table 1 in .
[0135] According to an embodiment, the device 400 is configured to perform a split into four sub-blocks 412 such that the four sub-blocks 412 are of equal size and are arranged in a 2×2 array. According to this embodiment, the device 400 is configured to perform a recursive multitree split using a depth first traversal order and traverse the sub-blocks resulting from splitting one parent block from left to right in the case of a horizontal split, from top to bottom in the case of a vertical split, and from top left to bottom right in a row-by-row raster scan order in the case of the split into four sub-blocks 412.
[0136] According to an embodiment, in order to decode one or more further flags 418 of the split information 415 indicating that the predetermined sub-block of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412 from the data stream 14, the apparatus 400 is configured to decode from the data stream 14 a split direction flag indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally, and the apparatus is further configured to decode from the data stream 14 a ternary flag indicating that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412. In addition, if a first predetermined criterion is met, the apparatus 400 is configured to infer that the quadruple flag 417 indicates that the predetermined block 411 of the image 12' is not to be split into four sub-blocks 412, and suppress the decoding of the quadruple flag 417 from the data stream 14. If a second predetermined criterion is met, the apparatus is configured to infer that the split direction flag indicates that the predetermined block 411 of the image 12' is to be split vertically, and suppress the decoding of the split direction flag from the data stream 14. If the third predetermined criterion is met, the apparatus 400 is configured to infer that the split direction flag indicates that the predetermined block 411 of the image 12' is to be split horizontally and is configured to suppress the decoding of the split direction flag from the data stream 14. If the fourth predetermined criterion is met, the apparatus 400 is configured to infer that the ternary flag indicates that the predetermined block 411 of the image 12' is to be split into two sub-blocks 412, and suppress the decoding of the ternary flag from the data stream 14. In addition, the apparatus is configured to decode the split flag 416 of the split information 415 from the data stream 14 by context adaptive entropy decoding using a first context, the first context depending on the sum of addends, each of the addends being associated with one of the following situations and taking a non-zero value if one of the following situations is met when it is originally zero:
[0137] - does not meet the first predetermined criterion,
[0138] - a second predetermined criterion is not met,
[0139] - does not meet the third predetermined criterion,
[0140] - the second predetermined criterion is not met, and the fourth predetermined criterion will not be met in case the splitting direction indicated by the splitting direction flag is horizontal,
[0141] - respectively, the third predetermined criterion is not met, and in case the splitting direction indicated by the splitting direction flag is vertical, the fourth predetermined criterion will not be met.
[0142] For example, here, if Tx is meant to mean Bx, the following Boolean logic rules are used to describe consistency with the above description:
[0143] The first pre-determined criterion: non-non-QT, i.e. QT
[0144] Second predetermined criterion: not ((not BH) and (not TH)), that is, BH or TH
[0145] The third predetermined criterion: not (not BV and not TV), that is, BV or TV
[0146] Fourth predetermined criterion: (not (not BH) and (not TH))) and (not (not TH)), that is, (BH or TH) and TH, that is, TH
[0147] The fifth predetermined criterion: (non-((non-BV) and (non-TV))) and (non-(non-TV)), that is, (BV or TV) and TV, that is, TV.
[0148] According to an embodiment, the apparatus 400 is configured to, upon decoding one or more further flags 418 of the split information 415 from the data stream 14 indicating that the predetermined sub-block of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412, decode from the data stream 14 a split direction flag indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally, and decode from the data stream 14 a ternary flag indicating that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412. If a first predetermined criterion is met, the apparatus 400 is further configured to infer that the quad flag 417 indicates that the predetermined block 411 of the image 12' is not to be split into four sub-blocks 412 and is configured to suppress the decoding of the quad flag 417 from the data stream 14. If a second predetermined criterion is met, the apparatus 400 is further configured to infer that the split direction flag indicates that the predetermined block 411 of the image 12' is to be split vertically, and suppress the decoding of the split direction flag from the data stream 14. If the third predetermined criterion is met, the apparatus 400 is further configured to infer that the split direction flag indicates that the predetermined block 411 of the image 12' is to be split horizontally, and suppress the decoding of the split direction flag from the data stream 14. The apparatus 400 is further configured to infer that the ternary flag indicates that the predetermined block 411 of the image 12' is to be split into two sub-blocks 412, and suppress the decoding of the ternary flag from the data stream 14, if the fourth predetermined criterion is met, and to infer that the ternary flag indicates that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412, and suppress the decoding of the ternary flag from the data stream 14, if the fifth predetermined criterion is met. The apparatus 400 is further configured to decode the split flag 416 of the split information 415 from the data stream 14 by context adaptive entropy decoding using a first context, the first context depending on the sum of addends, each of the addends being associated with one of the following situations. Each of the addends takes a non-zero value if the following situations are met when it is originally zero:
[0149] - Does not meet the first pre-determined criteria
[0150] - the second predetermined criterion is not met, and the fifth predetermined criterion will not be met if the split direction indicated by the split direction flag is horizontal
[0151] - does not meet the third predetermined criterion, and will not meet the fifth predetermined criterion if the split direction indicated by the split direction flag is vertical
[0152] - does not meet the second predetermined criterion, and will not meet the fourth predetermined criterion if the split direction indicated by the split direction flag is horizontal
[0153] - respectively, the third predetermined criterion is not met, and in case the splitting direction indicated by the splitting direction flag is vertical, the fourth predetermined criterion will not be met.
[0154] According to an embodiment, the first context additionally depends on whether one third of the sum of the addends plus one is zero, one or two and distinguishes between whether one third of the sum of the addends plus one is zero, one or two. According to this embodiment, the non-zero value of the addend associated with not satisfying the first predetermined criterion is two, and the non-zero value of the other addends is one.
[0155] According to an embodiment, the first context additionally depends on the width of the coding block above the predetermined block 411 and the height of the coding block to the left of the predetermined block 411 .
[0156] According to an embodiment, the first context additionally depends on, and distinguishes between,
[0157] - The width of the coding block above the predetermined block 411 is smaller than the width of the predetermined block 411, and the height of the coding block on the left side of the predetermined block 411 is smaller than the height of the predetermined block 411
[0158] - The width of the coding block above the predetermined block 411 is smaller than the width of the predetermined block 411, and the height of the coding block on the left side of the predetermined block 411 is greater than the height of the predetermined block 411
[0159] - The width of the coding block above the predetermined block 411 is smaller than the width of the predetermined block 411 and the height of the coding block on the left side of the predetermined block 411 is larger than the height of the predetermined block 411, or the width of the coding block above the predetermined block 411 is larger than the width of the predetermined block 411 and the height of the coding block on the left side of the predetermined block 411 is smaller than the height of the predetermined block 411
[0160] In other words, the modeling of split_flag, for example the first context for decoding the split flag 416, may depend on the number of available splits N. s , which is defined as follows: N s=(2·QT+BH+BV+TH+TV-1), where QT, BH, BV, TH, and TV represent the availability of quadruple splitting, binary horizontal, binary vertical, ternary horizontal, and ternary vertical splitting. For example, the alternative context modeling of the first context for decoding the split flag 416 may thus depend on the following:
[0161] -Number of available splits N s
[0162] -Current width and height
[0163] - Width of the upper neighboring area
[0164] - Height of the neighboring area on the left
[0165] Fig. 20 Table 2 shown in shows this alternative context modeling for the syntax element split_flag, eg, the split flag 416, depending on the availability of all splits and the size of neighboring blocks.
[0166] According to an embodiment, if both the second predetermined criterion and the third predetermined criterion are not met, the apparatus 400 is configured to decode a split direction flag from the data stream 14 when decoding one or more further flags 418 of the split information 415 indicating that the predetermined sub-block of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412 from the data stream 14, the split direction flag indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally. If the second predetermined criterion is met, decoding the one or more further flags 418 includes inferring that the split direction flag indicates that the predetermined block 411 of the image 12' is to be split vertically. If the third predetermined criterion is met, decoding the one or more further flags 418 includes inferring that the split direction flag indicates that the predetermined block 411 of the image 12' is to be split horizontally. If the fourth predetermined criterion is not met, decoding the one or more further flags 418 includes decoding a ternary flag from the data stream 14 indicating that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412. If the fourth predetermined criterion is met, decoding the one or more further flags 418 comprises inferring that the ternary flag indicates that the predetermined block 411 of the image 12' is to be split into two sub-blocks 412. In addition, the apparatus 400 is configured to decode the split direction flag from the data stream 14 by context adaptive entropy decoding using a second context (552), the second context (552) depending on whether and distinguishing between the following:
[0167] - the fourth predetermined criterion is not satisfied when the splitting direction indicated by the splitting direction flag is horizontal and when the splitting direction indicated by the splitting direction flag is vertical, or the fourth predetermined criterion is satisfied when the splitting direction indicated by the splitting direction flag is horizontal and when the splitting direction indicated by the splitting direction flag is vertical
[0168] - the fourth predetermined criterion will be satisfied if the splitting direction indicated by the splitting direction flag is horizontal, and the fourth predetermined criterion will not be satisfied if the splitting direction indicated by the splitting direction flag is vertical
[0169] - the fourth predetermined criterion will not be met if the splitting direction indicated by the splitting direction flag is horizontal, and the fourth predetermined criterion will be met if the splitting direction indicated by the splitting direction flag is vertical
[0170] According to an embodiment, if neither the second predetermined criterion nor the third predetermined criterion is satisfied, the apparatus 400 is configured to decode from the data stream 14 a split direction flag, when decoding from the data stream 14 one or more further flags 418 of the split information 415 indicating that the predetermined sub-block of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412. If the second predetermined criterion is satisfied, decoding the one or more further flags 418 comprises inferring that the split direction flag indicates that the predetermined block 411 of the image 12' is to be split vertically or horizontally. If the third predetermined criterion is satisfied, decoding the one or more further flags 418 comprises inferring that the split direction flag indicates that the predetermined block 411 of the image 12' is to be split horizontally. If the fourth predetermined criterion nor the fifth predetermined criterion is not satisfied, decoding the one or more further flags 418 comprises decoding from the data stream 14 a ternary flag indicating that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412. If the fourth predetermined criterion is met, decoding one or more further flags 418 includes inferring that the ternary flag indicates that the predetermined block 411 of the image 12' is to be split into two sub-blocks 412, and suppressing the decoding of the ternary flag from the data stream 14. If the fifth predetermined criterion is met, decoding one or more further flags 418 includes inferring that the ternary flag indicates that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412, and suppressing the decoding of the ternary flag from the data stream 14. In addition, the apparatus 400 is configured to decode the split direction flag from the data stream 14 using a second context by context adaptive entropy decoding, the second context depending on whether the following is true, and distinguishing between the following:
[0171] a first number of the fourth predetermined criterion and the fifth predetermined criterion to be satisfied if the splitting direction indicated by the splitting direction flag is horizontal is equal to a second number of the fourth predetermined criterion and the fifth predetermined criterion to be satisfied if the splitting direction indicated by the splitting direction flag is vertical
[0172] - The first number is greater than the second number
[0173] - The first number is less than the second number
[0174] Figure 5An apparatus 500 for decoding an image 12' according to an embodiment of the present disclosure is described. For example, the apparatus 500 may be similar to the decoder 20. The apparatus 500 is configured to divide the image 12' into coding blocks 425 using recursive multitree splitting depending on the split information 415 signaled in the data stream 14. In addition, the apparatus 500 is configured to decode the image 12' from the coding information 440 signaled in the data stream 14 and related to the coding blocks 425. The apparatus 500 is configured to divide the image 12' into coding blocks 425 by decoding a split flag 416 and a quad flag 417 of the split information 415 from the data stream 14 depending on the split information 415 signaled in the data stream 14, wherein the split flag 416 indicates that a predetermined block 411 of the image 12' is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block 411 becomes one of the coding blocks 425. The quad flag 417 indicates whether the predetermined block 411 of the image 12' is to be split into four sub-blocks 412. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if both the second predetermined criterion and the third predetermined criterion are not satisfied, the partitioning of the image 12' includes decoding a split direction flag 518 from the data stream 14, the split direction flag indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if the second predetermined criterion is satisfied, the partitioning of the image 12' includes inferring that the split direction flag 518 indicates that the predetermined block 411 of the image 12' is to be split vertically. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if the third predetermined criterion is satisfied, the partitioning of the image 12' includes inferring that the split direction flag 518 indicates that the predetermined block 411 of the image 12' is to be split horizontally. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if the fourth predetermined criterion is not met, the partitioning of the image 12' comprises decoding a ternary flag 519 from the data stream 14, the ternary flag indicating that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if the fourth predetermined criterion is met, the partitioning of the image 12' comprises inferring that the ternary flag 519 indicates that the predetermined block 411 of the image 12' is to be split into two sub-blocks 412. If the predetermined block 411 of the image 12' is to be split, the partitioning of the image 12' comprises restoring the recursive multitree splitting of the sub-blocks 412 using a further flag of the splitting information 415.In addition, the apparatus 500 is configured to decode the split direction flag 518 from the data stream 14 by context adaptive entropy decoding using a second context (552) 552, the second context (552) depending on whether and distinguishing between the following items.
[0175] - In the case where the splitting direction indicated by the splitting direction mark 518 is horizontal and in the case where the splitting direction indicated by the splitting direction mark 518 is vertical, the fourth predetermined criterion will not be satisfied, or in the case where the splitting direction indicated by the splitting direction mark 518 is horizontal and in the case where the splitting direction indicated by the splitting direction mark 518 is vertical, the fourth predetermined criterion will be satisfied.
[0176] - the fourth predetermined criterion will be satisfied if the splitting direction indicated by the splitting direction flag 518 is horizontal, and the fourth predetermined criterion will not be satisfied if the splitting direction indicated by the splitting direction flag 518 is vertical
[0177] - the fourth predetermined criterion will not be met if the splitting direction indicated by the splitting direction flag 518 is horizontal, and the fourth predetermined criterion will be met if the splitting direction indicated by the splitting direction flag 518 is vertical
[0178] Figure 6 The apparatus 600 for decoding the image 12' according to an embodiment of the present disclosure is described. For example, the apparatus 500 may be similar to the decoder 20. Compared with the apparatus 600, the apparatus 500 may additionally use the fifth criterion to infer the predetermined state of the ternary flag 519, and the second context for decoding the split direction flag 518 may be different.
[0179] The apparatus 600 is configured to divide the image 12' into coding blocks 425 using recursive multitree splitting depending on split information 415 signaled in the data stream 14, and is further configured to decode the image 12' from the coding information 440 signaled in the data stream 14 and related to the coding blocks 425. The apparatus 600 is configured to divide the image 12' into the coding blocks 425 depending on the split information 415 signaled in the data stream 14 by decoding a split flag 416 and a quad flag 417 of the split information 415 from the data stream 14, wherein the split flag 416 indicates that a predetermined block 411 of the image 12' is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block 411 becomes one of the coding blocks 425. The quad flag 417 indicates whether the predetermined block 411 of the image 12' is to be split into four sub-blocks 412. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if both the second predetermined criterion and the third predetermined criterion are not satisfied, the partitioning of the image 12' comprises decoding a split direction flag 518 from the data stream 14, the split direction flag indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if the second predetermined criterion is satisfied, the partitioning of the image 12' comprises inferring that the split direction flag 518 indicates that the predetermined block 411 of the image 12' is to be split vertically. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if the third predetermined criterion is satisfied, the partitioning of the image 12' comprises inferring that the split direction flag 518 indicates that the predetermined block 411 of the image 12' is to be split horizontally. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if the fourth predetermined criterion is not satisfied, the partitioning of the image 12' comprises decoding a ternary flag 519 from the data stream 14, the ternary flag indicating that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, and if the third predetermined criterion is satisfied, the partitioning of the image 12' comprises inferring that the ternary flag 519 indicates that the predetermined block 411 of the image 12' is to be split into two sub-blocks 412 if the fourth predetermined criterion is satisfied, and inferring that the ternary flag 519 indicates that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 if the fifth predetermined criterion is satisfied, and suppressing the decoding of the ternary flag 519 from the data stream 14. If a predetermined block 411 of the image 12 ′ is to be split, the partitioning of the image 12 ′ comprises resuming the recursive multitree splitting of the sub-blocks 412 using further indications of the splitting information 415 .The apparatus 600 is further configured to decode the split direction flag 518 from the data stream 14 using the second context (552) 552 by context adaptive entropy decoding. According to this embodiment, the second context 552 depends on whether the following conditions are met and distinguishes the following conditions. An exemplary illustration of the conditions of the second context 552 is shown in. Figure 7 middle.
[0180] -The first number of the fourth predetermined criterion and the fifth predetermined criterion to be satisfied when the splitting direction indicated by the splitting direction flag 518 is horizontal is equal to the second number of the fourth predetermined criterion and the fifth predetermined criterion to be satisfied when the splitting direction indicated by the splitting direction flag 518 is vertical.
[0181] This situation can be caused by Figure 7 The situation in 791 is shown.
[0182] -The first number is greater than the second number. This situation can be caused by Figure 7 The situation in 792 is shown.
[0183] -The first number is less than the second number. This situation can be caused by Figure 7 The situation in 793 is shown.
[0184] According to an embodiment, the second context 552 additionally depends on, and distinguishes between,
[0185] - The width of the predetermined block 411 is equal to the height of the current block
[0186] - The width of the predetermined block 411 is greater than the height of the current block
[0187] - The width of the predetermined block 411 is smaller than the height of the current block
[0188] According to an embodiment, if the fourth predetermined criterion is not satisfied both when the splitting direction indicated by the splitting direction flag 518 is horizontal and when the splitting direction indicated by the splitting direction flag 518 is vertical, or the fourth predetermined criterion is satisfied both when the splitting direction indicated by the splitting direction flag 518 is horizontal and when the splitting direction indicated by the splitting direction flag 518 is vertical, the second context 552 additionally depends on and distinguishes between the following items,
[0189] - The width of the predetermined block 411 is equal to the height of the current block, e.g.
[0190] -The width of the predetermined block 411 is greater than the height of the current block, e.g.
[0191] -The width of the predetermined block 411 is smaller than the height of the current block, e.g.
[0192] According to this embodiment, if the fourth predetermined criterion is to be satisfied in one of the case where the splitting direction indicated by the splitting direction flag 518 is horizontal and the case where the splitting direction indicated by the splitting direction flag 518 is vertical, the fourth predetermined criterion cannot distinguish between:
[0193] - The width of the predetermined block 411 is equal to the height of the current block
[0194] - The width of the predetermined block 411 is greater than the height of the current block
[0195] - The width of the predetermined block 411 is smaller than the height of the current block
[0196] In other words, in the case of mtt_split_vertical_flag, such as the split direction flag 518, the configuration may employ two additional contexts for the case where the number of possible outcomes of the syntax element is unbalanced. For example, the context modeling for the second context may depend on the following:
[0197] -Current width and height
[0198] - Availability of binary horizontal and vertical splits (BH and BV)
[0199] - Availability of ternary horizontal and vertical splits (TH and TV)
[0200] Fig.21 Table 3 shown in shows an exemplary context modeling for the mtt_split_vertical_flag syntax element, such as may be used for decoding the second context of the split direction flag 518. W and H describe the width and height of the current node. BH, TH, BV, and TV describe the availability of binary and ternary horizontal and vertical syntax elements. If BH+TH or BV+TV is equal to 0, the value of the syntax element may be inferred and context modeling is not required.
[0201] Alternatively, another dependency of mtt_split_vertical_flag that can be used to better contextually model the split direction flag 518, for example, is relative to the size of the upper and left neighboring regions. In the case where the block size is locally dependent, splits that subdivide the block into parts that are more similar in shape to the neighboring regions may be more likely than other splits. A simple formulation of this dependency can be implemented based on the following two variables: d0 = w / w above ,d1=h / h left (Where w and h are the current width and height, w aboveis the width of the adjacent block above, and h left is the height of the left neighboring block). The alternative context modeling for mtt_split_vertical_flag depends on the following:
[0202] - Availability of the adjacent area on the left and above
[0203] -Current width and height
[0204] - Height of the neighboring area on the left
[0205] - Width of the upper neighboring area
[0206] - Availability of binary horizontal and vertical splits (BH and BV)
[0207] - Availability of ternary horizontal and vertical splits (TH and TV)
[0208] Fig. 22 Table 4 shown in shows an example of such context modeling for mtt_split_vertical_flag based on split availability and current block shape similarity to neighboring CU shapes (expressed by d0 and d1 as described above). For example, the context modeling shown can be applied to the second context for decoding the split direction flag 518.
[0209] Thus, according to an embodiment, the second context 552 additionally depends on, and distinguishes between,
[0210] - A first ratio between the width of the predetermined block 411 and the width of the coding block above the predetermined block 411 is equal to a second ratio between the height of the current block and the height of the coding block to the left of the predetermined block 411
[0211] - The first ratio is greater than the second ratio
[0212] - The first ratio is less than the second ratio
[0213] According to an embodiment, if the fourth predetermined criterion is not satisfied both when the splitting direction indicated by the splitting direction flag 518 is horizontal and when the splitting direction indicated by the splitting direction flag 518 is vertical, or the fourth predetermined criterion is satisfied both when the splitting direction indicated by the splitting direction flag 518 is horizontal and when the splitting direction indicated by the splitting direction flag 518 is vertical, the second context 552 additionally depends on and distinguishes between the following items,
[0214] - A first ratio between the width of the predetermined block 411 and the width of the coding block above the predetermined block 411 is equal to a second ratio between the height of the current block and the height of the coding block to the left of the predetermined block 411
[0215] - The first ratio is greater than the second ratio
[0216] - The first ratio is less than the second ratio
[0217] According to this embodiment, if the fourth predetermined criterion is satisfied in one of the case where the split direction indicated by the split direction flag 518 is horizontal and the case where the split direction indicated by the split direction flag 518 is vertical, the second context 552 cannot distinguish between:
[0218] - A first ratio between the width of the predetermined block 411 and the width of the coding block above the predetermined block 411 is equal to a second ratio between the height of the current block and the height of the coding block to the left of the predetermined block 411
[0219] - The first ratio is greater than the second ratio
[0220] - The first ratio is less than the second ratio
[0221] According to an embodiment, the second context 552 cannot distinguish between:
[0222] - whether the fourth predetermined criterion will not be met both in the case where the splitting direction indicated by the splitting direction flag 518 is horizontal and in the case where the splitting direction indicated by the splitting direction flag 518 is vertical, and
[0223] - Whether a fourth predetermined criterion will be met in case the splitting direction indicated by the splitting direction flag 518 is horizontal and in case the splitting direction indicated by the splitting direction flag 518 is vertical.
[0224] According to an embodiment, the device 400; 500; 600 is configured to decode the ternary flag 519 from the data stream 14 using a third context by context adaptive entropy decoding, and the third context (853) depends on the number of splits of the recursive multi-branch tree splitting used to obtain the predetermined block 411 or the size of the predetermined block 411.
[0225] According to an embodiment, the device 400; 500; 600 is configured to decode the ternary flag 519 from the data stream 14 using a third context by context adaptive entropy decoding, and the third context (853) depends on whether the split direction flag 518 indicates a horizontal split direction or the split direction flag 518 indicates a vertical split direction, and to distinguish between the split direction flag 518 indicating a horizontal split direction and the split direction flag 518 indicating a vertical split direction.
[0226] In other words, the configuration of mtt_split_binary_flag for, for example, ternary flag 519 may depend on previously signaled or inferred information (when mtt_split_binary_flag follows the two shown binarization schemes, e.g. Fig.11 as well as Fig.12 Different context models are used based on the mtt_split_vertical_flag in the scheme shown in ) and the current partition tree state, as summarized in Table 5, such as Fig.23 Context modeling for a flag such as ternary flag 519 may depend on the following:
[0227] - Current BT depth (number of non-QT splits up to the current node)
[0228] Alternatively, the BT depth can be calculated as follows (with respect to the current QT depth d QT , CTU size W CTU and current width and height):
[0229] d BT =log2((W CTU W CTU ) / (W curr H curr ))-2·d QT
[0230] - The value of the previously signaled or inferred flag mtt_split_vertical_flag of the current node
[0231] Fig.23 Table 5 shown in shows an exemplary context modeling for the mtt_split_binary_flag syntax element, e.g., the ternary flag 519. The binary tree depth (BT depth) describes the number of binary splits of the current node, or its equivalent, e.g., the number of the current recursion of a recursive split. The value in the row mtt_split_vertical_flag describes the value signaled or inferred at the current partition level before encoding the syntax element mtt_split_binary_flag.
[0232] Figure 8An apparatus 800 for decoding an image 12' according to an embodiment of the present disclosure is described. For example, the apparatus 800 may be similar to the decoder 20. The apparatus 800 for decoding the image 12' is configured to divide the image 12' into coding blocks 425 using recursive multitree splitting depending on the split information 415 signaled in the data stream 14, and is further configured to decode the image 12' from the coding information 440 signaled in the data stream 14 and related to the coding blocks 425. The apparatus 800 is configured to divide the image 12' into coding blocks 425 by decoding a split flag 416 and a quad flag 417 of the split information 415 from the data stream 14 depending on the split information 415 signaled in the data stream 14, wherein the split flag 416 indicates that a predetermined block 411 of the image 12' is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block 411 becomes one of the coding blocks 425. The quad flag 417 indicates whether the predetermined block 411 of the image 12' is to be split into four sub-blocks 412. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, the partitioning of the image 12' comprises decoding a split direction flag 518 from the data stream 14, the split direction flag indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally, and further comprises decoding a ternary flag 519 from the data stream 14, the ternary flag indicating that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412. If the predetermined block 411 of the image 12' is to be split, the partitioning of the image 12' comprises restoring the recursive multitree splitting of the sub-blocks 412 using a further flag of the split information 415. The apparatus 800 is further configured to decode the ternary flag 519 from the data stream 14 by context adaptive entropy decoding using a third context 853, the third context (853) depending on the number of splits of the recursive multitree splitting used to obtain the predetermined block 411 or the size of the predetermined block 411. Additionally or alternatively, the third context 853 depends on whether the split direction flag 518 indicates a horizontal split direction or the split direction 518 flag indicates a vertical split direction, and distinguishes between the split direction flag 518 indicating a horizontal split direction and the split direction flag 518 indicating a vertical split direction.
[0233] Fig. 9An apparatus 900 for decoding an image 12' according to an embodiment of the present disclosure is described. For example, the apparatus 900 may be similar to the decoders 20, 40. The apparatus 900 is configured to divide the image 12' into coding blocks 425 using recursive multitree splitting depending on the split information 415 signaled in the data stream 14, and is further configured to decode the image 12' from the coding information 440 signaled in the data stream 14 and related to the coding blocks 425. The apparatus 900 is configured to divide the image 12' into coding blocks 425 depending on the split information 415 signaled in the data stream 14 by decoding the split flag 416 and the quaternary flag 417 of the split information 415 from the data stream 14, wherein the split flag 416 indicates that a predetermined block 411 of the image 12' is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block 411 becomes one of the coding blocks 425. The quad flag 417 indicates whether the predetermined block 411 of the image 12' is to be split into four sub-blocks 412. If the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412, dividing the image 12' comprises decoding one or more further flags 418 of the split information 415 from the data stream 14, the one or more further flags indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412. If the predetermined block 411 of the image 12' is to be split, dividing the image 12' comprises restoring the recursive multi-tree splitting of the sub-blocks 412 using further further flags of the split information 415. The apparatus 900 is further configured to select one of the first mode and the second mode. In the case of operating in the first mode, if the split flag 416 indicates that the predetermined block 411 of the image 12' is to be split, the apparatus 900 is configured to decode the quad flag 417 after the split flag 416. In case of operation in the second mode, if the quad flag 417 indicates that a predetermined sub-block of the image 12 ′ is not to be split into four sub-blocks 412 , the apparatus 900 is configured to decode the split flag 416 after the quad flag 417 .
[0234] For example, due to availability constraints, existing partitioning trees such as tree 1100 have used adaptive tree structures. Interchanging of shape type and direction also uses adaptive partitioning trees. In general, the ordering of syntax elements reflects a fixed probability at each given node. However, the probability varies depending on the signal characteristics and the operating point of the codec. , larger quantization parameters, i.e., low bit rate operating points tend to produce larger leaf nodes. In this case, splitting is less likely, so, Fig.12 The configuration in is better. However, at the other end of the operating point, the split information is usually positive, so Fig.11The configuration in is preferred. An adaptive partition tree configuration will allow the partition tree to signal binarization and switch between the two options depending on context characteristics. An extension will maintain several different partition trees, and switching between trees depending on adjacent partition trees (backward adaptation) or the syntax elements at the root specify the partition tree (forward adaptation).
[0235] Thus, according to an embodiment, the apparatus 900 is configured to perform the selection depending on the pattern signaling in the data stream 14. In other words, the selection may be forward adaptive.
[0236] According to an alternative embodiment, the apparatus 900 is configured to perform the selection backward adaptively.
[0237] For example, according to an embodiment, the apparatus 900 is configured to perform the selection depending on an evaluation of one or more of the following:
[0238] - a block size of a set of previously encoded blocks 425, such as an encoded block 425 resulting from a previously partitioned block or part of the image 12', such as a previously partitioned CTU or a neighboring CTU. This option may be implemented using a sliding window, for example.
[0239] - The number of splits that produced a set of previously coded blocks 425
[0240] - quantization parameter signaled in data stream 14
[0241] According to an embodiment, a syntax element, such as a flag, is coupled to a depth with respect to a nested partitioning tree. According to other embodiments, depth unified information, such as depth information, is combined so that context modeling for syntax elements associated with a partitioning tree depends only on a single depth value. The simplest implementation may be a single depth value that is increased after each split. Alternatively, the depth may be weighted depending on the split type. For example, a QT depth may contribute a fixed positive value to the depth counter, while a binary split only contributes a fixed positive weighted number of the quadtree, where the weight w≤1.
[0242] According to an embodiment, the binary tree and the ternary tree are coupled, i.e., the direction of the partition is first signaled, followed by the information that the resulting partition is binary or ternary. In some cases, there is a shift in the probability of the direction of a given final shape type. The configuration of the present invention can adaptively interchange the two syntax elements and incorporate the information into the context modeling.
[0243] Another extension of the adaptive partitioning tree concept is the signaling of the shape size either backward or forward adaptation. For example, when a 16×16 block is split horizontally in binary, the result can be a 16×4 and a 16×12 shape, or two 16×8 shapes. In the current VVC draft, the final ratio is fixed. With the configuration of the shape size, the neighboring partitioning trees can be analyzed and a decision can be made as to which shape size should be used. It should be noted that the extension is the same as the additional partitioning trees available in the case of the adaptive partitioning scheme.
[0244] Features and embodiments described in the context of a decoder may also be applied to an encoder. Thus, embodiments provide an apparatus for encoding an image, such as Fig.13 . The apparatus 1300 for encoding an image 12 is configured to divide the image 12 into coding blocks 425 using recursive multitree splitting. The encoder is configured to encode splitting information 415 defining the division in the data stream 14. In addition, the apparatus 1300 is configured to encode the image 12 into coding information 440 associated with the coding blocks 425 and to encode the coding information 440 in the data stream 14. The recursive multitree splitting for dividing the image 12 into coding blocks 425 can be performed by any embodiment of the recursive multitree splitting as described with respect to the decoders 400; 500; 600; 800; 900, that is, the coding blocks 425 can be provided by the recursive multitree splitting. Similarly, the splitting information can be provided by the recursive multitree splitting. The number and type of flags encoded by the encoder 1300 for obtaining the splitting information 415 can depend on the various embodiments of the recursive splitting. For example, depending on the partitioning of the predetermined block 411 of the current recursion subjected to the recursive splitting, the encoding of the splitting information 415 is specific to the current recursion of the recursive splitting. That is, with reference to the embodiments of the recursive splitting described with respect to the decoders 400; 500; 600; 800; 900, whenever the partitioning of the image 12 implies the decoding of the predetermined flag, the device 1300 is configured for encoding the predetermined flag into the data stream 14. For example, whenever the partitioning or the image implies the inference of the predetermined flag, the encoder does not have to be configured to encode the predetermined flag, but can be configured to suppress the encoding of the predetermined flag.
[0245] Fig.14A flow chart of a method 1400 for decoding an image 12' according to an embodiment is shown. The method 1400 may be performed by the apparatus 400, for example. The method comprises dividing 1401 the image 12' into coding blocks 425 using a recursive multitree splitting depending on the split information 415 signaled in the data stream 14. The method 1400 further comprises a step 1402 of decoding the image 12' from the coding information 440 signaled in the data stream 14 and associated with the coding blocks 425. Step 1401 comprises decoding a split flag 416 of the split information 415 from the data stream 14, the split flag indicating whether a predetermined block 411 of the image 12' is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block 411 becomes one of the coding blocks 425. Step 1401 further comprises a step 1420, which is performed if the split flag 416 indicates that the predetermined block 411 of the image 12' is to be split. Step 1420 comprises a step 1430 of decoding a quad flag 417 of a split information 415 from the data stream 14, the quad flag indicating whether a predetermined block 411 of the image 12' is to be split into four sub-blocks 412. Step 1420 further comprises a step 1431, which is performed if the quad flag 417 indicates that the predetermined block 411 of the image 12' is not to be split into four sub-blocks 412. Step 1431 comprises decoding one or more further flags 418 of the split information 415 from the data stream 14, the one or more further flags indicating whether the predetermined block 411 of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412. Step 1420 further comprises restoring the recursive multitree splitting of the sub-blocks 412 using further further flags of the split information 415.
[0246] Fig.15A flow chart of a method 1500 for decoding an image 12' according to an embodiment is shown. The method 1500 may be performed, for example, by the apparatus 500. The method comprises dividing 1501 the image 12' into coding blocks 425 using a recursive multitree splitting depending on the split information 415 signaled in the data stream 14. The method 1500 further comprises a step 1402. The step 1501 comprises a step 1511 of decoding a split flag 416 and a quad flag 417 of the split information 415 from the data stream 14, wherein the split flag 416 indicates that a predetermined block 411 of the image 12' is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block 411 becomes one of the coding blocks 425, and the quad flag 417 indicates whether the predetermined block 411 of the image 12' is to be split into four sub-blocks 412. Step 1501 further comprises a step 1521, which is performed if the predetermined block 411 of the image 12' is to be split but is not to be split into four sub-blocks 412. Step 1521 comprises a step 1533 of decoding a split direction flag 518 from the data stream 14, if both the second predetermined criterion and the third predetermined criterion are not satisfied, the split direction flag indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally. The decoding 1533 of the split direction flag 518 uses a second context (552) 552, which depends on whether and distinguishes between the following:
[0247] - In the case where the splitting direction indicated by the splitting direction mark 518 is horizontal and in the case where the splitting direction indicated by the splitting direction mark 518 is vertical, the fourth predetermined criterion will not be satisfied, or in the case where the splitting direction indicated by the splitting direction mark 518 is horizontal and in the case where the splitting direction indicated by the splitting direction mark 518 is vertical, the fourth predetermined criterion will be satisfied.
[0248] - the fourth predetermined criterion will be satisfied if the splitting direction indicated by the splitting direction flag 518 is horizontal, and the fourth predetermined criterion will not be satisfied if the splitting direction indicated by the splitting direction flag 518 is vertical
[0249] - the fourth predetermined criterion will not be met if the splitting direction indicated by the splitting direction flag 518 is horizontal, and the fourth predetermined criterion will be met if the splitting direction indicated by the splitting direction flag 518 is vertical
[0250] Step 1521 further comprises a step 1534 of deducing that the split direction flag 518 indicates that the predetermined block 411 of the image 12' is to be split vertically if the second predetermined criterion is met. Step 1521 further comprises a step 1535 of deducing that the split direction flag 518 indicates that the predetermined block 411 of the image 12' is to be split horizontally if the third predetermined criterion is met. Step 1521 further comprises a step 1536 of decoding a ternary flag 519 from the data stream 14, the ternary flag indicating that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412 if the fourth predetermined criterion is not met. Step 1521 further comprises a step 1537 of deducing that the ternary flag 519 indicates that the predetermined block 411 of the image 12' is to be split into two sub-blocks 412 if the fourth predetermined criterion is met. Step 1501 further comprises step 1503. If the predetermined block 411 of the image 12' is to be split, step 1503 performs step 1403.
[0251] Fig.16 A flow chart of a method 1600 for decoding an image 12' according to an embodiment is shown. For example, the method 1600 may be performed by the apparatus 600. The method comprises dividing 1601 the image 12' into coding blocks 425 using a recursive multitree splitting depending on the split information 415 signaled in the data stream 14. The method 1600 further comprises step 1402. Step 1601 comprises step 1511. Step 1601 further comprises step 1622, which is performed if the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412. Step 1622 comprises steps 1661, 1534, 1535, 1536 and 1662. Step 1661 comprises decoding a split direction flag 518 from the data stream 14, the split direction flag indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally, if both the second predetermined criterion and the third predetermined criterion are not satisfied. Decoding 1661 of the split direction flag 518 includes using a second context (552) 552. The configuration of the second context 552 as used by the method 1600 or the apparatus 600 may be different from the configuration of the second context 552 as used by the method 1500 or the apparatus 500. In the case of the method 1600 and the apparatus 600, the second context depends on and distinguishes between,
[0252] - the first number of the fourth predetermined criterion and the fifth predetermined criterion to be satisfied when the splitting direction indicated by the splitting direction flag 518 is horizontal is equal to the second number of the fourth predetermined criterion and the fifth predetermined criterion to be satisfied when the splitting direction indicated by the splitting direction flag 518 is vertical
[0253] - The first number is greater than the second number
[0254] - The first number is less than the second number
[0255] Step 1662 includes inferring that the ternary flag 519 indicates that the predetermined block 411 of the image 12' is to be split into two sub-blocks 412 if the fourth predetermined criterion is met, and inferring that the ternary flag 519 indicates that the predetermined block 411 of the image 12' is to be split into three sub-blocks 412 if the fifth predetermined criterion is met, and suppressing decoding of the ternary flag 519 from the data stream 14. Step 1601 further includes step 1503.
[0256] Fig.17 A flow chart of a method 1800 for decoding an image 12' according to an embodiment is shown. The method 1800 may be performed, for example, by the apparatus 800. The method comprises dividing 1801 the image 12' into coding blocks 425 using a recursive multitree splitting depending on the split information 415 signaled in the data stream 14. The method 1800 further comprises a step 1402. Step 1801 comprises step 1511. Step 1801 further comprises a step 1823, which is performed if a predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412. Step 1823 comprises a step 1881 of decoding a split direction flag 518 from the data stream 14, the split direction flag indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally. Step 1823 further comprises a step 1882 of decoding a ternary flag 519 from the data stream 14, the ternary flag indicating that a predetermined block 411 of the image 12' is to be split into three sub-blocks 412 or two sub-blocks 412. Step 1801 further comprises step 1503.
[0257] Fig.18A flow chart of a method 1900 for decoding an image 12' according to an embodiment is shown. The method 1900 may be performed by the apparatus 900, for example. The method comprises dividing 1901 the image 12' into coding blocks 425 using a recursive multitree splitting depending on the split information 415 signaled in the data stream 14. The method 1900 further comprises a step 1402. The step 1901 comprises a step 1911 of decoding a split flag 416 and a quad flag 417 of the split information 415 from the data stream 14, wherein the split flag 416 indicates that a predetermined block 411 of the image 12' is to be split or not to be split, thereby stopping the recursive multitree splitting, wherein the predetermined block 411 becomes one of the coding blocks 425, and the quad flag 417 indicates whether the predetermined block 411 of the image 12' is to be split into four sub-blocks 412. The step 1901 further comprises a step 1905 of selecting one of a first mode and a second mode. In a first mode, the method 1900 comprises, for example during step 1911, decoding a quad flag 417 after the split flag 416 if the split flag 416 indicates that the predetermined block 411 of the image 12' is to be split. In a second mode, the method 1900 comprises, for example during step 1911, decoding a split flag 416 after the quad flag 417 if the quad flag 417 indicates that the predetermined sub-block of the image 12' is not to be split into four sub-blocks 412. Step 1901 comprises step 1991, which is performed if the predetermined block 411 of the image 12' is to be split but not to be split into four sub-blocks 412. Step 1991 comprises decoding one or more further flags 418 of the split information 415 from the data stream 14, the one or more further flags indicating that the predetermined block 411 of the image 12' is to be split vertically or horizontally into two or three sub-blocks 412. Step 1901 further comprises step 1503.
[0258] Other embodiments provide methods for encoding an image 12. The method for encoding an image includes dividing the image 12 into coding blocks 425 using recursive multitree splitting and encoding splitting information 415 defining the division in the data stream 14. The method further includes encoding the image 12 into coding information 440 associated with the coding blocks 425 and encoding the coding information 440 in the data stream 14. Similar to the correspondence between the encoder and the decoder described above, the method for encoding an image is similar to methods 1400, 1500, 1600, 1800, 1900. For example, the division of the image 12 relies on the same steps as those described with respect to these methods. That is, whenever a flag is to be decoded, the method for encoding includes encoding the respective flag. The steps of methods 1400, 1500, 1600, 1800, 1900 including inferring the flag are not necessarily part of the method for encoding an image, but rather, the method may include suppressing the encoding of the flag.
[0259] Although some aspects have been described in the context of an apparatus, it is apparent that these aspects also represent the description of the corresponding method, wherein a block or device corresponds to a method step or a feature of a method step. Similarly, the aspects described in the context of a method step also represent the description of the feature of a corresponding block or item or corresponding apparatus.
[0260] Some or all of the method steps may be performed by (or using) a hardware device (such as 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 this device.
[0261] Depending on certain implementation requirements, embodiments of the present invention may be implemented in hardware or software, or at least in part in hardware or at least in part in software. Implementation may 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 are stored electronically readable control signals that cooperate (or are capable of cooperating) with a programmable computer system to cause the execution of the various methods. Thus, the digital storage medium may be computer readable.
[0262] Some embodiments according to the invention comprise a data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system, such that one of the methods described herein is performed.
[0263] Generally, embodiments of the present invention can be implemented as a computer program product with a program code, when the computer program product is executed on a computer, the program code is operative for performing one of the methods. The program code may, for example, be stored on a machine readable carrier.
[0264] Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
[0265] 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.
[0266] Therefore, a further embodiment of the inventive method is a data carrier (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, a computer program for performing one of the methods described herein. The data carrier, the digital storage medium, or the recorded medium are typically tangible and / or non-transitory.
[0267] Therefore, another embodiment of the method of the present invention is a data stream or a signal sequence representing a computer program for executing one of the methods described herein.The data stream or signal sequence may, for example, be configured to be transmitted via a data communication connection (for example, via the Internet).
[0268] Further embodiments comprise processing means, for example a computer or a programmable logic device, configured or adapted to perform one of the methods described herein.
[0269] A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
[0270] Further embodiments according to the invention include an apparatus or system configured to transmit (e.g., electronically or optically) a computer program for performing one of the methods described herein to a receiver. The receiver may be, for example, a computer, a mobile device, a memory device, or the like. The apparatus or system may, for example, include a file server for transmitting the computer program to the receiver.
[0271] In some embodiments, a programmable logic device (e.g., a field programmable gate array) may be used to perform some or all of the functionality of the methods described herein. In some embodiments, the field programmable gate array may collaborate with a microprocessor to perform one of the methods described herein. Typically, the methods are preferably performed by any hardware device.
[0272] The apparatus described herein may be implemented using a hardware device or using a computer or using a combination of a hardware device and a computer.
[0273] The methods described herein may be performed using a hardware device or using a computer or using a combination of a hardware device and a computer.
[0274] The above embodiments are merely illustrative of the principles of the present invention. It should be understood that modifications and variations to the configurations and details described herein will be apparent to those skilled in the art. Therefore, it is intended to be limited only by the scope of the appended claims, rather than by the specific details presented by the description of the embodiments herein.
Claims
1. An apparatus for decoding an image, the apparatus comprising at least one processor configured to perform operations, the operations comprising: receiving, via the data stream, split information corresponding to the predetermined block; determining a splitting flag from the splitting information, the splitting flag indicating that the predetermined block of the image is to be split; determining a split direction flag from the split information, the split direction flag indicating whether the predetermined block of the image is to be split vertically or horizontally; as well as A ternary split flag is decoded from the data stream, the ternary split flag indicating whether the predetermined block of the image is to be split into three sub-blocks or two sub-blocks, wherein the ternary split flag is decoded from the data stream by context adaptive entropy decoding using a context, the context depending on the split direction flag and a tree depth corresponding to the predetermined block.
2. The apparatus of claim 1 , wherein determining the split flag comprises decoding the split flag from the data stream, and wherein after decoding the split flag from the data stream, the operations further comprise decoding a quad split flag from the data stream, the quad split flag indicating whether the predetermined block of the image is to be split into four sub-blocks.
3. The apparatus of claim 1, the operations further comprising determining a quad split flag from the split information, the quad split flag indicating that the predetermined block of the image is not to be split into four sub-blocks.
4. The apparatus of claim 1 , the operations further comprising inferring the split direction flag based at least in part on at least one of: halving the predetermined block horizontally would result in a width that falls below a predetermined minimum size; or Halving the predetermined block vertically will result in a height that drops below the predetermined minimum size.
5. The apparatus of claim 1, wherein determining the split flag comprises decoding or inferring the split flag from split information signaled via a data stream.
6. The apparatus of claim 1, wherein determining the split direction flag comprises decoding or inferring the split direction flag from split information signaled via a data stream.
7. An apparatus for encoding an image, the apparatus comprising at least one processor configured to perform operations comprising: encoding splitting information corresponding to the predetermined block into a data stream, the splitting information comprising: a splitting flag indicating that the predetermined block of the image is to be split, and a splitting direction flag indicating whether the predetermined block of the image is to be split vertically or horizontally; and A ternary split flag is encoded into the data stream, the ternary split flag indicating whether the predetermined block of the image is to be split into three sub-blocks or two sub-blocks, wherein the ternary split flag is encoded into the data stream using a context through context adaptive entropy coding, the context depending on the split direction flag and a tree depth corresponding to the predetermined block.
8. The apparatus of claim 7 , wherein encoding the split flag comprises encoding the split flag into the data stream, and wherein after encoding the split flag into the data stream, the operation further comprises encoding a quad split flag into the data stream, the quad split flag indicating whether the predetermined block of the image is to be split into four sub-blocks. 9 . The apparatus according to claim 7 , wherein the split information further indicates a quad split flag, the quad split flag indicating that the predetermined block of the image is not to be split into four sub-blocks.
10. The apparatus of claim 7, the operations further comprising encoding split information indicating the split direction flag based at least in part on at least one of: halving the predetermined block horizontally would result in a width that falls below a predetermined minimum size; or Halving the predetermined block vertically will result in a height that drops below the predetermined minimum size.
11. A method for decoding an image, the method comprising: receiving, via the data stream, split information corresponding to the predetermined block; determining a splitting flag from the splitting information, the splitting flag indicating that the predetermined block of the image is to be split; determining a split direction flag from the split information, the split direction flag indicating whether the predetermined block of the image is to be split vertically or horizontally; as well as A ternary split flag is decoded from the data stream, the ternary split flag indicating whether the predetermined block of the image is to be split into three sub-blocks or two sub-blocks, wherein the ternary split flag is decoded from the data stream by context adaptive entropy decoding using a context, the context depending on the split direction flag and a tree depth corresponding to the predetermined block.
12. The method of claim 11 , wherein determining the split flag comprises decoding the split flag from the data stream, and wherein after decoding the split flag from the data stream, the method further comprises decoding a quad split flag from the data stream, the quad split flag indicating whether the predetermined block of the image is to be split into four sub-blocks.
13. The method of claim 11, further comprising determining a quad split flag from the split information, the quad split flag indicating that the predetermined block of the image is not to be split into four sub-blocks.
14. The method of claim 11, further comprising inferring the split direction flag based at least in part on at least one of: halving the predetermined block horizontally would result in a width that falls below a predetermined minimum size; or Halving the predetermined block vertically will result in a height that drops below the predetermined minimum size.
15. The method of claim 11, wherein determining the split flag comprises decoding or inferring the split flag from split information signaled through a data stream.
16. The method of claim 11, wherein determining the split direction flag comprises decoding or inferring the split direction flag from split information signaled via a data stream.
17. A non-transitory computer-readable medium comprising a computer program having program instructions, which, when the computer program is executed by at least one processor, cause the at least one processor to perform the method of claim 11.
18. A computer program product comprising a computer program having program instructions, which, when the computer program is executed by at least one processor, cause the at least one processor to perform the method of claim 11.
19. A method for encoding an image, the method comprising: encoding splitting information corresponding to the predetermined block into a data stream, the splitting information comprising: a splitting flag indicating that the predetermined block of the image is to be split, and a splitting direction flag indicating whether the predetermined block of the image is to be split vertically or horizontally; and A ternary split flag is encoded into the data stream, the ternary split flag indicating whether the predetermined block of the image is to be split into three sub-blocks or two sub-blocks, wherein the ternary split flag is encoded into the data stream using a context through context adaptive entropy coding, the context depending on the split direction flag and a tree depth corresponding to the predetermined block.
20. The method of claim 19, wherein encoding the split flag comprises encoding the split flag into the data stream, and wherein after encoding the split flag into the data stream, the method further comprises encoding a quad split flag into the data stream, the quad split flag indicating whether the predetermined block of the image is to be split into four sub-blocks.
21. The method of claim 19, wherein the split information further indicates a quad split flag, the quad split flag indicating that the predetermined block of the image is not to be split into four sub-blocks.
22. The method of claim 19, further comprising encoding split information indicating the split direction flag based at least in part on at least one of: halving the predetermined block horizontally would result in a width that falls below a predetermined minimum size; or Halving the predetermined block vertically will result in a height that drops below the predetermined minimum size.
23. A non-transitory computer-readable medium comprising a computer program having program instructions, which, when the computer program is executed by at least one processor, cause the at least one processor to perform the method of claim 19.
24. A computer program product comprising a computer program having program instructions, which, when the computer program is executed by at least one processor, cause the at least one processor to perform the method of claim 19.
