WO2019098464A1 - Encoding method and apparatus therefor, and decoding method and apparatus therefor - Google Patents

Encoding method and apparatus therefor, and decoding method and apparatus therefor Download PDF

Info

Publication number
WO2019098464A1
WO2019098464A1 PCT/KR2018/003821 KR2018003821W WO2019098464A1 WO 2019098464 A1 WO2019098464 A1 WO 2019098464A1 KR 2018003821 W KR2018003821 W KR 2018003821W WO 2019098464 A1 WO2019098464 A1 WO 2019098464A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
encoding
unit
coding
current block
Prior art date
Application number
PCT/KR2018/003821
Other languages
French (fr)
Korean (ko)
Inventor
이진영
최나래
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Priority to KR1020207003130A priority Critical patent/KR20200074081A/en
Publication of WO2019098464A1 publication Critical patent/WO2019098464A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Definitions

  • the present invention relates to a video encoding method and a video decoding method, and more particularly, to a method of efficiently encoding encoding mode information.
  • High quality video requires a large amount of data when encoding.
  • the bandwidth allowed for delivering video data is limited, so that the data rate applied when transmitting video data may be limited. Therefore, in order to efficiently transmit video data, a method of encoding and decoding video data with an increased compression ratio while minimizing deterioration of image quality is needed.
  • Video data can be compressed by eliminating spatial redundancy and temporal redundancy between pixels. Since it is common to have a common feature among adjacent pixels, encoding information is transmitted in units of data consisting of pixels in order to eliminate redundancy between adjacent pixels.
  • the pixel values of the pixels included in the data unit are not transmitted directly, but the necessary method to obtain the pixel value is transmitted.
  • a prediction method for predicting the pixel value similar to the original value is determined for each data unit and the encoding information for the prediction method is transmitted from the encoder to the decoder. Also, since the predicted value is not exactly the same as the original value, the residual data of the difference between the original value and the predicted value is transmitted to the decoder in the encoder.
  • the prediction method is determined in consideration of the size of the encoding information and the residual data.
  • data units divided in pictures have various sizes. The larger the size of a data unit, the more likely the prediction accuracy decreases, and the coding information decreases. Therefore, the size of the block is determined according to the characteristics of the picture.
  • the prediction methods include intra prediction and inter prediction.
  • Intra prediction is a method of predicting pixels of a block from surrounding pixels of the block.
  • Inter prediction is a method of predicting pixels with reference to pixels of another picture referenced by a picture including a block. Therefore, spatial redundancy is removed by intra prediction, and temporal redundancy is eliminated by inter prediction.
  • the encoding information applied to the block can also be predicted from other blocks, thereby reducing the size of the encoded information.
  • the amount of residual data can be reduced by lossy compression of the residual data according to the transformation and quantization process.
  • a video coding method for generating coding information on a combining mode for a current block and a video decoding method for decoding a current block in accordance with coding information on a combining mode are disclosed.
  • a computer-readable recording medium on which a program for executing a video encoding method and a video decoding method according to an embodiment of the present invention is recorded in a computer is disclosed.
  • a video decoding method including the steps of:
  • a coupling mode flag of a current block indicating whether a plurality of coding modes included in a coupling mode are applied to a current block from a bitstream and determining whether or not a coupling mode flag of the current block includes a plurality of coding modes
  • a coding mode determination unit that determines a plurality of coding modes of the combining mode as coding modes of the current block when the coding mode of the current block is applied to the current block, And a decoding unit for decoding the video data.
  • An encoding unit that determines encoding modes of a current block and generates a joint mode flag of the current block according to whether encoding modes of the current block are the same as a plurality of encoding modes of a joint mode, And a bitstream generation unit for generating a bitstream including the bitstream.
  • a computer-readable recording medium on which a program for performing the video coding method and the video decoding method is recorded.
  • the combining mode includes the coding mode of the current block, only the syntax elements related to the combining mode are included in the bitstream, and the plurality of syntax elements corresponding to the coding modes included in the combining mode are omitted, do.
  • FIG. 1A is a block diagram of an image encoding apparatus based on an encoding unit according to a tree structure according to an embodiment of the present invention.
  • FIG. 1B shows a block diagram of a video decoding apparatus based on a coding unit according to a tree structure according to an embodiment.
  • FIG. 2 illustrates a process in which at least one encoding unit is determined by dividing a current encoding unit according to an embodiment.
  • FIG. 3 illustrates a process in which at least one encoding unit is determined by dividing a non-square encoding unit according to an embodiment.
  • FIG. 4 illustrates a process in which an encoding unit is divided based on at least one of block type information and division type information according to an embodiment.
  • FIG. 5 illustrates a method of determining a predetermined encoding unit among odd number of encoding units according to an exemplary embodiment.
  • FIG. 6 illustrates a sequence in which a plurality of coding units are processed when a current coding unit is divided to determine a plurality of coding units according to an exemplary embodiment.
  • FIG. 7 illustrates a process in which, when an encoding unit can not be processed in a predetermined order according to an embodiment, it is determined that the current encoding unit is divided into odd number of encoding units.
  • FIG. 8 illustrates a process in which a first encoding unit is divided into at least one encoding unit according to an embodiment of the present invention.
  • FIG. 10 illustrates a process in which a square-shaped encoding unit is divided when division type information can not be divided into four square-shaped encoding units according to an embodiment
  • FIG. 11 illustrates that the processing order among a plurality of coding units may be changed according to a division process of coding units according to an embodiment.
  • FIG. 12 illustrates a process of determining the depth of an encoding unit according to a change in type and size of an encoding unit when a plurality of encoding units are determined by recursively dividing an encoding unit according to an exemplary embodiment.
  • FIG. 13 illustrates a depth index (hereinafter referred to as PID) for coding unit classification and depth that can be determined according to the type and size of coding units according to an exemplary embodiment.
  • PID depth index
  • FIG. 14 shows that a plurality of coding units are determined according to a plurality of predetermined data units included in a picture according to an embodiment.
  • FIG. 15 illustrates a processing block serving as a reference for determining a determination order of a reference encoding unit included in a picture according to an embodiment.
  • FIG. 16 shows a block diagram of a video decoding apparatus 1600 according to an embodiment for determining a coding mode according to a combining mode.
  • 17A and 17B show a coding mode decision method of the current block when one of a plurality of luma intra prediction modes and a plurality of chroma intra prediction modes is included in the combining mode.
  • FIGS. 18A and 18B show a coding mode determination method of a current block when one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, and one of a plurality of conversion modes is included in the combining mode.
  • 19A and 19B are diagrams for explaining the case where the combining mode includes one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, one of a plurality of conversion modes, and additionally information about whether or not the coding mode m1 is applied Is included, a coding mode decision method of the current block is shown.
  • 20 shows a method of determining a coding mode of a current block when information on coding mode m1 and m3 is applied to the combining mode and information on the coding mode m2 is included.
  • FIG. 21A shows a method of determining an encoding mode according to a combining mode in an interlace (P slice or B slice), and FIG. 21B shows a method of determining an encoding mode according to a combining mode in an intra slice (I slice).
  • FIG. 22A shows a method of determining an encoding mode according to a combining mode including a DC mode in an interlace (P slice or B slice)
  • FIG. 22B shows a method of determining a coding mode according to a combining mode including an DC mode in an intra slice Indicates a method of determining an encoding mode.
  • 23 is a syntax of an encoding unit showing an embodiment of the combining mode.
  • FIG. 24 shows a video decoding method 2400 according to an embodiment for determining a coding mode according to a combining mode.
  • FIG. 25 shows a video encoding apparatus 2500 according to an embodiment for determining whether to use the joint mode according to the encoding mode.
  • FIG. 26 shows a video encoding method 2600 according to an embodiment for determining whether to use a combining mode according to an encoding mode.
  • a video decoding method including the steps of:
  • the terminology used herein is intended to encompass all commonly used generic terms that may be considered while considering the functionality of the present invention, but this may vary depending upon the intent or circumstance of the skilled artisan, the emergence of new technology, and the like. Also, in certain cases, there may be a term selected arbitrarily by the applicant, in which case the meaning thereof will be described in detail in the description of the corresponding invention. Therefore, the term used in the present invention should be defined based on the meaning of the term, not on the name of a simple term, but on the entire contents of the present invention.
  • part refers to a hardware component such as software, FPGA or ASIC, and " part " However, “ part “ is not meant to be limited to software or hardware. &Quot; Part " may be configured to reside on an addressable storage medium and may be configured to play back one or more processors.
  • part (s) refers to components such as software components, object oriented software components, class components and task components, and processes, Subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays and variables.
  • the functions provided in the components and “ parts " may be combined into a smaller number of components and “ parts “ or further separated into additional components and “ parts ".
  • the " current block” means one of a coding unit, a prediction unit and a conversion unit which are currently encoded or decoded. For convenience of explanation, when it is necessary to distinguish other types of blocks such as a prediction unit, a conversion unit, a "current encoding block”, a “current prediction block”, and a “current conversion block” may be used.
  • “Sub-block” means a data unit divided from “current block”.
  • “upper block” means a data unit including " current block ".
  • sample means data to be processed as data assigned to a sampling position of an image.
  • pixel values in the image of the spatial domain, and transform coefficients on the transform domain may be samples.
  • a unit including at least one of these samples may be defined as a block.
  • FIG. 1A is a block diagram of an image encoding apparatus 100 based on an encoding unit according to a tree structure according to an embodiment of the present invention.
  • the image encoding apparatus 100 includes a maximum encoding unit determination unit 110, an encoding unit determination unit 120, and an output unit 130.
  • the maximum coding unit determination unit 110 divides a picture or a slice included in a picture into a plurality of maximum coding units according to the size of the maximum coding unit.
  • the maximum encoding unit may be a data unit of size 32x32, 64x64, 128x128, 256x256, or the like, and a data unit of a character approval square whose width and height are two.
  • the maximum encoding unit determination unit 110 may provide the output unit 130 with maximum encoding unit size information indicating the size of the maximum encoding unit.
  • the output unit 130 may include the maximum encoding unit size information in the bitstream.
  • the encoding unit determination unit 120 determines the encoding unit by dividing the maximum encoding unit.
  • the encoding unit may be determined by the maximum size and the depth.
  • the depth can be defined as the number of times the encoding unit is spatially divided from the maximum encoding unit. Each time the depth increases by one, the encoding unit is divided into two or more encoding units. Therefore, as the depth increases, the size of the coding unit per depth decreases. Whether or not the coding unit is divided depends on whether or not the coding unit is efficiently divided by Rate-Distortion Optimization. And division information indicating whether or not the encoding unit is divided may be generated. The division information can be expressed in the form of a flag.
  • the encoding unit can be divided in various ways. For example, a square encoding unit can be divided into four square encoding units that are half the width and height. A square encoding unit can be divided into two rectangular encoding units that are half in width. A square encoding unit can be divided into two rectangular encoding units whose height is half. A square encoding unit can be divided into three encoding units by dividing the width or height by 1: 2: 1.
  • a rectangular coding unit whose width is twice the height can be divided into two square coding units.
  • a rectangular coding unit whose width is twice as high can be divided into rectangular coding units having two widths and four times the height.
  • An encoding unit of a rectangle whose width is twice the height can be divided into two rectangular encoding units and one square encoding unit by dividing the width by 1: 2: 1.
  • a rectangular coding unit whose height is twice the width can be divided into two square coding units.
  • a rectangular unit of coding whose height is twice the width can be divided into rectangular units of which the height is four times the width.
  • a rectangular unit of coding whose height is twice the width can be divided into two rectangular unit of coding and one square unit of coding by dividing the height by 1: 2: 1.
  • the image coding apparatus 100 When two or more division methods are available in the image coding apparatus 100, information on division methods that can be used for the coding units among the division methods available in the image coding apparatus 100 can be determined for each picture. Therefore, only the division methods specific to each picture can be determined to be used. If the image encoding apparatus 100 uses only one division method, information on the division method that can be used in the encoding unit is not separately determined.
  • division type information indicating a division method of an encoding unit can be generated. If there is one division method that can be used in a picture to which an encoding unit belongs, the division type information may not be generated. If the division method is adaptively determined to the encoding information around the encoding unit, the division type information may not be generated.
  • the maximum encoding unit may be divided up to the minimum encoding unit according to the minimum encoding unit size information.
  • the depth of the maximum encoding unit is the highest depth and the minimum encoding unit can be defined as the lowest depth. Accordingly, the encoding unit of the higher depth may include a plurality of encoding units of the lower depth.
  • the image data of the current picture is divided into the maximum encoding units.
  • the maximum encoding unit may include encoding units divided by depth. Since the maximum encoding unit is divided by the depth, the image data of the spatial domain included in the maximum encoding unit can be hierarchically classified according to the depth.
  • the maximum depth for limiting the maximum number of times the maximum encoding unit can be hierarchically divided or the minimum size of the encoding unit may be preset.
  • the encoding unit determination unit 120 compares the encoding efficiency when the encoding unit is hierarchically divided and the encoding efficiency when the encoding unit is not divided. The encoding unit determination unit 120 determines whether to divide the encoding unit according to the comparison result. If it is determined that the division of the encoding unit is more efficient, the encoding unit determination unit 120 divides the encoding unit hierarchically. If it is determined that it is efficient to not divide the encoding unit according to the comparison result, the encoding unit is not divided. Whether or not the encoding unit is divided can be determined independently of whether or not the adjacent encoding units are divided.
  • whether or not the encoding unit is divided may be determined from a coding unit having a large depth in the encoding process. For example, the coding efficiency of the coding unit of the maximum depth is compared with the coding efficiency of the coding unit which is one less than the maximum depth so that the encoding units of the maximum depth and the encoding units of the maximum depth, Is encoded more efficiently. Then, according to the determination result, whether or not to divide a coding unit smaller by one than the maximum depth is determined for each region of the maximum coding unit.
  • a coding unit which is smaller by 2 than the maximum depth for each region of the maximum coding unit and a combination of the coding units and the minimum depth coding units which are smaller by one than the maximum depth selected on the basis of the above determination result are more efficiently Is encoded.
  • the same judgment process is sequentially performed on the coding units having small depths and finally the maximum coding unit and the maximum coding unit are divided in a hierarchical manner to determine which of the generated hierarchical structures is more efficiently coded, Is determined.
  • the division of a coding unit may be determined from a coding unit having a small depth in the coding process. For example, when the coding efficiency of the coding unit having the largest coding unit and the coding unit having the largest depth by one than the maximum coding unit is compared, it is determined which of the coding units having the largest coding depth and the largest coding depth is encoded more efficiently . If the coding efficiency of the maximum coding unit is better, the maximum coding unit is not divided. If the encoding efficiency of encoding units having a depth greater than 1 by the maximum encoding unit is better, the maximum encoding unit is divided and the same comparison process is repeated for the divided encoding units.
  • the algorithm for obtaining the hierarchical tree structure of the maximum coding unit considering the coding efficiency and the calculation amount can be designed in various ways.
  • the coding unit determination unit 120 determines the most efficient prediction and conversion method for each coding unit in order to determine the efficiency of each coding unit.
  • the encoding unit may be partitioned into predetermined data units to determine the most efficient prediction and conversion method.
  • the data unit may have various forms according to the division method of the encoding unit.
  • a method of dividing an encoding unit for determining a data unit may be defined as a partition mode. For example, when the encoding unit of size 2Nx2N (where N is a positive integer) is not divided, the size of the prediction unit included in the encoding unit is 2Nx2N.
  • the size of the prediction unit included in the encoding unit may be 2NxN, Nx2N, NxN, etc. depending on the partition mode.
  • the partitioning mode according to an exemplary embodiment includes not only symmetric data units in which the height or width of a coding unit is divided into symmetric ratios but also data units divided into asymmetric ratios such as 1: n or n: 1, , Data units that are divided into other geometric forms, and arbitrary types of data units.
  • the encoding unit can be predicted and converted based on the data unit included in the encoding unit.
  • the data unit for prediction and the data unit for conversion can be separately determined.
  • the data unit for prediction can be defined as a prediction unit
  • the data unit for conversion can be defined as a conversion unit.
  • the partition mode applied in the prediction unit and the partition mode applied in the conversion unit may be different from each other and prediction of the prediction unit and conversion of the conversion unit in the coding unit may be performed in parallel and independently.
  • An encoding unit may be divided into one or more prediction units to determine an efficient prediction method.
  • an encoding unit can be divided into one or more conversion units to determine an efficient conversion method.
  • the division of the prediction unit and the division of the conversion unit can be performed independently. However, when a reconstructed sample in the coding unit is used for intra prediction, the prediction unit or the conversion unit has a dependency relation between prediction units or conversion units included in the coding unit.
  • the prediction unit included in the coding unit can be predicted by intra prediction or inter prediction.
  • Intra prediction is a method of predicting samples of a prediction unit using reference samples around the prediction unit.
  • Inter prediction is a method of obtaining a reference sample from a reference picture referred to by the current picture and predicting the samples of the prediction unit.
  • the encoding unit determination unit 120 can select a most efficient intra prediction method by applying a plurality of intra prediction methods to the prediction unit for intraprediction.
  • Intra prediction methods include a DC mode, a planar mode, a directional mode such as a vertical mode and a horizontal mode, and the like.
  • Intra prediction can be performed for each prediction unit when a reconstructed sample around a coding unit is used as a reference sample.
  • the prediction order of the prediction unit may be dependent on the conversion order of the conversion unit since the restoration of the reference sample in the coding unit should take precedence over the prediction. Therefore, when a reconstructed sample in a coding unit is used as a reference sample, only the intra prediction method for the conversion units corresponding to the prediction unit is determined for the prediction unit, and the actual intra prediction can be performed for each conversion unit.
  • the coding unit determination unit 120 can select the most efficient inter prediction method by determining the optimal motion vector and the reference picture.
  • the coding unit determination unit 120 may determine a plurality of motion vector candidates from spatial units temporally adjacent to the current coding unit for inter prediction and determine the most efficient motion vector among the motion vectors as a motion vector.
  • a plurality of reference picture candidates can be determined from the current and the temporally adjacent encoding units, and the most efficient reference picture can be determined.
  • a reference picture may be determined from predetermined reference picture lists for the current picture.
  • the most efficient motion vector among a plurality of motion vector candidates may be determined as a predictive motion vector for correct prediction, and a motion vector may be determined by correcting a predictive motion vector.
  • Inter prediction can be performed in parallel for each prediction unit in an encoding unit.
  • the coding unit determination unit 120 may obtain only information indicating a motion vector and a reference picture according to the skip mode to restore the coding unit. According to the skip mode, all the coding information including the residual signal is omitted except for the information indicating the motion vector and the reference picture. Since the residual signal is omitted, the skip mode can be used when the accuracy of the prediction is very high.
  • the partitioning mode used may be limited depending on the prediction method for the prediction unit. For example, only the partition mode for a prediction unit of 2Nx2N, NxN size is applied to the intra prediction, whereas a partition mode for a prediction unit of 2Nx2N, 2NxN, Nx2N, NxN size can be applied to the inter prediction. In addition, only the partition mode for a prediction unit of 2Nx2N size can be applied to the skip mode of the inter prediction.
  • the partition mode allowed for each prediction method in the image coding apparatus 100 can be changed according to the coding efficiency.
  • the image encoding apparatus 100 may perform conversion based on a conversion unit included in a coding unit or an encoding unit.
  • the image encoding apparatus 100 may convert residual data, which is a difference value between an original value and a predicted value, of the pixels included in the encoding unit through a predetermined process.
  • the image encoding apparatus 100 may perform lossy compression through quantization and DCT / DST conversion of residual data.
  • the image encoding apparatus 100 can perform lossless compression of the residual data without quantization.
  • the image encoding apparatus 100 can determine the most efficient conversion unit for quantization and conversion. In a similar manner to the encoding unit according to the tree structure, the conversion unit in the encoding unit is also recursively divided into the conversion unit of smaller size, and the residual data of the encoding unit is divided according to the conversion depth according to the conversion depth. . Then, the image encoding apparatus 100 may generate conversion division information for division of the encoding unit and the conversion unit according to the determined tree structure of the conversion unit.
  • the image coding apparatus 100 may be set to a conversion depth indicating the number of divisions from the height and width of the coding unit to the conversion unit. For example, if the size of the conversion unit of the current encoding unit of size 2Nx2N is 2Nx2N, the conversion depth is set to 0 if the conversion depth is 0, if the conversion unit size is NxN, and if the conversion unit size is N / 2xN / 2, . That is, a conversion unit according to the tree structure can be set according to the conversion depth.
  • the coding unit determination unit 120 determines the most efficient prediction method for the current prediction unit among the plurality of intra prediction methods and inter prediction methods.
  • the encoding unit determination unit 120 determines a prediction unit determination method according to the encoding efficiency according to the prediction result.
  • the encoding unit determination unit 120 determines the conversion unit determination method according to the encoding efficiency according to the conversion result.
  • the coding efficiency of the coding unit is finally determined according to the most efficient prediction unit and the determination method of the conversion unit.
  • the encoding unit determination unit 120 determines the hierarchical structure of the maximum encoding unit according to the encoding efficiency of each depth encoding unit.
  • the coding unit determination unit 120 may measure the coding efficiency of the coding unit for each depth and the prediction efficiency of the prediction methods using Rate-Distortion Optimization based on a Lagrangian Multiplier .
  • the encoding unit determination unit 120 may generate division information indicating whether or not the encoding unit is divided according to a hierarchical structure of the determined maximum encoding unit.
  • the encoding unit determination unit 120 may generate the partition mode information for determining a prediction unit and the conversion unit division information for determining a conversion unit for the divided encoding unit.
  • the encoding unit determination unit 120 can generate the division type information indicating the division method together with the division information when the number of division methods of the encoding unit is two or more.
  • the encoding unit determination unit 120 may generate information on the prediction method and the conversion method used in the prediction unit and the conversion unit.
  • the output unit 130 may output the information generated by the maximum encoding unit determination unit 110 and the encoding unit determination unit 120 in the form of a bit stream according to the hierarchical structure of the maximum encoding unit.
  • FIG. 1B shows a block diagram of an image decoding apparatus 150 based on a coding unit according to a tree structure according to an embodiment.
  • the image decoding apparatus 150 includes a receiving unit 160, an encoding information extracting unit 170, and a decoding unit 180.
  • the receiving unit 160 receives and parses the bitstream of the encoded video.
  • the encoding information extracting unit 170 extracts information necessary for decoding for each maximum encoding unit from the parsed bit stream and provides the extracted information to the decoding unit 180.
  • the encoding information extracting unit 170 can extract information on the maximum size of the encoding unit of the current picture from the header, sequence parameter set, or picture parameter set for the current picture.
  • the encoding information extracting unit 170 extracts the final depth and the division information for the encoding units according to the tree structure for each maximum encoding unit from the parsed bit stream.
  • the extracted final depth and division information are output to the decoding unit 180.
  • the decoding unit 180 can determine the tree structure of the maximum encoding unit by dividing the maximum encoding unit according to the extracted final depth and segmentation information.
  • the division information extracted by the encoding information extraction unit 170 is division information for a tree structure determined by the image encoding apparatus 100 to generate a minimum encoding error. Accordingly, the image decoding apparatus 150 can decode the image according to the encoding scheme that generates the minimum encoding error to recover the image.
  • the encoding information extracting unit 170 can extract the division information for a data unit such as a prediction unit and a conversion unit included in the encoding unit. For example, the encoding information extracting unit 170 may extract the most efficient partition mode information for a prediction unit. The encoding information extracting unit 170 can extract the conversion division information for the most efficient tree structure in the conversion unit.
  • the encoding information extracting unit 170 can acquire information on the most efficient prediction method for the prediction units divided from the encoding unit.
  • the encoding information extracting unit 170 can obtain information on the most efficient conversion method for the conversion units divided from the encoding unit.
  • the encoding information extracting unit 170 extracts information from a bit stream according to a method of constructing a bit stream at the output unit 130 of the image encoding apparatus 100.
  • the decoding unit 180 can divide the maximum encoding unit into the encoding units having the most efficient tree structure based on the division information.
  • the decoding unit 180 may divide the encoding unit into prediction units according to the information on the partition mode.
  • the decoding unit 180 may divide the encoding unit into units of conversion according to the conversion division information.
  • the decoding unit 180 may predict a prediction unit according to prediction method information.
  • the decoding unit 180 may dequantize and invert the residual data corresponding to the difference between the original value and the predicted value of the pixel according to the information on the conversion method of the conversion unit. Also, the decoding unit 180 may recover the pixels of the encoding unit according to the prediction result of the prediction unit and the conversion result of the conversion unit.
  • FIG. 2 illustrates a process in which the image decoding apparatus 150 determines at least one encoding unit by dividing a current encoding unit according to an embodiment.
  • the image decoding apparatus 150 may determine the type of an encoding unit using block type information, and may determine a type of an encoding unit to be divided using the type information. That is, the division method of the coding unit indicated by the division type information can be determined according to which block type the block type information used by the video decoding apparatus 150 represents.
  • the image decoding apparatus 150 may use block type information indicating that the current encoding unit is a square type. For example, the image decoding apparatus 150 can determine whether to divide a square encoding unit according to division type information, vertically divide, horizontally divide, or divide into four encoding units. 2, if the block type information of the current encoding unit 200 indicates a square shape, the decoding unit 180 may calculate the size of the current encoding unit 200 according to the division type information indicating that the current block is not divided It is possible to determine the divided coding units 210b, 210c, and 210d based on the division type information indicating the predetermined division method or not dividing the coding unit 210a.
  • the image decoding apparatus 150 determines two encoding units 210b, which are obtained by dividing the current encoding unit 200 in the vertical direction, based on the division type information indicating that the image is divided vertically according to an embodiment .
  • the image decoding apparatus 150 can determine two encoding units 210c in which the current encoding unit 200 is horizontally divided based on the division type information indicating that the image is divided in the horizontal direction.
  • the image decoding apparatus 150 can determine the four coding units 210d obtained by dividing the current coding unit 200 in the vertical direction and the horizontal direction based on the division type information indicating that the coding unit 200 is divided in the vertical direction and the horizontal direction.
  • the division type in which the square coding unit can be divided should not be limited to the above-mentioned form, but may include various forms in which the division type information can be represented.
  • the predetermined divisional form in which the square encoding unit is divided will be described in detail by way of various embodiments below.
  • FIG. 3 illustrates a process in which the image decoding apparatus 150 determines at least one encoding unit by dividing a non-square encoding unit according to an embodiment.
  • the image decoding apparatus 150 may use block type information indicating that the current encoding unit is a non-square format.
  • the image decoding apparatus 150 can determine whether to divide the current non-square coding unit according to the division type information or not by a predetermined method. 3, if the block type information of the current encoding unit 300 or 350 indicates a non-square shape, the image decoding apparatus 150 determines whether the current encoding unit 300 320b, 330a, 330b, 330c, 370a, and 330b based on the division type information indicating a predetermined division method, or the encoding units 310 and 360 having the same size as the encoding units 310 and 360, 370b, 380a, 380b, and 380c.
  • the predetermined division method in which the non-square coding unit is divided will be described in detail through various embodiments.
  • the image decoding apparatus 150 may determine the type in which the coding unit is divided using the division type information.
  • the division type information indicates the number of at least one coding unit generated by dividing the coding unit . 3, if the division type information indicates that the current encoding unit 300 or 350 is divided into two encoding units, the image decoding apparatus 150 decodes the current encoding unit 300 or 350 based on the division type information, To determine the two encoding units 320a, 320b, or 370a, 370b included in the current encoding unit.
  • the non-square current coding unit 300 or 350 can be divided in consideration of the position of the long side.
  • the image decoding apparatus 150 divides the current encoding unit 300 or 350 in the direction of dividing the long side of the current encoding unit 300 or 350 in consideration of the shape of the current encoding unit 300 or 350 So that a plurality of encoding units can be determined.
  • the image decoding apparatus 150 may determine an odd number of encoding units included in the current encoding unit 300 or 350.
  • the image decoding device 150 divides the current encoding unit 300 or 350 into three encoding units 330a , 330b, 330c, 380a, 380b, and 380c.
  • the image decoding apparatus 150 may determine an odd number of encoding units included in the current encoding unit 300 or 350, and the sizes of the determined encoding units may not be the same.
  • the size of the predetermined encoding unit 330b or 380b among the determined odd number of encoding units 330a, 330b, 330c, 380a, 380b, and 380c is different from the size of the other encoding units 330a, 330c, 380a, and 380c . That is, the encoding unit that can be determined by dividing the current encoding unit 300 or 350 may have a plurality of types of sizes.
  • the image decoding apparatus 150 can determine an odd number of encoding units included in the current encoding unit 300 or 350, The image decoding apparatus 150 may limit the encoding unit of at least one of odd number of encoding units generated by division.
  • the image decoding apparatus 150 includes a coding unit 330a, 330b, 330c, 380a, 380b, and 380c generated by dividing a current coding unit 300 or 350, (330b, 380b) may be different from the other encoding units (330a, 330c, 380a, 380c).
  • the image decoding apparatus 150 may restrict the encoding units 330b and 380b positioned at the center to be not further divided, or may be limited to a predetermined number of times, differently from other encoding units 330a, 330c, 380a, and 380c It can be limited to be divided.
  • FIG. 4 illustrates a process in which the image decoding apparatus 150 divides an encoding unit based on at least one of block type information and division type information according to an embodiment.
  • the image decoding apparatus 150 may determine that the first encoding unit 400 in the form of a square is not divided or divided into encoding units based on at least one of the block type information and the division type information. According to one embodiment, when the division type information indicates that the first encoding unit 400 is divided in the horizontal direction, the image decoding apparatus 150 divides the first encoding unit 400 in the horizontal direction, (410).
  • the first encoding unit, the second encoding unit, and the third encoding unit used according to an embodiment are terms used to understand the relation before and after the division between encoding units.
  • the second encoding unit can be determined, and if the second encoding unit is divided, the third encoding unit can be determined.
  • the relationship between the first coding unit, the second coding unit and the third coding unit used can be understood to be in accordance with the above-mentioned characteristic.
  • the image decoding apparatus 150 may determine that the determined second encoding unit 410 is not divided or divided into encoding units based on at least one of the block type information and the division type information.
  • the image decoding apparatus 150 includes a second coding unit 410 of a non-square shape determined by dividing a first coding unit 400 based on at least one of block type information and division type information It may be divided into at least one third encoding unit 420a, 420b, 420c, 420d, or the like, or the second encoding unit 410 may not be divided.
  • the image decoding apparatus 150 may obtain at least one of the block type information and the division type information and the image decoding apparatus 150 may acquire at least one of the block type information and the division type information,
  • the second encoding unit 410 may divide a plurality of second encoding units (for example, 410) of various types into a first encoding unit 410 and a second encoding unit 410
  • the unit 400 can be divided according to the division method.
  • the encoding unit 410 may also be divided into a third encoding unit (e.g., 420a, 420b, 420c, 420d, etc.) based on at least one of the block type information and the division type information for the second encoding unit 410 have. That is, an encoding unit can be recursively divided based on at least one of division type information and block type information associated with each encoding unit. A method which can be used for recursive division of an encoding unit will be described later in various embodiments.
  • the image decoding apparatus 150 divides each of the third encoding units 420a, 420b, 420c, and 420d into units of encoding based on at least one of the block type information and the division type information, It can be determined that the unit 410 is not divided.
  • the image decoding apparatus 150 may divide the second encoding unit 410 in the non-square form into an odd number of third encoding units 420b, 420c and 420d according to an embodiment.
  • the image decoding apparatus 150 may set a predetermined restriction on a predetermined third encoding unit among odd numbered third encoding units 420b, 420c, and 420d.
  • the image decoding apparatus 150 may limit the encoding unit 420c located in the middle among the odd-numbered third encoding units 420b, 420c, and 420d to no longer be divided or be divided into a set number of times . Referring to FIG.
  • the image decoding apparatus 150 includes an encoding unit (not shown) located in the middle among the odd third encoding units 420b, 420c, and 420d included in the second encoding unit 410 in the non- 420c are not further divided or are limited to being divided into a predetermined division form (for example, divided into four coding units or divided into a form corresponding to a form in which the second coding units 410 are divided) (For example, dividing only n times, n > 0).
  • a predetermined division form for example, divided into four coding units or divided into a form corresponding to a form in which the second coding units 410 are divided
  • the above restriction on the encoding unit 420c positioned at the center is merely an example and should not be construed to be limited to the above embodiments and the encoding unit 420c positioned at the center is not limited to the other encoding units 420b and 420d Quot;), < / RTI > which can be decoded differently.
  • the image decoding apparatus 150 may obtain at least one of the block type information and the division type information used for dividing the current encoding unit at a predetermined position in the current encoding unit according to an embodiment.
  • FIG. 13 illustrates a method for an image decoding apparatus 150 to determine a predetermined encoding unit among odd number of encoding units according to an embodiment.
  • at least one of the block type information and the division type information of the current encoding unit 1300 is a sample of a predetermined position among a plurality of samples included in the current encoding unit 1300 (for example, Sample 1340).
  • the predetermined position in the current coding unit 1300 in which at least one of the block type information and the division type information can be obtained should not be limited to the middle position shown in FIG.
  • the image decoding apparatus 150 may determine that the current encoding unit is not divided or divided into the encoding units of various types and sizes by acquiring at least one of the block type information and the division type information obtained from the predetermined position.
  • the image decoding apparatus 150 may select one of the encoding units.
  • the method for selecting one of the plurality of encoding units may be various, and description of these methods will be described later in various embodiments.
  • the image decoding apparatus 150 may divide the current encoding unit into a plurality of encoding units and determine a predetermined encoding unit.
  • FIG. 5 illustrates a method for an image decoding apparatus 150 to determine an encoding unit of a predetermined position among odd number of encoding units according to an embodiment.
  • the image decoding apparatus 150 may use information indicating positions of odd-numbered encoding units in order to determine an encoding unit located in the middle among odd-numbered encoding units. Referring to FIG. 5, the image decoding apparatus 150 may determine an odd number of encoding units 520a, 520b, and 520c by dividing the current encoding unit 500. FIG. The image decoding apparatus 150 can determine the center encoding unit 520b by using information on the positions of the odd number of encoding units 520a, 520b and 520c.
  • the image decoding apparatus 150 determines the positions of the encoding units 520a, 520b, and 520c based on information indicating the positions of predetermined samples included in the encoding units 520a, 520b, and 520c,
  • the encoding unit 520b located in the encoding unit 520 can be determined.
  • the video decoding apparatus 150 decodes the coding units 520a, 520b, and 520c based on information indicating the positions of the upper left samples 530a, 530b, and 530c of the coding units 520a, By determining the position, the coding unit 520b located in the center can be determined.
  • Information indicating the positions of the upper left samples 530a, 530b, and 530c included in the coding units 520a, 520b, and 520c is a position in the picture of the coding units 520a, 520b, and 520c Or information about the coordinates.
  • Information indicating the positions of the upper left samples 530a, 530b, and 530c included in the coding units 520a, 520b, and 520c according to one embodiment is stored in the coding units 520a and 520b included in the current coding unit 500 , 520c, and the width or height may correspond to information indicating the difference between the coordinates of the coding units 520a, 520b, and 520c in the picture.
  • the image decoding apparatus 150 directly uses the information on the positions or coordinates of the coding units 520a, 520b and 520c in the pictures or information on the width or height of the coding units corresponding to the difference between the coordinates
  • the encoding unit 520b located in the center can be determined.
  • the information indicating the position of the upper left sample 530a of the upper coding unit 520a may indicate the coordinates of (xa, ya) and the upper left sample 530b of the middle coding unit 520b May indicate the coordinates of (xb, yb), and information indicating the position of the upper left sample 530c of the lower coding unit 520c may indicate (xc, yc) coordinates.
  • the image decoding apparatus 150 can determine the center encoding unit 520b using the coordinates of the upper left samples 530a, 530b, and 530c included in the encoding units 520a, 520b, and 520c.
  • the coding unit 520b including (xb, yb) coordinates of the sample 530b positioned at the center, 520b, and 520c determined by dividing the current encoding unit 500 by a coding unit located in the middle of the encoding units 520a, 520b, and 520c.
  • the coordinates indicating the positions of the upper left samples 530a, 530b, and 530c may indicate the coordinates indicating the absolute position in the picture
  • the position of the upper left sample unit 530a of the upper coding unit 520a may be (Dxb, dyb), which is information indicating the relative position of the upper left sample 530b of the middle coding unit 520b, and the relative position of the upper left sample 530c of the lower coding unit 520c
  • Information dyn (dxc, dyc) coordinates may also be used.
  • the method of determining the coding unit at a predetermined position by using the coordinates of the sample as information indicating the position of the sample included in the coding unit should not be limited to the above-described method, and various arithmetic Should be interpreted as a method.
  • the image decoding apparatus 150 may divide the current encoding unit 500 into a plurality of encoding units 520a, 520b, and 520c, and may encode a predetermined one of the encoding units 520a, 520b, and 520c
  • the encoding unit can be selected.
  • the image decoding apparatus 150 can select an encoding unit 520b having a different size from the encoding units 520a, 520b, and 520c.
  • the image decoding apparatus 150 includes a (xa, ya) coordinate which is information indicating the position of the upper left sample 530a of the upper encoding unit 520a, (Xc, yc) coordinates, which are information indicating the positions of the upper-stage coding unit 530b and the upper-left sample unit 530c of the lower-stage coding unit 520c, 520b, and 520c, respectively.
  • the video decoding apparatus 150 encodes the video data in units of encoding units 520a, 520b, and 520c using the coordinates (xa, ya), (xb, yb), (xc, yc) indicating the positions of the encoding units 520a, 520b, ) Can be determined.
  • the image decoding apparatus 150 can determine the width of the upper encoding unit 520a as xb-xa and the height as yb-ya. According to an embodiment, the image decoding apparatus 150 can determine the width of the center encoding unit 520b as xc-xb and the height as yc-yb. The image decoding apparatus 150 may determine the width or height of the lower coding unit using the width or height of the current coding unit and the width and height of the upper coding unit 520a and the middle coding unit 520b . The image decoding apparatus 150 may determine an encoding unit having a different size from other encoding units based on the width and height of the determined encoding units 520a, 520b, and 520c.
  • the image decoding apparatus 150 may determine a coding unit 520b as a coding unit at a predetermined position while having a size different from that of the upper coding unit 520a and the lower coding unit 520c.
  • the process of determining the encoding unit having a size different from that of the other encoding units by the above-described video decoding apparatus 150 may be performed in an embodiment that determines encoding units at predetermined positions using the sizes of the encoding units determined based on the sample coordinates .
  • Various processes may be used for determining the encoding unit at a predetermined position by comparing the sizes of the encoding units determined according to predetermined sample coordinates.
  • the position of the sample to be considered for determining the position of the coding unit should not be interpreted as being limited to the left upper end, and information about the position of any sample included in the coding unit can be interpreted as being available.
  • the image decoding apparatus 150 may select an encoding unit of a predetermined position among odd number of encoding units determined by dividing the current encoding unit in consideration of the type of the current encoding unit. For example, if the current coding unit is a non-square shape having a width greater than the height, the image decoding apparatus 150 can determine a coding unit at a predetermined position along the horizontal direction. That is, the image decoding apparatus 150 may determine one of the encoding units which are located in the horizontal direction and limit the encoding unit. If the current coding unit has a non-square shape with a height greater than the width, the image decoding apparatus 150 can determine a coding unit at a predetermined position in the vertical direction. That is, the image decoding apparatus 150 may determine one of the encoding units having different positions in the vertical direction and set a restriction on the encoding unit.
  • the image decoding apparatus 150 may use information indicating positions of even-numbered encoding units in order to determine an encoding unit of a predetermined position among the even-numbered encoding units.
  • the image decoding apparatus 150 can determine an even number of encoding units by dividing the current encoding unit and determine a encoding unit at a predetermined position by using information on the positions of the even number of encoding units.
  • a concrete procedure for this is omitted because it may be a process corresponding to a process of determining a coding unit of a predetermined position (for example, the middle position) among the above-mentioned odd number of coding units.
  • the video decoding apparatus 150 may divide the block type information stored in the samples included in the middle coding unit, Information can be used.
  • the image decoding apparatus 150 may divide the current encoding unit 500 into a plurality of encoding units 520a, 520b, and 520c based on at least one of block type information and division type information, It is possible to determine an encoding unit 520b located in the middle of the plurality of encoding units 520a, 520b, and 520c. Furthermore, the image decoding apparatus 150 may determine a coding unit 520b positioned at the center in consideration of the position at which at least one of the block type information and the division type information is obtained.
  • At least one of the block type information and the division type information of the current encoding unit 500 can be acquired in the sample 540 located in the center of the current encoding unit 500, and the block type information and the division type information If the current encoding unit 500 is divided into a plurality of encoding units 520a, 520b and 520c based on at least one of the encoding units 520a to 520c, You can decide.
  • the information used for determining the coding unit located in the middle should not be limited to at least one of the block type information and the division type information, and various kinds of information may be used in the process of determining the coding unit located in the middle .
  • predetermined information for identifying a coding unit at a predetermined position may be obtained from a predetermined sample included in a coding unit to be determined.
  • the image decoding apparatus 150 includes a plurality of encoding units 520a, 520b, and 520c, which are determined by dividing the current encoding unit 500, Block type information obtained at a predetermined position in the current encoding unit 500 (e.g., a sample located in the middle of the current encoding unit 500) to determine the encoding unit located in the middle of the encoding unit, and And at least one of division type information. .
  • the image decoding apparatus 150 can determine the sample at the predetermined position in consideration of the block form of the current encoding unit 500, and the image decoding apparatus 150 can decode the plural A coding unit 520b including a sample in which predetermined information (for example, at least one of block type information and division type information) can be obtained is determined among the plurality of coding units 520a, 520b and 520c, .
  • the image decoding apparatus 150 may determine a sample 540 positioned at the center of the current encoding unit 500 as a sample from which predetermined information can be obtained,
  • the coding unit 150 may limit the coding unit 520b including the sample 540 to a predetermined limit in the decoding process.
  • the position of the sample from which the predetermined information can be obtained should not be construed to be limited to the above-mentioned position, but may be interpreted as samples at arbitrary positions included in the encoding unit 520b to be determined for limiting.
  • the position of a sample from which predetermined information can be obtained may be determined according to the type of the current encoding unit 500 according to an embodiment.
  • the block type information can determine whether the current encoding unit is a square or a non-square, and determine the position of a sample from which predetermined information can be obtained according to the shape.
  • the image decoding apparatus 150 may use at least one of the information on the width of the current encoding unit and the information on the height, and may be located on a boundary that divides at least one of the width and the height of the current encoding unit by half The sample can be determined as a sample from which predetermined information can be obtained.
  • the image decoding apparatus 150 may set one of the samples adjacent to the boundary dividing the long side of the current encoding unit in half to a predetermined Can be determined as a sample from which the information of < / RTI >
  • the image decoding apparatus 150 may determine at least one of the block type information and the division type information One can be used. According to an exemplary embodiment, the image decoding apparatus 150 may obtain at least one of the block type information and the division type information from a sample at a predetermined position included in the encoding unit, and the image decoding apparatus 150 may determine that the current encoding unit is divided And divide the generated plurality of coding units by using at least one of division type information and block type information obtained from samples at predetermined positions included in each of the plurality of coding units.
  • the coding unit can be recursively divided using at least one of the block type information and the division type information obtained in the sample at the predetermined position included in each of the coding units. Since the recursive division process of the encoding unit has been described with reference to FIG. 4, a detailed description will be omitted.
  • the image decoding apparatus 150 may determine at least one encoding unit by dividing the current encoding unit, and may determine the order in which the at least one encoding unit is decoded in a predetermined block (for example, ). ≪ / RTI >
  • FIG. 6 illustrates a sequence in which a plurality of encoding units are processed when the image decoding apparatus 150 determines a plurality of encoding units by dividing the current encoding unit according to an exemplary embodiment.
  • the image decoding apparatus 150 divides the first encoding unit 600 in the vertical direction according to the block type information and the division type information to determine the second encoding units 610a and 610b, 650b, 650c, and 650d by dividing the first encoding unit 600 in the horizontal direction to determine the second encoding units 630a and 630b or dividing the first encoding unit 600 in the vertical direction and the horizontal direction, Can be determined.
  • the image decoding apparatus 150 may determine the order in which the second encoding units 610a and 610b determined by dividing the first encoding unit 600 in the vertical direction are processed in the horizontal direction 610c .
  • the image decoding apparatus 150 can determine the processing order of the second encoding units 630a and 630b determined by dividing the first encoding unit 600 in the horizontal direction as the vertical direction 630c.
  • the image decoding apparatus 150 processes the encoding units located in one row of the second encoding units 650a, 650b, 650c, and 650d determined by dividing the first encoding unit 600 in the vertical direction and the horizontal direction (For example, a raster scan order or a z scan order 650e) in which the encoding units located in the next row are processed.
  • the image decoding apparatus 150 may recursively divide encoding units. 6, the image decoding apparatus 150 may determine a plurality of encoding units 610a, 610b, 630a, 630b, 650a, 650b, 650c, and 650d by dividing the first encoding unit 600, The determined plurality of encoding units 610a, 610b, 630a, 630b, 650a, 650b, 650c and 650d may be recursively divided.
  • the method of dividing the plurality of encoding units 610a, 610b, 630a, 630b, 650a, 650b, 650c, and 650d may be a method corresponding to the method of dividing the first encoding unit 600.
  • the plurality of encoding units 610a, 610b, 630a, 630b, 650a, 650b, 650c, and 650d may be independently divided into a plurality of encoding units. Referring to FIG.
  • the image decoding apparatus 150 may determine the second encoding units 610a and 610b by dividing the first encoding unit 600 in the vertical direction, and may further determine the second encoding units 610a and 610b Can be determined not to divide or separate independently.
  • the image decoding apparatus 150 may divide the second encoding unit 610a on the left side in the horizontal direction into the third encoding units 620a and 620b and may divide the second encoding unit 610a on the right side into the second encoding units 610b ) May not be divided.
  • the processing order of the encoding units may be determined based on the division process of the encoding units.
  • the processing order of the divided coding units can be determined based on the processing order of the coding units immediately before being divided.
  • the image decoding apparatus 150 can determine the order in which the third coding units 620a and 620b determined by dividing the second coding unit 610a on the left side are processed independently of the second coding unit 610b on the right side.
  • the third encoding units 620a and 620b may be processed in the vertical direction 620c since the second encoding units 610a on the left side are divided in the horizontal direction and the third encoding units 620a and 620b are determined.
  • the third encoding unit included in the left second encoding unit 610a The right encoding unit 610b can be processed after the blocks 620a and 620b are processed in the vertical direction 620c.
  • the above description is intended to explain the process sequence in which encoding units are determined according to the encoding units before division. Therefore, it should not be construed to be limited to the above-described embodiments, It should be construed as being used in various ways that can be handled independently in sequence.
  • FIG. 7 illustrates a process of determining that the current encoding unit is divided into odd number of encoding units when the image decoding apparatus 150 can not process the encoding units in a predetermined order according to an embodiment.
  • the image decoding apparatus 150 may determine that the current encoding unit is divided into odd number of encoding units based on the obtained block type information and the division type information.
  • the first encoding unit 700 of a square shape can be divided into second non-square encoding units 710a and 710b, and the second encoding units 710a and 710b can be independently 3 encoding units 720a, 720b, 720c, 720d, and 720e.
  • the image decoding apparatus 150 may determine a plurality of third encoding units 720a and 720b by dividing the left encoding unit 710a among the second encoding units in the horizontal direction, and the right encoding unit 710b May be divided into an odd number of third encoding units 720c, 720d, and 720e.
  • the image decoding apparatus 150 determines whether or not the third encoding units 720a, 720b, 720c, 720d, and 720e can be processed in a predetermined order and determines whether there are odd-numbered encoding units You can decide. Referring to FIG. 7, the image decoding apparatus 150 may recursively divide the first coding unit 700 to determine the third coding units 720a, 720b, 720c, 720d, and 720e.
  • the image decoding apparatus 150 may further include a first encoding unit 700, a second encoding unit 710a and 710b or a third encoding unit 720a, 720b, 720c, and 720c based on at least one of block type information and division type information, 720d, and 720e may be divided into odd number of coding units among the divided types. For example, an encoding unit located on the right of the second encoding units 710a and 710b may be divided into odd third encoding units 720c, 720d, and 720e.
  • the order in which the plurality of coding units included in the first coding unit 700 are processed may be a predetermined order (for example, a z-scan order 730) 150 can determine whether the third encoding units 720c, 720d, and 720e determined by dividing the right second encoding unit 710b into odd numbers satisfy the condition that the third encoding units 720c, 720d, and 720e can be processed according to the predetermined order.
  • a predetermined order for example, a z-scan order 730
  • the image decoding apparatus 150 satisfies a condition that third encoding units 720a, 720b, 720c, 720d, and 720e included in the first encoding unit 700 can be processed in a predetermined order And it is determined whether or not at least one of the widths and heights of the second encoding units 710a and 710b is divided in half according to the boundaries of the third encoding units 720a, 720b, 720c, 720d, and 720e, .
  • the third encoding units 720a and 720b determined by dividing the height of the left second encoding unit 710a in the non-square shape by half are satisfying the condition, but the right second encoding unit 710b is set to 3 Since the boundaries of the third encoding units 720c, 720d, and 720e, which are determined by dividing the first encoding units 720c, 720d, and 720e, can not divide the width or the height of the second right encoding unit 710b by half, 720e may be determined as not satisfying the condition and the image decoding apparatus 150 may determine that the scanning order is disconnection in the case of such unsatisfactory condition and the right second encoding unit 710b is determined based on the determination result It can be determined to be divided into odd number of encoding units.
  • the coding unit of a predetermined position among the divided coding units may be limited to a predetermined size. Since the embodiment has been described above, a detailed description thereof will be omitted.
  • FIG. 8 illustrates a process in which an image decoding apparatus 150 determines at least one encoding unit by dividing a first encoding unit 800 according to an embodiment.
  • the image decoding apparatus 150 may divide the first encoding unit 800 based on at least one of the block type information and the division type information acquired through the receiver 160.
  • the first encoding unit 800 in the form of a square may be divided into four encoding units having a square form, or may be divided into a plurality of encoding units of a non-square form. For example, referring to FIG.
  • the image decoding device 150 when the block type information indicates that the first encoding unit 800 is a square and that the division type information is divided into non-square encoding units, the image decoding device 150 generates a first encoding unit
  • the encoding unit 800 may be divided into a plurality of non-square encoding units. More specifically, when the division type information indicates that the first encoding unit 800 is divided horizontally or vertically to determine an odd number of encoding units, the image decoding apparatus 150 includes a first encoding unit 800 in the form of a square 800 820b, and 820c divided in the vertical direction as the odd number of encoding units, or into the second encoding units 820a, 820b, and 820c determined by being divided in the horizontal direction.
  • the image decoding apparatus 150 may be configured such that the second encoding units 810a, 810b, 810c, 820a, 820b, and 820c included in the first encoding unit 800 are processed in a predetermined order And the condition is that at least one of the width and height of the first encoding unit 800 is divided in half according to the boundaries of the second encoding units 810a, 810b, 810c, 820a, 820b, and 820c .
  • the boundaries of the second encoding units 810a, 810b and 810c which are determined by dividing the first encoding unit 800 in the vertical direction into a square shape, are divided in half by the width of the first encoding unit 800
  • the first encoding unit 800 can be determined as not satisfying a condition that can be processed in a predetermined order. Also, since the boundaries of the second encoding units 820a, 820b, and 820c determined by dividing the first encoding unit 800 in the horizontal direction into the horizontal direction can not divide the width of the first encoding unit 800 in half, 1 encoding unit 800 may be determined as not satisfying a condition that can be processed in a predetermined order.
  • the image decoding apparatus 150 may determine that the scan sequence is disconnection in the case of such unsatisfactory condition and determine that the first encoding unit 800 is divided into odd number of encoding units based on the determination result. According to one embodiment, when the image decoding apparatus 150 is divided into an odd number of coding units, the coding unit of a predetermined position among the divided coding units may be limited to a predetermined size. Since the embodiment has been described above, a detailed description thereof will be omitted.
  • the image decoding apparatus 150 may divide the first encoding unit and determine various types of encoding units.
  • the image decoding apparatus 150 may divide the first coding unit 800 of a square shape and the first coding unit 830 or 850 of a non-square shape into various types of coding units .
  • the image decoding apparatus 150 generates the first coding unit 900 in the form of a square based on at least one of the block type information and the division type information acquired through the receiving unit 160, 2 encoding units 910a, 910b, 920a, and 920b.
  • the second encoding units 910a, 910b, 920a, and 920b may be independently divided. Accordingly, the video decoding apparatus 150 determines whether to divide or not divide into a plurality of coding units based on at least one of the block type information and the division type information related to each of the second coding units 910a, 910b, 920a, and 920b .
  • the image decoding apparatus 150 divides the non-square left second encoding unit 910a determined by dividing the first encoding unit 900 in the vertical direction into the horizontal direction, 912a, and 912b. However, when the left second encoding unit 910a is divided in the horizontal direction, the right-side second encoding unit 910b is arranged in the horizontal direction in the same direction as the direction in which the left second encoding unit 910a is divided, As shown in Fig.
  • the right second encoding unit 910b is divided in the same direction and the third encoding units 914a and 914b are determined, the left second encoding unit 910a and the right second encoding unit 910b are arranged in the horizontal direction
  • the third encoding units 912a, 912b, 914a, and 914b can be determined by being independently divided.
  • the image decoding apparatus 150 may divide the first coding unit 900 into four square-shaped second coding units 930a, 930b, 930c, and 930d based on at least one of the block type information and the division type information. And this may be inefficient in terms of image decoding.
  • the image decoding apparatus 150 divides the second encoding unit 920a or 920b in the non-square form determined by dividing the first encoding unit 330 in the horizontal direction into the vertical direction, (922a, 922b, 924a, 924b). However, if one of the second coding units (for example, the upper second coding unit 920a) is divided in the vertical direction, the video decoding apparatus 150 may generate a second coding unit (for example, Coding unit 920b) can be restricted so that the upper second encoding unit 920a can not be divided vertically in the same direction as the divided direction.
  • a second coding unit for example, Coding unit 920b
  • FIG. 10 illustrates a process in which the image decoding apparatus 150 divides a square-shaped encoding unit when the division type information can not be divided into four square-shaped encoding units according to an embodiment.
  • the image decoding apparatus 150 divides the first encoding unit 1000 based on at least one of the block type information and the division type information to generate the second encoding units 1010a, 1010b, 1020a, and 1020b You can decide.
  • the division type information may include information on various types in which the coding unit can be divided, but information on various types may not include information for dividing into four square units of coding units.
  • the image decoding apparatus 150 can not divide the first encoding unit 1000 in the square form into the second encoding units 1030a, 1030b, 1030c, and 1030d in the form of four squares.
  • the image decoding apparatus 150 can determine the second encoding units 1010a, 1010b, 1020a, and 1020b in the non-square form based on the division type information.
  • the image decoding apparatus 150 may independently divide the non-square second encoding units 1010a, 1010b, 1020a, and 1020b, respectively.
  • Each of the second encoding units 1010a, 1010b, 1020a, 1020b, and the like may be divided in a predetermined order through a recursive method, and the first encoding unit 1000 May be a partitioning method corresponding to a method in which a partition is divided.
  • the image decoding apparatus 150 can determine the third encoding units 1012a and 1012b in the form of a square by dividing the left second encoding unit 1010a in the horizontal direction, and the right second encoding unit 1010b It is possible to determine the third encoding units 1014a and 1014b in the form of a square by being divided in the horizontal direction. Furthermore, the image decoding apparatus 150 may divide the left second encoding unit 1010a and the right second encoding unit 1010b in the horizontal direction to determine the third encoding units 1016a, 1016b, 1016c, and 1016d in the form of a square have. In this case, the encoding unit may be determined in the same manner as the first encoding unit 1000 is divided into the four second square encoding units 1030a, 1030b, 1030c, and 1030d.
  • the image decoding apparatus 150 can determine the third encoding units 1022a and 1022b in the shape of a square by dividing the upper second encoding unit 1020a in the vertical direction, and the lower second encoding units 1020b Can be divided in the vertical direction to determine the third encoding units 1024a and 1024b in the form of a square. Further, the image decoding apparatus 150 may divide the upper second encoding unit 1020a and the lower second encoding unit 1020b in the vertical direction to determine the third encoding units 1022a, 1022b, 1024a, and 1024b in the form of a square have. In this case, the encoding unit may be determined in the same manner as the first encoding unit 1000 is divided into the four second square encoding units 1030a, 1030b, 1030c, and 1030d.
  • FIG. 11 illustrates that the processing order among a plurality of coding units may be changed according to the division process of the coding unit according to an embodiment.
  • the image decoding apparatus 150 may divide the first encoding unit 1100 based on the block type information and the division type information.
  • the image decoding apparatus 150 includes a first encoding unit 1100 (For example, 1110a, 1110b, 1120a, 1120b, 1130a, 1130b, 1130c, 1130d, etc.)
  • the non-square second encoding units 1110a, 1110b, 1120a, and 1120b which are determined by dividing the first encoding unit 1100 only in the horizontal direction or the vertical direction, As shown in FIG.
  • the image decoding apparatus 150 divides the second encoding units 1110a and 1110b generated by dividing the first encoding unit 1100 in the vertical direction into the horizontal direction, and outputs the third encoding units 1116a and 1116b, 1116c and 1116d can be determined and the second encoding units 1120a and 1120b generated by dividing the first encoding unit 1100 in the horizontal direction are respectively divided in the horizontal direction to generate third encoding units 1126a, 1126b and 1126c , 1126d. Since the process of dividing the second encoding units 1110a, 1110b, 1120a, and 1120b has been described in detail with reference to FIG. 9, a detailed description thereof will be omitted.
  • the image decoding apparatus 150 may process an encoding unit in a predetermined order.
  • the features of the processing of the encoding unit according to the predetermined order have been described above with reference to FIG. 6, and a detailed description thereof will be omitted.
  • the image decoding apparatus 150 divides a first encoding unit 1100 in a square form into 4 pieces of fourth encoding units 1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, 1126d Can be determined.
  • the image decoding apparatus 150 may process the third encoding units 1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, and 1126d according to the form in which the first encoding unit 1100 is divided You can decide.
  • the image decoding apparatus 150 divides the second encoding units 1110a and 1110b generated in the vertical direction into the horizontal direction to determine the third encoding units 1116a, 1116b, 1116c, and 1116d And the image decoding apparatus 150 first processes the third encoding units 1116a and 1116b included in the left second encoding unit 1110a in the vertical direction and then processes the third encoding units 1116a and 1116b included in the right second encoding unit 1110b The third encoding units 1116a, 1116b, 1116c, and 1116d may be processed in accordance with an order 1117 of processing the third encoding units 1116c and 1116d in the vertical direction.
  • the image decoding apparatus 150 divides the second encoding units 1120a and 1120b generated in the horizontal direction into vertical directions to determine the third encoding units 1126a, 1126b, 1126c, and 1126d
  • the image decoding apparatus 150 first processes the third encoding units 1126a and 1126b included in the upper second encoding unit 1120a in the horizontal direction and then processes the third encoding units 1126a and 1126b included in the lower second encoding unit 1120b
  • the third encoding units 1126a, 1126b, 1126c, and 1126d can be processed according to the order 1127 of processing the third encoding units 1126c and 1126d in the horizontal direction.
  • the second encoding units 1110a, 1110b, 1120a, and 1120b are divided to determine the third encoding units 1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, and 1126d, have.
  • the second encoding units 1110a and 1110b determined to be divided in the vertical direction and the second encoding units 1120a and 1120b determined to be divided in the horizontal direction are divided into different formats, but the third encoding units 1116a , 1116b, 1116c, 1116d, 1126a, 1126b, 1126c and 1126d, the result is that the first encoding unit 1100 is divided into the same type of encoding units.
  • FIG. 12 illustrates a process of determining the depth of an encoding unit according to a change in type and size of an encoding unit when a plurality of encoding units are determined by recursively dividing an encoding unit according to an exemplary embodiment.
  • the image decoding apparatus 150 may determine the depth of a coding unit according to a predetermined criterion.
  • a predetermined criterion may be a length of a long side of a coding unit.
  • the depth of the current coding unit is smaller than the depth of the coding unit before being divided it can be determined that the depth is increased by n.
  • an encoding unit with an increased depth is expressed as a lower-depth encoding unit.
  • the image decoding apparatus 150 may generate a square form 1 encoding unit 1200 can be divided to determine the second encoding unit 1202, the third encoding unit 1204, and the like of the lower depth. If the size of the first encoding unit 1200 in the square form is 2Nx2N, the second encoding unit 1202 determined by dividing the width and height of the first encoding unit 1200 by 1/21 times has a size of NxN have.
  • the third encoding unit 1204 determined by dividing the width and height of the second encoding unit 1202 by a half size may have a size of N / 2xN / 2.
  • the width and height of the third encoding unit 1204 correspond to 1/22 times of the first encoding unit 1200. If the depth of the first encoding unit 1200 is D, the depth of the second encoding unit 1202, which is 1/21 times the width and height of the first encoding unit 1200, may be D + 1, The depth of the third encoding unit 1204, which is one-22 times the width and height of the third encoding unit 1200, may be D + 2.
  • block type information indicating a non-square shape for example, block type information is' 1: NS_VER 'indicating that the height is a non-square having a width greater than the width or' 2
  • the image decoding apparatus 150 divides the non-square first coding unit 1210 or 1220 and outputs the second coding unit 1212 or 1222 of lower depth, The third encoding unit 1214 or 1224, or the like.
  • the image decoding apparatus 150 may determine a second encoding unit (e.g., 1202, 1212, 1222, etc.) by dividing at least one of the width and height of the first encoding unit 1210 of Nx2N size. That is, the image decoding apparatus 150 may determine the second encoding unit 1202 of the NxN size or the second encoding unit 1222 of the NxN / 2 size by dividing the first encoding unit 1210 in the horizontal direction, The second encoding unit 1212 of N / 2xN size may be determined by dividing the second encoding unit 1212 in the horizontal direction and the vertical direction.
  • a second encoding unit e.g., 1202, 1212, 1222, etc.
  • the image decoding apparatus 150 divides at least one of the width and the height of the 2NxN first encoding unit 1220 to determine a second encoding unit (for example, 1202, 1212, 1222, etc.) It is possible. That is, the image decoding apparatus 150 may determine the second encoding unit 1202 of NxN size or the second encoding unit 1212 of N / 2xN size by dividing the first encoding unit 1220 in the vertical direction, The second encoding unit 1222 of NxN / 2 size may be determined by dividing the image data in the horizontal direction and the vertical direction.
  • a second encoding unit for example, 1202, 1212, 1222, etc.
  • the image decoding apparatus 150 divides at least one of the width and the height of the second encoding unit 1202 of NxN size to determine a third encoding unit (for example, 1204, 1214, 1224, etc.) It is possible. That is, the image decoding apparatus 150 determines the third encoding unit 1204 of N / 2xN / 2 size by dividing the second encoding unit 1202 in the vertical direction and the horizontal direction, or determines the third encoding unit 1204 of N / 2xN / 3 encoding unit 1214 or a third encoding unit 1224 of N / 2xN / 2 size.
  • a third encoding unit for example, 1204, 1214, 1224, etc.
  • the image decoding apparatus 150 divides at least one of the width and the height of the second encoding unit 1212 of N / 2xN size into a third encoding unit (for example, 1204, 1214, 1224, . That is, the image decoding apparatus 150 divides the second encoding unit 1212 in the horizontal direction to generate a third encoding unit 1204 of N / 2xN / 2 or a third encoding unit 1224 of N / 2xN / 2 size ) Or may be divided in the vertical and horizontal directions to determine the third encoding unit 1214 of N / 2xN / 2 size.
  • a third encoding unit for example, 1204, 1214, 1224
  • the image decoding apparatus 150 divides at least one of the width and the height of the second encoding unit 1214 of NxN / 2 size to generate a third encoding unit (e.g., 1204, 1214, 1224, etc.) . That is, the image decoding apparatus 150 divides the second encoding unit 1212 in the vertical direction to generate a third encoding unit 1204 of N / 2xN / 2 or a third encoding unit 1214 of N / 2xN / 2 size ) Or may be divided in the vertical and horizontal directions to determine the third encoding unit 1224 of N / 2xN / 2 size.
  • a third encoding unit e.g. 1204, 1214, 1224, etc.
  • the image decoding apparatus 150 may divide a square-shaped encoding unit (for example, 1200, 1202, and 1204) into a horizontal direction or a vertical direction.
  • a square-shaped encoding unit for example, 1200, 1202, and 1204
  • the first encoding unit 1200 having a size of 2Nx2N is divided in the vertical direction to determine a first encoding unit 1210 having a size of Nx2N or the first encoding unit 1210 having a size of 2NxN to determine a first encoding unit 1220 having a size of 2NxN .
  • the depth of the encoding unit in which the first encoding unit 1200, 1202, or 1204 of size 2Nx2N is divided in the horizontal direction or the vertical direction is determined May be the same as the depth of the first encoding unit 1200, 1202 or 1204.
  • the width and height of the third encoding unit 1214 or 1224 may correspond to 1/2 of the first encoding unit 1210 or 1220.
  • the depth of the first coding unit 1210 or 1220 is D
  • the depth of the second coding unit 1212 or 1214 which is half the width and height of the first coding unit 1210 or 1220 is D +
  • the depth of the third encoding unit 1214 or 1224, which is half the width and height of the first encoding unit 1210 or 1220 may be D + 2.
  • FIG. 13 illustrates a depth index (hereinafter referred to as PID) for coding unit classification and depth that can be determined according to the type and size of coding units according to an exemplary embodiment.
  • PID depth index
  • the image decoding apparatus 150 may determine a second type of encoding unit by dividing the first encoding unit 1300 in a square form. 13, the image decoding apparatus 150 divides the first encoding unit 1300 into at least one of a vertical direction and a horizontal direction according to the division type information, and outputs the second encoding units 1302a, 1302b, 1304a, 1304b, 1306a, 1306b, 1306c, and 1306d. That is, the image decoding apparatus 150 can determine the second encoding units 1302a, 1302b, 1304a, 1304b, 1306a, 1306b, 1306c, and 1306d based on the division type information for the first encoding unit 1300. [
  • the second encoding units 1302a, 1302b, 1304a, 1304b, 1306a, 1306b, 1306c, and 1306d which are determined according to the division type information for the first encoding unit 1300 in a square form, Depth can be determined based on. For example, since the length of one side of the square-shaped first encoding unit 1300 and the length of longer sides of the non-square-shaped second encoding units 1302a, 1302b, 1304a, and 1304b are the same, 1300) and the non-square type second encoding units 1302a, 1302b, 1304a, and 1304b are denoted by D in the same manner.
  • the image decoding apparatus 150 divides the first encoding unit 1300 into four square-shaped second encoding units 1306a, 1306b, 1306c, and 1306d based on the division type information, 1306b, 1306c, and 1306d are 1/2 times the length of one side of the first encoding unit 1300, the depths of the second encoding units 1306a, 1306b, 1306c, May be a depth of D + 1 which is one depth lower than D, which is the depth of the first encoding unit 1300.
  • the image decoding apparatus 150 divides a first encoding unit 1310 having a height greater than a width in a horizontal direction according to division type information, and generates a plurality of second encoding units 1312a, 1312b, 1314a, 1314b, and 1314c.
  • the image decoding apparatus 150 divides a first encoding unit 1320 having a length greater than a height in a vertical direction according to the division type information to generate a plurality of second encoding units 1322a, 1322b, 1324a, 1324b, and 1324c.
  • the second encoding units 1312a, 1312b, 1314a, 1314b, 1316a, 1316b, 1316c, and 1316d determined according to the division type information for the first encoding unit 1310 or 1320 in the non-
  • the depth can be determined based on the length of the long side. For example, since the length of one side of the square-shaped second encoding units 1312a and 1312b is one-half the length of one side of the non-square first encoding unit 1310 whose height is longer than the width, The depth of the second encoding units 1302a, 1302b, 1304a, and 1304b of the form of D + 1 is one depth lower than the depth D of the first encoding unit 1310 of the non-square form.
  • the image decoding apparatus 150 may divide the non-square first encoding unit 1310 into odd second encoding units 1314a, 1314b, and 1314c based on the division type information.
  • the odd number of second encoding units 1314a, 1314b and 1314c may include non-square second encoding units 1314a and 1314c and a square second encoding unit 1314b.
  • the long side of the non-square type second encoding units 1314a and 1314c and the length of one side of the second type encoding unit 1314b in the form of a square are set to 1/4 of the length of one side of the first encoding unit 1310
  • the depth of the second encoding units 1314a, 1314b, and 1314c may be a depth of D + 1 which is one depth lower than the depth D of the first encoding unit 1310.
  • the image decoding apparatus 150 is connected to the first coding unit 1320 of a non-square form having a width greater than the height in a manner corresponding to the method of determining the depths of the coding units associated with the first coding unit 1310 The depth of the encoding units can be determined.
  • the image decoding apparatus 150 may calculate a size ratio between the coding units The index can be determined based on the index. Referring to FIG. 13, an encoding unit 1314b positioned at the center among odd-numbered encoding units 1314a, 1314b, and 1314c has the same width as other encoding units 1314a and 1314c, May be twice as high as the height of the sidewalls 1314a, 1314c. That is, in this case, the middle encoding unit 1314b may include two of the other encoding units 1314a and 1314c.
  • the coding unit 1314c positioned next to the coding unit 1314c may be three days in which the index is increased by two. That is, there may be a discontinuity in the value of the index.
  • the image decoding apparatus 150 may determine whether odd-numbered encoding units are not the same size based on whether there is an index discontinuity for distinguishing between the divided encoding units.
  • the image decoding apparatus 150 may determine whether the image is divided into a specific division form based on a value of an index for distinguishing a plurality of coding units divided and determined from the current coding unit. 13, the image decoding apparatus 150 divides a rectangular first encoding unit 1310 having a height greater than the width to determine an even number of encoding units 1312a and 1312b or an odd number of encoding units 1314a and 1314b , 1314c.
  • the image decoding apparatus 150 may use an index (PID) indicating each coding unit to identify each of the plurality of coding units.
  • the PID may be obtained at a sample of a predetermined position of each coding unit (e.g., the upper left sample).
  • the image decoding apparatus 150 may determine an encoding unit of a predetermined location among the plurality of encoding units determined by using an index for distinguishing an encoding unit. According to an exemplary embodiment, when the division type information for the rectangular first type encoding unit 1310 having a height greater than the width is divided into three encoding units, the image decoding apparatus 150 encodes the first encoding unit 1310 It can be divided into three encoding units 1314a, 1314b, and 1314c. The image decoding apparatus 150 may assign an index to each of the three encoding units 1314a, 1314b, and 1314c.
  • the image decoding apparatus 150 may compare the indices of the respective encoding units in order to determine the middle encoding unit among the encoding units divided into odd numbers.
  • the image decoding apparatus 150 encodes an encoding unit 1314b having an index corresponding to a middle value among indices based on the indices of the encoding units into an encoding unit 1314b for encoding the middle position among the encoding units determined by dividing the first encoding unit 1310 Can be determined as a unit.
  • the image decoding apparatus 150 may determine an index based on a size ratio between coding units when the coding units are not the same size in determining the index for dividing the divided coding units .
  • the coding unit 1314b generated by dividing the first coding unit 1310 is divided into coding units 1314a and 1314c having the same width as the other coding units 1314a and 1314c but different in height Can be double the height.
  • the index (PID) of the coding unit 1314b located at the center is 1, the coding unit 1314c located next to the coding unit 1314c may be three days in which the index is increased by two.
  • the image decoding apparatus 150 may determine that the image is divided into a plurality of encoding units including encoding units having different sizes from other encoding units.
  • the image decoding apparatus 150 may be configured such that the encoding unit (for example, the middle encoding unit) at a predetermined position among the odd number of encoding units has a format different from that of the other encoding units
  • the current encoding unit can be divided into.
  • the image decoding apparatus 150 can determine an encoding unit having a different size by using an index (PID) for the encoding unit.
  • PID index
  • the index and the size or position of the encoding unit at a predetermined position to be determined are specific for explaining an embodiment, and thus should not be construed to be limited thereto, and various indexes, positions and sizes of encoding units can be used Should be interpreted.
  • the image decoding apparatus 150 may use a predetermined data unit in which recursive division of encoding units starts.
  • FIG. 14 shows that a plurality of coding units are determined according to a plurality of predetermined data units included in a picture according to an embodiment.
  • a predetermined data unit may be defined as a data unit in which an encoding unit starts to be recursively segmented using at least one of block type information and partition type information. That is, it may correspond to a coding unit of the highest depth used in a process of determining a plurality of coding units for dividing a current picture.
  • a predetermined data unit is referred to as a reference data unit for convenience of explanation.
  • the reference data unit may represent a predetermined size and shape.
  • the reference encoding unit may comprise samples of MxN.
  • M and N may be equal to each other, or may be an integer represented by a multiplier of 2. That is, the reference data unit may represent a square or a non-square shape, and may be divided into an integer number of encoding units.
  • the image decoding apparatus 150 may divide the current picture into a plurality of reference data units. According to an embodiment, the image decoding apparatus 150 may divide a plurality of reference data units for dividing a current picture by using the division information for each reference data unit.
  • the segmentation process of the reference data unit may correspond to the segmentation process using a quad-tree structure.
  • the image decoding apparatus 150 may determine in advance a minimum size that the reference data unit included in the current picture can have. Accordingly, the image decoding apparatus 150 can determine reference data units of various sizes having a size larger than a minimum size, and determine at least one coding unit using block type information and division type information based on the determined reference data unit You can decide.
  • the image decoding apparatus 150 may use a square-shaped reference encoding unit 1400 or a non-square-shaped reference encoding unit 1402.
  • the type and size of the reference encoding unit may include various data units (e.g., a sequence, a picture, a slice, a slice segment a slice segment, a maximum encoding unit, and the like).
  • the receiver 160 of the video decoding apparatus 150 may acquire at least one of the information on the format of the reference encoding unit and the size of the reference encoding unit from the bit stream for each of the various data units .
  • the process of determining at least one encoding unit included in the reference-type encoding unit 1400 in the form of a square is described in detail in the process of dividing the current encoding unit 300 of FIG. 10, Is determined in the process of dividing the current encoding unit 1100 or 1150 of FIG. 11, so that a detailed description thereof will be omitted.
  • the image decoding apparatus 150 may include an index for identifying the size and type of the reference encoding unit Can be used. That is, the receiving unit 160 extracts a predetermined condition (for example, a data unit having a size equal to or smaller than a slice) among the various data units (for example, a sequence, a picture, a slice, a slice segment, It is possible to obtain only an index for identifying the size and type of the reference encoding unit for each slice, slice segment, maximum encoding unit, and the like.
  • a predetermined condition for example, a data unit having a size equal to or smaller than a slice
  • the various data units for example, a sequence, a picture, a slice, a slice segment
  • the image decoding apparatus 150 can determine the size and shape of the reference data unit for each data unit satisfying the predetermined condition by using the index.
  • the information on the type of the reference encoding unit and the information on the size of the reference encoding unit are obtained from the bitstream for each relatively small data unit and used, the use efficiency of the bitstream may not be good. Therefore, Information on the size of the reference encoding unit and information on the size of the reference encoding unit can be acquired and used.
  • at least one of the size and the type of the reference encoding unit corresponding to the index indicating the size and type of the reference encoding unit may be predetermined. That is, the image decoding apparatus 150 selects at least one of the size and the type of the reference encoding unit in accordance with the index so that at least one of the size and the type of the reference encoding unit included in the data unit, You can decide.
  • the image decoding apparatus 150 may use at least one reference encoding unit included in one maximum encoding unit. That is, the maximum encoding unit for dividing an image may include at least one reference encoding unit, and the encoding unit may be determined through a recursive division process of each reference encoding unit. According to an exemplary embodiment, at least one of the width and the height of the maximum encoding unit may correspond to at least one integer multiple of the width and height of the reference encoding unit. According to an exemplary embodiment, the size of the reference encoding unit may be a size obtained by dividing the maximum encoding unit n times according to a quadtree structure.
  • the image decoding apparatus 150 may determine the reference encoding unit by dividing the maximum encoding unit n times according to the quad tree structure, and may determine the reference encoding unit based on at least one of the block type information and the division type information As shown in FIG.
  • FIG. 15 shows a processing block serving as a reference for determining a determination order of a reference encoding unit included in a picture 1500 according to an embodiment.
  • the image decoding apparatus 150 may determine at least one processing block that divides a picture.
  • the processing block is a data unit including at least one reference encoding unit for dividing an image, and at least one reference encoding unit included in the processing block may be determined in a specific order. That is, the order of determination of at least one reference encoding unit determined in each processing block may correspond to one of various kinds of order in which the reference encoding unit can be determined, and the reference encoding unit determination order determined in each processing block May be different for each processing block.
  • the order of determination of the reference encoding unit determined for each processing block is a raster scan, a Z scan, an N scan, an up-right diagonal scan, a horizontal scan a horizontal scan, and a vertical scan. However, the order that can be determined should not be limited to the scan orders.
  • the image decoding apparatus 150 may obtain information on the size of the processing block to determine the size of the at least one processing block included in the image.
  • the image decoding apparatus 150 may obtain information on the size of the processing block from the bitstream to determine the size of the at least one processing block included in the image.
  • the size of such a processing block may be a predetermined size of a data unit represented by information on the size of the processing block.
  • the receiving unit 160 of the image decoding apparatus 150 may obtain information on the size of the processing block from the bit stream for each specific data unit.
  • information on the size of a processing block can be obtained from a bitstream in units of data such as an image, a sequence, a picture, a slice, a slice segment, or the like. That is, the receiving unit 160 may obtain the information on the size of the processing block from the bitstream for each of the plurality of data units, and the image decoding apparatus 150 may obtain the information on the size of the processing block using the information on the size of the obtained processing block
  • the size of one processing block may be determined, and the size of the processing block may be an integer multiple of the reference encoding unit.
  • the image decoding apparatus 150 may determine the sizes of the processing blocks 1502 and 1512 included in the picture 1500.
  • the video decoding apparatus 150 may determine the size of the processing block based on information on the size of the processing block obtained from the bitstream.
  • the image decoding apparatus 150 according to an exemplary embodiment of the present invention may be configured such that the horizontal size of the processing blocks 1502 and 1512 is four times the horizontal size of the reference encoding unit, four times the vertical size of the reference encoding unit, You can decide.
  • the image decoding apparatus 150 may determine an order in which at least one reference encoding unit is determined in at least one processing block.
  • the video decoding apparatus 150 may determine each processing block 1502, 1512 included in the picture 1500 based on the size of the processing block, and may include in the processing blocks 1502, 1512 The determination order of at least one reference encoding unit is determined.
  • the determination of the reference encoding unit may include determining the size of the reference encoding unit according to an embodiment.
  • the image decoding apparatus 150 may obtain information on a determination order of at least one reference encoding unit included in at least one processing block from a bitstream, So that the order in which at least one reference encoding unit is determined can be determined.
  • the information on the decision order can be defined in the order or direction in which the reference encoding units are determined in the processing block. That is, the order in which the reference encoding units are determined may be independently determined for each processing block.
  • the image decoding apparatus 150 may obtain information on a determination order of a reference encoding unit from a bitstream for each specific data unit.
  • the receiving unit 160 may acquire information on the order of determination of a reference encoding unit from a bitstream for each data unit such as an image, a sequence, a picture, a slice, a slice segment, and a processing block. Since the information on the determination order of the reference encoding unit indicates the reference encoding unit determination order in the processing block, the information on the determination order can be obtained for each specific data unit including an integer number of processing blocks.
  • the image decoding apparatus 150 may determine at least one reference encoding unit based on the determined order according to an embodiment.
  • the receiving unit 160 may obtain information on the reference encoding unit determination order from the bitstream as the information related to the processing blocks 1502 and 1512, and the video decoding apparatus 150 may receive the information 1502, and 1512, and determine at least one reference encoding unit included in the picture 1500 according to the determination order of the encoding units.
  • the image decoding apparatus 150 may determine a determination order 1504 and 1514 of at least one reference encoding unit associated with each of the processing blocks 1502 and 1512. For example, when information on the determination order of reference encoding units is obtained for each processing block, the reference encoding unit determination order associated with each processing block 1502 and 1512 may be different for each processing block.
  • the reference encoding unit determination order 1504 related to the processing block 1502 is a raster scan order
  • the reference encoding unit included in the processing block 1502 may be determined according to the raster scan order.
  • the reference encoding unit determination order 1514 related to another processing block 1512 is a reverse order of the raster scan order
  • the reference encoding unit included in the processing block 1512 can be determined according to the reverse order of the raster scan order.
  • Coupling Mode refers to a set of coding modes that are applied together for a block.
  • a combining mode is applied to a current block in an encoding end, only a syntax element related to a combination mode is included in the bitstream, and a plurality of syntax elements corresponding to the encoding modes included in the combination mode are omitted, The rate is increased. Therefore, the encoding rate of the image is increased by designating the encoding modes that are highly likely to be used together or have high encoding efficiency when used together.
  • how to apply the coupling mode will be described in detail.
  • FIG. 16 shows a block diagram of a video decoding apparatus 1600 according to an embodiment for determining a coding mode according to a combining mode.
  • the video decoding apparatus 1600 includes a coding mode determination unit 1610 and a decoding unit 1620.
  • the coding mode determination unit 1610 and the decoding unit 1620 are represented as separate units. However, according to the embodiment, the coding mode determination unit 1610 and the decoding unit 1620 are combined to form a single unit .
  • the encoding mode determination unit 1610 and the decoding unit 1620 are represented by a unit located in one device. However, the encoding mode determination unit 1610 and the decoding unit 1620 are not necessarily It does not need to be physically contiguous. Therefore, the encoding mode determination unit 1610 and the decoding unit 1620 may be dispersed according to the embodiment.
  • the coding mode determination unit 1610 and the decoding unit 1620 may be implemented by one processor according to an embodiment. And may be implemented by a plurality of processors according to an embodiment.
  • the encoding mode determination unit 1610 obtains a combination mode flag of the current block indicating whether a plurality of encoding modes included in the combination mode are applied to the current block from the bitstream.
  • the combining mode may include all kinds of coding modes that can be applied to the current block. Encoding modes incompatible with each other can not be included in one combining mode. For example, the DC mode and the vertical mode as the luma intra prediction mode can not be included in the combining mode as well.
  • the combining mode may include a luma intra prediction mode, a chroma intra prediction mode, an encoding mode relating to intra technology, an encoding mode relating to inter technology, a conversion mode, an in-loop filter mode, and the like.
  • the encoding mode related to the intra technique may include a CCIP (Cross Component Intra Prediction) mode, a MPI (Multi Parameter Intra-prediction) mode, and a MIP (Multi-combined Intra Prediction) mode.
  • the encoding mode for the inter-technology may include an affine mode, an adaptive motion vector resolution (AMVR) mode, and an illumination compensation mode.
  • the conversion mode may include an EMT mode (Enhanced Multiple Transform), a Non-Separable Secondary Transform (NSST) mode, and a Rotational Transform (ROT) mode.
  • EMT mode Enhanced Multiple Transform
  • NST Non-Separable Secondary Transform
  • ROT Rotational Transform
  • the in-loop filter mode may include a deblocking filter mode, a sample adaptive offset (SAO) filter mode, and a bilateral filter mode.
  • the combining mode may include one of a plurality of luma intra prediction modes and one of a plurality of chroma intra prediction modes. Two or more combining modes may exist depending on the number of combinations of the luma intra prediction mode and the chroma intra prediction mode which are likely to be used together.
  • the luma intra prediction mode included in the combining mode may be the DC mode
  • the chroma intra prediction mode may be the LM chroma mode.
  • both the luma intra prediction mode and the chroma intra prediction mode can be DC mode.
  • both the luma intra prediction mode and the chroma intra prediction mode included in the combining mode can be determined to be the MPM mode.
  • the MPM mode refers to an intra prediction mode having a high probability of being used most in the current block. Therefore, when both the luma intra prediction mode and the chroma intra prediction mode included in the combining mode are in the MPM mode, the coding efficiency can be improved.
  • the combining mode may be set to include a luma intra prediction mode and a chroma intra prediction mode of a neighboring block at a specific position adjacent to the current block. Therefore, when the combining mode is applied to the current block, the luma intra prediction mode and the chroma intra prediction mode of the current block are determined to be the same as the luma intra prediction mode and the chroma intra prediction mode of the adjacent block at the specific position.
  • the combining mode may be set to include a luma intra prediction mode and a chroma intra prediction mode obtained by analyzing a current or previous picture. For example, by analyzing the prediction mode frequency of the current picture, it is possible to incorporate the best mode luma intra prediction mode and the most significant chroma intra prediction mode into the combining mode.
  • the combining mode may include one of a plurality of conversion modes.
  • the joint mode may comprise one of a plurality of luma intra prediction modes, with a transformation mode.
  • the combining mode may include one of a plurality of chroma intra prediction modes, with the conversion mode. Two or more combining modes may exist depending on the number of combinations of the luma intra prediction mode, the chroma intra prediction mode, and the conversion mode, which are likely to be used together.
  • the joint mode may include a luma intra prediction mode, a chroma intra prediction mode, and a conversion mode, which are likely to be used together, so that the video coding efficiency can be improved. Particularly, since the correlation between the luma intra prediction mode and the conversion mode is high, if the luma intra prediction mode-conversion mode pair is included in the combining mode, the video coding efficiency is likely to be improved.
  • the combining mode includes the DC mode as the luma intra prediction mode, the DC mode or the LM chroma mode as the chroma intra prediction mode, and the DCT conversion mode or the DST conversion mode as the conversion mode.
  • an MPM mode or a peripheral block mode as a luma intra prediction mode and a chroma intra prediction mode in the combining mode and a DCT conversion mode or a DST conversion mode as a conversion mode.
  • the combining mode may include a plurality of conversion modes. If the combining mode includes a conversion mode with a high probability of being selected statistically, the video coding efficiency is likely to be improved.
  • the combining mode may include information on whether or not a specific coding mode is applied, an applying method, and an application range.
  • the combining mode may include information regarding an intra prediction filter mode for filtering intra prediction results of the current block. Since the prediction block according to the intra prediction can have a non-flat and unnatural pattern that is not suitable for frequency conversion, the coding efficiency can be enhanced by including the intra prediction mode and the intra prediction filter mode in the combining mode. Therefore, if the combining mode and the intra prediction filter mode include information that the mode is applied to the current block, the intra prediction filter mode can be applied to the current block without parsing the encoding information for the additional intra prediction filter mode from the bitstream.
  • the combining information may include information that the affine mode is not applied and that the illumination compensation mode is not applied. If the information about the encoding modes having a high probability of being used statistically in the combining mode or having a low probability of being used together is included, the video coding efficiency is likely to be improved.
  • the combining mode may include one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, one of a plurality of conversion modes, and information on a specific encoding mode.
  • the specific encoding mode may be the above-mentioned intra prediction mode. Or the particular encoding mode may be an in-loop filter mode. If the coding modes are compatible, two or more pieces of information on the coding modes may be included in the combining mode.
  • the combining mode may include information for applying the MPI mode or the MIP mode included in the intra prediction filter mode when the DC mode is included as the luma intra prediction mode.
  • boundary filtering is required for the prediction block according to the DC mode.
  • the combining mode may include one or more information on the luma intra prediction mode, information on the chroma intra prediction mode, information on the conversion mode, and information on the specific coding mode.
  • the combination of all coding modes included in the combining mode may be allowed if they are compatible between the coding modes included in the combining mode.
  • the combining mode may include information applying a DC mode as a luma intra prediction mode, an LM chroma mode, an MPI mode or a MIP mode as a chroma intra prediction mode.
  • the MPI mode is an intra prediction filter mode in which the prediction value of the current sample is filtered using at least two samples adjacent to the current sample. Specifically, according to the MPI mode, the predicted value of the current sample, the predicted value of the upper adjacent sample of the current sample, and the weighted average value of the predicted values of the left or right adjacent sample of the current sample are determined as new predicted values of the current sample.
  • the current block is filtered by determining a weighted average value based on adjacent samples as a new predicted value for all samples of the current block.
  • the MIP mode is an intra prediction filter mode in which the prediction value of the current sample is filtered using at least two reference samples adjacent to the current block determined according to the position of the current sample. Specifically, according to the MIP mode, the predicted value of the current sample, the value of the reference sample having the same x-coordinate as the current sample, and the weighted average value of the value of the reference sample having the same y-coordinate as the current sample are determined as a new predicted value of the current sample. By determining a weighted average value based on the reference samples for all samples of the current block as a new predicted value, the current block is filtered.
  • the encoding mode included in the join mode may be different.
  • block partitioning of luma and chroma pictures can be performed separately for higher compression efficiency. In this case, the association of the block structure between the luma picture and the chroma picture may be low.
  • the block division can be performed on the chroma picture based on the block structure of the luma picture. In this case, the block structure of the luma picture and the chroma picture can be determined in the same manner.
  • the combining mode can be set to include one of a plurality of luma intra prediction modes and one of a plurality of chroma intra prediction modes.
  • the combining mode can be set to include only one of a plurality of luma intra prediction modes.
  • the combining mode is one of the plurality of luma intra prediction modes and the plurality of chroma intra prediction modes One can be set to be included.
  • the combining mode can be set to include one of the plurality of chroma intra prediction modes.
  • the correspondence between the luma block and the chroma block can be determined by the difference in size and position of the luma block and the chroma block. For example, if the size and position of a luma block and a chroma block are the same, a luma block and a chroma block can be set to correspond. If the size of the luma block and the chroma block are different, it can be set to correspond to a luma block located at the upper left or center of a given chroma block.
  • the combining mode may include one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, and information about an intra prediction mode Can be set.
  • the combining mode can be set to include only information about one of the plurality of luma intra prediction modes and the intra prediction filter mode.
  • the join mode may not be used for all blocks included in the current slice.
  • the combining mode can be set to be allowed. Therefore, when the current slice is an I slice type, the encoding mode determination unit 1610 can determine that the combining mode is not used for the current block without acquiring the combining mode flag.
  • the encoding mode determination unit 1610 determines that a plurality of encoding modes of the current mode are the encoding modes of the current block when the encoding mode flag of the current block indicates that a plurality of encoding modes included in the combination mode are applied to the current block do.
  • the combining mode flag indicates a value of 0 or 1. According to one embodiment, when the combining mode flag is 0, a plurality of coding modes included in the combining mode are not applied to the current block at the same time. Conversely, when the coupling mode flag is 1, a plurality of coding modes included in the coupling mode are applied to the current block at the same time.
  • the coding mode determining unit 1610 determines a combining mode index indicating a combining mode of one of the plurality of combining modes Can be obtained.
  • the coding mode determination unit 1610 may determine a plurality of intra prediction modes of the combined mode indicated by the combined mode index to be the coding modes of the current block.
  • the encoding mode determination unit 1610 may obtain the encoding mode information from the bitstream when the joint mode flag of the current block indicates that a plurality of encoding modes included in the joint mode are not applied to the current block.
  • the encoding mode determination unit 1610 can determine the encoding modes of the current block according to the encoding mode information.
  • the encoding mode determination unit 1610 may obtain a combination mode permission flag indicating whether a combination mode is allowed for a data unit including the current block.
  • the coding mode determining unit 1610 can obtain the combining mode permission flag for the current block.
  • the decoding unit 1620 can decode the current block according to the encoding modes of the current block.
  • FIGS. 17A and 22B show a method of determining a coding mode of a current block according to a combining mode flag and a combining mode index.
  • 17A and 17B show a coding mode decision method of the current block when one of a plurality of luma intra prediction modes and a plurality of chroma intra prediction modes is included in the combining mode.
  • the combining mode includes a prediction mode l and a chroma intra prediction mode c. Therefore, when the combining mode flag is 1, the luma intra prediction mode l and the chroma intra prediction mode c are applied to the current block.
  • the luma intra prediction mode information for the luma intra prediction mode and the chroma intra prediction mode information for the chroma intra prediction mode are obtained from the bitstream, and the luma intra prediction mode information and the chroma intra prediction mode information The luma intra prediction mode and the chroma intra prediction mode of the current block are respectively determined.
  • the first combining mode includes the luma intra prediction mode l1 and the chroma intra prediction mode c1.
  • the second combined mode includes the luma intra prediction mode l2 and the chroma intra prediction mode c2.
  • the combining mode flag is 1 and the combining mode index is 0, the luma intra prediction mode l1 and the chroma intra prediction mode c1 are applied to the current block according to the first combining mode.
  • the luma intra prediction mode l2 and the chroma intra prediction mode c2 are applied to the current block according to the second combining mode.
  • the combining mode flag is 0, the luma intra prediction mode and the chroma intra prediction mode of the current block are respectively determined according to the luma intra prediction mode information and the chroma intra prediction mode information obtained from the bit stream, as in Fig.
  • FIGS. 18A and 18B show a coding mode determination method of a current block when one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, and one of a plurality of conversion modes is included in the combining mode.
  • the combining mode includes a luma intra prediction mode l, a chroma intra prediction mode c, and a conversion mode t. Therefore, when the combining mode flag is 1, the luma intra prediction mode l, the chroma intra prediction mode c, and the conversion mode t are applied to the current block.
  • luma intra prediction mode information for the luma intra prediction mode when the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode, chroma intra prediction mode information for the chroma intra prediction mode, and conversion mode information for the conversion mode are obtained from the bitstream, The luma intra prediction mode, the chroma intra prediction mode, and the conversion mode of the current block are determined according to mode information, chroma intra prediction mode information, and conversion mode information, respectively.
  • the first combining mode includes the luma intra prediction mode l1, the chroma intra prediction mode c1, and the conversion mode t1.
  • the second combined mode includes the luma intra prediction mode l2, the chroma intra prediction mode c2 and the conversion mode t2.
  • the luma intraprediction mode l2 When the joint mode flag is 1 and the joint mode index is 1, the luma intraprediction mode l2, the chroma intraprediction mode c2, and the conversion mode t2 are applied to the current block according to the second joint mode.
  • the combining mode flag When the combining mode flag is 0, the luma intra prediction mode, the chroma intra prediction mode, and the conversion mode are determined based on the luma intra prediction mode information, the chroma intra prediction mode information, and the conversion mode information obtained from the bitstream, .
  • 19A and 19B are diagrams for explaining the case where the combining mode includes one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, one of a plurality of conversion modes, and additionally information about whether or not the coding mode m1 is applied Is included, a coding mode decision method of the current block is shown.
  • FIG. 19A shows an embodiment in which information on the combining mode is divided into a combining mode flag and a combining mode index.
  • the first combining mode includes the luma intra prediction mode l1, the chroma intra prediction mode c1, the conversion mode t1, and the coding mode m1.
  • the second combined mode includes the luma intra prediction mode l1, the chroma intra prediction mode c1, the conversion mode t1, and the encoding mode m1.
  • the third combined mode includes the luma intra prediction mode l2, the chroma intra prediction mode c2, the conversion mode t2 and the coding mode m1.
  • the luma intra prediction mode l1, the chroma intra prediction mode c1, the conversion mode t1, and the encoding mode m1 are applied to the current block according to the first combining mode.
  • the joint mode flag is 1 and the joint mode index is 10
  • the luma intraprediction mode l1, the chroma intraprediction mode c1, and the conversion mode t1 are applied to the current block according to the second joint mode, and the encoding mode m1 is determined not to be used do.
  • the joint mode index number of the most used joint mode among the first joint mode, the second joint mode, and the third joint mode may be determined to be zero.
  • Luma intra prediction mode information for the luma intra prediction mode from the bitstream chroma intra prediction mode information for the chroma intra prediction mode and conversion mode information for the conversion mode, m1 information for the encoding mode m1
  • the luma intra prediction mode, the chroma intra prediction mode, and the conversion mode are determined according to the luma intra prediction mode information, the chroma intra prediction mode information, the conversion mode information, and the m1 information, and it is determined whether or not the encoding mode m1 is applied.
  • FIG. 19B shows an embodiment in which the information on the combining mode includes only the combining mode index.
  • the embodiment of FIG. 19B and the embodiment of FIG. 19A are substantially the same because the first bin of the combined mode index serves as a joint mode flag.
  • the luma intra prediction mode l1, the chroma intra prediction mode c1, the conversion mode t1, and the encoding mode m1 are applied to the current block according to the first combining mode.
  • the combined mode index is 110
  • the luma intra prediction mode l1, the chroma intra prediction mode c1, and the conversion mode t1 are applied to the current block according to the second combining mode, and the coding mode m1 is determined not to be used.
  • the combined mode index is 111
  • the luma intraprediction mode l2, the chroma intra prediction mode c2, the conversion mode t2, and the encoding mode m1 are applied to the current block according to the third combining mode.
  • the joint mode index number of the most used joint mode among the first joint mode, the second joint mode, and the third joint mode may be determined to be 10.
  • the luma intra prediction mode, the chroma intra prediction mode, and the conversion mode are determined based on the luma intra prediction mode information, the chroma intra prediction mode information, the conversion mode information and the m1 information obtained from the bitstream, m1 is applied.
  • 20 shows a method of determining a coding mode of a current block when information on coding mode m1 and m3 is applied to the combining mode and information on the coding mode m2 is included.
  • the first combining mode includes an application signal of the encoding mode m1, an unused signal of the detail mode 1 and the encoding mode m3 for the encoding mode m2.
  • the second combining mode includes the application signal of the encoding mode m1, the detail mode 2 of the encoding mode m2, and the non-enable signal of the encoding mode m3.
  • the third joint mode includes an application signal of the encoding mode m1, an application signal of the detail mode 1 and the encoding mode m3 for the encoding mode m2.
  • the fourth combining mode includes an unused signal of the encoding mode m1, an application signal of the detail mode 1 and the encoding mode m3 for the encoding mode m2.
  • the coding mode m1 and the detailed mode 1 of the coding mode m2 are applied to the current block according to the first combining mode, and the coding mode m3 is not applied to the current block .
  • the combining mode flag is 1 and the combining mode index is 01
  • the coding mode m1 and the detailed mode 2 of the coding mode m2 are applied to the current block according to the second combining mode, and the coding mode m3 is not applied to the current block .
  • the coding mode m1 When the combining mode flag is 1 and the combining mode index is 10, the coding mode m1, the detailed mode 1 of the coding mode m2, and the coding mode m3 are applied to the current block according to the third combining mode.
  • the combining mode flag is 1 and the combining mode index is 11
  • the detailed mode 1 and coding mode m3 of the coding mode m2 are applied to the current block according to the fourth combining mode, and the coding mode m1 is not applied to the current block .
  • encoding information for encoding mode m1 encoding information for encoding mode m2, and encoding information for encoding mode m3 are obtained from the bitstream, and encoded information for encoding modes m1 and m3 And the detailed mode of encoding mode m2 are determined.
  • FIG. 21A shows a method of determining an encoding mode according to a combining mode in an interlace (P slice or B slice), and FIG. 21B shows a method of determining an encoding mode according to a combining mode in an intra slice (I slice).
  • the combining mode includes the luma intra prediction mode l, the chroma intra prediction mode c, and the coding modes m1 and m2.
  • the combining mode flag is 1
  • the luma intra prediction mode l, the chroma intra prediction mode c, and the encoding modes m1 and m2 are applied to the current block.
  • the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode, chroma intra prediction mode information for the chroma intra prediction mode, encoding information for the encoding mode m1, and encoding information for the encoding mode m2 Is obtained.
  • the luma intra prediction mode and the chroma intra prediction mode of the current block are determined in accordance with the luma intra prediction mode information, the chroma intra prediction mode information, the encoding information about the encoding m1, and the encoding information about the encoding m2 to determine the encoding modes m1 and m2 Is determined.
  • the combining mode includes the luma intra prediction mode l, coding modes m1 and m2.
  • the combining mode flag is 1
  • the luma intra prediction mode l and coding modes m1 and m2 are applied to the current block.
  • the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode, encoding information for encoding mode m1, and encoding information for encoding mode m2 are obtained from the bitstream.
  • the luma intra prediction mode of the current block is determined according to the luma intra prediction mode information, the encoding information about the encoding ml and the encoding information about the encoding m2 to determine whether or not the encoding modes m1 and m2 are applied.
  • At least one of the encoding modes m1 and m2 in Figs. 21A and 21B may be a post filter applied after intra prediction.
  • FIG. 22A shows a method of determining an encoding mode according to a combining mode including a DC mode in an interlace (P slice or B slice)
  • FIG. 22B shows a method of determining a coding mode according to a combining mode including an DC mode in an intra slice Indicates a method of determining an encoding mode.
  • the combining mode includes a DC mode as a luma intra prediction mode and an LM chroma mode and MPI mode as a chroma intra prediction mode.
  • the combining mode flag is 1
  • the current block is applied with the DC mode as the luma intra-prediction mode and the LM chroma mode and the MPI mode as the chroma intra prediction mode.
  • the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode, chroma intra prediction mode information for the chroma intra prediction mode, and encoding information for MPI are obtained from the bitstream.
  • the luma intra prediction mode, the chroma intra prediction mode, and the MPI are determined depending on the luma intra prediction mode information, the chroma intra prediction mode information, and the MPI coding information.
  • the combining mode includes a DC mode and an MPI mode as luma intra prediction modes.
  • the DC mode and the MPI mode are applied to the current block as the luma intra prediction mode.
  • the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode and coding information for the MPI mode are obtained from the bitstream.
  • the luma intra prediction mode and the MPI mode of the current block are determined according to the luma intra prediction mode information and the encoding information for the MPI mode.
  • the MPI mode is applied, but the MIP mode may be applied instead of the MPI mode.
  • the combining mode is applied in the intra slice, but the combining mode may not be applied in the intra slice.
  • 23 is a syntax of an encoding unit showing an embodiment of the combining mode.
  • lccm_flag [x0] [y0] can be obtained even when the slice_type is an I slice type, unlike the disclosure in Fig.
  • the general decoding process proceeds.
  • the MPM mode information and the PIMS mode information are parsed, and the intra prediction mode of the current block can be determined.
  • the MPI mode information and the MIP mode information indicating the intra prediction filtering mode are parsed, and the intra prediction filtering mode of the current block can be determined.
  • Ipm [x0] [y0] [0] indicating the luma intra-prediction mode for the current block located at (x0, y0) is determined to LCCM_LUMA, which is a luma intra prediction mode according to the combining mode, without parsing the coding information.
  • LCCM_LUMA may be in DC mode.
  • ipm [x0] [y0] [1] indicating the chroma intra prediction mode for the current block located at (x0, y0) is determined as LCCM_CHROMA, which is a chroma intra prediction mode according to the combining mode.
  • LCCM_CHROMA may be the LM chroma mode.
  • mpi_idx [x0] [y0] indicating whether or not the MPI mode is applied is determined as 1 in the current block located at (x0, y0). Therefore, the MPI mode is applied to the current block.
  • a normal descriptor may apply the MIP mode instead of the MPI mode to the current block.
  • lccm_flag [x0] [y0] is obtained even when slice_type is an I slice type
  • ipm [x0] [y0] [0] indicating the luma intra prediction mode for the current block is LCCM_LUMA Can be determined.
  • mpi_idx [x0] [y0] indicating whether or not the MPI mode is applied to the current block can be determined to be 1.
  • FIG. 24 shows a video decoding method 2400 according to an embodiment for determining a coding mode according to a combining mode.
  • a combining mode flag of the current block indicating whether a plurality of coding modes included in the combining mode are applied to the current block from the bitstream is obtained.
  • the combining mode may include one of a plurality of luma intra prediction modes and one of a plurality of chroma intra prediction modes.
  • the joint mode may include a DC mode as a luma intra prediction mode and an LM chroma mode as a chroma intra prediction mode.
  • the combining mode may include a first conversion mode. Also, the combining mode may include an intra prediction filter mode for filtering the intra prediction result of the current block.
  • the intraprediction filter mode may be an MPI mode or an MPI mode.
  • the join mode can be determined according to the slice type of the current slice including the current block. For example, when the current slice is a P slice type or B slice type, the combining mode may include one of a plurality of luma intra prediction modes and one of a plurality of chroma intra prediction modes. However, when the current slice is an I slice type, the combining mode may include only the first luma intra prediction mode.
  • the join mode flag of the current block from the bitstream may not be obtained.
  • the join mode may not be applied.
  • a combining mode permission flag indicating whether or not a combining mode is allowed for a data unit including the current block from the bitstream can be obtained.
  • the join mode permit flag indicates that the join mode is allowed for the data unit in which the current block is contained
  • a join mode flag for the current block can be obtained.
  • the combining mode permission flag indicates that the combining mode is not allowed for the data unit including the current block
  • the combining mode flag for the current block is not obtained.
  • step 2420 When the coupling mode flag of the current block indicates that a plurality of coding modes included in the coupling mode are applied to the current block, a plurality of coding modes of the coupling mode are determined as the coding modes of the current block.
  • the luma intra prediction mode and the chroma intra prediction mode included in the combining mode can be determined as the luma intra prediction mode and the chroma intra prediction mode of the current block. Also, the conversion mode included in the combining mode can be determined as the conversion mode of the current block
  • the combining mode includes an intra prediction filter mode, it can be determined to apply the intra prediction filter mode to the current block.
  • a combining mode index indicating a combining mode of one of the plurality of combining modes can be obtained.
  • a plurality of intra prediction modes of the joint mode indicated by the joint mode index may be determined as the encoding modes of the current block.
  • Encoding mode information is obtained from a bitstream when a joint mode flag of a current block indicates that a plurality of encoding modes included in a joint mode are not applied to a current block, encoding mode information is obtained from the bitstream, Can be determined.
  • step 2430 the current block is decoded according to the encoding modes of the current block.
  • the function of the video decoding apparatus 1600 described in FIG. 16 may be included in the video decoding method 2400 of FIG.
  • FIG. 25 shows a video encoding apparatus 2500 according to an embodiment for determining whether to use the joint mode according to the encoding mode.
  • the video coding apparatus 2500 includes a coding unit 2510 and a bitstream generating unit 2520.
  • 25, the encoding unit 2510 and the bitstream generating unit 25120 are represented as separate constituent units. However, according to the embodiment, the encoding unit 2510 and the bitstream generating unit 2520 are combined to form a single unit .
  • the encoding unit 2510 and the bitstream generating unit 2520 are represented by the constituent units located in one apparatus, but the apparatuses responsible for the respective functions of the encoding unit 2510 and the bitstream generating unit 2520 are not necessarily It does not need to be physically contiguous. Therefore, the encoding unit 2510 and the bitstream generating unit 2520 may be dispersed according to the embodiment.
  • the encoding unit 2510 and the bitstream generating unit 2520 may be implemented by one processor according to an embodiment. And may be implemented by a plurality of processors according to an embodiment.
  • the encoding unit 2510 can determine the encoding modes optimized for the current block.
  • the coding unit 2510 generates a combining mode flag of the current block according to whether or not the coding modes of the current block are included in the combining mode.
  • An embodiment of the combining mode discussed in Figs. 16-24 may be applied to the video decoding method 2500 of Fig.
  • the encoding unit 2510 can be set to generate a join mode flag of the current block only when the current slice is a P slice type or a B slice type. Conversely, when the current slice is an I slice type, the encoding unit 2510 can be set not to generate a join mode flag of the current block.
  • the coding unit 2510 may generate a combining mode index indicating a combining mode of the plurality of combining modes.
  • the encoding unit 2510 determines whether a combination mode is permitted for the upper data unit of the current block according to whether the block having the combining mode is present in the upper data unit of the current block and whether the combining mode is allowed in the upper data unit of the current block. Flag can be generated.
  • the encoding unit 2510 can generate the encoding mode information about the encoding modes of the current block when the encoding modes of the current block are not included in the combining mode.
  • the bitstream generation unit 2520 generates a bitstream including a combining mode flag.
  • the functions performed by the coding unit 2510 and the bitstream generating unit 2520 of FIG. 25 may be performed by the bitstream generating unit 120 of FIG. 1A.
  • the video encoding apparatus 2500 of FIG. 25 may perform a video encoding method corresponding to the video decoding method performed by the video decoding apparatus 1600 of FIG.
  • FIG. 26 shows a video encoding method 2600 according to an embodiment for determining whether to use a combining mode according to an encoding mode.
  • step 2610 the encoding modes of the current block are determined.
  • step 2620 depending on whether the encoding modes of the current block are the same as the plurality of encoding modes of the joint mode, a joint mode flag of the current block is generated.
  • step 2630 a bitstream including the combined mode flag is generated.
  • the function of the video encoding apparatus 2500 described in Fig. 25 may be included in the video encoding method 2600 of Fig.
  • video data of a spatial region is encoded for each coding unit of the tree structure, and a video decoding technique based on coding units of the tree structure Decoding is performed for each maximum encoding unit according to the motion vector, and the video data in the spatial domain is reconstructed, and the video and the video, which is a picture sequence, can be reconstructed.
  • the restored video can be played back by the playback apparatus, stored in a storage medium, or transmitted over a network.

Abstract

Provided is a video decoding method comprising the steps of: acquiring, from a bit stream, a coupling mode flag, of a current block, for indicating whether a plurality of encoding modes included in a coupling mode are applied to the current block at the same time; determining the plurality of encoding modes of the coupling mode to be the encoding modes of the current block when the coupling mode flag of the current block indicates that the plurality of encoding modes included in the coupling mode are applied to the current block at the same time; and decoding the current block according to the encoding modes of the current block.

Description

부호화 방법 및 그 장치, 복호화 방법 및 그 장치Coding method and apparatus, decoding method and apparatus thereof
본 발명은 비디오의 부호화 방법 및 복호화 방법에 대한 것으로, 보다 구체적으로는 부호화 모드 정보를 효율적으로 부호화하는 방법에 관한 것이다.The present invention relates to a video encoding method and a video decoding method, and more particularly, to a method of efficiently encoding encoding mode information.
높은 화질의 비디오는 부호화시 많은 양의 데이터가 요구된다. 그러나 비디오 데이터를 전달하기 위하여 허용되는 대역폭은 한정되어 있어, 비디오 데이터 전송시 적용되는 데이터 레이트가 제한될 수 있다. 그러므로 효율적인 비디오 데이터의 전송을 위하여, 화질의 열화를 최소화하면서 압축률을 증가시킨 비디오 데이터의 부호화 및 복호화 방법이 필요하다.High quality video requires a large amount of data when encoding. However, the bandwidth allowed for delivering video data is limited, so that the data rate applied when transmitting video data may be limited. Therefore, in order to efficiently transmit video data, a method of encoding and decoding video data with an increased compression ratio while minimizing deterioration of image quality is needed.
비디오 데이터는 픽셀들 간의 공간적 중복성 및 시간적 중복성을 제거함으로써 압축될 수 있다. 인접한 픽셀들 간에 공통된 특징을 가지는 것이 일반적이기 때문에, 인접한 픽셀들 간의 중복성을 제거하기 위하여 픽셀들로 이루어진 데이터 단위로 부호화 정보가 전송된다.Video data can be compressed by eliminating spatial redundancy and temporal redundancy between pixels. Since it is common to have a common feature among adjacent pixels, encoding information is transmitted in units of data consisting of pixels in order to eliminate redundancy between adjacent pixels.
데이터 단위에 포함된 픽셀들의 픽셀 값은 직접 전송되지 않고, 픽셀 값을 획득하기 위해 필요한 방법이 전송된다. 픽셀 값을 원본 값과 유사하게 예측하는 예측 방법이 데이터 단위마다 결정되며, 예측 방법에 대한 부호화 정보가 부호화기에서 복호화기로 전송된다. 또한 예측 값이 원본 값과 완전히 동일하지 않으므로, 원본 값과 예측 값의 차이에 대한 레지듀얼 데이터가 부호화기에서 복호화기로 전송된다.The pixel values of the pixels included in the data unit are not transmitted directly, but the necessary method to obtain the pixel value is transmitted. A prediction method for predicting the pixel value similar to the original value is determined for each data unit and the encoding information for the prediction method is transmitted from the encoder to the decoder. Also, since the predicted value is not exactly the same as the original value, the residual data of the difference between the original value and the predicted value is transmitted to the decoder in the encoder.
예측이 정확해질수록 예측 방법을 특정하는데 필요한 부호화 정보가 증가되지만, 레지듀얼 데이터의 크기가 감소하게 된다. 따라서 부호화 정보와 레지듀얼 데이터의 크기를 고려하여 예측 방법이 결정된다. 특히, 픽처에서 분할된 데이터 단위는 다양한 크기를 가지는데, 데이터 단위의 크기가 클수록 예측의 정확도가 감소할 가능성이 높은 대신, 부호화 정보가 감소하게 된다. 따라서 픽처의 특성에 맞게 블록의 크기가 결정된다.As the prediction becomes more accurate, the coding information required to specify the prediction method increases, but the size of the residual data decreases. Therefore, the prediction method is determined in consideration of the size of the encoding information and the residual data. In particular, data units divided in pictures have various sizes. The larger the size of a data unit, the more likely the prediction accuracy decreases, and the coding information decreases. Therefore, the size of the block is determined according to the characteristics of the picture.
또한 예측 방법에는 인트라 예측과 인터 예측이 있다. 인트라 예측은 블록의 주변 픽셀들로부터 블록의 픽셀들을 예측하는 방법이다. 인터 예측은 블록이 포함된 픽처가 참조하는 다른 픽처의 픽셀을 참조하여 픽셀들을 예측하는 방법이다. 따라서 인트라 예측에 의하여 공간적 중복성이 제거되고, 인터 예측에 의하여 시간적 중복성이 제거된다.The prediction methods include intra prediction and inter prediction. Intra prediction is a method of predicting pixels of a block from surrounding pixels of the block. Inter prediction is a method of predicting pixels with reference to pixels of another picture referenced by a picture including a block. Therefore, spatial redundancy is removed by intra prediction, and temporal redundancy is eliminated by inter prediction.
예측 방법의 수가 증가할수록 예측 방법을 나타내기 위한 부호화 정보의 양은 증가한다. 따라서 블록에 적용되는 부호화 정보 역시 다른 블록으로부터 예측하여 부호화 정보의 크기를 줄일 수 있다.As the number of prediction methods increases, the amount of coding information to represent the prediction method increases. Therefore, the encoding information applied to the block can also be predicted from other blocks, thereby reducing the size of the encoded information.
인간의 시각이 인지하지 못하는 한도에서 비디오 데이터의 손실이 허용되는 바, 레지듀얼 데이터를 변환 및 양자화 과정에 따라 손실 압축(lossy compression)하여 레지듀얼 데이터의 양을 감소시킬 수 있다. Since the loss of video data is allowed to the extent that the human vision can not recognize, the amount of residual data can be reduced by lossy compression of the residual data according to the transformation and quantization process.
현재 블록에 대하여 결합 모드에 관한 부호화 정보를 생성하는 비디오 부호화 방법과 결합 모드에 관한 부호화 정보에 따라 현재 블록을 복호화하는 비디오 복호화 방법이 개시된다. 더불어 본 발명의 일 실시 예에 따른 비디오 부호화 방법 및 비디오 복호화 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체가 개시된다.A video coding method for generating coding information on a combining mode for a current block and a video decoding method for decoding a current block in accordance with coding information on a combining mode are disclosed. In addition, a computer-readable recording medium on which a program for executing a video encoding method and a video decoding method according to an embodiment of the present invention is recorded in a computer is disclosed.
비트스트림으로부터 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되는지 여부를 나타내는 현재 블록의 결합 모드 플래그를 획득하는 단계, 및 상기 현재 블록의 결합 모드 플래그가 상기 결합 모드에 포함된 복수의 부호화 모드들이 상기 현재 블록에 같이 적용됨을 나타낼 때, 상기 결합 모드의 복수의 부호화 모드를 상기 현재 블록의 부호화 모드들로 결정하는 단계, 및 상기 현재 블록의 부호화 모드들에 따라 상기 현재 블록을 복호화하는 단계를 포함하는 비디오 복호화 방법이 제공된다.Obtaining a combined mode flag of a current block indicating whether a plurality of encoding modes included in a coupled mode are applied to a current block from a bitstream, Determining encoding modes of the current block as a plurality of encoding modes of the joint mode when encoding modes are applied to the current block, decoding the current block according to encoding modes of the current block, There is provided a video decoding method including the steps of:
비트스트림으로부터 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되는지 여부를 나타내는 현재 블록의 결합 모드 플래그를 획득하고, 상기 현재 블록의 결합 모드 플래그가 상기 결합 모드에 포함된 복수의 부호화 모드들이 상기 현재 블록에 같이 적용됨을 나타낼 때, 상기 결합 모드의 복수의 부호화 모드를 상기 현재 블록의 부호화 모드들로 결정하는 부호화 모드 결정부, 및 상기 현재 블록의 부호화 모드들에 따라 상기 현재 블록을 복호화하는 복호화부를 포함하는 비디오 복호화 장치가 제공된다.Acquiring a coupling mode flag of a current block indicating whether a plurality of coding modes included in a coupling mode are applied to a current block from a bitstream and determining whether or not a coupling mode flag of the current block includes a plurality of coding modes A coding mode determination unit that determines a plurality of coding modes of the combining mode as coding modes of the current block when the coding mode of the current block is applied to the current block, And a decoding unit for decoding the video data.
현재 블록의 부호화 모드들을 결정하는 단계, 상기 현재 블록의 부호화 모드들이 결합 모드의 복수의 부호화 모드들과 동일한지 여부에 따라, 상기 현재 블록의 결합 모드 플래그를 생성하는 단계, 및 상기 결합 모드 플래그를 포함하는 비트스트림을 생성하는 단계를 포함하는 비디오 부호화 방법이 제공된다.Generating a combined mode flag of the current block according to whether or not the encoding modes of the current block are the same as the plurality of encoding modes of the combined mode, And generating a bitstream including the bitstream.
현재 블록의 부호화 모드들을 결정하고, 상기 현재 블록의 부호화 모드들이 결합 모드의 복수의 부호화 모드들과 동일한지 여부에 따라, 상기 현재 블록의 결합 모드 플래그를 생성하는 부호화부, 및 상기 결합 모드 플래그를 포함하는 비트스트림을 생성하는 비트스트림 생성부를 포함하는 비디오 부호화 장치가 제공된다.An encoding unit that determines encoding modes of a current block and generates a joint mode flag of the current block according to whether encoding modes of the current block are the same as a plurality of encoding modes of a joint mode, And a bitstream generation unit for generating a bitstream including the bitstream.
상기 비디오 부호화 방법 및 비디오 복호화 방법을 수행하는 프로그램이 기록된 컴퓨터로 기록가능한 기록매체가 제공된다.There is provided a computer-readable recording medium on which a program for performing the video coding method and the video decoding method is recorded.
본 실시 예가 이루고자 하는 기술적 과제는 상기된 바와 같은 기술적 과제들로 한정되지 않으며, 이하의 실시 예들로부터 또 다른 기술적 과제들이 유추될 수 있다.The technical problem to be solved by this embodiment is not limited to the above-mentioned technical problems, and other technical problems can be deduced from the following embodiments.
결합 모드가 현재 블록의 부호화 모드를 포함할 때, 결합 모드에 관련된 신택스 엘리먼트만 비트스트림에 포함시키고, 결합 모드에 포함된 부호화 모드들에 대응되는 복수의 신택스 엘리먼트는 생략함으로써 이미지의 부호화율이 증가된다.When the combining mode includes the coding mode of the current block, only the syntax elements related to the combining mode are included in the bitstream, and the plurality of syntax elements corresponding to the coding modes included in the combining mode are omitted, do.
도 1a은 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 영상 부호화 장치의 블록도를 도시한다.FIG. 1A is a block diagram of an image encoding apparatus based on an encoding unit according to a tree structure according to an embodiment of the present invention.
도 1b는 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 복호화 장치의 블록도를 도시한다.1B shows a block diagram of a video decoding apparatus based on a coding unit according to a tree structure according to an embodiment.
도 2는 일 실시예에 따라 현재 부호화 단위가 분할되어 적어도 하나의 부호화 단위가 결정되는 과정을 도시한다.FIG. 2 illustrates a process in which at least one encoding unit is determined by dividing a current encoding unit according to an embodiment.
도 3은 일 실시예에 따라 비-정사각형의 형태인 부호화 단위가 분할되어 적어도 하나의 부호화 단위가 결정되는 과정을 도시한다.FIG. 3 illustrates a process in which at least one encoding unit is determined by dividing a non-square encoding unit according to an embodiment.
도 4는 일 실시예에 따라 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 부호화 단위가 분할되는 과정을 도시한다.FIG. 4 illustrates a process in which an encoding unit is divided based on at least one of block type information and division type information according to an embodiment.
도 5는 일 실시예에 따라 홀수개의 부호화 단위들 중 소정의 부호화 단위가 결정되는 방법을 도시한다.FIG. 5 illustrates a method of determining a predetermined encoding unit among odd number of encoding units according to an exemplary embodiment.
도 6은 일 실시예에 따라 현재 부호화 단위가 분할되어 복수개의 부호화 단위들이 결정되는 경우, 복수개의 부호화 단위들이 처리되는 순서를 도시한다.FIG. 6 illustrates a sequence in which a plurality of coding units are processed when a current coding unit is divided to determine a plurality of coding units according to an exemplary embodiment.
도 7은 일 실시예에 따라 소정의 순서로 부호화 단위가 처리될 수 없는 경우, 현재 부호화 단위가 홀수개의 부호화 단위로 분할되는 것으로 결정되는 과정을 도시한다.FIG. 7 illustrates a process in which, when an encoding unit can not be processed in a predetermined order according to an embodiment, it is determined that the current encoding unit is divided into odd number of encoding units.
도 8은 일 실시예에 따라 제1 부호화 단위가 분할되어 적어도 하나의 부호화 단위가 결정되는 과정을 도시한다.FIG. 8 illustrates a process in which a first encoding unit is divided into at least one encoding unit according to an embodiment of the present invention.
도 9는 일 실시예에 따라 제1 부호화 단위가 분할되어 결정된 비-정사각형 형태의 제2 부호화 단위가 소정의 조건을 만족하는 경우, 제2 부호화 단위가 분할될 수 있는 형태가 제한되는 것을 도시한다.9 illustrates that when the non-square type second coding unit determined by dividing the first coding unit according to an embodiment satisfies a predetermined condition, the form in which the second coding unit can be divided is limited .
도 10은 일 실시예에 따라 분할 형태 정보가 4개의 정사각형 형태의 부호화 단위로 분할하는 것을 나타낼 수 없는 경우, 정사각형 형태의 부호화 단위가 분할되는 과정을 도시한다FIG. 10 illustrates a process in which a square-shaped encoding unit is divided when division type information can not be divided into four square-shaped encoding units according to an embodiment
도 11은 일 실시예에 따라 복수개의 부호화 단위들 간의 처리 순서가 부호화 단위의 분할 과정에 따라 달라질 수 있음을 도시한 것이다.FIG. 11 illustrates that the processing order among a plurality of coding units may be changed according to a division process of coding units according to an embodiment.
도 12는 일 실시예에 따라 부호화 단위가 재귀적으로 분할되어 복수개의 부호화 단위가 결정되는 경우, 부호화 단위의 형태 및 크기가 변함에 따라 부호화 단위의 심도가 결정되는 과정을 도시한다.FIG. 12 illustrates a process of determining the depth of an encoding unit according to a change in type and size of an encoding unit when a plurality of encoding units are determined by recursively dividing an encoding unit according to an exemplary embodiment.
도 13은 일 실시예에 따라 부호화 단위들의 형태 및 크기에 따라 결정될 수 있는 심도 및 부호화 단위 구분을 위한 인덱스(part index, 이하 PID)를 도시한다.FIG. 13 illustrates a depth index (hereinafter referred to as PID) for coding unit classification and depth that can be determined according to the type and size of coding units according to an exemplary embodiment.
도 14는 일 실시예에 따라 픽쳐에 포함되는 복수개의 소정의 데이터 단위에 따라 복수개의 부호화 단위들이 결정된 것을 도시한다.FIG. 14 shows that a plurality of coding units are determined according to a plurality of predetermined data units included in a picture according to an embodiment.
도 15는 일 실시예에 따라 픽쳐에 포함되는 기준 부호화 단위의 결정 순서를 결정하는 기준이 되는 프로세싱 블록을 도시한다.FIG. 15 illustrates a processing block serving as a reference for determining a determination order of a reference encoding unit included in a picture according to an embodiment.
도 16은 결합 모드에 따라 부호화 모드를 결정하는 일 실시예에 따른 비디오 복호화 장치(1600)의 블록도를 도시한다.FIG. 16 shows a block diagram of a video decoding apparatus 1600 according to an embodiment for determining a coding mode according to a combining mode.
도 17a 및 도 17b는 결합 모드에 복수의 루마 인트라 예측 모드들 중 하나와 복수의 크로마 인트라 예측 모드들 중 하나가 포함될 때, 현재 블록의 부호화 모드 결정 방법을 나타낸다.17A and 17B show a coding mode decision method of the current block when one of a plurality of luma intra prediction modes and a plurality of chroma intra prediction modes is included in the combining mode.
도 18a 및 도 18b는 결합 모드에 복수의 루마 인트라 예측 모드들 중 하나, 복수의 크로마 인트라 예측 모드들 중 하나, 복수의 변환 모드들 중 하나가 포함될 때, 현재 블록의 부호화 모드 결정 방법을 나타낸다.FIGS. 18A and 18B show a coding mode determination method of a current block when one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, and one of a plurality of conversion modes is included in the combining mode.
도 19a 및 도 19b는 결합 모드에 복수의 루마 인트라 예측 모드들 중 하나, 복수의 크로마 인트라 예측 모드들 중 하나, 복수의 변환 모드들 중 하나가 포함되고, 추가적으로 부호화 모드 m1의 적용 여부에 대한 정보가 포함될 때, 현재 블록의 부호화 모드 결정 방법을 나타낸다.19A and 19B are diagrams for explaining the case where the combining mode includes one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, one of a plurality of conversion modes, and additionally information about whether or not the coding mode m1 is applied Is included, a coding mode decision method of the current block is shown.
도 20은 결합 모드에 부호화 모드 m1, m3 적용 여부와 부호화 모드 m2의 세부 모드에 대한 정보가 포함된 때, 현재 블록의 부호화 모드 결정 방법을 나타낸다.20 shows a method of determining a coding mode of a current block when information on coding mode m1 and m3 is applied to the combining mode and information on the coding mode m2 is included.
도 21a 는 인터 슬라이스(P 슬라이스 또는 B 슬라이스)에서 결합 모드에 따라 부호화 모드를 결정하는 방법을 나타내고, 도 21b는 인트라 슬라이스(I 슬라이스)에서 결합 모드에 따라 부호화 모드를 결정하는 방법을 나타낸다.FIG. 21A shows a method of determining an encoding mode according to a combining mode in an interlace (P slice or B slice), and FIG. 21B shows a method of determining an encoding mode according to a combining mode in an intra slice (I slice).
도 22a는 인터 슬라이스(P 슬라이스 또는 B 슬라이스)에서 DC 모드를 포함하는 결합 모드에 따라 부호화 모드를 결정하는 방법을 나타내고, 도 22b는 인트라 슬라이스(I 슬라이스)에서 DC 모드를 포함하는 결합 모드에 따라 부호화 모드를 결정하는 방법을 나타낸다.22A shows a method of determining an encoding mode according to a combining mode including a DC mode in an interlace (P slice or B slice), FIG. 22B shows a method of determining a coding mode according to a combining mode including an DC mode in an intra slice Indicates a method of determining an encoding mode.
도 23은 결합 모드의 일 실시예를 나타내는 부호화 단위의 신택스이다.23 is a syntax of an encoding unit showing an embodiment of the combining mode.
도 24에는 결합 모드에 따라 부호화 모드를 결정하는 일 실시예에 따른 비디오 복호화 방법(2400)이 도시되어 있다.FIG. 24 shows a video decoding method 2400 according to an embodiment for determining a coding mode according to a combining mode.
도25에는 부호화 모드에 따라 결합 모드의 사용 여부를 결정하는 일 실시예에 따른 비디오 부호화 장치(2500)가 도시되어 있다.FIG. 25 shows a video encoding apparatus 2500 according to an embodiment for determining whether to use the joint mode according to the encoding mode.
도 26에는 부호화 모드에 따라 결합 모드의 사용 여부를 결정하는 일 실시예에 따른 비디오 부호화 방법(2600)이 도시되어 있다.FIG. 26 shows a video encoding method 2600 according to an embodiment for determining whether to use a combining mode according to an encoding mode.
비트스트림으로부터 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되는지 여부를 나타내는 현재 블록의 결합 모드 플래그를 획득하는 단계, 및 상기 현재 블록의 결합 모드 플래그가 상기 결합 모드에 포함된 복수의 부호화 모드들이 상기 현재 블록에 같이 적용됨을 나타낼 때, 상기 결합 모드의 복수의 부호화 모드를 상기 현재 블록의 부호화 모드들로 결정하는 단계, 및 상기 현재 블록의 부호화 모드들에 따라 상기 현재 블록을 복호화하는 단계를 포함하는 비디오 복호화 방법이 제공된다.Obtaining a combined mode flag of a current block indicating whether a plurality of encoding modes included in a coupled mode are applied to a current block from a bitstream, Determining encoding modes of the current block as a plurality of encoding modes of the joint mode when encoding modes are applied to the current block, decoding the current block according to encoding modes of the current block, There is provided a video decoding method including the steps of:
개시된 실시예의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하고, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것일 뿐이다.BRIEF DESCRIPTION OF THE DRAWINGS The advantages and features of the disclosed embodiments, and how to accomplish them, will become apparent with reference to the embodiments described below with reference to the accompanying drawings. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. But only to give the person who possessed the invention the full scope of the invention.
본 명세서에서 사용되는 용어에 대해 간략히 설명하고, 개시된 실시예에 대해 구체적으로 설명하기로 한다. The terms used in this specification will be briefly described, and the disclosed embodiments will be described in detail.
본 명세서에서 사용되는 용어는 본 발명에서의 기능을 고려하면서 가능한 현재 널리 사용되는 일반적인 용어들을 선택하였으나, 이는 관련 분야에 종사하는 기술자의 의도 또는 판례, 새로운 기술의 출현 등에 따라 달라질 수 있다. 또한, 특정한 경우는 출원인이 임의로 선정한 용어도 있으며, 이 경우 해당되는 발명의 설명 부분에서 상세히 그 의미를 기재할 것이다. 따라서 본 발명에서 사용되는 용어는 단순한 용어의 명칭이 아닌, 그 용어가 가지는 의미와 본 발명의 전반에 걸친 내용을 토대로 정의되어야 한다. As used herein, the terminology used herein is intended to encompass all commonly used generic terms that may be considered while considering the functionality of the present invention, but this may vary depending upon the intent or circumstance of the skilled artisan, the emergence of new technology, and the like. Also, in certain cases, there may be a term selected arbitrarily by the applicant, in which case the meaning thereof will be described in detail in the description of the corresponding invention. Therefore, the term used in the present invention should be defined based on the meaning of the term, not on the name of a simple term, but on the entire contents of the present invention.
본 명세서에서의 단수의 표현은 문맥상 명백하게 단수인 것으로 특정하지 않는 한, 복수의 표현을 포함한다.The singular expressions herein include plural referents unless the context clearly dictates otherwise.
명세서 전체에서 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있음을 의미한다. 또한, 명세서에서 사용되는 "부"라는 용어는 소프트웨어, FPGA 또는 ASIC과 같은 하드웨어 구성요소를 의미하며, "부"는 어떤 역할들을 수행한다. 그렇지만 "부"는 소프트웨어 또는 하드웨어에 한정되는 의미는 아니다. "부"는 어드레싱할 수 있는 저장 매체에 있도록 구성될 수도 있고 하나 또는 그 이상의 프로세서들을 재생시키도록 구성될 수도 있다. 따라서, 일 예로서 "부"는 소프트웨어 구성요소들, 객체지향 소프트웨어 구성요소들, 클래스 구성요소들 및 태스크 구성요소들과 같은 구성요소들과, 프로세스들, 함수들, 속성들, 프로시저들, 서브루틴들, 프로그램 코드의 세그먼트들, 드라이버들, 펌웨어, 마이크로 코드, 회로, 데이터, 데이터베이스, 데이터 구조들, 테이블들, 어레이들 및 변수들을 포함한다. 구성요소들과 "부"들 안에서 제공되는 기능은 더 작은 수의 구성요소들 및 "부"들로 결합되거나 추가적인 구성요소들과 "부"들로 더 분리될 수 있다.When an element is referred to as " including " an element throughout the specification, it is to be understood that the element may include other elements, without departing from the spirit or scope of the present invention. Also, as used herein, the term " part " refers to a hardware component such as software, FPGA or ASIC, and " part " However, " part " is not meant to be limited to software or hardware. &Quot; Part " may be configured to reside on an addressable storage medium and may be configured to play back one or more processors. Thus, by way of example, and not limitation, " part (s) " refers to components such as software components, object oriented software components, class components and task components, and processes, Subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays and variables. The functions provided in the components and " parts " may be combined into a smaller number of components and " parts " or further separated into additional components and " parts ".
"현재 블록"은 현재 부호화 또는 복호화되는 부호화 단위, 예측 단위 및 변환 단위 중 하나를 의미한다. 만약, 설명의 편의를 위하여, 예측 단위, 변환 단위 등 기타 종류의 블록을 구분할 필요가 있을 때는 "현재 부호화 블록", "현재 예측 블록", "현재 변환 블록"이 사용될 수 있다. 또한 "하위 블록"은 "현재 블록"으로부터 분할된 데이터 단위를 의미한다. 그리고 "상위 블록"은 "현재 블록"을 포함하는 데이터 단위를 의미한다.The " current block " means one of a coding unit, a prediction unit and a conversion unit which are currently encoded or decoded. For convenience of explanation, when it is necessary to distinguish other types of blocks such as a prediction unit, a conversion unit, a "current encoding block", a "current prediction block", and a "current conversion block" may be used. "Sub-block" means a data unit divided from "current block". And " upper block " means a data unit including " current block ".
이하 "샘플"은, 영상의 샘플링 위치에 할당된 데이터로서 프로세싱 대상이 되는 데이터를 의미한다. 예를 들어, 공간영역의 영상에서 픽셀값, 변환 영역 상의 변환 계수들이 샘플들일 수 있다. 이러한 적어도 하나의 샘플들을 포함하는 단위를 블록이라고 정의할 수 있다.Hereinafter, " sample " means data to be processed as data assigned to a sampling position of an image. For example, pixel values in the image of the spatial domain, and transform coefficients on the transform domain may be samples. A unit including at least one of these samples may be defined as a block.
아래에서는 첨부한 도면을 참고하여 실시예에 대하여 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그리고 도면에서 본 발명을 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In order to clearly explain the present invention in the drawings, parts not related to the description will be omitted.
도 1a는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 영상 부호화 장치(100)의 블록도를 도시한다.FIG. 1A is a block diagram of an image encoding apparatus 100 based on an encoding unit according to a tree structure according to an embodiment of the present invention.
영상 부호화 장치(100)는 최대 부호화 단위 결정부(110), 부호화 단위 결정부(120) 및 출력부(130)를 포함한다.The image encoding apparatus 100 includes a maximum encoding unit determination unit 110, an encoding unit determination unit 120, and an output unit 130.
최대 부호화 단위 결정부(110)는 최대 부호화 단위의 크기에 따라 픽처 또는 픽처에 포함된 슬라이스를 복수의 최대 부호화 단위로 분할한다. 최대 부호화 단위는 크기 32x32, 64x64, 128x128, 256x256 등의 데이터 단위로, 가로 및 세로 크기가 2의 자승인 정사각형의 데이터 단위일 수 있다. 최대 부호화 단위 결정부(110)는 최대 부호화 단위의 크기를 나타내는 최대 부호화 단위 크기 정보를 출력부(130)에 제공할 수 있다. 그리고 출력부(130)는 최대 부호화 단위 크기 정보를 비트스트림에 포함시킬 수 있다.The maximum coding unit determination unit 110 divides a picture or a slice included in a picture into a plurality of maximum coding units according to the size of the maximum coding unit. The maximum encoding unit may be a data unit of size 32x32, 64x64, 128x128, 256x256, or the like, and a data unit of a character approval square whose width and height are two. The maximum encoding unit determination unit 110 may provide the output unit 130 with maximum encoding unit size information indicating the size of the maximum encoding unit. The output unit 130 may include the maximum encoding unit size information in the bitstream.
부호화 단위 결정부(120)는 최대 부호화 단위를 분할하여 부호화 단위를 결정한다. 부호화 단위는 최대 크기 및 심도로 결정될 수 있다. 심도란 최대 부호화 단위로부터 부호화 단위가 공간적으로 분할된 횟수로 정의될 수 있다. 심도가 1 증가할 때마다, 부호화 단위는 2개 이상의 부호화 단위로 분할된다. 따라서 심도가 증가할수록 심도별 부호화 단위의 크기는 감소한다. 부호화 단위의 분할 여부는 율-왜곡 최적화(Rate-Distortion Optimization)에 의하여 부호화 단위의 분할이 효율적인지 여부에 따라 결정된다. 그리고 부호화 단위가 분할되었는지 여부를 나타내는 분할 정보가 생성될 수 있다. 분할 정보는 플래그의 형태로 표현될 수 있다.The encoding unit determination unit 120 determines the encoding unit by dividing the maximum encoding unit. The encoding unit may be determined by the maximum size and the depth. The depth can be defined as the number of times the encoding unit is spatially divided from the maximum encoding unit. Each time the depth increases by one, the encoding unit is divided into two or more encoding units. Therefore, as the depth increases, the size of the coding unit per depth decreases. Whether or not the coding unit is divided depends on whether or not the coding unit is efficiently divided by Rate-Distortion Optimization. And division information indicating whether or not the encoding unit is divided may be generated. The division information can be expressed in the form of a flag.
부호화 단위는 다양한 방법으로 분할될 수 있다. 예를 들어, 정사각형의 부호화 단위는 너비와 높이가 절반인 4개의 정사각형의 부호화 단위로 분할될 수 있다. 정사각형의 부호화 단위는 너비가 절반인 2개의 직사각형의 부호화 단위로 분할될 수 있다. 정사각형의 부호화 단위는 높이가 절반인 2개의 직사각형의 부호화 단위로 분할될 수 있다. 정사각형의 부호화 단위는 너비 또는 높이를 1:2:1로 분할함으로써 세 개의 부호화 단위로 분할될 수 있다.The encoding unit can be divided in various ways. For example, a square encoding unit can be divided into four square encoding units that are half the width and height. A square encoding unit can be divided into two rectangular encoding units that are half in width. A square encoding unit can be divided into two rectangular encoding units whose height is half. A square encoding unit can be divided into three encoding units by dividing the width or height by 1: 2: 1.
너비가 높이의 2배인 직사각형의 부호화 단위는 2개의 정사각형의 부호화 단위로 분할될 수 있다. 너비가 높이의 2배인 직사각형의 부호화 단위는 2개의 너비가 높이의 4배인 직사각형의 부호화 단위로 분할될 수 있다. 너비가 높이의 2배인 직사각형의 부호화 단위는 너비를 1:2:1로 분할함으로써 2개의 직사각형의 부호화 단위와 한 개의 정사각형의 부호화 단위로 분할될 수 있다.A rectangular coding unit whose width is twice the height can be divided into two square coding units. A rectangular coding unit whose width is twice as high can be divided into rectangular coding units having two widths and four times the height. An encoding unit of a rectangle whose width is twice the height can be divided into two rectangular encoding units and one square encoding unit by dividing the width by 1: 2: 1.
마찬가지로, 높이가 너비의 2배인 직사각형의 부호화 단위는 2개의 정사각형의 부호화 단위로 분할될 수 있다. 또한 높이가 너비의 2배인 직사각형의 부호화 단위는 2개의 높이가 너비의 4배인 직사각형의 부호화 단위로 분할될 수 있다. 마찬가지로 높이가 너비의 2배인 직사각형의 부호화 단위는 높이를 1:2:1로 분할함으로써 2개의 직사각형의 부호화 단위와 한 개의 정사각형의 부호화 단위로 분할될 수 있다.Likewise, a rectangular coding unit whose height is twice the width can be divided into two square coding units. In addition, a rectangular unit of coding whose height is twice the width can be divided into rectangular units of which the height is four times the width. Likewise, a rectangular unit of coding whose height is twice the width can be divided into two rectangular unit of coding and one square unit of coding by dividing the height by 1: 2: 1.
영상 부호화 장치(100)에서 2개 이상의 분할 방법이 사용가능한 경우, 영상 부호화 장치(100)에서 사용가능한 분할 방법 중 부호화 단위에 사용될 수 있는 분할 방법에 대한 정보가 픽처마다 결정될 수 있다. 따라서 픽처마다 특정한 분할 방법들만이 사용되도록 결정될 수 있다. 만약 영상 부호화 장치(100)가 하나의 분할 방법만을 사용할 경우, 부호화 단위에 사용될 수 있는 분할 방법에 대한 정보가 별도로 결정되지 않는다.When two or more division methods are available in the image coding apparatus 100, information on division methods that can be used for the coding units among the division methods available in the image coding apparatus 100 can be determined for each picture. Therefore, only the division methods specific to each picture can be determined to be used. If the image encoding apparatus 100 uses only one division method, information on the division method that can be used in the encoding unit is not separately determined.
부호화 단위의 분할 정보가 부호화 단위가 분할됨을 나타낼 때, 부호화 단위의 분할 방법을 나타내는 분할 형태 정보가 생성될 수 있다. 만약 부호화 단위가 속한 픽처에서 사용될 수 있는 분할 방법이 하나인 경우, 분할 형태 정보는 생성되지 않을 수 있다. 만약 분할 방법이 부호화 단위 주변의 부호화 정보에 적응적으로 결정될 경우, 분할 형태 정보는 생성되지 않을 수 있다.When division information of an encoding unit indicates that an encoding unit is divided, division type information indicating a division method of an encoding unit can be generated. If there is one division method that can be used in a picture to which an encoding unit belongs, the division type information may not be generated. If the division method is adaptively determined to the encoding information around the encoding unit, the division type information may not be generated.
최대 부호화 단위는 최소 부호화 단위 크기 정보에 따라 최소 부호화 단위까지 분할될 수 있다. 최대 부호화 단위의 심도가 최상위 심도이며 최소 부호화 단위가 최하위 심도로 정의될 수 있다. 따라서 상위 심도의 부호화 단위는 복수 개의 하위 심도의 부호화 단위를 포함할 수 있다.The maximum encoding unit may be divided up to the minimum encoding unit according to the minimum encoding unit size information. The depth of the maximum encoding unit is the highest depth and the minimum encoding unit can be defined as the lowest depth. Accordingly, the encoding unit of the higher depth may include a plurality of encoding units of the lower depth.
전술한 바와 같이 부호화 단위의 최대 크기에 따라, 현재 픽처의 영상 데이터는 최대 부호화 단위로 분할된다. 그리고 최대 부호화 단위는 심도별로 분할되는 부호화 단위들을 포함할 수 있다. 최대 부호화 단위는 심도별로 분할되므로, 최대 부호화 단위에 포함된 공간 영역(spatial domain)의 영상 데이터가 심도에 따라 계층적으로 분류될 수 있다. As described above, according to the maximum size of the encoding unit, the image data of the current picture is divided into the maximum encoding units. And the maximum encoding unit may include encoding units divided by depth. Since the maximum encoding unit is divided by the depth, the image data of the spatial domain included in the maximum encoding unit can be hierarchically classified according to the depth.
최대 부호화 단위를 계층적으로 분할할 수 있는 최대 횟수를 제한하는 최대 심도 또는 부호화 단위의 최소 크기가 미리 설정되어 있을 수 있다.The maximum depth for limiting the maximum number of times the maximum encoding unit can be hierarchically divided or the minimum size of the encoding unit may be preset.
부호화 단위 결정부(120)는 부호화 단위를 계층적으로 분할하였을 때의 부호화 효율과 부호화 단위를 분할하지 않았을 때의 부호화 효율을 비교한다. 그리고 부호화 단위 결정부(120)는 비교 결과에 따라 부호화 단위를 분할할지 여부를 결정한다. 만약 부호화 단위의 분할이 더 효율적이라고 결정된 경우, 부호화 단위 결정부(120)는 부호화 단위를 계층적으로 분할한다. 만약 비교 결과에 따라 부호화 단위를 분할하지 않는 것이 효율적이라고 결정된 경우, 부호화 단위를 분할하지 않는다. 부호화 단위의 분할 여부는 인접한 다른 부호화 단위의 분할 여부에 독립적으로 결정될 수 있다.The encoding unit determination unit 120 compares the encoding efficiency when the encoding unit is hierarchically divided and the encoding efficiency when the encoding unit is not divided. The encoding unit determination unit 120 determines whether to divide the encoding unit according to the comparison result. If it is determined that the division of the encoding unit is more efficient, the encoding unit determination unit 120 divides the encoding unit hierarchically. If it is determined that it is efficient to not divide the encoding unit according to the comparison result, the encoding unit is not divided. Whether or not the encoding unit is divided can be determined independently of whether or not the adjacent encoding units are divided.
일 실시예에 의하면, 부호화 단위의 분할 여부는 부호화 과정에서 심도가 큰 부호화 단위부터 결정될 수 있다. 예를 들어, 최대 심도의 부호화 단위와 최대 심도보다 1만큼 작은 부호화 단위의 부호화 효율이 비교되어, 최대 부호화 단위의 각 영역마다 최대 심도의 부호화 단위들과 최대 심도보다 1만큼 작은 부호화 단위들 중 어느 것이 더 효율적으로 부호화되는지 판단된다. 그리고 판단 결과에 따라 최대 부호화 단위의 각 영역마다 최대 심도보다 1만큼 작은 부호화 단위의 분할 여부가 결정된다. 그 후 최대 부호화 단위의 각 영역마다 최대 심도보다 2만큼 작은 부호화 단위들과 위의 판단 결과에 기초하여 선택된 최대 심도보다 1만큼 작은 부호화 단위들과 최소 심도의 부호화 단위들의 조합 중 어느 것이 더 효율적으로 부호화되는지 판단된다. 동일한 판단 과정이 심도가 작은 부호화 단위들에 대하여 순차적으로 수행되어, 최종적으로 최대 부호화 단위와 최대 부호화 단위가 계층적으로 분할되어 생성된 계층 구조 중 어느 것이 더 효율적으로 부호화되는지 여부에 따라 최대 부호화 단위의 분할 여부가 결정된다.According to one embodiment, whether or not the encoding unit is divided may be determined from a coding unit having a large depth in the encoding process. For example, the coding efficiency of the coding unit of the maximum depth is compared with the coding efficiency of the coding unit which is one less than the maximum depth so that the encoding units of the maximum depth and the encoding units of the maximum depth, Is encoded more efficiently. Then, according to the determination result, whether or not to divide a coding unit smaller by one than the maximum depth is determined for each region of the maximum coding unit. And then a coding unit which is smaller by 2 than the maximum depth for each region of the maximum coding unit and a combination of the coding units and the minimum depth coding units which are smaller by one than the maximum depth selected on the basis of the above determination result are more efficiently Is encoded. The same judgment process is sequentially performed on the coding units having small depths and finally the maximum coding unit and the maximum coding unit are divided in a hierarchical manner to determine which of the generated hierarchical structures is more efficiently coded, Is determined.
부호화 단위의 분할 여부는 부호화 과정에서 심도가 작은 부호화 단위부터 결정될 수 있다. 예를 들어, 최대 부호화 단위와 최대 부호화 단위보다 1만큼 심도가 큰 부호화 단위의 부호화 효율이 비교되어, 최대 부호화 단위와 최대 부호화 단위보다 1만큼 심도가 큰 부호화 단위들 중 어느 것이 더 효율적으로 부호화되는지 판단된다. 만약 최대 부호화 단위의 부호화 효율이 더 좋을 경우, 최대 부호화 단위는 분할되지 않는다. 만약 최대 부호화 단위보다 1만큼 심도가 큰 부호화 단위들의 부호화 효율이 더 좋을 경우, 최대 부호화 단위는 분할되고, 분할된 부호화 단위에 대하여 동일한 비교 과정이 반복된다.The division of a coding unit may be determined from a coding unit having a small depth in the coding process. For example, when the coding efficiency of the coding unit having the largest coding unit and the coding unit having the largest depth by one than the maximum coding unit is compared, it is determined which of the coding units having the largest coding depth and the largest coding depth is encoded more efficiently . If the coding efficiency of the maximum coding unit is better, the maximum coding unit is not divided. If the encoding efficiency of encoding units having a depth greater than 1 by the maximum encoding unit is better, the maximum encoding unit is divided and the same comparison process is repeated for the divided encoding units.
심도가 큰 부호화 단위부터 부호화 효율을 검토할 경우, 연산량이 많으나 부호화 효율이 높은 트리 구조를 획득할 수 있다. 반대로 심도가 작은 부호화 단위부터 부호화 효율을 검토할 경우, 연산량이 적으나 부호화 효율이 낮은 트리 구조를 획득할 수 있다. 따라서 부호화 효율과 연산량을 고려하여 최대 부호화 단위의 계층적 트리 구조를 획득하기 위한 알고리즘이 다양한 방법으로 설계될 수 있다.When a coding efficiency is examined from a coding unit having a large depth, a tree structure with high coding efficiency but high coding efficiency can be obtained. Conversely, when examining the coding efficiency from a coding unit having a small depth, it is possible to obtain a tree structure having a low coding amount but a low coding efficiency. Therefore, the algorithm for obtaining the hierarchical tree structure of the maximum coding unit considering the coding efficiency and the calculation amount can be designed in various ways.
부호화 단위 결정부(120)는 심도별 부호화 단위의 효율성을 판단하기 위하여, 부호화 단위에 가장 효율적인 예측 및 변환 방법을 결정한다. 부호화 단위는 가장 효율적인 예측 및 변환 방법을 결정하기 위하여 소정의 데이터 단위들로 분할될 수 있다. 데이터 단위는 부호화 단위의 분할 방법에 따라 다양한 형태를 가질 수 있다. 데이터 단위를 결정하기 위한 부호화 단위의 분할 방법은 파티션 모드라고 정의될 수 있다. 예를 들어, 크기 2Nx2N(단, N은 양의 정수)의 부호화 단위가 분할되지 않는 경우, 부호화 단위에 포함된 예측 단위의 크기는 2Nx2N이 된다. 크기 2Nx2N의 부호화 단위가 분할될 경우, 부호화 단위에 포함된 예측 단위의 크기는 파티션 모드에 따라 2NxN, Nx2N, NxN 등이 될 수 있다. 일 실시예에 따른 파티션 모드는 부호화 단위의 높이 또는 너비가 대칭적 비율로 분할된 대칭적 데이터 단위들뿐만 아니라, 1:n 또는 n:1과 같이 비대칭적 비율로 분할된 데이터 단위들, 사선 방향으로 분할된 데이터 단위들, 기타 기하학적인 형태로 분할된 데이터 단위들, 임의적 형태의 데이터 단위들을 생성할 수 있다.The coding unit determination unit 120 determines the most efficient prediction and conversion method for each coding unit in order to determine the efficiency of each coding unit. The encoding unit may be partitioned into predetermined data units to determine the most efficient prediction and conversion method. The data unit may have various forms according to the division method of the encoding unit. A method of dividing an encoding unit for determining a data unit may be defined as a partition mode. For example, when the encoding unit of size 2Nx2N (where N is a positive integer) is not divided, the size of the prediction unit included in the encoding unit is 2Nx2N. When the encoding unit of size 2Nx2N is divided, the size of the prediction unit included in the encoding unit may be 2NxN, Nx2N, NxN, etc. depending on the partition mode. The partitioning mode according to an exemplary embodiment includes not only symmetric data units in which the height or width of a coding unit is divided into symmetric ratios but also data units divided into asymmetric ratios such as 1: n or n: 1, , Data units that are divided into other geometric forms, and arbitrary types of data units.
부호화 단위는 부호화 단위에 포함된 데이터 단위를 기준으로 예측 및 변환이 수행될 수 있다. 그러나 실시 예에 따라 예측을 위한 데이터 단위와 변환을 위한 데이터 단위가 별도로 결정될 수 있다. 예측을 위한 데이터 단위는 예측 단위로, 변환을 위한 데이터 단위는 변환 단위로 정의될 수 있다. 예측 단위에서 적용되는 파티션 모드와 변환 단위에서 적용되는 파티션 모드는 서로 다를 수 있으며, 부호화 단위에서 예측 단위의 예측과 변환 단위의 변환은 병렬적, 독립적으로 수행될 수 있다.The encoding unit can be predicted and converted based on the data unit included in the encoding unit. However, according to the embodiment, the data unit for prediction and the data unit for conversion can be separately determined. The data unit for prediction can be defined as a prediction unit, and the data unit for conversion can be defined as a conversion unit. The partition mode applied in the prediction unit and the partition mode applied in the conversion unit may be different from each other and prediction of the prediction unit and conversion of the conversion unit in the coding unit may be performed in parallel and independently.
부호화 단위는 효율적인 예측 방법을 결정하기 위하여 한 개 이상의 예측 단위로 분할될 수 있다. 마찬가지로 부호화 단위는 효율적인 변환 방법을 결정하기 위하여 한 개 이상의 변환 단위로 분할 될 수 있다. 예측 단위의 분할과 변환 단위의 분할은 독립적으로 수행될 수 있다. 그러나 부호화 단위 내부의 복원 샘플이 인트라 예측에 사용되는 경우, 부호화 단위에 포함된 예측 단위들 또는 변환 단위들 간에 종속적 관계가 형성되므로 예측 단위와 변환 단위의 분할이 서로 영향을 미칠 수 있다.An encoding unit may be divided into one or more prediction units to determine an efficient prediction method. Similarly, an encoding unit can be divided into one or more conversion units to determine an efficient conversion method. The division of the prediction unit and the division of the conversion unit can be performed independently. However, when a reconstructed sample in the coding unit is used for intra prediction, the prediction unit or the conversion unit has a dependency relation between prediction units or conversion units included in the coding unit.
부호화 단위에 포함된 예측 단위는 인트라 예측 또는 인터 예측에 의하여 예측될 수 있다. 인트라 예측은 예측 단위 주변의 참조 샘플들을 이용하여 예측 단위의 샘플들을 예측하는 방법이다. 인터 예측은 현재 픽처가 참조하는 참조 픽처로부터 참조 샘플을 획득하여 예측 단위의 샘플들을 예측하는 방법이다.The prediction unit included in the coding unit can be predicted by intra prediction or inter prediction. Intra prediction is a method of predicting samples of a prediction unit using reference samples around the prediction unit. Inter prediction is a method of obtaining a reference sample from a reference picture referred to by the current picture and predicting the samples of the prediction unit.
부호화 단위 결정부(120)는 인트라 예측을 위하여 복수의 인트라 예측 방법을 예측 단위에 적용하여, 가장 효율적인 인트라 예측 방법을 선택할 수 있다. 인트라 예측 방법에는 DC 모드, 플래너(Planar) 모드, 수직 모드 및 수평 모드와 같은 방향성(directional) 모드 등이 포함된다.The encoding unit determination unit 120 can select a most efficient intra prediction method by applying a plurality of intra prediction methods to the prediction unit for intraprediction. Intra prediction methods include a DC mode, a planar mode, a directional mode such as a vertical mode and a horizontal mode, and the like.
인트라 예측은 부호화 단위 주변의 복원 샘플을 참조 샘플로 사용하는 경우 예측 단위마다 수행될 수 있다. 그러나 부호화 단위 내부의 복원 샘플이 참조 샘플로 사용될 경우, 부호화 단위 내부의 참조 샘플의 복원이 예측보다 우선되어야 하므로, 변환 단위의 변환 순서에 예측 단위의 예측 순서가 종속될 수 있다. 따라서 부호화 단위 내부의 복원 샘플이 참조 샘플로 사용될 경우, 예측 단위에 대하여 예측 단위에 대응되는 변환 단위들에 대한 인트라 예측 방법만이 결정되고, 실질적인 인트라 예측은 변환 단위마다 수행될 수 있다.Intra prediction can be performed for each prediction unit when a reconstructed sample around a coding unit is used as a reference sample. However, if a reconstruction sample in the coding unit is used as a reference sample, the prediction order of the prediction unit may be dependent on the conversion order of the conversion unit since the restoration of the reference sample in the coding unit should take precedence over the prediction. Therefore, when a reconstructed sample in a coding unit is used as a reference sample, only the intra prediction method for the conversion units corresponding to the prediction unit is determined for the prediction unit, and the actual intra prediction can be performed for each conversion unit.
부호화 단위 결정부(120)는 최적의 움직임 벡터 및 참조 픽처를 결정함으로써 가장 효율적인 인터 예측 방법을 선택할 수 있다. 부호화 단위 결정부(120)는 인터 예측을 위하여 현재 부호화 단위로부터 공간적, 시간적으로 이웃한 부호화 단위로부터 복수의 움직임 벡터 후보를 결정하고, 그 중 가장 효율적인 움직임 벡터를 움직임 벡터로 결정할 수 있다. 마찬가지로 현재 부호화 단위로부터 공간적, 시간적으로 이웃한 부호화 단위로부터 복수의 참조 픽처 후보를 결정하고, 그 중 가장 효율적인 참조 픽처를 결정할 수 있다. 실시 예에 따라 참조 픽처는 현재 픽처에 대하여 미리 결정된 참조 픽처 리스트들 중에서 결정될 수 있다. 실시 예에 따라 예측의 정확성을 위하여 복수의 움직임 벡터 후보 중 가장 효율적인 움직임 벡터를 예측 움직임 벡터로 결정하고, 예측 움직임 벡터를 보정하여 움직임 벡터를 결정할 수 있다. 인터 예측은 부호화 단위 내부의 예측 단위별마다 병렬적으로 수행될 수 있다.The coding unit determination unit 120 can select the most efficient inter prediction method by determining the optimal motion vector and the reference picture. The coding unit determination unit 120 may determine a plurality of motion vector candidates from spatial units temporally adjacent to the current coding unit for inter prediction and determine the most efficient motion vector among the motion vectors as a motion vector. Likewise, a plurality of reference picture candidates can be determined from the current and the temporally adjacent encoding units, and the most efficient reference picture can be determined. According to an embodiment, a reference picture may be determined from predetermined reference picture lists for the current picture. According to the embodiment, the most efficient motion vector among a plurality of motion vector candidates may be determined as a predictive motion vector for correct prediction, and a motion vector may be determined by correcting a predictive motion vector. Inter prediction can be performed in parallel for each prediction unit in an encoding unit.
부호화 단위 결정부(120)는 스킵 모드에 따라 움직임 벡터 및 참조 픽처를 나타내는 정보만을 획득하여 부호화 단위를 복원할 수 있다. 스킵 모드에 의하면 움직임 벡터 및 참조 픽처를 나타내는 정보를 제외하고 잔차 신호를 포함한 모든 부호화 정보가 생략된다. 잔차 신호가 생략되므로 예측의 정확성이 매우 높은 경우에 스킵 모드가 사용될 수 있다.The coding unit determination unit 120 may obtain only information indicating a motion vector and a reference picture according to the skip mode to restore the coding unit. According to the skip mode, all the coding information including the residual signal is omitted except for the information indicating the motion vector and the reference picture. Since the residual signal is omitted, the skip mode can be used when the accuracy of the prediction is very high.
예측 단위에 대한 예측 방법에 따라 사용되는 파티션 모드가 제한될 수 있다. 예를 들어 인트라 예측에는 2Nx2N, NxN 크기의 예측 단위에 대한 파티션 모드만이 적용되는 반면, 인터 예측에는 2Nx2N, 2NxN, Nx2N, NxN크기의 예측 단위에 대한 파티션 모드가 적용될 수 있다. 또한, 인터 예측의 스킵 모드에는 2Nx2N 크기의 예측 단위에 대한 파티션 모드만이 적용될 수 있다. 영상 부호화 장치(100)에서 각 예측 방법에 대하여 허용되는 파티션 모드는 부호화 효율에 따라 변경될 수 있다.The partitioning mode used may be limited depending on the prediction method for the prediction unit. For example, only the partition mode for a prediction unit of 2Nx2N, NxN size is applied to the intra prediction, whereas a partition mode for a prediction unit of 2Nx2N, 2NxN, Nx2N, NxN size can be applied to the inter prediction. In addition, only the partition mode for a prediction unit of 2Nx2N size can be applied to the skip mode of the inter prediction. The partition mode allowed for each prediction method in the image coding apparatus 100 can be changed according to the coding efficiency.
영상 부호화 장치(100)는 부호화 단위 또는 부호화 단위에 포함된 변환 단위를 기준으로 변환을 수행할 수 있다. 영상 부호화 장치(100)는 부호화 단위에 포함된 픽셀들에 대한 원본 값과 예측 값의 차이 값인 레지듀얼 데이터를 소정의 과정을 거쳐 변환시킬 수 있다. 예를 들어, 영상 부호화 장치(100)는 레지듀얼 데이터를 양자화 및 DCT/DST 변환을 통해 손실 압축을 할 수 있다. 또는 영상 부호화 장치(100)는 레지듀얼 데이터를 양자화 없이 무손실 압축을 할 수 있다.The image encoding apparatus 100 may perform conversion based on a conversion unit included in a coding unit or an encoding unit. The image encoding apparatus 100 may convert residual data, which is a difference value between an original value and a predicted value, of the pixels included in the encoding unit through a predetermined process. For example, the image encoding apparatus 100 may perform lossy compression through quantization and DCT / DST conversion of residual data. Or the image encoding apparatus 100 can perform lossless compression of the residual data without quantization.
영상 부호화 장치(100)는 양자화 및 변환에 가장 효율적인 변환 단위를 결정할 수 있다. 트리 구조에 따른 부호화 단위와 유사한 방식으로, 부호화 단위 내의 변환 단위도 재귀적으로 더 작은 크기의 변환 단위로 분할되면서, 부호화 단위의 레지듀얼 데이터가 변환 심도에 따라 트리 구조에 따른 변환 단위에 따라 구획될 수 있다. 그리고 영상 부호화 장치(100)는 결정된 변환 단위의 트리 구조에 따라 부호화 단위 및 변환 단위의 분할에 대한 변환 분할 정보를 생성할 수 있다.The image encoding apparatus 100 can determine the most efficient conversion unit for quantization and conversion. In a similar manner to the encoding unit according to the tree structure, the conversion unit in the encoding unit is also recursively divided into the conversion unit of smaller size, and the residual data of the encoding unit is divided according to the conversion depth according to the conversion depth. . Then, the image encoding apparatus 100 may generate conversion division information for division of the encoding unit and the conversion unit according to the determined tree structure of the conversion unit.
영상 부호화 장치(100)는 부호화 단위의 높이 및 너비가 분할하여 변환 단위에 이르기까지의 분할 횟수를 나타내는 변환 심도가 설정될 수 있다. 예를 들어, 크기 2Nx2N의 현재 부호화 단위의 변환 단위의 크기가 2Nx2N이라면 변환 심도 0, 변환 단위의 크기가 NxN이라면 변환 심도 1, 변환 단위의 크기가 N/2xN/2이라면 변환 심도 2로 설정될 수 있다. 즉, 변환 심도에 따라 트리 구조에 따른 변환 단위가 설정될 수 있다.The image coding apparatus 100 may be set to a conversion depth indicating the number of divisions from the height and width of the coding unit to the conversion unit. For example, if the size of the conversion unit of the current encoding unit of size 2Nx2N is 2Nx2N, the conversion depth is set to 0 if the conversion depth is 0, if the conversion unit size is NxN, and if the conversion unit size is N / 2xN / 2, . That is, a conversion unit according to the tree structure can be set according to the conversion depth.
결론적으로, 부호화 단위 결정부(120)는 복수의 인트라 예측 방법 및 인터 예측 방법 중 현재 예측 단위에 가장 효율적인 예측 방법을 결정한다. 그리고 부호화 단위 결정부(120)는 예측 결과에 따른 부호화 효율에 따라 예측 단위 결정 방식을 판단한다. 마찬가지로 부호화 단위 결정부(120)는 변환 결과에 따른 부호화 효율에 따라 변환 단위 결정 방식을 판단한다. 가장 효율적인 예측 단위와 변환 단위의 결정 방식에 따라 최종적으로 부호화 단위의 부호화 효율이 결정된다. 부호화 단위 결정부(120)는 각 심도별 부호화 단위의 부호화 효율에 따라 최대 부호화 단위의 계층 구조를 확정한다.Consequently, the coding unit determination unit 120 determines the most efficient prediction method for the current prediction unit among the plurality of intra prediction methods and inter prediction methods. The encoding unit determination unit 120 determines a prediction unit determination method according to the encoding efficiency according to the prediction result. Likewise, the encoding unit determination unit 120 determines the conversion unit determination method according to the encoding efficiency according to the conversion result. The coding efficiency of the coding unit is finally determined according to the most efficient prediction unit and the determination method of the conversion unit. The encoding unit determination unit 120 determines the hierarchical structure of the maximum encoding unit according to the encoding efficiency of each depth encoding unit.
부호화 단위 결정부(120)는 심도별 부호화 단위의 부호화 효율성, 예측 방법들의 예측 효율성 등을 라그랑지 곱(Lagrangian Multiplier) 기반의 율-왜곡 최적화 기법(Rate-Distortion Optimization)을 이용하여 측정할 수 있다.The coding unit determination unit 120 may measure the coding efficiency of the coding unit for each depth and the prediction efficiency of the prediction methods using Rate-Distortion Optimization based on a Lagrangian Multiplier .
부호화 단위 결정부(120)는 결정된 최대 부호화 단위의 계층 구조에 따라 부호화 단위의 심도별 분할 여부를 나타내는 분할 정보를 생성할 수 있다. 그리고 부호화 단위 결정부(120)는 분할이 완료된 부호화 단위에 대하여 예측 단위의 결정을 위한 파티션 모드 정보 및 변환 단위의 결정을 위한 변환 단위 분할 정보를 생성할 수 있다. 또한 부호화 단위 결정부(120)는 부호화 단위의 분할 방법이 2개 이상인 경우, 분할 방법을 나타내는 분할 형태 정보를 분할 정보와 함께 생성할 수 있다. 그리고 부호화 단위 결정부(120)는 예측 단위 및 변환 단위에 사용된 예측 방법 및 변환 방법에 관한 정보를 생성할 수 있다.The encoding unit determination unit 120 may generate division information indicating whether or not the encoding unit is divided according to a hierarchical structure of the determined maximum encoding unit. The encoding unit determination unit 120 may generate the partition mode information for determining a prediction unit and the conversion unit division information for determining a conversion unit for the divided encoding unit. The encoding unit determination unit 120 can generate the division type information indicating the division method together with the division information when the number of division methods of the encoding unit is two or more. The encoding unit determination unit 120 may generate information on the prediction method and the conversion method used in the prediction unit and the conversion unit.
출력부(130)는 최대 부호화 단위의 계층 구조에 따라 최대 부호화 단위 결정부(110) 및 부호화 단위 결정부(120)가 생성한 정보들을 비트스트림의 형태로 출력할 수 있다. The output unit 130 may output the information generated by the maximum encoding unit determination unit 110 and the encoding unit determination unit 120 in the form of a bit stream according to the hierarchical structure of the maximum encoding unit.
일 실시예에 따른 최대 부호화 단위의 트리 구조에 따른 부호화 단위, 예측 단위 및 변환 단위의 결정 방식에 대해서는, 도 3 내지 12를 참조하여 상세히 후술한다.A method of determining an encoding unit, a prediction unit, and a conversion unit according to a tree structure of a maximum encoding unit according to an embodiment will be described later in detail with reference to FIGS.
도 1b는 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 영상 복호화 장치(150)의 블록도를 도시한다.1B shows a block diagram of an image decoding apparatus 150 based on a coding unit according to a tree structure according to an embodiment.
영상 복호화 장치(150)는 수신부(160), 부호화 정보 추출부(170) 및 복호화부(180)를 포함한다.The image decoding apparatus 150 includes a receiving unit 160, an encoding information extracting unit 170, and a decoding unit 180. [
일 실시예에 따른 영상 복호화 장치(150)의 복호화 동작을 위한 부호화 단위, 심도, 예측 단위, 변환 단위, 각종 분할 정보 등 각종 용어의 정의는, 도 1 및 영상 부호화 장치(100)를 참조하여 전술한 바와 동일하다. 또한 영상 복호화 장치(150)의 목적이 영상 데이터의 복원인 바, 영상 부호화 장치(100)에서 사용된 다양한 부호화 방법들이 영상 복호화 장치(150)에 적용될 수 있다.Definitions of various terms such as an encoding unit, a depth, a prediction unit, a conversion unit, and various division information for a decoding operation of the image decoding apparatus 150 according to an embodiment are described with reference to FIG. 1 and the image encoding apparatus 100, . Also, since the object of the image decoding apparatus 150 is the restoration of the image data, various encoding methods used in the image encoding apparatus 100 can be applied to the image decoding apparatus 150.
수신부(160)는 부호화된 비디오에 대한 비트스트림을 수신하여 파싱한다. 부호화 정보 추출부(170)는 파싱된 비트스트림으로부터 최대 부호화 단위별로 복호화에 필요한 정보들을 추출하여 복호화부(180)에 제공한다. 부호화 정보 추출부(170)는 현재 픽처에 대한 헤더, 시퀀스 파라미터 세트 또는 픽처 파라미터 세트로부터 현재 픽처의 부호화 단위의 최대 크기에 관한 정보를 추출할 수 있다. The receiving unit 160 receives and parses the bitstream of the encoded video. The encoding information extracting unit 170 extracts information necessary for decoding for each maximum encoding unit from the parsed bit stream and provides the extracted information to the decoding unit 180. [ The encoding information extracting unit 170 can extract information on the maximum size of the encoding unit of the current picture from the header, sequence parameter set, or picture parameter set for the current picture.
또한, 부호화 정보 추출부(170)는 파싱된 비트스트림으로부터 최대 부호화 단위별로 트리 구조에 따른 부호화 단위들에 대한 최종 심도 및 분할정보를 추출한다. 추출된 최종 심도 및 분할정보는 복호화부(180)로 출력된다. 복호화부(180)는 최대 부호화 단위를 추출된 최종 심도 및 분할정보에 따라 분할하여 최대 부호화 단위의 트리 구조를 결정할 수 있다. In addition, the encoding information extracting unit 170 extracts the final depth and the division information for the encoding units according to the tree structure for each maximum encoding unit from the parsed bit stream. The extracted final depth and division information are output to the decoding unit 180. The decoding unit 180 can determine the tree structure of the maximum encoding unit by dividing the maximum encoding unit according to the extracted final depth and segmentation information.
부호화 정보 추출부(170)가 추출한 분할정보는, 영상 부호화 장치(100)에 의하여, 최소 부호화 오차를 발생시키는 것으로 결정된 트리 구조에 대한 분할정보다. 따라서, 영상 복호화 장치(150)는 최소 부호화 오차를 발생시키는 부호화 방식에 따라 데이터를 복호화하여 영상을 복원할 수 있다. The division information extracted by the encoding information extraction unit 170 is division information for a tree structure determined by the image encoding apparatus 100 to generate a minimum encoding error. Accordingly, the image decoding apparatus 150 can decode the image according to the encoding scheme that generates the minimum encoding error to recover the image.
부호화 정보 추출부(170)는 부호화 단위에 포함된 예측 단위 및 변환 단위와 같은 데이터 단위에 대한 분할 정보를 추출할 수 있다. 예를 들어, 부호화 정보 추출부(170)는 예측 단위에 대한 가장 효율적인 파티션 모드에 관한 정보를 추출할 수 있다. 그리고 부호화 정보 추출부(170)는 변환 단위에 있어서 가장 효율적인 트리 구조에 대한 변환 분할 정보를 추출할 수 있다.The encoding information extracting unit 170 can extract the division information for a data unit such as a prediction unit and a conversion unit included in the encoding unit. For example, the encoding information extracting unit 170 may extract the most efficient partition mode information for a prediction unit. The encoding information extracting unit 170 can extract the conversion division information for the most efficient tree structure in the conversion unit.
또한 부호화 정보 추출부(170)는 부호화 단위로부터 분할된 예측 단위들에 대하여 가장 효율적인 예측 방법에 대한 정보를 획득할 수 있다. 그리고 부호화 정보 추출부(170)는 부호화 단위로부터 분할된 변환 단위들에 대하여 가장 효율적인 변환 방법에 대한 정보를 획득할 수 있다.Also, the encoding information extracting unit 170 can acquire information on the most efficient prediction method for the prediction units divided from the encoding unit. The encoding information extracting unit 170 can obtain information on the most efficient conversion method for the conversion units divided from the encoding unit.
부호화 정보 추출부(170)는 영상 부호화 장치(100)의 출력부(130)에서 비트스트림을 구성하는 방식에 따라 비트스트림으로부터 정보를 추출한다.The encoding information extracting unit 170 extracts information from a bit stream according to a method of constructing a bit stream at the output unit 130 of the image encoding apparatus 100. [
복호화부(180)는 분할정보에 기초하여 최대 부호화 단위를 가장 효율적인 트리구조를 가진 부호화 단위들로 분할할 수 있다. 그리고 복호화부(180)는 파티션 모드에 관한 정보에 따라 부호화 단위를 예측 단위로 분할할 수 있다. 복호화부(180)는 변환 분할 정보에 따라 부호화 단위를 변환 단위로 분할할 수 있다.The decoding unit 180 can divide the maximum encoding unit into the encoding units having the most efficient tree structure based on the division information. The decoding unit 180 may divide the encoding unit into prediction units according to the information on the partition mode. The decoding unit 180 may divide the encoding unit into units of conversion according to the conversion division information.
복호화부(180)는 예측 단위를 예측 방법에 대한 정보에 따라 예측할 수 있다. 그리고 복호화부(180)는 변환 단위를 변환 방법에 대한 정보에 따라 픽셀의 원본 값과 예측 값의 차이에 해당하는 레지듀얼 데이터를 역양자화 및 역변환할 수 있다. 또한 복호화부(180)는 예측 단위의 예측 결과와 변환 단위의 변환 결과에 따라 부호화 단위의 픽셀들을 복원할 수 있다.The decoding unit 180 may predict a prediction unit according to prediction method information. The decoding unit 180 may dequantize and invert the residual data corresponding to the difference between the original value and the predicted value of the pixel according to the information on the conversion method of the conversion unit. Also, the decoding unit 180 may recover the pixels of the encoding unit according to the prediction result of the prediction unit and the conversion result of the conversion unit.
도 2는 일 실시예에 따라 영상 복호화 장치(150)가 현재 부호화 단위를 분할하여 적어도 하나의 부호화 단위를 결정하는 과정을 도시한다.FIG. 2 illustrates a process in which the image decoding apparatus 150 determines at least one encoding unit by dividing a current encoding unit according to an embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 블록 형태 정보를 이용하여 부호화 단위의 형태를 결정할 수 있고, 분할 형태 정보를 이용하여 부호화 단위가 어떤 형태로 분할되는지를 결정할 수 있다. 즉, 영상 복호화 장치(150)가 이용하는 블록 형태 정보가 어떤 블록 형태를 나타내는지에 따라 분할 형태 정보가 나타내는 부호화 단위의 분할 방법이 결정될 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may determine the type of an encoding unit using block type information, and may determine a type of an encoding unit to be divided using the type information. That is, the division method of the coding unit indicated by the division type information can be determined according to which block type the block type information used by the video decoding apparatus 150 represents.
일 실시예에 따라, 영상 복호화 장치(150)는 현재 부호화 단위가 정사각형 형태임을 나타내는 블록 형태 정보를 이용할 수 있다. 예를 들어 영상 복호화 장치(150)는 분할 형태 정보에 따라 정사각형의 부호화 단위를 분할하지 않을지, 수직으로 분할할지, 수평으로 분할할지, 4개의 부호화 단위로 분할할지 등을 결정할 수 있다. 도 2를 참조하면, 현재 부호화 단위(200)의 블록 형태 정보가 정사각형의 형태를 나타내는 경우, 복호화부(180)는 분할되지 않음을 나타내는 분할 형태 정보에 따라 현재 부호화 단위(200)와 동일한 크기를 가지는 부호화 단위(210a)를 분할하지 않거나, 소정의 분할방법을 나타내는 분할 형태 정보에 기초하여 분할된 부호화 단위(210b, 210c, 210d 등)를 결정할 수 있다. According to one embodiment, the image decoding apparatus 150 may use block type information indicating that the current encoding unit is a square type. For example, the image decoding apparatus 150 can determine whether to divide a square encoding unit according to division type information, vertically divide, horizontally divide, or divide into four encoding units. 2, if the block type information of the current encoding unit 200 indicates a square shape, the decoding unit 180 may calculate the size of the current encoding unit 200 according to the division type information indicating that the current block is not divided It is possible to determine the divided coding units 210b, 210c, and 210d based on the division type information indicating the predetermined division method or not dividing the coding unit 210a.
도 2를 참조하면 영상 복호화 장치(150)는 일 실시예에 따라 수직방향으로 분할됨을 나타내는 분할 형태 정보에 기초하여 현재 부호화 단위(200)를 수직방향으로 분할한 두개의 부호화 단위(210b)를 결정할 수 있다. 영상 복호화 장치(150)는 수평방향으로 분할됨을 나타내는 분할 형태 정보에 기초하여 현재 부호화 단위(200)를 수평방향으로 분할한 두개의 부호화 단위(210c)를 결정할 수 있다. 영상 복호화 장치(150)는 수직방향 및 수평방향으로 분할됨을 나타내는 분할 형태 정보에 기초하여 현재 부호화 단위(200)를 수직방향 및 수평방향으로 분할한 네개의 부호화 단위(210d)를 결정할 수 있다. 다만 정사각형의 부호화 단위가 분할될 수 있는 분할 형태는 상술한 형태로 한정하여 해석되어서는 안되고, 분할 형태 정보가 나타낼 수 있는 다양한 형태가 포함될 수 있다. 정사각형의 부호화 단위가 분할되는 소정의 분할 형태들은 이하에서 다양한 실시예를 통해 구체적으로 설명하도록 한다. Referring to FIG. 2, the image decoding apparatus 150 determines two encoding units 210b, which are obtained by dividing the current encoding unit 200 in the vertical direction, based on the division type information indicating that the image is divided vertically according to an embodiment . The image decoding apparatus 150 can determine two encoding units 210c in which the current encoding unit 200 is horizontally divided based on the division type information indicating that the image is divided in the horizontal direction. The image decoding apparatus 150 can determine the four coding units 210d obtained by dividing the current coding unit 200 in the vertical direction and the horizontal direction based on the division type information indicating that the coding unit 200 is divided in the vertical direction and the horizontal direction. However, the division type in which the square coding unit can be divided should not be limited to the above-mentioned form, but may include various forms in which the division type information can be represented. The predetermined divisional form in which the square encoding unit is divided will be described in detail by way of various embodiments below.
도 3은 일 실시예에 따라 영상 복호화 장치(150)가 비-정사각형의 형태인 부호화 단위를 분할하여 적어도 하나의 부호화 단위를 결정하는 과정을 도시한다.FIG. 3 illustrates a process in which the image decoding apparatus 150 determines at least one encoding unit by dividing a non-square encoding unit according to an embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 현재 부호화 단위가 비-정사각형 형태임을 나타내는 블록 형태 정보를 이용할 수 있다. 영상 복호화 장치(150)는 분할 형태 정보에 따라 비-정사각형의 현재 부호화 단위를 분할하지 않을지 소정의 방법으로 분할할지 여부를 결정할 수 있다. 도 3을 참조하면, 현재 부호화 단위(300 또는 350)의 블록 형태 정보가 비-정사각형의 형태를 나타내는 경우, 영상 복호화 장치(150)는 분할되지 않음을 나타내는 분할 형태 정보에 따라 현재 부호화 단위(300 또는 350)와 동일한 크기를 가지는 부호화 단위(310 또는 360)를 분할하지 않거나, 소정의 분할방법을 나타내는 분할 형태 정보에 따라 기초하여 분할된 부호화 단위(320a, 320b, 330a, 330b, 330c, 370a, 370b, 380a, 380b, 380c)를 결정할 수 있다. 비-정사각형의 부호화 단위가 분할되는 소정의 분할 방법은 이하에서 다양한 실시예를 통해 구체적으로 설명하도록 한다.According to an exemplary embodiment, the image decoding apparatus 150 may use block type information indicating that the current encoding unit is a non-square format. The image decoding apparatus 150 can determine whether to divide the current non-square coding unit according to the division type information or not by a predetermined method. 3, if the block type information of the current encoding unit 300 or 350 indicates a non-square shape, the image decoding apparatus 150 determines whether the current encoding unit 300 320b, 330a, 330b, 330c, 370a, and 330b based on the division type information indicating a predetermined division method, or the encoding units 310 and 360 having the same size as the encoding units 310 and 360, 370b, 380a, 380b, and 380c. The predetermined division method in which the non-square coding unit is divided will be described in detail through various embodiments.
일 실시예에 따라 영상 복호화 장치(150)는 분할 형태 정보를 이용하여 부호화 단위가 분할되는 형태를 결정할 수 있고, 이 경우 분할 형태 정보는 부호화 단위가 분할되어 생성되는 적어도 하나의 부호화 단위의 개수를 나타낼 수 있다. 도 3을 참조하면 분할 형태 정보가 두개의 부호화 단위로 현재 부호화 단위(300 또는 350)가 분할되는 것을 나타내는 경우, 영상 복호화 장치(150)는 분할 형태 정보에 기초하여 현재 부호화 단위(300 또는 350)를 분할하여 현재 부호화 단위에 포함되는 두개의 부호화 단위(320a, 320b, 또는 370a, 370b)를 결정할 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may determine the type in which the coding unit is divided using the division type information. In this case, the division type information indicates the number of at least one coding unit generated by dividing the coding unit . 3, if the division type information indicates that the current encoding unit 300 or 350 is divided into two encoding units, the image decoding apparatus 150 decodes the current encoding unit 300 or 350 based on the division type information, To determine the two encoding units 320a, 320b, or 370a, 370b included in the current encoding unit.
일 실시예에 따라 영상 복호화 장치(150)가 분할 형태 정보에 기초하여 비-정사각형의 형태의 현재 부호화 단위(300 또는 350)를 분할하는 경우, 비-정사각형의 현재 부호화 단위(300 또는 350)의 긴 변의 위치를 고려하여 현재 부호화 단위를 분할할 수 있다. 예를 들면, 영상 복호화 장치(150)는 현재 부호화 단위(300 또는 350)의 형태를 고려하여 현재 부호화 단위(300 또는 350)의 긴 변을 분할하는 방향으로 현재 부호화 단위(300 또는 350)를 분할하여 복수개의 부호화 단위를 결정할 수 있다. When the video decoding apparatus 150 divides the current coding unit 300 or 350 in the form of non-square based on the division type information according to the embodiment, the non-square current coding unit 300 or 350 The current encoding unit can be divided in consideration of the position of the long side. For example, the image decoding apparatus 150 divides the current encoding unit 300 or 350 in the direction of dividing the long side of the current encoding unit 300 or 350 in consideration of the shape of the current encoding unit 300 or 350 So that a plurality of encoding units can be determined.
일 실시예에 따라, 분할 형태 정보가 홀수개의 블록으로 부호화 단위를 분할하는 것을 나타내는 경우, 영상 복호화 장치(150)는 현재 부호화 단위(300 또는 350)에 포함되는 홀수개의 부호화 단위를 결정할 수 있다. 예를 들면, 분할 형태 정보가 3개의 부호화 단위로 현재 부호화 단위(300 또는 350)를 분할하는 것을 나타내는 경우, 영상 복호화 장치(150)는 현재 부호화 단위(300 또는 350)를 3개의 부호화 단위(330a, 330b, 330c, 380a, 380b, 380c)로 분할할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 현재 부호화 단위(300 또는 350)에 포함되는 홀수개의 부호화 단위를 결정할 수 있으며, 결정된 부호화 단위들의 크기 모두가 동일하지는 않을 수 있다. 예를 들면, 결정된 홀수개의 부호화 단위(330a, 330b, 330c, 380a, 380b, 380c) 중 소정의 부호화 단위(330b 또는 380b)의 크기는 다른 부호화 단위(330a, 330c, 380a, 380c)들과는 다른 크기를 가질 수도 있다. 즉, 현재 부호화 단위(300 또는 350)가 분할되어 결정될 수 있는 부호화 단위는 복수의 종류의 크기를 가질 수 있다. According to an embodiment, when the division type information indicates that an encoding unit is divided into an odd number of blocks, the image decoding apparatus 150 may determine an odd number of encoding units included in the current encoding unit 300 or 350. [ For example, when the division type information indicates that the current encoding unit 300 or 350 is divided into three encoding units, the image decoding device 150 divides the current encoding unit 300 or 350 into three encoding units 330a , 330b, 330c, 380a, 380b, and 380c. According to an exemplary embodiment, the image decoding apparatus 150 may determine an odd number of encoding units included in the current encoding unit 300 or 350, and the sizes of the determined encoding units may not be the same. For example, the size of the predetermined encoding unit 330b or 380b among the determined odd number of encoding units 330a, 330b, 330c, 380a, 380b, and 380c is different from the size of the other encoding units 330a, 330c, 380a, and 380c . That is, the encoding unit that can be determined by dividing the current encoding unit 300 or 350 may have a plurality of types of sizes.
일 실시예에 따라 분할 형태 정보가 홀수개의 블록으로 부호화 단위가 분할되는 것을 나타내는 경우, 영상 복호화 장치(150)는 현재 부호화 단위(300 또는 350)에 포함되는 홀수개의 부호화 단위를 결정할 수 있고, 나아가 영상 복호화 장치(150)는 분할하여 생성되는 홀수개의 부호화 단위들 중 적어도 하나의 부호화 단위에 대하여 소정의 제한을 둘 수 있다. 도 3을 참조하면 영상 복호화 장치(150)는 현재 부호화 단위(300 또는 350)가 분할되어 생성된 3개의 부호화 단위(330a, 330b, 330c, 380a, 380b, 380c)들 중 중앙에 위치하는 부호화 단위(330b, 380b)에 대한 복호화 과정을 다른 부호화 단위(330a, 330c, 380a, 380c)와 다르게 할 수 있다. 예를 들면, 영상 복호화 장치(150)는 중앙에 위치하는 부호화 단위(330b, 380b)에 대하여는 다른 부호화 단위(330a, 330c, 380a, 380c)와 달리 더 이상 분할되지 않도록 제한하거나, 소정의 횟수만큼만 분할되도록 제한할 수 있다.According to an embodiment, when the division type information indicates that an encoding unit is divided into an odd number of blocks, the image decoding apparatus 150 can determine an odd number of encoding units included in the current encoding unit 300 or 350, The image decoding apparatus 150 may limit the encoding unit of at least one of odd number of encoding units generated by division. Referring to FIG. 3, the image decoding apparatus 150 includes a coding unit 330a, 330b, 330c, 380a, 380b, and 380c generated by dividing a current coding unit 300 or 350, (330b, 380b) may be different from the other encoding units (330a, 330c, 380a, 380c). For example, the image decoding apparatus 150 may restrict the encoding units 330b and 380b positioned at the center to be not further divided, or may be limited to a predetermined number of times, differently from other encoding units 330a, 330c, 380a, and 380c It can be limited to be divided.
도 4는 일 실시예에 따라 영상 복호화 장치(150)가 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 부호화 단위를 분할하는 과정을 도시한다.FIG. 4 illustrates a process in which the image decoding apparatus 150 divides an encoding unit based on at least one of block type information and division type information according to an embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 정사각형 형태의 제1 부호화 단위(400)를 부호화 단위들로 분할하거나 분할하지 않는 것으로 결정할 수 있다. 일 실시예에 따라 분할 형태 정보가 수평 방향으로 제1 부호화 단위(400)를 분할하는 것을 나타내는 경우, 영상 복호화 장치(150)는 제1 부호화 단위(400)를 수평 방향으로 분할하여 제2 부호화 단위(410)를 결정할 수 있다. 일 실시예에 따라 이용되는 제1 부호화 단위, 제2 부호화 단위, 제3 부호화 단위는 부호화 단위 간의 분할 전후 관계를 이해하기 위해 이용된 용어이다. 예를 들면, 제1 부호화 단위를 분할하면 제2 부호화 단위가 결정될 수 있고, 제2 부호화 단위가 분할되면 제3 부호화 단위가 결정될 수 있다. 이하에서는 이용되는 제1 부호화 단위, 제2 부호화 단위 및 제3 부호화 단위의 관계는 상술한 특징에 따르는 것으로 이해될 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may determine that the first encoding unit 400 in the form of a square is not divided or divided into encoding units based on at least one of the block type information and the division type information. According to one embodiment, when the division type information indicates that the first encoding unit 400 is divided in the horizontal direction, the image decoding apparatus 150 divides the first encoding unit 400 in the horizontal direction, (410). The first encoding unit, the second encoding unit, and the third encoding unit used according to an embodiment are terms used to understand the relation before and after the division between encoding units. For example, if the first encoding unit is divided, the second encoding unit can be determined, and if the second encoding unit is divided, the third encoding unit can be determined. Hereinafter, the relationship between the first coding unit, the second coding unit and the third coding unit used can be understood to be in accordance with the above-mentioned characteristic.
일 실시예에 따라 영상 복호화 장치(150)는 결정된 제2 부호화 단위(410)를 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 부호화 단위들로 분할하거나 분할하지 않는 것으로 결정할 수 있다. 도 4를 참조하면 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제1 부호화 단위(400)를 분할하여 결정된 비-정사각형의 형태의 제2 부호화 단위(410)를 적어도 하나의 제3 부호화 단위(420a, 420b, 420c, 420d 등)로 분할하거나 제2 부호화 단위(410)를 분할하지 않을 수 있다. 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나를 획득할 수 있고 영상 복호화 장치(150)는 획득한 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제1 부호화 단위(400)를 분할하여 다양한 형태의 복수개의 제2 부호화 단위(예를 들면, 410)를 분할할 수 있으며, 제2 부호화 단위(410)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제1 부호화 단위(400)가 분할된 방식에 따라 분할될 수 있다. 일 실시예에 따라, 제1 부호화 단위(400)가 제1 부호화 단위(400)에 대한 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제2 부호화 단위(410)로 분할된 경우, 제2 부호화 단위(410) 역시 제2 부호화 단위(410)에 대한 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제3 부호화 단위(예를 들면, 420a, 420b, 420c, 420d 등)으로 분할될 수 있다. 즉, 부호화 단위는 부호화 단위 각각에 관련된 분할 형태 정보 및 블록 형태 정보 중 적어도 하나에 기초하여 재귀적으로 분할될 수 있다. 부호화 단위의 재귀적 분할에 이용될 수 있는 방법에 대하여는 다양한 실시예를 통해 후술하도록 한다.According to one embodiment, the image decoding apparatus 150 may determine that the determined second encoding unit 410 is not divided or divided into encoding units based on at least one of the block type information and the division type information. Referring to FIG. 4, the image decoding apparatus 150 includes a second coding unit 410 of a non-square shape determined by dividing a first coding unit 400 based on at least one of block type information and division type information It may be divided into at least one third encoding unit 420a, 420b, 420c, 420d, or the like, or the second encoding unit 410 may not be divided. The image decoding apparatus 150 may obtain at least one of the block type information and the division type information and the image decoding apparatus 150 may acquire at least one of the block type information and the division type information, The second encoding unit 410 may divide a plurality of second encoding units (for example, 410) of various types into a first encoding unit 410 and a second encoding unit 410 The unit 400 can be divided according to the division method. According to one embodiment, when the first coding unit 400 is divided into the second coding units 410 based on at least one of the block type information and the division type information for the first coding unit 400, The encoding unit 410 may also be divided into a third encoding unit (e.g., 420a, 420b, 420c, 420d, etc.) based on at least one of the block type information and the division type information for the second encoding unit 410 have. That is, an encoding unit can be recursively divided based on at least one of division type information and block type information associated with each encoding unit. A method which can be used for recursive division of an encoding unit will be described later in various embodiments.
일 실시예에 따라 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제3 부호화 단위(420a, 420b, 420c, 420d 등) 각각을 부호화 단위들로 분할하거나 제2 부호화 단위(410)를 분할하지 않는 것으로 결정할 수 있다. 영상 복호화 장치(150)는 일 실시예에 따라 비-정사각형 형태의 제2 부호화 단위(410)를 홀수개의 제3 부호화 단위(420b, 420c, 420d)로 분할할 수 있다. 영상 복호화 장치(150)는 홀수개의 제3 부호화 단위(420b, 420c, 420d) 중 소정의 제3 부호화 단위에 대하여 소정의 제한을 둘 수 있다. 예를 들면 영상 복호화 장치(150)는 홀수개의 제3 부호화 단위(420b, 420c, 420d) 중 가운데에 위치하는 부호화 단위(420c)에 대하여는 더 이상 분할되지 않는 것으로 제한하거나 또는 설정 가능한 횟수로 분할되어야 하는 것으로 제한할 수 있다. 도 4를 참조하면, 영상 복호화 장치(150)는 비-정사각형 형태의 제2 부호화 단위(410)에 포함되는 홀수개의 제3 부호화 단위(420b, 420c, 420d)들 중 가운데에 위치하는 부호화 단위(420c)는 더 이상 분할되지 않거나, 소정의 분할 형태로 분할(예를 들면 4개의 부호화 단위로만 분할하거나 제2 부호화 단위(410)가 분할된 형태에 대응하는 형태로 분할)되는 것으로 제한하거나, 소정의 횟수로만 분할(예를 들면 n회만 분할, n>0)하는 것으로 제한할 수 있다. 다만 가운데에 위치한 부호화 단위(420c)에 대한 상기 제한은 단순한 실시예들에 불과하므로 상술한 실시예들로 제한되어 해석되어서는 안되고, 가운데에 위치한 부호화 단위(420c)가 다른 부호화 단위(420b, 420d)와 다르게 복호화 될 수 있는 다양한 제한들을 포함하는 것으로 해석되어야 한다.According to one embodiment, the image decoding apparatus 150 divides each of the third encoding units 420a, 420b, 420c, and 420d into units of encoding based on at least one of the block type information and the division type information, It can be determined that the unit 410 is not divided. The image decoding apparatus 150 may divide the second encoding unit 410 in the non-square form into an odd number of third encoding units 420b, 420c and 420d according to an embodiment. The image decoding apparatus 150 may set a predetermined restriction on a predetermined third encoding unit among odd numbered third encoding units 420b, 420c, and 420d. For example, the image decoding apparatus 150 may limit the encoding unit 420c located in the middle among the odd-numbered third encoding units 420b, 420c, and 420d to no longer be divided or be divided into a set number of times . Referring to FIG. 4, the image decoding apparatus 150 includes an encoding unit (not shown) located in the middle among the odd third encoding units 420b, 420c, and 420d included in the second encoding unit 410 in the non- 420c are not further divided or are limited to being divided into a predetermined division form (for example, divided into four coding units or divided into a form corresponding to a form in which the second coding units 410 are divided) (For example, dividing only n times, n > 0). The above restriction on the encoding unit 420c positioned at the center is merely an example and should not be construed to be limited to the above embodiments and the encoding unit 420c positioned at the center is not limited to the other encoding units 420b and 420d Quot;), < / RTI > which can be decoded differently.
일 실시예에 따라 영상 복호화 장치(150)는 현재 부호화 단위를 분할하기 위해 이용되는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나를 현재 부호화 단위 내의 소정의 위치에서 획득할 수 있다. The image decoding apparatus 150 may obtain at least one of the block type information and the division type information used for dividing the current encoding unit at a predetermined position in the current encoding unit according to an embodiment.
도 13은 일 실시예에 따라 영상 복호화 장치(150)가 홀수개의 부호화 단위들 중 소정의 부호화 단위를 결정하기 위한 방법을 도시한다. 도 13을 참조하면, 현재 부호화 단위(1300)의 블록 형태 정보 및 분할 형태 정보 중 적어도 하나는 현재 부호화 단위(1300)에 포함되는 복수개의 샘플 중 소정 위치의 샘플(예를 들면, 가운데에 위치하는 샘플(1340))에서 획득될 수 있다. 다만 이러한 블록 형태 정보 및 분할 형태 정보 중 적어도 하나가 획득될 수 있는 현재 부호화 단위(1300) 내의 소정 위치가 도 13에서 도시하는 가운데 위치로 한정하여 해석되어서는 안되고, 소정 위치에는 현재 부호화 단위(1300)내에 포함될 수 있는 다양한 위치(예를 들면, 최상단, 최하단, 좌측, 우측, 좌측상단, 좌측하단, 우측상단 또는 우측하단 등)가 포함될 수 있는 것으로 해석되어야 한다. 영상 복호화 장치(150)는 소정 위치로부터 획득되는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나를 획득하여 현재 부호화 단위를 다양한 형태 및 크기의 부호화 단위들로 분할하거나 분할하지 않는 것으로 결정할 수 있다.FIG. 13 illustrates a method for an image decoding apparatus 150 to determine a predetermined encoding unit among odd number of encoding units according to an embodiment. 13, at least one of the block type information and the division type information of the current encoding unit 1300 is a sample of a predetermined position among a plurality of samples included in the current encoding unit 1300 (for example, Sample 1340). However, the predetermined position in the current coding unit 1300 in which at least one of the block type information and the division type information can be obtained should not be limited to the middle position shown in FIG. 13, and the current coding unit 1300 (E.g., top, bottom, left, right, top left, bottom left, top right or bottom right, etc.) The image decoding apparatus 150 may determine that the current encoding unit is not divided or divided into the encoding units of various types and sizes by acquiring at least one of the block type information and the division type information obtained from the predetermined position.
일 실시예에 따라 영상 복호화 장치(150)는 현재 부호화 단위가 소정의 개수의 부호화 단위들로 분할된 경우 그 중 하나의 부호화 단위를 선택할 수 있다. 복수개의 부호화 단위들 중 하나를 선택하기 위한 방법은 다양할 수 있으며, 이러한 방법들에 대한 설명은 이하의 다양한 실시예를 통해 후술하도록 한다.According to an exemplary embodiment, when the current encoding unit is divided into a predetermined number of encoding units, the image decoding apparatus 150 may select one of the encoding units. The method for selecting one of the plurality of encoding units may be various, and description of these methods will be described later in various embodiments.
일 실시예에 따라 영상 복호화 장치(150) 는 현재 부호화 단위를 복수개의 부호화 단위들로 분할하고, 소정 위치의 부호화 단위를 결정할 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may divide the current encoding unit into a plurality of encoding units and determine a predetermined encoding unit.
도 5은 일 실시예에 따라 영상 복호화 장치(150)가 홀수개의 부호화 단위들 중 소정 위치의 부호화 단위를 결정하기 위한 방법을 도시한다.FIG. 5 illustrates a method for an image decoding apparatus 150 to determine an encoding unit of a predetermined position among odd number of encoding units according to an embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 홀수개의 부호화 단위들 중 가운데에 위치하는 부호화 단위를 결정하기 위하여 홀수개의 부호화 단위들 각각의 위치를 나타내는 정보를 이용할 수 있다. 도 5을 참조하면, 영상 복호화 장치(150)는 현재 부호화 단위(500)를 분할하여 홀수개의 부호화 단위들(520a, 520b, 520c)을 결정할 수 있다. 영상 복호화 장치(150)는 홀수개의 부호화 단위들(520a, 520b, 520c)의 위치에 대한 정보를 이용하여 가운데 부호화 단위(520b)를 결정할 수 있다. 예를 들면 영상 복호화 장치(150)는 부호화 단위들(520a, 520b, 520c)에 포함되는 소정의 샘플의 위치를 나타내는 정보에 기초하여 부호화 단위들(520a, 520b, 520c)의 위치를 결정함으로써 가운데에 위치하는 부호화 단위(520b)를 결정할 수 있다. 구체적으로, 영상 복호화 장치(150)는 부호화 단위들(520a, 520b, 520c)의 좌측 상단의 샘플(530a, 530b, 530c)의 위치를 나타내는 정보에 기초하여 부호화 단위(520a, 520b, 520c)의 위치를 결정함으로써 가운데에 위치하는 부호화 단위(520b)를 결정할 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may use information indicating positions of odd-numbered encoding units in order to determine an encoding unit located in the middle among odd-numbered encoding units. Referring to FIG. 5, the image decoding apparatus 150 may determine an odd number of encoding units 520a, 520b, and 520c by dividing the current encoding unit 500. FIG. The image decoding apparatus 150 can determine the center encoding unit 520b by using information on the positions of the odd number of encoding units 520a, 520b and 520c. For example, the image decoding apparatus 150 determines the positions of the encoding units 520a, 520b, and 520c based on information indicating the positions of predetermined samples included in the encoding units 520a, 520b, and 520c, The encoding unit 520b located in the encoding unit 520 can be determined. In detail, the video decoding apparatus 150 decodes the coding units 520a, 520b, and 520c based on information indicating the positions of the upper left samples 530a, 530b, and 530c of the coding units 520a, By determining the position, the coding unit 520b located in the center can be determined.
일 실시예에 따라 부호화 단위(520a, 520b, 520c)에 각각 포함되는 좌측 상단의 샘플(530a, 530b, 530c)의 위치를 나타내는 정보는 부호화 단위(520a, 520b, 520c)의 픽처 내에서의 위치 또는 좌표에 대한 정보를 포함할 수 있다. 일 실시예에 따라 부호화 단위(520a, 520b, 520c)에 각각 포함되는 좌측 상단의 샘플(530a, 530b, 530c)의 위치를 나타내는 정보는 현재 부호화 단위(500)에 포함되는 부호화단위(520a, 520b, 520c)들의 너비 또는 높이를 나타내는 정보를 포함할 수 있고, 이러한 너비 또는 높이는 부호화 단위(520a, 520b, 520c)의 픽처 내에서의 좌표 간의 차이를 나타내는 정보에 해당할 수 있다. 즉, 영상 복호화 장치(150)는 부호화 단위(520a, 520b, 520c)의 픽처 내에서의 위치 또는 좌표에 대한 정보를 직접 이용하거나 좌표간의 차이값에 대응하는 부호화 단위의 너비 또는 높이에 대한 정보를 이용함으로써 가운데에 위치하는 부호화 단위(520b)를 결정할 수 있다. Information indicating the positions of the upper left samples 530a, 530b, and 530c included in the coding units 520a, 520b, and 520c according to one embodiment is a position in the picture of the coding units 520a, 520b, and 520c Or information about the coordinates. Information indicating the positions of the upper left samples 530a, 530b, and 530c included in the coding units 520a, 520b, and 520c according to one embodiment is stored in the coding units 520a and 520b included in the current coding unit 500 , 520c, and the width or height may correspond to information indicating the difference between the coordinates of the coding units 520a, 520b, and 520c in the picture. That is, the image decoding apparatus 150 directly uses the information on the positions or coordinates of the coding units 520a, 520b and 520c in the pictures or information on the width or height of the coding units corresponding to the difference between the coordinates The encoding unit 520b located in the center can be determined.
일 실시예에 따라, 상단 부호화 단위(520a)의 좌측 상단의 샘플(530a)의 위치를 나타내는 정보는 (xa, ya) 좌표를 나타낼 수 있고, 가운데 부호화 단위(520b)의 좌측 상단의 샘플(530b)의 위치를 나타내는 정보는 (xb, yb) 좌표를 나타낼 수 있고, 하단 부호화 단위(520c)의 좌측 상단의 샘플(530c)의 위치를 나타내는 정보는 (xc, yc) 좌표를 나타낼 수 있다. 영상 복호화 장치(150)는 부호화 단위(520a, 520b, 520c)에 각각 포함되는 좌측 상단의 샘플(530a, 530b, 530c)의 좌표를 이용하여 가운데 부호화 단위(520b)를 결정할 수 있다. 예를 들면, 좌측 상단의 샘플(530a, 530b, 530c)의 좌표를 오름차순 또는 내림차순으로 정렬하였을 때, 가운데에 위치하는 샘플(530b)의 좌표인 (xb, yb)를 포함하는 부호화 단위(520b)를 현재 부호화 단위(500)가 분할되어 결정된 부호화 단위(520a, 520b, 520c) 중 가운데에 위치하는 부호화 단위로 결정할 수 있다. 다만 좌측 상단의 샘플(530a, 530b, 530c)의 위치를 나타내는 좌표는 픽처 내에서의 절대적인 위치를 나타내는 좌표를 나타낼 수 있고, 나아가 상단 부호화 단위(520a)의 좌측 상단의 샘플(530a)의 위치를 기준으로, 가운데 부호화 단위(520b)의 좌측 상단의 샘플(530b)의 상대적 위치를 나타내는 정보인 (dxb, dyb)좌표, 하단 부호화 단위(520c)의 좌측 상단의 샘플(530c)의 상대적 위치를 나타내는 정보인 (dxc, dyc)좌표를 이용할 수도 있다. 또한 부호화 단위에 포함되는 샘플의 위치를 나타내는 정보로서 해당 샘플의 좌표를 이용함으로써 소정 위치의 부호화 단위를 결정하는 방법이 상술한 방법으로 한정하여 해석되어서는 안되고, 샘플의 좌표를 이용할 수 있는 다양한 산술적 방법으로 해석되어야 한다.The information indicating the position of the upper left sample 530a of the upper coding unit 520a may indicate the coordinates of (xa, ya) and the upper left sample 530b of the middle coding unit 520b May indicate the coordinates of (xb, yb), and information indicating the position of the upper left sample 530c of the lower coding unit 520c may indicate (xc, yc) coordinates. The image decoding apparatus 150 can determine the center encoding unit 520b using the coordinates of the upper left samples 530a, 530b, and 530c included in the encoding units 520a, 520b, and 520c. For example, when the coordinates of the upper left samples 530a, 530b, and 530c are arranged in ascending or descending order, the coding unit 520b including (xb, yb) coordinates of the sample 530b positioned at the center, 520b, and 520c determined by dividing the current encoding unit 500 by a coding unit located in the middle of the encoding units 520a, 520b, and 520c. However, the coordinates indicating the positions of the upper left samples 530a, 530b, and 530c may indicate the coordinates indicating the absolute position in the picture, and the position of the upper left sample unit 530a of the upper coding unit 520a may be (Dxb, dyb), which is information indicating the relative position of the upper left sample 530b of the middle coding unit 520b, and the relative position of the upper left sample 530c of the lower coding unit 520c Information dyn (dxc, dyc) coordinates may also be used. Also, the method of determining the coding unit at a predetermined position by using the coordinates of the sample as information indicating the position of the sample included in the coding unit should not be limited to the above-described method, and various arithmetic Should be interpreted as a method.
일 실시예에 따라 영상 복호화 장치(150)는 현재 부호화 단위(500)를 복수개의 부호화 단위(520a, 520b, 520c)로 분할할 수 있고, 부호화 단위(520a, 520b, 520c)들 중 소정의 기준에 따라 부호화 단위를 선택할 수 있다. 예를 들면, 영상 복호화 장치(150)는 부호화 단위(520a, 520b, 520c) 중 크기가 다른 부호화 단위(520b)를 선택할 수 있다.According to one embodiment, the image decoding apparatus 150 may divide the current encoding unit 500 into a plurality of encoding units 520a, 520b, and 520c, and may encode a predetermined one of the encoding units 520a, 520b, and 520c The encoding unit can be selected. For example, the image decoding apparatus 150 can select an encoding unit 520b having a different size from the encoding units 520a, 520b, and 520c.
일 실시예에 따라 영상 복호화 장치(150)는 상단 부호화 단위(520a)의 좌측 상단의 샘플(530a)의 위치를 나타내는 정보인 (xa, ya) 좌표, 가운데 부호화 단위(520b)의 좌측 상단의 샘플(530b)의 위치를 나타내는 정보인 (xb, yb) 좌표, 하단 부호화 단위(520c)의 좌측 상단의 샘플(530c)의 위치를 나타내는 정보인 (xc, yc) 좌표를 이용하여 부호화 단위(520a, 520b, 520c) 각각의 너비 또는 높이를 결정할 수 있다. 영상 복호화 장치(150)는 부호화 단위(520a, 520b, 520c)의 위치를 나타내는 좌표인 (xa, ya), (xb, yb), (xc, yc)를 이용하여 부호화 단위(520a, 520b, 520c) 각각의 크기를 결정할 수 있다. According to one embodiment, the image decoding apparatus 150 includes a (xa, ya) coordinate which is information indicating the position of the upper left sample 530a of the upper encoding unit 520a, (Xc, yc) coordinates, which are information indicating the positions of the upper-stage coding unit 530b and the upper-left sample unit 530c of the lower- stage coding unit 520c, 520b, and 520c, respectively. The video decoding apparatus 150 encodes the video data in units of encoding units 520a, 520b, and 520c using the coordinates (xa, ya), (xb, yb), (xc, yc) indicating the positions of the encoding units 520a, 520b, ) Can be determined.
일 실시예에 따라, 영상 복호화 장치(150)는 상단 부호화 단위(520a)의 너비를 xb-xa로 결정할 수 있고 높이를 yb-ya로 결정할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 가운데 부호화 단위(520b)의 너비를 xc-xb로 결정할 수 있고 높이를 yc-yb로 결정할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 하단 부호화 단위의 너비 또는 높이는 현재 부호화 단위의 너비 또는 높이와 상단 부호화 단위(520a) 및 가운데 부호화 단위(520b)의 너비 및 높이를 이용하여 결정할 수 있다. 영상 복호화 장치(150)는 결정된 부호화 단위(520a, 520b, 520c)의 너비 및 높이에 기초하여 다른 부호화 단위와 다른 크기를 갖는 부호화 단위를 결정할 수 있다. 도 5를 참조하면, 영상 복호화 장치(150)는 상단 부호화 단위(520a) 및 하단 부호화 단위(520c)의 크기와 다른 크기를 가지는 가운데 부호화 단위(520b)를 소정 위치의 부호화 단위로 결정할 수 있다. 다만 상술한 영상 복호화 장치(150)가 다른 부호화 단위와 다른 크기를 갖는 부호화 단위를 결정하는 과정은 샘플 좌표에 기초하여 결정되는 부호화 단위의 크기를 이용하여 소정 위치의 부호화 단위를 결정하는 일 실시예에 불과하므로, 소정의 샘플 좌표에 따라 결정되는 부호화 단위의 크기를 비교하여 소정 위치의 부호화 단위를 결정하는 다양한 과정이 이용될 수 있다. According to an embodiment, the image decoding apparatus 150 can determine the width of the upper encoding unit 520a as xb-xa and the height as yb-ya. According to an embodiment, the image decoding apparatus 150 can determine the width of the center encoding unit 520b as xc-xb and the height as yc-yb. The image decoding apparatus 150 may determine the width or height of the lower coding unit using the width or height of the current coding unit and the width and height of the upper coding unit 520a and the middle coding unit 520b . The image decoding apparatus 150 may determine an encoding unit having a different size from other encoding units based on the width and height of the determined encoding units 520a, 520b, and 520c. Referring to FIG. 5, the image decoding apparatus 150 may determine a coding unit 520b as a coding unit at a predetermined position while having a size different from that of the upper coding unit 520a and the lower coding unit 520c. However, the process of determining the encoding unit having a size different from that of the other encoding units by the above-described video decoding apparatus 150 may be performed in an embodiment that determines encoding units at predetermined positions using the sizes of the encoding units determined based on the sample coordinates , Various processes may be used for determining the encoding unit at a predetermined position by comparing the sizes of the encoding units determined according to predetermined sample coordinates.
다만 부호화 단위의 위치를 결정하기 위하여 고려하는 샘플의 위치는 상술한 좌측 상단으로 한정하여 해석되어서는 안되고 부호화 단위에 포함되는 임의의 샘플의 위치에 대한 정보가 이용될 수 있는 것으로 해석될 수 있다. However, the position of the sample to be considered for determining the position of the coding unit should not be interpreted as being limited to the left upper end, and information about the position of any sample included in the coding unit can be interpreted as being available.
일 실시예에 따라 영상 복호화 장치(150)는 현재 부호화 단위의 형태를 고려하여, 현재 부호화 단위가 분할되어 결정되는 홀수개의 부호화 단위들 중 소정 위치의 부호화 단위를 선택할 수 있다. 예를 들면, 현재 부호화 단위가 너비가 높이보다 긴 비-정사각형 형태라면 영상 복호화 장치(150)는 수평 방향에 따라 소정 위치의 부호화 단위를 결정할 수 있다. 즉, 영상 복호화 장치(150)는 수평 방향으로 위치를 달리 하는 부호화 단위들 중 하나를 결정하여 해당 부호화 단위에 대한 제한을 둘 수 있다. 현재 부호화 단위가 높이가 너비보다 긴 비-정사각형 형태라면 영상 복호화 장치(150)는 수직 방향에 따라 소정 위치의 부호화 단위를 결정할 수 있다. 즉, 영상 복호화 장치(150)는 수직 방향으로 위치를 달리 하는 부호화 단위들 중 하나를 결정하여 해당 부호화 단위에 대한 제한을 둘 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may select an encoding unit of a predetermined position among odd number of encoding units determined by dividing the current encoding unit in consideration of the type of the current encoding unit. For example, if the current coding unit is a non-square shape having a width greater than the height, the image decoding apparatus 150 can determine a coding unit at a predetermined position along the horizontal direction. That is, the image decoding apparatus 150 may determine one of the encoding units which are located in the horizontal direction and limit the encoding unit. If the current coding unit has a non-square shape with a height greater than the width, the image decoding apparatus 150 can determine a coding unit at a predetermined position in the vertical direction. That is, the image decoding apparatus 150 may determine one of the encoding units having different positions in the vertical direction and set a restriction on the encoding unit.
일 실시예에 따라 영상 복호화 장치(150)는 짝수개의 부호화 단위들 중 소정 위치의 부호화 단위를 결정하기 위하여 짝수개의 부호화 단위들 각각의 위치를 나타내는 정보를 이용할 수 있다. 영상 복호화 장치(150)는 현재 부호화 단위를 분할하여 짝수개의 부호화 단위들을 결정할 수 있고 짝수개의 부호화 단위들의 위치에 대한 정보를 이용하여 소정 위치의 부호화 단위를 결정할 수 있다. 이에 대한 구체적인 과정은 도 5에서 상술한 홀수개의 부호화 단위들 중 소정 위치(예를 들면, 가운데 위치)의 부호화 단위를 결정하는 과정에 대응하는 과정일 수 있으므로 생략하도록 한다.According to an embodiment, the image decoding apparatus 150 may use information indicating positions of even-numbered encoding units in order to determine an encoding unit of a predetermined position among the even-numbered encoding units. The image decoding apparatus 150 can determine an even number of encoding units by dividing the current encoding unit and determine a encoding unit at a predetermined position by using information on the positions of the even number of encoding units. A concrete procedure for this is omitted because it may be a process corresponding to a process of determining a coding unit of a predetermined position (for example, the middle position) among the above-mentioned odd number of coding units.
일 실시예에 따라, 비-정사각형 형태의 현재 부호화 단위를 복수개의 부호화 단위로 분할한 경우, 복수개의 부호화 단위들 중 소정 위치의 부호화 단위를 결정하기 위하여 분할 과정에서 소정 위치의 부호화 단위에 대한 소정의 정보를 이용할 수 있다. 예를 들면 영상 복호화 장치(150)는 현재 부호화 단위가 복수개로 분할된 부호화 단위들 중 가운데에 위치하는 부호화 단위를 결정하기 위하여 분할 과정에서 가운데 부호화 단위에 포함된 샘플에 저장된 블록 형태 정보 및 분할 형태 정보 중 적어도 하나를 이용할 수 있다. According to one embodiment, when a non-square current encoding unit is divided into a plurality of encoding units, in order to determine an encoding unit at a predetermined position among a plurality of encoding units, Can be used. For example, in order to determine a coding unit located in the middle among the coding units in which the current coding unit is divided into a plurality of coding units, the video decoding apparatus 150 may divide the block type information stored in the samples included in the middle coding unit, Information can be used.
도 5을 참조하면 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 현재 부호화 단위(500)를 복수개의 부호화 단위들(520a, 520b, 520c)로 분할할 수 있으며, 복수개의 부호화 단위들(520a, 520b, 520c) 중 가운데에 위치하는 부호화 단위(520b)를 결정할 수 있다. 나아가 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나가 획득되는 위치를 고려하여, 가운데에 위치하는 부호화 단위(520b)를 결정할 수 있다. 즉, 현재 부호화 단위(500)의 블록 형태 정보 및 분할 형태 정보 중 적어도 하나는 현재 부호화 단위(500)의 가운데에 위치하는 샘플(540)에서 획득될 수 있으며, 상기 블록 형태 정보 및 상기 분할 형태 정보 중 적어도 하나에 기초하여 현재 부호화 단위(500)가 복수개의 부호화 단위들(520a, 520b, 520c)로 분할된 경우 상기 샘플(540)을 포함하는 부호화 단위(520b)를 가운데에 위치하는 부호화 단위로 결정할 수 있다. 다만 가운데에 위치하는 부호화 단위로 결정하기 위해 이용되는 정보가 블록 형태 정보 및 분할 형태 정보 중 적어도 하나로 한정하여 해석되어서는 안되고, 다양한 종류의 정보가 가운데에 위치하는 부호화 단위를 결정하는 과정에서 이용될 수 있다.Referring to FIG. 5, the image decoding apparatus 150 may divide the current encoding unit 500 into a plurality of encoding units 520a, 520b, and 520c based on at least one of block type information and division type information, It is possible to determine an encoding unit 520b located in the middle of the plurality of encoding units 520a, 520b, and 520c. Furthermore, the image decoding apparatus 150 may determine a coding unit 520b positioned at the center in consideration of the position at which at least one of the block type information and the division type information is obtained. That is, at least one of the block type information and the division type information of the current encoding unit 500 can be acquired in the sample 540 located in the center of the current encoding unit 500, and the block type information and the division type information If the current encoding unit 500 is divided into a plurality of encoding units 520a, 520b and 520c based on at least one of the encoding units 520a to 520c, You can decide. However, the information used for determining the coding unit located in the middle should not be limited to at least one of the block type information and the division type information, and various kinds of information may be used in the process of determining the coding unit located in the middle .
일 실시예에 따라 소정 위치의 부호화 단위를 식별하기 위한 소정의 정보는, 결정하려는 부호화 단위에 포함되는 소정의 샘플에서 획득될 수 있다. 도 5를 참조하면, 영상 복호화 장치(150)는 현재 부호화 단위(500)가 분할되어 결정된 복수개의 부호화 단위들(520a, 520b, 520c) 중 소정 위치의 부호화 단위(예를 들면, 복수개로 분할된 부호화 단위 중 가운데에 위치하는 부호화 단위)를 결정하기 위하여 현재 부호화 단위(500) 내의 소정 위치의 샘플(예를 들면, 현재 부호화 단위(500)의 가운데에 위치하는 샘플)에서 획득되는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나를 이용할 수 있다. . 즉, 영상 복호화 장치(150)는 현재 부호화 단위(500)의 블록 형태를 고려하여 상기 소정 위치의 샘플을 결정할 수 있고, 영상 복호화 장치(150)는 현재 부호화 단위(500)가 분할되어 결정되는 복수개의 부호화 단위(520a, 520b, 520c)들 중, 소정의 정보(예를 들면, 블록 형태 정보 및 분할 형태 정보 중 적어도 하나)가 획득될 수 있는 샘플이 포함된 부호화 단위(520b)를 결정하여 소정의 제한을 둘 수 있다. 도 5을 참조하면 일 실시예에 따라 영상 복호화 장치(150)는 소정의 정보가 획득될 수 있는 샘플로서 현재 부호화 단위(500)의 가운데에 위치하는 샘플(540)을 결정할 수 있고, 영상 복호화 장치(150)는 이러한 샘플(540)이 포함되는 부호화 단위(520b)를 복호화 과정에서의 소정의 제한을 둘 수 있다. 다만 소정의 정보가 획득될 수 있는 샘플의 위치는 상술한 위치로 한정하여 해석되어서는 안되고, 제한을 두기 위해 결정하려는 부호화 단위(520b)에 포함되는 임의의 위치의 샘플들로 해석될 수 있다.According to an embodiment, predetermined information for identifying a coding unit at a predetermined position may be obtained from a predetermined sample included in a coding unit to be determined. Referring to FIG. 5, the image decoding apparatus 150 includes a plurality of encoding units 520a, 520b, and 520c, which are determined by dividing the current encoding unit 500, Block type information obtained at a predetermined position in the current encoding unit 500 (e.g., a sample located in the middle of the current encoding unit 500) to determine the encoding unit located in the middle of the encoding unit, and And at least one of division type information. . That is, the image decoding apparatus 150 can determine the sample at the predetermined position in consideration of the block form of the current encoding unit 500, and the image decoding apparatus 150 can decode the plural A coding unit 520b including a sample in which predetermined information (for example, at least one of block type information and division type information) can be obtained is determined among the plurality of coding units 520a, 520b and 520c, . Referring to FIG. 5, the image decoding apparatus 150 may determine a sample 540 positioned at the center of the current encoding unit 500 as a sample from which predetermined information can be obtained, The coding unit 150 may limit the coding unit 520b including the sample 540 to a predetermined limit in the decoding process. However, the position of the sample from which the predetermined information can be obtained should not be construed to be limited to the above-mentioned position, but may be interpreted as samples at arbitrary positions included in the encoding unit 520b to be determined for limiting.
일 실시예에 따라 소정의 정보가 획득될 수 있는 샘플의 위치는 현재 부호화 단위(500)의 형태에 따라 결정될 수 있다. 일 실시예에 따라 블록 형태 정보는 현재 부호화 단위의 형태가 정사각형인지 또는 비-정사각형인지 여부를 결정할 수 있고, 형태에 따라 소정의 정보가 획득될 수 있는 샘플의 위치를 결정할 수 있다. 예를 들면, 영상 복호화 장치(150)는 현재 부호화 단위의 너비에 대한 정보 및 높이에 대한 정보 중 적어도 하나를 이용하여 현재 부호화 단위의 너비 및 높이 중 적어도 하나를 반으로 분할하는 경계 상에 위치하는 샘플을 소정의 정보가 획득될 수 있는 샘플로 결정할 수 있다. 또 다른 예를 들면, 영상 복호화 장치(150)는 현재 부호화 단위에 관련된 블록 형태 정보가 비-정사각형 형태임을 나타내는 경우, 현재 부호화 단위의 긴 변을 반으로 분할하는 경계에 인접하는 샘플 중 하나를 소정의 정보가 획득될 수 있는 샘플로 결정할 수 있다. The position of a sample from which predetermined information can be obtained may be determined according to the type of the current encoding unit 500 according to an embodiment. According to one embodiment, the block type information can determine whether the current encoding unit is a square or a non-square, and determine the position of a sample from which predetermined information can be obtained according to the shape. For example, the image decoding apparatus 150 may use at least one of the information on the width of the current encoding unit and the information on the height, and may be located on a boundary that divides at least one of the width and the height of the current encoding unit by half The sample can be determined as a sample from which predetermined information can be obtained. In another example, when the block type information related to the current encoding unit is non-square, the image decoding apparatus 150 may set one of the samples adjacent to the boundary dividing the long side of the current encoding unit in half to a predetermined Can be determined as a sample from which the information of < / RTI >
일 실시예에 따라 영상 복호화 장치(150)는 현재 부호화 단위를 복수개의 부호화 단위로 분할한 경우, 복수개의 부호화 단위들 중 소정 위치의 부호화 단위를 결정하기 위하여, 블록 형태 정보 및 분할 형태 정보 중 적어도 하나를 이용할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나를 부호화 단위에 포함된 소정 위치의 샘플에서 획득할 수 있고, 영상 복호화 장치(150)는 현재 부호화 단위가 분할되어 생성된 복수개의 부호화 단위들을 복수개의 부호화 단위 각각에 포함된 소정 위치의 샘플로부터 획득되는 분할 형태 정보 및 블록 형태 정보 중 적어도 하나를 이용하여 분할할 수 있다. 즉, 부호화 단위는 부호화 단위 각각에 포함된 소정 위치의 샘플에서 획득되는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나를 이용하여 재귀적으로 분할될 수 있다. 부호화 단위의 재귀적 분할 과정에 대하여는 도 4를 통해 상술하였으므로 자세한 설명은 생략하도록 한다. According to one embodiment, when the current encoding unit is divided into a plurality of encoding units, the image decoding apparatus 150 may determine at least one of the block type information and the division type information One can be used. According to an exemplary embodiment, the image decoding apparatus 150 may obtain at least one of the block type information and the division type information from a sample at a predetermined position included in the encoding unit, and the image decoding apparatus 150 may determine that the current encoding unit is divided And divide the generated plurality of coding units by using at least one of division type information and block type information obtained from samples at predetermined positions included in each of the plurality of coding units. That is, the coding unit can be recursively divided using at least one of the block type information and the division type information obtained in the sample at the predetermined position included in each of the coding units. Since the recursive division process of the encoding unit has been described with reference to FIG. 4, a detailed description will be omitted.
일 실시예에 따라 영상 복호화 장치(150)는 현재 부호화 단위를 분할하여 적어도 하나의 부호화 단위를 결정할 수 있고, 이러한 적어도 하나의 부호화 단위가 복호화되는 순서를 소정의 블록(예를 들면, 현재 부호화 단위)에 따라 결정할 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may determine at least one encoding unit by dividing the current encoding unit, and may determine the order in which the at least one encoding unit is decoded in a predetermined block (for example, ). ≪ / RTI >
도 6은 일 실시예에 따라 영상 복호화 장치(150)가 현재 부호화 단위를 분할하여 복수개의 부호화 단위들을 결정하는 경우, 복수개의 부호화 단위들이 처리되는 순서를 도시한다.FIG. 6 illustrates a sequence in which a plurality of encoding units are processed when the image decoding apparatus 150 determines a plurality of encoding units by dividing the current encoding unit according to an exemplary embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보에 따라 제1 부호화 단위(600)를 수직 방향으로 분할하여 제2 부호화 단위(610a, 610b)를 결정하거나 제1 부호화 단위(600)를 수평 방향으로 분할하여 제2 부호화 단위(630a, 630b)를 결정하거나 제1 부호화 단위(600)를 수직 방향 및 수평 방향으로 분할하여 제2 부호화 단위(650a, 650b, 650c, 650d)를 결정할 수 있다. According to one embodiment, the image decoding apparatus 150 divides the first encoding unit 600 in the vertical direction according to the block type information and the division type information to determine the second encoding units 610a and 610b, 650b, 650c, and 650d by dividing the first encoding unit 600 in the horizontal direction to determine the second encoding units 630a and 630b or dividing the first encoding unit 600 in the vertical direction and the horizontal direction, Can be determined.
도 6을 참조하면, 영상 복호화 장치(150)는 제1 부호화 단위(600)를 수직 방향으로 분할하여 결정된 제2 부호화 단위(610a, 610b)를 수평 방향(610c)으로 처리되도록 순서를 결정할 수 있다. 영상 복호화 장치(150)는 제1 부호화 단위(600)를 수평 방향으로 분할하여 결정된 제2 부호화 단위(630a, 630b)의 처리 순서를 수직 방향(630c)으로 결정할 수 있다. 영상 복호화 장치(150)는 제1 부호화 단위(600)를 수직 방향 및 수평 방향으로 분할하여 결정된 제2 부호화 단위(650a, 650b, 650c, 650d)를 하나의 행에 위치하는 부호화 단위들이 처리된 후 다음 행에 위치하는 부호화 단위들이 처리되는 소정의 순서(예를 들면, 래스터 스캔 순서((raster scan order) 또는 z 스캔 순서(z scan order)(650e) 등)에 따라 결정할 수 있다. Referring to FIG. 6, the image decoding apparatus 150 may determine the order in which the second encoding units 610a and 610b determined by dividing the first encoding unit 600 in the vertical direction are processed in the horizontal direction 610c . The image decoding apparatus 150 can determine the processing order of the second encoding units 630a and 630b determined by dividing the first encoding unit 600 in the horizontal direction as the vertical direction 630c. The image decoding apparatus 150 processes the encoding units located in one row of the second encoding units 650a, 650b, 650c, and 650d determined by dividing the first encoding unit 600 in the vertical direction and the horizontal direction (For example, a raster scan order or a z scan order 650e) in which the encoding units located in the next row are processed.
일 실시예에 따라 영상 복호화 장치(150)는 부호화 단위들을 재귀적으로 분할할 수 있다. 도 6을 참조하면, 영상 복호화 장치(150)는 제1 부호화 단위(600)를 분할하여 복수개의 부호화 단위들(610a, 610b, 630a, 630b, 650a, 650b, 650c, 650d)을 결정할 수 있고, 결정된 복수개의 부호화 단위들(610a, 610b, 630a, 630b, 650a, 650b, 650c, 650d) 각각을 재귀적으로 분할할 수 있다. 복수개의 부호화 단위들(610a, 610b, 630a, 630b, 650a, 650b, 650c, 650d)을 분할하는 방법은 제1 부호화 단위(600)를 분할하는 방법에 대응하는 방법이 될 수 있다. 이에 따라 복수개의 부호화 단위들(610a, 610b, 630a, 630b, 650a, 650b, 650c, 650d)은 각각 독립적으로 복수개의 부호화 단위들로 분할될 수 있다. 도 6을 참조하면 영상 복호화 장치(150)는 제1 부호화 단위(600)를 수직 방향으로 분할하여 제2 부호화 단위(610a, 610b)를 결정할 수 있고, 나아가 제2 부호화 단위(610a, 610b) 각각을 독립적으로 분할하거나 분할하지 않는 것으로 결정할 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may recursively divide encoding units. 6, the image decoding apparatus 150 may determine a plurality of encoding units 610a, 610b, 630a, 630b, 650a, 650b, 650c, and 650d by dividing the first encoding unit 600, The determined plurality of encoding units 610a, 610b, 630a, 630b, 650a, 650b, 650c and 650d may be recursively divided. The method of dividing the plurality of encoding units 610a, 610b, 630a, 630b, 650a, 650b, 650c, and 650d may be a method corresponding to the method of dividing the first encoding unit 600. [ Accordingly, the plurality of encoding units 610a, 610b, 630a, 630b, 650a, 650b, 650c, and 650d may be independently divided into a plurality of encoding units. Referring to FIG. 6, the image decoding apparatus 150 may determine the second encoding units 610a and 610b by dividing the first encoding unit 600 in the vertical direction, and may further determine the second encoding units 610a and 610b Can be determined not to divide or separate independently.
일 실시예에 따라 영상 복호화 장치(150)는 좌측의 제2 부호화 단위(610a)를 수평 방향으로 분할하여 제3 부호화 단위(620a, 620b)로 분할할 수 있고, 우측의 제2 부호화 단위(610b)는 분할하지 않을 수 있다. The image decoding apparatus 150 may divide the second encoding unit 610a on the left side in the horizontal direction into the third encoding units 620a and 620b and may divide the second encoding unit 610a on the right side into the second encoding units 610b ) May not be divided.
일 실시예에 따라 부호화 단위들의 처리 순서는 부호화 단위의 분할 과정에 기초하여 결정될 수 있다. 다시 말해, 분할된 부호화 단위들의 처리 순서는 분할되기 직전의 부호화 단위들의 처리 순서에 기초하여 결정될 수 있다. 영상 복호화 장치(150)는 좌측의 제2 부호화 단위(610a)가 분할되어 결정된 제3 부호화 단위(620a, 620b)가 처리되는 순서를 우측의 제2 부호화 단위(610b)와 독립적으로 결정할 수 있다. 좌측의 제2 부호화 단위(610a)가 수평 방향으로 분할되어 제3 부호화 단위(620a, 620b)가 결정되었으므로 제3 부호화 단위(620a, 620b)는 수직 방향(620c)으로 처리될 수 있다. 또한 좌측의 제2 부호화 단위(610a) 및 우측의 제2 부호화 단위(610b)가 처리되는 순서는 수평 방향(610c)에 해당하므로, 좌측의 제2 부호화 단위(610a)에 포함되는 제3 부호화 단위(620a, 620b)가 수직 방향(620c)으로 처리된 후에 우측 부호화 단위(610b)가 처리될 수 있다. 상술한 내용은 부호화 단위들이 각각 분할 전의 부호화 단위에 따라 처리 순서가 결정되는 과정을 설명하기 위한 것이므로, 상술한 실시예에 한정하여 해석되어서는 안되고, 다양한 형태로 분할되어 결정되는 부호화 단위들이 소정의 순서에 따라 독립적으로 처리될 수 있는 다양한 방법으로 이용되는 것으로 해석되어야 한다.According to an embodiment, the processing order of the encoding units may be determined based on the division process of the encoding units. In other words, the processing order of the divided coding units can be determined based on the processing order of the coding units immediately before being divided. The image decoding apparatus 150 can determine the order in which the third coding units 620a and 620b determined by dividing the second coding unit 610a on the left side are processed independently of the second coding unit 610b on the right side. The third encoding units 620a and 620b may be processed in the vertical direction 620c since the second encoding units 610a on the left side are divided in the horizontal direction and the third encoding units 620a and 620b are determined. Since the order in which the left second encoding unit 610a and the right second encoding unit 610b are processed corresponds to the horizontal direction 610c, the third encoding unit included in the left second encoding unit 610a The right encoding unit 610b can be processed after the blocks 620a and 620b are processed in the vertical direction 620c. The above description is intended to explain the process sequence in which encoding units are determined according to the encoding units before division. Therefore, it should not be construed to be limited to the above-described embodiments, It should be construed as being used in various ways that can be handled independently in sequence.
도 7는 일 실시예에 따라 영상 복호화 장치(150)가 소정의 순서로 부호화 단위가 처리될 수 없는 경우, 현재 부호화 단위가 홀수개의 부호화 단위로 분할되는 것임을 결정하는 과정을 도시한다.7 illustrates a process of determining that the current encoding unit is divided into odd number of encoding units when the image decoding apparatus 150 can not process the encoding units in a predetermined order according to an embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 획득된 블록 형태 정보 및 분할 형태 정보에 기초하여 현재 부호화 단위가 홀수개의 부호화 단위들로 분할되는 것을 결정할 수 있다. 도 7를 참조하면 정사각형 형태의 제1 부호화 단위(700)가 비-정사각형 형태의 제2 부호화 단위(710a, 710b)로 분할될 수 있고, 제2 부호화 단위(710a, 710b)는 각각 독립적으로 제3 부호화 단위(720a, 720b, 720c, 720d, 720e)로 분할될 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 제2 부호화 단위 중 좌측 부호화 단위(710a)는 수평 방향으로 분할하여 복수개의 제3 부호화 단위(720a, 720b)를 결정할 수 있고, 우측 부호화 단위(710b)는 홀수개의 제3 부호화 단위(720c, 720d, 720e)로 분할할 수 있다. According to one embodiment, the image decoding apparatus 150 may determine that the current encoding unit is divided into odd number of encoding units based on the obtained block type information and the division type information. Referring to FIG. 7, the first encoding unit 700 of a square shape can be divided into second non-square encoding units 710a and 710b, and the second encoding units 710a and 710b can be independently 3 encoding units 720a, 720b, 720c, 720d, and 720e. According to an embodiment, the image decoding apparatus 150 may determine a plurality of third encoding units 720a and 720b by dividing the left encoding unit 710a among the second encoding units in the horizontal direction, and the right encoding unit 710b May be divided into an odd number of third encoding units 720c, 720d, and 720e.
일 실시예에 따라 영상 복호화 장치(150)는 제3 부호화 단위들(720a, 720b, 720c, 720d, 720e)이 소정의 순서로 처리될 수 있는지 여부를 판단하여 홀수개로 분할된 부호화 단위가 존재하는지를 결정할 수 있다. 도 7을 참조하면, 영상 복호화 장치(150)는 제1 부호화 단위(700)를 재귀적으로 분할하여 제3 부호화 단위(720a, 720b, 720c, 720d, 720e)를 결정할 수 있다. 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여, 제1 부호화 단위(700), 제2 부호화 단위(710a, 710b) 또는 제3 부호화 단위(720a, 720b, 720c, 720d, 720e)가 분할되는 형태 중 홀수개의 부호화 단위로 분할되는지 여부를 결정할 수 있다. 예를 들면, 제2 부호화 단위(710a, 710b) 중 우측에 위치하는 부호화 단위가 홀수개의 제3 부호화 단위(720c, 720d, 720e)로 분할될 수 있다. 제1 부호화 단위(700)에 포함되는 복수개의 부호화 단위들이 처리되는 순서는 소정의 순서(예를 들면, z-스캔 순서(z-scan order)(730))가 될 수 있고, 영상 복호화 장치(150)는 우측 제2 부호화 단위(710b)가 홀수개로 분할되어 결정된 제3 부호화 단위(720c, 720d, 720e)가 상기 소정의 순서에 따라 처리될 수 있는 조건을 만족하는지를 판단할 수 있다.According to one embodiment, the image decoding apparatus 150 determines whether or not the third encoding units 720a, 720b, 720c, 720d, and 720e can be processed in a predetermined order and determines whether there are odd-numbered encoding units You can decide. Referring to FIG. 7, the image decoding apparatus 150 may recursively divide the first coding unit 700 to determine the third coding units 720a, 720b, 720c, 720d, and 720e. The image decoding apparatus 150 may further include a first encoding unit 700, a second encoding unit 710a and 710b or a third encoding unit 720a, 720b, 720c, and 720c based on at least one of block type information and division type information, 720d, and 720e may be divided into odd number of coding units among the divided types. For example, an encoding unit located on the right of the second encoding units 710a and 710b may be divided into odd third encoding units 720c, 720d, and 720e. The order in which the plurality of coding units included in the first coding unit 700 are processed may be a predetermined order (for example, a z-scan order 730) 150 can determine whether the third encoding units 720c, 720d, and 720e determined by dividing the right second encoding unit 710b into odd numbers satisfy the condition that the third encoding units 720c, 720d, and 720e can be processed according to the predetermined order.
일 실시예에 따라 영상 복호화 장치(150)는 제1 부호화 단위(700)에 포함되는 제3 부호화 단위(720a, 720b, 720c, 720d, 720e)가 소정의 순서에 따라 처리될 수 있는 조건을 만족하는지를 결정할 수 있으며, 상기 조건은 제3 부호화 단위(720a, 720b, 720c, 720d, 720e)의 경계에 따라 제2 부호화 단위(710a, 710b)의 너비 및 높이 중 적어도 하나를 반으로 분할되는지 여부와 관련된다. 예를 들면 비-정사각형 형태의 좌측 제2 부호화 단위(710a)의 높이를 반으로 분할하여 결정되는 제3 부호화 단위(720a, 720b)는 조건을 만족하지만, 우측 제2 부호화 단위(710b)를 3개의 부호화 단위로 분할하여 결정되는 제3 부호화 단위(720c, 720d, 720e)들의 경계가 우측 제2 부호화 단위(710b)의 너비 또는 높이를 반으로 분할하지 못하므로 제3 부호화 단위(720c, 720d, 720e)는 조건을 만족하지 못하는 것으로 결정될 수 있고, 영상 복호화 장치(150)는 이러한 조건 불만족의 경우 스캔 순서의 단절(disconnection)로 판단하고, 판단 결과에 기초하여 우측 제2 부호화 단위(710b)는 홀수개의 부호화 단위로 분할되는 것으로 결정할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 홀수개의 부호화 단위로 분할되는 경우 분할된 부호화 단위들 중 소정 위치의 부호화 단위에 대하여 소정의 제한을 둘 수 있으며, 이러한 제한 내용 또는 소정 위치 등에 대하여는 다양한 실시예를 통해 상술하였으므로 자세한 설명은 생략하도록 한다.According to an embodiment, the image decoding apparatus 150 satisfies a condition that third encoding units 720a, 720b, 720c, 720d, and 720e included in the first encoding unit 700 can be processed in a predetermined order And it is determined whether or not at least one of the widths and heights of the second encoding units 710a and 710b is divided in half according to the boundaries of the third encoding units 720a, 720b, 720c, 720d, and 720e, . For example, the third encoding units 720a and 720b determined by dividing the height of the left second encoding unit 710a in the non-square shape by half are satisfying the condition, but the right second encoding unit 710b is set to 3 Since the boundaries of the third encoding units 720c, 720d, and 720e, which are determined by dividing the first encoding units 720c, 720d, and 720e, can not divide the width or the height of the second right encoding unit 710b by half, 720e may be determined as not satisfying the condition and the image decoding apparatus 150 may determine that the scanning order is disconnection in the case of such unsatisfactory condition and the right second encoding unit 710b is determined based on the determination result It can be determined to be divided into odd number of encoding units. According to one embodiment, when the image decoding apparatus 150 is divided into an odd number of coding units, the coding unit of a predetermined position among the divided coding units may be limited to a predetermined size. Since the embodiment has been described above, a detailed description thereof will be omitted.
도 8은 일 실시예에 따라 영상 복호화 장치(150)가 제1 부호화 단위(800)를 분할하여 적어도 하나의 부호화 단위를 결정하는 과정을 도시한다. 일 실시예에 따라 영상 복호화 장치(150)는 수신부(160)를 통해 획득한 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제1 부호화 단위(800)를 분할할 수 있다. 정사각형 형태의 제1 부호화 단위(800)는 4개의 정사각형 형태를 가지는 부호화 단위로 분할되거나 또는 비-정사각형 형태의 복수개의 부호화 단위로 분할할 수 있다. 예를 들면 도 8을 참조하면, 블록 형태 정보가 제1 부호화 단위(800)는 정사각형임을 나타내고 분할 형태 정보가 비-정사각형의 부호화 단위로 분할됨을 나타내는 경우 영상 복호화 장치(150)는 제1 부호화 단위(800)를 복수개의 비-정사각형의 부호화 단위들로 분할할 수 있다. 구체적으로, 분할 형태 정보가 제1 부호화 단위(800)를 수평 방향 또는 수직 방향으로 분할하여 홀수개의 부호화 단위를 결정하는 것을 나타내는 경우, 영상 복호화 장치(150)는 정사각형 형태의 제1 부호화 단위(800)을 홀수개의 부호화 단위들로서 수직 방향으로 분할되어 결정된 제2 부호화 단위(810a, 810b, 810c) 또는 수평 방향으로 분할되어 결정된 제2 부호화 단위(820a, 820b, 820c)로 분할할 수 있다. FIG. 8 illustrates a process in which an image decoding apparatus 150 determines at least one encoding unit by dividing a first encoding unit 800 according to an embodiment. According to an embodiment, the image decoding apparatus 150 may divide the first encoding unit 800 based on at least one of the block type information and the division type information acquired through the receiver 160. The first encoding unit 800 in the form of a square may be divided into four encoding units having a square form, or may be divided into a plurality of encoding units of a non-square form. For example, referring to FIG. 8, when the block type information indicates that the first encoding unit 800 is a square and that the division type information is divided into non-square encoding units, the image decoding device 150 generates a first encoding unit The encoding unit 800 may be divided into a plurality of non-square encoding units. More specifically, when the division type information indicates that the first encoding unit 800 is divided horizontally or vertically to determine an odd number of encoding units, the image decoding apparatus 150 includes a first encoding unit 800 in the form of a square 800 820b, and 820c divided in the vertical direction as the odd number of encoding units, or into the second encoding units 820a, 820b, and 820c determined by being divided in the horizontal direction.
일 실시예에 따라 영상 복호화 장치(150)는 제1 부호화 단위(800)에 포함되는 제2 부호화 단위(810a, 810b, 810c, 820a, 820b, 820c)가 소정의 순서에 따라 처리될 수 있는 조건을 만족하는지를 결정할 수 있으며, 상기 조건은 제2 부호화 단위(810a, 810b, 810c, 820a, 820b, 820c)의 경계에 따라 제1 부호화 단위(800)의 너비 및 높이 중 적어도 하나를 반으로 분할되는지 여부와 관련된다. 도 8을 참조하면 정사각형 형태의 제1 부호화 단위(800)를 수직 방향으로 분할하여 결정되는 제2 부호화 단위(810a, 810b, 810c)들의 경계가 제1 부호화 단위(800)의 너비를 반으로 분할하지 못하므로 제1 부호화 단위(800)는 소정의 순서에 따라 처리될 수 있는 조건을 만족하지 못하는 것으로 결정될 수 있다. 또한 정사각형 형태의 제1 부호화 단위(800)를 수평 방향으로 분할하여 결정되는 제2 부호화 단위(820a, 820b, 820c)들의 경계가 제1 부호화 단위(800)의 너비를 반으로 분할하지 못하므로 제1 부호화 단위(800)는 소정의 순서에 따라 처리될 수 있는 조건을 만족하지 못하는 것으로 결정될 수 있다. 영상 복호화 장치(150)는 이러한 조건 불만족의 경우 스캔 순서의 단절(disconnection)로 판단하고, 판단 결과에 기초하여 제1 부호화 단위(800)는 홀수개의 부호화 단위로 분할되는 것으로 결정할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 홀수개의 부호화 단위로 분할되는 경우 분할된 부호화 단위들 중 소정 위치의 부호화 단위에 대하여 소정의 제한을 둘 수 있으며, 이러한 제한 내용 또는 소정 위치 등에 대하여는 다양한 실시예를 통해 상술하였으므로 자세한 설명은 생략하도록 한다.According to an exemplary embodiment, the image decoding apparatus 150 may be configured such that the second encoding units 810a, 810b, 810c, 820a, 820b, and 820c included in the first encoding unit 800 are processed in a predetermined order And the condition is that at least one of the width and height of the first encoding unit 800 is divided in half according to the boundaries of the second encoding units 810a, 810b, 810c, 820a, 820b, and 820c . 8, the boundaries of the second encoding units 810a, 810b and 810c, which are determined by dividing the first encoding unit 800 in the vertical direction into a square shape, are divided in half by the width of the first encoding unit 800 The first encoding unit 800 can be determined as not satisfying a condition that can be processed in a predetermined order. Also, since the boundaries of the second encoding units 820a, 820b, and 820c determined by dividing the first encoding unit 800 in the horizontal direction into the horizontal direction can not divide the width of the first encoding unit 800 in half, 1 encoding unit 800 may be determined as not satisfying a condition that can be processed in a predetermined order. The image decoding apparatus 150 may determine that the scan sequence is disconnection in the case of such unsatisfactory condition and determine that the first encoding unit 800 is divided into odd number of encoding units based on the determination result. According to one embodiment, when the image decoding apparatus 150 is divided into an odd number of coding units, the coding unit of a predetermined position among the divided coding units may be limited to a predetermined size. Since the embodiment has been described above, a detailed description thereof will be omitted.
일 실시예에 따라, 영상 복호화 장치(150)는 제1 부호화 단위를 분할하여 다양한 형태의 부호화 단위들을 결정할 수 있다.According to an embodiment, the image decoding apparatus 150 may divide the first encoding unit and determine various types of encoding units.
도 8을 참조하면, 영상 복호화 장치(150)는 정사각형 형태의 제1 부호화 단위(800), 비-정사각형 형태의 제1 부호화 단위(830 또는 850)를 다양한 형태의 부호화 단위들로 분할할 수 있다. Referring to FIG. 8, the image decoding apparatus 150 may divide the first coding unit 800 of a square shape and the first coding unit 830 or 850 of a non-square shape into various types of coding units .
도 9은 일 실시예에 따라 영상 복호화 장치(150)가 제1 부호화 단위(900)가 분할되어 결정된 비-정사각형 형태의 제2 부호화 단위가 소정의 조건을 만족하는 경우 제2 부호화 단위가 분할될 수 있는 형태가 제한되는 것을 도시한다.9 is a flowchart illustrating an operation of the video decoding apparatus 150 according to an embodiment of the present invention when the non-square second encoding unit determined by dividing the first encoding unit 900 satisfies a predetermined condition, Lt; RTI ID = 0.0 > limited. ≪ / RTI >
일 실시예에 따라 영상 복호화 장치(150)는 수신부(160)를 통해 획득한 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 정사각형 형태의 제1 부호화 단위(900)를 비-정사각형 형태의 제2 부호화 단위(910a, 910b, 920a, 920b)로 분할하는 것으로 결정할 수 있다. 제2 부호화 단위(910a, 910b, 920a, 920b)는 독립적으로 분할될 수 있다. 이에 따라 영상 복호화 장치(150)는 제2 부호화 단위(910a, 910b, 920a, 920b) 각각에 관련된 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 복수개의 부호화 단위로 분할하거나 분할하지 않는 것을 결정할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 수직 방향으로 제1 부호화 단위(900)가 분할되어 결정된 비-정사각형 형태의 좌측 제2 부호화 단위(910a)를 수평 방향으로 분할하여 제3 부호화 단위(912a, 912b)를 결정할 수 있다. 다만 영상 복호화 장치(150)는 좌측 제2 부호화 단위(910a)를 수평 방향으로 분할한 경우, 우측 제2 부호화 단위(910b)는 좌측 제2 부호화 단위(910a)가 분할된 방향과 동일하게 수평 방향으로 분할될 수 없도록 제한할 수 있다. 만일 우측 제2 부호화 단위(910b)가 동일한 방향으로 분할되어 제3 부호화 단위(914a, 914b)가 결정된 경우, 좌측 제2 부호화 단위(910a) 및 우측 제2 부호화 단위(910b)가 수평 방향으로 각각 독립적으로 분할됨으로써 제3 부호화 단위(912a, 912b, 914a, 914b)가 결정될 수 있다. 하지만 이는 영상 복호화 장치(150)가 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제1 부호화 단위(900)를 4개의 정사각형 형태의 제2 부호화 단위(930a, 930b, 930c, 930d)로 분할한 것과 동일한 결과이며 이는 영상 복호화 측면에서 비효율적일 수 있다.According to one embodiment, the image decoding apparatus 150 generates the first coding unit 900 in the form of a square based on at least one of the block type information and the division type information acquired through the receiving unit 160, 2 encoding units 910a, 910b, 920a, and 920b. The second encoding units 910a, 910b, 920a, and 920b may be independently divided. Accordingly, the video decoding apparatus 150 determines whether to divide or not divide into a plurality of coding units based on at least one of the block type information and the division type information related to each of the second coding units 910a, 910b, 920a, and 920b . According to one embodiment, the image decoding apparatus 150 divides the non-square left second encoding unit 910a determined by dividing the first encoding unit 900 in the vertical direction into the horizontal direction, 912a, and 912b. However, when the left second encoding unit 910a is divided in the horizontal direction, the right-side second encoding unit 910b is arranged in the horizontal direction in the same direction as the direction in which the left second encoding unit 910a is divided, As shown in Fig. If the right second encoding unit 910b is divided in the same direction and the third encoding units 914a and 914b are determined, the left second encoding unit 910a and the right second encoding unit 910b are arranged in the horizontal direction The third encoding units 912a, 912b, 914a, and 914b can be determined by being independently divided. However, the image decoding apparatus 150 may divide the first coding unit 900 into four square-shaped second coding units 930a, 930b, 930c, and 930d based on at least one of the block type information and the division type information. And this may be inefficient in terms of image decoding.
일 실시예에 따라 영상 복호화 장치(150)는 수평 방향으로 제1 부호화 단위(330)가 분할되어 결정된 비-정사각형 형태의 제2 부호화 단위(920a 또는 920b)를 수직 방향으로 분할하여 제3 부호화 단위(922a, 922b, 924a, 924b)를 결정할 수 있다. 다만 영상 복호화 장치(150)는 제2 부호화 단위 중 하나(예를 들면 상단 제2 부호화 단위(920a))를 수직 방향으로 분할한 경우, 상술한 이유에 따라 다른 제2 부호화 단위(예를 들면 하단 부호화 단위(920b))는 상단 제2 부호화 단위(920a)가 분할된 방향과 동일하게 수직 방향으로 분할될 수 없도록 제한할 수 있다. According to an embodiment, the image decoding apparatus 150 divides the second encoding unit 920a or 920b in the non-square form determined by dividing the first encoding unit 330 in the horizontal direction into the vertical direction, (922a, 922b, 924a, 924b). However, if one of the second coding units (for example, the upper second coding unit 920a) is divided in the vertical direction, the video decoding apparatus 150 may generate a second coding unit (for example, Coding unit 920b) can be restricted so that the upper second encoding unit 920a can not be divided vertically in the same direction as the divided direction.
도 10은 일 실시예에 따라 분할 형태 정보가 4개의 정사각형 형태의 부호화 단위로 분할하는 것을 나타낼 수 없는 경우, 영상 복호화 장치(150)가 정사각형 형태의 부호화 단위를 분할하는 과정을 도시한다.FIG. 10 illustrates a process in which the image decoding apparatus 150 divides a square-shaped encoding unit when the division type information can not be divided into four square-shaped encoding units according to an embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제1 부호화 단위(1000)를 분할하여 제2 부호화 단위(1010a, 1010b, 1020a, 1020b 등)를 결정할 수 있다. 분할 형태 정보에는 부호화 단위가 분할될 수 있는 다양한 형태에 대한 정보가 포함될 수 있으나, 다양한 형태에 대한 정보에는 정사각형 형태의 4개의 부호화 단위로 분할하기 위한 정보가 포함될 수 없는 경우가 있다. 이러한 분할 형태 정보에 따르면, 영상 복호화 장치(150)는 정사각형 형태의 제1 부호화 단위(1000)를 4개의 정사각형 형태의 제2 부호화 단위(1030a, 1030b, 1030c, 1030d)로 분할하지 못한다. 분할 형태 정보에 기초하여 영상 복호화 장치(150)는 비-정사각형 형태의 제2 부호화 단위(1010a, 1010b, 1020a, 1020b 등)를 결정할 수 있다. According to one embodiment, the image decoding apparatus 150 divides the first encoding unit 1000 based on at least one of the block type information and the division type information to generate the second encoding units 1010a, 1010b, 1020a, and 1020b You can decide. The division type information may include information on various types in which the coding unit can be divided, but information on various types may not include information for dividing into four square units of coding units. According to the division type information, the image decoding apparatus 150 can not divide the first encoding unit 1000 in the square form into the second encoding units 1030a, 1030b, 1030c, and 1030d in the form of four squares. The image decoding apparatus 150 can determine the second encoding units 1010a, 1010b, 1020a, and 1020b in the non-square form based on the division type information.
일 실시예에 따라 영상 복호화 장치(150)는 비-정사각형 형태의 제2 부호화 단위(1010a, 1010b, 1020a, 1020b 등)를 각각 독립적으로 분할할 수 있다. 재귀적인 방법을 통해 제2 부호화 단위(1010a, 1010b, 1020a, 1020b 등) 각각이 소정의 순서대로 분할될 수 있으며, 이는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 제1 부호화 단위(1000)가 분할되는 방법에 대응하는 분할 방법일 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may independently divide the non-square second encoding units 1010a, 1010b, 1020a, and 1020b, respectively. Each of the second encoding units 1010a, 1010b, 1020a, 1020b, and the like may be divided in a predetermined order through a recursive method, and the first encoding unit 1000 May be a partitioning method corresponding to a method in which a partition is divided.
예를 들면 영상 복호화 장치(150)는 좌측 제2 부호화 단위(1010a)가 수평 방향으로 분할되어 정사각형 형태의 제3 부호화 단위(1012a, 1012b)를 결정할 수 있고, 우측 제2 부호화 단위(1010b)가 수평 방향으로 분할되어 정사각형 형태의 제3 부호화 단위(1014a, 1014b)를 결정할 수 있다. 나아가 영상 복호화 장치(150)는 좌측 제2 부호화 단위(1010a) 및 우측 제2 부호화 단위(1010b) 모두 수평 방향으로 분할되어 정사각형 형태의 제3 부호화 단위(1016a, 1016b, 1016c, 1016d)를 결정할 수도 있다. 이러한 경우 제1 부호화 단위(1000)가 4개의 정사각형 형태의 제2 부호화 단위(1030a, 1030b, 1030c, 1030d)로 분할된 것과 동일한 형태로 부호화 단위가 결정될 수 있다. For example, the image decoding apparatus 150 can determine the third encoding units 1012a and 1012b in the form of a square by dividing the left second encoding unit 1010a in the horizontal direction, and the right second encoding unit 1010b It is possible to determine the third encoding units 1014a and 1014b in the form of a square by being divided in the horizontal direction. Furthermore, the image decoding apparatus 150 may divide the left second encoding unit 1010a and the right second encoding unit 1010b in the horizontal direction to determine the third encoding units 1016a, 1016b, 1016c, and 1016d in the form of a square have. In this case, the encoding unit may be determined in the same manner as the first encoding unit 1000 is divided into the four second square encoding units 1030a, 1030b, 1030c, and 1030d.
또 다른 예를 들면 영상 복호화 장치(150)는 상단 제2 부호화 단위(1020a)가 수직 방향으로 분할되어 정사각형 형태의 제3 부호화 단위(1022a, 1022b)를 결정할 수 있고, 하단 제2 부호화 단위(1020b)가 수직 방향으로 분할되어 정사각형 형태의 제3 부호화 단위(1024a, 1024b)를 결정할 수 있다. 나아가 영상 복호화 장치(150)는 상단 제2 부호화 단위(1020a) 및 하단 제2 부호화 단위(1020b) 모두 수직 방향으로 분할되어 정사각형 형태의 제3 부호화 단위(1022a, 1022b, 1024a, 1024b)를 결정할 수도 있다. 이러한 경우 제1 부호화 단위(1000)가 4개의 정사각형 형태의 제2 부호화 단위(1030a, 1030b, 1030c, 1030d)로 분할된 것과 동일한 형태로 부호화 단위가 결정될 수 있다.  In another example, the image decoding apparatus 150 can determine the third encoding units 1022a and 1022b in the shape of a square by dividing the upper second encoding unit 1020a in the vertical direction, and the lower second encoding units 1020b Can be divided in the vertical direction to determine the third encoding units 1024a and 1024b in the form of a square. Further, the image decoding apparatus 150 may divide the upper second encoding unit 1020a and the lower second encoding unit 1020b in the vertical direction to determine the third encoding units 1022a, 1022b, 1024a, and 1024b in the form of a square have. In this case, the encoding unit may be determined in the same manner as the first encoding unit 1000 is divided into the four second square encoding units 1030a, 1030b, 1030c, and 1030d.
도 11는 일 실시예에 따라 복수개의 부호화 단위들 간의 처리 순서가 부호화 단위의 분할 과정에 따라 달라질 수 있음을 도시한 것이다.11 illustrates that the processing order among a plurality of coding units may be changed according to the division process of the coding unit according to an embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보에 기초하여 제1 부호화 단위(1100)를 분할할 수 있다. 블록 형태 정보가 정사각형 형태를 나타내고, 분할 형태 정보가 제1 부호화 단위(1100)가 수평 방향 및 수직 방향 중 적어도 하나의 방향으로 분할됨을 나타내는 경우, 영상 복호화 장치(150)는 제1 부호화 단위(1100)를 분할하여 제2 부호화 단위(예를 들면, 1110a, 1110b, 1120a, 1120b, 1130a, 1130b, 1130c, 1130d 등)를 결정할 수 있다. 도 11을 참조하면 제1 부호화 단위1100)가 수평 방향 또는 수직 방향만으로 분할되어 결정된 비-정사각형 형태의 제2 부호화 단위(1110a, 1110b, 1120a, 1120b)는 각각에 대한 블록 형태 정보 및 분할 형태 정보에 기초하여 독립적으로 분할될 수 있다. 예를 들면 영상 복호화 장치(150)는 제1 부호화 단위(1100)가 수직 방향으로 분할되어 생성된 제2 부호화 단위(1110a, 1110b)를 수평 방향으로 각각 분할하여 제3 부호화 단위(1116a, 1116b, 1116c, 1116d)를 결정할 수 있고, 제1 부호화 단위(1100)가 수평 방향으로 분할되어 생성된 제2 부호화 단위(1120a, 1120b)를 수평 방향으로 각각 분할하여 제3 부호화 단위(1126a, 1126b, 1126c, 1126d)를 결정할 수 있다. 이러한 제2 부호화 단위(1110a, 1110b, 1120a, 1120b)의 분할 과정은 도 9와 관련하여 상술하였으므로 자세한 설명은 생략하도록 한다. According to an embodiment, the image decoding apparatus 150 may divide the first encoding unit 1100 based on the block type information and the division type information. When the block type information indicates a square shape and the division type information indicates that the first encoding unit 1100 is divided into at least one of a horizontal direction and a vertical direction, the image decoding apparatus 150 includes a first encoding unit 1100 (For example, 1110a, 1110b, 1120a, 1120b, 1130a, 1130b, 1130c, 1130d, etc.) Referring to FIG. 11, the non-square second encoding units 1110a, 1110b, 1120a, and 1120b, which are determined by dividing the first encoding unit 1100 only in the horizontal direction or the vertical direction, As shown in FIG. For example, the image decoding apparatus 150 divides the second encoding units 1110a and 1110b generated by dividing the first encoding unit 1100 in the vertical direction into the horizontal direction, and outputs the third encoding units 1116a and 1116b, 1116c and 1116d can be determined and the second encoding units 1120a and 1120b generated by dividing the first encoding unit 1100 in the horizontal direction are respectively divided in the horizontal direction to generate third encoding units 1126a, 1126b and 1126c , 1126d. Since the process of dividing the second encoding units 1110a, 1110b, 1120a, and 1120b has been described in detail with reference to FIG. 9, a detailed description thereof will be omitted.
일 실시예에 따라 영상 복호화 장치(150)는 소정의 순서에 따라 부호화 단위를 처리할 수 있다. 소정의 순서에 따른 부호화 단위의 처리에 대한 특징은 도 6과 관련하여 상술하였으므로 자세한 설명은 생략하도록 한다. 도 11을 참조하면 영상 복호화 장치(150)는 정사각형 형태의 제1 부호화 단위(1100)를 분할하여 4개의 정사각형 형태의 제3 부호화 단위(1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, 1126d)를 결정할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 제1 부호화 단위(1100)가 분할되는 형태에 따라 제3 부호화 단위(1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, 1126d)의 처리 순서를 결정할 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may process an encoding unit in a predetermined order. The features of the processing of the encoding unit according to the predetermined order have been described above with reference to FIG. 6, and a detailed description thereof will be omitted. 11, the image decoding apparatus 150 divides a first encoding unit 1100 in a square form into 4 pieces of fourth encoding units 1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, 1126d Can be determined. According to one embodiment, the image decoding apparatus 150 may process the third encoding units 1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, and 1126d according to the form in which the first encoding unit 1100 is divided You can decide.
일 실시예에 따라 영상 복호화 장치(150)는 수직 방향으로 분할되어 생성된 제2 부호화 단위(1110a, 1110b)를 수평 방향으로 각각 분할하여 제3 부호화 단위(1116a, 1116b, 1116c, 1116d)를 결정할 수 있고, 영상 복호화 장치(150)는 좌측 제2 부호화 단위(1110a)에 포함되는 제3 부호화 단위(1116a, 1116b)를 수직 방향으로 먼저 처리한 후, 우측 제2 부호화 단위(1110b)에 포함되는 제3 부호화 단위(1116c, 1116d)를 수직 방향으로 처리하는 순서(1117)에 따라 제3 부호화 단위(1116a, 1116b, 1116c, 1116d)를 처리할 수 있다. According to an embodiment, the image decoding apparatus 150 divides the second encoding units 1110a and 1110b generated in the vertical direction into the horizontal direction to determine the third encoding units 1116a, 1116b, 1116c, and 1116d And the image decoding apparatus 150 first processes the third encoding units 1116a and 1116b included in the left second encoding unit 1110a in the vertical direction and then processes the third encoding units 1116a and 1116b included in the right second encoding unit 1110b The third encoding units 1116a, 1116b, 1116c, and 1116d may be processed in accordance with an order 1117 of processing the third encoding units 1116c and 1116d in the vertical direction.
일 실시예에 따라 영상 복호화 장치(150)는 수평 방향으로 분할되어 생성된 제2 부호화 단위(1120a, 1120b)를 수직 방향으로 각각 분할하여 제3 부호화 단위(1126a, 1126b, 1126c, 1126d)를 결정할 수 있고, 영상 복호화 장치(150)는 상단 제2 부호화 단위(1120a)에 포함되는 제3 부호화 단위(1126a, 1126b)를 수평 방향으로 먼저 처리한 후, 하단 제2 부호화 단위(1120b)에 포함되는 제3 부호화 단위(1126c, 1126d)를 수평 방향으로 처리하는 순서(1127)에 따라 제3 부호화 단위(1126a, 1126b, 1126c, 1126d)를 처리할 수 있다.According to an embodiment, the image decoding apparatus 150 divides the second encoding units 1120a and 1120b generated in the horizontal direction into vertical directions to determine the third encoding units 1126a, 1126b, 1126c, and 1126d The image decoding apparatus 150 first processes the third encoding units 1126a and 1126b included in the upper second encoding unit 1120a in the horizontal direction and then processes the third encoding units 1126a and 1126b included in the lower second encoding unit 1120b The third encoding units 1126a, 1126b, 1126c, and 1126d can be processed according to the order 1127 of processing the third encoding units 1126c and 1126d in the horizontal direction.
도 11을 참조하면, 제2 부호화 단위(1110a, 1110b, 1120a, 1120b)가 각각 분할되어 정사각형 형태의 제3 부호화 단위(1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, 1126d)가 결정될 수 있다. 수직 방향으로 분할되어 결정된 제2 부호화 단위(1110a, 1110b) 및 수평 방향으로 분할되어 결정된 제2 부호화 단위(1120a, 1120b)는 서로 다른 형태로 분할된 것이지만, 이후에 결정되는 제3 부호화 단위(1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, 1126d)에 따르면 결국 동일한 형태의 부호화 단위들로 제1 부호화 단위(1100)가 분할된 결과가 된다. 이에 따라 영상 복호화 장치(150)는 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 상이한 과정을 통해 재귀적으로 부호화 단위를 분할함으로써 결과적으로 동일한 형태의 부호화 단위들을 결정하더라도, 동일한 형태로 결정된 복수개의 부호화 단위들을 서로 다른 순서로 처리할 수 있다.Referring to FIG. 11, the second encoding units 1110a, 1110b, 1120a, and 1120b are divided to determine the third encoding units 1116a, 1116b, 1116c, 1116d, 1126a, 1126b, 1126c, and 1126d, have. The second encoding units 1110a and 1110b determined to be divided in the vertical direction and the second encoding units 1120a and 1120b determined to be divided in the horizontal direction are divided into different formats, but the third encoding units 1116a , 1116b, 1116c, 1116d, 1126a, 1126b, 1126c and 1126d, the result is that the first encoding unit 1100 is divided into the same type of encoding units. Accordingly, the image decoding apparatus 150 divides the encoding unit recursively through different processes based on at least one of the block type information and the division type information, thereby eventually determining the same type of encoding units, Lt; RTI ID = 0.0 > units of < / RTI >
도 12는 일 실시예에 따라 부호화 단위가 재귀적으로 분할되어 복수개의 부호화 단위가 결정되는 경우, 부호화 단위의 형태 및 크기가 변함에 따라 부호화 단위의 심도가 결정되는 과정을 도시한다.FIG. 12 illustrates a process of determining the depth of an encoding unit according to a change in type and size of an encoding unit when a plurality of encoding units are determined by recursively dividing an encoding unit according to an exemplary embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 부호화 단위의 심도를 소정의 기준에 따라 결정할 수 있다. 예를 들면 소정의 기준은 부호화 단위의 긴 변의 길이가 될 수 있다. 영상 복호화 장치(150)는 현재 부호화 단위의 긴 변의 길이가 분할되기 전의 부호화 단위의 긴 변의 길이보다 2n (n>0) 배로 분할된 경우, 현재 부호화 단위의 심도는 분할되기 전의 부호화 단위의 심도보다 n만큼 심도가 증가된 것으로 결정할 수 있다. 이하에서는 심도가 증가된 부호화 단위를 하위 심도의 부호화 단위로 표현하도록 한다.According to an exemplary embodiment, the image decoding apparatus 150 may determine the depth of a coding unit according to a predetermined criterion. For example, a predetermined criterion may be a length of a long side of a coding unit. When the length of the long side of the current coding unit is divided by 2n (n > 0) times longer than the length of the long side of the coding unit before the current coding unit is divided, the depth of the current coding unit is smaller than the depth of the coding unit before being divided it can be determined that the depth is increased by n. Hereinafter, an encoding unit with an increased depth is expressed as a lower-depth encoding unit.
도 12를 참조하면, 일 실시예에 따라 정사각형 형태임을 나타내는 블록 형태 정보(예를 들면 블록 형태 정보는 ′0: SQUARE′를 나타낼 수 있음)에 기초하여 영상 복호화 장치(150)는 정사각형 형태인 제1 부호화 단위(1200)를 분할하여 하위 심도의 제2 부호화 단위(1202), 제3 부호화 단위(1204) 등을 결정할 수 있다. 정사각형 형태의 제1 부호화 단위(1200)의 크기를 2Nx2N이라고 한다면, 제1 부호화 단위(1200)의 너비 및 높이를 1/21배로 분할하여 결정된 제2 부호화 단위(1202)는 NxN의 크기를 가질 수 있다. 나아가 제2 부호화 단위(1202)의 너비 및 높이를 1/2크기로 분할하여 결정된 제3 부호화 단위(1204)는 N/2xN/2의 크기를 가질 수 있다. 이 경우 제3 부호화 단위(1204)의 너비 및 높이는 제1 부호화 단위(1200)의 1/22배에 해당한다. 제1 부호화 단위(1200)의 심도가 D인 경우 제1 부호화 단위(1200)의 너비 및 높이의 1/21배인 제2 부호화 단위(1202)의 심도는 D+1일 수 있고, 제1 부호화 단위(1200)의 너비 및 높이의 1/22배인 제3 부호화 단위(1204)의 심도는 D+2일 수 있다. 12, based on block type information (e.g., block type information may indicate '0: SQUARE') indicating a square form according to an embodiment, the image decoding apparatus 150 may generate a square form 1 encoding unit 1200 can be divided to determine the second encoding unit 1202, the third encoding unit 1204, and the like of the lower depth. If the size of the first encoding unit 1200 in the square form is 2Nx2N, the second encoding unit 1202 determined by dividing the width and height of the first encoding unit 1200 by 1/21 times has a size of NxN have. Furthermore, the third encoding unit 1204 determined by dividing the width and height of the second encoding unit 1202 by a half size may have a size of N / 2xN / 2. In this case, the width and height of the third encoding unit 1204 correspond to 1/22 times of the first encoding unit 1200. If the depth of the first encoding unit 1200 is D, the depth of the second encoding unit 1202, which is 1/21 times the width and height of the first encoding unit 1200, may be D + 1, The depth of the third encoding unit 1204, which is one-22 times the width and height of the third encoding unit 1200, may be D + 2.
일 실시예에 따라 비-정사각형 형태를 나타내는 블록 형태 정보(예를 들면 블록 형태 정보는, 높이가 너비보다 긴 비-정사각형임을 나타내는 ′1: NS_VER′ 또는 너비가 높이보다 긴 비-정사각형임을 나타내는 ′2: NS_HOR′를 나타낼 수 있음)에 기초하여, 영상 복호화 장치(150)는 비-정사각형 형태인 제1 부호화 단위(1210 또는 1220)를 분할하여 하위 심도의 제2 부호화 단위(1212 또는 1222), 제3 부호화 단위(1214 또는 1224) 등을 결정할 수 있다. According to an exemplary embodiment, block type information indicating a non-square shape (for example, block type information is' 1: NS_VER 'indicating that the height is a non-square having a width greater than the width or' 2), the image decoding apparatus 150 divides the non-square first coding unit 1210 or 1220 and outputs the second coding unit 1212 or 1222 of lower depth, The third encoding unit 1214 or 1224, or the like.
영상 복호화 장치(150)는 Nx2N 크기의 제1 부호화 단위(1210)의 너비 및 높이 중 적어도 하나를 분할하여 제2 부호화 단위(예를 들면, 1202, 1212, 1222 등)를 결정할 수 있다. 즉, 영상 복호화 장치(150)는 제1 부호화 단위(1210)를 수평 방향으로 분할하여 NxN 크기의 제2 부호화 단위(1202) 또는 NxN/2 크기의 제2 부호화 단위(1222)를 결정할 수 있고, 수평 방향 및 수직 방향으로 분할하여 N/2xN 크기의 제2 부호화 단위(1212)를 결정할 수도 있다.The image decoding apparatus 150 may determine a second encoding unit (e.g., 1202, 1212, 1222, etc.) by dividing at least one of the width and height of the first encoding unit 1210 of Nx2N size. That is, the image decoding apparatus 150 may determine the second encoding unit 1202 of the NxN size or the second encoding unit 1222 of the NxN / 2 size by dividing the first encoding unit 1210 in the horizontal direction, The second encoding unit 1212 of N / 2xN size may be determined by dividing the second encoding unit 1212 in the horizontal direction and the vertical direction.
일 실시예에 따라 영상 복호화 장치(150)는 2NxN 크기의 제1 부호화 단위(1220) 의 너비 및 높이 중 적어도 하나를 분할하여 제2 부호화 단위(예를 들면, 1202, 1212, 1222 등)를 결정할 수도 있다. 즉, 영상 복호화 장치(150)는 제1 부호화 단위(1220)를 수직 방향으로 분할하여 NxN 크기의 제2 부호화 단위(1202) 또는 N/2xN 크기의 제2 부호화 단위(1212)를 결정할 수 있고, 수평 방향 및 수직 방향으로 분할하여 NxN/2 크기의 제2 부호화 단위(1222)를 결정할 수도 있다.According to one embodiment, the image decoding apparatus 150 divides at least one of the width and the height of the 2NxN first encoding unit 1220 to determine a second encoding unit (for example, 1202, 1212, 1222, etc.) It is possible. That is, the image decoding apparatus 150 may determine the second encoding unit 1202 of NxN size or the second encoding unit 1212 of N / 2xN size by dividing the first encoding unit 1220 in the vertical direction, The second encoding unit 1222 of NxN / 2 size may be determined by dividing the image data in the horizontal direction and the vertical direction.
일 실시예에 따라 영상 복호화 장치(150)는 NxN 크기의 제2 부호화 단위(1202) 의 너비 및 높이 중 적어도 하나를 분할하여 제3 부호화 단위(예를 들면, 1204, 1214, 1224 등)를 결정할 수도 있다. 즉, 영상 복호화 장치(150)는 제2 부호화 단위(1202)를 수직 방향 및 수평 방향으로 분할하여 N/2xN/2 크기의 제3 부호화 단위(1204)를 결정하거나 N/2xN/2 크기의 제3 부호화 단위(1214)를 결정하거나 N/2xN/2 크기의 제3 부호화 단위(1224)를 결정할 수 있다.According to an embodiment, the image decoding apparatus 150 divides at least one of the width and the height of the second encoding unit 1202 of NxN size to determine a third encoding unit (for example, 1204, 1214, 1224, etc.) It is possible. That is, the image decoding apparatus 150 determines the third encoding unit 1204 of N / 2xN / 2 size by dividing the second encoding unit 1202 in the vertical direction and the horizontal direction, or determines the third encoding unit 1204 of N / 2xN / 3 encoding unit 1214 or a third encoding unit 1224 of N / 2xN / 2 size.
일 실시예에 따라 영상 복호화 장치(150)는 N/2xN 크기의 제2 부호화 단위(1212)의 너비 및 높이 중 적어도 하나를 분할하여 제3 부호화 단위(예를 들면, 1204, 1214, 1224 등)를 결정할 수도 있다. 즉, 영상 복호화 장치(150)는 제2 부호화 단위(1212)를 수평 방향으로 분할하여 N/2xN/2 크기의 제3 부호화 단위(1204) 또는 N/2xN/2 크기의 제3 부호화 단위(1224)를 결정하거나 수직 방향 및 수평 방향으로 분할하여 N/2xN/2 크기의 제3 부호화 단위(1214)를 결정할 수 있다.According to an embodiment, the image decoding apparatus 150 divides at least one of the width and the height of the second encoding unit 1212 of N / 2xN size into a third encoding unit (for example, 1204, 1214, 1224, . That is, the image decoding apparatus 150 divides the second encoding unit 1212 in the horizontal direction to generate a third encoding unit 1204 of N / 2xN / 2 or a third encoding unit 1224 of N / 2xN / 2 size ) Or may be divided in the vertical and horizontal directions to determine the third encoding unit 1214 of N / 2xN / 2 size.
일 실시예에 따라 영상 복호화 장치(150)는 NxN/2 크기의 제2 부호화 단위(1214)의 너비 및 높이 중 적어도 하나를 분할하여 제3 부호화 단위(예를 들면, 1204, 1214, 1224 등)를 결정할 수도 있다. 즉, 영상 복호화 장치(150)는 제2 부호화 단위(1212)를 수직 방향으로 분할하여 N/2xN/2 크기의 제3 부호화 단위(1204) 또는 N/2xN/2 크기의 제3 부호화 단위(1214)를 결정하거나 수직 방향 및 수평 방향으로 분할하여 N/2xN/2크기의 제3 부호화 단위(1224)를 결정할 수 있다.According to an embodiment, the image decoding apparatus 150 divides at least one of the width and the height of the second encoding unit 1214 of NxN / 2 size to generate a third encoding unit (e.g., 1204, 1214, 1224, etc.) . That is, the image decoding apparatus 150 divides the second encoding unit 1212 in the vertical direction to generate a third encoding unit 1204 of N / 2xN / 2 or a third encoding unit 1214 of N / 2xN / 2 size ) Or may be divided in the vertical and horizontal directions to determine the third encoding unit 1224 of N / 2xN / 2 size.
일 실시예에 따라 영상 복호화 장치(150)는 정사각형 형태의 부호화 단위(예를 들면, 1200, 1202, 1204)를 수평 방향 또는 수직 방향으로 분할할 수 있다. 예를 들면, 2Nx2N 크기의 제1 부호화 단위(1200)를 수직 방향으로 분할하여 Nx2N 크기의 제1 부호화 단위(1210)를 결정하거나 수평 방향으로 분할하여 2NxN 크기의 제1 부호화 단위(1220)를 결정할 수 있다. 일 실시예에 따라 심도가 부호화 단위의 가장 긴 변의 길이에 기초하여 결정되는 경우, 2Nx2N 크기의 제1 부호화 단위(1200, 1202 또는 1204)가 수평 방향 또는 수직 방향으로 분할되어 결정되는 부호화 단위의 심도는 제1 부호화 단위(1200, 1202 또는 1204)의 심도와 동일할 수 있다.According to an embodiment, the image decoding apparatus 150 may divide a square-shaped encoding unit (for example, 1200, 1202, and 1204) into a horizontal direction or a vertical direction. For example, the first encoding unit 1200 having a size of 2Nx2N is divided in the vertical direction to determine a first encoding unit 1210 having a size of Nx2N or the first encoding unit 1210 having a size of 2NxN to determine a first encoding unit 1220 having a size of 2NxN . According to one embodiment, when the depth is determined based on the length of the longest side of the encoding unit, the depth of the encoding unit in which the first encoding unit 1200, 1202, or 1204 of size 2Nx2N is divided in the horizontal direction or the vertical direction is determined May be the same as the depth of the first encoding unit 1200, 1202 or 1204.
일 실시예에 따라 제3 부호화 단위(1214 또는 1224)의 너비 및 높이는 제1 부호화 단위(1210 또는 1220)의 1/2배에 해당할 수 있다. 제1 부호화 단위(1210 또는 1220)의 심도가 D인 경우 제1 부호화 단위(1210 또는 1220)의 너비 및 높이의 1/2배인 제2 부호화 단위(1212 또는 1214)의 심도는 D+1일 수 있고, 제1 부호화 단위(1210 또는 1220)의 너비 및 높이의 1/2배인 제3 부호화 단위(1214 또는 1224)의 심도는 D+2일 수 있다. According to an embodiment, the width and height of the third encoding unit 1214 or 1224 may correspond to 1/2 of the first encoding unit 1210 or 1220. [ When the depth of the first coding unit 1210 or 1220 is D, the depth of the second coding unit 1212 or 1214 which is half the width and height of the first coding unit 1210 or 1220 is D + And the depth of the third encoding unit 1214 or 1224, which is half the width and height of the first encoding unit 1210 or 1220, may be D + 2.
도 13은 일 실시예에 따라 부호화 단위들의 형태 및 크기에 따라 결정될 수 있는 심도 및 부호화 단위 구분을 위한 인덱스(part index, 이하 PID)를 도시한다.FIG. 13 illustrates a depth index (hereinafter referred to as PID) for coding unit classification and depth that can be determined according to the type and size of coding units according to an exemplary embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 정사각형 형태의 제1 부호화 단위(1300)를 분할하여 다양한 형태의 제2 부호화 단위를 결정할 수 있다. 도 13을 참조하면, 영상 복호화 장치(150)는 분할 형태 정보에 따라 제1 부호화 단위(1300)를 수직 방향 및 수평 방향 중 적어도 하나의 방향으로 분할하여 제2 부호화 단위(1302a, 1302b, 1304a, 1304b, 1306a, 1306b, 1306c, 1306d)를 결정할 수 있다. 즉, 영상 복호화 장치(150)는 제1 부호화 단위(1300)에 대한 분할 형태 정보에 기초하여 제2 부호화 단위(1302a, 1302b, 1304a, 1304b, 1306a, 1306b, 1306c, 1306d)를 결정할 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may determine a second type of encoding unit by dividing the first encoding unit 1300 in a square form. 13, the image decoding apparatus 150 divides the first encoding unit 1300 into at least one of a vertical direction and a horizontal direction according to the division type information, and outputs the second encoding units 1302a, 1302b, 1304a, 1304b, 1306a, 1306b, 1306c, and 1306d. That is, the image decoding apparatus 150 can determine the second encoding units 1302a, 1302b, 1304a, 1304b, 1306a, 1306b, 1306c, and 1306d based on the division type information for the first encoding unit 1300. [
일 실시예에 따라 정사각형 형태의 제1 부호화 단위(1300)에 대한 분할 형태 정보에 따라 결정되는 제2 부호화 단위(1302a, 1302b, 1304a, 1304b, 1306a, 1306b, 1306c, 1306d)는 긴 변의 길이에 기초하여 심도가 결정될 수 있다. 예를 들면, 정사각형 형태의 제1 부호화 단위(1300)의 한 변의 길이와 비-정사각형 형태의 제2 부호화 단위(1302a, 1302b, 1304a, 1304b)의 긴 변의 길이가 동일하므로, 제1 부호화 단위(1300)와 비-정사각형 형태의 제2 부호화 단위(1302a, 1302b, 1304a, 1304b)의 심도는 D로 동일하다고 볼 수 있다. 이에 반해 영상 복호화 장치(150)가 분할 형태 정보에 기초하여 제1 부호화 단위(1300)를 4개의 정사각형 형태의 제2 부호화 단위(1306a, 1306b, 1306c, 1306d)로 분할한 경우, 정사각형 형태의 제2 부호화 단위(1306a, 1306b, 1306c, 1306d)의 한 변의 길이는 제1 부호화 단위(1300)의 한 변의 길이의 1/2배 이므로, 제2 부호화 단위(1306a, 1306b, 1306c, 1306d)의 심도는 제1 부호화 단위(1300)의 심도인 D보다 한 심도 하위인 D+1의 심도일 수 있다.The second encoding units 1302a, 1302b, 1304a, 1304b, 1306a, 1306b, 1306c, and 1306d, which are determined according to the division type information for the first encoding unit 1300 in a square form, Depth can be determined based on. For example, since the length of one side of the square-shaped first encoding unit 1300 and the length of longer sides of the non-square-shaped second encoding units 1302a, 1302b, 1304a, and 1304b are the same, 1300) and the non-square type second encoding units 1302a, 1302b, 1304a, and 1304b are denoted by D in the same manner. On the other hand, when the image decoding apparatus 150 divides the first encoding unit 1300 into four square-shaped second encoding units 1306a, 1306b, 1306c, and 1306d based on the division type information, 1306b, 1306c, and 1306d are 1/2 times the length of one side of the first encoding unit 1300, the depths of the second encoding units 1306a, 1306b, 1306c, May be a depth of D + 1 which is one depth lower than D, which is the depth of the first encoding unit 1300.
일 실시예에 따라 영상 복호화 장치(150)는 높이가 너비보다 긴 형태의 제1 부호화 단위(1310)를 분할 형태 정보에 따라 수평 방향으로 분할하여 복수개의 제2 부호화 단위(1312a, 1312b, 1314a, 1314b, 1314c)로 분할할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 너비가 높이보다 긴 형태의 제1 부호화 단위(1320)를 분할 형태 정보에 따라 수직 방향으로 분할하여 복수개의 제2 부호화 단위(1322a, 1322b, 1324a, 1324b, 1324c)로 분할할 수 있다.According to one embodiment, the image decoding apparatus 150 divides a first encoding unit 1310 having a height greater than a width in a horizontal direction according to division type information, and generates a plurality of second encoding units 1312a, 1312b, 1314a, 1314b, and 1314c. According to an exemplary embodiment, the image decoding apparatus 150 divides a first encoding unit 1320 having a length greater than a height in a vertical direction according to the division type information to generate a plurality of second encoding units 1322a, 1322b, 1324a, 1324b, and 1324c.
일 실시예에 따라 비-정사각형 형태의 제1 부호화 단위(1310 또는 1320)에 대한 분할 형태 정보에 따라 결정되는 제2 부호화 단위(1312a, 1312b, 1314a, 1314b, 1316a, 1316b, 1316c, 1316d)는 긴 변의 길이에 기초하여 심도가 결정될 수 있다. 예를 들면, 정사각형 형태의 제2 부호화 단위(1312a, 1312b)의 한 변의 길이는 높이가 너비보다 긴 비-정사각형 형태의 제1 부호화 단위(1310)의 한 변의 길이의 1/2배이므로, 정사각형 형태의 제2 부호화 단위(1302a, 1302b, 1304a, 1304b)의 심도는 비-정사각형 형태의 제1 부호화 단위(1310)의 심도 D보다 한 심도 하위의 심도인 D+1이다. The second encoding units 1312a, 1312b, 1314a, 1314b, 1316a, 1316b, 1316c, and 1316d determined according to the division type information for the first encoding unit 1310 or 1320 in the non- The depth can be determined based on the length of the long side. For example, since the length of one side of the square-shaped second encoding units 1312a and 1312b is one-half the length of one side of the non-square first encoding unit 1310 whose height is longer than the width, The depth of the second encoding units 1302a, 1302b, 1304a, and 1304b of the form of D + 1 is one depth lower than the depth D of the first encoding unit 1310 of the non-square form.
나아가 영상 복호화 장치(150)가 분할 형태 정보에 기초하여 비-정사각형 형태의 제1 부호화 단위(1310)를 홀수개의 제2 부호화 단위(1314a, 1314b, 1314c)로 분할할 수 있다. 홀수개의 제2 부호화 단위(1314a, 1314b, 1314c)는 비-정사각형 형태의 제2 부호화 단위(1314a, 1314c) 및 정사각형 형태의 제2 부호화 단위(1314b)를 포함할 수 있다. 이 경우 비-정사각형 형태의 제2 부호화 단위(1314a, 1314c)의 긴 변의 길이 및 정사각형 형태의 제2 부호화 단위(1314b)의 한 변의 길이는 제1 부호화 단위(1310)의 한 변의 길이의 1/2배 이므로, 제2 부호화 단위(1314a, 1314b, 1314c)의 심도는 제1 부호화 단위(1310)의 심도인 D보다 한 심도 하위인 D+1의 심도일 수 있다. 영상 복호화 장치(150)는 제1 부호화 단위(1310)와 관련된 부호화 단위들의 심도를 결정하는 상기 방식에 대응하는 방식으로, 너비가 높이보다 긴 비-정사각형 형태의 제1 부호화 단위(1320)와 관련된 부호화 단위들의 심도를 결정할 수 있다.Furthermore, the image decoding apparatus 150 may divide the non-square first encoding unit 1310 into odd second encoding units 1314a, 1314b, and 1314c based on the division type information. The odd number of second encoding units 1314a, 1314b and 1314c may include non-square second encoding units 1314a and 1314c and a square second encoding unit 1314b. In this case, the long side of the non-square type second encoding units 1314a and 1314c and the length of one side of the second type encoding unit 1314b in the form of a square are set to 1/4 of the length of one side of the first encoding unit 1310, The depth of the second encoding units 1314a, 1314b, and 1314c may be a depth of D + 1 which is one depth lower than the depth D of the first encoding unit 1310. [ The image decoding apparatus 150 is connected to the first coding unit 1320 of a non-square form having a width greater than the height in a manner corresponding to the method of determining the depths of the coding units associated with the first coding unit 1310 The depth of the encoding units can be determined.
일 실시예에 따라 영상 복호화 장치(150)는 분할된 부호화 단위들의 구분을 위한 인덱스(PID)를 결정함에 있어서, 홀수개로 분할된 부호화 단위들이 서로 동일한 크기가 아닌 경우, 부호화 단위들 간의 크기 비율에 기초하여 인덱스를 결정할 수 있다. 도 13을 참조하면, 홀수개로 분할된 부호화 단위들(1314a, 1314b, 1314c) 중 가운데에 위치하는 부호화 단위(1314b)는 다른 부호화 단위들(1314a, 1314c)와 너비는 동일하지만 높이가 다른 부호화 단위들(1314a, 1314c)의 높이의 두 배일 수 있다. 즉, 이 경우 가운데에 위치하는 부호화 단위(1314b)는 다른 부호화 단위들(1314a, 1314c)의 두 개를 포함할 수 있다. 따라서, 스캔 순서에 따라 가운데에 위치하는 부호화 단위(1314b)의 인덱스(PID)가 1이라면 그 다음 순서에 위치하는 부호화 단위(1314c)는 인덱스가 2가 증가한 3일수 있다. 즉 인덱스의 값의 불연속성이 존재할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 이러한 분할된 부호화 단위들 간의 구분을 위한 인덱스의 불연속성의 존재 여부에 기초하여 홀수개로 분할된 부호화 단위들이 서로 동일한 크기가 아닌지 여부를 결정할 수 있다. According to one embodiment, in determining an index (PID) for distinguishing divided coding units, when the odd-numbered coding units are not the same size, the image decoding apparatus 150 may calculate a size ratio between the coding units The index can be determined based on the index. Referring to FIG. 13, an encoding unit 1314b positioned at the center among odd-numbered encoding units 1314a, 1314b, and 1314c has the same width as other encoding units 1314a and 1314c, May be twice as high as the height of the sidewalls 1314a, 1314c. That is, in this case, the middle encoding unit 1314b may include two of the other encoding units 1314a and 1314c. Accordingly, if the index (PID) of the coding unit 1314b located at the center is 1 according to the scanning order, the coding unit 1314c positioned next to the coding unit 1314c may be three days in which the index is increased by two. That is, there may be a discontinuity in the value of the index. According to an exemplary embodiment, the image decoding apparatus 150 may determine whether odd-numbered encoding units are not the same size based on whether there is an index discontinuity for distinguishing between the divided encoding units.
일 실시예에 따라 영상 복호화 장치(150)는 현재 부호화 단위로부터 분할되어 결정된 복수개의 부호화 단위들을 구분하기 위한 인덱스의 값에 기초하여 특정 분할 형태로 분할된 것인지를 결정할 수 있다. 도 13을 참조하면 영상 복호화 장치(150)는 높이가 너비보다 긴 직사각형 형태의 제1 부호화 단위(1310)를 분할하여 짝수개의 부호화 단위(1312a, 1312b)를 결정하거나 홀수개의 부호화 단위(1314a, 1314b, 1314c)를 결정할 수 있다. 영상 복호화 장치(150)는 복수개의 부호화 단위 각각을 구분하기 위하여 각 부호화 단위를 나타내는 인덱스(PID)를 이용할 수 있다. 일 실시예에 따라 PID는 각각의 부호화 단위의 소정 위치의 샘플(예를 들면, 좌측 상단 샘플)에서 획득될 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may determine whether the image is divided into a specific division form based on a value of an index for distinguishing a plurality of coding units divided and determined from the current coding unit. 13, the image decoding apparatus 150 divides a rectangular first encoding unit 1310 having a height greater than the width to determine an even number of encoding units 1312a and 1312b or an odd number of encoding units 1314a and 1314b , 1314c. The image decoding apparatus 150 may use an index (PID) indicating each coding unit to identify each of the plurality of coding units. According to one embodiment, the PID may be obtained at a sample of a predetermined position of each coding unit (e.g., the upper left sample).
일 실시예에 따라 영상 복호화 장치(150)는 부호화 단위의 구분을 위한 인덱스를 이용하여 분할되어 결정된 부호화 단위들 중 소정 위치의 부호화 단위를 결정할 수 있다. 일 실시예에 따라 높이가 너비보다 긴 직사각형 형태의 제1 부호화 단위(1310)에 대한 분할 형태 정보가 3개의 부호화 단위로 분할됨을 나타내는 경우 영상 복호화 장치(150)는 제1 부호화 단위(1310)를 3개의 부호화 단위(1314a, 1314b, 1314c)로 분할할 수 있다. 영상 복호화 장치(150)는 3개의 부호화 단위(1314a, 1314b, 1314c) 각각에 대한 인덱스를 할당할 수 있다. 영상 복호화 장치(150)는 홀수개로 분할된 부호화 단위 중 가운데 부호화 단위를 결정하기 위하여 각 부호화 단위에 대한 인덱스를 비교할 수 있다. 영상 복호화 장치(150)는 부호화 단위들의 인덱스에 기초하여 인덱스들 중 가운데 값에 해당하는 인덱스를 갖는 부호화 단위(1314b)를, 제1 부호화 단위(1310)가 분할되어 결정된 부호화 단위 중 가운데 위치의 부호화 단위로서 결정할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 분할된 부호화 단위들의 구분을 위한 인덱스를 결정함에 있어서, 부호화 단위들이 서로 동일한 크기가 아닌 경우, 부호화 단위들 간의 크기 비율에 기초하여 인덱스를 결정할 수 있다. 도 13을 참조하면, 제1 부호화 단위(1310)가 분할되어 생성된 부호화 단위(1314b)는 다른 부호화 단위들(1314a, 1314c)와 너비는 동일하지만 높이가 다른 부호화 단위들(1314a, 1314c)의 높이의 두 배일 수 있다. 이 경우 가운데에 위치하는 부호화 단위(1314b)의 인덱스(PID)가 1이라면 그 다음 순서에 위치하는 부호화 단위(1314c)는 인덱스가 2가 증가한 3일수 있다. 이러한 경우처럼 균일하게 인덱스가 증가하다가 증가폭이 달라지는 경우, 영상 복호화 장치(150)는 다른 부호화 단위들과 다른 크기를 가지는 부호화 단위를 포함하는 복수개의 부호화 단위로 분할된 것으로 결정할 수 있다, 일 실시예에 따라 분할 형태 정보가 홀수개의 부호화 단위로 분할됨을 나타내는 경우, 영상 복호화 장치(150)는 홀수개의 부호화 단위 중 소정 위치의 부호화 단위(예를 들면 가운데 부호화 단위)가 다른 부호화 단위와 크기가 다른 형태로 현재 부호화 단위를 분할할 수 있다. 이 경우 영상 복호화 장치(150)는 부호화 단위에 대한 인덱스(PID)를 이용하여 다른 크기를 가지는 가운데 부호화 단위를 결정할 수 있다. 다만 상술한 인덱스, 결정하고자 하는 소정 위치의 부호화 단위의 크기 또는 위치는 일 실시예를 설명하기 위해 특정한 것이므로 이에 한정하여 해석되어서는 안되며, 다양한 인덱스, 부호화 단위의 위치 및 크기가 이용될 수 있는 것으로 해석되어야 한다. According to an exemplary embodiment, the image decoding apparatus 150 may determine an encoding unit of a predetermined location among the plurality of encoding units determined by using an index for distinguishing an encoding unit. According to an exemplary embodiment, when the division type information for the rectangular first type encoding unit 1310 having a height greater than the width is divided into three encoding units, the image decoding apparatus 150 encodes the first encoding unit 1310 It can be divided into three encoding units 1314a, 1314b, and 1314c. The image decoding apparatus 150 may assign an index to each of the three encoding units 1314a, 1314b, and 1314c. The image decoding apparatus 150 may compare the indices of the respective encoding units in order to determine the middle encoding unit among the encoding units divided into odd numbers. The image decoding apparatus 150 encodes an encoding unit 1314b having an index corresponding to a middle value among indices based on the indices of the encoding units into an encoding unit 1314b for encoding the middle position among the encoding units determined by dividing the first encoding unit 1310 Can be determined as a unit. According to an exemplary embodiment, the image decoding apparatus 150 may determine an index based on a size ratio between coding units when the coding units are not the same size in determining the index for dividing the divided coding units . 13, the coding unit 1314b generated by dividing the first coding unit 1310 is divided into coding units 1314a and 1314c having the same width as the other coding units 1314a and 1314c but different in height Can be double the height. In this case, if the index (PID) of the coding unit 1314b located at the center is 1, the coding unit 1314c located next to the coding unit 1314c may be three days in which the index is increased by two. In this case, if the index increases uniformly and the increment increases, the image decoding apparatus 150 may determine that the image is divided into a plurality of encoding units including encoding units having different sizes from other encoding units. , The image decoding apparatus 150 may be configured such that the encoding unit (for example, the middle encoding unit) at a predetermined position among the odd number of encoding units has a format different from that of the other encoding units The current encoding unit can be divided into. In this case, the image decoding apparatus 150 can determine an encoding unit having a different size by using an index (PID) for the encoding unit. However, the index and the size or position of the encoding unit at a predetermined position to be determined are specific for explaining an embodiment, and thus should not be construed to be limited thereto, and various indexes, positions and sizes of encoding units can be used Should be interpreted.
일 실시예에 따라 영상 복호화 장치(150)는 부호화 단위의 재귀적인 분할이 시작되는 소정의 데이터 단위를 이용할 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may use a predetermined data unit in which recursive division of encoding units starts.
도 14는 일 실시예에 따라 픽처에 포함되는 복수개의 소정의 데이터 단위에 따라 복수개의 부호화 단위들이 결정된 것을 도시한다.FIG. 14 shows that a plurality of coding units are determined according to a plurality of predetermined data units included in a picture according to an embodiment.
일 실시예에 따라 소정의 데이터 단위는 부호화 단위가 블록 형태 정보 및 분할 형태 정보 중 적어도 하나를 이용하여 재귀적으로 분할되기 시작하는 데이터 단위로 정의될 수 있다. 즉, 현재 픽처를 분할하는 복수개의 부호화 단위들이 결정되는 과정에서 이용되는 최상위 심도의 부호화 단위에 해당할 수 있다. 이하에서는 설명 상 편의를 위해 이러한 소정의 데이터 단위를 기준 데이터 단위라고 지칭하도록 한다. According to an exemplary embodiment, a predetermined data unit may be defined as a data unit in which an encoding unit starts to be recursively segmented using at least one of block type information and partition type information. That is, it may correspond to a coding unit of the highest depth used in a process of determining a plurality of coding units for dividing a current picture. Hereinafter, such a predetermined data unit is referred to as a reference data unit for convenience of explanation.
일 실시예에 따라 기준 데이터 단위는 소정의 크기 및 형태를 나타낼 수 있다. 일 실시예에 따라, 기준 부호화 단위는 MxN의 샘플들을 포함할 수 있다. 여기서 M 및 N은 서로 동일할 수도 있으며, 2의 승수로 표현되는 정수일 수 있다. 즉, 기준 데이터 단위는 정사각형 또는 비-정사각형의 형태를 나타낼 수 있으며, 이후에 정수개의 부호화 단위로 분할될 수 있다. According to one embodiment, the reference data unit may represent a predetermined size and shape. According to one embodiment, the reference encoding unit may comprise samples of MxN. Here, M and N may be equal to each other, or may be an integer represented by a multiplier of 2. That is, the reference data unit may represent a square or a non-square shape, and may be divided into an integer number of encoding units.
일 실시예에 따라 영상 복호화 장치(150)는 현재 픽처를 복수개의 기준 데이터 단위로 분할할 수 있다. 일 실시예에 따라 영상 복호화 장치(150)는 현재 픽처를 분할하는 복수개의 기준 데이터 단위를 각각의 기준 데이터 단위에 대한 분할 정보를 이용하여 분할할 수 있다. 이러한 기준 데이터 단위의 분할 과정은 쿼드 트리(quad-tree)구조를 이용한 분할 과정에 대응될 수 있다. According to an embodiment, the image decoding apparatus 150 may divide the current picture into a plurality of reference data units. According to an embodiment, the image decoding apparatus 150 may divide a plurality of reference data units for dividing a current picture by using the division information for each reference data unit. The segmentation process of the reference data unit may correspond to the segmentation process using a quad-tree structure.
일 실시예에 따라 영상 복호화 장치(150)는 현재 픽처에 포함되는 기준 데이터 단위가 가질 수 있는 최소 크기를 미리 결정할 수 있다. 이에 따라, 영상 복호화 장치(150)는 최소 크기 이상의 크기를 갖는 다양한 크기의 기준 데이터 단위를 결정할 수 있고, 결정된 기준 데이터 단위를 기준으로 블록 형태 정보 및 분할 형태 정보를 이용하여 적어도 하나의 부호화 단위를 결정할 수 있다. According to an exemplary embodiment, the image decoding apparatus 150 may determine in advance a minimum size that the reference data unit included in the current picture can have. Accordingly, the image decoding apparatus 150 can determine reference data units of various sizes having a size larger than a minimum size, and determine at least one coding unit using block type information and division type information based on the determined reference data unit You can decide.
도 14를 참조하면, 영상 복호화 장치(150)는 정사각형 형태의 기준 부호화 단위(1400)를 이용할 수 있고, 또는 비-정사각형 형태의 기준 부호화 단위(1402)를 이용할 수도 있다. 일 실시예에 따라 기준 부호화 단위의 형태 및 크기는 적어도 하나의 기준 부호화 단위를 포함할 수 있는 다양한 데이터 단위(예를 들면, 시퀀스(sequence), 픽처(picture), 슬라이스(slice), 슬라이스 세그먼트(slice segment), 최대부호화단위 등)에 따라 결정될 수 있다. Referring to FIG. 14, the image decoding apparatus 150 may use a square-shaped reference encoding unit 1400 or a non-square-shaped reference encoding unit 1402. According to an exemplary embodiment, the type and size of the reference encoding unit may include various data units (e.g., a sequence, a picture, a slice, a slice segment a slice segment, a maximum encoding unit, and the like).
일 실시예에 따라 영상 복호화 장치(150)의 수신부(160)는 기준 부호화 단위의 형태에 대한 정보 및 기준 부호화 단위의 크기에 대한 정보 중 적어도 하나를 상기 다양한 데이터 단위마다 비트스트림으로부터 획득할 수 있다. 정사각형 형태의 기준 부호화 단위(1400)에 포함되는 적어도 하나의 부호화 단위가 결정되는 과정은 도 10의 현재 부호화 단위(300)가 분할되는 과정을 통해 상술하였고, 비-정사각형 형태의 기준 부호화 단위(1400)에 포함되는 적어도 하나의 부호화 단위가 결정되는 과정은 도 11의 현재 부호화 단위(1100 또는 1150)가 분할되는 과정을 통해 상술하였으므로 자세한 설명은 생략하도록 한다.According to an embodiment, the receiver 160 of the video decoding apparatus 150 may acquire at least one of the information on the format of the reference encoding unit and the size of the reference encoding unit from the bit stream for each of the various data units . The process of determining at least one encoding unit included in the reference-type encoding unit 1400 in the form of a square is described in detail in the process of dividing the current encoding unit 300 of FIG. 10, Is determined in the process of dividing the current encoding unit 1100 or 1150 of FIG. 11, so that a detailed description thereof will be omitted.
일 실시예에 따라 영상 복호화 장치(150)는 소정의 조건에 기초하여 미리 결정되는 일부 데이터 단위에 따라 기준 부호화 단위의 크기 및 형태를 결정하기 위하여, 기준 부호화 단위의 크기 및 형태를 식별하기 위한 인덱스를 이용할 수 있다. 즉, 수신부(160)는 비트스트림으로부터 상기 다양한 데이터 단위(예를 들면, 시퀀스, 픽처, 슬라이스, 슬라이스 세그먼트, 최대부호화단위 등) 중 소정의 조건(예를 들면 슬라이스 이하의 크기를 갖는 데이터 단위)을 만족하는 데이터 단위로서 슬라이스, 슬라이스 세그먼트, 최대부호화 단위 등 마다, 기준 부호화 단위의 크기 및 형태의 식별을 위한 인덱스만을 획득할 수 있다. 영상 복호화 장치(150)는 인덱스를 이용함으로써 상기 소정의 조건을 만족하는 데이터 단위마다 기준 데이터 단위의 크기 및 형태를 결정할 수 있다. 기준 부호화 단위의 형태에 대한 정보 및 기준 부호화 단위의 크기에 대한 정보를 상대적으로 작은 크기의 데이터 단위마다 비트스트림으로부터 획득하여 이용하는 경우, 비트스트림의 이용 효율이 좋지 않을 수 있으므로, 기준 부호화 단위의 형태에 대한 정보 및 기준 부호화 단위의 크기에 대한 정보를 직접 획득하는 대신 상기 인덱스만을 획득하여 이용할 수 있다. 이 경우 기준 부호화 단위의 크기 및 형태를 나타내는 인덱스에 대응하는 기준 부호화 단위의 크기 및 형태 중 적어도 하나는 미리 결정되어 있을 수 있다. 즉, 영상 복호화 장치(150)는 미리 결정된 기준 부호화 단위의 크기 및 형태 중 적어도 하나를 인덱스에 따라 선택함으로써, 인덱스 획득의 기준이 되는 데이터 단위에 포함되는 기준 부호화 단위의 크기 및 형태 중 적어도 하나를 결정할 수 있다.In order to determine the size and type of the reference encoding unit in accordance with a predetermined data unit predetermined based on a predetermined condition, the image decoding apparatus 150 may include an index for identifying the size and type of the reference encoding unit Can be used. That is, the receiving unit 160 extracts a predetermined condition (for example, a data unit having a size equal to or smaller than a slice) among the various data units (for example, a sequence, a picture, a slice, a slice segment, It is possible to obtain only an index for identifying the size and type of the reference encoding unit for each slice, slice segment, maximum encoding unit, and the like. The image decoding apparatus 150 can determine the size and shape of the reference data unit for each data unit satisfying the predetermined condition by using the index. When the information on the type of the reference encoding unit and the information on the size of the reference encoding unit are obtained from the bitstream for each relatively small data unit and used, the use efficiency of the bitstream may not be good. Therefore, Information on the size of the reference encoding unit and information on the size of the reference encoding unit can be acquired and used. In this case, at least one of the size and the type of the reference encoding unit corresponding to the index indicating the size and type of the reference encoding unit may be predetermined. That is, the image decoding apparatus 150 selects at least one of the size and the type of the reference encoding unit in accordance with the index so that at least one of the size and the type of the reference encoding unit included in the data unit, You can decide.
일 실시예에 따라 영상 복호화 장치(150)는 하나의 최대 부호화 단위에 포함하는 적어도 하나의 기준 부호화 단위를 이용할 수 있다. 즉, 영상을 분할하는 최대 부호화 단위에는 적어도 하나의 기준 부호화 단위가 포함될 수 있고, 각각의 기준 부호화 단위의 재귀적인 분할 과정을 통해 부호화 단위가 결정될 수 있다. 일 실시예에 따라 최대 부호화 단위의 너비 및 높이 중 적어도 하나는 기준 부호화 단위의 너비 및 높이 중 적어도 하나의 정수배에 해당할 수 있다. 일 실시예에 따라 기준 부호화 단위의 크기는 최대부호화단위를 쿼드 트리 구조에 따라 n번 분할한 크기일 수 있다. 즉, 영상 복호화 장치(150)는 최대부호화단위를 쿼드 트리 구조에 따라 n 번 분할하여 기준 부호화 단위를 결정할 수 있고, 다양한 실시예들에 따라 기준 부호화 단위를 블록 형태 정보 및 분할 형태 정보 중 적어도 하나에 기초하여 분할할 수 있다.According to an exemplary embodiment, the image decoding apparatus 150 may use at least one reference encoding unit included in one maximum encoding unit. That is, the maximum encoding unit for dividing an image may include at least one reference encoding unit, and the encoding unit may be determined through a recursive division process of each reference encoding unit. According to an exemplary embodiment, at least one of the width and the height of the maximum encoding unit may correspond to at least one integer multiple of the width and height of the reference encoding unit. According to an exemplary embodiment, the size of the reference encoding unit may be a size obtained by dividing the maximum encoding unit n times according to a quadtree structure. That is, the image decoding apparatus 150 may determine the reference encoding unit by dividing the maximum encoding unit n times according to the quad tree structure, and may determine the reference encoding unit based on at least one of the block type information and the division type information As shown in FIG.
도 15는 일 실시예에 따라 픽처(1500)에 포함되는 기준 부호화 단위의 결정 순서를 결정하는 기준이 되는 프로세싱 블록을 도시한다.FIG. 15 shows a processing block serving as a reference for determining a determination order of a reference encoding unit included in a picture 1500 according to an embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 픽처를 분할하는 적어도 하나의 프로세싱 블록을 결정할 수 있다. 프로세싱 블록이란, 영상을 분할하는 적어도 하나의 기준 부호화 단위를 포함하는 데이터 단위로서, 프로세싱 블록에 포함되는 적어도 하나의 기준 부호화 단위는 특정 순서대로 결정될 수 있다. 즉, 각각의 프로세싱 블록에서 결정되는 적어도 하나의 기준 부호화 단위의 결정 순서는 기준 부호화 단위가 결정될 수 있는 다양한 순서의 종류 중 하나에 해당할 수 있으며, 각각의 프로세싱 블록에서 결정되는 기준 부호화 단위 결정 순서는 프로세싱 블록마다 상이할 수 있다. 프로세싱 블록마다 결정되는 기준 부호화 단위의 결정 순서는 래스터 스캔(raster scan), Z 스캔(Z-scan), N 스캔(N-scan), 우상향 대각 스캔(up-right diagonal scan), 수평적 스캔(horizontal scan), 수직적 스캔(vertical scan) 등 다양한 순서 중 하나일 수 있으나, 결정될 수 있는 순서는 상기 스캔 순서들에 한정하여 해석되어서는 안 된다. According to one embodiment, the image decoding apparatus 150 may determine at least one processing block that divides a picture. The processing block is a data unit including at least one reference encoding unit for dividing an image, and at least one reference encoding unit included in the processing block may be determined in a specific order. That is, the order of determination of at least one reference encoding unit determined in each processing block may correspond to one of various kinds of order in which the reference encoding unit can be determined, and the reference encoding unit determination order determined in each processing block May be different for each processing block. The order of determination of the reference encoding unit determined for each processing block is a raster scan, a Z scan, an N scan, an up-right diagonal scan, a horizontal scan a horizontal scan, and a vertical scan. However, the order that can be determined should not be limited to the scan orders.
일 실시예에 따라 영상 복호화 장치(150)는 프로세싱 블록의 크기에 대한 정보를 획득하여 영상에 포함되는 적어도 하나의 프로세싱 블록의 크기를 결정할 수 있다. 영상 복호화 장치(150)는 프로세싱 블록의 크기에 대한 정보를 비트스트림으로부터 획득하여 영상에 포함되는 적어도 하나의 프로세싱 블록의 크기를 결정할 수 있다. 이러한 프로세싱 블록의 크기는 프로세싱 블록의 크기에 대한 정보가 나타내는 데이터 단위의 소정의 크기일 수 있다. According to an embodiment, the image decoding apparatus 150 may obtain information on the size of the processing block to determine the size of the at least one processing block included in the image. The image decoding apparatus 150 may obtain information on the size of the processing block from the bitstream to determine the size of the at least one processing block included in the image. The size of such a processing block may be a predetermined size of a data unit represented by information on the size of the processing block.
일 실시예에 따라 영상 복호화 장치(150)의 수신부(160)는 비트스트림으로부터 프로세싱 블록의 크기에 대한 정보를 특정의 데이터 단위마다 획득할 수 있다. 예를 들면 프로세싱 블록의 크기에 대한 정보는 영상, 시퀀스, 픽처, 슬라이스, 슬라이스 세그먼트 등의 데이터 단위로 비트스트림으로부터 획득될 수 있다. 즉 수신부(160)는 상기 여러 데이터 단위마다 비트스트림으로부터 프로세싱 블록의 크기에 대한 정보를 획득할 수 있고 영상 복호화 장치(150)는 획득된 프로세싱 블록의 크기에 대한 정보를 이용하여 픽처를 분할하는 적어도 하나의 프로세싱 블록의 크기를 결정할 수 있으며, 이러한 프로세싱 블록의 크기는 기준 부호화 단위의 정수배의 크기일 수 있다. According to an embodiment, the receiving unit 160 of the image decoding apparatus 150 may obtain information on the size of the processing block from the bit stream for each specific data unit. For example, information on the size of a processing block can be obtained from a bitstream in units of data such as an image, a sequence, a picture, a slice, a slice segment, or the like. That is, the receiving unit 160 may obtain the information on the size of the processing block from the bitstream for each of the plurality of data units, and the image decoding apparatus 150 may obtain the information on the size of the processing block using the information on the size of the obtained processing block The size of one processing block may be determined, and the size of the processing block may be an integer multiple of the reference encoding unit.
일 실시예에 따라 영상 복호화 장치(150)는 픽처(1500)에 포함되는 프로세싱 블록(1502, 1512)의 크기를 결정할 수 있다. 예를 들면, 영상 복호화 장치(150)는 비트스트림으로부터 획득된 프로세싱 블록의 크기에 대한 정보에 기초하여 프로세싱 블록의 크기를 결정할 수 있다. 도 15를 참조하면, 영상 복호화 장치(150)는 일 실시예에 따라 프로세싱 블록(1502, 1512)의 가로크기를 기준 부호화 단위 가로크기의 4배, 세로크기를 기준 부호화 단위의 세로크기의 4배로 결정할 수 있다. 영상 복호화 장치(150)는 적어도 하나의 프로세싱 블록 내에서 적어도 하나의 기준 부호화 단위가 결정되는 순서를 결정할 수 있다.According to an exemplary embodiment, the image decoding apparatus 150 may determine the sizes of the processing blocks 1502 and 1512 included in the picture 1500. For example, the video decoding apparatus 150 may determine the size of the processing block based on information on the size of the processing block obtained from the bitstream. Referring to FIG. 15, the image decoding apparatus 150 according to an exemplary embodiment of the present invention may be configured such that the horizontal size of the processing blocks 1502 and 1512 is four times the horizontal size of the reference encoding unit, four times the vertical size of the reference encoding unit, You can decide. The image decoding apparatus 150 may determine an order in which at least one reference encoding unit is determined in at least one processing block.
일 실시예에 따라, 영상 복호화 장치(150)는 프로세싱 블록의 크기에 기초하여 픽처(1500)에 포함되는 각각의 프로세싱 블록(1502, 1512)을 결정할 수 있고, 프로세싱 블록(1502, 1512)에 포함되는 적어도 하나의 기준 부호화 단위의 결정 순서를 결정할 수 있다. 일 실시예에 따라 기준 부호화 단위의 결정은 기준 부호화 단위의 크기의 결정을 포함할 수 있다.According to one embodiment, the video decoding apparatus 150 may determine each processing block 1502, 1512 included in the picture 1500 based on the size of the processing block, and may include in the processing blocks 1502, 1512 The determination order of at least one reference encoding unit is determined. The determination of the reference encoding unit may include determining the size of the reference encoding unit according to an embodiment.
일 실시예에 따라 영상 복호화 장치(150)는 비트스트림으로부터 적어도 하나의 프로세싱 블록에 포함되는 적어도 하나의 기준 부호화 단위의 결정 순서에 대한 정보를 획득할 수 있고, 획득한 결정 순서에 대한 정보에 기초하여 적어도 하나의 기준 부호화 단위가 결정되는 순서를 결정할 수 있다. 결정 순서에 대한 정보는 프로세싱 블록 내에서 기준 부호화 단위들이 결정되는 순서 또는 방향으로 정의될 수 있다. 즉, 기준 부호화 단위들이 결정되는 순서는 각각의 프로세싱 블록마다 독립적으로 결정될 수 있다.According to an exemplary embodiment, the image decoding apparatus 150 may obtain information on a determination order of at least one reference encoding unit included in at least one processing block from a bitstream, So that the order in which at least one reference encoding unit is determined can be determined. The information on the decision order can be defined in the order or direction in which the reference encoding units are determined in the processing block. That is, the order in which the reference encoding units are determined may be independently determined for each processing block.
일 실시예에 따라 영상 복호화 장치(150)는 특정 데이터 단위마다 기준 부호화 단위의 결정 순서에 대한 정보를 비트스트림으로부터 획득할 수 있다. 예를 들면, 수신부(160)는 기준 부호화 단위의 결정 순서에 대한 정보를 영상, 시퀀스, 픽처, 슬라이스, 슬라이스 세그먼트, 프로세싱 블록 등의 데이터 단위로마다 비트스트림으로부터 획득할 수 있다. 기준 부호화 단위의 결정 순서에 대한 정보는 프로세싱 블록 내에서의 기준 부호화 단위 결정 순서를 나타내므로, 결정 순서에 대한 정보는 정수개의 프로세싱 블록을 포함하는 특정 데이터 단위 마다 획득될 수 있다.According to an exemplary embodiment, the image decoding apparatus 150 may obtain information on a determination order of a reference encoding unit from a bitstream for each specific data unit. For example, the receiving unit 160 may acquire information on the order of determination of a reference encoding unit from a bitstream for each data unit such as an image, a sequence, a picture, a slice, a slice segment, and a processing block. Since the information on the determination order of the reference encoding unit indicates the reference encoding unit determination order in the processing block, the information on the determination order can be obtained for each specific data unit including an integer number of processing blocks.
영상 복호화 장치(150)는 일 실시예에 따라 결정된 순서에 기초하여 적어도 하나의 기준 부호화 단위를 결정할 수 있다.The image decoding apparatus 150 may determine at least one reference encoding unit based on the determined order according to an embodiment.
일 실시예에 따라 수신부(160)는 비트스트림으로부터 프로세싱 블록(1502, 1512)과 관련된 정보로서, 기준 부호화 단위 결정 순서에 대한 정보를 획득할 수 있고, 영상 복호화 장치(150)는 상기 프로세싱 블록(1502, 1512)에 포함된 적어도 하나의 기준 부호화 단위를 결정하는 순서를 결정하고 부호화 단위의 결정 순서에 따라 픽처(1500)에 포함되는 적어도 하나의 기준 부호화 단위를 결정할 수 있다. 도 15를 참조하면, 영상 복호화 장치(150)는 각각의 프로세싱 블록(1502, 1512)과 관련된 적어도 하나의 기준 부호화 단위의 결정 순서(1504, 1514)를 결정할 수 있다. 예를 들면, 기준 부호화 단위의 결정 순서에 대한 정보가 프로세싱 블록마다 획득되는 경우, 각각의 프로세싱 블록(1502, 1512)과 관련된 기준 부호화 단위 결정 순서는 프로세싱 블록마다 상이할 수 있다. 프로세싱 블록(1502)과 관련된 기준 부호화 단위 결정 순서(1504)가 래스터 스캔(raster scan)순서인 경우, 프로세싱 블록(1502)에 포함되는 기준 부호화 단위는 래스터 스캔 순서에 따라 결정될 수 있다. 이에 반해 다른 프로세싱 블록(1512)과 관련된 기준 부호화 단위 결정 순서(1514)가 래스터 스캔 순서의 역순인 경우, 프로세싱 블록(1512)에 포함되는 기준 부호화 단위는 래스터 스캔 순서의 역순에 따라 결정될 수 있다. 도1 내지 도 15에서는 영상을 최대 부호화 단위로 분할하고, 최대 부호화 단위를 계층적 트리 구조의 부호화 단위들로 분할하는 방법이 설명되었다. 도 16 내지 도 26에서는 결합 모드를 이용하여, 부호화 효율을 향상시키는 방법이 설명된다.According to an exemplary embodiment, the receiving unit 160 may obtain information on the reference encoding unit determination order from the bitstream as the information related to the processing blocks 1502 and 1512, and the video decoding apparatus 150 may receive the information 1502, and 1512, and determine at least one reference encoding unit included in the picture 1500 according to the determination order of the encoding units. Referring to FIG. 15, the image decoding apparatus 150 may determine a determination order 1504 and 1514 of at least one reference encoding unit associated with each of the processing blocks 1502 and 1512. For example, when information on the determination order of reference encoding units is obtained for each processing block, the reference encoding unit determination order associated with each processing block 1502 and 1512 may be different for each processing block. If the reference encoding unit determination order 1504 related to the processing block 1502 is a raster scan order, the reference encoding unit included in the processing block 1502 may be determined according to the raster scan order. On the other hand, when the reference encoding unit determination order 1514 related to another processing block 1512 is a reverse order of the raster scan order, the reference encoding unit included in the processing block 1512 can be determined according to the reverse order of the raster scan order. 1 to 15, a method of dividing an image into a maximum encoding unit and dividing a maximum encoding unit into encoding units of a hierarchical tree structure has been described. In Figs. 16 to 26, a method of improving the coding efficiency using the combining mode is described.
결합 모드(Coupling Mode)는 블록에 대하여 같이 적용되는 부호화 모드들의 세트를 의미한다. 부호화단에서 현재 블록에 결합 모드가 적용되면, 결합 모드에 관련된 신택스 엘리먼트(Syntax element)만 비트스트림에 포함시키고, 결합 모드에 포함된 부호화 모드들에 대응되는 복수의 신택스 엘리먼트는 생략함으로써 이미지의 부호화율이 증가된다. 그러므로 같이 사용될 가능성이 높거나, 같이 사용될 경우 부호화 효율성이 높은 부호화 모드들을 결합 모드로 지정함으로써, 이미지의 부호화율이 증가된다. 이하 결합 모드의 적용 방법에 대하여 자세히 설명된다.Coupling Mode refers to a set of coding modes that are applied together for a block. When a combining mode is applied to a current block in an encoding end, only a syntax element related to a combination mode is included in the bitstream, and a plurality of syntax elements corresponding to the encoding modes included in the combination mode are omitted, The rate is increased. Therefore, the encoding rate of the image is increased by designating the encoding modes that are highly likely to be used together or have high encoding efficiency when used together. Hereinafter, how to apply the coupling mode will be described in detail.
도 16은 결합 모드에 따라 부호화 모드를 결정하는 일 실시예에 따른 비디오 복호화 장치(1600)의 블록도를 도시한다.FIG. 16 shows a block diagram of a video decoding apparatus 1600 according to an embodiment for determining a coding mode according to a combining mode.
비디오 복호화 장치(1600)는 부호화 모드 결정부(1610) 및 복호화부(1620)를 포함한다. 도 16에서 부호화 모드 결정부(1610) 및 복호화부(1620)는 별도의 구성 단위로 표현되어 있으나, 실시 예에 따라 부호화 모드 결정부(1610) 및 복호화부(1620)는 합쳐져 하나의 구성 단위로 구현될 수도 있다.The video decoding apparatus 1600 includes a coding mode determination unit 1610 and a decoding unit 1620. 16, the coding mode determination unit 1610 and the decoding unit 1620 are represented as separate units. However, according to the embodiment, the coding mode determination unit 1610 and the decoding unit 1620 are combined to form a single unit .
도 16에서 부호화 모드 결정부(1610) 및 복호화부(1620)는 하나의 장치에 위치한 구성 단위로 표현되었지만, 부호화 모드 결정부(1610) 및 복호화부(1620)의 각 기능을 담당하는 장치는 반드시 물리적으로 인접할 필요는 없다. 따라서 실시 예에 따라 부호화 모드 결정부(1610) 및 복호화부(1620)가 분산되어 있을 수 있다.16, the encoding mode determination unit 1610 and the decoding unit 1620 are represented by a unit located in one device. However, the encoding mode determination unit 1610 and the decoding unit 1620 are not necessarily It does not need to be physically contiguous. Therefore, the encoding mode determination unit 1610 and the decoding unit 1620 may be dispersed according to the embodiment.
부호화 모드 결정부(1610) 및 복호화부(1620)는 실시 예에 따라 하나의 프로세서에 의하여 구현될 수 있다. 또한 실시 예에 따라 복수 개의 프로세서에 의하여 구현될 수도 있다.The coding mode determination unit 1610 and the decoding unit 1620 may be implemented by one processor according to an embodiment. And may be implemented by a plurality of processors according to an embodiment.
부호화 모드 결정부(1610)는 비트스트림으로부터 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되는지 여부를 나타내는 현재 블록의 결합 모드 플래그를 획득한다.The encoding mode determination unit 1610 obtains a combination mode flag of the current block indicating whether a plurality of encoding modes included in the combination mode are applied to the current block from the bitstream.
결합 모드에는 현재 블록에 적용될 수 있는 모든 종류의 부호화 모드들이 포함될 수 있다. 다만 서로 양립불가능한 부호화 모드들은 하나의 결합 모드에 포함될 수 없다. 예를 들어, 루마 인트라 예측 모드로서 DC 모드와 수직 모드는 같이 결합 모드에 포함될 수 없다.The combining mode may include all kinds of coding modes that can be applied to the current block. Encoding modes incompatible with each other can not be included in one combining mode. For example, the DC mode and the vertical mode as the luma intra prediction mode can not be included in the combining mode as well.
결합 모드에는 루마 인트라 예측 모드, 크로마 인트라 예측 모드, 인트라 기술에 관한 부호화 모드, 인터 기술에 관한 부호화 모드, 변환 모드, 인루프 필터 모드 등이 포함될 수 있다. 인트라 기술에 관한 부호화 모드에는 CCIP(Cross Component Intra Prediction) 모드, MPI(Multi Parameter Intra-prediction) 모드, MIP(Multi-combined Intra Prediction) 모드가 포함될 수 있다. 인터 기술에 관한 부호화 모드에는 어파인(Affine) 모드, AMVR(Adaptive Motion Vector Resolution) 모드, 조명 보상(Illumination Compensation) 모드가 포함될 수 있다. 변환 모드에는 EMT 모드(Enhanced Multiple Transform), NSST(Non-Separable Secondary Transform) 모드, ROT(Rotational Transform) 모드가 포함될 수 있다. 인루프 필터 모드에는 디블록킹 필터 모드, SAO(Sample Adaptive Offset) 필터 모드, 양방향(Bilateral) 필터 모드가 포함될 수 있다.The combining mode may include a luma intra prediction mode, a chroma intra prediction mode, an encoding mode relating to intra technology, an encoding mode relating to inter technology, a conversion mode, an in-loop filter mode, and the like. The encoding mode related to the intra technique may include a CCIP (Cross Component Intra Prediction) mode, a MPI (Multi Parameter Intra-prediction) mode, and a MIP (Multi-combined Intra Prediction) mode. The encoding mode for the inter-technology may include an affine mode, an adaptive motion vector resolution (AMVR) mode, and an illumination compensation mode. The conversion mode may include an EMT mode (Enhanced Multiple Transform), a Non-Separable Secondary Transform (NSST) mode, and a Rotational Transform (ROT) mode. The in-loop filter mode may include a deblocking filter mode, a sample adaptive offset (SAO) filter mode, and a bilateral filter mode.
결합 모드는 복수의 루마 인트라 예측 모드들 중 하나와 복수의 크로마 인트라 예측 모드들 중 하나를 포함할 수 있다. 같이 사용될 확률이 높은 루마 인트라 예측 모드와 크로마 인트라 예측 모드의 조합의 개수에 따라 결합 모드는 2개 이상 존재할 수 있다.The combining mode may include one of a plurality of luma intra prediction modes and one of a plurality of chroma intra prediction modes. Two or more combining modes may exist depending on the number of combinations of the luma intra prediction mode and the chroma intra prediction mode which are likely to be used together.
예를 들어, 결합 모드에 포함되는 루마 인트라 예측 모드는 DC모드이고, 크로마 인트라 예측 모드는 LM 크로마 모드일 수 있다. 또 다른 예로 루마 인트라 예측 모드와 크로마 인트라 예측 모드 모두 DC 모드일 수 있다.For example, the luma intra prediction mode included in the combining mode may be the DC mode, and the chroma intra prediction mode may be the LM chroma mode. As another example, both the luma intra prediction mode and the chroma intra prediction mode can be DC mode.
또한, 결합 모드에 포함되는 루마 인트라 예측 모드와 크로마 인트라 예측 모드는 모두 MPM 모드로 결정될 수 있다. MPM 모드는 현재 블록에서 가장 사용될 확률이 높은 인트라 예측 모드를 의미한다. 따라서 결합 모드에 포함되는 루마 인트라 예측 모드와 크로마 인트라 예측 모드가 모두 MPM 모드일 경우, 부호화 효율이 향상될 수 있다.In addition, both the luma intra prediction mode and the chroma intra prediction mode included in the combining mode can be determined to be the MPM mode. The MPM mode refers to an intra prediction mode having a high probability of being used most in the current block. Therefore, when both the luma intra prediction mode and the chroma intra prediction mode included in the combining mode are in the MPM mode, the coding efficiency can be improved.
또 다른 실시 예로 결합 모드는 현재 블록에 인접한 특정 위치의 인접 블록의 루마 인트라 예측 모드와 크로마 인트라 예측 모드가 포함되도록 설정될 수 있다. 따라서 현재 블록에 상기 결합 모드가 적용될 경우, 현재 블록의 루마 인트라 예측 모드와 크로마 인트라 예측 모드는 특정 위치의 인접 블록의 루마 인트라 예측 모드와 크로마 인트라 예측 모드와 동일하도록 결정된다.In another embodiment, the combining mode may be set to include a luma intra prediction mode and a chroma intra prediction mode of a neighboring block at a specific position adjacent to the current block. Therefore, when the combining mode is applied to the current block, the luma intra prediction mode and the chroma intra prediction mode of the current block are determined to be the same as the luma intra prediction mode and the chroma intra prediction mode of the adjacent block at the specific position.
또 다른 실시 예로 결합 모드는 현재 또는 이전 픽처를 분석하여 획득된 루마 인트라 예측 모드와 크로마 인트라 예측 모드를 포함하도록 설정될 수 있다. 예를 들어, 현재 픽처의 예측 모드 빈도수를 분석하여 최빈도 루마 인트라 예측 모드와 최빈도 크로마 인트라 예측 모드를 결합 모드에 포함시킬 수 있다.In another embodiment, the combining mode may be set to include a luma intra prediction mode and a chroma intra prediction mode obtained by analyzing a current or previous picture. For example, by analyzing the prediction mode frequency of the current picture, it is possible to incorporate the best mode luma intra prediction mode and the most significant chroma intra prediction mode into the combining mode.
결합 모드는 복수의 변환 모드들 중 하나를 포함할 수 있다. 결합 모드는 변환 모드와 함께, 복수의 루마 인트라 예측 모드들 중 하나를 포함할 수 있다. 또한, 결합 모드는 변환 모드와 함께, 복수의 크로마 인트라 예측 모드들 중 하나를 포함할 수 있다. 같이 사용될 확률이 높은 루마 인트라 예측 모드, 크로마 인트라 예측 모드 및 변환 모드의 조합의 개수에 따라 결합 모드는 2개 이상 존재할 수 있다.The combining mode may include one of a plurality of conversion modes. The joint mode may comprise one of a plurality of luma intra prediction modes, with a transformation mode. In addition, the combining mode may include one of a plurality of chroma intra prediction modes, with the conversion mode. Two or more combining modes may exist depending on the number of combinations of the luma intra prediction mode, the chroma intra prediction mode, and the conversion mode, which are likely to be used together.
결합 모드는 같이 사용될 확률이 높은 루마 인트라 예측 모드, 크로마 인트라 예측 모드, 변환 모드를 포함하여, 비디오 부호화 효율이 향상될 수 있다. 특히, 루마 인트라 예측 모드와 변환 모드의 상관관계가 높으므로, 결합 모드에 루마 인트라 예측 모드-변환 모드 쌍을 포함할 경우, 비디오 부호화 효율이 향상될 가능성이 높다.The joint mode may include a luma intra prediction mode, a chroma intra prediction mode, and a conversion mode, which are likely to be used together, so that the video coding efficiency can be improved. Particularly, since the correlation between the luma intra prediction mode and the conversion mode is high, if the luma intra prediction mode-conversion mode pair is included in the combining mode, the video coding efficiency is likely to be improved.
예를 들어, 결합 모드에는 루마 인트라 예측 모드로서 DC모드가 포함되고, 크로마 인트라 예측 모드로서 DC 모드 또는 LM 크로마 모드가 포함되고, 변환 모드로서 DCT 변환 모드 또는 DST 변환 모드가 포함될 수 있다. 또는 결합 모드에 루마 인트라 예측 모드 및 크로마 인트라 예측 모드로서 MPM 모드 또는 주변 블록의 모드가 포함되고, 변환 모드로서 DCT 변환 모드 또는 DST 변환 모드가 포함될 수 있다.For example, the combining mode includes the DC mode as the luma intra prediction mode, the DC mode or the LM chroma mode as the chroma intra prediction mode, and the DCT conversion mode or the DST conversion mode as the conversion mode. Or an MPM mode or a peripheral block mode as a luma intra prediction mode and a chroma intra prediction mode in the combining mode and a DCT conversion mode or a DST conversion mode as a conversion mode.
변환 모드 간에 서로 양립가능하기 때문에, 결합 모드는 복수의 변환 모드를 포함할 수 있다. 통계적으로 같이 선택될 확률이 높은 변환 모드를 결합 모드에 포함시킬 경우, 비디오 부호화 효율이 향상될 가능성이 높다.Since the conversion modes are compatible with each other, the combining mode may include a plurality of conversion modes. If the combining mode includes a conversion mode with a high probability of being selected statistically, the video coding efficiency is likely to be improved.
결합 모드는 특정 부호화 모드의 적용 여부, 적용 방법 및 적용 범위에 대한 정보를 포함할 수 있다. 예를 들어, 결합 모드는 현재 블록의 인트라 예측 결과를 필터링하는 인트라 예측 필터 모드에 관한 정보를 포함할 수 있다. 인트라 예측에 따른 예측 블록은 주파수 변환에 적합하지 않은 평탄하지 않고 부자연스러운 패턴을 가질 수 있으므로, 인트라 예측 모드와 인트라 예측 필터 모드를 결합 모드에 포함시켜 부호화 효율을 높일 수 있다. 따라서 결합 모드와 인트라 예측 필터 모드가 현재 블록에 대하여 적용된다는 정보를 포함할 경우, 추가적인 인트라 예측 필터 모드에 대한 부호화 정보를 비트스트림으로부터 파싱하지 않고, 현재 블록에 인트라 예측 필터 모드가 적용될 수 있다.The combining mode may include information on whether or not a specific coding mode is applied, an applying method, and an application range. For example, the combining mode may include information regarding an intra prediction filter mode for filtering intra prediction results of the current block. Since the prediction block according to the intra prediction can have a non-flat and unnatural pattern that is not suitable for frequency conversion, the coding efficiency can be enhanced by including the intra prediction mode and the intra prediction filter mode in the combining mode. Therefore, if the combining mode and the intra prediction filter mode include information that the mode is applied to the current block, the intra prediction filter mode can be applied to the current block without parsing the encoding information for the additional intra prediction filter mode from the bitstream.
또 다른 예로, 또한 현재 블록에 인터 모드가 적용될 경우, 결합 정보는 아핀 모드가 적용되지 않는다는 정보와 조명 보상 모드가 적용되지 않는다는 정보를 포함할 수 있다. 결합 모드에 통계적으로 같이 사용될 확률이 높거나 같이 사용될 확률이 낮은 부호화 모드들에 관한 정보를 포함시킬 경우, 비디오 부호화 효율이 향상될 가능성이 높다.As another example, when the inter mode is also applied to the current block, the combining information may include information that the affine mode is not applied and that the illumination compensation mode is not applied. If the information about the encoding modes having a high probability of being used statistically in the combining mode or having a low probability of being used together is included, the video coding efficiency is likely to be improved.
결합 모드는 복수의 루마 인트라 예측 모드들 중 하나, 복수의 크로마 인트라 예측 모드들 중 하나, 복수의 변환 모드들 중 하나 및 특정 부호화 모드에 대한 정보를 포함할 수 있다. 같이 사용될 확률이 높은 루마 인트라 예측 모드, 크로마 인트라 예측 모드, 변환 모드 및 특정 부호화 모드의 조합의 개수에 따라 결합 모드는 2개 이상 존재할 수 있다. 특정 부호화 모드는 앞서 언급된 인트라 예측 필터 모드일 수 있다. 또는 특정 부호화 모드는 인루프 필터 모드일 수 있다. 부호화 모드들 간에 양립 가능하다면, 결합 모드에 부호화 모드들에 대한 정보가 2개 이상 포함될 수 있다.The combining mode may include one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, one of a plurality of conversion modes, and information on a specific encoding mode. There may be two or more combining modes depending on the number of combinations of the luma intra prediction mode, the chroma intra prediction mode, the conversion mode, and the specific encoding mode, which are likely to be used together. The specific encoding mode may be the above-mentioned intra prediction mode. Or the particular encoding mode may be an in-loop filter mode. If the coding modes are compatible, two or more pieces of information on the coding modes may be included in the combining mode.
결합 모드는 루마 인트라 예측 모드로서 DC모드가 포함되는 경우, 인트라 예측 필터 모드에 포함되는 MPI 모드 또는 MIP 모드를 적용하는 정보를 포함할 수 있다. DC 모드의 예측 정확성을 높이기 위하여 DC 모드에 따른 예측 블록에 대하여 경계 필터링이 요구된다. MPI 모드 또는 MIP 모드가 적용되면, DC 모드에 경계 필터링을 적용하는 효과가 발생하므로, DC 모드와 MPI 모드 또는 MIP 모드가 적용될 가능성이 높다. 결합 모드는 루마 인트라 예측 모드에 관한 정보, 크로마 인트라 예측 모드에 관한 정보, 변환 모드에 관한 정보 및 특정 부호화 모드에 대한 정보를 한 개 이상 포함할 수 있다. 결합 모드에 포함되는 모든 부호화 모드의 조합은 결합 모드에 포함된 부호화 모드들 간에 양립 가능하다면 허용될 수 있다. 실시 예에 따라, 결합 모드는 루마 인트라 예측 모드로서 DC모드, 크로마 인트라 예측 모드로서 LM 크로마 모드, MPI 모드 또는 MIP 모드를 적용하는 정보를 포함될 수 있다.The combining mode may include information for applying the MPI mode or the MIP mode included in the intra prediction filter mode when the DC mode is included as the luma intra prediction mode. In order to improve the prediction accuracy of the DC mode, boundary filtering is required for the prediction block according to the DC mode. When the MPI mode or the MIP mode is applied, since the effect of applying the boundary filtering to the DC mode occurs, the DC mode, the MPI mode, or the MIP mode are likely to be applied. The combining mode may include one or more information on the luma intra prediction mode, information on the chroma intra prediction mode, information on the conversion mode, and information on the specific coding mode. The combination of all coding modes included in the combining mode may be allowed if they are compatible between the coding modes included in the combining mode. According to an embodiment, the combining mode may include information applying a DC mode as a luma intra prediction mode, an LM chroma mode, an MPI mode or a MIP mode as a chroma intra prediction mode.
MPI 모드는 현재 샘플의 예측 값을 현재 샘플에 인접한 적어도 2개의 샘플들을 이용하여 필터링하는 인트라 예측 필터 모드이다. 구체적으로 MPI 모드에 따르면 현재 샘플의 예측 값, 현재 샘플의 상측 인접 샘플의 예측 값, 현재 샘플의 좌측 또는 우측 인접 샘플의 예측 값의 가중 평균 값을 현재 샘플의 새로운 예측 값으로 결정된다. 현재 블록의 모든 샘플들에 대하여 인접 샘플들에 기초한 가중 평균 값을 새로운 예측 값으로 결정함으로써, 현재 블록이 필터링된다.The MPI mode is an intra prediction filter mode in which the prediction value of the current sample is filtered using at least two samples adjacent to the current sample. Specifically, according to the MPI mode, the predicted value of the current sample, the predicted value of the upper adjacent sample of the current sample, and the weighted average value of the predicted values of the left or right adjacent sample of the current sample are determined as new predicted values of the current sample. The current block is filtered by determining a weighted average value based on adjacent samples as a new predicted value for all samples of the current block.
MIP 모드는 현재 샘플의 예측 값을 현재 샘플의 위치에 따라 결정된 현재 블록에 인접한 적어도 2개의 참조 샘플을 이용하여 필터링하는 인트라 예측 필터 모드이다. 구체적으로 MIP 모드에 따르면 현재 샘플의 예측 값, 현재 샘플과 x좌표가 동일한 참조 샘플의 값, 현재 샘플과 y좌표가 동일한 참조 샘플의 값의 가중 평균 값을 현재 샘플의 새로운 예측 값으로 결정된다. 현재 블록의 모든 샘플들에 대하여 참조 샘플들에 기초한 가중 평균 값을 새로운 예측 값으로 결정함으로써, 현재 블록이 필터링된다.The MIP mode is an intra prediction filter mode in which the prediction value of the current sample is filtered using at least two reference samples adjacent to the current block determined according to the position of the current sample. Specifically, according to the MIP mode, the predicted value of the current sample, the value of the reference sample having the same x-coordinate as the current sample, and the weighted average value of the value of the reference sample having the same y-coordinate as the current sample are determined as a new predicted value of the current sample. By determining a weighted average value based on the reference samples for all samples of the current block as a new predicted value, the current block is filtered.
현재 블록이 포함된 현재 슬라이스의 슬라이스 타입에 따라, 결합 모드에 포함되는 부호화 모드가 상이할 수 있다. I 슬라이스 타입의 경우, 더 높은 압축 효율을 위해 루마 픽처와 크로마 픽처의 블록 분할이 개별적으로 수행될 수 있다. 이러한 경우, 루마 픽처와 크로마 픽처 간에 블록 구조의 연관성이 낮을 수 있다. 반면 P 슬라이스 타입 및 B 슬라이스 타입의 경우, 크로마 픽처는 루마 픽처의 블록 구조에 기초하여 블록 분할이 수행될 수 있다. 이러한 경우, 루마 픽처와 크로마 픽처의 블록 구조가 동일하게 결정될 수 있다. 따라서 P 슬라이스 타입 및 B 슬라이스 타입에 대하여, 결합 모드에 복수의 루마 인트라 예측 모드들 중 하나와 복수의 크로마 인트라 예측 모드들 중 하나가 포함되도록 설정될 수 있다. 반면, 현재 슬라이스가 I 슬라이스 타입일 때, 결합 모드는 복수의 루마 인트라 예측 모드들 중 하나만을 포함하도록 설정될 수 있다.Depending on the slice type of the current slice that contains the current block, the encoding mode included in the join mode may be different. In the case of I-slice type, block partitioning of luma and chroma pictures can be performed separately for higher compression efficiency. In this case, the association of the block structure between the luma picture and the chroma picture may be low. On the other hand, in the case of the P slice type and B slice type, the block division can be performed on the chroma picture based on the block structure of the luma picture. In this case, the block structure of the luma picture and the chroma picture can be determined in the same manner. Thus, for the P slice type and B slice type, the combining mode can be set to include one of a plurality of luma intra prediction modes and one of a plurality of chroma intra prediction modes. On the other hand, when the current slice is an I slice type, the combining mode can be set to include only one of a plurality of luma intra prediction modes.
다만 I 슬라이스 타입에서 루마 픽처와 크로마 픽처의 블록 구조가 동일하도록 설정된다면, 현재 슬라이스가 I 슬라이스 타입일 경우에도, 결합 모드가 복수의 루마 인트라 예측 모드들 중 하나와 복수의 크로마 인트라 예측 모드들 중 하나가 포함되도록 설정될 수 있다.However, if the block structure of the luma picture and the chroma picture is set to be the same in the I slice type, even if the current slice is the I slice type, the combining mode is one of the plurality of luma intra prediction modes and the plurality of chroma intra prediction modes One can be set to be included.
만약 루마 픽처와 크로마 픽처의 블록 분할이 개별적으로 수행되는 경우에도, 루마 블록과 크로마 블록이 대응될 수 있다면, 결합 모드에 복수의 크로마 인트라 예측 모드들 중 하나가 포함되도록 설정될 수 있다. 루마 블록과 크로마 블록의 대응 여부는 루마 블록과 크로마 블록의 크기 및 위치의 차이에 따라 결정될 수 있다. 예를 들어, 루마 블록과 크로마 블록의 크기 및 위치가 동일할 경우, 루마 블록과 크로마 블록이 대응된다고 설정될 수 있다. 또한, 루마 블록과 크로마 블록의 크기가 다를 경우, 주어진 크로마 블록의 좌측 상단 또는 가운데에 위치한 루마 블록과 대응된다고 설정할 수 있다.If a luma block and a chroma block can be matched, even if block segmentation of the luma picture and chroma picture is performed separately, the combining mode can be set to include one of the plurality of chroma intra prediction modes. The correspondence between the luma block and the chroma block can be determined by the difference in size and position of the luma block and the chroma block. For example, if the size and position of a luma block and a chroma block are the same, a luma block and a chroma block can be set to correspond. If the size of the luma block and the chroma block are different, it can be set to correspond to a luma block located at the upper left or center of a given chroma block.
또 다른 예로, 현재 슬라이스가 P 슬라이스 타입 또는 B 슬라이스 타입일 때, 결합 모드는 복수의 루마 인트라 예측 모드들 중 하나, 복수의 크로마 인트라 예측 모드들 중 하나 및 인트라 예측 필터 모드에 대한 정보를 포함하도록 설정될 수 있다. 반면, 현재 슬라이스가 I 슬라이스 타입일 때, 결합 모드는 복수의 루마 인트라 예측 모드들 중 하나와 인트라 예측 필터 모드에 대한 정보만을 포함하도록 설정될 수 있다.As another example, when the current slice is a P slice type or B slice type, the combining mode may include one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, and information about an intra prediction mode Can be set. On the other hand, when the current slice is an I slice type, the combining mode can be set to include only information about one of the plurality of luma intra prediction modes and the intra prediction filter mode.
또 다른 예로, 현재 슬라이스가 I 슬라이스 타입일 때, 현재 슬라이스에 포함된 모든 블록들에 대하여 결합 모드가 사용되지 않을 수 있다. 따라서, 현재 슬라이스가 P 슬라이스 타입 또는 B 슬라이스 타입일 때에만, 결합 모드가 허용되도록 설정될 수 있다. 그러므로 부호화 모드 결정부(1610)는 현재 슬라이스가 I 슬라이스 타입일 때, 결합 모드 플래그를 획득하지 않고, 현재 블록에 대하여 결합 모드가 사용되지 않음을 결정할 수 있다.As another example, when the current slice is an I slice type, the join mode may not be used for all blocks included in the current slice. Thus, only when the current slice is a P slice type or a B slice type, the combining mode can be set to be allowed. Therefore, when the current slice is an I slice type, the encoding mode determination unit 1610 can determine that the combining mode is not used for the current block without acquiring the combining mode flag.
부호화 모드 결정부(1610)는 현재 블록의 결합 모드 플래그가 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용됨을 나타낼 때, 결합 모드의 복수의 부호화 모드를 현재 블록의 부호화 모드들로 결정한다. 결합 모드 플래그는 0 또는 1의 값을 나타낸다. 일 실시 예에 따르면, 결합 모드 플래그가 0일 때, 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되지 않는다. 반대로 결합 모드 플래그가 1일 때, 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용된다.The encoding mode determination unit 1610 determines that a plurality of encoding modes of the current mode are the encoding modes of the current block when the encoding mode flag of the current block indicates that a plurality of encoding modes included in the combination mode are applied to the current block do. The combining mode flag indicates a value of 0 or 1. According to one embodiment, when the combining mode flag is 0, a plurality of coding modes included in the combining mode are not applied to the current block at the same time. Conversely, when the coupling mode flag is 1, a plurality of coding modes included in the coupling mode are applied to the current block at the same time.
부호화 모드 결정부(1610)는 현재 블록의 결합 모드 플래그가 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용됨을 나타낼 때, 복수의 결합 모드들 중 하나의 결합 모드를 나타내는 결합 모드 인덱스를 획득할 수 있다. 그리고 부호화 모드 결정부(1610)는 결합 모드 인덱스가 나타내는 결합 모드의 복수의 인트라 예측 모드를 현재 블록의 부호화 모드들로 결정할 수 있다.When a plurality of coding modes included in the combining mode are applied to the current block, the coding mode determining unit 1610 determines a combining mode index indicating a combining mode of one of the plurality of combining modes Can be obtained. The coding mode determination unit 1610 may determine a plurality of intra prediction modes of the combined mode indicated by the combined mode index to be the coding modes of the current block.
부호화 모드 결정부(1610)는 현재 블록의 결합 모드 플래그가 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되지 않음을 나타낼 때, 비트스트림으로부터 부호화 모드 정보를 획득할 수 있다. 그리고 부호화 모드 결정부(1610)는 부호화 모드 정보에 따라 현재 블록의 부호화 모드들을 결정할 수 있다.The encoding mode determination unit 1610 may obtain the encoding mode information from the bitstream when the joint mode flag of the current block indicates that a plurality of encoding modes included in the joint mode are not applied to the current block. The encoding mode determination unit 1610 can determine the encoding modes of the current block according to the encoding mode information.
부호화 모드 결정부(1610)는 현재 블록이 포함된 데이터 단위에 대하여 결합 모드가 허용되는지 여부를 나타내는 결합 모드 허용 플래그를 획득할 수 있다. 그리고 부호화 모드 결정부(1610)는 결합 모드 허용 플래그가 현재 블록이 포함된 데이터 단위에 대하여 결합 모드가 허용됨을 나타낼 때, 현재 블록에 대한 결합 모드 허용 플래그를 획득할 수 있다.The encoding mode determination unit 1610 may obtain a combination mode permission flag indicating whether a combination mode is allowed for a data unit including the current block. When the combining mode permission flag indicates that the combining mode is allowed for the data unit including the current block, the coding mode determining unit 1610 can obtain the combining mode permission flag for the current block.
복호화부(1620)는 현재 블록의 부호화 모드들에 따라 현재 블록을 복호화할 수 있다.The decoding unit 1620 can decode the current block according to the encoding modes of the current block.
도 17a 내지 도 22b는 결합 모드 플래그 및 결합 모드 인덱스에 따라 현재 블록의 부호화 모드를 결정하는 방법을 나타낸다.FIGS. 17A and 22B show a method of determining a coding mode of a current block according to a combining mode flag and a combining mode index.
도 17a 및 도 17b는 결합 모드에 복수의 루마 인트라 예측 모드들 중 하나와 복수의 크로마 인트라 예측 모드들 중 하나가 포함될 때, 현재 블록의 부호화 모드 결정 방법을 나타낸다.17A and 17B show a coding mode decision method of the current block when one of a plurality of luma intra prediction modes and a plurality of chroma intra prediction modes is included in the combining mode.
도 17a에서 결합 모드의 종류가 하나일 때, 결합 모드 플래그에 따른 부호화 모드를 결정하는 방법이 설명된다. 도 17a에서 결합 모드는 예측 모드 l과 크로마 인트라 예측 모드 c를 포함한다. 따라서 결합 모드 플래그가 1 일 때, 현재 블록에는 루마 인트라 예측 모드l, 크로마 인트라 예측 모드c가 적용된다. 그러나 결합 모드 플래그가 0 일 때, 비트스트림으로부터 루마 인트라 예측 모드에 대한 루마 인트라 예측 모드 정보와 크로마 인트라 예측 모드에 대한 크로마 인트라 예측 모드 정보가 획득되고, 루마 인트라 예측 모드 정보와 크로마 인트라 예측 모드 정보에 따라 현재 블록의 루마 인트라 예측 모드 및 크로마 인트라 예측 모드가 각각 결정된다.17A shows a method for determining an encoding mode according to a join mode flag when there is one type of the join mode. In Fig. 17A, the combining mode includes a prediction mode l and a chroma intra prediction mode c. Therefore, when the combining mode flag is 1, the luma intra prediction mode l and the chroma intra prediction mode c are applied to the current block. However, when the combining mode flag is 0, the luma intra prediction mode information for the luma intra prediction mode and the chroma intra prediction mode information for the chroma intra prediction mode are obtained from the bitstream, and the luma intra prediction mode information and the chroma intra prediction mode information The luma intra prediction mode and the chroma intra prediction mode of the current block are respectively determined.
도 17b에서 결합 모드의 종류가 둘일 때, 결합 모드 플래그와 결합 모드 인덱스에 따른 부호화 모드를 결정하는 방법이 설명된다. 도 17b에서 제1 결합 모드는 루마 인트라 예측 모드 l1과 크로마 인트라 예측 모드 c1를 포함한다. 그리고 제2 결합 모드는 루마 인트라 예측 모드 l2과 크로마 인트라 예측 모드 c2를 포함한다. 결합 모드 플래그가 1이고, 결합 모드 인덱스가 0일 때, 제1 결합 모드에 따라 현재 블록에 루마 인트라 예측 모드l1, 크로마 인트라 예측 모드c1가 적용된다. 그리고 결합 모드 플래그가 1이고, 결합 모드 인덱스가 1일 때, 제2 결합 모드에 따라 현재 블록에 루마 인트라 예측 모드l2, 크로마 인트라 예측 모드c2가 적용된다. 결합 모드 플래그가 0 일 때, 도 17a와 마찬가지로, 비트스트림으로부터 획득된 루마 인트라 예측 모드 정보와 크로마 인트라 예측 모드 정보에 따라 현재 블록의 루마 인트라 예측 모드 및 크로마 인트라 예측 모드가 각각 결정된다.In Fig. 17B, a method for determining the coding mode according to the combining mode flag and the combining mode index when the type of the combining mode is two is described. 17B, the first combining mode includes the luma intra prediction mode l1 and the chroma intra prediction mode c1. And the second combined mode includes the luma intra prediction mode l2 and the chroma intra prediction mode c2. When the combining mode flag is 1 and the combining mode index is 0, the luma intra prediction mode l1 and the chroma intra prediction mode c1 are applied to the current block according to the first combining mode. When the combining mode flag is 1 and the combining mode index is 1, the luma intra prediction mode l2 and the chroma intra prediction mode c2 are applied to the current block according to the second combining mode. When the combining mode flag is 0, the luma intra prediction mode and the chroma intra prediction mode of the current block are respectively determined according to the luma intra prediction mode information and the chroma intra prediction mode information obtained from the bit stream, as in Fig.
도 18a 및 도 18b는 결합 모드에 복수의 루마 인트라 예측 모드들 중 하나, 복수의 크로마 인트라 예측 모드들 중 하나, 복수의 변환 모드들 중 하나가 포함될 때, 현재 블록의 부호화 모드 결정 방법을 나타낸다.FIGS. 18A and 18B show a coding mode determination method of a current block when one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, and one of a plurality of conversion modes is included in the combining mode.
도 18a에서 결합 모드의 종류가 하나일 때, 결합 모드 플래그에 따른 부호화 모드를 결정하는 방법이 설명된다. 도 18a에서 결합 모드는 루마 인트라 예측 모드 l과 크로마 인트라 예측 모드 c와 변환 모드t를 포함한다. 따라서 결합 모드 플래그가 1 일 때, 현재 블록에는 루마 인트라 예측 모드l, 크로마 인트라 예측 모드c, 변환 모드 t가 적용된다. 그러나 결합 모드 플래그가 0 일 때, 비트스트림으로부터 루마 인트라 예측 모드에 대한 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드에 대한 크로마 인트라 예측 모드 정보 및 변환 모드에 대한 변환 모드 정보가 획득되고, 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드 정보 및 변환 모드 정보에 따라 현재 블록의 루마 인트라 예측 모드, 크로마 인트라 예측 모드 및 변환 모드가 각각 결정된다.A method of determining an encoding mode according to a joint mode flag when the type of the joint mode is one in FIG. 18A will be described. In FIG. 18A, the combining mode includes a luma intra prediction mode l, a chroma intra prediction mode c, and a conversion mode t. Therefore, when the combining mode flag is 1, the luma intra prediction mode l, the chroma intra prediction mode c, and the conversion mode t are applied to the current block. However, when the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode, chroma intra prediction mode information for the chroma intra prediction mode, and conversion mode information for the conversion mode are obtained from the bitstream, The luma intra prediction mode, the chroma intra prediction mode, and the conversion mode of the current block are determined according to mode information, chroma intra prediction mode information, and conversion mode information, respectively.
도 18b에서 결합 모드의 종류가 둘일 때, 결합 모드 플래그와 결합 모드 인덱스에 따른 부호화 모드를 결정하는 방법이 설명된다. 도 18b에서 제1 결합 모드는 루마 인트라 예측 모드 l1과 크로마 인트라 예측 모드 c1과 변환 모드 t1을 포함한다. 그리고 제2 결합 모드는 루마 인트라 예측 모드 l2과 크로마 인트라 예측 모드 c2 과 변환 모드 t2를 포함한다. 결합 모드 플래그가 1이고, 결합 모드 인덱스가 0일 때, 제1 결합 모드에 따라 현재 블록에는 루마 인트라 예측 모드 l1, 크로마 인트라 예측 모드c1, 변환 모드 t1이 적용된다. 그리고 결합 모드 플래그가 1이고, 결합 모드 인덱스가 1일 때, 제2 결합 모드에 따라 현재 블록에는 루마 인트라 예측 모드 l2, 크로마 인트라 예측 모드c2, 변환 모드 t2가 적용된다. 결합 모드 플래그가 0 일 때, 도 18a와 마찬가지로, 비트스트림으로부터 획득된 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드 정보 및 변환 모드 정보에 따라 루마 인트라 예측 모드, 크로마 인트라 예측 모드, 변환 모드가 결정된다.In Fig. 18B, a method for determining the coding mode according to the combining mode flag and the combining mode index when the type of the combining mode is two is described. 18B, the first combining mode includes the luma intra prediction mode l1, the chroma intra prediction mode c1, and the conversion mode t1. The second combined mode includes the luma intra prediction mode l2, the chroma intra prediction mode c2 and the conversion mode t2. When the combining mode flag is 1 and the combining mode index is 0, the luma intra prediction mode l1, the chroma intra prediction mode c1, and the conversion mode t1 are applied to the current block according to the first combining mode. When the joint mode flag is 1 and the joint mode index is 1, the luma intraprediction mode l2, the chroma intraprediction mode c2, and the conversion mode t2 are applied to the current block according to the second joint mode. When the combining mode flag is 0, the luma intra prediction mode, the chroma intra prediction mode, and the conversion mode are determined based on the luma intra prediction mode information, the chroma intra prediction mode information, and the conversion mode information obtained from the bitstream, .
도 19a 및 도 19b는 결합 모드에 복수의 루마 인트라 예측 모드들 중 하나, 복수의 크로마 인트라 예측 모드들 중 하나, 복수의 변환 모드들 중 하나가 포함되고, 추가적으로 부호화 모드 m1의 적용 여부에 대한 정보가 포함될 때, 현재 블록의 부호화 모드 결정 방법을 나타낸다.19A and 19B are diagrams for explaining the case where the combining mode includes one of a plurality of luma intra prediction modes, one of a plurality of chroma intra prediction modes, one of a plurality of conversion modes, and additionally information about whether or not the coding mode m1 is applied Is included, a coding mode decision method of the current block is shown.
도 19a는 결합 모드에 관한 정보가 결합 모드 플래그와 결합 모드 인덱스로 분리되는 경우의 실시 예를 나타낸다. 도 19a에서 제1 결합 모드는 루마 인트라 예측 모드 l1, 크로마 인트라 예측 모드 c1, 변환 모드 t1 및 부호화 모드 m1의 적용 신호를 포함한다. 그리고 제2 결합 모드는 루마 인트라 예측 모드 l1, 크로마 인트라 예측 모드 c1, 변환 모드 t1 및 부호화 모드 m1의 미적용 신호를 포함한다. 그리고 제3 결합 모드는 루마 인트라 예측 모드 l2, 크로마 인트라 예측 모드 c2, 변환 모드 t2 및 부호화 모드 m1의 적용 신호를 포함한다.FIG. 19A shows an embodiment in which information on the combining mode is divided into a combining mode flag and a combining mode index. 19A, the first combining mode includes the luma intra prediction mode l1, the chroma intra prediction mode c1, the conversion mode t1, and the coding mode m1. The second combined mode includes the luma intra prediction mode l1, the chroma intra prediction mode c1, the conversion mode t1, and the encoding mode m1. The third combined mode includes the luma intra prediction mode l2, the chroma intra prediction mode c2, the conversion mode t2 and the coding mode m1.
결합 모드 플래그가 1이고, 결합 모드 인덱스가 0일 때, 제1 결합 모드에 따라 현재 블록에는 루마 인트라 예측 모드 l1, 크로마 인트라 예측 모드c1, 변환 모드 t1, 부호화 모드 m1이 적용된다. 결합 모드 플래그가 1이고, 결합 모드 인덱스가 10일 때, 제2 결합 모드에 따라 현재 블록에는 루마 인트라 예측 모드 l1, 크로마 인트라 예측 모드c1, 변환 모드 t1이 적용되고, 부호화 모드 m1은 미적용되도록 결정된다. 결합 모드 플래그가 1이고, 결합 모드 인덱스가 11일 때, 제3 결합 모드에 따라 현재 블록에는 루마 인트라 예측 모드 l2, 크로마 인트라 예측 모드c2, 변환 모드 t2, 부호화 모드 m1이 적용된다. 실시 예에 따라, 제1 결합 모드, 제2 결합 모드, 제3 결합 모드 중 가장 많이 사용되는 결합 모드의 결합 모드 인덱스 번호가 0으로 결정될 수 있다.When the combining mode flag is 1 and the combining mode index is 0, the luma intra prediction mode l1, the chroma intra prediction mode c1, the conversion mode t1, and the encoding mode m1 are applied to the current block according to the first combining mode. When the joint mode flag is 1 and the joint mode index is 10, the luma intraprediction mode l1, the chroma intraprediction mode c1, and the conversion mode t1 are applied to the current block according to the second joint mode, and the encoding mode m1 is determined not to be used do. When the joint mode flag is 1 and the joint mode index is 11, the luma intraprediction mode l2, the chroma intra prediction mode c2, the transformation mode t2, and the encoding mode m1 are applied to the current block according to the third joint mode. According to the embodiment, the joint mode index number of the most used joint mode among the first joint mode, the second joint mode, and the third joint mode may be determined to be zero.
결합 모드 플래그가 0 일 때, 비트스트림으로부터 루마 인트라 예측 모드에 대한 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드에 대한 크로마 인트라 예측 모드 정보 및 변환 모드에 대한 변환 모드 정보, 부호화 모드 m1에 대한 m1 정보가 획득되고, 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드 정보, 변환 모드 정보 및 m1 정보에 따라 루마 인트라 예측 모드, 크로마 인트라 예측 모드, 변환 모드이 결정되고, 부호화 모드 m1 적용 여부가 결정된다.Luma intra prediction mode information for the luma intra prediction mode from the bitstream, chroma intra prediction mode information for the chroma intra prediction mode and conversion mode information for the conversion mode, m1 information for the encoding mode m1 And the luma intra prediction mode, the chroma intra prediction mode, and the conversion mode are determined according to the luma intra prediction mode information, the chroma intra prediction mode information, the conversion mode information, and the m1 information, and it is determined whether or not the encoding mode m1 is applied.
도 19b는 결합 모드에 관한 정보가 결합 모드 인덱스만 있는 경우의 실시 예를 나타낸다. 결합 모드 인덱스의 첫 번째 빈(bin)이 결합 모드 플래그의 기능을 하기 때문에, 도19b의 실시 예와 도 19a의 실시 예는 실질적으로 동일하다.FIG. 19B shows an embodiment in which the information on the combining mode includes only the combining mode index. The embodiment of FIG. 19B and the embodiment of FIG. 19A are substantially the same because the first bin of the combined mode index serves as a joint mode flag.
도 19b에 따르면 결합 모드 인덱스가 10일 때, 제1 결합 모드에 따라 현재 블록에는 루마 인트라 예측 모드 l1, 크로마 인트라 예측 모드c1, 변환 모드 t1, 부호화 모드 m1이 적용된다. 결합 모드 인덱스가 110일 때, 제2 결합 모드에 따라 현재 블록에는 루마 인트라 예측 모드 l1, 크로마 인트라 예측 모드c1, 변환 모드 t1이 적용되고, 부호화 모드 m1은 미적용되도록 결정된다. 결합 모드 인덱스가 111일 때, 제3 결합 모드에 따라 현재 블록에는 루마 인트라 예측 모드 l2, 크로마 인트라 예측 모드c2, 변환 모드 t2, 부호화 모드 m1이 적용된다. 실시 예에 따라, 제1 결합 모드, 제2 결합 모드, 제3 결합 모드 중 가장 많이 사용되는 결합 모드의 결합 모드 인덱스 번호가10으로 결정될 수 있다.According to FIG. 19B, when the combined mode index is 10, the luma intra prediction mode l1, the chroma intra prediction mode c1, the conversion mode t1, and the encoding mode m1 are applied to the current block according to the first combining mode. When the combined mode index is 110, the luma intra prediction mode l1, the chroma intra prediction mode c1, and the conversion mode t1 are applied to the current block according to the second combining mode, and the coding mode m1 is determined not to be used. When the combined mode index is 111, the luma intraprediction mode l2, the chroma intra prediction mode c2, the conversion mode t2, and the encoding mode m1 are applied to the current block according to the third combining mode. According to an embodiment, the joint mode index number of the most used joint mode among the first joint mode, the second joint mode, and the third joint mode may be determined to be 10.
결합 모드 인덱스가 0 일 때, 비트스트림으로부터 획득된 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드 정보, 변환 모드 정보 및 m1 정보에 따라 루마 인트라 예측 모드, 크로마 인트라 예측 모드, 변환 모드이 결정되고, 부호화 모드 m1 적용 여부가 결정된다.When the combined mode index is 0, the luma intra prediction mode, the chroma intra prediction mode, and the conversion mode are determined based on the luma intra prediction mode information, the chroma intra prediction mode information, the conversion mode information and the m1 information obtained from the bitstream, m1 is applied.
도 20은 결합 모드에 부호화 모드 m1, m3 적용 여부와 부호화 모드 m2의 세부 모드에 대한 정보가 포함된 때, 현재 블록의 부호화 모드 결정 방법을 나타낸다.20 shows a method of determining a coding mode of a current block when information on coding mode m1 and m3 is applied to the combining mode and information on the coding mode m2 is included.
도 20에서 제1 결합 모드는 부호화 모드 m1의 적용 신호, 부호화 모드 m2에 대한 세부 모드1 및 부호화 모드 m3의 미적용 신호를 포함한다. 그리고 제2 결합 모드는 부호화 모드 m1의 적용 신호, 부호화 모드 m2에 대한 세부 모드2 및 부호화 모드 m3의 미적용 신호를 포함한다. 그리고 제3 결합 모드는 부호화 모드 m1의 적용 신호, 부호화 모드 m2에 대한 세부 모드1 및 부호화 모드 m3의 적용 신호를 포함한다. 그리고 제4 결합 모드는 부호화 모드 m1의 미적용 신호, 부호화 모드 m2에 대한 세부 모드1 및 부호화 모드 m3의 적용 신호를 포함한다.In FIG. 20, the first combining mode includes an application signal of the encoding mode m1, an unused signal of the detail mode 1 and the encoding mode m3 for the encoding mode m2. And the second combining mode includes the application signal of the encoding mode m1, the detail mode 2 of the encoding mode m2, and the non-enable signal of the encoding mode m3. The third joint mode includes an application signal of the encoding mode m1, an application signal of the detail mode 1 and the encoding mode m3 for the encoding mode m2. The fourth combining mode includes an unused signal of the encoding mode m1, an application signal of the detail mode 1 and the encoding mode m3 for the encoding mode m2.
결합 모드 플래그가 1이고, 결합 모드 인덱스가 00일 때, 제1 결합 모드에 따라 현재 블록에는 부호화 모드 m1, 부호화 모드 m2의 세부 모드1이 적용되고, 부호화 모드 m3는 현재 블록에 대하여 적용되지 않는 것으로 결정된다. 결합 모드 플래그가 1이고, 결합 모드 인덱스가 01일 때, 제2 결합 모드에 따라 현재 블록에는 부호화 모드 m1, 부호화 모드 m2의 세부 모드2가 적용되고, 부호화 모드 m3는 현재 블록에 대하여 적용되지 않는 것으로 결정된다. 결합 모드 플래그가 1이고, 결합 모드 인덱스가 10일 때, 제3 결합 모드에 따라 현재 블록에는 부호화 모드 m1, 부호화 모드 m2의 세부 모드1, 부호화 모드 m3이 적용된다. 결합 모드 플래그가 1이고, 결합 모드 인덱스가 11일 때, 제4결합 모드에 따라 현재 블록에는 부호화 모드 m2의 세부 모드1, 부호화 모드 m3가 적용되고, 부호화 모드 m1는 현재 블록에 대하여 적용되지 않는 것으로 결정된다.When the combining mode flag is 1 and the combining mode index is 00, the coding mode m1 and the detailed mode 1 of the coding mode m2 are applied to the current block according to the first combining mode, and the coding mode m3 is not applied to the current block . When the combining mode flag is 1 and the combining mode index is 01, the coding mode m1 and the detailed mode 2 of the coding mode m2 are applied to the current block according to the second combining mode, and the coding mode m3 is not applied to the current block . When the combining mode flag is 1 and the combining mode index is 10, the coding mode m1, the detailed mode 1 of the coding mode m2, and the coding mode m3 are applied to the current block according to the third combining mode. When the combining mode flag is 1 and the combining mode index is 11, the detailed mode 1 and coding mode m3 of the coding mode m2 are applied to the current block according to the fourth combining mode, and the coding mode m1 is not applied to the current block .
결합 모드 플래그가 0 일 때, 비트스트림으로부터 부호화 모드 m1에 대한 부호화 정보, 부호화 모드 m2에 대한 부호화 정보, 부호화 모드 m3에 대한 부호화 정보가 획득되고, 획득된 부호화 정보에 따라 부호화 모드 m1, m3의 적용 여부와 부호화 모드 m2의 세부 모드가 결정된다.When the combining mode flag is 0, encoding information for encoding mode m1, encoding information for encoding mode m2, and encoding information for encoding mode m3 are obtained from the bitstream, and encoded information for encoding modes m1 and m3 And the detailed mode of encoding mode m2 are determined.
도 21a 는 인터 슬라이스(P 슬라이스 또는 B 슬라이스)에서 결합 모드에 따라 부호화 모드를 결정하는 방법을 나타내고, 도 21b는 인트라 슬라이스(I 슬라이스)에서 결합 모드에 따라 부호화 모드를 결정하는 방법을 나타낸다.FIG. 21A shows a method of determining an encoding mode according to a combining mode in an interlace (P slice or B slice), and FIG. 21B shows a method of determining an encoding mode according to a combining mode in an intra slice (I slice).
도 21a에서 결합 모드는 루마 인트라 예측 모드 l, 크로마 인트라 예측 모드c, 부호화 모드 m1 및 m2의 적용 신호를 포함한다. 결합 모드 플래그가 1일 때, 현재 블록에는 루마 인트라 예측 모드 l, 크로마 인트라 예측 모드c, 부호화 모드 m1 및 m2가 적용된다. 결합 모드 플래그가 0일 때, 비트스트림으로부터 루마 인트라 예측 모드에 대한 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드에 대한 크로마 인트라 예측 모드 정보, 부호화 모드 m1에 대한 부호화 정보 및 부호화 모드 m2에 대한 부호화 정보가 획득된다. 그리고 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드 정보, 부호화 m1에 관한 부호화 정보, 부호화 m2에 관한 부호화 정보에 따라 현재 블록의 루마 인트라 예측 모드, 크로마 인트라 예측 모드가 결정되고 부호화 모드 m1 및 m2의 적용 여부가 결정된다.21A, the combining mode includes the luma intra prediction mode l, the chroma intra prediction mode c, and the coding modes m1 and m2. When the combining mode flag is 1, the luma intra prediction mode l, the chroma intra prediction mode c, and the encoding modes m1 and m2 are applied to the current block. When the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode, chroma intra prediction mode information for the chroma intra prediction mode, encoding information for the encoding mode m1, and encoding information for the encoding mode m2 Is obtained. The luma intra prediction mode and the chroma intra prediction mode of the current block are determined in accordance with the luma intra prediction mode information, the chroma intra prediction mode information, the encoding information about the encoding m1, and the encoding information about the encoding m2 to determine the encoding modes m1 and m2 Is determined.
도 21b에서 결합 모드는 루마 인트라 예측 모드 l, 부호화 모드 m1 및 m2의 적용 신호를 포함한다. 결합 모드 플래그가 1일 때, 현재 블록에는 루마 인트라 예측 모드 l, 부호화 모드 m1 및 m2가 적용된다. 결합 모드 플래그가 0일 때, 비트스트림으로부터 루마 인트라 예측 모드에 대한 루마 인트라 예측 모드 정보, 부호화 모드 m1에 대한 부호화 정보 및 부호화 모드 m2에 대한 부호화 정보가 획득된다. 그리고 루마 인트라 예측 모드 정보, 부호화 m1에 관한 부호화 정보, 부호화 m2에 관한 부호화 정보에 따라 현재 블록의 루마 인트라 예측 모드가 결정되고 부호화 모드 m1 및 m2의 적용 여부가 결정된다.In Fig. 21B, the combining mode includes the luma intra prediction mode l, coding modes m1 and m2. When the combining mode flag is 1, the luma intra prediction mode l and coding modes m1 and m2 are applied to the current block. When the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode, encoding information for encoding mode m1, and encoding information for encoding mode m2 are obtained from the bitstream. The luma intra prediction mode of the current block is determined according to the luma intra prediction mode information, the encoding information about the encoding ml and the encoding information about the encoding m2 to determine whether or not the encoding modes m1 and m2 are applied.
도 21a 및 도 21b의 부호화 모드 m1 및 m2 중 적어도 하나는 인트라 예측 후 적용되는 후필터(post filter)일 수 있다.At least one of the encoding modes m1 and m2 in Figs. 21A and 21B may be a post filter applied after intra prediction.
도 22a는 인터 슬라이스(P 슬라이스 또는 B 슬라이스)에서 DC 모드를 포함하는 결합 모드에 따라 부호화 모드를 결정하는 방법을 나타내고, 도 22b는 인트라 슬라이스(I 슬라이스)에서 DC 모드를 포함하는 결합 모드에 따라 부호화 모드를 결정하는 방법을 나타낸다.22A shows a method of determining an encoding mode according to a combining mode including a DC mode in an interlace (P slice or B slice), FIG. 22B shows a method of determining a coding mode according to a combining mode including an DC mode in an intra slice Indicates a method of determining an encoding mode.
도 22a에서 결합 모드는 루마 인트라 예측 모드로서 DC모드와 크로마 인트라 예측 모드로서 LM 크로마 모드, MPI 모드를 포함한다. 결합 모드 플래그가 1일 때, 현재 블록에는 루마 인트라 예측 모드로서 DC모드와 크로마 인트라 예측 모드로서 LM 크로마 모드, MPI 모드가 적용된다. 결합 모드 플래그가 0일 때, 비트스트림으로부터 루마 인트라 예측 모드에 대한 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드에 대한 크로마 인트라 예측 모드 정보, MPI에 대한 부호화 정보가 획득된다. 그리고 루마 인트라 예측 모드 정보, 크로마 인트라 예측 모드 정보, MPI에 대한 부호화 정보에 따라 현재 블록의 루마 인트라 예측 모드, 크로마 인트라 예측 모드, MPI의 적용 여부가 결정된다.In FIG. 22A, the combining mode includes a DC mode as a luma intra prediction mode and an LM chroma mode and MPI mode as a chroma intra prediction mode. When the combining mode flag is 1, the current block is applied with the DC mode as the luma intra-prediction mode and the LM chroma mode and the MPI mode as the chroma intra prediction mode. When the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode, chroma intra prediction mode information for the chroma intra prediction mode, and encoding information for MPI are obtained from the bitstream. The luma intra prediction mode, the chroma intra prediction mode, and the MPI are determined depending on the luma intra prediction mode information, the chroma intra prediction mode information, and the MPI coding information.
도 22b에서 결합 모드는 루마 인트라 예측 모드로서 DC모드와 MPI 모드를 포함한다. 결합 모드 플래그가 1일 때, 현재 블록에는 루마 인트라 예측 모드로서 DC모드와 MPI 모드가 적용된다. 결합 모드 플래그가 0일 때, 비트스트림으로부터 루마 인트라 예측 모드에 대한 루마 인트라 예측 모드 정보, MPI모드에 대한 부호화 정보가 획득된다. 그리고 루마 인트라 예측 모드 정보, MPI모드에 대한 부호화 정보에 따라 현재 블록의 루마 인트라 예측 모드와 MPI모드의 적용 여부가 결정된다.In Fig. 22B, the combining mode includes a DC mode and an MPI mode as luma intra prediction modes. When the combining mode flag is 1, the DC mode and the MPI mode are applied to the current block as the luma intra prediction mode. When the combining mode flag is 0, luma intra prediction mode information for the luma intra prediction mode and coding information for the MPI mode are obtained from the bitstream. The luma intra prediction mode and the MPI mode of the current block are determined according to the luma intra prediction mode information and the encoding information for the MPI mode.
도22a 및 22b에서는 MPI 모드가 적용되는 것으로 설명되었으나, MIP 모드가 MPI 모드 대신 적용될 수 있다.22A and 22B, the MPI mode is applied, but the MIP mode may be applied instead of the MPI mode.
도 21b와 도22b에서는 인트라 슬라이스에서 결합 모드가 적용된다고 설명되어 있으나, 인트라 슬라이스에서 결합 모드가 적용되지 않을 수 있다.21B and 22B, it is described that the combining mode is applied in the intra slice, but the combining mode may not be applied in the intra slice.
도 23은 결합 모드의 일 실시예를 나타내는 부호화 단위의 신택스이다. 도23에 의하면, 결합 모드 플래그에 해당되는 lccm_flag[x0][y0]는 슬라이스 타입에 해당되는 slice_type이 I슬라이스 타입이 아닐 때 획득된다(if(slice_type !=I)). 다만, 실시 예에 따라, 도23의 개시와 달리 slice_type이 I슬라이스 타입일 때도, lccm_flag[x0][y0]이 획득될 수 있다.23 is a syntax of an encoding unit showing an embodiment of the combining mode. 23, lccm_flag [x0] [y0] corresponding to the coupling mode flag is obtained when slice_type corresponding to the slice type is not I slice type (if (slice_type! = I)). However, according to the embodiment, lccm_flag [x0] [y0] can be obtained even when the slice_type is an I slice type, unlike the disclosure in Fig.
결합 모드 플래그에 해당되는 lccm_flag[x0][y0]가 0일 경우, 일반적인 복호화 프로세스가 진행된다. 우선, MPM 모드 정보와 PIMS 모드 정보가 파싱되어, 현재 블록의 인트라 예측 모드가 결정될 수 있다. 그리고 인트라 예측 필터링 모드를 나타내는 MPI 모드 정보와 MIP 모드 정보가 파싱되어, 현재 블록의 인트라 예측 필터링 모드가 결정될 수 있다.When lccm_flag [x0] [y0] corresponding to the coupling mode flag is 0, the general decoding process proceeds. First, the MPM mode information and the PIMS mode information are parsed, and the intra prediction mode of the current block can be determined. The MPI mode information and the MIP mode information indicating the intra prediction filtering mode are parsed, and the intra prediction filtering mode of the current block can be determined.
그러나 lccm_flag[x0][y0]가 1일 경우, 인트라 예측 모드를 나타내는 MPM 모드 정보와 PIMS 모드 정보 및, 인트라 예측 필터링 모드를 나타내는 MPI 모드 정보와 MIP 모드 정보는 파싱되지 않는다.However, when lccm_flag [x0] [y0] is 1, the MPM mode information and the PIMS mode information indicating the intra-prediction mode and the MPI mode information and the MIP mode information indicating the intra prediction filtering mode are not parsed.
상기 부호화 정보의 파싱 없이, (x0, y0)에 위치한 현재 블록에 대한 루마 인트라 예측 모드를 나타내는 ipm[x0][y0][0]은 결합 모드에 따른 루마 인트라 예측 모드인 LCCM_LUMA로 결정된다. LCCM_LUMA는 DC 모드일 수 있다. 그리고 (x0, y0)에 위치한 현재 블록에 대한 크로마 인트라 예측 모드를 나타내는 ipm[x0][y0][1]은 결합 모드에 따른 크로마 인트라 예측 모드인 LCCM_CHROMA로 결정된다. LCCM_CHROMA 는 LM 크로마 모드일 수 있다. (x0, y0)에 위치한 현재 블록에 MPI 모드의 적용 여부를 나타내는 mpi_idx[x0][y0]는 1로 결정된다. 따라서 현재 블록에 MPI 모드가 적용된다. 다만 통상의 기술자는 현재 블록에 MPI 모드 대신 MIP 모드를 적용할 수 있다.Ipm [x0] [y0] [0] indicating the luma intra-prediction mode for the current block located at (x0, y0) is determined to LCCM_LUMA, which is a luma intra prediction mode according to the combining mode, without parsing the coding information. LCCM_LUMA may be in DC mode. And ipm [x0] [y0] [1] indicating the chroma intra prediction mode for the current block located at (x0, y0) is determined as LCCM_CHROMA, which is a chroma intra prediction mode according to the combining mode. LCCM_CHROMA may be the LM chroma mode. mpi_idx [x0] [y0] indicating whether or not the MPI mode is applied is determined as 1 in the current block located at (x0, y0). Therefore, the MPI mode is applied to the current block. However, a normal descriptor may apply the MIP mode instead of the MPI mode to the current block.
만약 도23의 개시와 달리 slice_type이 I슬라이스 타입일 때도, lccm_flag[x0][y0]이 획득되는 경우, 현재 블록에 대한 루마 인트라 예측 모드를 나타내는 ipm[x0][y0][0] 가 LCCM_LUMA로 결정될 수 있다. 그리고 현재 블록에 MPI 모드의 적용 여부를 나타내는 mpi_idx[x0][y0]는 1로 결정될 수 있다.If lccm_flag [x0] [y0] is obtained even when slice_type is an I slice type, ipm [x0] [y0] [0] indicating the luma intra prediction mode for the current block is LCCM_LUMA Can be determined. And mpi_idx [x0] [y0] indicating whether or not the MPI mode is applied to the current block can be determined to be 1.
도 24에는 결합 모드에 따라 부호화 모드를 결정하는 일 실시예에 따른 비디오 복호화 방법(2400)이 도시되어 있다.FIG. 24 shows a video decoding method 2400 according to an embodiment for determining a coding mode according to a combining mode.
단계 2410에서, 비트스트림으로부터 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되는지 여부를 나타내는 현재 블록의 결합 모드 플래그가 획득된다. 결합 모드는 복수의 루마 인트라 예측 모드들 중 하나와 복수의 크로마 인트라 예측 모드들 중 하나를 포함할 수 있다. 결합모드는 루마 인트라 예측 모드로서 DC 모드를, 크로마 인트라 예측 모드로서 LM 크로마 모드를 포함할 수 있다.In step 2410, a combining mode flag of the current block indicating whether a plurality of coding modes included in the combining mode are applied to the current block from the bitstream is obtained. The combining mode may include one of a plurality of luma intra prediction modes and one of a plurality of chroma intra prediction modes. The joint mode may include a DC mode as a luma intra prediction mode and an LM chroma mode as a chroma intra prediction mode.
결합 모드는 제1변환 모드를 포함할 수 있다. 또한 결합 모드는 상기 현재 블록의 인트라 예측 결과를 필터링하는 인트라 예측 필터 모드를 포함할 수 있다. 상기 인트라 예측 필터 모드는 MPI 모드 또는 MPI 모드일 수 있다.The combining mode may include a first conversion mode. Also, the combining mode may include an intra prediction filter mode for filtering the intra prediction result of the current block. The intraprediction filter mode may be an MPI mode or an MPI mode.
결합 모드는 현재 블록이 포함된 현재 슬라이스의 슬라이스 타입에 따라 결정될 수 있다. 예를 들면, 현재 슬라이스가 P 슬라이스 타입 또는 B 슬라이스 타입일 때, 결합 모드는 복수의 루마 인트라 예측 모드들 중 하나와 복수의 크로마 인트라 예측 모드들 중 하나를 포함할 수 있다. 그러나 현재 슬라이스가 I 슬라이스 타입일 때, 결합 모드는 제1 루마 인트라 예측 모드만을 포함할 수 있다.The join mode can be determined according to the slice type of the current slice including the current block. For example, when the current slice is a P slice type or B slice type, the combining mode may include one of a plurality of luma intra prediction modes and one of a plurality of chroma intra prediction modes. However, when the current slice is an I slice type, the combining mode may include only the first luma intra prediction mode.
일 실시예에 의하면, 현재 슬라이스가 I 슬라이스 타입일 때, 비트스트림으로부터 현재 블록의 결합 모드 플래그가 획득되지 않을 수 있다. 따라서, 현재 슬라이스가 I 슬라이스 타입일 경우, 결합 모드가 적용되지 않을 수 있다.According to one embodiment, when the current slice is an I slice type, the join mode flag of the current block from the bitstream may not be obtained. Thus, if the current slice is an I slice type, the join mode may not be applied.
비트스트림으로부터 현재 블록이 포함된 데이터 단위에 대하여 결합 모드가 허용되는지 여부를 나타내는 결합 모드 허용 플래그를 획득될 수 있다. 결합 모드 허용 플래그가 현재 블록이 포함된 데이터 단위에 대하여 결합 모드가 허용됨을 나타낼 때, 현재 블록에 대한 결합 모드 플래그가 획득될 수 있다. 반대로 상기 결합 모드 허용 플래그가 상기 현재 블록이 포함된 데이터 단위에 대하여 결합 모드가 허용되지 않음을 나타낼 때, 현재 블록에 대한 결합 모드 플래그는 획득되지 않는다.A combining mode permission flag indicating whether or not a combining mode is allowed for a data unit including the current block from the bitstream can be obtained. When the join mode permit flag indicates that the join mode is allowed for the data unit in which the current block is contained, a join mode flag for the current block can be obtained. Conversely, when the combining mode permission flag indicates that the combining mode is not allowed for the data unit including the current block, the combining mode flag for the current block is not obtained.
단계 2420에서. 현재 블록의 결합 모드 플래그가 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용됨을 나타낼 때, 결합 모드의 복수의 부호화 모드들이 현재 블록의 부호화 모드들로 결정된다.In step 2420. When the coupling mode flag of the current block indicates that a plurality of coding modes included in the coupling mode are applied to the current block, a plurality of coding modes of the coupling mode are determined as the coding modes of the current block.
결합 모드에 포함된 루마 인트라 예측 모드와 크로마 인트라 예측 모드가 현재 블록의 루마 인트라 예측 모드와 크로마 인트라 예측 모드로 결정될 수 있다. 또한 결합 모드에 포함된 변환 모드가 현재 블록의 변환 모드로 결정될 수 있다The luma intra prediction mode and the chroma intra prediction mode included in the combining mode can be determined as the luma intra prediction mode and the chroma intra prediction mode of the current block. Also, the conversion mode included in the combining mode can be determined as the conversion mode of the current block
결합 모드에 인트라 예측 필터 모드가 포함된 경우, 현재 블록에 인트라 예측 필터 모드를 적용하도록 결정하 결정될 수 있다.If the combining mode includes an intra prediction filter mode, it can be determined to apply the intra prediction filter mode to the current block.
현재 블록의 결합 모드 플래그가 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용됨을 나타낼 때, 복수의 결합 모드들 중 하나의 결합 모드를 나타내는 결합 모드 인덱스가 획득될 수 있다. 그리고 결합 모드 인덱스가 나타내는 결합 모드의 복수의 인트라 예측 모드가 현재 블록의 부호화 모드들로 결정될 수 있다.When the combining mode flag of the current block indicates that a plurality of coding modes included in the combining mode are applied to the current block, a combining mode index indicating a combining mode of one of the plurality of combining modes can be obtained. And a plurality of intra prediction modes of the joint mode indicated by the joint mode index may be determined as the encoding modes of the current block.
현재 블록의 결합 모드 플래그가 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되지 않음을 나타낼 때, 비트스트림으로부터 부호화 모드 정보가 획득되고, 상기 부호화 모드 정보에 따라 상기 현재 블록의 부호화 모드들이 결정될 수 있다.Encoding mode information is obtained from a bitstream when a joint mode flag of a current block indicates that a plurality of encoding modes included in a joint mode are not applied to a current block, encoding mode information is obtained from the bitstream, Can be determined.
단계 2430에서, 현재 블록의 부호화 모드들에 따라 현재 블록이 복호화된다. In step 2430, the current block is decoded according to the encoding modes of the current block.
도 16에서 설명된 비디오 복호화 장치(1600)의 기능이 도 24의 비디오 복호화 방법(2400)에 포함될 수 있다.The function of the video decoding apparatus 1600 described in FIG. 16 may be included in the video decoding method 2400 of FIG.
도25에는 부호화 모드에 따라 결합 모드의 사용 여부를 결정하는 일 실시예에 따른 비디오 부호화 장치(2500)가 도시되어 있다.FIG. 25 shows a video encoding apparatus 2500 according to an embodiment for determining whether to use the joint mode according to the encoding mode.
비디오 부호화 장치(2500)는 부호화부(2510) 및 비트스트림 생성부(2520)를 포함한다. 도 25에서 부호화부(2510) 및 비트스트림 생성부(25120)는 별도의 구성 단위로 표현되어 있으나, 실시 예에 따라 부호화부(2510) 및 비트스트림 생성부(2520)는 합쳐져 하나의 구성 단위로 구현될 수도 있다.The video coding apparatus 2500 includes a coding unit 2510 and a bitstream generating unit 2520. 25, the encoding unit 2510 and the bitstream generating unit 25120 are represented as separate constituent units. However, according to the embodiment, the encoding unit 2510 and the bitstream generating unit 2520 are combined to form a single unit .
도 25에서 부호화부(2510) 및 비트스트림 생성부(2520)는 하나의 장치에 위치한 구성 단위로 표현되었지만, 부호화부(2510) 및 비트스트림 생성부(2520)의 각 기능을 담당하는 장치는 반드시 물리적으로 인접할 필요는 없다. 따라서 실시 예에 따라 부호화부(2510) 및 비트스트림 생성부(2520)가 분산되어 있을 수 있다.25, the encoding unit 2510 and the bitstream generating unit 2520 are represented by the constituent units located in one apparatus, but the apparatuses responsible for the respective functions of the encoding unit 2510 and the bitstream generating unit 2520 are not necessarily It does not need to be physically contiguous. Therefore, the encoding unit 2510 and the bitstream generating unit 2520 may be dispersed according to the embodiment.
부호화부(2510) 및 비트스트림 생성부(2520)는 실시 예에 따라 하나의 프로세서에 의하여 구현될 수 있다. 또한 실시 예에 따라 복수 개의 프로세서에 의하여 구현될 수도 있다.The encoding unit 2510 and the bitstream generating unit 2520 may be implemented by one processor according to an embodiment. And may be implemented by a plurality of processors according to an embodiment.
부호화부(2510)는 현재 블록에 최적화된 부호화 모드들 결정할 수 있다. 그리고 부호화부(2510)는 현재 블록의 부호화 모드들이 결합 모드에 포함되는지 여부에 따라 현재 블록의 결합 모드 플래그를 생성한다. 도16 내지 도24에서 논의된 결합 모드의 실시 예는 도 25의 비디오 복호화 방법(2500)에 적용될 수 있다.The encoding unit 2510 can determine the encoding modes optimized for the current block. The coding unit 2510 generates a combining mode flag of the current block according to whether or not the coding modes of the current block are included in the combining mode. An embodiment of the combining mode discussed in Figs. 16-24 may be applied to the video decoding method 2500 of Fig.
일 실시 예에 따르면, 부호화부(2510)는 현재 슬라이스가 P 슬라이스 타입 또는 B 슬라이스 타입일 때에만, 현재 블록의 결합 모드 플래그를 생성하도록 설정될 수 있다. 반대로 부호화부(2510)는 현재 슬라이스가 I 슬라이스 타입일 때, 현재 블록의 결합 모드 플래그를 생성하지 않도록 설정될 수 있다.According to one embodiment, the encoding unit 2510 can be set to generate a join mode flag of the current block only when the current slice is a P slice type or a B slice type. Conversely, when the current slice is an I slice type, the encoding unit 2510 can be set not to generate a join mode flag of the current block.
부호화부(2510)는 비디오 부호화 장치(2500)에서 사용하는 결합 모드의 개수가 2개 이상일 때, 복수의 결합 모드들 중 하나의 결합 모드를 나타내는 결합 모드 인덱스를 생성할 수 있다. 그리고 부호화부(2510)는 현재 블록의 상위 데이터 단위에 결합 모드가 사용된 블록이 있는지 여부 및 현재 블록의 상위 데이터 단위에 결합 모드가 허용되는지 여부에 따라 현재 블록의 상위 데이터 단위에 대하여 결합 모드 허용 플래그를 생성할 수 있다.When the number of combining modes used in the video encoding apparatus 2500 is two or more, the coding unit 2510 may generate a combining mode index indicating a combining mode of the plurality of combining modes. The encoding unit 2510 determines whether a combination mode is permitted for the upper data unit of the current block according to whether the block having the combining mode is present in the upper data unit of the current block and whether the combining mode is allowed in the upper data unit of the current block. Flag can be generated.
부호화부(2510)는 현재 블록의 부호화 모드들이 결합 모드에 포함되지 않는 경우, 현재 블록의 부호화 모드들에 관한 부호화 모드 정보를 생성할 수 있다.The encoding unit 2510 can generate the encoding mode information about the encoding modes of the current block when the encoding modes of the current block are not included in the combining mode.
비트스트림 생성부(2520)는 결합 모드 플래그를 포함하는 비트스트림을 생성한다.The bitstream generation unit 2520 generates a bitstream including a combining mode flag.
도 25의 부호화부(2510) 및 비트스트림 생성부(2520)에서 수행되는 기능은 도1a의 비트스트림 생성부(120)에서 수행될 수 있다. The functions performed by the coding unit 2510 and the bitstream generating unit 2520 of FIG. 25 may be performed by the bitstream generating unit 120 of FIG. 1A.
도 25의 비디오 부호화 장치(2500)는 도 16의 비디오 복호화 장치(1600)에서 수행되는 비디오 복호화 방법에 대응되는 비디오 부호화 방법을 수행할 수 있다.The video encoding apparatus 2500 of FIG. 25 may perform a video encoding method corresponding to the video decoding method performed by the video decoding apparatus 1600 of FIG.
도 26에는 부호화 모드에 따라 결합 모드의 사용 여부를 결정하는 일 실시예에 따른 비디오 부호화 방법(2600)이 도시되어 있다.FIG. 26 shows a video encoding method 2600 according to an embodiment for determining whether to use a combining mode according to an encoding mode.
단계 2610에서, 현재 블록의 부호화 모드들이 결정된다.In step 2610, the encoding modes of the current block are determined.
단계 2620에서, 현재 블록의 부호화 모드들이 결합 모드의 복수의 부호화 모드들과 동일한지 여부에 따라, 현재 블록의 결합 모드 플래그가 생성된다.In step 2620, depending on whether the encoding modes of the current block are the same as the plurality of encoding modes of the joint mode, a joint mode flag of the current block is generated.
단계 2630에서, 결합 모드 플래그를 포함하는 비트스트림이 생성된다.In step 2630, a bitstream including the combined mode flag is generated.
도 25에서 설명된 비디오 부호화 장치(2500)의 기능이 도 26의 비디오 부호화 방법(2600)에 포함될 수 있다.The function of the video encoding apparatus 2500 described in Fig. 25 may be included in the video encoding method 2600 of Fig.
도 1 내지 26를 참조하여 전술된 트리 구조의 부호화 단위들에 기초한 비디오 부호화 기법에 따라, 트리 구조의 부호화 단위들마다 공간영역의 영상 데이터가 부호화되며, 트리 구조의 부호화 단위들에 기초한 비디오 복호화 기법에 따라 최대 부호화 단위마다 복호화가 수행되면서 공간 영역의 영상 데이터가 복원되어, 픽처 및 픽처 시퀀스인 비디오가 복원될 수 있다. 복원된 비디오는 재생 장치에 의해 재생되거나, 저장 매체에 저장되거나, 네트워크를 통해 전송될 수 있다.According to a video coding technique based on the coding units of the tree structure described above with reference to FIGS. 1 to 26, video data of a spatial region is encoded for each coding unit of the tree structure, and a video decoding technique based on coding units of the tree structure Decoding is performed for each maximum encoding unit according to the motion vector, and the video data in the spatial domain is reconstructed, and the video and the video, which is a picture sequence, can be reconstructed. The restored video can be played back by the playback apparatus, stored in a storage medium, or transmitted over a network.
한편, 상술한 본 발명의 실시예들은 컴퓨터에서 실행될 수 있는 프로그램으로 작성가능하고, 컴퓨터로 읽을 수 있는 기록매체를 이용하여 상기 프로그램을 동작시키는 범용 디지털 컴퓨터에서 구현될 수 있다.The above-described embodiments of the present invention can be embodied in a general-purpose digital computer that can be embodied as a program that can be executed by a computer and operates the program using a computer-readable recording medium.
본 발명은 특정한 최상의 실시 예와 관련하여 설명되었지만, 이외에 본 발명에 대체, 변형 및 수정이 적용된 발명들은 전술한 설명에 비추어 당업자에게 명백할 것이다. 즉, 청구범위는 이러한 모든 대체, 변형 및 수정된 발명을 포함하도록 해석한다. 그러므로 이 명세서 및 도면에서 설명한 모든 내용은 예시적이고 비제한적인 의미로 해석해야 한다.While the present invention has been described in connection with certain preferred embodiments, it will be apparent to those skilled in the art from the foregoing description that modifications, variations and adaptations of the invention are possible. That is, the claims shall be construed to include all such alternatives, modifications and modified inventions. It is therefore intended that all matter contained in the description and drawings be interpreted as illustrative and not in a limiting sense.

Claims (15)

  1. 비트스트림으로부터 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되는지 여부를 나타내는 현재 블록의 결합 모드 플래그를 획득하는 단계; 및Obtaining a combining mode flag of a current block indicating whether a plurality of coding modes included in the combining mode are applied to the current block from the bitstream; And
    상기 현재 블록의 결합 모드 플래그가 상기 결합 모드에 포함된 복수의 부호화 모드들이 상기 현재 블록에 같이 적용됨을 나타낼 때, 상기 결합 모드의 복수의 부호화 모드를 상기 현재 블록의 부호화 모드들로 결정하는 단계; 및Determining a plurality of coding modes of the coupling mode as coding modes of the current block when a coupling mode flag of the current block indicates that a plurality of coding modes included in the coupling mode are applied to the current block; And
    상기 현재 블록의 부호화 모드들에 따라 상기 현재 블록을 복호화하는 단계를 포함하는 비디오 복호화 방법.And decoding the current block according to coding modes of the current block.
  2. 제1 항에 있어서,The method according to claim 1,
    상기 결합 모드는 제1 루마 인트라 예측 모드와 제1 크로마 인트라 예측 모드를 포함하고,Wherein the combining mode includes a first luma intra prediction mode and a first chroma intra prediction mode,
    상기 부호화 모드들의 결정 단계는,Wherein the determining of the encoding modes comprises:
    상기 현재 블록의 루마 인트라 예측 모드를 제1 루마 인트라 예측 모드로 결정하고, 상기 현재 블록의 크로마 인트라 예측 모드를 제1 크로마 인트라 예측 모드로 결정하는 것을 특징으로 하는 비디오 복호화 방법.Determining a luma intra prediction mode of the current block as a first luma intra prediction mode and a chroma intra prediction mode of the current block as a first chroma intra prediction mode.
  3. 제2 항에 있어서,3. The method of claim 2,
    상기 제1 루마 인트라 예측 모드는 DC모드이고,The first luma intra prediction mode is a DC mode,
    상기 제1 크로마 인트라 예측 모드는 LM 크로마 모드인 것을 특징으로 하는 비디오 복호화 방법.Wherein the first chroma intraprediction mode is an LM chroma mode.
  4. 제1 항에 있어서,The method according to claim 1,
    상기 결합 모드는 제1변환 모드를 포함하고,Wherein the combining mode includes a first conversion mode,
    상기 부호화 모드들의 결정 단계는,Wherein the determining of the encoding modes comprises:
    상기 현재 블록의 변환 모드를 제1변환 모드로 결정하는 것을 특징으로 하는 비디오 복호화 방법.And determines a conversion mode of the current block as a first conversion mode.
  5. 제1 항에 있어서,The method according to claim 1,
    상기 결합 모드는 상기 현재 블록의 인트라 예측 결과를 필터링하는 인트라 예측 필터 모드를 포함하고,Wherein the combining mode includes an intra prediction filter mode for filtering an intra prediction result of the current block,
    상기 부호화 모드 결정 단계는,Wherein the encoding mode determination step comprises:
    상기 현재 블록에 인트라 예측 필터 모드를 적용하도록 결정하는 것을 특징으로 하는 비디오 복호화 방법.And determines to apply the intra prediction filter mode to the current block.
  6. 제1 항에 있어서,The method according to claim 1,
    상기 현재 블록의 결합 모드 플래그가 상기 결합 모드에 포함된 복수의 부호화 모드들이 상기 현재 블록에 같이 적용됨을 나타낼 때, 복수의 결합 모드들 중 하나의 결합 모드를 나타내는 결합 모드 인덱스를 획득하는 단계를 더 포함하고,Acquiring a combined mode index indicating a combined mode of the plurality of combined modes when the combined mode flag of the current block indicates that a plurality of encoded modes included in the combined mode are applied to the current block Including,
    상기 현재 블록의 부호화 모드 결정 단계는,Determining a coding mode of the current block,
    상기 결합 모드 인덱스가 나타내는 결합 모드의 복수의 인트라 예측 모드를 상기 현재 블록의 부호화 모드들로 결정하는 것을 특징으로 하는 비디오 복호화 방법.And determining a plurality of intra prediction modes of the joint mode indicated by the joint mode index as the coding modes of the current block.
  7. 제1 항에 있어서,The method according to claim 1,
    상기 결합 모드는 상기 현재 블록이 포함된 현재 슬라이스의 슬라이스 타입에 따라 결정되는 것을 특징으로 하는 비디오 복호화 방법.Wherein the combining mode is determined according to a slice type of a current slice including the current block.
  8. 제7 항에 있어서,8. The method of claim 7,
    상기 결합 모드는,The coupling mode may include:
    상기 현재 슬라이스가 P 슬라이스 타입 또는 B 슬라이스 타입일 때, 제1 루마 인트라 예측 모드와 제1 크로마 인트라 예측 모드를 포함하고,A first luma intra prediction mode and a first chroma intra prediction mode when the current slice is a P slice type or a B slice type,
    상기 현재 슬라이스가 I 슬라이스 타입일 때, 제1 루마 인트라 예측 모드만을 포함하는 것을 특징으로 하는 비디오 복호화 방법.Wherein when the current slice is an I slice type, only the first luma intra prediction mode is included.
  9. 제1 항에 있어서,The method according to claim 1,
    상기 결합 모드 플래그 획득 단계는,The coupling mode flag acquiring step includes:
    상기 부호화부(2510)는 현재 슬라이스가 P 슬라이스 타입 또는 B 슬라이스 타입일 때, 상기 현재 블록의 결합 모드 플래그를 획득하는 것을 특징으로 하는 비디오 복호화 방법.Wherein the coding unit (2510) acquires a combining mode flag of the current block when the current slice is a P slice type or a B slice type.
  10. 제1 항에 있어서,The method according to claim 1,
    상기 현재 블록의 결합 모드 플래그가 상기 결합 모드에 포함된 복수의 부호화 모드들이 상기 현재 블록에 같이 적용되지 않음을 나타낼 때, 상기 비트스트림으로부터 부호화 모드 정보를 획득하고, 상기 부호화 모드 정보에 따라 상기 현재 블록의 부호화 모드들을 결정하는 단계를 더 포함하는 비디오 복호화 방법.When the combined mode flag of the current block indicates that a plurality of encoding modes included in the combined mode are not applied to the current block, encoding mode information is obtained from the bitstream, And determining encoding modes of the block.
  11. 제1 항에 있어서,The method according to claim 1,
    상기 비트스트림으로부터 상기 현재 블록이 포함된 데이터 단위에 대하여 결합 모드가 허용되는지 여부를 나타내는 결합 모드 허용 플래그를 획득하는 단계가 더 포함되고,Further comprising the step of obtaining a combining mode permission flag indicating whether a combining mode is allowed for a data unit including the current block from the bitstream,
    상기 결합 모드 플래그 획득 단계는,The coupling mode flag acquiring step includes:
    상기 결합 모드 허용 플래그가 상기 현재 블록이 포함된 데이터 단위에 대하여 결합 모드가 허용됨을 나타낼 때, 상기 현재 블록에 대한 결합 모드 허용 플래그를 획득하는 것을 특징으로 하는 비디오 복호화 방법.Wherein the combining mode permission flag for the current block is obtained when the combining mode permission flag indicates that the combining mode is allowed for the data unit including the current block.
  12. 비트스트림으로부터 결합 모드에 포함된 복수의 부호화 모드들이 현재 블록에 같이 적용되는지 여부를 나타내는 현재 블록의 결합 모드 플래그를 획득하고, 상기 현재 블록의 결합 모드 플래그가 상기 결합 모드에 포함된 복수의 부호화 모드들이 상기 현재 블록에 같이 적용됨을 나타낼 때, 상기 결합 모드의 복수의 부호화 모드를 상기 현재 블록의 부호화 모드들로 결정하는 부호화 모드 결정부; 및Acquiring a coupling mode flag of a current block indicating whether a plurality of coding modes included in a coupling mode are applied to a current block from a bitstream and determining whether or not a coupling mode flag of the current block includes a plurality of coding modes A coding mode decision unit deciding the coding modes of the current block as a plurality of coding modes of the coupling mode when the current coding mode is applied to the current block; And
    상기 현재 블록의 부호화 모드들에 따라 상기 현재 블록을 복호화하는 복호화부를 포함하는 비디오 복호화 장치.And a decoding unit decoding the current block according to coding modes of the current block.
  13. 현재 블록의 부호화 모드들을 결정하는 단계;Determining coding modes of the current block;
    상기 현재 블록의 부호화 모드들이 결합 모드의 복수의 부호화 모드들과 동일한지 여부에 따라, 상기 현재 블록의 결합 모드 플래그를 생성하는 단계; 및Generating a combining mode flag of the current block according to whether the coding modes of the current block are the same as a plurality of coding modes of the combining mode; And
    상기 결합 모드 플래그를 포함하는 비트스트림을 생성하는 단계를 포함하는 비디오 부호화 방법.And generating a bitstream including the combined mode flag.
  14. 제1항 내지 제11항 중 어느 한 항의 비디오 복호화 방법을 수행하는 프로그램이 기록된 컴퓨터로 기록가능한 기록매체.A computer-readable recording medium on which a program for performing the video decoding method according to any one of claims 1 to 11 is recorded.
  15. 제13항의 비디오 부호화 방법을 수행하는 프로그램이 기록된 컴퓨터로 기록가능한 기록매체.A computer-readable recording medium on which a program for performing the video encoding method of claim 13 is recorded.
PCT/KR2018/003821 2017-11-14 2018-03-30 Encoding method and apparatus therefor, and decoding method and apparatus therefor WO2019098464A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020207003130A KR20200074081A (en) 2017-11-14 2018-03-30 Coding method and apparatus, decoding method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201762585774P 2017-11-14 2017-11-14
US62/585,774 2017-11-14

Publications (1)

Publication Number Publication Date
WO2019098464A1 true WO2019098464A1 (en) 2019-05-23

Family

ID=66539732

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2018/003821 WO2019098464A1 (en) 2017-11-14 2018-03-30 Encoding method and apparatus therefor, and decoding method and apparatus therefor

Country Status (2)

Country Link
KR (1) KR20200074081A (en)
WO (1) WO2019098464A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055200A (en) * 2019-06-05 2020-12-08 华为技术有限公司 MPM list construction method, and chroma block intra-frame prediction mode acquisition method and device
WO2021137577A1 (en) * 2019-12-31 2021-07-08 엘지전자 주식회사 Image encoding/decoding method and apparatus for performing prediction on basis of reconfigured prediction mode type of leaf node, and bitstream transmission method
US20220217366A1 (en) * 2019-04-27 2022-07-07 Wilus Institute Of Standards And Technology Inc. Method and device for processiong video signal on basis of intra prediction
US20230046175A1 (en) * 2019-06-25 2023-02-16 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Mapping method, encoder, decoder and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100081148A (en) * 2009-01-05 2010-07-14 에스케이 텔레콤주식회사 Block mode encoding/decoding method and apparatus and video encoding/decoding method and apparatus using same
WO2012128453A1 (en) * 2011-03-21 2012-09-27 엘지전자 주식회사 Method and device for encoding/decoding images
WO2013109026A1 (en) * 2012-01-18 2013-07-25 엘지전자 주식회사 Method and device for entropy coding/decoding
KR20150113524A (en) * 2014-03-31 2015-10-08 인텔렉추얼디스커버리 주식회사 Device for decoding image using prediction mode based on improved intra block copy and method thereof
WO2016072775A1 (en) * 2014-11-06 2016-05-12 삼성전자 주식회사 Video encoding method and apparatus, and video decoding method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100081148A (en) * 2009-01-05 2010-07-14 에스케이 텔레콤주식회사 Block mode encoding/decoding method and apparatus and video encoding/decoding method and apparatus using same
WO2012128453A1 (en) * 2011-03-21 2012-09-27 엘지전자 주식회사 Method and device for encoding/decoding images
WO2013109026A1 (en) * 2012-01-18 2013-07-25 엘지전자 주식회사 Method and device for entropy coding/decoding
KR20150113524A (en) * 2014-03-31 2015-10-08 인텔렉추얼디스커버리 주식회사 Device for decoding image using prediction mode based on improved intra block copy and method thereof
WO2016072775A1 (en) * 2014-11-06 2016-05-12 삼성전자 주식회사 Video encoding method and apparatus, and video decoding method and apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220217366A1 (en) * 2019-04-27 2022-07-07 Wilus Institute Of Standards And Technology Inc. Method and device for processiong video signal on basis of intra prediction
CN112055200A (en) * 2019-06-05 2020-12-08 华为技术有限公司 MPM list construction method, and chroma block intra-frame prediction mode acquisition method and device
US20230046175A1 (en) * 2019-06-25 2023-02-16 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Mapping method, encoder, decoder and computer storage medium
US11902538B2 (en) * 2019-06-25 2024-02-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Mapping method, encoder, decoder and computer storage medium
WO2021137577A1 (en) * 2019-12-31 2021-07-08 엘지전자 주식회사 Image encoding/decoding method and apparatus for performing prediction on basis of reconfigured prediction mode type of leaf node, and bitstream transmission method
JP7444998B2 (en) 2019-12-31 2024-03-06 エルジー エレクトロニクス インコーポレイティド Image encoding/decoding method, apparatus, and method for transmitting bitstream that perform prediction based on reconfigured prediction mode type of leaf nodes

Also Published As

Publication number Publication date
KR20200074081A (en) 2020-06-24

Similar Documents

Publication Publication Date Title
WO2019168244A1 (en) Encoding method and device thereof, and decoding method and device thereof
WO2017209394A1 (en) Methods and apparatuses for encoding and decoding video according to coding order
WO2018026118A1 (en) Image encoding/decoding method
WO2017188780A2 (en) Method and apparatus for encoding/decoding video signal
WO2018030599A1 (en) Intra-prediction mode-based image processing method and device therefor
WO2018012808A1 (en) Chroma intra prediction method and device therefor
WO2017090967A1 (en) Encoding sequence encoding method and device thereof, and decoding method and device thereof
WO2012005520A2 (en) Method and apparatus for encoding video by using block merging, and method and apparatus for decoding video by using block merging
WO2011019253A4 (en) Method and apparatus for encoding video in consideration of scanning order of coding units having hierarchical structure, and method and apparatus for decoding video in consideration of scanning order of coding units having hierarchical structure
WO2015122549A1 (en) Method and apparatus for processing video
WO2011049396A2 (en) Method and apparatus for encoding video and method and apparatus for decoding video, based on hierarchical structure of coding unit
WO2014003519A1 (en) Method and apparatus for encoding scalable video, and method and apparatus for decoding scalable video
WO2017142327A1 (en) Intra-prediction method for reducing intra-prediction errors and device for same
WO2019066174A1 (en) Encoding method and device, and decoding method and device
WO2019098464A1 (en) Encoding method and apparatus therefor, and decoding method and apparatus therefor
WO2019135601A1 (en) Encoding method and apparatus therefor, and decoding method and apparatus therefor
WO2018105759A1 (en) Image encoding/decoding method and apparatus therefor
WO2019216716A2 (en) Encoding method and device therefor, and decoding method and device therefor
WO2020130745A1 (en) Encoding method and device thereof, and decoding method and device thereof
WO2019017673A1 (en) Encoding method and apparatus therefor, decoding method and apparatus therefor
EP3437318A1 (en) Methods and apparatuses for encoding and decoding video according to coding order
WO2019194653A1 (en) Image processing method for providing complex merge mode process of motion information, image decoding and encoding method using same, and apparatus thereof
WO2018093184A1 (en) Video signal processing method and device
WO2019240458A1 (en) Encoding method and apparatus therefor, and decoding method and apparatus therefor
WO2019194647A1 (en) Filter information-based adaptive loop filtering method and image coding and decoding method using same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18877357

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18877357

Country of ref document: EP

Kind code of ref document: A1