Image decoding device using tool set and image decoding method thereof, and image encoding device and image encoding method thereof
By identifying and including only the necessary encoding tool enable flag information, the problem of insufficient consideration of dependencies between encoding tools is solved, and bitstream savings and hardware simplification in image encoding and decoding devices are achieved.
Patent Information
- Application Number
- CN202411323999.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-03
- Filing Date
- 2020-09-10
- Publication Date
- 2024-11-08
AI Technical Summary
In the existing image encoding and decoding technologies, the dependence between encoding tools is not fully considered, resulting in complex hardware implementation and it is difficult to effectively save the bitstream of the encoding tool enabling flags.
By obtaining the enable flag information of the encoding tool from the bitstream, the applicable encoding tool is identified and only the necessary encoding tool enable flag information is included in the bitstream, thereby realizing bit savings for the enabling flag for the encoding tool.
Simplify hardware implementation in image encoding and decoding devices, improve bitstream utilization efficiency of encoding tool enable flags, and reduce hardware complexity.
Smart Images

Figure CN118921494A_ABST
Abstract
Description
[0001] This application is a divisional application of a patent application with an application date of September 10, 2020, application number 202080075857.3, and invention name “Image encoding and decoding device and method using a tool set”. Technical Field
[0002] The present disclosure relates to the field of image encoding and decoding. More specifically, the present invention relates to a method and apparatus for decoding an image by using a coding tool that enables landmark recognition and a method and apparatus for encoding an image by using a coding tool that enables landmark recognition. Background Art
[0003] In image encoding and decoding, an image is divided into blocks, and each block is prediction-encoded and prediction-decoded via inter-prediction or intra-prediction.
[0004] Inter-frame prediction is a technique for compressing images by removing temporal redundancy between images. In inter-frame prediction, a block of a current image is predicted by using a reference image. A reference block most similar to the current block may be searched within a predetermined search range within the reference image. The current block is predicted based on the reference block, and the prediction block generated as a prediction result is subtracted from the current block to generate a residual block.
[0005] In codecs such as H.264 Advanced Video Coding (AVC) and High Efficiency Video Coding (HEVC), in order to predict the motion vector of a current block, a motion vector of a previously encoded block adjacent to the current block or a motion vector of a block included in a previously encoded image is used as a predicted motion vector of the current block. A differential motion vector, which is a difference between the motion vector of the current block and the predicted motion vector, is signaled to a decoder by using a predetermined method.
[0006] Intra prediction is a technique for compressing an image by removing spatial redundancy within the image. In intra prediction, a prediction block is generated based on neighboring pixels of a current block according to a prediction mode. Furthermore, a residual block is generated by subtracting the prediction block from the current block.
[0007] The residual block generated by inter-frame prediction or intra-frame prediction is transformed and quantized, and then sent to the decoder. The decoder dequantizes and inversely transforms the residual block, and reconstructs the current block by adding the prediction block of the current block to the residual block. In a predetermined case, the decoder removes artifacts in the reconstructed current block by filtering the reconstructed current block. Summary of the invention
[0008] Technical issues
[0009] The technical purpose of the image decoding device and method and the image encoding device and method according to the embodiments is to provide a codec that achieves bit saving for a coding tool enable flag by considering the dependencies between coding tools and by always activating one or more tools according to a configuration file, thereby being used to easily implement hardware in an image encoding device and an image decoding device.
[0010] Solution
[0011] According to various embodiments, an image decoding method performed by an image decoding device includes: obtaining first encoding tool enable flag information of a first encoding tool from a bitstream, the first encoding tool enable flag information of the first encoding tool indicating whether the first encoding tool is applicable to an image sequence; based on the obtained first encoding tool enable flag information, obtaining second encoding tool enable flag information of at least one second encoding tool related to the first encoding tool from the bitstream; based on at least one of the first encoding tool enable flag information and the second encoding tool enable flag information, identifying at least one encoding tool of the first encoding tool and the second encoding tool that can be applied to the image sequence included in the bitstream; and performing decoding on the image sequence based on the identified at least one encoding tool.
[0012] When the first coding tool enabling flag information indicates that the first coding tool is not applicable to the image sequence, the second coding tool enabling flag information may not be obtained from the bitstream, and it may be recognized that the second coding tool is not applicable to the image sequence. When the first coding tool enabling flag information indicates that the first coding tool is applicable to the image sequence, the second coding tool enabling flag information may be obtained from the bitstream.
[0013] The second encoding tool may be included in a group of encoding tools related to the first encoding tool.
[0014] The first encoding tool enabling flag information and the second encoding tool enabling flag information may be obtained from a sequence parameter set.
[0015] The first encoding tool enabling flag information may be enabling flag information of an encoding tool regarding at least one of an advanced motion signaling and interpolation method and an advanced motion vector prediction method, and the second encoding tool enabling flag information may be enabling flag information of an encoding tool regarding at least one of an affine model-based motion compensation method, an adaptive motion vector resolution method, a decoder-side motion vector correction method, a motion vector difference merging method, and a history-based motion vector prediction method.
[0016] The first encoding tool enable flag information may be enable flag information of an encoding tool regarding an extended intra prediction mode method, and the second encoding tool enable flag information may be enable flag information of an encoding tool regarding an intra block copy method.
[0017] The first encoding tool enabling flag information may be enabling flag information of an encoding tool regarding a context modeling and initialization processing method, and the second encoding tool enabling flag information may be enabling flag information of an encoding tool regarding an advanced residual encoding method.
[0018] The first encoding tool enabling flag information may be enabling flag information of an encoding tool regarding an improved quantization and transform method, and the second encoding tool enabling flag information may be enabling flag information of an encoding tool regarding at least one of an adaptive transform selection method and an improved incremental quantization parameter signaling method.
[0019] When a coding tool identified when the coding tool enable flag information is 1 is incompatible with a predetermined coding operation when the value of the first coding tool enable flag information among the first coding tool enable flag information and the second coding tool enable flag information is 0, the sequence parameter set of the bit stream conforming to the main profile includes coding tool enable flag information whose value is always 1.
[0020] The sequence parameter set of the bitstream conforming to the baseline profile may include first coding tool enable flag information always having a value of 0. The second coding tool enable flag information may not be obtained from the sequence parameter set, and the value of the second coding tool enable flag information may be identified as 0.
[0021] The image decoding method may further include obtaining, from a bitstream, motion information in at least one coding unit included in a frame of the image sequence according to a condition based on a value of the first encoding tool enable flag information.
[0022] The step of performing decoding on the image sequence based on the identified at least one encoding tool may include: identifying an interpolation filter according to the value of the first encoding tool enabling flag information; and performing inter-frame prediction including motion vector prediction and interpolation for the at least one coding unit according to the motion information and the interpolation filter.
[0023] A plurality of pieces of coding tool enabling flag information may be pre-classified into a plurality of coding tool groups based on coding operations corresponding to coding tools, and representative flag information of each of the pre-classified coding tool groups may be pre-identified. The first coding tool enabling flag information may be representative flag information of each coding tool group, and the second coding tool enabling flag information may be the remaining flag information of each coding tool group except the representative flag information.
[0024] When current encoding tool enabling flag information depends on information of a previous encoding tool corresponding to previous encoding tool enabling flag information previously obtained from a bitstream, the current encoding tool enabling flag information may be obtained from the bitstream according to a condition based on the previous encoding tool information.
[0025] According to various embodiments, an image decoding device includes at least one processor, which is configured to: obtain first encoding tool enable flag information of a first encoding tool from a bitstream, the first encoding tool enable flag information of the first encoding tool indicating whether the first encoding tool is applicable to an image sequence; based on the obtained first encoding tool enable flag information, obtain second encoding tool enable flag information of at least one second encoding tool related to the first encoding tool from the bitstream; based on at least one of the first encoding tool enable flag information and the second encoding tool enable flag information, identify at least one encoding tool of the first encoding tool and the second encoding tool that can be applied to the image sequence included in the bitstream; and perform decoding on the image sequence based on the identified at least one encoding tool.
[0026] According to an embodiment, an image encoding method performed by an image encoding device includes: encoding an image sequence based on at least one encoding tool among a plurality of encoding tools including a first encoding tool and a second encoding tool; generating at least one of first encoding tool enable flag information indicating whether the first encoding tool is applicable to the image sequence and second encoding tool enable flag information indicating whether the second encoding tool is applicable to the image sequence; generating a bitstream including image sequence data and a sequence parameter set, the image sequence data including syntax elements generated as a result of the encoding, the sequence parameter set including at least one of the first encoding tool enable flag information and the second encoding tool enable flag information, wherein when the value of the first encoding tool enable flag information is 1, the bitstream includes both the first encoding tool enable flag information and the second encoding tool enable flag information, and when the value of the first encoding tool enable flag information is 0, the bitstream includes the first encoding tool enable flag information but may not include the second encoding tool enable flag information.
[0027] A program for executing the methods according to various embodiments may be recorded on a computer-readable recording medium.
[0028] The beneficial effects of disclosure
[0029] Based on the image decoding device and method and the image encoding device and method according to the embodiments, by considering the dependencies between encoding tools and by always activating one or more tools according to the configuration file, bit saving for the encoding tool enable flag is achieved, and the hardware can be easily implemented in the image encoding device and the image decoding device.
[0030] However, the effects that can be achieved by the image decoding apparatus and method and the image encoding apparatus and method according to the embodiments are not limited to the above-mentioned effects, and other effects that are not mentioned can be clearly understood by a person of ordinary skill in the art from the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] A brief description of each figure is provided to provide a better understanding of the drawings referenced herein.
[0032] Figure 1 is a block diagram of an image decoding apparatus according to an embodiment.
[0033] Figure 2 is a block diagram of an image encoding apparatus according to an embodiment.
[0034] Figure 3 A process of determining at least one coding unit by splitting a current coding unit according to an embodiment is illustrated.
[0035] Figure 4 A process of determining at least one coding unit by splitting a non-square coding unit according to an embodiment is illustrated.
[0036] Figure 5 A process of splitting a coding unit based on at least one of block shape information and division shape pattern information according to an embodiment is illustrated.
[0037] Figure 6 A method of determining a predetermined coding unit from among an odd number of coding units according to an embodiment is illustrated.
[0038] Figure 7 Illustrated is an order in which a plurality of coding units are processed when a plurality of coding units are determined by splitting a current coding unit according to an embodiment.
[0039] Figure 8 A process of determining that a current coding unit is to be split into an odd number of coding units when coding units cannot be processed in a predetermined order according to an embodiment is illustrated.
[0040] Fig. 9 A process of determining at least one coding unit by splitting a first coding unit according to an embodiment is illustrated.
[0041] Fig.10 It is shown that shapes into which the second coding unit may be split are limited when a second coding unit having a non-square shape determined by splitting the first coding unit satisfies a predetermined condition according to an embodiment.
[0042] Fig.11A process of splitting a square coding unit when the division shape pattern information indicates that the square coding unit is not to be split into four square coding units according to an embodiment is illustrated.
[0043] Fig.12 It is shown that a processing order among a plurality of coding units may be changed according to a process of dividing the coding units according to an embodiment.
[0044] Fig.13 A process of determining a depth of a coding unit when a shape and a size of a coding unit are changed when a coding unit is recursively split so that a plurality of coding units are determined according to an embodiment is illustrated.
[0045] Fig.14 Depth that may be determined based on the shape and size of a coding unit and a partial index (PID) for distinguishing coding units according to an embodiment are illustrated.
[0046] Fig.15 It is shown that a plurality of coding units are determined based on a plurality of predetermined data units included in a picture according to an embodiment.
[0047] Fig.16 Illustrations of coding units that may be determined for each picture when a combination of shapes into which a coding unit may be divided is different for each picture, according to an embodiment.
[0048] Fig.17 Various shapes of coding units that may be determined based on division shape pattern information represented as a binary code according to an embodiment are illustrated.
[0049] Fig.18 Another shape of a coding unit that may be determined based on division shape pattern information represented as a binary code according to an embodiment is illustrated.
[0050] Fig.19 It is a block diagram of an image encoding and decoding system.
[0051] Fig. 20 is a block diagram illustrating components of an image decoding apparatus according to an embodiment.
[0052] Fig.21 is a diagram showing an example of the structure of a bitstream generated according to the hierarchical structure of an image.
[0053] Fig.22a is a diagram illustrating syntax elements of a sequence parameter set according to an embodiment. Figure 22b is a diagram illustrating the semantics of syntax elements of a sequence parameter set according to an embodiment.
[0054] Fig.23 is a diagram illustrating the syntax and semantics of a sequence parameter set according to an embodiment.
[0055] Fig.24a : is a diagram showing tool flags and functions according to the values of each tool flag.
[0056] Figure 24b is a diagram showing a main configuration file according to an embodiment.
[0057] Fig.24c is a table showing tools corresponding to each of the bits of the first bit string.
[0058] Fig.24d is an example diagram showing values of a tool flag restricted according to values of a first toolset index and a second toolset index.
[0059] Fig.24e is an example diagram showing values of tool flags restricted according to values of a first toolset index according to an embodiment.
[0060] Figures 25a to 25d is a diagram showing a method based on an embodiment of the present invention. Fig.23 FIG. 2310 is a diagram of the syntax of the coding unit of the value of the sps_admvp_flag 2310. Fig.25e is a diagram illustrating the semantics of a coding unit based on the value of the sps_admvp_flag 2310 .
[0061] Fig.25f and Figure 25g It is used to describe the Fig.23 A diagram showing the decoding process (inter-frame prediction process) of the value of sps_admvp_flag2310. Figure 25h to Figure 25k is a diagram showing a method based on an embodiment of the present invention. Fig.23 Figure 2310 shows the interpolation filter value of sps_admvp_flag 2310. Figure 25l It is shown based on Fig.23 FIG. 2310 is a diagram of a binarization parameter of the value of sps_admvp_flag 2310.
[0062] Fig.26 is a flowchart for describing an image decoding method according to an embodiment.
[0063] Fig. 27 27 is a block diagram showing components of an image encoding apparatus 2700 according to an embodiment.
[0064] Fig.28 is a flowchart for describing an image encoding method according to an embodiment. DETAILED DESCRIPTION
[0065] According to various embodiments, an image decoding method performed by an image decoding device includes: obtaining first encoding tool enable flag information of a first encoding tool from a bitstream, the first encoding tool enable flag information of the first encoding tool indicating whether the first encoding tool can be applied to an image sequence; based on the obtained first encoding tool enable flag information, obtaining second encoding tool enable flag information of at least one second encoding tool related to the first encoding tool from the bitstream; based on at least one of the first encoding tool enable flag information and the second encoding tool enable flag information, identifying at least one encoding tool of the first encoding tool and the second encoding tool that can be applied to the image sequence included in the bitstream; and performing decoding on the image sequence based on the identified at least one encoding tool.
[0066] According to various embodiments, an image decoding device includes at least one processor, which is configured to: obtain first encoding tool enable flag information of a first encoding tool from a bitstream, the first encoding tool enable flag information of the first encoding tool indicating whether the first encoding tool can be applied to an image sequence; based on the obtained first encoding tool enable flag information, obtain second encoding tool enable flag information of at least one second encoding tool related to the first encoding tool from the bitstream; based on at least one of the first encoding tool enable flag information and the second encoding tool enable flag information, identify at least one encoding tool of the first encoding tool and the second encoding tool that can be applied to the image sequence included in the bitstream; and perform decoding on the image sequence based on the identified at least one encoding tool.
[0067] According to an embodiment, an image encoding method performed by an image encoding device includes: encoding an image sequence based on at least one encoding tool among a plurality of encoding tools including a first encoding tool and a second encoding tool; generating at least one of first encoding tool enable flag information indicating whether the first encoding tool is applicable to the image sequence and second encoding tool enable flag information indicating whether the second encoding tool is applicable to the image sequence; and generating a bitstream including image sequence data and a sequence parameter set, wherein the image sequence data includes syntax elements generated as a result of the encoding, and the sequence parameter set includes at least one of the first encoding tool enable flag information and the second encoding tool enable flag information, wherein when the value of the first encoding tool enable flag information is 1, the bitstream includes both the first encoding tool enable flag information and the second encoding tool enable flag information, and when the value of the first encoding tool enable flag information is 0, the bitstream includes the first encoding tool enable flag information but does not include the second encoding tool enable flag information.
[0068] A program for executing the methods according to various embodiments is recorded on a computer-readable recording medium.
[0069] Public method
[0070] Since the present disclosure allows various changes and many examples, specific embodiments will be described in detail in the drawings and in the written description. However, this is not intended to limit the present disclosure to a specific mode of practice, and it will be understood that all changes, equivalents and substitutions that do not depart from the spirit and technical scope of the various embodiments are included in the present disclosure.
[0071] In the description of the embodiment, when it is considered that the specific detailed explanation of the related art may unnecessarily obscure the essence of the present disclosure, the specific detailed explanation of the related art is omitted. In addition, the numbering (e.g., first, second, etc.) used in the description of the specification is only an identifier code for distinguishing one element from another element.
[0072] Furthermore, in the present specification, it will be understood that when elements are “connected” or “coupled” to each other, the elements may be directly connected or coupled to each other, but may alternatively be connected or coupled to each other through intermediate elements between the elements, unless otherwise specified.
[0073] In this specification, with respect to an element represented as a "unit" or a "module", two or more elements may be combined into one element, or one element may be divided into two or more elements according to subdivided functions. In addition, each element described below may additionally perform some or all of the functions performed by another element in addition to its own main function, and some of the main functions of each element may be completely performed by another component.
[0074] Furthermore, in this specification, an “image” or a “screen” may refer to a still image or a moving image of a video, that is, the video itself.
[0075] In addition, in this specification, "sample" or "signal" means data assigned to a sampling position of an image, that is, data to be processed. For example, a pixel value of an image in a spatial domain and a transform coefficient on a transform domain may be a sample. A unit including at least one such sample may be defined as a block.
[0076] In the following, reference is made to Figures 1 to 19 An image encoding method and apparatus and an image decoding method and apparatus based on tree-structured coding units and transformation units according to an embodiment are described.
[0077] Figure 1 is a block diagram of an image decoding apparatus 100 according to an embodiment.
[0078] The image decoding apparatus 100 may include a bitstream obtainer 110 and a decoder 120. The bitstream obtainer 110 and the decoder 120 may include at least one processor. In addition, the bitstream obtainer 110 and the decoder 120 may include a memory storing instructions to be executed by the at least one processor.
[0079] The bitstream obtainer 110 may receive a bitstream. The bitstream includes information about the image encoding of the image encoding device 200 described later. In addition, the bitstream may be sent from the image encoding device 200. The image encoding device 200 and the image decoding device 100 may be connected by wire or wirelessly, and the bitstream obtainer 110 may receive the bitstream by wire or wirelessly. The bitstream obtainer 110 may receive the bitstream from a storage medium such as an optical medium or a hard disk. The decoder 120 may reconstruct an image based on information obtained from the received bitstream. The decoder 120 may obtain syntax elements for reconstructing an image from the bitstream. The decoder 120 may reconstruct an image based on the syntax elements.
[0080] In order to describe the operation of the image decoding apparatus 100 in detail, the bitstream obtainer 110 may receive a bitstream.
[0081] The image decoding device 100 may perform an operation of obtaining a binary bit string corresponding to a division shape pattern of a coding unit from a bitstream. In addition, the image decoding device 100 may perform an operation of determining a division rule of a coding unit. In addition, the image decoding device 100 may perform an operation of dividing a coding unit into a plurality of coding units based on at least one of a binary bit string corresponding to a division shape pattern and a division rule. In order to determine the division rule, the image decoding device 100 may determine a first range of allowable sizes of the coding unit according to an aspect ratio of the coding unit. In order to determine the division rule, the image decoding device 100 may determine a second range of allowable sizes of the coding unit according to the division shape pattern of the coding unit.
[0082] Hereinafter, the division of coding units will be described in detail according to an embodiment of the present disclosure.
[0083] First, a picture may be divided into one or more slices or one or more parallel blocks. A slice or a parallel block may be a sequence of one or more coding tree units (CTUs). According to an embodiment, a slice may include one or more parallel blocks, and a slice may include one or more CTUs. A slice including one or more parallel blocks may be determined in a picture.
[0084] As a concept contrasted with CTU, there is a coding tree block (CTB). CTB represents an N×N block including N×N samples (N is an integer). Each color component can be divided into one or more CTBs.
[0085] When a picture has three sample arrays (sample arrays for Y component, Cr component and Cb component), CTU includes CTB of luma sample, two CTBs of chroma sample corresponding to luma sample and syntax structure for encoding luma sample and chroma sample. When the picture is a monochrome picture, CTU includes CTB of monochrome sample and syntax structure for encoding monochrome sample. When the picture is a picture encoded in a color plane separated according to color components, CTU includes syntax structure for encoding the picture and samples of the picture.
[0086] One CTB may be divided into M×N coding blocks including M×N samples (M and N are integers).
[0087] When the picture has sample arrays for Y component, Cr component and Cb component, the coding unit includes a coding block of luma samples, two coding blocks of chroma samples corresponding to the luma samples, and a syntax structure for encoding the luma samples and the chroma samples. When the picture is a monochrome picture, the coding unit includes a coding block of monochrome samples and a syntax structure for encoding monochrome samples. When the picture is a picture encoded in a color plane separated according to color components, the coding unit includes a syntax structure for encoding the picture and samples of the picture.
[0088] As described above, CTB and CTU are conceptually distinguished from each other, and coding blocks and coding units are conceptually distinguished from each other. That is, a coding unit (CTU) refers to a data structure including a coding block (CTB) including corresponding samples and a syntax element corresponding to the coding block (CTB). However, since a person of ordinary skill in the art understands that a coding unit (CTU) or a coding block (CTB) refers to a block of a specific size including a specific number of samples, unless otherwise described, CTB and CTU or coding blocks and coding units are referred to in the following specification without distinction.
[0089] The image may be divided into CTUs. The size of each CTU may be determined based on information obtained from the bitstream. The shape of each CTU may be a square shape of the same size. However, the embodiment is not limited thereto.
[0090] For example, information about the maximum size of the luma coding block may be obtained from the bitstream. For example, the maximum size of the luma coding block indicated by the information about the maximum size of the luma coding block may be one of 4×4, 8×8, 16×16, 32×32, 64×64, 128×128, and 256×256.
[0091] For example, information about the luma block size difference and the maximum size of the luma coding block that can be divided into two may be obtained from the bitstream. The information about the luma block size difference may refer to the size difference between the luma CTU and the luma CTB that can be divided into two. Therefore, when the information about the maximum size of the luma coding block that can be divided into two obtained from the bitstream and the information about the luma block size difference are combined with each other, the size of the luma CTU may be determined. The size of the chroma CTU may be determined by using the size of the luma CTU. For example, when the Y:Cb:Cr ratio is 4:2:0 according to the color format, the size of the chroma block may be half the size of the luma block, and the size of the chroma CTU may be half the size of the luma CTU.
[0092] According to an embodiment, since information about the maximum size of a binary-dividable brightness coding block is obtained from a bitstream, the maximum size of a binary-dividable brightness coding block can be variably determined. In contrast, the maximum size of a ternary-dividable brightness coding block can be fixed. For example, the maximum size of a ternary-dividable brightness coding block in an I picture can be 32×32, and the maximum size of a ternary-dividable brightness coding block in a P picture or a B picture can be 64×64.
[0093] In addition, the CTU may be hierarchically split into coding units based on the split shape mode information obtained from the bitstream. At least one of information indicating whether to perform quad splitting, information indicating whether to perform multi-split, split direction information, and split type information may be obtained from the bitstream as the split shape mode information.
[0094] For example, the information indicating whether quad splitting is performed may indicate whether the current coding unit is quad split (QUAD_SPLIT) or not quad split.
[0095] When the current coding unit is not quadripartitioned, the information indicating whether multi-split is performed may indicate whether the current coding unit is no longer split (NO_SPLIT) or is binary / ternary split.
[0096] When the current coding unit is binary-split or ternary-split, the split direction information indicates that the current coding unit is split in one direction of a horizontal direction and a vertical direction.
[0097] When the current coding unit is split in the horizontal direction or the vertical direction, the split type information indicates whether the current coding unit is binary-split or ternary-split.
[0098] The split mode of the current coding unit may be determined according to the split direction information and the split type information. The split mode when the current coding unit is binary-split in the horizontal direction may be determined as a binary horizontal split mode (SPLIT_BT_HOR), the split mode when the current coding unit is ternary-split in the horizontal direction may be determined as a ternary horizontal split mode (SPLIT_TT_HOR), the split mode when the current coding unit is binary-split in the vertical direction may be determined as a binary vertical split mode (SPLIT_BT_VER), and the split mode when the current coding unit is ternary-split in the vertical direction may be determined as a ternary vertical split mode SPLIT_TT_VER.
[0099] The image decoding device 100 may obtain the division shape pattern information from a binary bit string from the bit stream. The form of the bit stream received by the image decoding device 100 may include a fixed-length binary code, a unary code, a truncated unary code, a predetermined binary code, etc. The binary bit string is information of a binary number. The binary bit string may include at least one bit. The image decoding device 100 may obtain the division shape pattern information corresponding to the binary bit string based on the division rule. The image decoding device 100 may determine whether to perform quadruple division on the coding unit, whether to not divide the coding unit, the division direction, and the division type based on a binary bit string.
[0100] The coding unit may be smaller than or equal to the CTU. For example, since the CTU is a coding unit having the largest size, the CTU is one of the coding units. When the division shape mode information about the CTU indicates that division is not performed, the coding unit determined in the CTU has the same size as the CTU. When the division shape mode information about the CTU indicates that division is performed, the CTU may be divided into coding units. In addition, when the division shape mode information about the coding unit indicates that division is performed, the coding unit may be divided into smaller coding units. However, the division of an image is not limited thereto, and the CTU and the coding unit may not be distinguished. Reference will be made to Figures 3 to 16 The division of coding units is described in detail.
[0101] In addition, one or more prediction blocks for prediction may be determined from the coding unit. The prediction block may be equal to or smaller than the coding unit. In addition, one or more transform blocks for transformation may be determined from the coding unit. The transform block may be equal to or smaller than the coding unit.
[0102] The shapes and sizes of the transform block and the prediction block may be unrelated to each other.
[0103] In another embodiment, prediction may be performed by using a coding unit as a prediction unit. In addition, transformation may be performed by using a coding unit as a transformation block.
[0104] Will refer to Figures 3 to 16The division of the coding unit is described in detail. The current block and the neighboring block in the present disclosure may indicate one of a CTU, a coding unit, a prediction block, and a transform block. In addition, the current block or the current coding unit is a block to be decoded or encoded currently or a block to be divided currently. The neighboring block may be a block reconstructed before the current block. The neighboring block may be adjacent to the current block in space or time. The neighboring block may be located on one of the lower left, left side, upper left, upper, upper right, right side, and lower right side of the current block.
[0105] Figure 3 A process of determining at least one coding unit by splitting a current coding unit, performed by the image decoding apparatus 100 according to an embodiment, is illustrated.
[0106] The block shape may include 4N×4N, 4N×2N, 2N×4N, 4N×N, N×4N, 32N×N, N×32N, 16N×N, N×16N, 8N×N, or N×8N. Here, N may be a positive integer. The block shape information is information indicating at least one of a shape, a direction, an aspect ratio, or a size of a coding unit.
[0107] The shape of the coding unit may include a square and a non-square. When the width length and height length of the coding unit are the same (that is, when the block shape of the coding unit is 4N×4N), the image decoding apparatus 100 may determine the block shape information of the coding unit as a square. The image decoding apparatus 100 may determine the shape of the coding unit as a non-square.
[0108] When the width and height of the coding unit are different from each other (that is, when the block shape of the coding unit is 4N×2N, 2N×4N, 4N×N, N×4N, 32N×N, N×32N, 16N×N, N×16N, 8N×N, or N×8N), the image decoding apparatus 100 may determine the block shape information of the coding unit as a non-square shape. When the shape of the coding unit is non-square, the image decoding apparatus 100 may determine the aspect ratio in the block shape information of the coding unit as at least one of 1:2, 2:1, 1:4, 4:1, 1:8, 8:1, 1:16, 16:1, 1:32, and 32:1. In addition, the image decoding apparatus 100 may determine whether the coding unit is in the horizontal direction or in the vertical direction based on the width length and height length of the coding unit. In addition, the image decoding apparatus 100 may determine the size of the coding unit based on at least one of the width length, height length, or area of the coding unit.
[0109] According to an embodiment, the image decoding apparatus 100 may determine the shape of the coding unit by using the block shape information, and may determine the division method of the coding unit by using the division shape pattern information. That is, the coding unit division method indicated by the division shape pattern information may be determined based on the block shape indicated by the block shape information used by the image decoding apparatus 100.
[0110] The image decoding device 100 may obtain the division shape pattern information from the bitstream. However, the embodiment is not limited thereto, and the image decoding device 100 and the image encoding device 200 may determine the pre-agreed division shape pattern information based on the block shape information. The image decoding device 100 may determine the pre-agreed division shape pattern information for the CTU or the minimum coding unit. For example, the image decoding device 100 may determine the division shape pattern information for the CTU as a quadruple division. In addition, the image decoding device 100 may determine the division shape pattern information about the minimum coding unit as "no division is performed". Specifically, the image decoding device 100 may determine the size of the CTU to be 256×256. The image decoding device 100 may determine the pre-agreed division shape pattern information as a quadruple division. Quadruple division is a division shape pattern in which the width and height of the coding unit are both divided into two equal parts. The image decoding device 100 may obtain a 128×128-sized coding unit from a 256×256-sized CTU based on the division shape pattern information. In addition, the image decoding device 100 may determine the size of the minimum coding unit to be 4×4. The image decoding apparatus 100 may obtain division shape pattern information indicating “do not perform division” for a minimum coding unit.
[0111] According to an embodiment, the image decoding apparatus 100 may use block shape information indicating that the current coding unit has a square shape. For example, the image decoding apparatus 100 may determine whether to not split the square coding unit, whether to vertically split the square coding unit, whether to horizontally split the square coding unit, or whether to split the square coding unit into four coding units based on the split shape mode information. Figure 3 , when the block shape information of the current coding unit 300 indicates a square shape, the decoder 120 may not divide the coding unit 310a having the same size as the current coding unit 300 based on the division shape pattern information indicating that division is not performed, or may determine the coding unit 310b, 310c, 310d, 310e or 310f divided based on the division shape pattern information indicating a specific division method.
[0112] Reference Figure 3According to an embodiment, the image decoding apparatus 100 may determine two coding units 310b obtained by dividing the current coding unit 300 in the vertical direction based on the division shape pattern information indicating that division is performed in the vertical direction. The image decoding apparatus 100 may determine two coding units 310c obtained by dividing the current coding unit 300 in the horizontal direction based on the division shape pattern information indicating that division is performed in the horizontal direction. The image decoding apparatus 100 may determine four coding units 310d obtained by dividing the current coding unit 300 in the vertical and horizontal directions based on the division shape pattern information indicating that division is performed in the vertical and horizontal directions. According to an embodiment, the image decoding apparatus 100 may determine three coding units 310e obtained by dividing the current coding unit 300 in the vertical direction based on the division shape pattern information indicating that ternary division is performed in the vertical direction. The image decoding apparatus 100 may determine three coding units 310f obtained by dividing the current coding unit 300 in the horizontal direction based on the division shape pattern information indicating that ternary division is performed in the horizontal direction. However, the division method of the square coding unit is not limited to the above method, and the division shape pattern information may indicate various methods. A predetermined division method for dividing a square coding unit will be described in detail below with respect to various embodiments.
[0113] Figure 4 A process of determining at least one coding unit by splitting a non-square coding unit, performed by the image decoding apparatus 100 according to an embodiment, is illustrated.
[0114] According to an embodiment, the image decoding apparatus 100 may use block shape information indicating that the current coding unit has a non-square shape. The image decoding apparatus 100 may determine whether to not split the non-square current coding unit or whether to split the non-square current coding unit by using a specific splitting method based on the splitting shape pattern information. Figure 4 , when the block shape information of the current coding unit 400 or 450 indicates a non-square shape, the image decoding apparatus 100 may determine a coding unit 410 or 460 having the same size as the current coding unit 400 or 450 based on the division shape pattern information indicating that division is not performed, or may determine coding units 420a and 420b, 430a to 430c, 470a and 470b, or 480a to 480c divided based on the division shape pattern information indicating a specific division method. A predetermined division method for dividing a non-square coding unit will be described in detail below with respect to various embodiments.
[0115] According to an embodiment, the image decoding apparatus 100 may determine a splitting method of a coding unit by using splitting shape pattern information, and in this case, the splitting shape pattern information may indicate the number of one or more coding units generated by splitting the coding unit. Figure 4 When the division shape pattern information indicates that the current coding unit 400 or 450 is divided into two coding units, the image decoding device 100 can determine the two coding units 420a and 420b or 470a and 470b included in the current coding unit 400 or 450 by dividing the current coding unit 400 or 450 based on the division shape pattern information.
[0116] According to an embodiment, when the image decoding apparatus 100 splits the non-square current coding unit 400 or 450 based on the split shape pattern information, the image decoding apparatus 100 may split the current coding unit in consideration of the position of the long side of the non-square current coding unit 400 or 450. For example, the image decoding apparatus 100 may determine a plurality of coding units by splitting the current coding unit 400 or 450 in the direction of the long side of the current coding unit 400 or 450 in consideration of the shape of the current coding unit 400 or 450.
[0117] According to an embodiment, when the division shape pattern information indicates that the coding unit is divided (ternary division) into an odd number of blocks, the image decoding apparatus 100 may determine the odd number of coding units included in the current coding unit 400 or 450. For example, when the division shape pattern information indicates that the current coding unit 400 or 450 is divided into three coding units, the image decoding apparatus 100 may divide the current coding unit 400 or 450 into three coding units 430a, 430b, and 430c or 480a, 480b, and 480c.
[0118] According to an embodiment, the ratio of the width and height of the current coding unit 400 or 450 may be 4:1 or 1:4. When the ratio of the width and the height is 4:1, because the width length is greater than the height length, the block shape information may be in the horizontal direction. When the ratio of the width and the height is 1:4, because the width length is less than the height length, the block shape information may be in the vertical direction. The image decoding apparatus 100 may determine the current coding unit to be divided into an odd number of blocks based on the division shape mode information. In addition, the image decoding apparatus 100 may determine the division direction of the current coding unit 400 or 450 based on the block shape information of the current coding unit 400 or 450. For example, when the current coding unit 400 is in the vertical direction, the image decoding apparatus 100 may determine the coding units 430a to 430c by dividing the current coding unit 400 in the horizontal direction. In addition, when the current coding unit 450 is in the horizontal direction, the image decoding apparatus 100 may determine the coding units 480a to 480c by dividing the current coding unit 450 in the vertical direction.
[0119] According to an embodiment, the image decoding apparatus 100 may determine an odd number of coding units included in the current coding unit 400 or 450, and not all determined coding units may have the same size. For example, a predetermined coding unit 430b or 480b among the determined odd number of coding units 430a, 430b, and 430c or 480a, 480b, and 480c may have a size different from that of other coding units 430a and 430c or 480a and 480c. That is, the coding unit determined by dividing the current coding unit 400 or 450 may have a plurality of sizes, and in some cases, all odd number of coding units 430a, 430b, and 430c or 480a, 480b, and 480c may have different sizes.
[0120] According to an embodiment, when the division shape pattern information indicates that the coding unit is divided into an odd number of blocks, the image decoding apparatus 100 may determine an odd number of coding units included in the current coding unit 400 or 450, and further, may impose a specific restriction on at least one of the odd number of coding units generated by dividing the current coding unit 400 or 450. Figure 4, the image decoding apparatus 100 may set a decoding process for a coding unit 430b or 480b to be different from a decoding process for other coding units 430a and 430c or 480a and 480c, wherein the coding unit 430b or 480b is located at the center of the three coding units 430a, 430b, and 430c or 480a, 480b, and 480c generated by dividing the current coding unit 400 or 450. For example, unlike the other coding units 430a and 430c or 480a and 480c, the image decoding apparatus 100 may restrict the coding unit 430b or 480b at the center position from being divided or being divided only a predetermined number of times.
[0121] Figure 5 A process of splitting a coding unit based on at least one of block shape information and division shape pattern information, performed by the image decoding apparatus 100 according to an embodiment, is illustrated.
[0122] According to an embodiment, the image decoding apparatus 100 may determine whether to divide the square first coding unit 500 into coding units or not to divide the square first coding unit 500 based on at least one of the block shape information and the division shape mode information. According to an embodiment, when the division shape mode information indicates that the first coding unit 500 is divided in the horizontal direction, the image decoding apparatus 100 may determine the second coding unit 510 by dividing the first coding unit 500 in the horizontal direction. The first coding unit, the second coding unit, and the third coding unit used according to the embodiment are terms for understanding the relationship between the coding unit before and after the coding unit is divided. For example, the second coding unit may be determined by dividing the first coding unit, and the third coding unit may be determined by dividing the second coding unit. It will be understood that the relationship between the first coding unit, the second coding unit, and the third coding unit conforms to the above description.
[0123] According to an embodiment, the image decoding apparatus 100 may determine whether to split the determined second coding unit 510 into coding units or not to split the determined second coding unit 510 based on the division shape pattern information. Figure 5, the image decoding apparatus 100 may split the non-square second coding unit 510 determined by splitting the first coding unit 500 into one or more third coding units 520a, or 520b, 520c, and 520d based on the split shape pattern information, or may not split the non-square second coding unit 510. The image decoding apparatus 100 may obtain the split shape pattern information, and may obtain a plurality of second coding units (for example, 510) of various shapes by splitting the first coding unit 500 based on the obtained split shape pattern information, and may split the second coding unit 510 by using the split method of the first coding unit 500 based on the split shape pattern information. According to an embodiment, when the first coding unit 500 is split into the second coding unit 510 based on the split shape pattern information of the first coding unit 500, the second coding unit 510 may also be split into the third coding unit 520a, or 520b, 520c, and 520d based on the split shape pattern information of the second coding unit 510. That is, the coding unit may be recursively split based on the split shape pattern information of each coding unit. Thus, a square coding unit may be determined by splitting a non-square coding unit, and a non-square coding unit may be determined by recursively splitting a square coding unit.
[0124] Reference Figure 5 , a specific coding unit (e.g., a coding unit located at a central position or a square coding unit) among the odd-numbered third coding units 520b, 520c, and 520d determined by dividing the non-square second coding unit 510 may be recursively divided. According to an embodiment, a non-square third coding unit 520b among the odd-numbered third coding units 520b, 520c, and 520d may be divided into a plurality of fourth coding units in the horizontal direction. A non-square fourth coding unit 530b or 530d among the plurality of fourth coding units 530a, 530b, 530c, and 530d may be divided into a plurality of coding units again. For example, a non-square fourth coding unit 530b or 530d may be divided into an odd-numbered coding unit again. A method for recursively dividing coding units will be described below with respect to various embodiments.
[0125] According to an embodiment, the image decoding device 100 may divide each of the third coding unit 520a, or 520b, 520c, and 520d into coding units based on the division shape pattern information. In addition, the image decoding device 100 may determine not to divide the second coding unit 510 based on the division shape pattern information. According to an embodiment, the image decoding device 100 may divide the non-square second coding unit 510 into an odd number of third coding units 520b, 520c, and 520d. The image decoding device 100 may impose a predetermined restriction on a predetermined third coding unit among the odd number of third coding units 520b, 520c, and 520d. For example, the image decoding device 100 may limit the third coding unit 520c at the center position among the odd number of third coding units 520b, 520c, and 520d to no longer be divided or divided a configurable number of times.
[0126] Reference Figure 5 , the image decoding device 100 may limit the third coding unit 520c at the center position among the odd third coding units 520b, 520c, and 520d included in the non-square second coding unit 510 to no longer be divided, to be divided by using a specific division method (for example, only divided into four coding units or divided by using the division method of the second coding unit 510), or to be divided only a specific number of times (for example, only divided n times (where n>0)). However, the limitation on the third coding unit 520c at the center position is only according to the embodiment, and therefore should not be interpreted as being limited to the above-mentioned embodiment, but should be interpreted as including various limitations for decoding the third coding unit 520c at the center position differently from the other third coding units 520b and 520d.
[0127] According to an embodiment, the image decoding apparatus 100 may obtain split shape pattern information for splitting the current coding unit from a specific position in the current coding unit.
[0128] Figure 6 A method of determining a specific coding unit from among odd-numbered coding units, performed by the image decoding apparatus 100 according to an embodiment, is illustrated.
[0129] Reference Figure 6 , the division shape mode information of the current coding unit 600 or 650 may be obtained from a sample at a specific position (e.g., a sample 640 or 690 at a center position) among a plurality of samples included in the current coding unit 600 or 650. However, the specific position in the current coding unit 600 where at least one piece of division shape mode information may be obtained is not limited to Figure 6, and may include various positions (e.g., upper, lower, left, right, upper left, lower left, upper right, and lower right positions) included in the current coding unit 600. The image decoding apparatus 100 may obtain the division shape pattern information from a specific position, and may determine whether to divide the current coding unit into coding units of various shapes and sizes or not to divide the current coding unit.
[0130] According to an embodiment, when the current coding unit is divided into a predetermined number of coding units, the image decoding apparatus 100 may select one of the coding units. As will be described below with respect to various embodiments, various methods may be used to select one of the plurality of coding units.
[0131] According to an embodiment, the image decoding apparatus 100 may split a current coding unit into a plurality of coding units, and may determine a coding unit at a predetermined position.
[0132] According to an embodiment, the image decoding apparatus 100 may determine a coding unit at a center position among the odd-numbered coding units using information indicating the positions of the odd-numbered coding units. Figure 6 , the image decoding apparatus 100 may determine the odd number of coding units 620a, 620b, and 620c or the odd number of coding units 660a, 660b, and 660c by dividing the current coding unit 600 or the current coding unit 650. The image decoding apparatus 100 may determine the intermediate coding unit 620b or the intermediate coding unit 660b by using information about the positions of the odd number of coding units 620a, 620b, and 620c or the odd number of coding units 660a, 660b, and 660c. For example, the image decoding apparatus 100 may determine the coding unit 620b of the center position by determining the positions of the coding units 620a, 620b, and 620c based on information indicating the positions of predetermined samples included in the coding units 620a, 620b, and 620c. In detail, the image decoding apparatus 100 may determine the coding unit 620b at the center position by determining the positions of the coding units 620a, 620b, and 620c based on information indicating the positions of the upper left samples 630a, 630b, and 630c of the coding units 620a, 620b, and 620c.
[0133] According to an embodiment, the information indicating the positions of the upper left sample points 630a, 630b, and 630c respectively included in the coding units 620a, 620b, and 620c may include information about the positions or coordinates of the coding units 620a, 620b, and 620c in the picture. According to an embodiment, the information indicating the positions of the upper left sample points 630a, 630b, and 630c respectively included in the coding units 620a, 620b, and 620c may include information indicating the width or height of the coding units 620a, 620b, and 620c included in the current coding unit 600, and the width or height may correspond to the information indicating the difference between the coordinates of the coding units 620a, 620b, and 620c in the picture. That is, the image decoding apparatus 100 may determine the coding unit 620b at the center position by directly using the information about the positions or coordinates of the coding units 620a, 620b, and 620c in the picture or by using the information about the width or height of the coding unit corresponding to the difference between the coordinates.
[0134] According to an embodiment, information indicating the position of the upper left sample point 630a of the upper coding unit 620a may include coordinates (xa, ya), information indicating the position of the upper left sample point 630b of the middle coding unit 620b may include coordinates (xb, yb), and information indicating the position of the upper left sample point 630c of the lower coding unit 620c may include coordinates (xc, yc). The image decoding apparatus 100 may determine the middle coding unit 620b by using the coordinates of the upper left sample points 630a, 630b, and 630c respectively included in the coding units 620a, 620b, and 620c. For example, when the coordinates of the upper left sample points 630a, 630b, and 630c are sorted in ascending or descending order, the coding unit 620b including the coordinates (xb, yb) of the sample point 630b at the center position may be determined as the coding unit at the center position among the coding units 620a, 620b, and 620c determined by dividing the current coding unit 600. However, the coordinates indicating the positions of the upper left sample points 630a, 630b, and 630c may include coordinates indicating absolute positions in the picture, or coordinates (dxb, dyb) indicating the relative position of the upper left sample point 630b of the middle coding unit 620b relative to the position of the upper left sample point 630a of the upper coding unit 620a and coordinates (dxc, dyc) indicating the relative position of the upper left sample point 630c of the lower coding unit 620c relative to the position of the upper left sample point 630a of the upper coding unit 620a may be used. The method of determining the coding unit at a predetermined position by using the coordinates of the sample points included in the coding unit as information indicating the positions of the sample points should not be interpreted as being limited to the above method, but should be interpreted as including various arithmetic methods capable of using the coordinates of the sample points.
[0135] According to an embodiment, the image decoding apparatus 100 may divide the current coding unit 600 into a plurality of coding units 620a, 620b, and 620c, and may select one of the coding units 620a, 620b, and 620c based on a predetermined criterion. For example, the image decoding apparatus 100 may select a coding unit 620b having a size different from that of other coding units from among the coding units 620a, 620b, and 620c.
[0136] According to an embodiment, the image decoding apparatus 100 may determine the width or height of each of the coding units 620a, 620b, and 620c by using the coordinates (xa, ya) as information indicating the position of the upper left sample point 630a of the upper coding unit 620a, the coordinates (xb, yb) as information indicating the position of the upper left sample point 630b of the middle coding unit 620b, and the coordinates (xc, yc) as information indicating the position of the upper left sample point 630c of the lower coding unit 620c. The image decoding apparatus 100 may determine the size of each of the coding units 620a, 620b, and 620c by using the coordinates (xa, ya), (xb, yb), and (xc, yc) indicating the positions of the coding units 620a, 620b, and 620c. According to an embodiment, the image decoding apparatus 100 may determine the width of the upper coding unit 620a as the width of the current coding unit 600. The image decoding apparatus 100 may determine the height of the upper coding unit 620a as yb-ya. According to an embodiment, the image decoding apparatus 100 may determine the width of the intermediate coding unit 620b as the width of the current coding unit 600. The image decoding apparatus 100 may determine the height of the intermediate coding unit 620b as yc-yb. According to an embodiment, the image decoding apparatus 100 may determine the width or height of the lower coding unit 620c by using the width or height of the current coding unit 600 or the width or height of the upper coding unit 620a and the intermediate coding unit 620b. The image decoding apparatus 100 may determine a coding unit having a size different from that of other coding units based on the determined width and height of the coding units 620a to 620c. Referring to Figure 6 , the image decoding apparatus 100 may determine the middle coding unit 620b having a size different from the sizes of the upper coding unit 620a and the lower coding unit 620c as the coding unit at the predetermined position. However, the above-mentioned method of determining the coding unit having a size different from the sizes of other coding units performed by the image decoding apparatus 100 corresponds only to an example of determining the coding unit at the predetermined position by using the size of the coding unit determined based on the coordinates of the sample points, and therefore, various methods of determining the coding unit at the predetermined position by comparing the size of the coding unit determined based on the coordinates of the predetermined sample points may be used.
[0137] The image decoding apparatus 100 may determine the width or height of each of the coding units 660a, 660b, and 660c by using the coordinates (xd, yd) as information indicating the position of the upper left sample point 670a of the left coding unit 660a, the coordinates (xe, ye) as information indicating the position of the upper left sample point 670b of the middle coding unit 660b, and the coordinates (xf, yf) as information indicating the position of the upper left sample point 670c of the right coding unit 660c. The image decoding apparatus 100 may determine the size of each of the coding units 660a, 660b, and 660c by using the coordinates (xd, yd), (xe, ye), and (xf, yf) indicating the positions of the coding units 660a, 660b, and 660c.
[0138] According to an embodiment, the image decoding device 100 may determine the width of the left coding unit 660a as xe-xd. The image decoding device 100 may determine the height of the left coding unit 660a as the height of the current coding unit 650. According to an embodiment, the image decoding device 100 may determine the width of the middle coding unit 660b as xf-xe. The image decoding device 100 may determine the height of the middle coding unit 660b as the height of the current coding unit 650. According to an embodiment, the image decoding device 100 may determine the width or height of the right coding unit 660c by using the width or height of the current coding unit 650 or the width or height of the left coding unit 660a and the middle coding unit 660b. The image decoding device 100 may determine a coding unit having a size different from that of other coding units based on the determined width and height of the coding units 660a to 660c. Referring to Figure 6 , the image decoding apparatus 100 may determine the middle coding unit 660b having a size different from the sizes of the left coding unit 660a and the right coding unit 660c as the coding unit at the predetermined position. However, the above-mentioned method of determining the coding unit having a size different from the sizes of other coding units, performed by the image decoding apparatus 100, corresponds only to an example of determining the coding unit at the predetermined position by using the size of the coding unit determined based on the coordinates of the sample points, and therefore, various methods of determining the coding unit at the predetermined position by comparing the size of the coding unit determined based on the coordinates of the predetermined sample points may be used.
[0139] However, the position of the sample considered in determining the position of the coding unit is not limited to the above-mentioned upper left position, and information on predetermined positions of the samples included in the coding unit may be used.
[0140] According to an embodiment, the image decoding device 100 may select a coding unit at a predetermined position from an odd number of coding units determined by dividing the current coding unit based on the shape of the current coding unit. For example, when the current coding unit has a non-square shape in which the width is greater than the height, the image decoding device 100 may determine a coding unit at a predetermined position along the horizontal direction. That is, the image decoding device 100 may determine one of the coding units at different positions along the horizontal direction and impose restrictions on the coding unit. When the current coding unit has a non-square shape in which the height is greater than the width, the image decoding device 100 may determine a coding unit at a predetermined position along the vertical direction. That is, the image decoding device 100 may determine one of the coding units at different positions along the vertical direction and may impose restrictions on the coding unit.
[0141] According to an embodiment, the image decoding apparatus 100 may use information indicating respective positions of even-numbered coding units to determine a coding unit at a predetermined position among the even-numbered coding units. The image decoding apparatus 100 may determine the even-numbered coding units by dividing (binary division) the current coding unit, and may determine the coding unit at a specific position by using information about the positions of the even-numbered coding units. Operations related thereto may be similar to those already described above with respect to Figure 6 The operation of determining a coding unit at a predetermined position (eg, a center position) among odd-numbered coding units corresponds to the operation described in detail, and thus a detailed description thereof is not provided here.
[0142] According to an embodiment, when a non-square current coding unit is split into a plurality of coding units, a coding unit at a predetermined position among the plurality of coding units may be determined using predetermined information about the coding unit at a predetermined position in a split operation. For example, the image decoding apparatus 100 may determine a coding unit at a center position among the plurality of coding units determined by splitting the current coding unit using at least one of block shape information and split shape pattern information stored in samples included in an intermediate coding unit in a split operation.
[0143] Reference Figure 6, the image decoding apparatus 100 may divide the current coding unit 600 into a plurality of coding units 620a, 620b, and 620c based on the division shape pattern information, and may determine a coding unit 620b at a center position among the plurality of coding units 620a, 620b, and 620c. In addition, the image decoding apparatus 100 may determine the coding unit 620b at the center position based on the position where the division shape pattern information is obtained. That is, the division shape pattern information of the current coding unit 600 may be obtained from a sample point 640 at the center position of the current coding unit 600, and when the current coding unit 600 is divided into a plurality of coding units 620a, 620b, and 620c based on the division shape pattern information, the coding unit 620b including the sample point 640 may be determined as the coding unit at the center position. However, information for determining the coding unit at the center position is not limited to the division shape pattern information, and various types of information may be used to determine the coding unit at the center position.
[0144] According to an embodiment, predetermined information for identifying a coding unit at a predetermined position may be obtained from a predetermined sample point included in a coding unit to be determined. Figure 6 , the image decoding apparatus 100 may determine a coding unit at a specific position (e.g., a coding unit at a center position of the divided coding units) among a plurality of coding units 620a, 620b, and 620c determined by dividing the current coding unit 600, using division shape pattern information obtained from a sample at a specific position in the current coding unit 600 (e.g., a sample at a center position of the divided coding unit 600). That is, the image decoding apparatus 100 may determine a sample at a specific position by considering a block shape of the current coding unit 600, determine a coding unit 620b including a sample for which specific information (e.g., division shape pattern information) may be obtained from among a plurality of coding units 620a, 620b, and 620c determined by dividing the current coding unit 600, and may impose specific restrictions on the coding unit 620b. Referring to Figure 6 According to an embodiment, in a decoding operation, the image decoding apparatus 100 may determine a sample 640 at a center position of a current coding unit 600 as a sample from which predetermined information may be obtained, and may impose a predetermined restriction on a coding unit 620b including the sample 640. However, the position of the sample from which the predetermined information may be obtained is not limited to the above-mentioned position, and may include any position of the sample included in the coding unit 620b to be determined as subject to restriction.
[0145] According to an embodiment, the position of the sample at which the predetermined information can be obtained may be determined based on the shape of the current coding unit 600. According to an embodiment, the block shape information may indicate whether the current coding unit has a square shape or a non-square shape, and the position of the sample at which the predetermined information can be obtained may be determined based on the shape. For example, the image decoding apparatus 100 may determine a sample located on a boundary for dividing at least one of the width and the height of the current coding unit in half as a sample at which the predetermined information can be obtained by using at least one of the information about the width of the current coding unit and the information about the height of the current coding unit. As another example, when the block shape information of the current coding unit indicates a non-square shape, the image decoding apparatus 100 may determine one of the samples adjacent to the boundary for dividing the long side of the current coding unit in half as a sample at which the predetermined information can be obtained.
[0146] According to an embodiment, when a current coding unit is divided into a plurality of coding units, the image decoding device 100 may use division shape pattern information to determine a coding unit at a specific position in the plurality of coding units. According to an embodiment, the image decoding device 100 may obtain division shape pattern information from a sample at a specific position in the coding unit, and divide a plurality of coding units generated by dividing the current coding unit by using the division shape pattern information, wherein the division shape pattern information is obtained from a sample at a specific position in each of the plurality of coding units. That is, the coding unit may be recursively divided based on the division shape pattern information, wherein the division shape pattern information is obtained from a sample at a specific position in each coding unit. As has been described above, Figure 5 An operation of recursively splitting the coding unit is described, and thus a detailed description thereof will not be provided here.
[0147] According to an embodiment, the image decoding apparatus 100 may determine one or more coding units by splitting a current coding unit, and may determine an order in which to decode the one or more coding units based on a predetermined block (for example, the current coding unit).
[0148] Figure 7 An order in which a plurality of coding units are processed when the image decoding apparatus 100 determines a plurality of coding units by splitting a current coding unit according to an embodiment is illustrated.
[0149] According to an embodiment, based on the division shape pattern information, the image decoding device 100 can determine the second coding units 710a and 710b by dividing the first coding unit 700 in the vertical direction, determine the second coding units 730a and 730b by dividing the first coding unit 700 in the horizontal direction, or determine the second coding units 750a to 750d by dividing the first coding unit 700 in the vertical direction and the horizontal direction.
[0150] Reference Figure 7 , the image decoding apparatus 100 may determine to process the second coding units 710a and 710b determined by dividing the first coding unit 700 in the vertical direction in a horizontal direction order 710c. The image decoding apparatus 100 may determine to process the second coding units 730a and 730b determined by dividing the first coding unit 700 in the horizontal direction in a vertical direction order 730c. The image decoding apparatus 100 may determine to process the second coding units 750a to 750d determined by dividing the first coding unit 700 in the vertical and horizontal directions in a predetermined order in which the coding units in one row are processed and then the coding units in the next row are processed (for example, in a raster scan order or a zigzag scan order 750e).
[0151] According to an embodiment, the image decoding apparatus 100 may recursively divide the coding unit. Figure 7 , the image decoding apparatus 100 may determine a plurality of coding units 710a and 710b, 730a and 730b, or 750a to 750d by dividing the first coding unit 700, and may recursively divide each of the determined plurality of coding units 710a and 710b, 730a and 730b, or 750a to 750d. A division method of the plurality of coding units 710a and 710b, 730a and 730b, or 750a to 750d may correspond to a division method of the first coding unit 700. In this way, each of the plurality of coding units 710a and 710b, 730a and 730b, or 750a to 750d may be independently divided into a plurality of coding units. Referring to Figure 7 , the image decoding apparatus 100 may determine the second coding units 710a and 710b by splitting the first coding unit 700 in a vertical direction, and may determine whether to independently split or not split each of the second coding units 710a and 710b.
[0152] According to an embodiment, the image decoding apparatus 100 may determine the third coding units 720a and 720b by splitting the left second coding unit 710a in a horizontal direction, and may not split the right second coding unit 710b.
[0153] According to an embodiment, the processing order of the coding units may be determined based on the operation of dividing the coding units. In other words, the processing order of the coding units after the division may be determined based on the processing order of the coding units immediately before the division. The image decoding apparatus 100 may determine the processing order of the third coding units 720a and 720b determined by dividing the left second coding unit 710a independently of the right second coding unit 710b. Since the third coding units 720a and 720b are determined by dividing the left second coding unit 710a in the horizontal direction, the third coding units 720a and 720b may be processed in a vertical direction order 720c. Since the left second coding unit 710a and the right second coding unit 710b are processed in a horizontal direction order 710c, the right second coding unit 710b may be processed after the third coding units 720a and 720b included in the left second coding unit 710a are processed in a vertical direction order 720c. The operation of determining the processing order of coding units based on the coding units before splitting is not limited to the above example, and coding units split and determined to be various shapes may be independently processed in a predetermined order using various methods.
[0154] Figure 8 A process in which an image decoding apparatus determines that a current coding unit is split into an odd number of coding units when coding units cannot be processed in a predetermined order according to an embodiment is illustrated.
[0155] According to an embodiment, the image decoding apparatus 100 may determine that the current coding unit is split into an odd number of coding units based on the obtained division shape pattern information. Figure 8 , the square first coding unit 800 may be divided into non-square second coding units 810a and 810b, and the second coding units 810a and 810b may be independently divided into third coding units 820a and 820b and 820c to 820e. According to an embodiment, the image decoding apparatus 100 may determine a plurality of third coding units 820a and 820b by dividing the left second coding unit 810a in the horizontal direction, and may divide the right second coding unit 810b into an odd number of third coding units 820c to 820e.
[0156] According to an embodiment, the image decoding apparatus 100 may determine whether any coding unit is split into an odd number of coding units by determining whether the third coding units 820a and 820b and 820c to 820e can be processed in a predetermined order. Figure 8, the image decoding apparatus 100 may determine the third coding units 820a and 820b and 820c to 820e by recursively dividing the first coding unit 800. The image decoding apparatus 100 may determine whether any one of the following coding units is divided into an odd number of coding units based on at least one of the block shape information and the division shape mode information: the first coding unit 800, the second coding units 810a and 810b, and the third coding units 820a and 820b and 820c to 820e. For example, the right second coding unit 810b of the second coding units 810a and 810b may be divided into an odd number of third coding units 820c, 820d, and 820e. The processing order of the multiple coding units included in the first coding unit 800 can be a predetermined order (for example, a zigzag scanning order 830), and the image decoding device 100 can determine whether the third coding units 820c, 820d and 820e determined by dividing the right second coding unit 810b into an odd number of coding units meet the conditions for processing in the predetermined order.
[0157] According to an embodiment, the image decoding apparatus 100 may determine whether the third coding units 820a and 820b and 820c to 820e included in the first coding unit 800 satisfy a condition for processing in a predetermined order, and the condition is related to whether at least one of the width and height of the second coding units 810a and 810b is divided in half along the boundary of the third coding units 820a and 820b and 820c to 820e. For example, the third coding units 820a and 820b determined when the height of the left second coding unit 810a of a non-square shape is divided in half may satisfy the condition. Because the boundary of the third coding units 820c to 820e determined when the right second coding unit 810b is divided into three coding units fails to divide the width or height of the right second coding unit 810b in half, it may be determined that the third coding units 820c to 820e do not satisfy the condition. When the condition is not satisfied as described above, the image decoding apparatus 100 may determine that the scanning order is discontinuous, and may determine that the right second coding unit 810b is divided into an odd number of coding units based on the determination result. According to an embodiment, when the coding unit is divided into an odd number of coding units, the image decoding apparatus 100 may impose a predetermined restriction on the coding unit at a predetermined position in the divided coding unit. The restriction or the predetermined position has been described above with respect to various embodiments, so a detailed description thereof will not be provided here.
[0158] Fig. 9 A process of determining at least one coding unit by splitting the first coding unit 900 , performed by the image decoding apparatus 100 according to an embodiment, is illustrated.
[0159] According to an embodiment, the image decoding apparatus 100 may divide the first coding unit 900 based on the division shape pattern information obtained by the bitstream obtainer 110. The square first coding unit 900 may be divided into four square coding units, or may be divided into a plurality of non-square coding units. Fig. 9 , when the division shape pattern information indicates that the first coding unit 900 is divided into non-square coding units, the image decoding apparatus 100 may divide the first coding unit 900 into a plurality of non-square coding units. In detail, when the division shape pattern information indicates that an odd number of coding units is determined by dividing the first coding unit 900 in a horizontal direction or a vertical direction, the image decoding apparatus 100 may divide the square first coding unit 900 into an odd number of coding units (for example, second coding units 910a, 910b, and 910c determined by dividing the square first coding unit 900 in a vertical direction, or second coding units 920a, 920b, and 920c determined by dividing the square first coding unit 900 in a horizontal direction).
[0160] According to an embodiment, the image decoding apparatus 100 may determine whether the second coding units 910a, 910b, 910c, 920a, 920b, and 920c included in the first coding unit 900 satisfy a condition for processing in a predetermined order, and the condition is related to whether at least one of the width and height of the first coding unit 900 is divided in half along a boundary of the second coding units 910a, 910b, 910c, 920a, 920b, and 920c. Fig. 9 , because the boundaries of the second coding units 910a, 910b, and 910c determined by dividing the first coding unit 900 in the vertical direction do not divide the width of the first coding unit 900 in half, it can be determined that the first coding unit 900 does not satisfy the condition for processing in a specific order. In addition, because the boundaries of the second coding units 920a, 920b, and 920c determined by dividing the first coding unit 900 in the horizontal direction do not divide the height of the first coding unit 900 in half, it can be determined that the first coding unit 900 does not satisfy the condition for processing in a predetermined order. When the condition is not satisfied as described above, the image decoding apparatus 100 may determine that the scanning order is not continuous, and may determine that the first coding unit 900 is divided into an odd number of coding units based on the determination result. According to an embodiment, when the coding unit is divided into an odd number of coding units, the image decoding apparatus 100 may impose a predetermined restriction on the coding unit at a predetermined position in the divided coding unit. The restriction or the predetermined position has been described above with respect to various embodiments, so a detailed description thereof will not be provided here.
[0161] According to an embodiment, the image decoding apparatus 100 may determine coding units of various shapes by splitting the first coding unit.
[0162] Reference Fig. 9 , the image decoding apparatus 100 may divide the square first coding unit 900 or the non-square first coding unit 930 or 950 into coding units of various shapes.
[0163] Fig.10 It is shown that according to an embodiment, when a second coding unit having a non-square shape determined by splitting the first coding unit 1000 by the image decoding apparatus 100 satisfies a specific condition, shapes into which the second coding unit may be split are restricted.
[0164] According to an embodiment, the image decoding apparatus 100 may determine to divide the square first coding unit 1000 into non-square second coding units 1010a and 1010b, or 1020a and 1020b, based on the division shape pattern information obtained by the bitstream obtainer 110. The second coding units 1010a and 1010b, or 1020a and 1020b may be independently divided. In this way, the image decoding apparatus 100 may determine to divide each of the second coding units 1010a and 1010b, or 1020a and 1020b into a plurality of coding units or not to divide each of the second coding units 1010a and 1010b, or 1020a and 1020b, based on the division shape pattern information of each of the second coding units 1010a and 1010b, or 1020a and 1020b. According to an embodiment, the image decoding apparatus 100 may determine the third coding units 1012a and 1012b by splitting the non-square left second coding unit 1010a determined by splitting the first coding unit 1000 in the vertical direction in the horizontal direction. However, when the left second coding unit 1010a is split in the horizontal direction, the image decoding apparatus 100 may limit the right second coding unit 1010b to not be split in the horizontal direction in which the left second coding unit 1010a is split. When the third coding units 1014a and 1014b are determined by splitting the right second coding unit 1010b in the same direction, since the left second coding unit 1010a and the right second coding unit 1010b are independently split in the horizontal direction, the third coding units 1012a and 1012b, or 1014a and 1014b may be determined. However, this case has the same effect as the case where the image decoding apparatus 100 divides the first coding unit 1000 into four square second coding units 1030a, 1030b, 1030c, and 1030d based on the division shape pattern information, and may be inefficient in terms of image decoding.
[0165] According to an embodiment, the image decoding apparatus 100 may determine the third coding units 1022a and 1022b, or 1024a and 1024b, by vertically splitting the non-square second coding unit 1020a or 1020b determined by horizontally splitting the first coding unit 1000. However, when the second coding unit (e.g., the upper second coding unit 1020a) is split in the vertical direction, the image decoding apparatus 100 may limit another second coding unit (e.g., the lower second coding unit 1020b) to not be split in the vertical direction in which the upper second coding unit 1020a is split for the above-mentioned reason.
[0166] Fig.11 A process of splitting a square coding unit performed by the image decoding apparatus 100 when the division shape pattern information indicates that the square coding unit is not to be split into four square coding units according to an embodiment is illustrated.
[0167] According to an embodiment, the image decoding apparatus 100 may determine the second coding units 1110a and 1110b, or 1120a and 1120b, etc. by dividing the first coding unit 1100 based on the division shape pattern information. The division shape pattern information may include information about various methods of dividing the coding unit, but the information about the various division methods may not include information for dividing the coding unit into four square coding units. According to such division shape pattern information, the image decoding apparatus 100 may not divide the square first coding unit 1100 into four square coding units 1130a, 1130b, 1130c, and 1130d. The image decoding apparatus 100 may determine the non-square second coding units 1110a and 1110b, or 1120a and 1120b, etc. based on the division shape pattern information.
[0168] According to an embodiment, the image decoding apparatus 100 may independently divide the non-square second coding units 1110a and 1110b, or 1120a and 1120b, etc. Each of the second coding units 1110a and 1110b, or 1120a and 1120b, etc. may be recursively divided in a specific order, and the division method may correspond to the method of dividing the first coding unit 1100 based on the division shape pattern information.
[0169] For example, the image decoding apparatus 100 may determine square third coding units 1112a and 1112b by dividing the left second coding unit 1110a in the horizontal direction, and may determine square third coding units 1114a and 1114b by dividing the right second coding unit 1110b in the horizontal direction. In addition, the image decoding apparatus 100 may determine square third coding units 1116a, 1116b, 1116c, and 1116d by dividing both the left second coding unit 1110a and the right second coding unit 1110b in the horizontal direction. In this case, coding units having the same shape as the four square second coding units 1130a, 1130b, 1130c, and 1130d divided from the first coding unit 1100 may be determined.
[0170] As another example, the image decoding apparatus 100 may determine the third coding units 1122a and 1122b of the square shape by dividing the upper second coding unit 1120a in the vertical direction, and may determine the third coding units 1124a and 1124b of the square shape by dividing the lower second coding unit 1120b in the vertical direction. In addition, the image decoding apparatus 100 may determine the third coding units 1126a, 1126b, 1126c, and 1126d of the square shape by dividing both the upper second coding unit 1120a and the lower second coding unit 1120b in the vertical direction. In this case, a coding unit having the same shape as the four square second coding units 1130a, 1130b, 1130c, and 1130d divided from the first coding unit 1100 may be determined.
[0171] Fig.12 It is shown that a processing order among a plurality of coding units according to an embodiment may be changed according to a process of dividing the coding units.
[0172] According to an embodiment, the image decoding apparatus 100 may divide the first coding unit 1200 based on the division shape pattern information. When the block shape indicates a square shape and the division shape pattern information indicates that the first coding unit 1200 is divided in at least one of the horizontal direction and the vertical direction, the image decoding apparatus 100 may determine the second coding units 1210a and 1210b, or 1220a and 1220b, etc. by dividing the first coding unit 1200. Fig.12, the non-square second coding units 1210a and 1210b, or 1220a and 1220b determined by dividing the first coding unit 1200 only in the horizontal direction or the vertical direction may be independently divided based on the division shape pattern information of each coding unit. For example, the image decoding device 100 may determine the third coding units 1216a, 1216b, 1216c, and 1216d by dividing the second coding units 1210a and 1210b generated by dividing the first coding unit 1200 in the vertical direction in the horizontal direction, and may determine the third coding units 1226a, 1226b, 1226c, and 1226d by dividing the second coding units 1220a and 1220b generated by dividing the first coding unit 1200 in the horizontal direction in the vertical direction. As has been described above, Fig.11 An operation of dividing the second coding units 1210a and 1210b, or 1220a and 1220b is described, and thus a detailed description thereof will not be provided here.
[0173] According to an embodiment, the image decoding apparatus 100 may process the coding units in a predetermined order. Figure 7 The operation of processing the encoding units in a predetermined order is described, and thus a detailed description thereof will not be provided here. Fig.12 , the image decoding apparatus 100 may determine four square third coding units 1216a, 1216b, 1216c, and 1216d and 1226a, 1226b, 1226c, and 1226d by dividing the square first coding unit 1200. According to an embodiment, the image decoding apparatus 100 may determine a processing order of the third coding units 1216a, 1216b, 1216c, and 1216d and 1226a, 1226b, 1226c, and 1226d based on a division method of the first coding unit 1200.
[0174] According to an embodiment, the image decoding device 100 can determine the third coding units 1216a, 1216b, 1216c and 1216d by dividing the second coding units 1210a and 1210b generated by dividing the first coding unit 1200 in the vertical direction in the horizontal direction, and can process the third coding units 1216a, 1216b, 1216c and 1216d in the following processing order 1217: first, the third coding units 1216a and 1216c included in the left second coding unit 1210a are processed in the vertical direction, and then the third coding units 1216b and 1216d included in the right second coding unit 1210b are processed in the vertical direction.
[0175] According to an embodiment, the image decoding device 100 can determine the third coding units 1226a, 1226b, 1226c and 1226d by dividing the second coding units 1220a and 1220b generated by dividing the first coding unit 1200 in the horizontal direction in the vertical direction, and can process the third coding units 1226a, 1226b, 1226c and 1226d in the following processing order 1227: first, the third coding units 1226a and 1226b included in the upper second coding unit 1220a are processed in the horizontal direction, and then the third coding units 1226c and 1226d included in the lower second coding unit 1220b are processed in the horizontal direction.
[0176] Reference Fig.12 , square third coding units 1216a, 1216b, 1216c and 1216d and 1226a, 1226b, 1226c and 1226d may be determined by dividing the second coding units 1210a and 1210b, and 1220a and 1220b, respectively. Although the second coding units 1210a and 1210b determined by splitting the first coding unit 1200 in the vertical direction are different from the second coding units 1220a and 1220b determined by splitting the first coding unit 1200 in the horizontal direction, the third coding units 1216a, 1216b, 1216c, and 1216d and the third coding units 1226a, 1226b, 1226c, and 1226d split from the second coding units 1210a and 1210b and the second coding units 1220a and 1220b ultimately show the same shape of coding units split from the first coding unit 1200. In this way, by recursively splitting the coding units in different ways based on the split shape pattern information, even if the coding units are ultimately determined to be the same shape, the image decoding apparatus 100 may process a plurality of coding units in different orders.
[0177] Fig.13 A process of determining a depth of a coding unit when a shape and a size of a coding unit are changed when a coding unit is recursively split to determine a plurality of coding units according to an embodiment is illustrated.
[0178] According to an embodiment, the image decoding device 100 may determine the depth of the coding unit based on a predetermined criterion. For example, the predetermined criterion may be the length of the long side of the coding unit. When the length of the long side of the coding unit before being divided is 2n (n>0) times the length of the long side of the current coding unit after being divided, the image decoding device 100 may determine that the depth of the current coding unit is increased by n compared to the depth of the coding unit before being divided. In the following description, a coding unit with an increased depth is represented as a coding unit of a deeper depth.
[0179] Reference Fig.13 According to an embodiment, the image decoding apparatus 100 may determine a second coding unit 1302 and a third coding unit 1304 of a lower depth by dividing a square first coding unit 1300 based on block shape information indicating a square shape (for example, the block shape information may be represented as "0: SQUARE"). Assuming that the size of the square first coding unit 1300 is 2N×2N, the second coding unit 1302 determined by dividing the width and height of the first coding unit 1300 into 1 / 2 may have a size of N×N. In addition, the third coding unit 1304 determined by dividing the width and height of the second coding unit 1302 into 1 / 2 may have a size of N / 2×N / 2. In this case, the width and height of the third coding unit 1304 are 1 / 4 of the width and height of the first coding unit 1300. When the depth of the first coding unit 1300 is D, the depth of the second coding unit 1302 whose width and height are 1 / 2 of the width and height of the first coding unit 1300 may be D+1, and the depth of the third coding unit 1304 whose width and height are 1 / 4 of the width and height of the first coding unit 1300 may be D+2.
[0180] According to an embodiment, the image decoding device 100 can determine the second coding unit 1312 or 1322 of the lower depth, and the third coding unit 1314 or 1324 by dividing the non-square first coding unit 1310 or 1320 based on block shape information indicating a non-square shape (for example, the block shape information may be represented as "1: NS_VER" indicating a non-square shape in which the height is longer than the width, or may be represented as "2: NS_HOR" indicating a non-square shape in which the width is longer than the height).
[0181] The image decoding apparatus 100 may determine the second coding unit 1302, 1312, or 1322 by splitting at least one of the width and the height of the first coding unit 1310 having a size of N×2N. That is, the image decoding apparatus 100 may determine the second coding unit 1302 having a size of N×N or the second coding unit 1322 having a size of N×N / 2 by splitting the first coding unit 1310 in a horizontal direction, or may determine the second coding unit 1312 having a size of N / 2×N by splitting the first coding unit 1310 in horizontal and vertical directions.
[0182] According to an embodiment, the image decoding apparatus 100 may determine the second coding unit 1302, 1312, or 1322 by dividing at least one of the width and the height of the first coding unit 1320 having a size of 2N×N. That is, the image decoding apparatus 100 may determine the second coding unit 1302 having a size of N×N or the second coding unit 1312 having a size of N / 2×N by dividing the first coding unit 1320 in a vertical direction, or may determine the second coding unit 1322 having a size of N×N / 2 by dividing the first coding unit 1320 in horizontal and vertical directions.
[0183] According to an embodiment, the image decoding apparatus 100 may determine the third coding unit 1304, 1314, or 1324 by dividing at least one of the width and the height of the second coding unit 1302 having a size of N×N. That is, the image decoding apparatus 100 may determine the third coding unit 1304 having a size of N / 2×N / 2, the third coding unit 1314 having a size of N / 4×N / 2, or the third coding unit 1324 having a size of N / 2×N / 4 by dividing the second coding unit 1302 in the vertical direction and the horizontal direction.
[0184] According to an embodiment, the image decoding apparatus 100 may determine the third coding unit 1304, 1314, or 1324 by dividing at least one of the width and the height of the second coding unit 1312 having a size of N / 2×N. That is, the image decoding apparatus 100 may determine the third coding unit 1304 having a size of N / 2×N / 2 or the third coding unit 1324 having a size of N / 2×N / 4 by dividing the second coding unit 1312 in a horizontal direction, or may determine the third coding unit 1314 having a size of N / 4×N / 2 by dividing the second coding unit 1312 in a vertical direction and a horizontal direction.
[0185] According to an embodiment, the image decoding apparatus 100 may determine the third coding unit 1304, 1314, or 1324 by dividing at least one of the width and the height of the second coding unit 1322 having a size of N×N / 2. That is, the image decoding apparatus 100 may determine the third coding unit 1304 having a size of N / 2×N / 2 or the third coding unit 1314 having a size of N / 4×N / 2 by dividing the second coding unit 1322 in a vertical direction, or may determine the third coding unit 1324 having a size of N / 2×N / 4 by dividing the second coding unit 1322 in a vertical direction and a horizontal direction.
[0186] According to an embodiment, the image decoding apparatus 100 may split the square coding unit 1300, 1302, or 1304 in a horizontal direction or a vertical direction. For example, the image decoding apparatus 100 may determine the first coding unit 1310 having a size of N×2N by splitting the first coding unit 1300 having a size of 2N×2N in a vertical direction, or may determine the first coding unit 1320 having a size of 2N×N by splitting the first coding unit 1300 in a horizontal direction. According to an embodiment, when the depth is determined based on the length of the longest side of the coding unit, the depth of the coding unit determined by splitting the first coding unit 1300 having a size of 2N×2N in a horizontal direction or a vertical direction may be the same as the depth of the first coding unit 1300.
[0187] According to an embodiment, the width and height of the third coding unit 1314 or 1324 may be 1 / 4 of the width and height of the first coding unit 1310 or 1320. When the depth of the first coding unit 1310 or 1320 is D, the depth of the second coding unit 1312 or 1322 whose width and height are 1 / 2 of the width and height of the first coding unit 1310 or 1320 may be D+1, and the depth of the third coding unit 1314 or 1324 whose width and height are 1 / 4 of the width and height of the first coding unit 1310 or 1320 may be D+2.
[0188] Fig.14 Depth that may be determined based on the shape and size of a coding unit and a partial index (PID) for distinguishing coding units according to an embodiment are illustrated.
[0189] According to an embodiment, the image decoding apparatus 100 may determine second coding units of various shapes by dividing the square first coding unit 1400. Fig.14 , the image decoding apparatus 100 may determine the second coding units 1402a and 1402b, the second coding units 1404a and 1404b, and the second coding units 1406a, 1406b, 1406c, and 1406d by dividing the first coding unit 1400 in at least one of the vertical direction and the horizontal direction based on the division shape pattern information. That is, the image decoding apparatus 100 may determine the second coding units 1402a and 1402b, 1404a and 1404b, and 1406a, 1406b, 1406c, and 1406d based on the division shape pattern information of the first coding unit 1400.
[0190] According to an embodiment, the depths of the second coding units 1402a and 1402b, the second coding units 1404a and 1404b, and the second coding units 1406a, 1406b, 1406c, and 1406d determined based on the division shape pattern information of the square first coding unit 1400 may be determined based on the lengths of their long sides. For example, since the length of the side of the square first coding unit 1400 is equal to the length of the long side of the non-square second coding units 1402a and 1402b and 1404a and 1404b, the first coding unit 1400 and the non-square second coding units 1402a and 1402b and 1404a and 1404b may have the same depth, for example, D. However, when the image decoding device 100 divides the first coding unit 1400 into four square second coding units 1406a, 1406b, 1406c and 1406d based on the division shape pattern information, because the length of the side of the square second coding units 1406a, 1406b, 1406c and 1406d is 1 / 2 of the length of the side of the first coding unit 1400, the depth of the second coding units 1406a, 1406b, 1406c and 1406d can be D+1 which is 1 deeper than the depth D of the first coding unit 1400.
[0191] According to an embodiment, the image decoding apparatus 100 may determine a plurality of second coding units 1412a and 1412b and 1414a, 1414b, and 1414c by horizontally dividing the first coding unit 1410 whose height is longer than the width based on the division shape pattern information. According to an embodiment, the image decoding apparatus 100 may determine a plurality of second coding units 1422a and 1422b and 1424a, 1424b, and 1424c by vertically dividing the first coding unit 1420 whose width is longer than the height based on the division shape pattern information.
[0192] According to an embodiment, the depth of the second coding units 1412a and 1412b and 1414a, 1414b and 1414c, or 1422a and 1422b and 1424a, 1424b and 1424c determined based on the division shape pattern information of the non-square first coding unit 1410 or 1420 may be determined based on the length of their long sides. For example, since the length of the side of the square second coding units 1412a and 1412b is 1 / 2 of the length of the long side of the first coding unit 1410 having a non-square shape whose height is longer than the width, the depth of the square second coding units 1412a and 1412b is D+1 which is 1 deeper than the depth D of the non-square first coding unit 1410.
[0193] In addition, the image decoding apparatus 100 may divide the non-square first coding unit 1410 into an odd number of second coding units 1414a, 1414b, and 1414c based on the division shape pattern information. The odd number of second coding units 1414a, 1414b, and 1414c may include the non-square second coding units 1414a and 1414c and the square second coding unit 1414b. In this case, since the length of the long side of the non-square second coding units 1414a and 1414c and the length of the side of the square second coding unit 1414b are 1 / 2 of the length of the long side of the first coding unit 1410, the depth of the second coding units 1414a, 1414b, and 1414c may be D+1 which is 1 deeper than the depth D of the non-square first coding unit 1410. The image decoding apparatus 100 may determine the depths of coding units split from the first coding unit 1420 having a non-square shape having a width longer than a height by using the above-described method of determining the depths of coding units split from the first coding unit 1410 .
[0194] According to an embodiment, when the odd-numbered split coding units do not have equal sizes, the image decoding apparatus 100 may determine a PID for identifying the split coding units based on a size ratio between the coding units. Fig.14 , the width of the coding unit 1414b at the center position among the odd-numbered divided coding units 1414a, 1414b, and 1414c may be equal to the width of the other coding units 1414a and 1414c and its height may be twice the height of the other coding units 1414a and 1414c. That is, in this case, the coding unit 1414b at the center position may include two other coding units 1414a or 1414c. Therefore, when the PID of the coding unit 1414b at the center position is 1 based on the scanning order, the PID of the coding unit 1414c located at a position adjacent to the coding unit 1414b may increase by 2 and may thus be 3. That is, there may be discontinuity in the PID value. According to an embodiment, the image decoding apparatus 100 may determine whether the odd-numbered divided coding units do not have equal sizes based on whether there is discontinuity in the PID for identifying the divided coding units.
[0195] According to an embodiment, the image decoding apparatus 100 may determine whether to use a specific splitting method based on a PID value for identifying a plurality of coding units determined by splitting a current coding unit. Fig.14, the image decoding apparatus 100 may determine even-numbered coding units 1412a and 1412b or odd-numbered coding units 1414a, 1414b, and 1414c by dividing the first coding unit 1410 having a rectangular shape whose height is longer than its width. The image decoding apparatus 100 may use a PID indicating a corresponding coding unit in order to identify the corresponding coding unit. According to an embodiment, the PID may be obtained from a sample at a predetermined position of each coding unit (e.g., an upper left sample).
[0196] According to an embodiment, the image decoding apparatus 100 may determine a coding unit at a predetermined position among the divided coding units by using a PID for distinguishing coding units. According to an embodiment, when the division shape pattern information of the first coding unit 1410 having a rectangular shape having a height longer than a width indicates that the coding unit is divided into three coding units, the image decoding apparatus 100 may divide the first coding unit 1410 into three coding units 1414a, 1414b, and 1414c. The image decoding apparatus 100 may assign a PID to each of the three coding units 1414a, 1414b, and 1414c. The image decoding apparatus 100 may compare the PIDs of the odd-numbered divided coding units to determine a coding unit at a center position among the coding units. The image decoding apparatus 100 may determine the coding unit 1414b corresponding to the PID and the intermediate value among the PIDs of the coding units as the coding unit at the center position among the coding units determined by dividing the first coding unit 1410. According to an embodiment, when the divided coding units do not have equal sizes, the image decoding apparatus 100 may determine a PID for distinguishing the divided coding units based on a size ratio between the coding units. Fig.14, the width of the coding unit 1414b generated by dividing the first coding unit 1410 may be equal to the width of the other coding units 1414a and 1414c, and the height thereof may be twice the height of the other coding units 1414a and 1414c. In this case, when the PID of the coding unit 1414b at the center position is 1, the PID of the coding unit 1414c located at the adjacent position to the coding unit 1414b may increase by 2 and thus may be 3. When the PID is not uniformly increased as described above, the image decoding apparatus 100 may determine that the coding unit is divided into a plurality of coding units, wherein the plurality of coding units include coding units having sizes different from those of the other coding units. According to an embodiment, when the division shape pattern information indicates that the coding unit is divided into an odd number of coding units, the image decoding apparatus 100 may divide the current coding unit in such a manner that a coding unit at a predetermined position (e.g., a coding unit at a center position) among the odd number of coding units has a size different from that of the other coding units. In this case, the image decoding apparatus 100 may determine the coding units at the center position having different sizes by using the PIDs of the coding units. However, the PID of the coding unit at the predetermined position and the size or position are not limited to the above-mentioned examples, and various PIDs and various positions and sizes of the coding unit may be used.
[0197] According to an embodiment, the image decoding apparatus 100 may use a predetermined data unit in which the coding unit is recursively split.
[0198] Fig.15 It is illustrated that a plurality of coding units are determined based on a plurality of predetermined data units included in a picture according to an embodiment.
[0199] According to an embodiment, a predetermined data unit may be defined as a data unit for recursively dividing a coding unit starting by using division shape pattern information. That is, the predetermined data unit may correspond to a coding unit for determining a highest depth of a plurality of coding units divided from a current picture. In the following description, for ease of explanation, a predetermined data unit is referred to as a reference data unit.
[0200] According to an embodiment, the reference data unit may have a predetermined size and a predetermined shape. According to an embodiment, the reference data unit may include M×N samples. Here, M and N may be equal to each other and may be an integer represented as a power of 2. That is, the reference data unit may have a square shape or a non-square shape and may be divided into an integer number of coding units.
[0201] According to an embodiment, the image decoding apparatus 100 may divide the current picture into a plurality of reference data units. According to an embodiment, the image decoding apparatus 100 may divide the plurality of reference data units divided from the current picture by using the division shape pattern information of each reference data unit. The operation of dividing the reference data unit may correspond to the division operation using a quadtree structure.
[0202] According to an embodiment, the image decoding apparatus 100 may predetermine a minimum size allowed for a reference data unit included in the current picture. Therefore, the image decoding apparatus 100 may determine various reference data units having a size equal to or larger than the minimum size, and may determine one or more coding units by using the division shape pattern information with reference to the determined reference data unit.
[0203] Reference Fig.15 , the image decoding apparatus 100 may use a square reference coding unit 1500 or a non-square reference coding unit 1502. According to an embodiment, the shape and size of the reference coding unit may be determined based on various data units (e.g., a sequence, a picture, a slice, a slice segment, a tile, a tile group, a CTU, etc.) that can include one or more reference coding units.
[0204] According to an embodiment, for each of the various data units described above, the bitstream obtainer 110 of the image decoding apparatus 100 may obtain at least one of information about the shape of the reference coding unit and information about the size of the reference coding unit from the bitstream. Figure 3 The operation of dividing the current coding unit 300 describes the operation of dividing the square reference coding unit 1500 into one or more coding units, and the above has been about Figure 4 The operation of splitting the current coding unit 400 or 450 describes an operation of splitting the non-square reference coding unit 1502 into one or more coding units. Therefore, a detailed description thereof will not be provided here.
[0205] According to an embodiment, the image decoding apparatus 100 may determine the size and shape of the reference coding unit using a PID for identifying the size and shape of the reference coding unit according to some data units predetermined based on a predetermined condition. That is, the bitstream obtainer 110 may obtain only the PID for identifying the size and shape of the reference coding unit for each slice, slice segment, tile, tile group, or CTU from the bitstream, wherein the slice, slice segment, tile, tile group, or CTU is a data unit (e.g., a data unit having a size equal to or smaller than a slice) among various data units (e.g., a sequence, a picture, a slice, a slice segment, a tile, a tile group, a CTU, etc.) that satisfies a specific condition. The image decoding apparatus 100 may determine the size and shape of the reference data unit for each data unit that satisfies the predetermined condition by using the PID. When the reference coding unit shape information and the reference coding unit size information are obtained and used from the bitstream according to each data unit having a relatively small size, the efficiency of using the bitstream may not be high, and therefore, only the PID may be obtained and used instead of directly obtaining the reference coding unit shape information and the reference coding unit size information. In this case, at least one of the size and shape of the reference coding unit corresponding to the PID for identifying the size or shape of the reference coding unit may be predetermined. That is, the image decoding apparatus 100 may determine at least one of the size and shape of the reference coding unit included in the data unit serving as the unit for obtaining the PID by selecting at least one of the size and shape of the reference coding unit predetermined based on the PID.
[0206] According to an embodiment, the image decoding device 100 may use one or more reference coding units included in the CTU. That is, the CTU divided from the picture may include one or more reference coding units, and the coding unit may be determined by recursively dividing each reference coding unit. According to an embodiment, at least one of the width and height of the CTU may be an integer multiple of at least one of the width and height of the reference coding unit. According to an embodiment, the size of the reference coding unit may be obtained by dividing the CTU n times based on a quadtree structure. That is, according to various embodiments, the image decoding device 100 may determine the reference coding unit by dividing the CTU n times based on a quadtree structure, and the reference coding unit may be divided based on at least one of the block shape information and the division shape mode information.
[0207] According to an embodiment, the image decoding device 100 may obtain block shape information indicating the shape of the current coding unit or division shape pattern information indicating the division method of the current coding unit from the bitstream, and may use the obtained information. The division shape pattern information may be included in the bitstream associated with various data units. For example, the image decoding device 100 may use the division shape pattern information included in a sequence parameter set, a picture parameter set, a video parameter set, a slice header, a slice segment header, a parallel block header, or a parallel block group header. In addition, the image decoding device 100 may obtain a syntax element corresponding to the block shape information or the division shape pattern information from the bitstream for each CTU and each reference coding unit, and may use the obtained syntax element.
[0208] Hereinafter, a method for determining a division rule according to an embodiment of the present disclosure will be described in detail.
[0209] The image decoding apparatus 100 may determine a division rule of an image. The division rule may be predetermined between the image decoding apparatus 100 and the image encoding apparatus 200. The image decoding apparatus 100 may determine a division rule of an image based on information obtained from a bitstream. The image decoding apparatus 100 may determine a division rule based on information obtained from at least one of a sequence parameter set, a picture parameter set, a video parameter set, a slice header, a slice segment header, a parallel block header, and a parallel block group header. The image decoding apparatus 100 may determine a division rule differently according to a frame, a slice, a parallel block, a temporal layer, a CTU, or a coding unit.
[0210] The image decoding device 100 may determine the division rule based on the block shape of the coding unit. The block shape may include the size, shape, aspect ratio, and direction of the coding unit. The image encoding device 200 and the image decoding device 100 may predetermine the division rule based on the block shape of the coding unit. However, the embodiment is not limited thereto. The image decoding device 100 may determine the division rule of the image based on information obtained from the bit stream received from the image encoding device 200.
[0211] The shape of the coding unit may include a square and a non-square. When the width length and height length of the coding unit are the same, the image decoding apparatus 100 may determine that the shape of the coding unit is a square. In addition, when the width length and height length of the coding unit are different, the image decoding apparatus 100 may determine that the shape of the coding unit is a non-square.
[0212] The size of the coding unit may include various sizes such as 4×4, 8×4, 4×8, 8×8, 16×4, 16×8, and up to 256×256. The size of the coding unit may be classified based on the length of the long side, the length of the short side, or the area of the coding unit. The image decoding apparatus 100 may apply the same division rule to the coding units classified into the same group. For example, the image decoding apparatus 100 may classify the coding units having the same long side length as having the same size. In addition, the image decoding apparatus 100 may apply the same division rule to the coding units having the same long side length.
[0213] The aspect ratio of the coding unit may include 1:2, 2:1, 1:4, 4:1, 1:8, 8:1, 1:16, 16:1, 32:1, 1:32, etc. In addition, the direction of the coding unit may include a horizontal direction and a vertical direction. The horizontal direction may indicate a case where the width length of the coding unit is longer than the height length of the coding unit. The vertical direction may indicate a case where the width length of the coding unit is shorter than the height length of the coding unit.
[0214] The image decoding apparatus 100 may adaptively determine the division rule based on the size of the coding unit. The image decoding apparatus 100 may determine the allowable division shape mode differently based on the size of the coding unit. For example, the image decoding apparatus 100 may determine whether to allow division based on the size of the coding unit. The image decoding apparatus 100 may determine the division direction according to the size of the coding unit. The image decoding apparatus 100 may determine the allowable division type according to the size of the coding unit.
[0215] The division rule determined based on the size of the coding unit may be a division rule predetermined between the image encoding apparatus 200 and the image decoding apparatus 100. Also, the image decoding apparatus 100 may determine the division rule based on information obtained from a bitstream.
[0216] The image decoding apparatus 100 may adaptively determine a split rule based on a location of a coding unit. The image decoding apparatus 100 may adaptively determine a split rule based on a location of a coding unit in an image.
[0217] In addition, the image decoding apparatus 100 may determine a division rule so that the coding units generated via different division paths do not have the same block shape. However, the embodiment is not limited thereto, and the coding units generated via different division paths have the same block shape. The coding units generated via different division paths may have different decoding processing orders. Fig.12 The decoding process order is described, so its details are not provided again.
[0218] Fig.16It is shown that coding units are determined for each picture at the same time when a combination of shapes into which a coding unit may be divided is different for each picture according to an embodiment.
[0219] Reference Fig.16 , the image decoding apparatus 100 may determine the combination of division shapes into which the coding unit may be divided differently for each picture. For example, the image decoding apparatus 100 may decode the image by using a picture 1600 that may be divided into four coding units, a picture 1610 that may be divided into two or four coding units, and a picture 1620 that may be divided into two, three, or four coding units among one or more pictures included in the image. In order to divide the picture 1600 into a plurality of coding units, the image decoding apparatus 100 may use only the division shape information indicating division into four square coding units. In order to divide the picture 1610, the image decoding apparatus 100 may use only the division shape information indicating division into two or four coding units. In order to divide the picture 1620, the image decoding apparatus 100 may use only the division shape information indicating division into two, three, or four coding units. The combination of the above-mentioned division shapes is only an embodiment for describing the operation of the image decoding apparatus 100. Therefore, the combination of the above-mentioned division shapes should not be interpreted as being limited to the above-mentioned embodiments, but should be interpreted so that various types of combinations of division shapes can be used for predetermined data units.
[0220] According to an embodiment, the bitstream obtainer 110 of the image decoding device 100 may obtain a bitstream including an index, wherein the index indicates a combination of division shape information for each predetermined data unit (e.g., a sequence, a picture, a slice, a slice segment, a tile, or a tile group). For example, the bitstream obtainer 110 may obtain an index indicating a combination of division shape information from a sequence parameter set, a picture parameter set, a slice header, a tile header, or a tile group header. The bitstream obtainer 110 of the image decoding device 100 may determine a combination of division shapes into which a coding unit may be divided for each predetermined data unit by using the obtained index, and thus, for each predetermined data unit, a different combination of division shapes may be used.
[0221] Fig.17 Various shapes of coding units that may be determined based on division shape pattern information that may be represented as a binary code, according to an embodiment are illustrated.
[0222] According to an embodiment, the image decoding apparatus 100 may split the coding unit into various shapes by using the block shape information and the division shape pattern information obtained by the bitstream obtainer 110. The shapes into which the coding unit may be divided may correspond to various shapes including the shapes described according to the above embodiments.
[0223] Reference Fig.17, the image decoding apparatus 100 may divide the square coding unit in at least one of the horizontal direction and the vertical direction based on the division shape pattern information, and may divide the non-square coding unit in the horizontal direction or the vertical direction.
[0224] According to an embodiment, when the image decoding device 100 can divide a square coding unit into four square coding units in the horizontal direction and the vertical direction, the division shape indicated by the division shape pattern information for the square coding unit may correspond to four types. According to an embodiment, the division shape pattern information may be represented as a two-bit binary code, and each division shape may be assigned a binary code. For example, when the coding unit is not divided, the division shape pattern information may be represented as (00)b, when the coding unit is divided in the horizontal direction and the vertical direction, the division shape pattern information may be represented as (01)b, when the coding unit is divided in the horizontal direction, the division shape pattern information may be represented as (10)b, and when the coding unit is divided in the vertical direction, the division shape pattern information may be represented as (11)b.
[0225] According to an embodiment, when the image decoding apparatus 100 splits a non-square coding unit in a horizontal direction or a vertical direction, a split shape type that may be indicated by the split shape pattern information may be determined according to the number of coding units into which the non-square coding unit is split. Fig.17 , according to an embodiment, the image decoding device 100 may divide up to three coding units from a non-square coding unit. The image decoding device 100 may divide the coding unit into two coding units, and in this case, the division shape pattern information may be represented as (10)b. The image decoding device 100 may divide the coding unit into three coding units, and in this case, the division shape pattern information may be represented as (11)b. The image decoding device 100 may determine not to divide the coding unit, and in this case, the division shape pattern information may be represented as (0)b. That is, in order to use a binary code indicating the division shape pattern information, the image decoding device 100 may use variable length coding (VLC) instead of fixed length coding (FLC).
[0226] Reference Fig.17 According to an embodiment, the binary code of the division shape pattern information indicating that the coding unit is not divided may be represented as (0)b. When the binary code of the division shape pattern information indicating that the coding unit is not divided is configured as (00)b, even if there is no division shape pattern information configured as (01)b, all 2-bit binary codes of the division shape pattern information may have to be used. However, as Fig.17As shown, when three types of division shapes for non-square coding units are used, the image decoding apparatus 100 may determine not to divide the coding unit even by using a 1-bit binary code (0)b as the division shape pattern information. Therefore, the bitstream may be used efficiently. However, the division shape of the non-square coding unit indicated by the division shape pattern information should not be interpreted as being limited to Fig.17 Three types of partitioning shapes are shown, but should be interpreted as including various shapes that encompass the above-described embodiments.
[0227] Fig.18 Another shape of a coding unit that may be determined based on division shape pattern information that may be represented as a binary code according to an embodiment is illustrated.
[0228] Reference Fig.18 , the image decoding device 100 may divide the square coding unit in the horizontal direction or the vertical direction based on the division shape pattern information, and may divide the non-square coding unit in the horizontal direction or the vertical direction. That is, the division shape pattern information may indicate that the square coding unit is divided in one direction. In this case, the binary code of the division shape pattern information indicating that the square coding unit is not divided may be represented as (0)b. When the binary code of the division shape pattern information indicating that the coding unit is not divided is configured as (00)b, even if there is no division shape pattern information configured as (01)b, all 2-bit binary codes of the division shape pattern information may have to be used. However, as Fig.18 As shown in FIG. 1 , when three types of division shapes for a square coding unit are used, the image decoding apparatus 100 may determine not to divide the coding unit even by using a 1-bit binary code (0)b as the division shape pattern information. Therefore, the bitstream may be used efficiently. However, the division shape of the square coding unit indicated by the division shape pattern information should not be interpreted as being limited to Fig.18 Three types of partitioning shapes are shown, but should be interpreted as including various shapes including the above-described embodiments.
[0229] According to an embodiment, block shape information or division shape mode information may be represented by using a binary code, and the block shape information or the division shape mode information represented by using the binary code may be directly generated as a bit stream. In addition, the block shape information or the division shape mode information that may be represented as a binary code may not be directly generated as a bit stream, but may be used as a binary code input in context adaptive binary arithmetic coding (CABAC).
[0230] According to an embodiment, the image decoding device 100 is described as obtaining a process of syntax about block shape information or division shape mode information through CABAC. A bitstream including a binary code about syntax may be obtained by the bitstream obtainer 110. The image decoding device 100 may detect a syntax element indicating block shape information or division shape mode information by debinarizing a binary bit string included in the obtained bitstream. According to an embodiment, the image decoding device 100 may obtain a set of binary binary bit strings corresponding to syntax elements to be decoded, and may decode each binary bit by using probability information. In addition, the image decoding device 100 may repeat the process until the binary bit string composed of these decoded binary bits becomes the same as one of the previously obtained binary bit strings. The image decoding device 100 may determine the syntax element by performing debinarization on the binary bit string.
[0231] According to an embodiment, the image decoding apparatus 100 may determine the syntax for the binary bit string by performing a decoding process of adaptive binary arithmetic coding, and the image decoding apparatus 100 may update the probability model for the binary bit obtained by the bitstream obtainer 110. Fig.17 According to an embodiment, the bitstream obtainer 110 of the image decoding device 100 may obtain a bitstream indicating a binary code representing the division shape pattern information. The image decoding device 100 may determine the syntax for the division shape pattern information by using the obtained binary code of 1 bit or 2 bits. In order to determine the syntax for the division shape pattern information, the image decoding device 100 may update the probability for each bit in the 2-bit binary code. That is, according to whether the value of the first binary bit in the 2-bit binary code is 0 or 1, the image decoding device 100 may update the probability that the next binary bit has a value of 0 or 1 when the next binary bit is decoded.
[0232] According to an embodiment, in the process of determining the syntax, the image decoding device 100 may update the probability for the binary bit in the process of decoding the binary bit of the binary bit string for the syntax, and for predetermined bits in the binary bit string, the image decoding device 100 may not update the probability, and may determine that the probabilities are the same.
[0233] Reference Fig.17, in the process of determining the syntax by using a binary bit string representing the division shape mode information for the non-square coding unit, the image decoding apparatus 100 may determine the syntax for the division shape mode information by using one binary bit having a value of 0 when the non-square coding unit is not divided. That is, when the block shape information indicates that the current coding unit has a non-square shape, the first binary bit of the binary bit string for the division shape mode information may be 0 when the non-square coding unit is not divided, and may be 1 when the non-square coding unit is divided into two or three coding units. Therefore, the probability that the first binary bit of the binary bit string for the division shape mode information for the non-square coding unit is 0 may be 1 / 3, and the probability that the first binary bit of the binary bit string for the division shape mode information for the non-square coding unit is 1 may be 2 / 3. As described above, since the division shape mode information indicating that the non-square coding unit is not divided can be represented by using only a 1-bit binary bit string having a value of 0, the image decoding apparatus 100 may determine the syntax for the division shape mode information by determining whether the second binary bit is 0 or 1 only when the first binary bit of the division shape mode information is 1. According to an embodiment, when the first binary bit for the division shape pattern information is 1, the image decoding apparatus 100 may consider that the probability that the second binary bit is 0 and the probability that the second binary bit is 1 are the same as each other, and may decode the binary bit.
[0234] According to an embodiment, in the process of determining the binary bit of the binary bit string for the division shape pattern information, the image decoding apparatus 100 may use various probabilities for each binary bit. According to an embodiment, the image decoding apparatus 100 may determine the probability of the binary bit for the division shape pattern information differently according to the direction of the non-square block. According to an embodiment, the image decoding apparatus 100 may determine the probability of the binary bit for the division shape pattern information differently according to the width or length of the longer side of the current coding unit. According to an embodiment, the image decoding apparatus 100 may determine the probability of the binary bit for the division shape pattern information differently according to at least one of the shape and the length of the longer side of the current coding unit.
[0235] According to an embodiment, the image decoding apparatus 100 may determine that the probability of the binary bits for the division shape pattern information is the same for coding units having a size equal to or greater than a predetermined size. For example, the image decoding apparatus 100 may determine that the probability of the binary bits for the division shape pattern information is the same for coding units having a size greater than or equal to 64 samples based on the length of the longer side of the coding unit.
[0236] According to an embodiment, the image decoding apparatus 100 may determine initial probabilities of bins composed in a bin string of the division shape pattern information based on a slice type (eg, I slice, P slice, or B slice).
[0237] Fig.19 It is a block diagram of an image encoding and decoding system.
[0238] The encoder 1900 of the image encoding and decoding system transmits an encoded bitstream of an image, and the decoder 1950 outputs a reconstructed image by receiving and decoding the bitstream. Here, the decoder 1950 may have a configuration similar to that of the image decoding apparatus 100.
[0239] In the encoding end 1900, when the prediction mode of the current block is the inter-frame prediction mode, the inter-frame prediction encoder 1905 generates motion information of the current block indicating the reference block of the reference picture that is temporally adjacent to the current picture. The inter-frame prediction encoder 1905 can determine the prediction sample of the current block by using the sample of the reference block. The intra-frame prediction encoder 1910 can determine the intra-frame prediction information indicating the direction in which the neighboring samples similar to the current block are located or the method of determining the prediction sample, so that the prediction sample of the current block can be determined by using the neighboring samples that are spatially adjacent to the current block.
[0240] The inter-frame prediction encoder 1905 may determine reference samples to be used for prediction of the current block from among initial reconstructed samples stored in a decoded picture buffer (DPB) 1948 .
[0241] The transformer 1920 outputs a transform coefficient by performing a transform on a residual sample value obtained by subtracting a predicted sample generated by the inter prediction encoder 1905 or the intra prediction encoder 1910 from an original sample of the current block. The quantizer 1925 quantizes the transform coefficient output from the transformer 1920 to output a quantized transform coefficient. The entropy encoder 1930 may encode the quantized transform coefficient into a residual syntax element including a level value, and may output the residual syntax element in a bitstream form.
[0242] The quantized transform coefficient output by the quantizer 1925 may be dequantized and inversely transformed by the dequantizer 1933 and the inverse transformer 1935 , and thus, a residual sample value may be generated again.
[0243] The adder 1915 may add the residual sample value and the predicted sample value to output a reconstructed sample value. The post-reconstruction filter 1940 may perform post-reconstruction filtering on the reconstructed sample. The reconstructed sample value updated by the post-reconstruction filtering may be used as a reference sample value for intra prediction to be performed by the intra predictor 1910. The post-reconstruction filter 1940 may perform Hadamard transform domain filtering or bilateral filtering on the reconstructed sample value.
[0244] The in-loop filter 1945 may perform at least one of deblocking filtering and adaptive loop filtering on the reconstructed samples updated by the post-reconstruction filtering. The reconstructed sample values updated by the filtering of the in-loop filter 1945 may be stored in a decoded picture buffer (DPB) 1948 and may be used as reference sample values for inter-frame prediction to be performed by the inter-frame predictor 1905.
[0245] The entropy decoder 1955 of the decoder 1950 may perform entropy decoding on the received bitstream and may parse the residual syntax element including the level value. The quantized transform coefficient may be reconstructed from the residual syntax element. The dequantizer 1960 may output the transform coefficient by performing dequantization on the quantized transform coefficient, and the inverse transformer 1965 may output the residual sample value by performing inverse transformation on the transform coefficient.
[0246] The inter-frame predictor 1970 of the decoder 1950 may determine a reference picture temporally adjacent to the current picture by using the motion information of the current block parsed by the entropy decoder 1955, and may determine a reference block in the reference picture. The inter-frame prediction encoder 1970 may determine a prediction sample of the current block by using a sample of the reference block. The intra-frame predictor 1975 of the decoder 1950 may determine a reference sample spatially adjacent to the current block by using the intra-frame prediction information using the motion information of the current block parsed by the entropy decoder 1955, and may determine a prediction sample of the current block by using the determined neighboring samples.
[0247] The inter predictor 1970 may determine reference samples to be used for prediction of the current block from among initial reconstructed samples stored in the DPB 1990 .
[0248] The adder 1995 of the decoder 1950 may output the reconstructed sample value of the current block by adding the residual sample value to the predicted sample value. The post-reconstruction filter 1980 of the decoder 1950 may perform Hadamard transform domain filtering or bilateral filtering on the reconstructed sample value. The reconstructed sample value updated by filtering of the post-reconstruction filter 1980 may be used as a reference sample value for intra prediction to be performed by the intra predictor 1975.
[0249] The in-loop filter 1985 of the decoder 1950 may perform at least one of deblocking filtering and adaptive loop filtering on the reconstructed samples updated by the post-reconstruction filtering. The reconstructed sample values updated by the filtering of the in-loop filter 1985 may be stored in the DPB 1990 and may be used as reference sample values for inter-frame prediction to be performed by the inter-frame predictor 1970.
[0250] The above-mentioned various embodiments describe operations related to the image decoding method performed by the image decoding apparatus 100. Hereinafter, operations of the image encoding apparatus 200 that performs an image encoding method corresponding to an inverse process of the image decoding method are described according to various embodiments.
[0251] Figure 2 is a block diagram of an image encoding apparatus 200 that may encode an image based on at least one of block shape information and division shape mode information according to an embodiment.
[0252] The image encoding apparatus 200 may include an encoder 220 and a bitstream generator 210. The encoder 220 may receive an input image and encode the input image. The encoder 220 may obtain at least one syntax element by encoding the input image. The syntax element may include at least one of a skip flag, a prediction mode, a motion vector difference, a motion vector prediction method (or index), a transform quantization coefficient, a coding block mode, a coding block flag, an intra prediction mode, a direct flag, a merge flag, an incremental QP, a reference index, a prediction direction, and a transform index. The encoder 220 may determine a context model based on block shape information including at least one of a shape, a direction, an aspect ratio, or a size of a coding unit.
[0253] The bitstream generator 210 may generate a bitstream based on the encoded input image. For example, the bitstream generator 210 may generate a bitstream by entropy encoding syntax elements based on a context model. In addition, the image encoding apparatus 200 may transmit the bitstream to the image decoding apparatus 100.
[0254] According to an embodiment, the encoder 220 of the image encoding apparatus 200 may determine the shape of the coding unit. For example, the coding unit may have a square shape or a non-square shape, and information indicating the shape may be included in the block shape information.
[0255] According to an embodiment, the encoder 220 may determine which shape the coding unit will be divided into. The encoder 220 may determine the shape of at least one coding unit included in the coding unit, and the bitstream generator 210 may generate a bitstream including division shape pattern information including information about the shape of the coding unit.
[0256] According to an embodiment, the encoder 220 may determine whether to divide the coding unit. When the encoder 220 determines to include only one coding unit in the coding unit or not to divide the coding unit, the bitstream generator 210 may generate a bitstream including division shape pattern information indicating that the coding unit will not be divided. In addition, the encoder 220 may divide the coding unit into a plurality of coding units, and the bitstream generator 210 may generate a bitstream including division shape pattern information indicating that the coding unit will be divided into a plurality of coding units.
[0257] According to an embodiment, information indicating the number of coding units into which the coding unit will be divided or the direction in which the coding unit will be divided may be included in the division shape pattern information. For example, the division shape pattern information may indicate that the coding unit is divided in at least one of the vertical direction and the horizontal direction, or may indicate that the coding unit is not divided.
[0258] The image encoding apparatus 200 may determine information for a division shape mode based on a division shape mode of a coding unit. The image encoding apparatus 200 may determine a context model based on at least one of a shape, a direction, an aspect ratio, or a size of a coding unit. In addition, the image encoding apparatus 200 may generate information for a division shape mode for dividing a coding unit as a bitstream based on the context model.
[0259] In order to determine the context model, the image encoding apparatus 200 may obtain an arrangement for corresponding between at least one of the shape, direction, aspect ratio, or size of the coding unit and an index about the context model. In this arrangement, the image encoding apparatus 200 may obtain an index about the context model based on at least one of the shape, direction, aspect ratio, or size of the coding unit. The image encoding apparatus 200 may determine the context model based on the index about the context model.
[0260] In order to determine the context model, the image encoding apparatus 200 may further determine the context model based on block shape information including at least one of a shape, a direction, an aspect ratio, or a size of a neighboring coding unit adjacent to the coding unit. In addition, the neighboring coding unit may include at least one of coding units located at the lower left, left, upper left, above, upper right, right, and lower right of the coding unit.
[0261] In addition, the image encoding apparatus 200 may compare the length of the width of the upper adjacent coding unit with the length of the width of the coding unit in order to determine the context model. In addition, the image encoding apparatus 200 may compare the length of the height of the left adjacent coding unit and the right adjacent coding unit with the length of the height of the coding unit. In addition, the image encoding apparatus 200 may determine the context model based on the result of the comparison.
[0262] The operation of the image encoding device 200 includes the following steps: Figures 3 to 19 The operation of the image decoding device 100 described above is similar to the configuration, and therefore, a detailed description thereof is omitted.
[0263] In the present disclosure, "(coding) tool" means an element technology or algorithm for encoding and decoding an image. An image encoding device may encode an image based on a (coding) tool selected from various (coding) tools, and an image decoding device may identify the (coding) tool selected by the image encoding device and decode the image based on the identified (coding) tool. In the following, the terms "tool" or "coding tool" may be used interchangeably, but a person of ordinary skill in the art will understand that the interchangeably used terms have the same meaning.
[0264] In detail, (coding) tools may include tools related to image division methods (partitioning), tools for (intra-frame / inter-frame) prediction encoding / prediction decoding, tools for (de)quantization, tools for (inverse) transformation, tools for context encoding, tools for filtering, tools for picture management, tools related to visual quality, etc.
[0265] For example, tools for predictive encoding / predictive decoding may include an inter-frame prediction tool, an intra-frame prediction tool, a skip tool, a direct tool, an advanced motion vector prediction (AMVP) tool, an affine tool, a dual-optical or bidirectional optical (BIO) flow tool, a decoder-side motion vector correction (DMVR) tool, a brightness compensation (IC) tool, an overlapped block motion compensation (OBMC) tool, an adaptive motion vector resolution (AMVR) tool, a history-based motion vector prediction (HMVP) tool, a merge with motion vector difference (MMVD) tool, an intra-frame block copy (IBC) tool, an inter-frame prediction correction (IPR) tool, and the like.
[0266] In addition, tools for transform / inverse transform may include a multiple transform selection (MTS) tool, a non-separable secondary transform (NSST) tool, a rotation transform (ROT) tool, a discrete sine transform (DST) tool, a transform skip tool, a sub-block transform (SBT) tool, a discrete cosine transform (DCT) tool, and the like.
[0267] In addition, the filtering tools may include a deblocking tool, a sample adaptive offset (SAO) tool, a bilateral filter (BLF) tool, a Hadamard transform domain filtering (HTDF) tool, an adaptive loop filter (ALF) tool, and the like.
[0268] Visual quality related tools may include tools for supporting high dynamic range (HDR) images, etc. HDR related tools may include dynamic range adaptation (DRA) tools, luminance mapping and chroma scaling (LMCS) tools, etc.
[0269] Generally, a large number of tools are defined in a codec standard, and depending on the field in which the codec is applied, there are cases where it is appropriate to use only some of these tools. For this reason, when a standard is established, a set of tools for a specific application is defined as a profile.
[0270] Information about the profile to which the bitstream complies may be signaled to the decoder through a sequence parameter set or the like, and the decoder may identify whether to decode the corresponding bitstream through its capabilities based on the profile information extracted from the sequence parameter set or the like.
[0271] Here, in the case of a main profile (however, it is not limited thereto, and the profile may be one of various profiles other than the baseline profile), various tools may be used. However, not all tools must be enabled, and therefore, tools may be enabled or disabled by various tool enable flags. Here, the image encoding device may have to consider a large number of cases of activation or inactivation of various tools, and therefore, hardware complexity may be increased. Similarly, the image decoding device may recognize activation or inactivation of various tools, and therefore hardware complexity based on the operation may be increased.
[0272] According to an embodiment of the present disclosure, when an operation in a case where a tool enable flag indicates activation and an operation in a case where the tool enable flag indicates inactivation are incompatible with each other, the image encoding device may always set the corresponding tool enable flag in the main configuration file to indicate activation, so as to reduce the number of cases regarding activation or inactivation of some tools. Therefore, the hardware complexity can be significantly reduced. In addition, for the image decoding device, the number of cases regarding activation or inactivation of some tools is also reduced. Therefore, the hardware complexity for identifying the activation or inactivation of a tool and operating based on the identification can be reduced.
[0273] When a flag indicating inactivation of a corresponding tool is received through a bitstream, and when the image decoding device complies with the main profile, when the value of the flag received from the bitstream indicates inactivation, the image decoding device may recognize that the consistency requirement of the main profile is not met, and thus, may recognize that the corresponding bitstream is not decoded by the image decoding device. Therefore, the image decoding device may not perform decoding on the image sequence.
[0274] In addition, according to an embodiment of the present invention, the enable flag of a representative tool can be obtained from a bitstream by considering the relationship between the tools, and the tool enable flag of a tool having a dependency relationship with the representative tool can be obtained based on the value of the tool enable flag of the representative tool, and therefore, the bits about the tool enable flag can be reduced according to the situation. That is, when all tool enable flags of various tools are obtained from a bitstream, a flag corresponding to the number of tools may have to be included in the bitstream. However, according to an embodiment of the present invention, when the value of the tool enable flag of a representative tool indicates inactivation, the tool enable flag of a tool having a dependency relationship with the representative tool may not be obtained from the bitstream, and the corresponding tool may be identified as not enabled, so that a reduction in bits can be achieved. That is, the tools can be grouped (classified) by considering the dependency relationship, and the tool enable flag of the tool representing the group (category) of the corresponding tool can be first included in the bitstream, and for the remaining tools, the tool enable flag can be obtained from the bitstream based on the value of the tool enable flag of the representative tool, or the value of the tool enable flag can be derived without obtaining it.
[0275] Hereinafter, a method of encoding an image and a method of decoding an image based on a tool enable flag are described.
[0276] Fig. 20 is a block diagram of components of an image decoding apparatus 2000 according to an embodiment.
[0277] Reference Fig. 20 , the image decoding device 2000 may include an obtainer 2010 and a decoder 2030.
[0278] Fig. 20 The obtainer 2010 shown in FIG. 2 may correspond to Figure 1 The bitstream obtainer 110 shown in FIG. 1 and the decoder 2030 may correspond to Figure 1 The decoder 120 shown in FIG. In addition, the obtainer 2010 may correspond to Fig.19 The entropy decoder 1955 shown in the figure, and the decoder 2030 may correspond to an inverse quantizer 1960, an inverse transformer 1965, an inter-frame predictor 1970, an intra-frame predictor 1975, a post-reconstruction filter 1980 and an in-loop filter 1985.
[0279] The obtainer 2010 and the decoder 2030 according to the embodiment may be implemented with at least one processor. The image decoding apparatus 2000 may include one or more memories (not shown) storing input and output data of the obtainer 2010 and the decoder 2030. In addition, the image decoding apparatus 2000 may include a memory controller (not shown) controlling data input and output of the memory (not shown).
[0280] The obtainer 2010 may obtain a bitstream generated as a result of encoding an image. The obtainer 2010 may obtain syntax elements for reconstructing the image from the bitstream. Binary values corresponding to the syntax elements may be included in the bitstream according to the hierarchical structure of the image. The obtainer 2010 may obtain the syntax elements by entropy decoding the binary values included in the bitstream.
[0281] Fig.21 FIG. 2 is a diagram showing an example of the structure of a bit stream 2100 generated based on the hierarchical structure of an image.
[0282] Reference Fig.21 , the bitstream 2100 may include a sequence parameter set 2110 , a picture parameter set 2120 , a slice header 2130 , and slice data 2140 .
[0283] Each of the sequence parameter set 2110, the picture parameter set 2120, the slice header 2130, and the slice data 2140 includes a syntax element used in each layer according to the hierarchical structure of an image.
[0284] In detail, the sequence parameter set 2110 includes syntax elements for an image sequence including one or more images.
[0285] The picture parameter set 2120 includes syntax elements used in one image and may refer to the sequence parameter set 2110 .
[0286] The slice header 2130 includes syntax elements used in slices determined in an image, and may refer to the picture parameter set 2120 and the sequence parameter set 2110 .
[0287] Also, the slice data 2140 includes syntax elements used in blocks determined in the slice, and may refer to the slice header 2130 , the picture parameter set 2120 , and the sequence parameter set 2110 .
[0288] According to an embodiment, the slice data 2140 may include syntax elements related to a CTU determined in a slice, syntax elements related to a coding unit (CU), syntax elements related to a transform unit (TU), syntax elements related to a prediction block and a residual block, and the like.
[0289] Fig.21 The structure of the bitstream 2100 shown is only an example. That is, one or more of the sequence parameter set 2110, the picture parameter set 2120, the slice header 2130, and the slice data 2140 may not be included in the bitstream 2100, and a parameter set not shown (e.g., a video parameter set, a decoder parameter set (DPS), or an adaptation parameter set (APS)) may be included in the bitstream 2100.
[0290] The decoder 2030 may reconstruct (decode) an image by using syntax elements extracted from a bitstream. The decoder 2030 may identify a tool for (or enable) encoding an image sequence from a sequence parameter set, and may reconstruct a slice determined in the image sequence by using syntax elements extracted from slice data based on the identified tool. That a predetermined tool is used (enabled) to encode an image sequence means that a predetermined tool is applied to division of coding units determined in an image included in the image sequence, predictive encoding of coding units, transformation of residual blocks, quantization of residual blocks, filtering of reconstructed blocks, picture management, and the like. When a predetermined tool is used for a first coding unit but not for a second coding unit, it may be determined that the predetermined tool is used to encode an image sequence including the first coding unit and the second coding unit.
[0291] The obtainer 2010 may obtain a first encoding tool enable flag of a first encoding tool from a bitstream, the first encoding tool enable flag indicating whether the first encoding tool is applicable to an image sequence. Here, the first encoding tool enable flag may be obtained from a sequence parameter set. When the tool enable flag for an image sequence indicates activation, a lower tool enable flag may be additionally obtained from a lower data unit (e.g., a coding unit) of the image sequence. According to the value of the lower tool enable flag, it may be identified whether the actual encoding tool is used for the lower data unit. For example, when the tool enable flag indicating whether an affine tool or an MMVD tool is applicable to an image sequence indicates activation, a lower tool enable flag may be additionally obtained at the level of the coding unit.
[0292] However, it is not limited thereto, and the tool enable flag for the image sequence may indicate that a predetermined coding tool is actually used for the image sequence. That is, the tool enable flag is not limited to simply indicating whether a predetermined coding tool is applicable to an image sequence, and may indicate whether a predetermined coding tool is actually used for an image sequence. Based on the value of sps_admvp_flag to be described below, an interpolation filter for performing motion compensation may be identified, and in this case, the relevant coding tool may be actually used in the image sequence. The obtainer 2010 may obtain second coding tool enable flag information of at least one second coding tool related to the first coding tool from the bitstream based on the obtained first coding tool enable flag information. Here, similar to the first coding tool enable flag, the second coding tool enable flag may be obtained from the sequence parameter set. The second coding tool may be a coding tool that is dependent on the first coding tool, and may be included in a coding tool group related to the first coding tool.
[0293] Here, multiple pieces of encoding tool enable flag information may be pre-classified (or categorized) into multiple encoding tool groups based on the encoding operation corresponding to the encoding tool. Thereafter, representative enable flags (or platform-level flags) from each classified tool group (category) may be pre-identified. The first encoding tool enable flag may be one of the representative enable flags of the tool group, and the second encoding tool enable flag may be one of the remaining enable flags of the tool group except the representative enable flag. The second encoding tool enable flag may be obtained sequentially from the bitstream in alphabetical order of the name of each flag.
[0294] For example, the multiple categories may include the following categories: partition tools, inter-frame tools, intra-frame tools, context modeling and context coding tools, transform tools, quantization tools, filtering tools, and picture buffer management / visual quality tools.
[0295] For a predetermined category, when the platform-level flag is turned off, all enabled flags for individual tools in the corresponding category may be identified as being turned off. Figures 22a to 23 Embodiments related thereto are described.
[0296] According to an embodiment, an enable flag for all tools may be signaled first, and after the enable flag for all tools is signaled, other tool-related information may be signaled. However, it is not limited thereto, and when a predetermined tool is based on other tool-related information previously signaled, a tool enable flag for a corresponding tool may be signaled after the other tool-related information previously signaled is signaled.
[0297] According to an embodiment, when the current tool enable flag or tool information depends on a previously encoded tool or category, the current tool or category of the tool may be signaled after the previously encoded tool / category is signaled.
[0298] According to an embodiment, the order in which the categories are signaled may be rearranged in a predetermined order. For example, the categories may be rearranged according to the order in which the categories are used by a decoder.
[0299] According to an embodiment, in each category, each tool enable flag may be signaled according to an order other than the alphabetical order used for signaling tool enable flags. For example, the tools in each category may generally be signaled according to an order with respect to how often the tools are used.
[0300] The first encoding tool enabling flag information may be enabling flag information about an encoding tool related to at least one of an advanced motion signaling and interpolation (AMIS) method and an advanced motion vector prediction (ADMVP) method.
[0301] Here, the enable flag information about the AMIS method may be sps_amis_flag, and the enable flag information about the ADMVP method may be sps_admvp_flag. However, when the enable flag information about one of the two encoding tools is identified, the enable flag information of the other encoding tool may be the second encoding tool enable flag information. Fig.22a and Figure 22b Describe this aspect.
[0302] It is not limited to this, and the first encoding tool enabling flag information may be flag information including both of the two methods. That is, the first encoding tool enabling flag information may be a flag that combines the above-mentioned sps_amis_flag and sps_admvp_flag (here, the name of the flag may be one of the above-mentioned flags or may correspond to the function of the combination). For example, the name of the enabling flag that combines sps_amis_flag and sps_admvp_flag may be sps_admvp_flag, but the corresponding enabling flag may indicate that each flag is activated before the combination. That is, when the value of the combined enabling flag indicates activation, it may indicate that all tools indicated by the flag are enabled, and when the value of the combined enabling flag indicates inactivation, it may indicate that all tools indicated by the flag are not enabled. By combining flags, bits can be reduced, and the complexity of the hardware of the encoder and decoder can be reduced. The following will refer to Fig.23 Describe this aspect.
[0303] When the AMIS method is enabled, advanced signaling and interpolation of motion information may be performed in inter-prediction, and when the AMIS method is not enabled, simple signaling and interpolation of motion information may be performed.
[0304] For example, when the AMIS method is not enabled, for skip mode, simple skip mode may be used as a skip mode of a baseline profile. A skip candidate index may be signaled for each reference picture list in simple skip mode. Here, the predetermined position of the spatial and temporal neighboring blocks may be indicated according to the value of each skip candidate index. For example, when the value of the skip candidate index is 0, it indicates the left block, and when the value of the skip candidate index is 1, it indicates the upper block. When the value of the skip candidate index is 2, it indicates the upper right block, and when the value of the skip candidate index is 3, it indicates the temporal co-location block. However, it is not limited to this. When there is no motion vector corresponding to the corresponding index value, the value of the motion vector may be set to (1, 1), but is not limited to this. In simple skip mode, residuals may not be sent.
[0305] A simple interpolation method may be used. The interpolation filter used in this case may have coefficients defined at every 1 / 8 pixel or 1 / 4 pixel position for the luminance component or the chrominance component. For example, for the luminance component, the coefficients of the 6-tap interpolation filter may be defined in 1 / 4 pixel units, and for the chrominance component, the coefficients of the 4-tap interpolation filter may be defined in 1 / 8 pixel units, but are not limited thereto.
[0306] When the AMIS method is enabled, for the skip mode, the advanced skip mode can be used as the skip mode of the main profile. Only one skip candidate index can be signaled in the skip mode of the main profile. Here, compared with the merge mode of the main profile (described below), in the skip mode of the main profile, residual information may not be signaled. An advanced interpolation method may be used. The interpolation filter used in this case may have coefficients defined at every 1 / 8 pixel or 1 / 4 pixel position for the luminance component or the chrominance component.
[0307] The AMVP method may be a motion vector prediction method using an advanced merge mode, or the like.
[0308] When the AMVP method is enabled, an advanced motion vector prediction method (advanced merge mode, etc.) may be performed in inter prediction, and when the AMVP method is not enabled, a simple motion vector prediction method may be performed.
[0309] For example, when the AMVP method is not enabled, a direct mode may be used. As a direct mode, a temporal direct mode or a spatial direct mode used in an H.264 codec or an H.263 codec may be used. The temporal direct mode may be a mode in which a motion vector of a current block is predicted by acquiring a motion vector of a co-located block of the current block, and the spatial direct mode may be a mode in which a motion vector of a current block is predicted according to a predetermined rule by using a motion vector of a neighboring block of the current block, the neighboring block being at a predetermined position. A simple AMVP mode may be used. The simple AMVP mode may be a mode in which a prediction direction (including bidirectional prediction and unidirectional prediction), a reference picture index of each reference picture list, and a motion vector difference are signaled. Bidirectional prediction may represent a prediction method based on both reference picture list 0 and reference picture list 1, and unidirectional prediction may represent a prediction method based on one of reference picture list 0 and reference picture list 1.
[0310] That is, in the case of simple AMVP, after determining the prediction direction, the same motion vector prediction as that used in the simple skip mode may be performed (i.e., for each reference picture list, a motion vector predictor (MVP) index similar to the skip candidate index is signaled). In addition, in the case of advanced AMVP, no additional index signaling for MVP may be performed, and MVP may be obtained based on a motion vector in a position of a neighboring block corresponding to a motion vector resolution. In the case of bidirectional prediction, the motion vector difference of a unidirectional reference picture list may not be signaled.
[0311] Simple AMVP and Advanced AMVP may be similar to each other in configuration, a motion vector difference and a reference picture index may be additionally signaled for each reference picture list, and MVP may be obtained for each list.
[0312] When the advanced motion prediction method is enabled, the merge mode (advanced merge mode) of the main profile can be used. The advanced merge mode can be a merge mode similar to the HEVC (H.265) codec, and can be a mode in which, based on the motion information of neighboring candidate blocks (temporal neighboring blocks or spatial neighboring blocks), multiple merge candidates are identified, one of the multiple merge candidates is identified by using a merge index sent by a signal, and motion information (motion vector, reference picture list, reference picture index, etc.) is identified. Here, unlike the skip mode, the residual can be sent additionally by signaling. The normal (or advanced) AMVP mode can be used. Unlike the simple AMVP, the normal AMVP mode may exclude the bidirectional prediction direction in the prediction direction. That is, in order to save external memory bandwidth requirements, bidirectional prediction directions may not be allowed in 8×4 blocks or 4×8 blocks.
[0313] The obtainer 2010 may obtain motion information in at least one coding unit included in a frame of an image sequence from a bitstream according to a condition based on a value of a first encoding tool enable flag (sps_amis_flag or sps_admvp_flag, and a flag combining the two flags). Here, the motion information may include information about a motion vector, a reference picture list, and a reference picture index, and the form of the motion information may be an index indicating one of motion information candidates identified in a predetermined mode.
[0314] The decoder 2030 may identify the interpolation filter according to the value of the first encoding tool flag. The decoder 2030 may perform inter prediction including motion vector prediction and interpolation on at least one coding unit according to the motion information and the interpolation filter.
[0315] According to an embodiment, the first coding tool enabling flag information may be enabling flag information for a coding tool regarding an extended intra prediction mode method, and the second coding tool enabling flag information may be enabling flag information for a coding tool regarding an intra block copy method. Here, the extended intra prediction mode may support 33 intra prediction modes, and when the coding tool regarding the extended intra prediction mode method is not enabled, a simple intra prediction mode method may be used. The simple intra prediction mode method may support 5 intra prediction modes. Specifically, the extended intra prediction mode method may use an intra prediction mode (such as a bilinear mode or a planar mode). The simple intra prediction mode method may use reference pixel value information in integer pixel units of neighboring blocks. However, the extended intra prediction mode method may use reference pixel value information in integer pixel units or fractional pixel units of neighboring blocks. The intra block copy method is a mode of completely copying a previously reconstructed block in the current picture, a mode in which blocks other than the current block may also be used, and a mode for intra prediction of screen content.
[0316] According to an embodiment, the first encoding tool enable flag information may be enable flag information for an encoding tool regarding a context modeling and initialization processing method, and the second encoding tool enable flag information may be enable flag information for an encoding tool regarding an advanced residual encoding method. When the enable flag information for the encoding tool regarding the context modeling and initialization processing method indicates inactivation, the context modeling method cannot be used, and the initial values of all contexts may be set to 1 / 2. When the enable flag information for the encoding tool regarding the context modeling and initialization processing method indicates activation, the context modeling method may be used, and the initial value of the context may be determined according to the slice type and the quantization parameter. When the enable flag information for the encoding tool regarding the advanced residual encoding method indicates inactivation, coefficient encoding (residual encoding) based on run length may be performed, and when the enable flag information for the encoding tool regarding the advanced residual encoding method indicates activation, an advanced coefficient encoding method may be used. The advanced coefficient encoding method may be an encoding method performed by dividing each significant coefficient into various levels for each subblock.
[0317] The first coding tool enabling flag information may be enabling flag information for a coding tool regarding an advanced quantization and transform method, and the second coding tool enabling flag information may be enabling flag information for a coding tool regarding at least one of an adaptive transform selection method and an advanced incremental quantization parameter signaling method. Here, the advanced quantization and transform method may be a quantization and transform method used in a main profile. When the coding tool regarding the advanced quantization and transform method is not enabled, a simple quantization and transform method may be used. The simple quantization and transform method may be a quantization and transform method used in a baseline profile. The adaptive transform selection method may be a method of selecting a transform kernel in a horizontal direction or a vertical direction from a plurality of transform kernels.
[0318] The difference between the simple quantization and transform method and the advanced quantization and transform method may be 1) the intermediate bit depth when performing (inverse) transform, and 2) the quantization parameter (QP). In the case of the advanced method, the intermediate bit depth may be at most 16 bits. However, in the case of the simple method, the intermediate bit depth may be 16 bits or more. Here, the intermediate bit depth may refer to the bit depth of the coefficients generated in the intermediate process and stored in the memory when the (inverse) transform is performed.
[0319] Compared to the simple quantization and transform method, the advanced quantization and transform method may have high efficiency in terms of storage during (inverse) transform. In addition, the final chroma QP corresponding to (mapped to) an initial chroma QP having a value greater than a predetermined value (for example, the predetermined value may be 30, but is not limited thereto) may be changed. That is, in the case of the advanced quantization and transform method, as the value of the initial chroma QP increases by a predetermined value, the increase amount of the value of the final chroma QP may increase, while in the case of the simple quantization and transform method, as the value of the initial chroma QP increases by a predetermined value, the increase amount of the value of the final chroma QP may decrease.
[0320] The advanced delta QP signaling method is a method of signaling delta QP based on area, and when the encoding tool for the advanced delta QP signaling method is not enabled, the simple delta QP signaling method may be used. The simple delta QP signaling method may be a method of signaling delta QP for each coding unit regardless of the size of the coding unit.
[0321] When the first coding tool enable flag indicates that the first coding tool is not applicable to the image sequence, the obtainer 2010 may not obtain the second coding tool enable flag information from the bitstream. In this case, the decoder 2030 may recognize that the second coding tool is not applicable to the image sequence without the second coding tool enable flag. Here, the second coding tool enable flag is not signaled through the bitstream, and thus a reduction in bits can be achieved.
[0322] When the first encoding tool enable flag indicates that the first encoding tool is applicable to the image sequence, the obtainer 2010 may obtain second encoding tool enable flag information from the bitstream.
[0323] However, it is not limited thereto, and a person of ordinary skill in the art may understand that, regardless of whether the first coding tool enable flag indicates activation or inactivation, the second coding tool enable flag may be obtained from the bitstream in order to reduce the number of conditional checks during parsing. For example, even when the first coding tool enable flag information indicates that the first coding tool is not applicable to the image sequence, the obtainer 2010 may obtain the second coding tool enable flag information from the bitstream. In this case, the second coding tool enable flag information may indicate that the second coding tool is not applicable to the image sequence. When the coding tool identified when at least one of the first coding tool enable flag and the second coding tool enable flag (e.g., the first coding tool enable flag) has a value of 0 and the coding tool identified when the at least one coding tool enable flag has a value of 1 is incompatible for a predetermined encoding operation, a sequence parameter set suitable for a bitstream of a main profile may identify a constraint of the main profile to include a coding tool enable flag that always has a value of 1. When the bitstream is identified as conforming to the main profile, the image decoding apparatus 2000 may identify that the bitstream is suitable for decoding and perform decoding on the image sequence only when the value of the coding tool enable flag is 1 for the coding tool that is incompatible according to the value of the tool enable flag. When the value is 0, the image decoding apparatus 2000 may recognize that the bitstream is not suitable for decoding and may not perform decoding on the image sequence.
[0324] The sequence parameter set of the bitstream conforming to the baseline profile may identify the constraints of the baseline profile to include a first encoding tool enable flag that always has a value of 0. Here, whether the bitstream conforms to the predetermined profile may be identified based on the constraints of the predetermined profile.
[0325] Here, in the case of a baseline profile, regardless of dependencies between encoding tools, a constraint of the baseline profile may be identified to include an encoding tool enable flag that always has a value of 0.
[0326] However, it is not limited thereto, and the second encoding tool enable flag that depends on the first encoding tool enable flag may not be obtained from the sequence parameter set, and the value of the second encoding tool enable flag may be identified as 0.
[0327] When the bitstream is identified as conforming to the baseline profile, when the value of the first encoding tool enable flag is 0, the image decoding device 2000 may not identify the value of the second encoding tool enable flag, may identify that the corresponding bitstream is suitable for decoding, and may perform decoding on the image sequence.
[0328] When the bitstream is identified as complying with the baseline profile, when the value of the first encoding tool enable flag is 1, the image decoding apparatus 2000 may identify that the corresponding bitstream is not suitable for decoding, and may not perform decoding on the image sequence.
[0329] That is, when a bitstream is identified as conforming to a baseline profile, the image decoding device 2000 may identify that the corresponding bitstream is not suitable for decoding based on the value of the first encoding tool enable flag, and may not perform decoding on the image sequence regardless of the value of the second encoding tool enable flag.
[0330] The decoder 2030 may identify at least one of the first encoding tool and the second encoding tool applicable to an image sequence included in a bitstream based on at least one of the first encoding tool enable flag information and the second encoding tool enable flag information.
[0331] In the following, a method of decoding an image sequence by additionally considering a toolset index extracted from a sequence parameter set will be described.
[0332] The decoder 2030 may identify a tool required to decode slice data of a bitstream by using the first tool set index extracted from the sequence parameter set.
[0333] The first toolset index indicates a tool required for decoding a bitstream (an image sequence, specifically, a slice header and / or slice data of a bitstream) from among a plurality of predetermined tools. A tool required for decoding the bitstream and a tool not required for decoding the bitstream may be identified from among the plurality of tools based on the first toolset index. Here, decoding the bitstream may mean extracting syntax elements from the bitstream and reconstructing an image from the extracted syntax elements according to a predetermined tool.
[0334] The first toolset index may be represented as a first bit string of a predetermined length. For example, the first bit string may include 32 bits. Each of the plurality of bits included in the first bit string may indicate whether a plurality of tools are required to decode the bitstream.
[0335] Fig.22a is a diagram illustrating syntax elements of a sequence parameter set according to an embodiment. Figure 22b is a diagram illustrating the semantics of syntax elements of a sequence parameter set according to an embodiment.
[0336] First, profile_idc is extracted from the bitstream. profile_idc indicates the profile to which the bitstream conforms. According to an embodiment, profile_idc with a value of 0 may indicate that the bitstream conforms to the profile that is not required. Fig.24c The tool shown or an alternative tool using a corresponding tool (e.g. Fig.24aAs shown, when the binary and ternary partitioning (BTT) tool is turned off, a profile (hereinafter, a baseline profile) of the QT tool) is used to generate a bitstream. As described above, the image encoding device 200 and the image decoding device 2000 can use various tools to encode / decode images, and the baseline profile is a profile in which a predetermined default tool is defined as being used to encode / decode images.
[0337] profile_idc with a value of 1 may indicate that Fig.24c The configuration file of the tool shown (hereinafter, the main configuration file) generates the bitstream. The main configuration file is a file that defines the predetermined default tools and the predetermined advanced tools (e.g., Fig.24c At least one of the tools shown in ) can be used for a profile for image encoding / decoding.
[0338] Extract level_idc. level_idc indicates the resolution of the image to be encoded / decoded, etc.
[0339] Thereafter, the toolset index tool_set_idc is extracted. Here, tool_set_idc may include toolset_idc_h corresponding to the first toolset index and toolset_idc_l corresponding to the second toolset index.
[0340] First, extract the toolset_idc_h corresponding to the first toolset index. Fig.24d It is shown that toolset_idc_h includes 32 bits. However, the first bit string corresponding to toolset_idc_h may include various numbers of bits.
[0341] According to an embodiment, when profile_idc indicates a baseline profile, a value of toolset_idc_h is limited to 0. That is, values of all bits included in the first bit string are limited to 0. In contrast, when profile_idc indicates a main profile, toolset_idc_h may have a value greater than or equal to 0. That is, bits included in the first bit string may have a value of 0 or 1, and thus, tools required for decoding a bitstream and tools not required for decoding a bitstream may be identified from among high-level tools.
[0342] Toolset_idc_1 corresponding to the second toolset index may be extracted. Toolset_idc_1 may be represented as a second bit string of a predetermined length, and the length of toolset_idc_1 and the length of toolset_idc_h may be identical to each other.
[0343] toolset_idc_l indicates a tool for encoding an image sequence among a plurality of tools (the above-mentioned high-level tools). Although toolset_idc_h indicates tools required and tools not required for decoding a bitstream, toolset_idc_l indicates tools necessary for decoding a bitstream. Even when a tool predetermined by toolset_idc_h is identified as necessary for decoding a bitstream, the corresponding tool may be used or not used to encode an image sequence.
[0344] However, when the value of the bit corresponding to the predetermined tool in the second bit string corresponding to toolset_idc_1 is 1, the corresponding tool is recognized as being required for decoding the bitstream and is to be used for encoding the image sequence.
[0345] The bits included in the second bit string corresponding to toolset_idc_1 may correspond to a plurality of tools, respectively, and the corresponding relationship between the second bit string and the plurality of tools may be the same as Fig.24d The first bit string shown in is the same as the correspondence between the multiple tools.
[0346] The value of each bit included in the second bit string can be limited according to the value of each bit included in the first bit string. When the value of the bit in the predetermined position in the first bit string is 0, the tool corresponding to the corresponding bit is identified as not being needed for decoding the bit stream. However, when the value of the bit in the predetermined position in the second bit string is 1, the tool corresponding to the bit is identified as being used to encode the image sequence. Therefore, there is a contradiction between the first bit string and the second bit string. Therefore, when the value of the bit in the predetermined position in the first bit string is 0, the value of the bit in the same position in the second bit string is limited to 0.
[0347] Thereafter, a tool flag (or encoding tool enable flag) indicating whether a plurality of tools are used to encode the image sequence is obtained. As described above, a tool flag having a value of 0 indicates that the tool is not used (or the tool is not enabled) to encode the image sequence, and a tool flag having a value of 1 indicates that the tool is used (or the tool is enabled) to encode the image sequence.
[0348] The value of the tool flag is restricted according to the value of each bit of the first toolset index (i.e., toolset_idc_h) and the second toolset index (i.e., toolset_idc_l). As described above, when the value of the bit in the predetermined position within the first bit string is 0, the tool flag of the tool corresponding to the bit in the predetermined position may have to have a value of 0, and when the value of the bit in the predetermined position is 1, the tool flag of the tool corresponding to the bit in the predetermined position may have a value of 0 or 1.
[0349] According to an embodiment, when the value of the bit in the predetermined position within the second bit string is 1, the tool flag of the tool corresponding to the bit in the predetermined position may have to have a value of 1, and when the value of the bit in the predetermined position is 0, the tool flag of the tool corresponding to the bit in the predetermined position may have a value of 0 or 1.
[0350] Reference Fig.22a and Figure 22b , the image decoding device 2000 may obtain sps_aims_flag 2200 from the bitstream. Figure 22b , sps_amis_flag 2200 may be a flag indicating whether advanced motion signaling and interpolation are used.
[0351] When the value of sps_amis_flag 2200 is 1, the image decoding apparatus 2000 may obtain sps_admvp_flag, sps_affine_flag, sps_amvr_flag, sps_dmvr_flag, sps_mmvd_flag, and sps_hmvp_flag 2210 from the bitstream. When the value of sps_amis_flag 2200 is 0, the image decoding apparatus 2000 may not obtain sps_admvp_flag, sps_affine_flag, sps_amvr_flag, sps_dmvr_flag, sps_mmvd_flag, and sps_hmvp_flag 2210 from the bitstream. Here, the values of sps_admvp_flag, sps_affine_flag, sps_amvr_flag, sps_dmvr_flag, sps_mmvd_flag, and sps_hmvp_flag 2210 may be recognized as 0 based on the value (0) of the sps_amis_flag 2200 .
[0352] Here, refer to Figure 22b , sps_admvp_flag may be a flag indicating whether the encoding tool for the AMVP method is enabled. sps_affine_flag may be a flag indicating whether the motion compensation method based on the affine model can be used for inter-frame prediction. sps_amvr_flag may be a flag indicating whether the adaptive motion vector resolution method can be used. sps_dmvr_flag may be a flag indicating whether the decoding-side motion vector correction method can be used for inter-frame motion vector correction. sps_mmvd_flag may be a flag indicating whether merging with motion vector difference can be used. sps_hmvp_flag may be a flag indicating whether the HMVP method can be used.
[0353] That is, the image decoding device 2000 may recognize the sps_amis_flag 2200 as a platform-level flag (or a representative tool enable flag) for a predetermined category (or a predetermined tool group), and when the value of the sps_amis_flag 2200 is off, the image decoding device 200 may recognize the sps_admvp_flag, sps_affine_flag, sps_amvr_flag, sps_dmvr_flag, sps_mmvd_flag, and sps_hmvp_flag 2210 included in the corresponding category as off, without obtaining the sps_admvp_flag, sps_affine_flag, sps_amvr_flag, sps_dmvr_flag, sps_mmvd_flag, and sps_hmvp_flag 2210 from the bitstream.
[0354] That is, only when sps_amis_flag is 1, the image decoding device 2000 can identify the flags (sps_admvp_flag, sps_affine_flag, sps_amvr_flag, sps_dmvr_flag, sps_mmvd_flag, and sps_hmvp_flag) of various tools based on the merge mode operation as an important encoding method as being included in the same category. However, it is not limited to this, and sps_amis_flag can be a variable for identifying a profile, and the profile can be allowed according to the value of the corresponding variable. That is, according to the value of sps_amis_flag, whether to activate the subordinate tool can be identified. The subordinate tool can depend on sps_amis_flag, and the profile can be performed by grouping the subordinate tools in one category based on sps_amis_flag.
[0355] The image decoding apparatus 2000 may obtain the sps_eipd_flag 2220 from the bitstream. Figure 22b , sps_eipd_flag 2220 may be a flag indicating whether the extended intra prediction mode is used.
[0356] When the value of sps_eipd_flag 2220 is 1, the image decoding apparatus 2000 may obtain sps_ibc_enabled_flag 2230 from the bitstream. When the value of sps_eipd_flag 2220 is 0, the image decoding apparatus 2000 may not obtain sps_ibc_enabled_flag 2230 from the bitstream. Here, the value of sps_ibc_enabled_flag 2230 may be recognized as 0 based on the value (0) of sps_eipd_flag 2220. Here, referring to Figure 22b , sps_ibc_enabled_flag 2230 may be a flag indicating whether the intra block copy method is used.
[0357] That is, the image decoding apparatus 2000 may recognize the sps_eipd_flag 2220 as a platform level flag for a predetermined category, and when a value of the sps_eipd_flag 2220 is off, the image decoding apparatus 2000 may recognize the sps_ibc_enabled_flag 2230 included in the corresponding category as off without obtaining the sps_ibc_enabled_flag 2230 from a bitstream.
[0358] That is, when sps_epid_flag is 0, information about reference pixels is extracted in integer pixel units of neighboring blocks, and therefore, the complexity is low, and when sps_epid_flag is 1, information about reference pixels is extracted in integer pixel units and fractional pixel units of neighboring blocks, and other prediction methods (e.g., bilinear or planar prediction methods) are used in addition to angular prediction (prediction with directionality), and therefore, the complexity is relatively high. In addition, sps_ibc_enabled_flag is a flag indicating whether a prediction method based on copying in units of blocks in an area of the current picture (previously decoded area) and having significantly high complexity is used in intra mode. Therefore, when a simple intra prediction mode with low complexity is used, an intra block copy method with high complexity may not be used, and only when an extended intra prediction mode with high complexity is used, a flag indicating whether an intra block copy method with high complexity is used may be obtained. However, it is not limited thereto. sps_epid_flag may be a variable for identifying a profile, and the profile may be allowed according to the value of the corresponding variable.
[0359] The image decoding apparatus 2000 may obtain the sps_cm_init_flag 2240 from the bitstream. Figure 22b , sps_cm_init_flag 2240 may be a flag indicating whether context modeling and initial processing are used.
[0360] When the value of the sps_cm_init_flag 2240 is 0, the image decoding apparatus 2000 may not obtain the sps_adcc_flag 2250 from the bitstream. Here, the value of the sps_adcc_flag 2250 may be recognized as 0 based on the value (0) of the sps_cm_init_flag 2240. Figure 22b , sps_adcc_flag 2250 may be a flag indicating whether a forced residual coding (coefficient coding) method is used.
[0361] That is, the image decoding apparatus 2000 may recognize the sps_cm_init_flag 2240 as a platform level flag for a predetermined category, and when a value of the sps_cm_init_flag 2240 is off, the image decoding apparatus 2000 may recognize the sps_adcc_flag 2250 included in the corresponding category as off without obtaining the sps_adcc_flag 2250 from the bitstream.
[0362] When the value of sps_cm_init_flag is 0, the image decoding device 2000 may not use the context adaptive binary arithmetic coding (CABAC) context modeling method, and may set the initial values of all contexts to 1 / 2, and when the value of sps_cm_init_flag is 1, the image decoding device 2000 may allow context modeling, and may set the initial values of all contexts according to the slice type and QP. When the value of sps_adcc_flag is 0, residual coding (i.e., coefficient coding based on run length) may be performed based on run level last information, and when the value of sps_adcc_flag is 1, residual coding may be performed in sub-block units by dividing each coefficient into various levels. When the value of sps_adcc_flag is 1, context modeling is important, but when the value of sps_cm_init_flag is 0, context modeling is not used. Therefore, in this case, the performance is not much different from the performance of the case where the value of sps_adcc_flag is 0. Therefore, it may be configured to signal sps_adcc_flag only when the value of sps_cm_init_flag is 1. However, it is not limited thereto, and sps_cm_init_flag may be a variable for identifying a profile, and the profile may be allowed according to a value of a corresponding variable.
[0363] The image decoding apparatus 2000 may obtain the sps_iqt_flag 2260 from the bitstream. Figure 22b, sps_iqt_flag 2260 may be a flag indicating whether an advanced quantization and transform method is used.
[0364] When the value of the sps_iqt_flag 2260 is 0, the image decoding apparatus 2000 may not obtain the sps_ats_flag and the sps_dquant_flag 2270 from the bitstream. Here, based on the value (0) of the sps_iqt_flag 2260, the values of the sps_ats_flag and the sps_dquant_flag 2270 may be recognized as 0. Here, referring to Figure 22b , sps_ats_flag may be a flag indicating whether an adaptive transform selection method according to inter prediction or intra prediction is used, and sps_dquant_flag may be a flag indicating whether an advanced delta QP signaling process is used.
[0365] When the value of the sps_iqt_flag 2260 is 1, the image decoding apparatus 2000 may obtain sps_ats_flag and sps_dquant_flag 2270 from a bitstream.
[0366] That is, the image decoding apparatus 2000 may recognize sps_iqt_flag 2260 as a platform level flag for a predetermined category, and when the value of sps_iqt_flag 2260 is off, the image decoding apparatus 2000 may recognize sps_ats_flag and sps_dquant_flag 2270 included in the corresponding category as off without obtaining sps_ats_flag and sps_dquant_flag 2270 from the bitstream.
[0367] sps_iqt_flag may be a variable for identifying a profile, and the profile may be allowed according to the value of the corresponding variable. Here, in order to allow a simple form of profile, when the value of sps_iqt_flag is 0, sps_ats_flag for selecting a variety of transform kernels may not be allowed, and sps_dquant_flag related to a method of signaling a domain-based delta QP in a block level may not be allowed. In addition, for a profile having a more complex form, when the value of sps_iqt_flag is 1, the corresponding tool may be allowed.
[0368] Fig.23 is a diagram illustrating the syntax and semantics of a sequence parameter set according to an embodiment.
[0369] Reference Fig.23 ,and Fig.22aDifferently, the image decoding apparatus 2000 may obtain, from a bitstream, the sps_admvp_flag 2310 combining the sps_amis_flag 2200 and the sps_admvp_flag 2210. Differently from the sps_admvp_flag 2210, the sps_admvp_flag 2310 may additionally indicate whether signaling and interpolation are enabled.
[0370] When the value of the sps_admvp_flag 2310 is 0, the image decoding apparatus 2000 may obtain sps_affine_flag, sps_amvr_flag, sps_dmvr_flag, sps_mmvd_flag, and sps_hmvp_flag 2320 from the bitstream. Here, the sps_affine_flag, sps_amvr_flag, sps_dmvr_flag, sps_mmvd_flag, and sps_hmvp_flag 2320 may be the same as the value of the sps_admvp_flag 2310. Fig.22a The sps_affine_flag, sps_amvr_flag, sps_dmvr_flag, sps_mmvd_flag and sps_hmvp_flag 2210 are basically the same.
[0371] Fig.24a : is a diagram showing tool flags and functions according to the values of each tool flag. Figure 24b is a diagram showing a main configuration file.
[0372] Reference Fig.24a , the enabled encoding operations (or features) can be identified based on the value (on / off) of each tool flag.
[0373] For example, sps_btt_flag may be related to a partitioning method (picture division structure), sps_admvp_flag may be related to whether merge mode is used in inter prediction, sps_eipd_flag may be related to an intra prediction method, sps_adcc_flag may be related to coefficient coding, sps_amis_flag may be related to interpolation filters and inter prediction, sps_iqt_flag may be related to transform and quantization, sps_addb_flag may be related to deblocking filters, sps_cm_init_flag may be related to context modeling, sps_rpl_flag may be related to buffer management, sps_pocs_flag may be related to PoD derivation, and sps_dqaunt_flag may be related to incremental QP signaling processing.
[0374] Here, the flag may not simply indicate whether each tool is enabled. When the tool is not enabled (turned off), another encoding tool that is incompatible with the encoding tool when the tool is enabled (turned on) may be used. For the encoding tool, when the value of the encoding tool flag is generated / identified during encoding / decoding, in encoding, the available tool combination can be greatly increased based on the tool flag, and therefore, the hardware complexity can be increased. In addition, in decoding, according to the tool identification based on the value of the tool flag and the encoding operation based on the tool identification, the hardware complexity can be increased.
[0375] To solve this problem, refer to Figure 24b , when there are incompatible encoding tools according to the value of the tool flag, the value of the corresponding tool flag may also be set to 0 in the main profile. The encoder can reduce the available tool combinations through this constraint to reduce hardware complexity. In addition, the hardware complexity caused by tool recognition based on the tool flag value can be reduced, and the decoder does not have to implement all functions by considering the main profile, so the hardware complexity can be reduced. When the value of the corresponding tool flag is 0, the decoder can recognize that the bitstream is not suitable for decoding, and the corresponding bitstream may not be decoded.
[0376] For example, refer to Fig.24a , sps_btt_flag is a flag indicating whether the BTT method is allowed, and when the value of sps_btt_flag is on, the BTT method can be used, and when the value of sps_btt_flag is off, quad partitioning can be used. The two partitioning methods can perform the same partitioning, but may not be performed together. Therefore, refer to Figure 24b , as a constraint of the main profile, there may be a condition that sps_btt_flag must have only a value of 1. Therefore, it may not be necessary to implement hardware by considering a case where the value of sps_btt_flag is 0, and thus, the complexity of the encoder / decoder may be reduced.
[0377] Likewise, when there are processes that are incompatible with each other according to the value of the tool flag, the value of the corresponding tool flag may be set to 1 in the main configuration file. Therefore, it may not be necessary to implement hardware by considering a case where the value of the corresponding tool flag is 0, and thus, the complexity of the encoder / decoder may be reduced.
[0378] Fig.24c is a table showing tools corresponding to each bit of the first bit string. Fig.24c A total of 21 tools are shown, from the btt tool corresponding to the bit with index 0 to the hmvp tool corresponding to the bit with index 20. The processing procedure of one or more tools will be described below.
[0379] like Fig.24cAs shown, each bit included in the first bit string may correspond to any one of the plurality of tools. A bit with index 0 (e.g., the rightmost bit in the first bit string) may indicate whether a btt tool is required, and a bit with index 1 (e.g., a bit located at the left position of the bit with index 0) may indicate whether a split unit coding order (SUCO) tool is required. Fig.24c The bit index shown in indicates the position of the bit included in the first bit string. For example, the bit index may indicate the distance that the corresponding bit in the left direction is spaced apart from the rightmost bit in the first bit string.
[0380] When the value of the bit with index 0 is 1, the btt tool may be required to decode the bitstream, and when the value of the bit with index 0 is 0, the btt tool may not be required to decode the bitstream. In addition, when the value of the bit with index 1 is 1, the suco tool may be required to decode the bitstream, and when the value of the bit with index 1 is 0, the suco tool may not be required to decode the bitstream.
[0381] The first toolset index limits the ability of the decoder to decode the bitstream.
[0382] Therefore, the decoder 2030 may identify from the value of each bit included in the first bit string whether the bitstream can be reconstructed based on the capability of the decoder 2030. For example, when the value of the bit with index 0 is 1, and when the decoder 2030 cannot use the btt tool, the decoder 2030 may determine that the bitstream cannot be decoded. When it is impossible to use the tool identified from the first toolset index (i.e., the tool required to decode the bitstream), the decoder 2030 may stop decoding the bitstream.
[0383] Fig.24d is an example diagram showing values of a tool flag restricted according to values of a first toolset index and a second toolset index.
[0384] exist Fig.24dIn the above description, sps_btt_flag<=toolset_idc_h&0x1 indicates that when the value of the bit located at the rightmost position in the first bit string (the bit with index 0) is 1, sps_btt_flag may have a value of 0 or a value of 1. In addition, sps_btt_flag>=toolset_idc_1&0x1 indicates that when the value of the bit with index 0 in the second bit string is 1, sps_btt_flag may have a value of 1. That is, when the value of the bit with index 0 in the first bit string is 1 and the value of the bit with index 0 in the second bit string is 1, the value of sps_btt_flag is limited to 1. In addition, when the value of the bit with index 0 in the first bit string is 1 and the value of the bit with index 0 in the second bit string is 0, the value of sps_btt_flag is limited to 0 or 1. In addition, when the value of the bit with index 0 in the first bit string is 0 and the value of the bit with index 0 in the second bit string is 0, the value of sps_btt_flag is limited to 0. As described above, when the value of the bit with index 0 in the first bit string is 0, the bit with index 0 in the second bit string cannot have a value of 1.
[0385] like Fig.24d As shown, the value of sps_suco_flag is limited according to the value of the bit with index 1 in the first bit string and the value of the bit with index 1 in the second bit string, and the value of sps_amvr_flag is limited according to the value of the bit with index 2 in the first bit string and the value of the bit with index 2 in the second bit string.
[0386] In the following, the processing of one or more available tools in the main configuration file is described.
[0387] The image is divided into slices, and a CTU of a predetermined size included in the slice is hierarchically divided into at least one coding unit. Each coding unit is predictively encoded / predictively decoded by inter-frame prediction or intra-frame prediction. The BTT tool is a tool configured to encode / decode the current coding unit determined from the CTU by dividing the current coding unit into two lower coding units or three lower coding units. The BTT tool can be used when it is cost-effective (for example, in terms of rate-distortion cost) to encode the current coding unit by dividing the current coding unit into two or three lower coding units. As described above, the BTT tool is available in the main profile. In the baseline profile, the current coding unit can be fully encoded without being divided, or can be encoded after being divided into four elements.
[0388] The suco tool is a technique for improving encoding performance by changing the order of encoding / decoding of coding units. According to the suco tool, when the division direction of the coding unit is a vertical direction, the encoding / decoding order of the lower coding units may be determined as a lower left coding unit and then a lower right coding unit, or a lower right coding unit and then a lower left coding unit. In the baseline profile, the lower coding units divided from the coding unit or CTU may be encoded / decoded in a predetermined order (e.g., from the lower left coding unit and then the lower right coding unit).
[0389] The amvr tool is a tool for obtaining a motion vector for inter-frame prediction of a current coding unit from any one of a plurality of resolutions. As the image size increases, when a motion vector is obtained from only one resolution, a large number of bits may be required to represent the motion vector. The resolution may indicate the accuracy of the position of the pixel indicated by the motion vector in the pixels included in the reference image (or interpolated reference image). The resolution of the motion vector has N pixel units (N is a rational number) indicating that the motion vector may have an accuracy of N pixel units. In the amvr tool, the differential motion vector between the motion vector of the current coding unit and the predicted motion vector is reduced according to the resolution of the motion vector of the current coding unit, and then sent to the decoder with a signal. The decoder amplifies the reduced differential motion vector and then reconstructs the motion vector of the current coding unit. In the baseline profile, the motion vector of the current coding unit may be obtained at one resolution. For example, in the baseline profile, as in the AMVP mode defined in the HEVC standard, the differential motion vector between the motion vector of the current coding unit and the predicted motion vector may be sent to the decoder with a signal without being reduced, and the decoder may reconstruct the motion vector of the current coding unit by combining the differential motion vector with the predicted motion vector.
[0390] The mmvd tool is a tool that applies the concept of differential motion vectors to the merge mode defined in the HEVC standard. In the merge mode, the motion vectors of the blocks adjacent to the current coding unit are added to the candidate list, and any one of the motion vectors in the candidate list is selected as the motion vector of the current coding unit. Information indicating any one of the motion vectors in the candidate list is sent to the decoder with a signal. Because the motion vector of the current coding unit can be indicated only by information indicating any one of the motion vectors in the candidate list, the number of bits required to represent the motion vector can be reduced. Usually, in the merge mode, the differential motion vector between the motion vector of the current coding unit and the motion vector selected in the candidate list is not sent to the decoder with a signal. The difference between the mmvd tool and the merge mode defined in the HEVC standard is that the mmvd tool sends the differential motion vector between the motion vector of the current coding unit and the motion vector selected in the candidate list to the decoder with a signal. In the mmvd tool, information indicating the distance that the motion vector selected in the candidate list must move in one direction is sent to the decoder with a signal. That is, information indicating the change distance and change direction of the motion vector selected in the candidate list is sent to the decoder as a differential motion vector signal. The decoder obtains the motion vector of the current coding unit by changing the motion vector selected in the candidate list according to the change distance and change direction. In the baseline profile, the mmvd tool may not be used for inter-frame prediction of the current coding unit, but instead, the previous merge mode, skip mode, AMVP mode, etc. may be used.
[0391] The DMVR tool is a technique for advancing two motion vectors used by the decoder for bidirectional inter prediction. In the DMVR tool, the two initial motion vectors signaled from the encoder are advanced to obtain a more accurate motion vector. In the baseline profile, the motion vector signaled from the encoder may not be additionally advanced and may be used as a predicted motion vector for the current coding unit or as a motion vector for the current coding unit.
[0392] The ALF tool is a filtering technique for suppressing artifacts of a reconstructed image and improving visual and target quality. In the ALF tool, two types of diamond filter patterns (e.g., 5×5 and 7×7) are defined for luminance filtering, and one type of diamond filter pattern (e.g., 5×5) is defined for chrominance filtering. In the baseline profile, the ALF tool may not be applied, and deblocking filtering and / or SAO filtering may be applied to the reconstructed image.
[0393] The htdf tool is a technique for filtering the reconstructed image like the ALF tool. The htdf tool reduces the ringing effect that occurs due to the quantization of the residual coefficients. When the QP is greater than a predetermined value, the htdf tool can be applied to reconstruct the luminance block. The transform core can be a 2×2 Hadamard transform and therefore a 3×3 low bandwidth smoothing filter. In the baseline profile, the htdf tool may not be applied, and deblocking filtering and / or SAO filtering may be applied to the reconstructed image.
[0394] The Adaptive Transform Selection (ats) tool is a technique that applies the DCT-VII transform and the DCT-VIII transform to the transform / inverse transform of the residual block in addition to the DCT-II transform available in the baseline profile.
[0395] An improved delta QP signaling process (dquant) tool may be an improved tool for a method of signaling a differential QP (i.e., a difference between a predicted QP and a QP) as a level of a coding unit. Here, the improved tool may be a tool related to a method of additionally identifying a value of cuQpDeltaCode for a coding unit (including a divided coding unit) based on a size (or width) of the coding unit, a size (or width) of a signaling unit of the differential QP, and a size of a maximum transform unit, and obtaining a syntax element for the differential QP based on the additionally identified value. An unimproved tool may be a tool related to a method of obtaining a syntax element for the differential QP without identifying a value of cuQpDeltaCode (or by identifying only a basic value or regardless of the value of cuQpDeltaCode).
[0396] The hmvp tool is a technique for including motion vectors of coding units far from the current coding unit in a candidate list in addition to motion vectors of temporally or spatially neighboring blocks in a merge mode or an AMVP mode. In a baseline profile, motion vectors of blocks adjacent to the current coding unit may be included in the candidate list, while motion vectors of coding units far from the current coding unit may not be used as candidates.
[0397] Fig.24e is an example diagram showing values of tool flags restricted according to values of a first toolset index according to an embodiment.
[0398] Fig.24e Similar to Figure 24b However, the value of the tool flag may be limited based on the value of one toolset index, toolset_idc, instead of two toolset indexes. Specifically, as described above with reference to Fig.23 As described above, sps_admvp_flag can be Fig.22aThe sps_admvp_flag 2200 and sps_amis_flag 2210 combined flags.
[0399] Figures 25a to 25d is a diagram showing a method based on an embodiment of the present invention. Fig.23 FIG. 2310 is a diagram of the syntax of the coding unit of the value of the sps_admvp_flag 2310. Fig.25e is a diagram illustrating the semantics of a coding unit based on the value of the sps_admvp_flag 2310 .
[0400] Fig.25f and Figure 25g It is used to describe the Fig.23 A diagram showing the decoding process (inter-frame prediction process) of the value of sps_admvp_flag2310. Figure 25h to Figure 25k is a diagram showing a method based on an embodiment of the present invention. Fig.23 Figure 2310 shows the interpolation filter value of sps_admvp_flag 2310. Figure 25l It is shown based on Fig.23 FIG. 2310 is a diagram of a binarization parameter of the value of sps_admvp_flag 2310.
[0401] Reference Figures 25a to 25d , the image decoding apparatus 2000 may be based on a value in which the sps_amis_flag 2200 and the sps_admvp_flag 2210 are combined into one sps_admvp_flag 2310, rather than based on Fig.22a Various motion information is obtained from the coding unit by referring to the value of sps_amis_flag 2200 and the value of sps_admvp_flag 2210. Figure 25e to Figure 25g , the image decoding apparatus 2000 may perform a specific inter-frame prediction process based on the value of sps_admvp_flag 2310. Figure 25h to Figure 25k , the image decoding apparatus 2000 may identify an interpolation filter (coefficient of the interpolation filter) used to perform inter-frame prediction based on the value of the sps_admvp_flag 2310. Figure 25l , the image decoding apparatus 2000 may identify a binarization parameter based on a value of the sps_admvp_flag 2310, and may de-binarize a syntax element inter_pred_idc obtained from a bitstream.
[0402] By merging sps_admvp_flag and sps_amis_flag into one flag, a specific function of the basic inter prediction mode method is not indicated by being divided into two flags, but can be indicated as one flag. Therefore, the function (encoding operation) of inter prediction according to the baseline profile or the main profile can be divided only based on the value of the corresponding merge flag. Therefore, inter prediction (such as motion information signaling, interpolation, advanced motion vector prediction, etc.) can be performed.
[0403] It is described that there are 21 tools available only in the main configuration file with reference to Figures 22 and 25. Detailed operation processing of tools other than the above-mentioned tools is not an essential part of the inventive concept of the present disclosure, and thus will not be described in detail.
[0404] Fig.26 is a flowchart for describing an image decoding method according to an embodiment.
[0405] In operation S2610, the image decoding apparatus 2000 may obtain first encoding tool enable flag information of a first encoding tool from a bitstream.
[0406] In operation S2620, the image decoding apparatus 2000 may obtain second encoding tool enable flag information of at least one second encoding tool related to the first encoding tool from a bitstream based on the first encoding tool enable flag information.
[0407] In operation S2630, the image decoding apparatus 2000 may identify at least one of the first encoding tool and the second encoding tool applicable to an image sequence included in a bitstream based on at least one of the first encoding tool enable flag information and the second encoding tool enable flag information.
[0408] In operation S2640, the image decoding apparatus 2000 reconstructs the image sequence based on the recognized tool.
[0409] Fig. 27 is a block diagram of components of an image encoding apparatus 2700 according to an embodiment.
[0410] Reference Fig. 27 , the image encoding device 2700 may include an encoder 2710 and a bitstream generator 2730.
[0411] Fig. 27 The encoder 2710 shown in FIG. 2 may correspond to Figure 2 The encoder 220 shown in FIG. 2 and the bitstream generator 2730 may correspond to Figure 2In addition, the encoder 2710 may correspond to the inter-frame predictor 1905, the intra-frame predictor 1910, the transformer 1920, the quantizer 1925, the inverse quantizer 1933, the inverse transformer 1935, the post-reconstruction filter 1940 and the in-loop filter 1945, and the bitstream generator 2730 may correspond to Fig.19 Entropy encoder 1930 is shown.
[0412] The encoder 2710 and the bitstream generator 2730 according to an embodiment may be implemented with at least one processor. The image encoding apparatus 2700 may include one or more memories (not shown) storing input and output data of the encoder 2710 and the bitstream generator 2730. In addition, the image encoding apparatus 2700 may include a memory controller (not shown) controlling data input and output of the memory (not shown).
[0413] The encoder 2710 may encode the image sequence based on at least one encoding tool from among a plurality of encoding tools including a first encoding tool and a second encoding tool.
[0414] The encoder 2710 may generate at least one of first encoding tool enable flag information indicating whether the first encoding tool is applicable to the image sequence and second encoding tool enable flag information indicating whether the second encoding tool is applicable to the image sequence.
[0415] The bitstream generator 2730 may generate a bitstream including image sequence data including syntax elements generated as a result of encoding and a sequence parameter set including at least one of first encoding tool enable flag information and second encoding tool enable flag information. Here, when the value of the first encoding tool enable flag information is 1, the bitstream may include both the first encoding tool enable flag information and the second encoding tool enable flag information, and when the value of the first encoding tool enable flag information is 0, the bitstream may include the first encoding tool enable flag information but may not include the second encoding tool enable flag information.
[0416] Fig.28 is a flowchart for describing an image encoding method according to an embodiment.
[0417] In operation S2810, the image encoding apparatus 2700 may encode an image sequence based on at least one tool among a plurality of tools.
[0418] In operation S2820, the image encoding apparatus 2700 may generate at least one of first encoding tool enable flag information indicating whether a first encoding tool is to be applied to an image sequence and second encoding tool enable flag information indicating whether a second encoding tool is to be applied to an image sequence.
[0419] In operation S2830, the image encoding apparatus 2700 may generate a bitstream including image sequence data including syntax elements generated as a result of encoding and a sequence parameter set including at least one of first encoding tool enable flag information and second encoding tool enable flag information.
[0420] In addition, the embodiments of the present disclosure described above may be written as a computer-executable program that may be stored in a medium.
[0421] The medium may store computer executable programs continuously, or may temporarily store computer executable programs or instructions for execution or downloading. In addition, the medium may be any of a variety of recording media or storage media combined with single or multiple pieces of hardware, and the medium is not limited to media directly connected to the computer system, but may be distributed over a network. Examples of media include magnetic media (such as hard disks, floppy disks, and magnetic tapes) configured to store program instructions, optical recording media (such as CD-ROMs and DVDs), magneto-optical media (such as floppy disks), and ROM, RAM, and flash memory. Other examples of media include recording media and storage media managed by application stores that distribute applications or by websites, servers, etc. that provide or distribute various other types of software.
[0422] Although one or more embodiments of the present disclosure have been described with reference to the drawings, persons skilled in the art will understand that various changes in form and details may be made in the one or more embodiments without departing from the spirit and scope defined by the claims.
Claims
1. An image decoding method performed by an image decoding device, the image decoding method include: Obtaining improved quantization and transform flag information from a sequence parameter set in a bitstream, the improved quantization and transform flag information indicating whether an improved quantization and transform mode is applied to the image sequence; When the improved quantization and transform flag information indicates that the improved quantization and transform mode is applied to the image sequence, obtaining adaptive transform selection flag information related to whether the adaptive transform selection mode according to inter-frame prediction or intra-frame prediction can be applied to the image sequence from a sequence parameter set in the bitstream; identifying, based on the adaptive transform selection flag information, whether an adaptive transform selection mode is applied to a block included in the image sequence; and Decoding is performed on the block using an adaptive transform selection mode.
2. The image decoding method according to claim 1, further comprising: include: When the improved quantization and transform flag information indicates that the improved quantization and transform mode is not applied to the image sequence, it is recognized that the adaptive transform selection mode according to inter-frame prediction or intra-frame prediction cannot be applied to the image sequence without obtaining the adaptive transform selection flag information from a sequence parameter set in the bitstream.
3. An image decoding device, comprising at least one processor, wherein the at least one processor is configured to: Obtaining improved quantization and transform flag information from a sequence parameter set in a bitstream, the improved quantization and transform flag information indicating whether an improved quantization and transform mode is applied to the image sequence; When the improved quantization and transform flag information indicates that the improved quantization and transform mode is applied to the image sequence, obtaining adaptive transform selection flag information related to whether the adaptive transform selection mode according to inter-frame prediction or intra-frame prediction can be applied to the image sequence from a sequence parameter set in the bitstream; identifying, based on the adaptive transform selection flag information, whether an adaptive transform selection mode is applied to a block included in the image sequence; and Decoding is performed on the block using an adaptive transform selection mode.
4. An image encoding method performed by an image encoding device, the image encoding method include: encoding the image sequence based on at least one encoding tool among a plurality of encoding tools including an improved quantization and transform mode and an adaptive transform selection mode; generating at least one of improved quantization and transform flag information indicating whether an improved quantization and transform mode is to be applied to the image sequence, and adaptive transform selection flag information indicating whether an adaptive transform selection mode is to be applicable to the image sequence; as well as generating a bitstream including image sequence data and a sequence parameter set, wherein the image sequence data includes syntax elements generated as a result of encoding, and the sequence parameter set includes improved quantization and transform flag information and adaptive transform selection flag information, In which, when the value of the improved quantization and transform flag information is 1, the sequence parameter set in the bitstream includes both the improved quantization and transform flag information and the adaptive transform selection flag information, and when the value of the improved quantization and transform flag information is 0, the sequence parameter set in the bitstream includes the improved quantization and transform flag information but does not include the adaptive transform selection flag information.
5. A computer-readable storage medium storing a bit stream, wherein the bit stream is generated by the image encoding method according to claim 4.
6. A method for transmitting a bit stream performed by an image encoding device, the method include: encoding the image sequence based on at least one encoding tool among a plurality of encoding tools including an improved quantization and transform mode and an adaptive transform selection mode; generating at least one of improved quantization and transform flag information indicating whether an improved quantization and transform mode is to be applied to the image sequence, and adaptive transform selection flag information indicating whether an adaptive transform selection mode is to be applicable to the image sequence; generating a bitstream including image sequence data and a sequence parameter set, wherein the image sequence data includes syntax elements generated as a result of encoding, and the sequence parameter set includes improved quantization and transform flag information and adaptive transform selection flag information; and Send the bitstream to the image decoding device, In which, when the value of the improved quantization and transform flag information is 1, the sequence parameter set in the bitstream includes both the improved quantization and transform flag information and the adaptive transform selection flag information, and when the value of the improved quantization and transform flag information is 0, the sequence parameter set in the bitstream includes the improved quantization and transform flag information but does not include the adaptive transform selection flag information.
