Video encoding method and decoding method using parallel block and strip, and video encoding device and decoding device using parallel block and strip

By determining the index difference of parallel blocks in video encoding and using bitstream identification information for sequential encoding and decoding, the problem of reduced performance in parallel block encoding is solved, achieving efficient independent encoding and decoding.

CN118972574APending Publication Date: 2024-11-15SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411369050.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2018-12-07
Filing Date
2019-12-09
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In existing technologies, efficient video coding methods suffer from reduced coding performance when processing parallel blocks and stripes, especially when it is difficult to maintain data independence between parallel blocks.

Method used

By determining the index difference of parallel blocks and utilizing the identification information in the bitstream, the parallel blocks are decoded in the encoding order to ensure independent encoding and decoding of stripes or parallel block groups, and relevant signal transmission information to maintain data independence.

Benefits of technology

It achieves efficient encoding and decoding of parallel blocks or groups of blocks in disconnected regions, maintaining encoding performance and improving the independence and efficiency of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972574A_ABST
    Figure CN118972574A_ABST
Patent Text Reader

Abstract

Disclosed are a video encoding method and a video decoding method using parallel blocks and stripes, and a video encoding device and a video decoding device using parallel blocks and stripes. The method includes: acquiring identification information about a first parallel block included in a first slice and identification information about a last parallel block included in the first slice from a bitstream; determining an index difference between the first parallel block and the last parallel block based on a result obtained by comparing the identification information on the first parallel block with the identification information on the last parallel block; and determining the number of parallel blocks included in the first slice by using an index difference between the first parallel block and the last parallel block, thereby determining the number of parallel blocks included in the first slice by using the number of parallel blocks, identification information on the first parallel block, and identification information on the last parallel block. And decoding the plurality of parallel blocks included in the first slice according to the encoding order.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of a patent application with an application date of December 9, 2019, application number 201980074266.1, and invention name “Video encoding method and decoding method using parallel blocks and slices, and video encoding device and decoding device using parallel blocks and slices”. Technical Field

[0002] The present disclosure relates to the field of image encoding and decoding. More specifically, the present disclosure relates to a method and apparatus for encoding and decoding an image by dividing the image into tiles, tile groups, and slices. Background Art

[0003] Data-level parallelism is to divide the data to be processed in the parallelization program into several units, and then assign the divided units to different cores or threads to perform the same operation in parallel. For example, the picture of the input video is divided into four strips, and then the four strips are assigned to different cores, and thus encoding / decoding is performed in parallel. Because the video can be divided into data of various units (such as picture groups (GOP), frames, macroblocks, blocks) other than the stripe unit, the data-level parallelism can be further implemented as several technologies according to the division units of the video data. Among the several technologies, parallelism in units of frames, strips and macroblocks is frequently used in the data-level parallelism of video encoders and decoders. Because data-level parallelism performs parallelization after data division, so that there is no dependency between the divided data, there is not much data movement between the cores or threads to which the divided data is assigned. In addition, the data can usually be divided according to the number of cores.

[0004] Tiles have been introduced as a parallelization technique in High Efficiency Video Coding (HEVC). Unlike the existing slice division, each tile can have only a rectangular shape, and the reduction in encoding performance can be reduced compared to the case where the picture is divided into the same number of slices as the number of tiles. Summary of the invention

[0005] Technical issues

[0006] According to an embodiment, there is provided a method of efficiently encoding and decoding a picture divided into slices or tile groups including tiles that are not connected to each other.

[0007] Solution to the problem

[0008] According to an embodiment of the present disclosure, a video decoding method includes the following operations: obtaining identification information of a first parallel block and identification information of a last parallel block from a bit stream, wherein the first parallel block and the last parallel block are included in a first stripe; determining an index difference between the first parallel block and the last parallel block based on a result of comparing the identification information of the first parallel block with the identification information of the last parallel block; determining the number of parallel blocks included in the first stripe by using the index difference between the first parallel block and the last parallel block; and decoding a plurality of parallel blocks included in the first stripe according to a coding order by using the number of parallel blocks included in the first stripe, the identification information of the first parallel block, and the identification information of the last parallel block.

[0009] Disclosure of beneficial effects

[0010] According to an embodiment, an encoding and decoding method using parallel blocks and pictures and an encoding and decoding device using parallel blocks and pictures encode and decode a slice or a parallel block group including parallel blocks corresponding to areas that are not connected to each other while maintaining independence of data encoding between parallel blocks, and transmit information about the parallel blocks included in the slice or the parallel block group using a signal.

[0011] However, the effects that can be achieved by the encoding and decoding method using tiled blocks and pictures and the encoding and decoding device using tiled blocks and pictures are not limited to those described above, and other effects not mentioned can be clearly understood by ordinary technicians in the field from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] A brief description of each figure is provided to provide a better understanding of the drawings referenced herein.

[0013] Figure 1 is a schematic block diagram of an image decoding apparatus according to an embodiment.

[0014] Figure 2 is a flowchart of an image decoding apparatus according to an embodiment.

[0015] Figure 3 A process of determining at least one coding unit by splitting a current coding unit, performed by an image decoding apparatus according to an embodiment, is illustrated.

[0016] Figure 4 A process of determining at least one coding unit by splitting a non-square coding unit, performed by an image decoding apparatus according to an embodiment, is illustrated.

[0017] Figure 5 A process of splitting a coding unit based on at least one of block shape information or division shape pattern information, performed by an image decoding apparatus according to an embodiment, is illustrated.

[0018] Figure 6 A method of determining a specific coding unit from among odd-numbered coding units, performed by an image decoding apparatus according to an embodiment, is illustrated.

[0019] Figure 7 An order in which a plurality of coding units are processed when an image decoding apparatus determines a plurality of coding units by splitting a current coding unit according to an embodiment is illustrated.

[0020] Figure 8 A process of determining that a current coding unit is to be split into an odd number of coding units, performed by an image decoding apparatus when coding units cannot be processed in a predetermined order, according to an embodiment is illustrated.

[0021] Fig. 9 A process of determining at least one coding unit by splitting a first coding unit, performed by an image decoding apparatus according to an embodiment, is illustrated.

[0022] Fig.10 It is shown that according to an embodiment, when a second coding unit having a non-square shape determined by splitting a first coding unit by an image decoding apparatus satisfies a specific condition, shapes into which the second coding unit may be split are restricted.

[0023] Fig.11 A process of splitting a square coding unit performed by an image decoding apparatus when division shape pattern information cannot indicate that a square coding unit is split into four square coding units according to an embodiment is illustrated.

[0024] 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.

[0025] Fig.13 A process of determining a depth of a coding unit as a shape and a size of a coding unit change when a coding unit is recursively split so that a plurality of coding units are determined according to an embodiment is illustrated.

[0026] 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.

[0027] Fig.15 It is illustrated that a plurality of coding units are determined based on a plurality of specific data units included in a picture according to an embodiment.

[0028] Fig.16 It is a block diagram of an image encoding and decoding system.

[0029] Fig.17is a block diagram of a video decoding apparatus according to an embodiment.

[0030] Fig.18 is a flowchart of a video decoding method according to an embodiment.

[0031] Fig.19 is a block diagram of a video encoding apparatus according to an embodiment.

[0032] Fig. 20 is a flowchart of a video encoding method according to an embodiment.

[0033] Fig.21 and Fig. 22 A relationship between a maximum coding unit, a tile, and a slice in a tile partitioning method according to an embodiment is illustrated.

[0034] Fig.23 Strips and region of interest (ROI) strips for parallel processing according to an embodiment are shown.

[0035] Fig.24 Layout of parallel blocks included in a slice and an ROI slice for parallel processing according to an embodiment is shown.

[0036] Fig.25 A limited range of motion compensation according to an embodiment is shown.

[0037] Fig.26 is a diagram illustrating a reference picture list of a tile according to an embodiment.

[0038] Fig. 27 is a diagram illustrating a method of transmitting a reference picture list of a tile according to an embodiment.

[0039] Fig.28 is a diagram illustrating a surrounding strip according to an embodiment.

[0040] Fig.29 is a diagram illustrating a surrounding strip according to an embodiment.

[0041] Fig.30 is a diagram illustrating a surrounding strip according to an embodiment.

[0042] Fig.31 It is shown that the Fig.30 A table of the order of parallel blocks in a wrapping stripe.

[0043] Fig.32 An example is shown in which the strips for parallel processing and the strips according to the ROI do not coincide with each other within the screen.

[0044] Fig.33 Shown for configuration Fig.32 Parallel blocks of the stripes shown in .

[0045] Fig.34 Shows the Fig.33 The layout of parallel blocks for each stripe.

[0046] Fig.35 The syntax of a parallel block group header for a parallel block group according to an embodiment is shown.

[0047] Fig.36 The syntax of parallel block group data for a parallel block group according to an embodiment is shown.

[0048] Fig.37 A process of obtaining the number of tile blocks included in a tile block group according to an embodiment is illustrated.

[0049] Fig.38 A parallel block group at an arbitrary position according to an embodiment is shown.

[0050] Fig.39 The syntax of a parallel block group header and parallel block group data for a parallel block group according to an embodiment is shown.

[0051] Fig.40 A process of obtaining the number of tile blocks included in a tile block group and corresponding identification numbers of the tile blocks according to an embodiment is illustrated.

[0052] Best Mode

[0053] According to an embodiment of the present disclosure, a video decoding method includes the following operations: an operation of obtaining identification information of a first parallel block and identification information of a last parallel block from a bit stream, wherein the first parallel block and the last parallel block are included in a first stripe; an operation of determining an index difference between the first parallel block and the last parallel block based on a result of comparing the identification information of the first parallel block with the identification information of the last parallel block; an operation of determining the number of parallel blocks included in the first stripe by using the index difference between the first parallel block and the last parallel block; and an operation of decoding multiple parallel blocks included in the first stripe according to a coding order by using the number of parallel blocks included in the first stripe, the identification information of the first parallel block, and the identification information of the last parallel block.

[0054] The operation of determining the index difference between the first parallel block and the last parallel block may include: when the identification information of the first parallel block is greater than the identification information of the last parallel block, determining a value determined by adding the number of parallel blocks included in the picture and a value determined by subtracting the identification information of the first parallel block from the identification information of the last parallel block as the index difference between the first parallel block and the last parallel block.

[0055] The operation of determining the index difference between the first parallel block and the last parallel block may include: when the identification information of the first parallel block is not greater than the identification information of the last parallel block and the column number of the first parallel block is not greater than the column number of the last parallel block, determining a value determined by subtracting the index of the first parallel block from the index of the last parallel block as the index difference between the first parallel block and the last parallel block.

[0056] The operation of determining the index difference between the first parallel block and the last parallel block may include: when the identification information of the first parallel block is not greater than the identification information of the last parallel block and the column number of the first parallel block is greater than the column number of the last parallel block, a value determined by adding the number of parallel block columns included in the picture and a value determined by subtracting the identification information of the first parallel block from the identification information of the last parallel block is determined as the index difference between the first parallel block and the last parallel block.

[0057] The video decoding method may further include: when the picture is divided into the plurality of parallel blocks, the picture is divided into a plurality of coding strips that do not overlap with each other, and each of the plurality of coding strips includes one or more parallel blocks among the plurality of parallel blocks, obtaining coding strip mapping information and decoding strip mapping information, wherein the coding strip mapping information includes information about the parallel blocks included in the coding strip, and the decoding strip mapping information includes information about the parallel blocks included in the decoding strip for the display area; and decoding the parallel blocks overlapping in the coding strip and the decoding strip by using the coding strip mapping information and the decoding strip mapping information.

[0058] The operation of decoding the coding slice and the decoding slice may include: when a first parallel block and a second parallel block among the parallel blocks included in the current decoding slice based on the decoding slice mapping information are both included in the current coding slice according to the coding slice mapping information, decoding the first parallel block by referring to the second parallel block; and when the first parallel block is included in the current coding slice and the second parallel block is not included in the current coding slice according to the coding slice mapping information, setting the second parallel block to an unpredictable state.

[0059] The operation of decoding the multiple parallel blocks according to the encoding order may include: determining a reference picture list for each of the multiple parallel blocks; and decoding a current parallel block among the multiple parallel blocks by referring to a parallel block existing at a specific position assigned to the current parallel block in a first reference picture included in the reference picture list of the current parallel block.

[0060] The video decoding method may further include: determining whether the second slice is a slice at an arbitrary position based on arbitrary position information of the second slice received from the bitstream; when the second slice is the slice at the arbitrary position, determining an identification number of a parallel block included in the second slice and existing at the arbitrary position; and decoding a maximum coding unit included in the parallel block at the arbitrary position.

[0061] The operation of determining the identification number of the parallel block included in the second stripe and existing at the arbitrary position may include: when the second stripe is the stripe at the arbitrary position, obtaining information indicating the number of remaining stripes except the first parallel block in the second stripe from a bitstream; determining the number of parallel blocks included in the second stripe based on the information indicating the number of remaining stripes; for each parallel block included in the second stripe, obtaining information indicating the difference in identification information between a current parallel block and a parallel block of previous identification information from a bitstream; and determining a value determined by adding the identification information of the first parallel block included in the second stripe and the information indicating the difference in identification information to the previous identification information as the identification information of the current parallel block.

[0062] The picture may be divided into one or more parallel block rows and into one or more parallel block columns, the parallel blocks may be rectangular areas including one or more maximum coding units into which the picture is divided, the parallel blocks may be included in the one or more parallel block rows and in the one or more parallel block columns, and decoding of the one or more parallel blocks may include decoding the maximum coding units included in the one or more parallel blocks.

[0063] According to an embodiment of the present disclosure, a video decoding device includes: a syntax element obtainer, configured to obtain identification information of a first parallel block and identification information of a last parallel block from a bitstream, wherein the first parallel block and the last parallel block are included in a first slice; and a decoder, configured to determine an index difference between the first parallel block and the last parallel block based on a result of comparing the identification information of the first parallel block with the identification information of the last parallel block, determine the number of parallel blocks included in the first slice by using the index difference between the first parallel block and the last parallel block, and decode multiple parallel blocks included in the first slice according to a coding order by using the number of parallel blocks included in the first slice.

[0064] According to an embodiment of the present disclosure, a video encoding method includes: when parallel blocks included in a first stripe are discontinuously located within a picture, sequentially encoding the parallel blocks included in the first stripe; encoding identification information of a first parallel block located at an upper left end among the parallel blocks included in the first stripe; and encoding identification information of a last parallel block located at a lower right end among the parallel blocks included in the first stripe.

[0065] When the identification information of the first parallel block is greater than the identification information of the last parallel block, a value determined by adding the number of parallel blocks included in the picture and a value determined by subtracting the identification information of the first parallel block from the identification information of the last parallel block may be determined as the index difference between the first parallel block and the last parallel block.

[0066] When the identification information of the first parallel block is not greater than the identification information of the last parallel block and the column number of the first parallel block is not greater than the column number of the last parallel block, a value determined by subtracting the index of the first parallel block from the index of the last parallel block may be determined as the index difference between the first parallel block and the last parallel block.

[0067] When the identification information of the first parallel block is not greater than the identification information of the last parallel block and the column number of the first parallel block is greater than the column number of the last parallel block, a value determined by adding the number of parallel block columns included in the picture and a value determined by subtracting the identification information of the first parallel block from the identification information of the last parallel block may be determined as the index difference between the first parallel block and the last parallel block.

[0068] According to an embodiment of the present disclosure, a computer-readable recording medium records a computer program for implementing the video decoding method on a computer.

[0069] According to an embodiment of the present disclosure, a computer-readable recording medium records a computer program for implementing the video encoding method on a computer. DETAILED DESCRIPTION

[0070] Since the present disclosure allows various changes and multiple examples, specific embodiments will be shown in the drawings and described in detail 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 present disclosure are included in the present disclosure.

[0071] In the description of the embodiments, when it is considered that the specific detailed description 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 numbers (e.g., first, second, etc.) used in the description of the specification are only identifiers for distinguishing one element from another element.

[0072] Furthermore, in this 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 unless otherwise specified, the elements may optionally be connected or coupled to each other using intermediate elements between the elements.

[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, in addition to its own main function, each element described below may also additionally perform some or all of the functions performed by another element, and some 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" 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 area may be a sample. A unit including at least one such sample may be defined as a block.

[0076] Also, in the present specification, a 'current block' may mean a block of a maximum coding unit, a coding unit, a prediction unit, or a transformation unit of a current image to be encoded or decoded.

[0077] In the present specification, a motion vector in the list 0 direction may mean a motion vector indicating a block in a reference picture included in list 0, and a motion vector in the list 1 direction may mean a motion vector indicating a block in a reference picture included in list 1. In addition, a unidirectional motion vector may mean a motion vector indicating a block in a reference picture included in list 0 or list 1, and a bidirectional motion vector may mean that the motion vector includes a motion vector in the list 0 direction and a motion vector in the list 1 direction.

[0078] Now refer to Figures 1 to 16 The image encoding device and the image decoding device as well as the image encoding method and the image decoding method according to the embodiment are described. Figures 3 to 16 A method for determining a data unit of an image according to an embodiment is described, and reference will be made to Figures 17 to 28 A video encoding / decoding method using an inter prediction method of a tile and a tile group according to an embodiment is described.

[0079] Now refer to Figure 1 and Figure 2 A method and apparatus for adaptive selection based on various shapes of coding units according to an embodiment of the present disclosure are described.

[0080] Figure 1 is a schematic block diagram of an image decoding device 100 according to an embodiment of the present disclosure.

[0081] The image decoding apparatus 100 may include a receiver 110 and a decoder 120. The receiver 110 and the decoder 120 may include at least one processor. The receiver 110 and the decoder 120 may include a memory storing instructions to be executed by the at least one processor.

[0082] The receiver 110 may receive a bitstream. The bitstream includes information of an image encoded by the image encoding device 2200 described later. The bitstream may be sent from the image encoding device 2200. The image encoding device 2200 and the image decoding device 100 may be connected by wire or wirelessly, and the receiver 110 may receive the bitstream by wire or wirelessly. The receiver 110 may receive the bitstream from a storage medium such as an optical medium or a hard disk. The decoder 120 may reconstruct the image based on information obtained from the received bitstream. The decoder 120 may obtain syntax elements for reconstructing the image from the bitstream. The decoder 120 may reconstruct the image based on the syntax elements.

[0083] Will refer to Figure 2 The operation of the image decoding apparatus 100 is described in detail.

[0084] Figure 2 is a flowchart of an image decoding device according to an embodiment of the present disclosure.

[0085] According to an embodiment of the present disclosure, the receiver 110 receives a bit stream.

[0086] The image decoding apparatus 100 may perform an operation 210 of obtaining a binary bit string corresponding to a division shape pattern of a coding unit from a bitstream. The image decoding apparatus 100 performs an operation 220 of determining a division rule of a coding unit. The image decoding apparatus 100 performs an operation 230 of dividing a coding unit into a plurality of coding units based on at least one of a binary bit string corresponding to the division shape pattern or a division rule. The image decoding apparatus 100 may determine an allowable first range of a size of a coding unit according to an aspect ratio of the coding unit in order to determine the division rule. The image decoding apparatus 100 may determine an allowable second range of a size of a coding unit according to a division shape pattern of the coding unit in order to determine the division rule.

[0087] Hereinafter, the division of coding units will be described in detail according to an embodiment of the present disclosure.

[0088] First, a picture may be divided into one or more slices or one or more tiles. A slice and a tile may be a sequence of one or more maximum coding units (coding tree units (CTUs)). There is a maximum coding block (coding tree block (CTB)) conceptually comparable to the maximum coding unit (CTU).

[0089] A maximum coding block (CTB) represents an N×N block including N×N samples (where N is an integer). Each color component may be divided into one or more maximum coding blocks.

[0090] When a picture has three sample arrays (sample arrays for Y, Cr, and Cb components), the maximum coding unit (CTU) includes a maximum coding block of luma samples, two corresponding maximum coding blocks of chroma samples, and a syntax structure for encoding luma samples and chroma samples. When the picture is a monochrome picture, the maximum coding unit includes a maximum 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 maximum coding unit includes a syntax structure for encoding the picture and the samples of the picture.

[0091] One maximum coding block (CTB) may be divided into M×N coding blocks including M×N samples (where M and N are integers).

[0092] When a picture has sample arrays for Y, Cr, and Cb components, a coding unit (CU) includes a coding block of luma samples, two corresponding coding blocks of chroma samples, and a syntax structure for encoding luma samples and 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 coded in a color plane separated according to color components, the coding unit includes a syntax structure for encoding the picture and the samples of the picture.

[0093] As described above, the maximum coding block and the maximum coding unit are conceptually distinguished from each other, and the coding block and the coding unit are conceptually distinguished from each other. That is, the (maximum) coding unit refers to a data structure including a (maximum) coding block containing corresponding samples and a syntax structure corresponding to the (maximum) coding block. However, because a person of ordinary skill in the art understands that a (maximum) coding unit or a (maximum) coding block refers to a block of a predetermined size including a predetermined number of samples, unless otherwise described, the maximum coding block and the maximum coding unit or the coding block and the coding unit are mentioned in the following description without distinction.

[0094] The image may be divided into maximum coding units (CTUs). The size of each maximum coding unit may be determined based on information obtained from the bitstream. The shape of each maximum coding unit may be a square shape of the same size. However, the embodiment is not limited thereto.

[0095] 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.

[0096] For example, information about the luminance block size difference and the maximum size of the luminance coding block that can be divided into two may be obtained from the bitstream. The information about the luminance block size difference may refer to the size difference between the luminance maximum coding unit and the maximum luminance coding block that can be divided into two. Therefore, when the information about the maximum size of the luminance coding block that can be divided into two obtained from the bitstream and the information about the luminance block size difference are combined with each other, the size of the luminance maximum coding unit may be determined. The size of the chrominance maximum coding unit may be determined by using the size of the luminance maximum coding unit. For example, when the Y:Cb:Cr ratio is 4:2:0 according to the color format, the size of the chrominance block may be half the size of the luminance block, and the size of the chrominance maximum coding unit may be half the size of the luminance maximum coding unit.

[0097] According to an embodiment, since information about the maximum size of a brightness coding block that can be divided into two is obtained from a bitstream, the maximum size of a brightness coding block that can be divided into two can be variably determined. In contrast, the maximum size of a brightness coding block that can be divided into three can be fixed. For example, the maximum size of a brightness coding block that can be divided into three in an I picture can be 32×32, and the maximum size of a brightness coding block that can be divided into three in a P picture or a B picture can be 64×64.

[0098] In addition, the maximum coding unit may be hierarchically split into coding units based on the split shape pattern information obtained from the bitstream. At least one of information indicating whether to perform four-partitioning, information indicating whether to perform multi-partitioning, split direction information, or split type information may be obtained from the bitstream as the split shape pattern information.

[0099] For example, the information indicating whether to perform four-split may indicate whether the current coding unit is divided into four (QUAD_SPLIT).

[0100] When the current coding unit is not divided into four parts, the information indicating whether multi-split is performed may indicate whether the current coding unit is no longer split (NO_SPLIT) or is divided into two parts / three parts.

[0101] When the current coding unit is split into two or three, the split direction information indicates whether the current coding unit is split in a horizontal direction or a vertical direction.

[0102] 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 split into two or three.

[0103] 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 split into two in the horizontal direction may be determined as a horizontal two-split mode (SPLIT_BT_HOR), the split mode when the current coding unit is split into three in the horizontal direction may be determined as a horizontal three-split mode (SPLIT_TT_HOR), the split mode when the current coding unit is split into two in the vertical direction may be determined as a vertical two-split mode (SPLIT_BT_VER), and the split mode when the current coding unit is split into three in the vertical direction may be determined as a vertical three-split mode SPLIT_TT_VER.

[0104] 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 divide the coding unit into four, whether to not divide the coding unit, the division direction, and the division type based on a binary bit string.

[0105] The coding unit may be smaller than or equal to the maximum coding unit. For example, since the maximum coding unit is a coding unit having the maximum size, the maximum coding unit is one of the coding units. When the division shape mode information about the maximum coding unit indicates that division is not performed, the coding unit determined in the maximum coding unit has the same size as the maximum coding unit. When the division shape mode information about the maximum coding unit indicates that division is performed, the maximum coding unit may be divided into coding units. 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 the image is not limited thereto, and the maximum coding unit 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 more detail.

[0106] One or more prediction blocks for prediction may be determined from a coding unit. A prediction block may be equal to or smaller than a coding unit. One or more transform blocks for transform may be determined from a coding unit. A transform block may be equal to or smaller than a coding unit.

[0107] The shapes and sizes of the transform block and the prediction block may be unrelated to each other.

[0108] According to another embodiment, prediction may be performed by using a coding unit as a prediction unit.Transformation may be performed by using a coding unit as a transform block.

[0109] Will refer to Figures 3 to 16 The division of the coding unit is described in more detail. The current block and the neighboring block of the present disclosure may indicate one of the maximum coding unit, the coding unit, the prediction block, and the transformation block. The current block of the current coding unit is a block currently being decoded or encoded or a block currently being divided. 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 at the lower left, left, upper left, above, upper right, right, or lower right of the current block.

[0110] Figure 3 A process of determining at least one coding unit by splitting a current coding unit, performed by an image decoding apparatus according to an embodiment of the present disclosure, is illustrated.

[0111] 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.

[0112] 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.

[0113] 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, or 32:1. 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 of the coding unit and the height length of the coding unit. 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.

[0114] 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.

[0115] 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 2200 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 maximum coding unit or the minimum coding unit. For example, the image decoding device 100 may determine the division shape pattern information for the maximum coding unit as four divisions. The image decoding device 100 may determine the division shape pattern information about the minimum coding unit as "no division is performed". In detail, the image decoding device 100 may determine the size of the maximum coding unit to be 256×256. The image decoding device 100 may determine the pre-agreed division shape pattern information to be four divisions. Four divisions are division shape patterns 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 coding unit of a size of 128×128 from a maximum coding unit of a size of 256×256 based on the division shape pattern information. 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.

[0116] 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 predetermined division method.

[0117] Reference Figure 3 According 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 three divisions are 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 three divisions are 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 specific partitioning method for partitioning the square coding unit will be described in detail below with respect to various embodiments.

[0118] Figure 4 A process of determining at least one coding unit by splitting a non-square coding unit, performed by an image decoding apparatus according to an embodiment of the present disclosure, is illustrated.

[0119] 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 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 specific division method for dividing a non-square coding unit will be described in detail below with respect to various embodiments.

[0120] 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.

[0121] 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 long side of the current coding unit 400 or 450 in consideration of the shape of the current coding unit 400 or 450.

[0122] According to an embodiment, when the division shape pattern information indicates that the coding unit is divided (three-divided) 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.

[0123] According to an embodiment, the aspect ratio of the current coding unit 400 or 450 may be 4:1 or 1:4. When the aspect ratio is 4:1, since the width length is longer than the height length, the block shape information may be a horizontal direction. When the aspect ratio is 1:4, since the width length is shorter than the height length, the block shape information may be a 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. 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 a vertical direction, the image decoding apparatus 100 may determine the coding units 430a to 430c by dividing the current coding unit 400 in a horizontal direction. When the current coding unit 450 is in a horizontal direction, the image decoding apparatus 100 may determine the coding units 480a to 480c by dividing the current coding unit 450 in a vertical direction.

[0124] 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 specific 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. In other words, 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.

[0125] 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 regarding a coding unit 430b or 480b that is located at the center of three coding units 430a, 430b, and 430c or 480a, 480b, and 480c generated by dividing the current coding unit 400 or 450 to be different from decoding processes of other coding units 430a and 430c or 480a and 480c. For example, unlike 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 further divided or being divided only a specific number of times.

[0126] Figure 5 A process of dividing a coding unit based on at least one of block shape information or division shape pattern information, performed by an image decoding apparatus according to an embodiment of the present disclosure, is illustrated.

[0127] According to an embodiment, the image decoding apparatus 100 may determine whether to divide the first coding unit 500 having a square shape into coding units or not to divide the first coding unit 500 having a square shape based on at least one of the block shape information or the division shape pattern information. According to an embodiment, when the division shape pattern 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 before and after dividing the coding unit. 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 now be understood that the relationship between the first coding unit, the second coding unit, and the third coding unit follows the above description.

[0128] 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 determined by splitting the first coding unit 500. 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. In other words, 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.

[0129] Reference Figure 5 , a specific coding unit (e.g., a coding unit at a center 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 a 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 that can be used to recursively divide coding units will be described below with respect to various embodiments.

[0130] 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 specific restrictions on a specific 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 of the odd number of third coding units 520b, 520c, and 520d to no longer be divided or divided a set number of times.

[0131] 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 predetermined 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 a simple embodiment, and is therefore not limited to the above-mentioned embodiment, and may include various limitations for decoding the third coding unit 520c at the center position differently from the other third coding units 520b and 520d.

[0132] 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.

[0133] Figure 6 A method of determining a specific coding unit from among odd-numbered coding units, performed by an image decoding apparatus according to an embodiment of the present disclosure, is illustrated.

[0134] 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 the division shape mode information can 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 predetermined 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.

[0135] According to an embodiment, when the current coding unit is divided into a specific 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.

[0136] 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 specific position.

[0137] 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 corresponding 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 respectively 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 at the center position by determining the corresponding positions of the coding units 620a, 620b, and 620c based on information indicating the positions of specific 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 corresponding positions of the coding units 620a, 620b, and 620c based on information indicating the corresponding positions of the upper left samples 630a, 630b, and 630c of the coding units 620a, 620b, and 620c.

[0138] According to an embodiment, the information indicating the corresponding 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 corresponding positions or coordinates of the coding units 620a, 620b, and 620c in the picture. According to an embodiment, the information indicating the corresponding 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 corresponding widths or heights of the coding units 620a, 620b, and 620c included in the current coding unit 600, and the widths or heights may correspond to the information indicating the difference between the corresponding coordinates of the coding units 620a, 620b, and 620c in the picture. In other words, the image decoding apparatus 100 may determine the coding unit 620b at the center position by directly using information about the positions or coordinates of the coding units 620a, 620b, and 620c in the picture or by using information about the width or height of the coding unit corresponding to the difference between the coordinates.

[0139] 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 screen, or coordinates (dxb, dyb) as information 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) as information 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. A method of determining a coding unit at a specific position by using the coordinates of the sample points included in the coding unit as information indicating the positions of the sample points is not limited to the above method, and may be any of various arithmetic methods capable of using the coordinates of the sample points.

[0140] 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 according to a specific 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.

[0141] 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 corresponding 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 and 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, 620b, and 620c. Referring to Figure 6 , the image decoding apparatus 100 may determine the intermediate 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 specific 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 specific 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 specific position by comparing the size of the coding unit determined based on the coordinates of the predetermined sample points may be used.

[0142] 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 respective sizes of the coding units 660a, 660b, and 660c by using the coordinates (xd, yd), (xe, ye), and (xf, yf) indicating the respective positions of the coding units 660a, 660b, and 660c.

[0143] According to an embodiment, the image decoding apparatus 100 may determine the width of the left coding unit 660a as xe-xd. The image decoding apparatus 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 apparatus 100 may determine the width of the middle coding unit 660b as xf-xe. The image decoding apparatus 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 apparatus 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 and the width or height of the left coding unit 660a and the middle coding unit 660b. 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 660a, 660b, and 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 specific 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 specific 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 specific position by comparing the size of the coding unit determined based on the coordinates of the predetermined sample points may be used.

[0144] 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 the position of any sample included in the coding unit may be used.

[0145] According to an embodiment, the image decoding apparatus 100 may select a coding unit at a specific position from an odd number of coding units determined by dividing the current coding unit, taking into account 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 apparatus 100 may determine a coding unit at a specific position along the horizontal direction. That is, the image decoding apparatus 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 apparatus 100 may determine a coding unit at a specific position along the vertical direction. In other words, the image decoding apparatus 100 may determine one of the coding units at different positions along the vertical direction and may impose restrictions on the coding unit.

[0146] 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 specific position among the even-numbered coding units. The image decoding apparatus 100 may determine the even-numbered coding units by dividing (dividing) the current coding unit, and may determine the coding unit at the specific position by using information about the positions of the even-numbered coding units. The operations related thereto may be the same as those already described above with respect to Figure 6 The operation of determining a coding unit at a specific position (eg, a center position) among odd-numbered coding units described in detail corresponds, and thus a detailed description thereof is not provided here.

[0147] According to an embodiment, when a non-square current coding unit is split into a plurality of coding units, specific information about a coding unit at a specific position may be used in a split operation to determine a coding unit at a specific position among the plurality of coding units. 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 or split shape pattern information stored in samples included in an intermediate coding unit in a split operation.

[0148] 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 the coding unit 620b at the 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 in consideration of 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 the 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 the coding unit at the center position may be determined using various types of information.

[0149] According to an embodiment, specific information for identifying a coding unit at a specific position may be obtained from a specific 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 specific information may be obtained, and may impose a specific restriction on a coding unit 620b including the sample 640. However, the position of the sample from which specific information may be obtained is not limited to the above-mentioned position, and may include any position included in the coding unit 620b to be determined as a sample for restriction.

[0150] According to an embodiment, the position of the sample at which specific 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 specific 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 or height of the current coding unit in half as a sample at which specific information can be obtained by using at least one of the information about the width of the current coding unit or 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 including the boundary for dividing the long side of the current coding unit in half as a sample at which specific information can be obtained.

[0151] 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.

[0152] 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 specific block (for example, the current coding unit).

[0153] Figure 7 An order in which a plurality of coding units are processed when an image decoding apparatus determines a plurality of coding units by splitting a current coding unit according to an embodiment of the present disclosure is illustrated.

[0154] 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 a vertical direction, determine the second coding units 730a and 730b by dividing the first coding unit 700 in a horizontal direction, or determine the second coding units 750a, 750b, 750c and 750d by dividing the first coding unit 700 in vertical and horizontal directions.

[0155] 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, 750b, 750c, and 750d determined by dividing the first coding unit 700 in the vertical and horizontal directions in a specific order (for example, in a raster scan order or a zigzag scan order 750e), wherein the specific order is used to process the coding units in one row and then process the coding units in the next row.

[0156] 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 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. Therefore, 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.

[0157] 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.

[0158] 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 specific order using various methods.

[0159] Figure 8 A process of determining that a current coding unit is to be split into an odd number of coding units, performed by an image decoding apparatus, is illustrated when coding units cannot be processed in a predetermined order according to an embodiment of the present disclosure.

[0160] 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.

[0161] 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 specific 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 or the division shape pattern 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 specific 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 that enable processing in a specific order.

[0162] 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 that enables processing in a specific order, and the condition is related to whether at least one of the width or 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 specific restriction on the coding unit at a specific position in the divided coding unit. The restriction or the specific position has been described above with respect to various embodiments, and therefore a detailed description thereof will not be provided here.

[0163] Fig. 9 A process of determining at least one coding unit by splitting a first coding unit, performed by an image decoding apparatus according to an embodiment of the present disclosure, is illustrated.

[0164] 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 receiver 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 first coding unit 900 has a square shape and 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).

[0165] 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 specific order, and the condition is related to whether at least one of the width or 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 specific 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 specific restriction on the coding unit at a specific position in the divided coding unit. The restriction or the specific position has been described above with respect to various embodiments, so a detailed description thereof will not be provided here.

[0166] According to an embodiment, the image decoding apparatus 100 may determine coding units of various shapes by splitting the first coding unit.

[0167] 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.

[0168] Fig.10 It is shown that according to an embodiment of the present disclosure, when a second coding unit having a non-square shape determined by an image decoding apparatus splitting a first coding unit satisfies a specific condition, shapes into which the second coding unit may be split are restricted.

[0169] 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 receiver 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.

[0170] 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.

[0171] Fig.11 A process of splitting a square coding unit performed by an image decoding apparatus when division shape pattern information cannot indicate that the square coding unit is split into four square coding units according to an embodiment of the present disclosure is illustrated.

[0172] 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.

[0173] 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.

[0174] 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.

[0175] 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.

[0176] Fig.12 It is shown that a processing order among a plurality of coding units according to an embodiment of the present disclosure may be changed according to a process of dividing the coding units.

[0177] According to an embodiment, the image decoding apparatus 100 may divide the first coding unit 1200 based on the division shape mode information. When the block shape indicates a square shape and the division shape mode information indicates that the first coding unit 1200 is divided in at least one of the horizontal direction or 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.

[0178] According to an embodiment, the image decoding apparatus 100 may process the coding units in a specific order. Figure 7 The operations of processing the coding units in a specific order are 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.

[0179] 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.

[0180] 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.

[0181] 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.

[0182] Fig.13 A process of determining a depth of a coding unit as a shape and a size of a coding unit change when a coding unit is recursively split so that a plurality of coding units are determined according to an embodiment of the present disclosure is illustrated.

[0183] According to an embodiment, the image decoding device 100 may determine the depth of the coding unit based on a specific criterion. For example, the specific 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, the coding unit with an increased depth is represented as a coding unit of a lower depth.

[0184] 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 by 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 by 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.

[0185] 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).

[0186] The image decoding apparatus 100 may determine the second coding unit 1302, 1312, or 1322 by splitting at least one of the width or the height of the first coding unit 1310 having a size of N×2N. In other words, 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.

[0187] 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 or 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.

[0188] 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 or 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.

[0189] 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 or 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.

[0190] 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 or 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 vertical and horizontal directions.

[0191] 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.

[0192] 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.

[0193] Fig.14 A depth that may be determined based on a shape and a size of a coding unit and a partial index (PID) for distinguishing coding units according to an embodiment of the present disclosure are illustrated.

[0194] 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 or 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.

[0195] 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 lower than the depth D of the first coding unit 1400.

[0196] 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.

[0197] According to an embodiment, the depths 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 lengths of their long sides. For example, since the lengths of the sides of the square second coding units 1412a and 1412b are 1 / 2 of the lengths of the sides of the non-square first coding unit 1410 whose height is longer than the width, the depths of the square second coding units 1412a and 1412b are D+1, which is 1 lower than the depth D of the non-square first coding unit 1410.

[0198] 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 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 lower than the depth D of the non-square first coding unit 1410. The image decoding apparatus 100 may determine the depths of the coding units split from the non-square first coding unit 1420 having a width longer than a height by using the above-described method of determining the depths of the coding units split from the first coding unit 1410 .

[0199] According to an embodiment, when the odd-numbered divided coding units do not have equal sizes, the image decoding apparatus 100 may determine a PID for identifying the divided 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. In other words, 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 thus may 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.

[0200] 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 having a height longer than a width. The image decoding apparatus 100 may use corresponding PIDs indicating a plurality of coding units in order to identify the plurality of coding units. According to an embodiment, the PID may be obtained from a sample point at a specific position of each coding unit (e.g., an upper left sample point).

[0201] According to an embodiment, the image decoding apparatus 100 may determine a coding unit at a specific 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 corresponding PIDs of the odd-numbered divided coding units so as to determine a coding unit at a center position among the odd-numbered coding units. The image decoding apparatus 100 may determine the coding unit 1414b having a PID corresponding to an intermediate value among the PIDs of the coding units as a coding unit at a 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 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 specific position among the odd number of coding units (e.g., a coding unit at the center position) has a size different from that of other coding units. In this case, the image decoding apparatus 100 may determine the coding units having different sizes and located at the center position by using the PIDs of the coding units. However, the PID and the size or position of the coding unit at a specific position are not limited to the above examples, and various PIDs and various positions and sizes of the coding unit may be used.

[0202] According to an embodiment, the image decoding apparatus 100 may use a specific data unit in which recursive splitting of a coding unit starts.

[0203] Fig.15 It is shown that a plurality of coding units are determined based on a plurality of specific data units included in a picture according to an embodiment of the present disclosure.

[0204] According to an embodiment, a specific 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 specific 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, the specific data unit is referred to as a reference data unit.

[0205] According to an embodiment, the reference data unit may have a specific size and a specific 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.

[0206] 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.

[0207] 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 various sizes 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 units.

[0208] 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 maximum coding unit, etc.) that can include one or more reference coding units.

[0209] According to an embodiment, the receiver 110 of the image decoding apparatus 100 may obtain at least one of reference coding unit shape information or reference coding unit size information for each of various data units from a 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.

[0210] 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 specific condition. That is, the receiver 110 may obtain only a PID for identifying the size and shape of the reference coding unit for each slice, slice segment, tile, tile group, or maximum coding unit from a bitstream, wherein the slice, slice segment, tile, tile group, or maximum coding unit 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 maximum coding unit, etc.) that satisfies a specific condition. The image decoding apparatus 100 may determine the size and shape of the reference coding unit for each data unit that satisfies the specific condition by using a PID. When the reference coding unit shape information and the reference coding unit size information are obtained and used from a bitstream for 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 sizes or shapes of the reference coding units corresponding to the PID for identifying the size and shape of the reference coding units may be predetermined. That is, the image decoding apparatus 100 may determine at least one of the sizes or shapes of the reference coding units included in the data unit serving as a basis for obtaining the PID by selecting at least one of the sizes or shapes of the reference coding units predetermined according to the PID.

[0211] According to an embodiment, the image decoding device 100 may use one or more reference coding units included in the maximum coding unit. That is, the maximum coding unit divided from the image 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 or height of the maximum coding unit may be an integer multiple of at least one of the width or height of each reference coding unit. According to an embodiment, the size of the reference coding unit may be obtained by dividing the maximum coding unit 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 maximum coding unit n times based on a quadtree structure, and the reference coding unit may be divided based on at least one of block shape information or division shape pattern information.

[0212] 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 maximum coding unit, each reference coding unit, or each processing block, and may use the obtained syntax element.

[0213] Hereinafter, a method for determining a division rule according to an embodiment of the present disclosure will be described in detail.

[0214] 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 2200. 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 tile header, or a tile group header. The image decoding apparatus 100 may determine a division rule differently according to a frame, a slice, a tile, a temporal layer, a maximum coding unit, or a coding unit.

[0215] 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 decoding device 100 may predetermine the division rule based on the block shape of the coding unit. However, the embodiments of the present disclosure are not limited thereto. The image decoding device 100 may determine the division rule based on information obtained from the received bit stream.

[0216] The shape of the coding unit may include a square shape and a non-square shape. When the width length and height length of the coding unit are the same, the image decoding apparatus 100 may determine the shape of the coding unit as a square. In addition, when the width length and height length of the coding unit are different, the image decoding apparatus 100 may determine the shape of the coding unit as a non-square.

[0217] 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 whose long sides have the same length as having the same size. In addition, the image decoding apparatus 100 may apply the same division rule to the coding units whose long sides have the same length.

[0218] 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.

[0219] 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.

[0220] 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.

[0221] 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.

[0222] 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 embodiments of the present disclosure are 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. As has been mentioned above, Fig.12 The decoding process order is described, so its details will not be provided here.

[0223] Fig.16 It is a block diagram of an image encoding and decoding system.

[0224] The encoding end 1610 of the image encoding and decoding system 1600 transmits a bit stream of an encoded image, and the decoding end 1650 thereof outputs a reconstructed image by receiving and decoding the bit stream. The decoding end 1650 may have a configuration similar to that of the image decoding apparatus 100.

[0225] At the encoding end 1610, the prediction encoder 1615 outputs a reference image via inter-frame prediction and intra-frame prediction, and the transformer and quantizer 1620 quantizes the residual data between the reference image and the current input image into quantized transform coefficients and outputs the quantized transform coefficients. The entropy encoder 1625 transforms the quantized transform coefficients by encoding the quantized transform coefficients, and outputs the transformed quantized transform coefficients as a bit stream. The quantized transform coefficients are reconstructed into data in the spatial domain via the inverse quantizer and inverse transformer 1630, and the data in the spatial domain is output as a reconstructed image via the deblocking filter 1635 and the loop filter 1640. The reconstructed image can be used as a reference image for the next input image via the prediction encoder 1615.

[0226] The encoded image data in the bit stream received by the decoding end 1650 is reconstructed as residual data in the spatial domain via the entropy decoder 1655 and the inverse quantizer and inverse transformer 1660. When the residual data and the reference image output from the prediction decoder 1675 are combined, the image data in the spatial domain is configured, and the deblocking filter 1665 and the loop filter 1670 can output a reconstructed image about the current original image by filtering the image data in the spatial domain. The reconstructed image can be used by the prediction decoder 1675 as a reference image for the next original image.

[0227] The loop filter 1640 of the encoding end 1610 performs loop filtering by using filter information input according to user input or system setting. The filter information used by the loop filter 1640 is output to the encoding end 1610 and is transmitted to the decoding end 1650 together with the encoded image data. The loop filter 1670 of the decoding end 1650 may perform loop filtering based on the filter information input from the decoding end 1650.

[0228] In the following, reference will be made to Figures 17 to 20 A method and apparatus for encoding or decoding tiles into which a picture is divided in units of tiles according to an embodiment of the present disclosure is described.

[0229] Fig.17 is a block diagram of a video decoding device according to an embodiment of the present disclosure.

[0230] Reference Fig.17, the video decoding apparatus 1700 according to an embodiment of the present disclosure may include a syntax element obtainer 1710 and a decoder 1720 .

[0231] The video decoding apparatus 1700 may obtain a bitstream generated as a result of encoding an image, determine positions of slices and tiles into which a picture is divided based on information included in the bitstream, and decode a maximum coding unit and a coding unit included in the tile.

[0232] The video decoding apparatus 1700 may include a central processor (not shown) for controlling the syntax element obtainer 1710 and the decoder 1720. Alternatively, the syntax element obtainer 1710 and the decoder 1720 may be operated by their own processors (not shown), respectively, and the processors may organically operate with each other so that the video decoding apparatus 1700 operates as a whole. Alternatively, the syntax element obtainer 1710 and the decoder 1720 may be controlled under the control of an external processor (not shown) of the video decoding apparatus 1700.

[0233] The video decoding apparatus 1700 may include one or more data memories (not shown) storing input / output data of the syntax element obtainer 1710 and the decoder 1720. The video decoding apparatus 1700 may include a memory controller (not shown) for controlling data input and output of the one or more data memories.

[0234] The video decoding device 1700 may perform image decoding operations including prediction by operating in connection with an internal video decoding processor or an external video decoding processor so as to reconstruct an image via image decoding. The internal video decoding processor of the video decoding device 1700 may perform basic image decoding operations in a manner in which not only a separate processor but also an image decoding processing module included in a central processing device or a graphics processing device performs basic image decoding operations.

[0235] The video decoding apparatus 1700 may be included in the above-mentioned image decoding apparatus 100. For example, the syntax element obtainer 1710 may be included in Figure 1 The decoder 1720 may be included in the receiver 110 of the image decoding apparatus 100, and the decoder 1720 may be included in the decoder 120 of the image decoding apparatus 100.

[0236] The syntax element obtainer 1710 receives a bitstream generated as a result of encoding an image. The bitstream may include information about the current slice. The current slice is one of the one or more slices included in the picture, and may include one or more parallel blocks. Each parallel block may include one or more maximum coding units. The decoder 1720 may determine the position of the slice based on the information obtained from the syntax element obtainer 1710, determine the position of the parallel blocks included in the slice, and determine the position of the current block included in the parallel block. The current block is a block generated when the image is divided according to the tree structure, and may correspond to a maximum coding unit, a coding unit, or a transform unit, for example. The decoder 1720 may decode one or more parallel blocks included in the current slice according to the coding order. To this end, the decoder 1720 may decode one or more blocks included in the current parallel block.

[0237] The syntax element obtainer 1710 may determine the current block based on the block shape information and / or the information about the partition shape mode included in at least one of the sequence parameter set, the picture parameter set, the video parameter set, the slice header, or the slice segment header. In addition, the syntax element obtainer 1710 may obtain a syntax element corresponding to the block shape information or the information about the partition shape mode from the bitstream for each maximum coding unit, each reference coding unit, or each processing block, and may use the obtained syntax element to determine the current block.

[0238] According to an embodiment, the syntax element obtainer 1710 may determine the position of the block as the current coding unit within the current parallel block. For example, the syntax element obtainer 1710 may determine whether the current block is the first maximum coding unit within the parallel block. The current parallel block may include multiple maximum coding units. The picture may include multiple parallel blocks. Now, reference will be made to Fig.21 The relationship between the maximum coding unit, tile, and picture is described in detail.

[0239] Fig.21 and Fig. 22 The relationship between a maximum coding unit, a tile, and a slice in a tile partitioning method according to an embodiment of the present disclosure is shown.

[0240] Fig.21 The first screen 2100 and Fig. 22 The second picture 2200 can be divided into multiple maximum coding units. The square block marked by the dotted line is the maximum coding unit. The parallel block is a rectangular area marked by a thin solid line within the first picture 2100 and the second picture 2200, and each parallel block in the parallel block includes one or more maximum coding units. The rectangular area marked by a thick solid line within the first picture 2100 and the second picture 2200 is a stripe, and each stripe in the stripe includes one or more parallel blocks.

[0241] The first picture 2100 is divided into 18×12 maximum coding units, 12 parallel blocks, and three stripes, and each of the three stripes is a group of parallel blocks connected to each other in a raster scanning direction. Each parallel block in the parallel block includes six maximum coding unit columns (CTU columns) and three maximum coding unit rows (CTU rows), and the first picture 2100 includes three parallel block columns and four parallel block rows. Each parallel block column in the parallel block column includes four parallel blocks aligned vertically, and each parallel block row in the parallel block row includes three parallel blocks aligned horizontally.

[0242] The second picture 2200 is divided into 18×12 maximum coding units, 24 parallel blocks, and 9 strips, and each of the 9 strips is a parallel block group connected to each other in a rectangular shape. Each parallel block in the parallel block includes three maximum coding unit columns (CTU columns) and three maximum coding unit rows (CTU rows), and the second picture 2200 includes six parallel block columns and four parallel block rows. Each parallel block column in the parallel block column includes four parallel blocks aligned vertically, and each parallel block row in the parallel block row includes six parallel blocks aligned horizontally.

[0243] Because the boundary of each parallel block is consistent with the boundary of the maximum coding unit, the boundary of each parallel block may not cross the maximum coding unit. The video decoding device 1700 decodes the maximum coding unit included in the parallel block in a raster scan order, and there is no data dependency between the parallel blocks. Therefore, the video decoding device 1700 may use information such as pixel values ​​or motion vectors within blocks of adjacent parallel blocks to decode blocks located at the boundaries of parallel blocks. Similarly, the video decoding device 1700 may not use information such as pixel values ​​or motion vectors within blocks of adjacent strips to decode blocks located at the boundaries of strips.

[0244] Therefore, adjacent tiles can be decoded at the same time, and parallel processing of decoding adjacent slices at the same time is feasible. Because the bits generated from each tile are represented as a sub-bitstream, and the start position of each sub-bitstream in the sub-bitstream is signaled through the slice header, entropy decoding operations for the tiles can be performed in parallel.

[0245] The syntax element obtainer 1710 according to an embodiment may obtain identification information of a first tile and identification information of a last tile included in a first slice from a bitstream.

[0246] The decoder 1720 according to the embodiment needs to determine the identification information of the parallel blocks included in the current strip and the corresponding positions of the parallel blocks. The decoder 1720 can determine the index difference between the first parallel block and the last parallel block based on the result of comparing the identification information of the first parallel block with the identification information of the last parallel block. The decoder 1720 can determine the number of parallel blocks included in the first strip by using the index difference between the first parallel block and the last parallel block included in the current strip. The decoder 1720 can decode the multiple parallel blocks included in the first strip in the coding order by using the number of parallel blocks included in the current strip. To this end, the decoder 1720 can decode one or more blocks included in the current parallel block.

[0247] For example, when the prediction mode of the current block is the intra mode, the decoder 1720 can determine the reference samples from the samples of the spatially neighboring blocks located in the intra prediction direction by using the intra prediction information of the current block, and can determine the prediction samples corresponding to the current block by using the reference samples.

[0248] For example, when the prediction mode of the current block is the inter mode, the decoder 1720 may reconstruct the current block by using the motion vector of the current block. The decoder 1720 may determine a reference block within the reference picture by using the motion vector of the current block, and may determine a prediction sample corresponding to the current block from the reference samples included in the reference block.

[0249] When the prediction mode of the current block is not the skip mode, the video decoding apparatus 1700 may parse the transform coefficients of the current block from the bitstream, and may obtain residual samples by performing inverse quantization and inverse transformation on the transform coefficients. The decoder 1720 may determine the restored samples of the current block by combining the residual samples of the current block with the prediction samples of the current block.

[0250] Each picture is divided into one or more parallel block rows and one or more parallel block columns, and is encoded. Each parallel block may be a rectangular area including one or more maximum coding units into which the picture is divided. A parallel block may be included in one or more parallel block rows and may be included in one or more parallel block columns.

[0251] The decoder 1720 according to an embodiment may reconstruct a tile including one or more maximum coding units by reconstructing a block included in the maximum coding unit. The decoder 1720 may reconstruct a slice including one or more tiles, and may reconstruct a picture including one or more slices.

[0252] The video decoding device 1700 according to the embodiment may select and reconstruct a stripe to be reconstructed from the stripes constituting the picture. In other words, the video encoding device 1900 may divide the picture into a plurality of stripes to achieve parallel processing, and may encode the stripes in parallel. Separately, an area for independent display or independent reconstruction may exist as a region of interest (ROI) strip within the same picture. The stripes for parallel processing may include parallel blocks, and similarly, the ROI stripes may include parallel blocks. The stripes for parallel processing and the ROI stripes may overlap with each other and may include the same parallel blocks. Reference will now be made to Fig.23 and Fig.24 Embodiments of strips and ROI strips for parallel processing are described in detail.

[0253] Fig.23 Strips and ROI strips for parallel processing according to an embodiment of the present disclosure are shown.

[0254] A strip 2310 for parallel processing included in the screen 2300 is indicated by a dotted line, and a ROI strip 2320 is indicated by a solid line.

[0255] The video encoding apparatus 1900 may divide the picture 2300 into slices 2310 for parallel processing, and may encode the tiles included in each of the slices 2310 in parallel by using a plurality of processors. Fig.19 and Fig. 20 The detailed operation of the video encoding apparatus 1900 is described. The video decoding apparatus 1700 may reconstruct the slice 2310 for parallel processing by encoding the tile blocks included in the slice 2310. When the ROI slice 2310 exists, the video decoding apparatus 1700 may selectively reconstruct the ROI slice 2310 by decoding the tile blocks included in the ROI slice 2310 in parallel using a plurality of processors.

[0256] Fig.24 Layout of parallel blocks included in a slice for parallel processing and an ROI slice according to an embodiment of the present disclosure is shown.

[0257] The video encoding apparatus 1900 may encode a plurality of parallel blocks by dividing the picture 2400 into 24 parallel blocks by using a plurality of processes. The video encoding apparatus 1900 may process a first slice, a second slice, a third slice, and a fourth slice in parallel, wherein the first slice includes parallel block 0, parallel block 1, parallel block 2, parallel block 6, parallel block 7, and parallel block 8, the second slice includes parallel block 3, parallel block 4, parallel block 5, parallel block 9, parallel block 10, and parallel block 11, the third slice includes parallel block 12, parallel block 13, parallel block 14, parallel block 18, parallel block 19, and parallel block 20, and the fourth slice includes parallel block 15, parallel block 16, parallel block 17, parallel block 21, parallel block 22, and parallel block 23. The video decoding apparatus 1700 may reconstruct first, second, third, and fourth slices, which are parallel-processed slices, in parallel by decoding tile blocks belonging to the first, second, third, and fourth slices.

[0258] Information may not be shared between tiles included in different slices. For example, when encoding tile 3 included in the second slice, the video encoding apparatus 1900 may not refer to encoding information of tile 0 included in the first slice. Similarly, the video decoding apparatus 1700 may not be able to decode tile 3 included in the second slice by referring to encoding information of tile 0 included in the first slice.

[0259] Information may be shared between tiles included in the same slice. For example, when encoding tile 19 included in the third slice, the video encoding apparatus 1900 may refer to encoding information of tile 18 included in the third slice. Similarly, the video decoding apparatus 1700 may decode tile 19 included in the third slice by referring to encoding information of tile 18 included in the third slice.

[0260] In addition to the slice 2310 for parallel processing, the video encoding apparatus 1900 according to an embodiment may further set an ROI slice 2410. Tiles 8, 9, 10, 14, 15, and 16 included in the ROI slice 2410 may be processed in parallel.

[0261] Information may be shared between tiles belonging to the same parallel processing slice among tiles belonging to the ROI slice 2410. For example, since both tile 15 and tile 16 are included in the ROI slice 2410 and are simultaneously included in the fourth slice, the video encoding apparatus 1900 may refer to the encoding information of tile 15 when encoding tile 16. Similarly, the video decoding apparatus 1700 may decode tile 16 by referring to the encoding information of tile 15.

[0262] Information may not be shared between tiles belonging to different parallel processing slices among tiles belonging to the ROI slice 2410. For example, because tile 8 and tile 9 are both included in the ROI slice 2410, but tile 8 belongs to the first slice and tile 9 belongs to the second slice, the video encoding apparatus 1900 may not refer to the encoding information of tile 8 when encoding tile 9. Similarly, the video decoding apparatus 1700 may not decode tile 9 by referring to the encoding information of tile 8.

[0263] The video encoding apparatus 1900 may configure a bitstream using a plurality of pieces of information generated by grouping and encoding the grouped tiles included in a slice to be reconstructed by the video decoding apparatus 1700. For example, the video encoding apparatus 1900 including a plurality of video codec processors may encode tiles in parallel and may configure a bitstream by grouping tiles belonging to each parallel processing slice. The video decoding apparatus 1700 may reconstruct a parallel processing slice by decoding tiles belonging to the same parallel processing slice in parallel.

[0264] The video encoding apparatus 1900 and the video decoding apparatus 1700 according to an embodiment may use the ROI slice 2410 in the field of a 360-degree image or a surveillance image. For example, the video encoding apparatus 1900 may configure a bitstream using information generated by encoding a tile belonging to the ROI slice 2410. The video decoding apparatus 1700 may reconstruct a tile by decoding a plurality of pieces of information included in the bitstream, and may reconstruct the ROI slice 2410 including the reconstructed tile. Information about the tile belonging to the parallel processing slice is required to check the reference possibility between the tile.

[0265] Therefore, the video encoding apparatus 1900 may encode information about tiles constituting a bitstream, that is, not only the decoded slice mapping information including information about tiles belonging to the ROI slice 2310, but also the coded slice mapping information including information about tiles belonging to the parallel processing slice. Therefore, the video decoding apparatus 1700 may determine a reference possibility between tiles included in the ROI slice 2310 by comparing the decoded slice mapping information with the coded slice mapping information, and reconstruct the ROI slice 2310 by decoding the tiles constituting the bitstream.

[0266] For example, the video encoding apparatus 1900 may define decoding slice mapping information for mapping slices to configure and decode a bitstream using tiles belonging to the slices and encoding slice mapping information for parallel processing as follows, and may encode the decoding slice mapping information and the encoding slice mapping information.

[0267] *Decode stripe mapping information {

[0268] First strip: parallel blocks 0-1-2-3-4-5-6-7-11-12-13-17-18-19-20-21-22-23;

[0269] Second strip: parallel blocks 8-9-10-14-15-16;}

[0270] * Encoding stripe mapping information {

[0271] First strip: parallel blocks 0-1-2-6-7-8;

[0272] Second strip: parallel blocks 3-4-5-9-10-11;

[0273] The third strip: parallel blocks 12-13-14-18-19-20;

[0274] Fourth strip: parallel blocks 15-16-17-21-22-23;}

[0275] The video decoding apparatus 1700 according to an embodiment may sequentially decode tiles belonging to each slice by using the decoded slice mapping information obtained from the bitstream. Since tiles may be processed in parallel, different processors included in the video decoding apparatus 1700 may decode a plurality of tiles in parallel.

[0276] The video decoding apparatus 1700 according to an embodiment may determine the possibility of using adjacent tiles located around the current tile by using the coded slice mapping information. In other words, the decoder 1720 may determine whether the current tile can be decoded using adjacent tiles by using the coded slice mapping information.

[0277] In detail, the syntax element obtainer 1710 according to an embodiment may obtain the decoding slice mapping information and the encoding slice mapping information from the bitstream. The decoder 1720 may determine whether the tile blocks belonging to the ROI slice 2410 belong to the same parallel processing slice or to different parallel processing slices by comparing the decoding slice mapping information with the encoding slice mapping information.

[0278] For example, since tile 9 and tile 10 are included in the second slice of the decoding slice map and the second slice of the encoding slice map, the decoder 1720 may decode tile 10 by referring to the encoding information of tile 9 .

[0279] However, because tile 14 and tile 15 are included in the second slice in the decoding slice map, but tile 14 belongs to the third slice in the coding slice map and tile 15 belongs to the fourth slice in the coding slice map, the decoder 1720 cannot decode tile 15 by referring to the encoding information of tile 14.

[0280] As another example, instead of signaling the decoding slice mapping information and the encoding slice mapping information, information about the predictable parallel blocks may be signaled through the parallel block header or the slice header when decoding the current parallel block. For example, the syntax element obtainer 1710 may obtain identification information of available parallel blocks in the parallel blocks spatially adjacent to each parallel block from the parallel block header or the slice header from the bitstream. The decoder 1720 may determine one or more referenced adjacent parallel blocks, such as a left parallel block, an upper parallel block, an upper left parallel block, and an upper right parallel block, from the identification information indicating the available parallel blocks. The decoder 1720 may decode the current parallel block by predicting the encoding information of the current parallel block using the determined encoding information of the available parallel blocks (such as reconstructed image samples, encoding modes, motion vectors, or coefficient values).

[0281] Now refer to Fig.18 A video decoding method for decoding tiles included in each of slices included in a picture so as to reconstruct the slices in units of slices, performed by the video decoding apparatus 1700 according to an embodiment, is described.

[0282] Fig.18 is a flowchart of a video decoding method according to an embodiment of the present disclosure.

[0283] In operation 1810, the syntax element obtainer 1710 according to an embodiment may obtain identification information of a first tile and identification information of a last tile included in a first slice from a bitstream.

[0284] In operation 1820, the decoder 1720 according to an embodiment may determine an index difference between the first tile and the last tile based on a result of comparing identification information of the first tile with identification information of the last tile.

[0285] In operation 1830 , the decoder 1720 according to an embodiment may determine the number of tiles included in the first slice by using an index difference between the first tile and the last tile.

[0286] In operation 1840, the decoder 1720 according to an embodiment may decode a plurality of tiles included in the first slice in a coding order by using the number of tiles, identification information of the first tile, and identification information of the last tile.

[0287] The picture may be divided into one or more parallel block rows and may be divided into one or more parallel block columns. Each parallel block is a rectangular area including one or more maximum coding units into which the picture is divided. The parallel block may be included in one or more parallel block rows and may be included in one or more parallel block columns. The current parallel block may be reconstructed by reconstructing the current block, and the current slice including the current parallel block may be reconstructed.

[0288] The video decoding apparatus 1700 according to an embodiment may obtain information about the width of the parallel block column and information about the height of the parallel block row from the parallel blocks into which the image is divided. The video decoding apparatus 1700 according to an embodiment may determine the size of each parallel block in the parallel blocks into which the image is divided based on the information about the width of the parallel block column and the information about the height of the parallel block row. In other words, since the parallel blocks are located at each intersection between the parallel block column and the parallel block row, the width of the parallel block column may be the width of each parallel block, and the height of the parallel block row may be the height of each parallel block.

[0289] According to another embodiment, the video decoding apparatus 1700 may obtain information about the number of parallel block columns included in the picture in the horizontal direction and information about the number of parallel block rows included in the picture in the vertical direction. Information about the width of each parallel block column may be obtained based on the number of parallel block columns in the horizontal direction, and information about the height of each parallel block row may be obtained based on the number of parallel block rows in the vertical direction.

[0290] The video decoding apparatus 1700 according to an embodiment may determine the number of tiles included in each slice including some tiles included in the picture, and may reconstruct the slice by decoding the tiles included in the slice. The decoder 1720 may determine the number of tiles included in each slice through operations 1820 and 1830.

[0291] In operation 1820, when the identification information of the first parallel block is greater than the identification information of the last parallel block, the decoder 1720 according to an embodiment may determine a value determined by adding the number of parallel blocks included in the picture and a value determined by subtracting the identification information of the first parallel block from the identification information of the last parallel block as the index difference between the first parallel block and the last parallel block.

[0292] In operation 1820, when the identification information of the first parallel block is not greater than the identification information of the last parallel block and the column number of the first parallel block is less than or equal to the column number of the last parallel block, the decoder 1720 according to an embodiment may determine a value determined by subtracting the identification information of the first parallel block from the identification information of the last parallel block as the index difference between the first parallel block and the last parallel block.

[0293] In operation 1820, when the identification information of the first parallel block is not greater than the identification information of the last parallel block and the column number of the first parallel block is greater than the column number of the last parallel block, the decoder 1720 according to an embodiment may determine a value determined by adding the number of parallel block columns included in the picture and a value determined by subtracting the identification information of the first parallel block from the identification information of the last parallel block as the index difference between the first parallel block and the last parallel block.

[0294] As another example, the decoder 1720 may determine each of the index of the first parallel block and the index of the last parallel block by using the identification information of the first parallel block and the identification information of the last parallel block obtained by the syntax element obtainer 1710. In this case, the decoder 1720 may determine the index difference between the first parallel block and the last parallel block by using the index of the first parallel block and the index of the last parallel block.

[0295] In detail, the decoder 1720 according to an embodiment may determine the index of the first tile based on the identification information of the first tile. Similarly, the decoder 1720 according to an embodiment may determine the index of the last tile based on the identification information of the last tile.

[0296] When the index of the first parallel block is greater than the index of the last parallel block and the column index of the first parallel block is greater than the column index of the last parallel block, the decoder 1720 may determine a value determined by adding a value determined by adding the total number of parallel blocks included in the picture to a value determined by subtracting the index of the first parallel block from the index of the last parallel block and the number of parallel block columns included in the picture as the index difference between the first parallel block and the last parallel block.

[0297] When the index of the first parallel block is greater than the index of the last parallel block and the column index of the first parallel block is not greater than the column index of the last parallel block, the decoder 1720 may determine a value determined by adding the total number of parallel blocks included in the picture and a value determined by subtracting the index of the first parallel block from the index of the last parallel block as the index difference between the first parallel block and the last parallel block.

[0298] When the index of the first parallel block is not greater than the index of the last parallel block and the column index of the first parallel block is greater than the column index of the last parallel block, the decoder 1720 may determine a value determined by adding the number of parallel block columns included in the picture to a value determined by subtracting the index of the first parallel block from the index of the last parallel block as the index difference between the first parallel block and the last parallel block.

[0299] The decoder 1720 according to an embodiment may determine the number of parallel block columns and the number of parallel block rows included in a stripe by using the index difference between the first parallel block and the last parallel block. Specifically, the decoder 1720 may determine the number of parallel block rows included in a stripe by using a quotient determined by dividing the index difference between the first parallel block and the last parallel block by the number of parallel block columns included in the picture. Similarly, the decoder 1720 may determine the number of parallel block columns included in a stripe by using a quotient determined by dividing the index difference between the first parallel block and the last parallel block by the number of parallel block rows included in the picture. The decoder 1720 may determine the value obtained by multiplying the number of parallel block columns included in a stripe by the number of parallel block rows included in the stripe as the number of parallel blocks included in the stripe.

[0300] As mentioned above Fig.23 and Fig.24 The picture may be divided into a plurality of parallel blocks, the picture may be divided into a plurality of coding strips that do not overlap each other, and each of the plurality of coding strips may include one or more parallel blocks of the plurality of parallel blocks. In this case, the syntax element obtainer 1710 according to an embodiment may obtain coding strip mapping information including information about the parallel blocks included in the coding strip and decoding strip mapping information including information about the parallel blocks included in the decoding strip for the display area. Therefore, the decoder 1720 may decode the parallel blocks overlapping in the coding strip and the decoding strip by using the coding strip mapping information and the decoding strip mapping information.

[0301] In detail, when the first parallel block and the second parallel block among the parallel blocks included in the current decoding slice based on the decoding slice mapping information are also included in the current coding slice according to the coding slice mapping information, the decoder 1720 may decode the first parallel block by referring to the second parallel block. When the first parallel block is included in the current coding slice and the second parallel block is not included in the current coding slice according to the coding slice mapping information, the decoder 1720 may set the second parallel block to an unpredictable state.

[0302] The video decoding apparatus 1700 according to an embodiment may determine a reference picture list for each of a plurality of parallel blocks. The decoder 1720 may decode a current parallel block among the plurality of parallel blocks by referring to a parallel block at a specific position assigned to the current parallel block in a first reference picture included in the reference picture list of the current parallel block. Fig.26 and 27 A detailed description of the reference picture list for each tile is given.

[0303] The syntax element obtainer 1710 according to an embodiment may obtain arbitrary position information of the second slice from the bitstream, and the decoder 1720 may determine whether the second slice is a slice at an arbitrary position based on the arbitrary position information of the second slice. When it is determined that the second slice is a slice at the arbitrary position, the decoder 1720 may determine the identification number of the tile existing at the arbitrary position included in the second slice. The decoder 1720 may decode the maximum coding unit included in the tile. This will be referred to later. Fig.38 Give a detailed description of the strip at any position.

[0304] When the second slice is the slice at the arbitrary position, the syntax element obtainer 1710 may obtain information indicating the number of remaining slices except the first parallel block in the second slice from the bitstream. The decoder 1720 may determine the number of parallel blocks included in the second slice based on the information indicating the number of remaining slices. The syntax element obtainer 1710 may obtain information indicating the difference in identification information between the current parallel block and the parallel block of the previous identification information from the bitstream for each parallel block in the parallel blocks included in the second slice. A value determined by adding the identification information of the first parallel block included in the second slice and the information indicating the difference in identification information to the previous identification information may be determined as the identification information of the current parallel block.

[0305] In the video decoding apparatus 1700 according to the embodiment, there may be motion constraints that can be motion referenced only in a temporally corresponding type group. Fig.25 Describe the motion constraints between parallel blocks in detail.

[0306] Fig.25 The limited range of motion compensation according to an embodiment of the present disclosure is shown.

[0307] The first picture 2400 may be divided into tiles 2410, 2420, 2430, and 2440, and the second picture 2450 may be divided into tiles 2460, 2470, 2480, and 2490. When the reference picture index of the first picture 2400 indicates the second picture 2450, the motion vector of the current tile 2430 may indicate only a block within the reference tile 2460.

[0308] Such motion constraints between parallel blocks can be extended to groups of parallel blocks.

[0309] According to an embodiment, the first parallel block group may include a plurality of parallel blocks adjacent to each other among the parallel blocks into which the first picture is divided, and the second parallel block group may include parallel blocks in the second picture corresponding to positions of the parallel blocks included in the first parallel block group. The first parallel block group may be a first stripe including the first parallel block, and the second parallel block group may be a second stripe including the second parallel block.

[0310] When a reference picture of a first tile among the tile blocks included in the first tile group is a first picture, the video decoding apparatus 1700 may have a motion constraint that allows a motion vector of a first block included in the first tile to indicate a motion constraint of a block included in the tile blocks included in the second tile group. In this case, the video decoding apparatus 1700 may not allow a motion vector of the first block to indicate a block of the second picture located outside the second tile group.

[0311] On the other hand, when there is no motion constraint that allows the motion vector of the first block to indicate a block included in a parallel block included in the second parallel block group, the video decoding device 1700 may allow the motion vector of the first block to indicate the block of the second picture even when the block of the second picture is located outside the second parallel block group, because the block is a block of the second picture.

[0312] In addition, the video decoding apparatus 1700 may selectively determine a reference parallel block group that the first parallel block group may refer to. For example, when the reference picture is divided into a plurality of parallel block groups, information for selecting one of the plurality of parallel block groups as a reference group for the first parallel block group may be set, and a reference block to be indicated by a motion vector of the current block may be determined within the selected parallel block group.

[0313] As another example, it may be allowed to determine the motion vector within a plurality of tile groups, wherein the plurality of tile groups include a tile group existing at a position corresponding to the current tile group within the reference picture to a selectively added tile group.

[0314] The video decoding apparatus 1700 according to an embodiment may obtain information about a current tile or a current tile group from a tile group header or a tile header.

[0315] When the motion constraint is applied to the current tile based on the obtained information, the blocks belonging to the current tile may refer only to the internal area of ​​the tile at the same position as the current tile in the reference image, or even when the tile is not at the same position as the current tile, may refer only to the internal area of ​​the tile having the same tile index as the current tile. The decoder 1720 may additionally signal the index of the tile to be referenced by the current tile, and the blocks of the current tile may refer only to the internal area of ​​the tile corresponding to the tile index.

[0316] Similarly, when the information about the current parallel block group indicates that the motion constraint is applied to the current parallel block group, the blocks belonging to the current parallel block group may refer only to the internal area of ​​the parallel block group at the same position as the current parallel block group in the reference image, or even when the parallel block is not at the same position as the current parallel block group, it may refer only to the internal area of ​​the parallel block group having the same parallel block group index as the current parallel block group. The decoder 1720 may additionally signal the index of the parallel block group to which the current parallel block group will refer, and the blocks of the current parallel block may refer only to the internal area of ​​the parallel block corresponding to the parallel block group index. Each parallel block group may be a sub-picture of a picture.

[0317] When the information about the current parallel block group indicates that the motion constraint is not applied to the current parallel block, the reference picture of the current block included in the current parallel block group may be determined as a picture unit rather than a sub-picture unit. Therefore, the index of the current sub-picture belonging to the current parallel block group may correspond to the position of the sub-picture within the current picture, and the index of the reference sub-picture including the reference block indicated by the motion vector of the current block may correspond to the position of the sub-picture within the reference picture of the current block. Even when the index of the current sub-picture is different from the index of the reference sub-picture, because the reference block belongs to the reference picture of the current block, the reference block can be used for motion prediction of the current block.

[0318] Now refer to Fig.19 A video encoding apparatus for performing encoding on each of tiles into which a picture is divided is described.

[0319] Fig.19 is a block diagram of a video encoding device according to an embodiment of the present disclosure.

[0320] Reference Fig.19 , the video encoding apparatus 1900 according to an embodiment may include an encoder 1910 and a syntax element generator 1920.

[0321] The encoder 1910 according to an embodiment may divide a picture into coding units and encode the coding units. The encoder 1910 may divide the picture into one or more parallel blocks by using different processors, and each processor may encode each of the coding units included in each parallel block. The syntax element generator 1920 may output syntax elements corresponding to the plurality of pieces of encoding information generated as a result of the encoding in the form of a bitstream.

[0322] The video encoding apparatus 1900 according to an embodiment may include a central processor (not shown) for controlling the encoder 1910 and the syntax element generator 1920. Alternatively, the encoder 1910 and the syntax element generator 1920 may be operated by their own processors (not shown), respectively, and the processors may operate organically with each other so that the video encoding apparatus 1900 operates as a whole. Alternatively, the encoder 1910 and the syntax element generator 1920 may be controlled under the control of an external processor (not shown) of the video encoding apparatus 1900.

[0323] The video encoding apparatus 1900 may include one or more data memories (not shown) storing input / output data of the encoder 1910 and the syntax element generator 1920. The video encoding apparatus 1900 may include a memory controller (not shown) for controlling data input and output of the one or more data memories.

[0324] The video encoding device 1900 may perform an image encoding operation including prediction by operating in connection with an internal video encoding processor or an external video encoding processor to encode an image. The internal video encoding processor of the video encoding device 1900 according to an embodiment may perform basic image encoding operations in a manner in which not only a separate processor but also an image encoding processing module included in a central processing device or a graphics processing device performs basic image encoding operations.

[0325] When the tiles included in the first slice are not continuously located within the picture, the encoder 1910 according to an embodiment may encode the tiles included in the first slice according to the sequence. The encoder 1910 according to an embodiment may encode identification information of the first tile located at the upper left end among the tiles included in the first slice. The encoder 1910 according to an embodiment may also encode identification information of the last tile located at the lower right end among the tiles included in the first slice.

[0326] The syntax element generator 1920 may output a bitstream including information about a current slice generated by encoding an image. The current slice is one of one or more slices included in the picture and may include one or more tiles. Each tile may include one or more maximum coding units.

[0327] For example, when the prediction mode of the current block is the intra mode, the encoder 1910 can determine the reference samples from the samples of the spatially neighboring blocks located in the intra prediction direction by using the intra prediction information of the current block, and can determine the prediction samples corresponding to the current block by using the reference samples.

[0328] For example, when the prediction mode of the current block is the inter mode, the encoder 1910 may determine a motion vector to predict the current block. The encoder 1910 may determine a reference block within a reference picture, and may determine a motion vector indicating the reference block from the current block. The encoder 1910 may determine residual samples between the current blocks from the reference samples included in the reference block, and may perform transformation and quantization on the residual samples based on the transformation unit, thereby generating a quantized transformation coefficient.

[0329] The encoder 1910 may encode a parallel block including one or more blocks including the current block, and may determine the position of a slice including the one or more parallel blocks. The current block is a block generated when the image is divided according to the tree structure, and may correspond to a maximum coding unit, a coding unit, or a transformation unit, for example. The encoder 1910 may encode the blocks included in each parallel block in a coding order, and may encode the parallel blocks included in each slice in a coding order. The encoder 1910 may encode a plurality of parallel blocks in parallel by using a plurality of processors.

[0330] Because the boundary of each parallel block coincides with the boundary of the maximum coding unit, the boundary of each parallel block may not cross the maximum coding unit. The video encoding device 1900 encodes the maximum coding unit included in the parallel block in a raster scan order, and there is no data dependency between the parallel blocks. Therefore, in order to encode a block located at the boundary of the parallel block, the video encoding device 1900 may use information such as pixel values ​​or motion vectors within a block of an adjacent parallel block. Similarly, in order to encode a block located at the boundary of a stripe, the video encoding device 1900 may not use information such as pixel values ​​or motion vectors within a block of an adjacent stripe.

[0331] Therefore, adjacent parallel blocks can be encoded simultaneously, and parallel processing in which adjacent slices are encoded simultaneously is feasible. Because the bits generated from each parallel block are represented as a sub-bitstream, and the start position of each sub-bitstream in the sub-bitstream is signaled through the slice header, entropy encoding operations for parallel blocks can be performed in parallel.

[0332] For example, the syntax element generator 1920 may include block shape information and / or information about a partition shape mode in at least one of a sequence parameter set (SPS), a picture parameter set (PPS), a video parameter set (VPS), or a slice header. In addition, the syntax element generator 1920 may generate a bitstream by encoding a syntax element corresponding to the block shape information or the information about a partition shape mode for each maximum coding unit, each reference coding unit, or each processing block.

[0333] Because a slice is a group of parallel blocks set as a single area, the encoder 1910 does not need to encode the parallel blocks included in the slice in order. However, the syntax element generator 1920 can encode information that can identify parallel blocks that can be included in a single slice, and can include the encoded information in the bitstream. For example, even when the ROI area or a single connected surrounding area in a 360-degree image is inconsistent with the slice used for parallel processing, the ROI area or the single connected surrounding area can be determined during encoding. Therefore, the syntax element generator 1920 can set the ROI area or the surrounding area as a single slice, and can generate and encode information about the parallel blocks included in the slice.

[0334] The syntax element generator 1920 according to an embodiment may generate a bitstream by encoding pieces of identification information of the first tile and the last tile included in the first slice. The pieces of identification information of the first tile and the last tile included in the first slice may be included in a slice header or a tile header.

[0335] During decoding, an index difference between the first parallel block and the last parallel block may be determined based on a result of comparing identification information of the first parallel block with identification information of the last parallel block. The decoder 1720 may determine the number of parallel blocks included in the first slice by using the index difference between the first parallel block and the last parallel block included in the current slice. Therefore, the decoder 1720 may decode a plurality of parallel blocks included in the first slice in a coding order by using the number of parallel blocks included in the current slice.

[0336] The video encoding device 1900 and the video decoding device 1700 according to the embodiment may use a surround strip or a surround parallel block group in order to encode and decode a 360-degree image or a surveillance image. A surround strip (parallel block group) refers to a strip on a screen that is disconnected by a border of the screen but can be connected by connecting the lower border of the screen to the upper border (or the left border and the right border). Since a strip includes a plurality of parallel blocks, a strip and a parallel block group may be interpreted as the same meaning. Now, reference will be made to Figure 28 to Figure 31 Describes the surrounding slices or groups of surrounding tiles in detail.

[0337] Fig.28 is a diagram illustrating a surrounding strip according to an embodiment of the present disclosure.

[0338] The picture 2800 includes 6 tile columns and 4 tile rows, and the identification numbers of the tiles may be set to 0 to 23 according to a raster scan order.

[0339] The surrounding strip 2810 of the screen 2800 may include parallel blocks 1, 2, 3, 4, 19, 20, 21, and 22. When the upper and lower boundaries of the screen 2800 are connected to each other, the upper portion of the object actually displayed by the surrounding strip 2810 may be displayed on parallel blocks 19, 20, 21, and 22, and the lower portion thereof may be displayed on parallel blocks 1, 2, 3, and 4. Therefore, when the image 2800 is expanded, the surrounding strip 2810 appears to be cut.

[0340] Tiles 19, 20, 21, 22, 1, 2, 3, and 4 that are not connected to each other by the surrounding slice 2810 may be grouped. According to the identification numbers, tiles 1, 2, 3, and 4 precede tiles 19, 20, 21, and 22. However, according to the positions of actual objects, tiles 19, 20, 21, 22, 1, 2, 3, and 4 may be encoded in the stated order (surrounding order).

[0341] Optionally, within the picture 2800, according to the raster scan order, the parallel blocks can be encoded in the order of parallel block 1, parallel block 2, parallel block 3, parallel block 4, parallel block 19, parallel block 20, parallel block 21 and parallel block 22.

[0342] The video decoding apparatus 1700 may decode the tiles included in the surrounding slice 2810 in the same order as the encoding order. The video decoding apparatus 1700 may obtain identification information 19 of the first tile and identification information 4 of the last tile from the slice header for the current slice from the bitstream. Since identification information 19 of the first tile is greater than identification information 4 of the last tile, and a tile column number 1 of the first tile is not greater than a tile column number 4 of the last tile, the video decoding apparatus 1700 may determine that the current slice is a surrounding slice in which a lower end boundary and an upper end boundary of the picture 2800 are connected to each other.

[0343] According to an embodiment, when the preset encoding order is the surround order, the video decoding apparatus 1700 may reconstruct the surround slice 2810 by performing decoding in the order of tile 19, tile 20, tile 21, tile 22, tile 1, tile 2, tile 3, and tile 4. According to an embodiment, when the preset encoding order is the raster scan order, the video decoding apparatus 1700 may reconstruct the surround slice 2810 by performing decoding in the order of tile 1, tile 2, tile 3, tile 4, tile 19, tile 20, tile 21, and tile 22.

[0344] Fig.29 is a diagram illustrating a surrounding strip according to an embodiment of the present disclosure.

[0345] The picture 2900 includes 6 tile columns and 4 tile rows, and identification numbers of the tiles may be set to 0 to 23 according to a raster scan order.

[0346] The surrounding strip 2910 of the screen 2900 may include parallel blocks 6, 7, 10, 11, 12, 13, 16, and 17. When the left and right borders of the screen 2900 are connected to each other, the left portion of the object actually displayed by the surrounding strip 2910 may be displayed on parallel blocks 10, 11, 16, and 17, and the right portion thereof may be displayed on parallel blocks 6, 7, 12, and 13. Therefore, when the image 2900 is expanded, the surrounding strip 2910 appears to be cut.

[0347] Tiles 6, 7, 10, 11, 12, 13, 16, and 17 that are not connected to each other by the surrounding strip 2910 may be grouped. According to the identification numbers, tiles 6, 7, 12, and 13 precede tiles 10, 11, 16, and 17. However, according to the positions of actual objects, tiles 10, 11, 6, 7, 16, 17, 12, and 13 may be encoded in the stated order (surrounding order).

[0348] Optionally, within the picture 2900, according to the raster scan order, the parallel blocks can be encoded in the order of parallel block 6, parallel block 7, parallel block 10, parallel block 11, parallel block 12, parallel block 13, parallel block 16 and parallel block 17.

[0349] The video decoding apparatus 1700 may decode tiles included in the surrounding slice 2910 in the same order as the encoding order. The video decoding apparatus 1700 may obtain identification information 10 of the first tile and identification information 13 of the last tile from the slice header for the current slice from the bitstream. Since the tile column number 4 of the first tile is not greater than the tile column number 2 of the last tile, the video decoding apparatus 1700 may determine that the current slice is a surrounding slice in which the left and right boundaries of the picture 2900 are connected to each other.

[0350] According to an embodiment, when the preset encoding order is the surround order, the video decoding apparatus 1700 may reconstruct the surround slice 2910 by performing decoding in the order of tile 10, tile 11, tile 6, tile 7, tile 16, tile 17, tile 12, and tile 13. According to an embodiment, when the preset encoding order is the raster scan order, the video decoding apparatus 1700 may reconstruct the surround slice 2910 by performing decoding in the order of tile 6, tile 7, tile 10, tile 11, tile 12, tile 13, tile 16, and tile 17.

[0351] Referenced above Fig.28 and Fig.29 It is proposed that a surrounding strip including a tile block adjacent to a boundary of a picture is connected to a tile block adjacent to an opposite boundary of the picture. The video encoding device 1900 and the video decoding device 1700 according to the embodiment may use a surrounding parallel block including a block in which a block adjacent to a boundary of a parallel block is connected to a block adjacent to an opposite boundary of the parallel block. Similar to the encoding order of the parallel blocks in the surrounding strip, the encoding order of the blocks in the surrounding parallel block may be set to a raster scan order or a surrounding order.

[0352] Fig.30 is a diagram illustrating a surrounding strip according to an embodiment of the present disclosure. Fig.31 It is shown that the Fig.30 A table of the order of parallel blocks in a wrapping stripe.

[0353] The picture 3000 may include a plurality of surrounding slices. The picture 3000 may include a total of 4 slices. In other words, slice 0, slice 1, and slice 2 are surrounding slices, and slice 3 is a general slice.

[0354] The video decoding apparatus 1700 according to an embodiment may determine corresponding identification numbers of tiles included in each slice and a decoding order based on corresponding identification numbers of the first tile and the last tile of each slice obtained from a bitstream.

[0355] For example, the video encoding apparatus 1900 according to an embodiment may transmit information about corresponding identification numbers of first tiles of slices 0, 1, 2, and 3 and information about corresponding identification numbers of last tiles of slices 0, 1, 2, and 3 by signals.

[0356] The video decoding apparatus 1700 according to an embodiment may obtain information about the identification number of the first tile of slice 0 and information about the identification number of the last tile of slice 0 from the bitstream, and may determine that the identification number of the first tile is 22 and the identification number of the last tile is 1. Since the identification number of the first tile is greater than the identification number of the last tile, and the number 4 of the tile column of the first tile is greater than the number 1 of the tile column of the last tile, the video decoding apparatus 1700 according to an embodiment may determine that slice 0 is a surrounding tile in which the upper and lower boundaries of the picture 3000 are connected to each other and the left and right boundaries of the picture 3000 are connected to each other (that is, the four edges of the picture 3000 are connected to each other). In addition, the video decoding apparatus 1700 may decode tile 22, tile 23, tile 18, tile 19, tile 4, tile 5, tile 0, and tile 1 in the stated order according to the surrounding order.

[0357] The video decoding apparatus 1700 according to an embodiment may obtain information about the identification number of the first tile of slice 1 and information about the identification number of the last tile of slice 1 from the bitstream, and may determine that the identification number of the first tile is 20 and the identification number of the last tile is 3. Since the identification number of the first tile of slice 1 is greater than the identification number of the last tile of slice 1, and the number 2 of the tile column of the first tile is not greater than the number 3 of the tile column of the last tile, the video decoding apparatus 1700 according to an embodiment may determine that slice 1 is a surround tile in which the upper and lower boundaries of the picture 3000 are connected to each other. In addition, the video decoding apparatus 1700 may decode tile 20, tile 21, tile 2, and tile 3 in the stated order according to the surround order.

[0358] The video decoding apparatus 1700 according to an embodiment may obtain information about the identification number of the first tile of slice 2 and information about the identification number of the last tile of slice 2 from the bitstream, and may determine that the identification number of the first tile is 10 and the identification number of the last tile is 13. Since the identification number of the first tile of slice 2 is not greater than the identification number of the last tile of slice 2, and the number 4 of the tile column of the first tile is greater than the number 1 of the tile column of the last tile, the video decoding apparatus 1700 according to an embodiment may determine that slice 2 is a surround tile in which the left and right borders of the image 3000 are connected to each other. In addition, the video decoding apparatus 1700 may decode tile 10, tile 11, tile 6, tile 7, tile 16, tile 17, tile 12, and tile 13 in the stated order according to the surround order.

[0359] The video decoding apparatus 1700 according to an embodiment may obtain information about the identification number of the first tile of slice 3 and information about the identification number of the last tile of slice 3 from the bitstream, and may determine that the identification number of the first tile is 8, and the identification number of the last tile is 15. Since the identification number of the first tile of slice 3 is not greater than the identification number of the last tile of slice 3, and the number 2 of the tile column of the first tile is not greater than the number 3 of the tile column of the last tile, the video decoding apparatus 1700 according to an embodiment may determine that slice 3 is a general tile rather than a surround tile. In addition, the video decoding apparatus 1700 may decode tile 8, tile 9, tile 14, and tile 15 in the stated order according to the surround order.

[0360] Now refer to Fig. 20 A method of performing video encoding on tiles of a picture, performed by the video encoding apparatus 1900, is described.

[0361] Fig. 20 is a flowchart of a video encoding method according to an embodiment of the present disclosure.

[0362] In operation 2010, when tiles included in a first slice are discontinuously located within a picture, the encoder 1910 may encode tiles included in the first slice according to a sequence.

[0363] In operation 2020, the syntax element generator 1920 may encode identification information of a first tile located at an upper left end among tiles included in the first slice.

[0364] In operation 2030, the syntax element generator 1920 may encode identification information of a last tile located at a lower right end among tiles included in the first slice.

[0365] The encoder 1910 may divide the picture into one or more parallel block rows and divide the picture into one or more parallel block columns. Each parallel block may be a rectangular area including one or more maximum coding units into which the picture is divided. Each parallel block may be included in one or more parallel block rows and may be included in one or more parallel block columns.

[0366] The encoder 1910 may determine the width and height of each tile as a fixed size. In this case, the syntax element generator 1920 may encode information about the width of a tile column in the tile into which the picture is divided and information about the height of a tile row in the tile into which the picture is divided.

[0367] In the video encoding apparatus 1900 according to an embodiment, there may be a motion constraint in which motion reference can be made only in a type group corresponding in time. When the reference picture index of the first picture indicates the second picture and the position corresponding to the first tile included in the first picture is the second tile of the second picture, the encoder 1910 may perform motion estimation so that a reference block of the current block included in the first tile is searched from the second tile. Therefore, the motion vector of the current block may indicate only the block in the second tile.

[0368] The video encoding apparatus 1900 according to an embodiment may encode information about a current tile or a current tile group into a tile group header or a tile header.

[0369] When a motion constraint is applied to a current parallel block, blocks belonging to the current parallel block may refer only to an internal area of ​​a parallel block at the same position as the current parallel block in a reference image, or even when the parallel block is not at the same position as the current parallel block, may refer only to an internal area of ​​a parallel block having the same parallel block index as the current parallel block. Encoder 1910 may additionally signal an index of a parallel block to which the current parallel block will refer, and blocks of the current parallel block may refer only to an internal area of ​​a parallel block corresponding to the parallel block index. In this case, information about the current parallel block group may be encoded to indicate that a motion constraint is applied to the current parallel block.

[0370] Similarly, when the information about the current parallel block group indicates that the motion constraint is applied to the current parallel block group, the blocks belonging to the current parallel block group may refer only to the internal area of ​​the parallel block group at the same position as the current parallel block group in the reference image, or even when the parallel block is not at the same position as the current parallel block group, it may refer only to the internal area of ​​the parallel block group having the same parallel block group index as the current parallel block group. The encoder 1910 may additionally signal the index of the parallel block group to which the current parallel block group will refer, and the blocks of the current parallel block may refer only to the internal area of ​​the parallel block corresponding to the parallel block group index. Each parallel block group may be a sub-picture of a picture. The information about the current parallel block group may be encoded to indicate that the motion constraint is applied to the current parallel block.

[0371] When the information about the current parallel block group indicates that the motion constraint is not applied to the current parallel block, the reference picture of the current block included in the current parallel block group may be determined as a picture unit rather than a sub-picture unit. Therefore, the index of the current sub-picture belonging to the current parallel block group may correspond to the position of the sub-picture within the current picture, and the index of the reference sub-picture including the reference block indicated by the motion vector of the current block may correspond to the position of the sub-picture within the reference picture of the current block. Even when the index of the current sub-picture is different from the index of the reference sub-picture, the reference block may be used for motion prediction of the current block because the reference block belongs to the reference picture of the current block. In this case, the video encoding device 1900 may encode the information about the current parallel block group so that the information about the current parallel block group indicates that the motion constraint is not applied to the current parallel block.

[0372] Such motion constraints between parallel blocks can be extended to groups of parallel blocks.

[0373] According to an embodiment, the first parallel block group may include a plurality of parallel blocks adjacent to each other among the parallel blocks into which the first picture is divided, and the second parallel block group may include parallel blocks in the second picture corresponding to positions of the parallel blocks included in the first parallel block group. The first parallel block group may be a first stripe including the first parallel block, and the second parallel block group may be a second stripe including the second parallel block.

[0374] When the reference picture of the first block included in the tile included in the first tile group is the first picture, the video encoding apparatus 1900 may determine that the reference block of the first block is within the second tile group. Therefore, the motion vector of the first block within the first tile group may be allowed to indicate only the block included in the tile included in the second tile group. In other words, the video encoding apparatus 1900 may not allow the reference block of the first block included in the first tile to be a block of the second picture located outside the second tile group.

[0375] On the other hand, when there is no motion constraint that allows the motion vector of the first block to indicate a block included in a parallel block included in the second parallel block group, the video encoding device 1900 may allow the motion vector of the first block to indicate the block of the second picture even when the block of the second picture is located outside the second parallel block group, because the block is a block of the second picture.

[0376] In addition, the video encoding apparatus 1900 may selectively determine a reference parallel block group that the first parallel block group can refer to. For example, when the reference picture is divided into a plurality of parallel block groups, information for selecting one of the plurality of parallel block groups as a reference group for the first parallel block group may be set, and a reference block of the current block may be determined within the selected parallel block group.

[0377] As another example, it may be allowed to determine the reference block of the current block within a plurality of parallel block groups, wherein the plurality of parallel block groups include parallel block groups existing at positions corresponding to the parallel block groups including the current block within the reference picture to selectively added parallel block groups.

[0378] An embodiment of defining various parameters in a parallel block header or a parallel block group header will be described in detail later.

[0379] According to an embodiment, whether the current tile is a motion-constrained tile may be signaled to the tile group header or the tile header. When the current tile is a motion-constrained tile, the current tile may only reference the internal area of ​​the tile at the same position as the current tile in the reference image, or even when the tile is not at the same position as the current tile, only reference the internal area of ​​the tile with the same tile index as the current tile. The index of the tile to be referenced by the current tile may be additionally signaled, and the current tile may only reference the internal area of ​​the tile corresponding to the tile index.

[0380] According to an embodiment, there may be two methods for organizing parallel blocks within a picture into parallel block groups. The identification numbers of two parallel block groups may be assigned to each parallel block, or two mapping relationships for organizing parallel blocks within a picture into parallel block groups may be assigned. At this time, a parallel block group may not refer to other parallel block groups, so that the parallel block group can be decoded independently. Other parallel block group information constitutes a bit stream, NAL units are formed in units of parallel block groups, and the bit stream can be decoded. Therefore, the video decoding device 1700 decodes the bit stream in the order of parallel blocks configured by the second parallel block group information. However, a determination can be made based on the first parallel block group information whether the current parallel block can be predicted using adjacent parallel blocks.

[0381] The video encoding apparatus 1900 according to an embodiment may configure a bitstream using a plurality of pieces of information generated by grouping and encoding the grouped tiles included in a slice to be reconstructed by the video decoding apparatus 1700. For example, the video encoding apparatus 1900 including a plurality of video codec processors may encode tiles in parallel and may configure a bitstream by grouping tiles belonging to each parallel-processed slice.

[0382] The video encoding apparatus 1900 may encode information about the tile constituting the bitstream. Fig.23 In an embodiment of the present invention, the video encoding apparatus 1900 may encode not only the decoded slice mapping information including information about tiles belonging to the ROI slice 2310, but also the encoded slice mapping information including information about tiles belonging to the parallel processing slice.

[0383] As another example, instead of signaling the decoding slice mapping information and the encoding slice mapping information, the video encoding device 1900 may generate information about the predictable parallel block when encoding the current parallel block and include the generated information in the parallel block header or the slice header. For example, the encoder 1910 may determine an available parallel block representing one or more referenceable adjacent parallel blocks, such as a left parallel block, an upper parallel block, an upper left parallel block, and an upper right parallel block. The syntax element generator 1920 may generate encoding information of the current parallel block by using encoding information of the available parallel blocks (such as reconstructed image samples, encoding modes, motion vectors, or coefficient values). The syntax element generator 1920 may also generate identification information indicating the available parallel blocks in the parallel blocks that are spatially adjacent to each parallel block, and may include the generated identification information in the parallel block header or the slice header.

[0384] The video encoding apparatus 1900 according to an embodiment may determine a reference picture list for each of a plurality of tiles. The encoder 1910 may encode a current tile among the plurality of tiles by referring to a tile at a specific position assigned to the current tile in a first reference picture included in the reference picture list of the current tile. Fig.26 and Fig. 27 A detailed description of the reference picture list for each tile is given.

[0385] As another example, when the second slice is a slice at an arbitrary position, the syntax element generator 1920 may generate an identification number of a tile at the arbitrary position included in the second slice, and may generate arbitrary position information of the second slice indicating whether the second slice is a slice at the arbitrary position. Fig.38 A detailed description is given of the stripes at the arbitrary positions.

[0386] When the second slice is the slice at the arbitrary position, the syntax element generator 1920 may generate information indicating the number of remaining slices except the first tile in the second slice. The syntax element generator 1920 may generate information indicating the identification information difference between the current tile and the tile of the previous identification information for each tile in the second slice.

[0387] Now refer to Fig.26 and Fig. 27 Various embodiments of a reference picture list for each tile are described in detail.

[0388] Fig.26 is a diagram illustrating a reference picture list of a tile according to an embodiment of the present disclosure.

[0389] The video decoding apparatus 1700 according to an embodiment may determine a reference picture list for each tile or each slice included in a picture. For example, when a single reference picture is used for each tile, tile 1 of the current picture 2600 may refer to tile 1 of the reference picture 2610, and tile 3 of the current picture 2600 may refer to tile 3 of the reference picture 2610. Tile 2 of the current picture 2600 may refer to tile 2 of the reference picture 2620, and tile 4 of the current picture 2600 may refer to tile 4 of the reference picture 2620. The reference picture may be determined independently for each tile, but may be used to predict the current tile by using a reference tile corresponding to the same position as the current tile in the current picture in the reference picture.

[0390] The video decoding apparatus 1700 according to an embodiment may update a tile of a reference picture stored in a decoded picture buffer (DPB) for each tile.

[0391] Fig. 27 2 is a diagram illustrating a method of transmitting a reference picture list of a tile according to an embodiment of the present disclosure.

[0392] The video decoding apparatus 1700 according to an embodiment may transmit a difference between a picture order count (POC) of a current image and a POC of a previous image recorded on a reference picture list in order to transmit the reference picture list.

[0393] For example, the corresponding POCs of the current picture 2700 and the reference pictures 2710 , 2720 , 2730 , and 2740 are 30, 29, 28, 27, and 26, respectively.

[0394] Reference pictures 2720 , 2730 , and 2740 having POCs 28 , 27 , and 26 , respectively, are sequentially included in the reference picture list of the current picture 2700 .

[0395] In order to transmit information for identifying a reference picture included in a reference picture list, a POC difference value between the current picture 2700 and the reference pictures 2720 , 2730 , and 2740 may be transmitted instead of transmitting all POCs of the reference pictures.

[0396] For example, the video encoding apparatus 1900 may transmit difference values ​​−1, −3, and −4 between POC 30 of the current picture 2700 and POC 29, 27, and 26 of the reference pictures 2710, 2730, and 2740.

[0397] As another example, the video encoding apparatus 1900 according to an embodiment may transmit a difference value between reference pictures included in the reference picture list. In detail, the video encoding apparatus 1900 according to an embodiment may transmit a POC difference value -1 between POC30 of the current picture 2700 and POC29 of the reference picture 2710, a POC difference value -2 between POC29 of the reference picture 2710 and POC27 of the reference picture 2730, and a POC difference value -1 between POC27 of the reference picture 2730 and POC26 of the reference picture 2740. The video decoding apparatus 1700 according to an embodiment may receive {-1, -2, -1} as the reference picture list information of the current picture 2700 having a POC of 30. Since {-1, -2, -1} represents the POC difference between the current picture 2700 and the first reference picture, the POC difference between the first reference picture and the second reference picture, and the POC difference between the second reference picture and the third reference picture, the video decoding apparatus 1700 may reconstruct the reference picture list {29, 27, 26} from the POC 30 of the current picture 2700. In other words, the reference pictures 2710, 2730, and 2740 may be included in the reference picture list of the current picture 2700 in the stated order.

[0398] Reference pictures may be included in the reference picture list in increasing or decreasing order of POC.

[0399] When both the short-term reference picture and the long-term reference picture are included in the reference picture list, the POC difference value may be sent only for the short-term reference picture.

[0400] Now refer to Fig.32 , Fig.33 and Fig.34 Various layouts of parallel blocks for each stripe are proposed when the stripe used for parallel processing does not coincide with the ROI stripe.

[0401] Fig.32 An example is shown in which the strips for parallel processing and the strips according to the ROI do not coincide with each other within the screen. Fig.33 Shown for configuration Fig.32 Parallel blocks of the stripes shown in . Fig.34 Shows the Fig.33 The layout of parallel blocks for each stripe.

[0402] The video encoding apparatus 1900 according to an embodiment may divide the picture 3200 into parallel processing slices 3210 marked by dotted lines and may parallelly encode the parallel processing slices 3210. However, the ROI region of the picture 3200 may be an ROI slice 3220 marked by a solid line.

[0403] When the parallel processing strip 3210 is not consistent with the ROI strip 3220, the boundary line between the parallel processing strip 3210 and the ROI strip 3220 is extended so that the picture 3200 can be divided into Fig.33 The parallel blocks shown in .

[0404] according to Fig.34 According to the layout A for the ROI slice in FIG, the video decoding apparatus 1700 may decode the tiles in the order of tile 0, tile 1, tile 2, and tile 3 to reconstruct the tile 0, and may decode the tiles in the order of tile 4 and tile 8 to reconstruct the tile 1. Fig.34 For layout A for ROI strips in the video decoding device 1700, the video decoding device 1700 can decode the parallel blocks in the order of parallel block 5, parallel block 6, parallel block 9 and parallel block 10 to reconstruct strip 2, can decode the parallel blocks in the order of parallel block 7 and parallel block 11 to reconstruct strip 3, and can decode the parallel blocks in the order of parallel block 12, parallel block 13, parallel block 14 and parallel block 15 to reconstruct strip 4.

[0405] according to Fig.34 In layout B for parallel processing strips, the video encoding device 1900 can encode parallel blocks in the order of parallel block 0, parallel block 1, parallel block 4 and parallel block 5 to encode strip 0, can encode parallel blocks in the order of parallel block 2, parallel block 3, parallel block 6 and parallel block 7 to encode strip 1, can encode parallel blocks in the order of parallel block 8, parallel block 9, parallel block 12 and parallel block 13 to encode strip 2, and can encode parallel blocks in the order of parallel block 10, parallel block 11, parallel block 14 and parallel block 15 to encode strip 3.

[0406] Now refer to Figure 35 to Figure 37 A tile block group header and a tile block group data syntax included in a bitstream received by the video decoding apparatus 1700 and an equation for determining the number of tiles included in a tile block group are described.

[0407] Fig.35 The syntax of a parallel block group header for a parallel block group according to an embodiment of the present disclosure is shown.

[0408] The video decoding apparatus 1700 according to an embodiment may obtain identification information top_left_tile_id of the first tile among the tiles included in the current tile group and identification information bottom_right_tile_id of the last tile from the tile group header 3500. The identification information, which is a number increased or decreased according to a raster scan order, may be a number according to a raster scan order of a current tile among the tiles included in the picture.

[0409] The identification information top_left_tile_id of the first parallel block may have a bit length Ceil(Log2(NumTilesInPic)). Ceil(Log2(NumTilesInPic)) is rounded from the first decimal place of Log2(NumTilesInPic) to output an integer value. Therefore, the bit length of the identification information top_left_tile_id of the first parallel block may be an integer value determined by rounding from the first decimal place of the logarithmic value of NumTilesInPic, which is the number of parallel blocks included in the current picture. The value of the identification information top_left_tile_id of the first parallel block may be inconsistent with the identification information of the first parallel block of another parallel block group included in the current picture.

[0410] The bit length of the identification information bottom_right_tile_id of the last parallel block is Ceil(Log2(NumTilesInPic)), and may be an integer value determined by rounding off the first decimal place of the logarithmic value of NumTilesInPic, which is the number of parallel blocks included in the current picture. When the identification information bottom_right_tile_id of the last parallel block is not obtained, the video decoding apparatus 1700 may determine that the identification information of the last parallel block has the same value as the identification information of the first parallel block.

[0411] Fig.36 The syntax of parallel block group data for a parallel block group according to an embodiment of the present disclosure is shown. Fig.37 A process of obtaining the number of tile blocks included in a tile block group according to an embodiment of the present disclosure is illustrated.

[0412] The video decoding apparatus 1700 according to an embodiment may determine indexes of tile blocks included in a tile group from the tile group data syntax 3600. The index of a first tile may be defined as identification information of the first tile, and the index of a next tile may be determined according to a raster scan order.

[0413] When the index CurrTileIdx of the current parallel block is determined, the address ctbAddrInTs (ctbAddrlnTs=FirstCtbAddrTs[CurrTileldx]) of the first maximum coding unit among the maximum coding units included in the current parallel block can be obtained using the index of the current parallel block. The video decoding apparatus 1700 can decode the maximum coding unit included in the current parallel block by calling the first maximum coding unit starting from the coding tree unit syntax coding_tree_unit().

[0414] In the process of determining the index of the current parallel block in the parallel block group data syntax 3600, the number of parallel block columns NumTileColumnsInTileGroup included in the current parallel block group and the number of parallel block rows NumTileRowsInTileGroup included in the current parallel block group are required. Fig.37 The above relational expression in is used to determine the index difference deltaIdx between the index of the first parallel block and the index of the last parallel block.

[0415] In Expression 3710, when the identification information of the first tile is greater than the identification information of the last tile, the video decoding apparatus 1700 may determine a value determined by adding the number of tiles included in the picture to a value determined by subtracting the identification information of the first tile from the identification information of the last tile as the index difference deltaIdx between the first tile and the last tile. In Expression 3710, the current slice may be as follows Fig.30 The strip 1 is a surrounding strip in which the upper and lower boundaries of the picture are connected to each other.

[0416] In expression 3730, the column number of the first parallel block may be determined as top_left_tile_id%(num_tile_columns_minus1+1). The column number of the last parallel block may be determined as bottom_right_tile_id%(num_tile_columns_minus1+1). When the identification information of the first parallel block is not greater than the identification information of the last parallel block and the column number of the first parallel block is less than or equal to the column number of the last parallel block, the video decoding apparatus 1700 may determine a value determined by subtracting the identification information of the first parallel block from the identification information of the last parallel block as the index difference deltaIdx between the first parallel block and the last parallel block. In expression 3730, the current slice may be as follows Fig.30 A general strip like strip 3 in FIG. 1 instead of a surrounding strip.

[0417] When the identification information of the first tile is not greater than the identification information of the last tile and the column number of the first tile is not greater than the column number of the last tile, the video decoding apparatus 1700 may determine a value determined by adding the number of tile columns num_tile_columns_minus1 included in the picture to a value determined by subtracting the identification information of the first tile from the identification information of the last tile as the index difference deltaIdx between the first tile and the last tile. In expression 3720, the current slice may be as follows Fig.30 The strip 2 is a surrounding strip in which the left and right borders of the picture are connected to each other.

[0418] In Expression 3740, the video decoding apparatus 1700 may determine the number of tile rows NumTileRowsInTileGroup included in the current tile group based on a quotient ( / ) determined by dividing the index difference deltaIdx between the first tile and the last tile by the number of tile columns included in the picture.

[0419] In Expression 3750, the video decoding apparatus 1700 may determine the number of tile columns NumTileColumnsInTileGroup included in the current tile group based on the remainder (%) determined by dividing the index difference deltaIdx between the first tile and the last tile by the number of tile columns included in the picture.

[0420] In Expression 3760, the video decoding apparatus 1700 may determine a value determined by multiplying the number of tile block rows NumTileRowsInTileGroup included in the current tile block group by the number of tile block columns NumTileColumnsInTileGroup included in the current tile block group as the number of tile blocks NumTilesInTileGroup included in the current tile block group.

[0421] exist Figure 35 to Figure 37 In the present invention, a parallel block group has the same concept as a stripe and can therefore be replaced by a stripe. A parallel block group header, a parallel block group data syntax, and the number of parallel blocks included in a parallel block group can be replaced by a stripe header, a stripe data syntax, and the number of parallel blocks included in a stripe, respectively.

[0422] The video encoding apparatus 1900 and the video decoding apparatus 1700 according to an embodiment can determine whether the first tile of the current slice is a general tile or a surround tile by comparing the size of the identification information of the first tile with the size of the identification information of the last tile and comparing the column number of the first tile with the column number of the last tile. Therefore, only the operation of transmitting the identification information of the first tile and the identification information of the last tile can make it possible to determine the identification information of each tile included in the slice regardless of the shape of the slice, and thus the number of bits used to represent the identification information of the tile can be reduced.

[0423] The video encoding apparatus 1900 according to an embodiment may transmit information about a slice (a tile group) including a plurality of tiles existing at an arbitrary position (regardless of whether they are adjacent to each other within a picture) or a tile including a maximum coding unit existing at an arbitrary position by a signal. The video decoding apparatus 1700 may obtain information about a slice (a tile group) at an arbitrary position from a bitstream, and may reconstruct a slice at an arbitrary position by decoding a tile existing at an arbitrary position. Now, reference will be made to Figures 38 to 40 Embodiments for implementing arbitrary position striping are described in detail.

[0424] Fig.38 A parallel block group at an arbitrary position according to an embodiment of the present disclosure is shown.

[0425] The picture 3800 includes tiles 0 to 23. The video encoding apparatus 1900 may encode a slice 3810 including tile 1, tile 2, tile 10, tile 16, tile 17, and tile 18. The video encoding apparatus 1900 may generate a bitstream by encoding information representing tiles included in the slice 3810, and the video decoding apparatus 1700 may obtain the information representing tiles included in the slice 3810 from the bitstream and decode each tile in the tile.

[0426] The video encoding apparatus 1900 may encode the tiles according to a raster scan order in the order of tile 1, tile 2, tile 10, tile 16, tile 17, and tile 18. The video decoding apparatus 1700 may decode the tiles according to a raster scan order.

[0427] The video encoding apparatus 1900 may signal information representing the parallel blocks included in the slice 3810 by encoding the difference between the indexes of the parallel blocks using a plurality of pieces of identification information or indexes of the parallel blocks included in the slice. For example, information representing the remaining parallel blocks except for the parallel block 1 as the first parallel block among the parallel blocks included in the slice 3810 may be represented by a signal as the index difference between the remaining parallel blocks and the previous parallel blocks. Therefore, the video encoding apparatus 1900 may encode 1, +1 (=2-1), +8 (=10-2), +6 (=16-10), +1 (=17-16), and +1 (=18-17) as a plurality of pieces of identification information of the parallel blocks included in the slice 3810.

[0428] The video decoding apparatus 1700 may obtain the difference between the indexes of the parallel blocks included in the slice 3810 from the bitstream, and thus may determine the positions of the parallel blocks included in the slice 3810 and decode the parallel blocks. Therefore, when the plurality of pieces of identification information of the parallel blocks included in the slice 3810 obtained from the bitstream are 1, +1 (=2-1), +8 (=10-2), +6 (=16-10), +1 (=17-16), and +1 (=18-17), the plurality of pieces of identification information of the parallel blocks may be determined to be 1, 2 (=1+1), 10 (=2+8), 16 (=10+6), 17 (=16+1), and 18 (=17+1). Therefore, the video decoding apparatus 1700 may reconstruct the slice 3810 by decoding parallel block 1, parallel block 2, parallel block 10, parallel block 16, parallel block 17, and parallel block 18.

[0429] Fig.39 The syntax of a parallel block group header and parallel block group data for a parallel block group according to an embodiment of the present disclosure is shown. Fig.40 A process of obtaining the number of tile blocks included in a tile block group and corresponding identification numbers of the tile blocks according to an embodiment of the present disclosure is illustrated.

[0430] Information about the positions of tiles included in a tile group may be obtained through Fig.39 The parallel block group header syntax 3900 and parallel block group data syntax 3910 are sent with a signal.

[0431] like Fig.35 As shown in , the video encoding apparatus 1700 according to an embodiment may include not only the identification information top_left_tile_id of the first tile, but also the information num_remained_tiles_in_tile_group_minus1 indicating the number of remaining tiles in the tile group header syntax 3900. The video encoding apparatus 1700 according to an embodiment may further include the information delta_tile_id_minus1 indicating the index difference between the current tile and the previous tile in the tile group header syntax 3900.

[0432] The bit length of information num_remained_tiles_in_tile_group_minus1 indicating the number of tiles remaining in a tile group is Ceil(Log2(NumTilesInPic-1)), and may be an integer value determined by rounding off the first decimal place of the logarithmic value of NumTilesInPic which is the number of tiles included in the current picture.

[0433] The bit length of the information delta_tile_id_minus1 indicating the index difference between the current tile and the previous tile may not be consistent with identification information of a tile of another tile group included in the current picture.

[0434] The video decoding apparatus 1700 according to an embodiment may obtain information delta_tile_id_minus1 indicating an index difference between a current tile and a previous tile by obtaining information num_remained_tiles_in_tile_group_minus1 indicating the number of remaining tiles in a tile group from the tile group header 3900 .

[0435] According to Expression 4010, the video decoding apparatus 1700 may determine the number NumTilesInTileGroup of tiles included in the current tile group by using information num_remained_tiles_in_tile_group_minus1 indicating the number of tiles remaining in the tile group.

[0436] According to Expression 4020, for each tile included in the tile group, the video decoding apparatus 1700 may determine identification information tileId of the current tile by using information delta_tile_id_minus1 indicating an index difference between the current tile and the previous tile and identification information top_left_tile_id of the first tile.

[0437] The video decoding device 1700 can decode the maximum coding unit included in each tile by calling the coding tree unit syntax for each tile included in the current tile group, using the number of tile blocks NumTilesInTileGroup included in the current tile group and the identification information tileId of the current tile.

[0438] exist Fig.39 and Fig.40 In the present invention, a parallel block group has the same concept as a stripe, and thus a parallel block group header, a parallel block group data syntax, and the number of parallel blocks remaining in a parallel block group may be replaced by a stripe header, a stripe data syntax, and the number of parallel blocks remaining in a stripe, respectively.

[0439] Even when the slice is a slice (slice group) at an arbitrary position, the video encoding device 1900 and the video decoding device 1700 according to the embodiment send the index difference between the current parallel block and the previous parallel block as identification information of each parallel block included in the slice, thereby reducing the number of bits used to represent the identification information of each parallel block.

[0440] 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.

[0441] The medium can store computer executable programs continuously, or temporarily store computer executable programs or instructions for execution or downloading. In addition, the medium can be any of various recording media or storage media that combine single or multiple pieces of hardware, and the medium is not limited to media directly connected to the computer system, but can be distributed on a network. Examples of media include magnetic media (such as hard disks, floppy disks, and 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. A machine-readable storage medium can be provided as a non-transitory storage medium. Here, "non-transitory storage medium" is a tangible device, and means that the storage medium does not include a signal (e.g., an electromagnetic wave), but the term does not distinguish whether the data is stored in the storage medium semi-permanently or temporarily. For example, a "non-transitory storage medium" may include a buffer that temporarily stores data.

[0442] Other examples of the medium include recording media and storage media managed by an application store that distributes applications or by a website, server, or the like that supplies or distributes other various types of software.

[0443] According to an embodiment, the method according to various disclosed embodiments of the present disclosure may be provided by being included in a computer program product. The computer program product may be traded between a seller and a buyer as a commodity. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disc read-only memory (CD-ROM)), or via an application store (e.g., PlayStore). TM ) is distributed online (e.g., downloaded or uploaded) or directly between two user devices (e.g., smart phones). When distributed online, at least a portion of the computer program product (e.g., a downloadable app) may be temporarily generated or at least temporarily stored in a machine-readable storage medium (such as a memory of a manufacturer's server, an application store's server, or a relay server).

[0444] Although one or more embodiments of the present disclosure have been described with reference to the drawings, it will be understood by those skilled in the art that various changes in form and details may be made in the present disclosure without departing from the spirit and scope defined by the claims.

Claims

1. A video decoding method, include: Obtaining information about an identification index of a first tile and information about an identification index of a last tile from a bitstream, wherein the first tile and the last tile are included in a first slice; Using information about the identification index of the first parallel block to obtain a column index of the first parallel block; Using information about the identification index of the last parallel block to obtain a column index of the last parallel block; Determine an index difference between the first parallel block and the last parallel block based on whether the identification index of the first parallel block is greater than the identification index of the last parallel block and whether the column index of the first parallel block is greater than the column index of the last parallel block; determining the number of tiles included in the first slice using an index difference between the first tile and the last tile and the number of tile columns included in the picture; and decoding a plurality of tiles included in the first slice using the number of tiles included in the first slice, When the identification index of the first tile is greater than the identification index of the last tile, the number of tiles included in the picture is added to the index difference between the first tile and the last tile.

2. A video decoding device, include: a syntax element obtainer configured to obtain information about an identification index of a first tile and information about an identification index of a last tile from a bitstream, wherein the first tile and the last tile are included in a first slice; and a decoder configured to obtain a column index of the first parallel block using information about an identification index of the first parallel block, obtain a column index of the last parallel block using information about an identification index of the last parallel block, determine an index difference between the first parallel block and the last parallel block based on whether the identification index of the first parallel block is greater than the identification index of the last parallel block and whether the column index of the first parallel block is greater than the column index of the last parallel block, determine the number of parallel blocks included in the first slice using the index difference between the first parallel block and the last parallel block and the number of parallel block columns included in the picture, and decode a plurality of parallel blocks included in the first slice using the number of parallel blocks included in the first slice, When the identification index of the first tile is greater than the identification index of the last tile, the number of tiles included in the picture is added to the index difference between the first tile and the last tile.

3. A video encoding method, include: When tiles included in the first slice are not continuously located within the picture, sequentially encoding the tiles included in the first slice; encoding information about an identification index of a first tile located at an upper left end among tiles included in a first slice; encoding information about an identification index of a last tile located at a lower right end among tiles included in the first slice; as well as generating a bit stream including information about an identification index of a first tile and information about an identification index of a last tile, The information about the identification index of the first parallel block is used to obtain the column index of the first parallel block. The information about the identification index of the last parallel block is used to obtain the column index of the last parallel block. The index difference between the first parallel block and the last parallel block is obtained based on whether the identification index of the first parallel block is greater than the identification index of the last parallel block and whether the column index of the first parallel block is greater than the column index of the last parallel block. The number of tiles included in the first slice is obtained using an index difference between the first tile and the last tile and the number of tile columns included in the picture, When the identification index of the first tile is greater than the identification index of the last tile, the number of tiles included in the picture is added to the index difference between the first tile and the last tile.

4. A method for sending a bit stream, wherein the bit stream is generated by the video encoding method according to claim 3.