WO2020130477A1 - 비디오 부호화/복호화 방법 및 장치 - Google Patents

비디오 부호화/복호화 방법 및 장치 Download PDF

Info

Publication number
WO2020130477A1
WO2020130477A1 PCT/KR2019/017479 KR2019017479W WO2020130477A1 WO 2020130477 A1 WO2020130477 A1 WO 2020130477A1 KR 2019017479 W KR2019017479 W KR 2019017479W WO 2020130477 A1 WO2020130477 A1 WO 2020130477A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
candidate group
intra prediction
candidate
current block
Prior art date
Application number
PCT/KR2019/017479
Other languages
English (en)
French (fr)
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 US17/285,336 priority Critical patent/US11659163B2/en
Priority to CN201980076799.3A priority patent/CN113170117A/zh
Publication of WO2020130477A1 publication Critical patent/WO2020130477A1/ko
Priority to US18/191,375 priority patent/US20230231993A1/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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • 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/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • 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/17Methods 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 an image region, e.g. an object
    • H04N19/176Methods 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 an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • 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/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Definitions

  • the present invention relates to a method and apparatus for encoding/decoding video signals.
  • the present invention seeks to improve the encoding/decoding efficiency of intra prediction.
  • the present invention seeks to improve the encoding/decoding efficiency of the intra prediction mode.
  • the video signal decoding method and apparatus acquires a flag from a bitstream, and based on the flag, determines a candidate group for the intra prediction mode of the current block, and based on the determined candidate group, the current block It is possible to derive an intra prediction mode of, and perform intra prediction on the current block based on the derived intra prediction mode and a predetermined reference region.
  • the flag may indicate a predetermined candidate group used to derive the intra prediction mode of the current block.
  • the candidate group is determined as a first candidate group or a second candidate group, the first candidate group is configured in a default mode, and the second candidate group is a neighboring block adjacent to the current block It can be configured using the intra prediction mode.
  • the default mode may include at least one of a DC mode or a Planar mode.
  • At least one candidate mode belonging to the second candidate group is derived by adding or subtracting an n value to the intra prediction mode of the neighboring block, where n is greater than or equal to 2 It can be the same natural number.
  • the number of candidate modes belonging to the second candidate group is m, and m may be 1, 2, 3, 4, 5, 6 or more natural numbers.
  • the second candidate group may not include a default mode included in the first group.
  • a video signal encoding method and apparatus determines an intra prediction mode of a current block, encodes a flag for indicating a candidate group to which the intra prediction mode of the current block belongs, and an intra prediction mode and a predetermined one of the current block Based on the reference region of, intra prediction may be performed on the current block.
  • the candidate group includes at least one of a first candidate group or a second candidate group, the first candidate group is configured in a default mode, and the second candidate group is the It may be configured using an intra prediction mode of a neighboring block adjacent to the current block.
  • the default mode may include at least one of a DC mode or a Planar mode.
  • At least one candidate mode belonging to the second candidate group is derived by adding or subtracting an n value to the intra prediction mode of the neighboring block, where n is greater than or equal to 2 It can be the same natural number.
  • the number of candidate modes belonging to the second candidate group is m, and m may be 1, 2, 3, 4, 5, 6 or more natural numbers.
  • the second candidate group may not include a default mode included in the first group.
  • the computer-readable recording medium includes a data stream including encoded information encoded by intra prediction of a current block, wherein the encoded information is used to derive an intra prediction mode of the current block It includes a flag indicating a candidate group, and according to the flag, a candidate group for the intra prediction mode of the current block may be determined as either a first candidate group or a second candidate group.
  • the first candidate group may be configured in a default mode
  • the second candidate group may be configured using an intra prediction mode of a neighboring block adjacent to the current block.
  • the default mode may include at least one of a DC mode or a Planar mode.
  • At least one candidate mode belonging to the second candidate group is derived by adding or subtracting an n value to the intra prediction mode of the neighboring block, where n is greater than or equal to 2 It can be the same natural number.
  • the number of candidate modes belonging to the second candidate group is m, and m may be 1, 2, 3, 4, 5, 6 or more natural numbers.
  • the second candidate group may not include the default mode included in the first group.
  • encoding/decoding efficiency of the intra prediction mode can be improved by selectively using any one of a plurality of candidate groups.
  • encoding/decoding efficiency of intra prediction can be improved by determining a predetermined reference region for intra prediction.
  • FIG. 1 is an embodiment of the present invention, showing a schematic block diagram of an encoding device.
  • FIG. 2 is an embodiment of the present invention, showing a schematic block diagram of a decoding apparatus.
  • 3 is an embodiment to which the present invention is applied, and shows an intra prediction method.
  • 4 and 5 is an embodiment to which the present invention is applied, and shows a method of determining a second candidate group.
  • 6 is an embodiment to which the present invention is applied, and relates to a method of encoding/decoding residual mode information based on removal of a second candidate group.
  • 7 is an embodiment to which the present invention is applied, and relates to a method of encoding/decoding residual mode information based on rearrangement of a second candidate group.
  • the video signal decoding method and apparatus acquires a flag from a bitstream, and based on the flag, determines a candidate group for the intra prediction mode of the current block, and based on the determined candidate group, the current block It is possible to derive an intra prediction mode of, and perform intra prediction on the current block based on the derived intra prediction mode and a predetermined reference region.
  • the flag may indicate a predetermined candidate group used to derive the intra prediction mode of the current block.
  • the candidate group is determined as a first candidate group or a second candidate group, the first candidate group is configured in a default mode, and the second candidate group is a neighboring block adjacent to the current block It can be configured using the intra prediction mode.
  • the default mode may include at least one of a DC mode or a Planar mode.
  • At least one candidate mode belonging to the second candidate group is derived by adding or subtracting an n value to the intra prediction mode of the neighboring block, where n is greater than or equal to 2 It can be the same natural number.
  • the number of candidate modes belonging to the second candidate group is m, and m may be 1, 2, 3, 4, 5, 6 or more natural numbers.
  • the second candidate group may not include a default mode included in the first group.
  • a video signal encoding method and apparatus determines an intra prediction mode of a current block, encodes a flag for indicating a candidate group to which the intra prediction mode of the current block belongs, and an intra prediction mode and a predetermined one of the current block Based on the reference region of, intra prediction may be performed on the current block.
  • the candidate group includes at least one of a first candidate group or a second candidate group, the first candidate group is configured in a default mode, and the second candidate group is the It may be configured using an intra prediction mode of a neighboring block adjacent to the current block.
  • the default mode may include at least one of a DC mode or a Planar mode.
  • At least one candidate mode belonging to the second candidate group is derived by adding or subtracting an n value to the intra prediction mode of the neighboring block, where n is greater than or equal to 2 It can be the same natural number.
  • the number of candidate modes belonging to the second candidate group is m, and m may be 1, 2, 3, 4, 5, 6 or more natural numbers.
  • the second candidate group may not include a default mode included in the first group.
  • the computer-readable recording medium includes a data stream including encoded information encoded by intra prediction of a current block, wherein the encoded information is used to derive an intra prediction mode of the current block It includes a flag indicating a candidate group, and according to the flag, a candidate group for the intra prediction mode of the current block may be determined as either a first candidate group or a second candidate group.
  • the first candidate group may be configured in a default mode
  • the second candidate group may be configured using an intra prediction mode of a neighboring block adjacent to the current block.
  • the default mode may include at least one of a DC mode or a Planar mode.
  • At least one candidate mode belonging to the second candidate group is derived by adding or subtracting an n value to the intra prediction mode of the neighboring block, where n is greater than or equal to 2 It can be the same natural number.
  • the number of candidate modes belonging to the second candidate group is m, and m may be 1, 2, 3, 4, 5, 6 or more natural numbers.
  • the second candidate group may not include the default mode included in the first group.
  • first and second may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from other components.
  • first component may be referred to as a second component without departing from the scope of the present invention, and similarly, the second component may be referred to as a first component.
  • the term and/or includes a combination of a plurality of related described items or any one of a plurality of related described items.
  • FIG. 1 is an embodiment of the present invention, showing a schematic block diagram of an encoding device.
  • the encoding apparatus 100 includes a picture division unit 110, a prediction unit 120, 125, a transformation unit 130, a quantization unit 135, a reordering unit 160, and an entropy encoding unit 165. ), an inverse quantization unit 140, an inverse conversion unit 145, a filter unit 150, and a memory 155.
  • each of the components shown in FIG. 1 is independently illustrated to represent different characteristic functions in the image encoding apparatus, and may mean that each component is made of separate hardware. However, for convenience of explanation, each component is listed and included as each component, and at least two components of each component may be combined to form one component, or one component may be divided into a plurality of components to perform a function, The integrated and separated embodiments of each of these components are also included in the scope of the present invention without departing from the essence of the present invention.
  • the components are not essential components for performing essential functions in the present invention, but may be optional components for improving performance.
  • the present invention can be implemented by including only components necessary for realizing the essence of the present invention, except components used for performance improvement, and structures including only essential components excluding optional components used for performance improvement. Also included in the scope of the present invention.
  • the picture division unit 110 may divide the input picture into at least one block.
  • the block may mean a coding unit (CU), a prediction unit (PU), or a transformation unit (TU).
  • the coding unit CU may be set equal to the prediction unit PU and/or the transformation unit TU.
  • one coding unit CU may be divided into a plurality of prediction units PU or transform units TU.
  • One prediction unit PU may be divided/configured into a plurality of transformation units TU.
  • one transform unit (TU) may be divided/configured into a plurality of prediction units (PU).
  • the division may be performed based on at least one of a quad-tree, a binary-tree, and a triple-tree.
  • the quad tree is a method of dividing the upper block into lower blocks whose width and height are half of the upper block.
  • a binary tree is a way of dividing the upper block into lower blocks, either width or height, which is half of the upper block.
  • the upper block has a height of half, and through the binary tree-based partitioning, the block may have a square shape as well as a non-square shape.
  • a coding unit may be used as a meaning of a unit that performs coding, or may be used as a meaning of a unit that performs decoding.
  • the prediction units 120 and 125 may include an inter prediction unit 120 performing inter prediction and an intra prediction unit 125 performing intra prediction. It is determined whether to use inter prediction or intra prediction for a prediction unit, and specific information (eg, intra prediction mode, motion vector, reference picture, etc.) according to each prediction method can be determined. At this time, the processing unit for which prediction is performed and the processing unit for which the prediction method and specific content are determined may be different. For example, a method of prediction and a prediction mode are determined in a prediction unit, and prediction may be performed in a transformation unit. The residual value (residual block) between the generated prediction block and the original block may be input to the transform unit 130.
  • specific information eg, intra prediction mode, motion vector, reference picture, etc.
  • prediction mode information, motion vector information, and the like used for prediction may be encoded by the entropy encoding unit 165 together with the residual value and transmitted to the decoding apparatus.
  • a specific coding mode it is also possible to encode the original block as it is and transmit it to the decoder without generating a prediction block through the prediction units 120 and 125.
  • the inter-prediction unit 120 may predict a prediction unit based on information of at least one of a previous picture or a subsequent picture of the current picture, and in some cases, predicts the prediction unit based on information of some regions that have been coded in the current picture. Units can also be predicted.
  • the inter prediction unit 120 may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.
  • the reference picture interpolator may receive reference picture information from the memory 155 and generate pixel information of an integer pixel or less in the reference picture.
  • a DCT-based 8-tap interpolation filter (DCT-based interpolation filter) having different filter coefficients may be used to generate pixel information of integer pixels or less in units of 1/4 pixels.
  • a DCT-based interpolation filter (DCT-based interpolation filter) having different filter coefficients may be used to generate pixel information of an integer pixel or less in units of 1/8 pixels.
  • the motion prediction unit may perform motion prediction based on the reference picture interpolated by the reference picture interpolation unit.
  • various methods such as Full Search-based Block Matching Algorithm (FBMA), Three Step Search (TSS), and New Three-Step Search Algorithm (NTS) can be used.
  • the motion vector may have a motion vector value in units of 1/2 or 1/4 pixels based on interpolated pixels.
  • the motion prediction unit may predict a current prediction unit by differently using a motion prediction method.
  • various methods such as a skip method, a merge method, and an advanced motion vector prediction (AMVP) method may be used.
  • AMVP advanced motion vector prediction
  • the intra prediction unit 125 may generate a prediction unit based on reference pixel information around a current block, which is pixel information in a current picture. If the neighboring block of the current prediction unit is a block that has undergone inter prediction, and the reference pixel is a pixel that has undergone inter prediction, the reference pixel included in the block that has undergone inter prediction is a reference pixel of the block that has performed intra prediction around it. Can be used as a substitute for information. That is, when the reference pixel is not available, the available reference pixel information may be replaced with at least one reference pixel among the available reference pixels.
  • the prediction mode may have a directional prediction mode that uses reference pixel information according to a prediction direction and a non-directional mode that does not use directional information when performing prediction.
  • a mode for predicting luminance information and a mode for predicting color difference information may be different, and intra prediction mode information or predicted luminance signal information used for predicting luminance information may be used to predict color difference information.
  • the intra prediction method may generate a prediction block after applying an adaptive intra smoothing (AIS) filter to the reference pixel according to the prediction mode.
  • AIS adaptive intra smoothing
  • the type of AIS filter applied to the reference pixel may be different.
  • the intra prediction mode of the current prediction unit may be predicted from the intra prediction mode of the prediction unit existing around the current prediction unit.
  • the prediction mode of the current prediction unit is predicted by using the mode information predicted from the neighboring prediction unit, if the intra prediction mode of the current prediction unit and the neighboring prediction unit are the same, the current prediction unit and the neighboring prediction unit using predetermined flag information It is possible to transmit the information that the prediction mode is the same.
  • entropy encoding may be performed to encode the prediction mode information of the current block.
  • a residual block including prediction units that perform prediction based on prediction units generated by the prediction units 120 and 125 and residual information that is a difference value from the original block of the prediction unit may be generated.
  • the generated residual block may be input to the conversion unit 130.
  • the converter 130 may convert a residual block including residual data using a conversion type such as DCT, DST, and the like.
  • the transform method may be determined based on the intra prediction mode of the prediction unit used to generate the residual block.
  • the quantization unit 135 may quantize values converted from the conversion unit 130 to the frequency domain.
  • the quantization coefficient may vary depending on the block or the importance of the image.
  • the value calculated by the quantization unit 135 may be provided to the inverse quantization unit 140 and the rearrangement unit 160.
  • the rearrangement unit 160 may rearrange the coefficient values with respect to the quantized residual value.
  • the reordering unit 160 may change a block shape coefficient of 2D into a vector form of 1D through a coefficient scanning method. For example, the reordering unit 160 may scan a DC coefficient to a coefficient in a high frequency region using a predetermined scan type and change it into a one-dimensional vector form.
  • the entropy encoding unit 165 may perform entropy encoding based on values calculated by the reordering unit 160.
  • various encoding methods such as exponential Golomb, CAVLC (Context-Adaptive Variable Length Coding), and CABAC (Context-Adaptive Binary Arithmetic Coding) can be used.
  • the entropy encoding unit 165 includes residual value coefficient information and block type information, prediction mode information, split unit information, prediction unit information and transmission unit information, motion of a coding unit, from the reordering unit 160 and the prediction units 120 and 125 Various information such as vector information, reference frame information, block interpolation information, and filtering information can be encoded.
  • the entropy encoding unit 165 may entropy encode the coefficient value of the coding unit input from the reordering unit 160.
  • the inverse quantization unit 140 and the inverse transformation unit 145 inverse quantize the values quantized by the quantization unit 135 and inversely transform the values converted by the conversion unit 130.
  • the residual values generated by the inverse quantization unit 140 and the inverse transformation unit 145 are restored by being combined with the prediction units predicted through the motion estimation unit, the motion compensation unit, and the intra prediction unit included in the prediction units 120 and 125 You can create a Reconstructed Block.
  • the filter unit 150 may include at least one of a deblocking filter, an offset correction unit, and an adaptive loop filter (ALF).
  • a deblocking filter may include at least one of a deblocking filter, an offset correction unit, and an adaptive loop filter (ALF).
  • ALF adaptive loop filter
  • the deblocking filter can remove block distortion caused by boundary between blocks in the reconstructed picture.
  • it may be determined whether to apply a deblocking filter to the current block based on pixels included in a few columns or rows included in the block.
  • a strong filter or a weak filter may be applied according to the required deblocking filtering strength.
  • horizontal filtering and vertical filtering may be processed in parallel.
  • the offset correction unit may correct an offset from the original image in units of pixels for the deblocking image.
  • the offset correction unit may correct an offset from the original image in units of pixels for the deblocking image. In order to perform offset correction for a specific picture, after dividing the pixels included in the image into a certain number of regions, determining the region to perform the offset and applying the offset to the region, or offset by considering the edge information of each pixel You can use the method of applying.
  • ALF Adaptive Loop Filtering
  • one filter to be applied to the corresponding group may be determined to perform filtering differently for each group.
  • the luminance signal may be transmitted for each coding unit (CU), and the shape and filter coefficient of the ALF filter to be applied may vary according to each block.
  • the ALF filter of the same form may be applied regardless of the characteristics of the block to be applied.
  • the memory 155 may store the reconstructed block or picture calculated through the filter unit 150, and the stored reconstructed block or picture may be provided to the predictors 120 and 125 when performing inter prediction.
  • FIG. 2 is an embodiment of the present invention, showing a schematic block diagram of a decoding apparatus.
  • the decoding apparatus 200 includes an entropy decoding unit 210, a reordering unit 215, an inverse quantization unit 220, an inverse transform unit 225, a prediction unit 230, 235, and a filter unit 240. ), the memory 245 may be included.
  • each of the components shown in FIG. 2 is independently illustrated to represent different characteristic functions in the decoding apparatus, and may mean that each component is composed of separate hardware. However, for convenience of description, each component is listed and included as each component, and at least two components of each component may be combined to form one component, or one component may be divided into a plurality of components to perform a function. The integrated and separate embodiments of each component are also included in the scope of the present invention without departing from the essence of the present invention.
  • the entropy decoding unit 210 may perform entropy decoding on the input bitstream. For example, various methods such as Exponential Golomb (CAVLC), Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) can be applied for entropy decoding.
  • CAVLC Exponential Golomb
  • CAVLC Context-Adaptive Variable Length Coding
  • CABAC Context-Adaptive Binary Arithmetic Coding
  • the entropy decoding unit 210 may decode information related to intra prediction and inter prediction performed by the encoding device.
  • the rearrangement unit 215 may rearrange the bitstream entropy-decoded by the entropy decoding unit 210.
  • the coefficients expressed in the form of a one-dimensional vector can be reconstructed by reconstructing the coefficients in a two-dimensional block form again.
  • the reordering unit 215 may be provided with information related to coefficient scanning performed by the encoding device, and perform reordering through a reverse scanning method based on a scanning order performed by the encoding device.
  • the inverse quantization unit 220 may perform inverse quantization based on a quantization parameter and a coefficient value of the rearranged block.
  • the inverse transform unit 225 may inverse transform the inverse-quantized transform coefficient by a predetermined transform method.
  • the transform method may be determined based on information on a prediction method (inter/intra prediction), block size/shape, intra prediction mode, and the like.
  • the prediction units 230 and 235 may generate prediction blocks based on prediction block generation related information provided by the entropy decoding unit 210 and previously decoded block or picture information provided by the memory 245.
  • the prediction units 230 and 235 may include a prediction unit determination unit, an inter prediction unit, and an intra prediction unit.
  • the prediction unit determining unit receives various information such as prediction unit information input from the entropy decoding unit 210, prediction mode information of an intra prediction method, and motion prediction related information of an inter prediction method, and receives a prediction unit from the current coding unit (CU). It is possible to classify and determine whether the prediction unit performs inter prediction or intra prediction.
  • the inter prediction unit 230 uses information necessary for inter prediction of the current prediction unit provided by the encoding apparatus, and based on information included in at least one of a previous picture or a subsequent picture of the current picture including the current prediction unit. Inter prediction may be performed for the current prediction unit. Alternatively, inter prediction may be performed based on information of some regions that have been pre-restored in the current picture including the current prediction unit.
  • a motion prediction method of a prediction unit included in the coding unit is one of a skip mode, a merge mode, and an AMVP mode Can judge.
  • the intra prediction unit 235 may generate a prediction block based on pixel information in the current picture.
  • intra prediction may be performed based on intra prediction mode information of a prediction unit provided by the encoding device.
  • the intra prediction unit 235 may include an adaptive intra smoothing (AIS) filter, a reference pixel interpolation unit, and a DC filter.
  • the AIS filter is a part that performs filtering on the reference pixel of the current block and can be applied by determining whether to apply the filter according to the prediction mode of the current prediction unit.
  • AIS filtering may be performed on the reference pixel of the current block by using the prediction mode and AIS filter information of the prediction unit provided by the encoding device.
  • the prediction mode of the current block is a mode that does not perform AIS filtering, the AIS filter may not be applied.
  • the reference pixel interpolation unit may interpolate the reference pixel to generate a reference pixel in a pixel unit equal to or less than an integer value.
  • the prediction mode of the current prediction unit is a prediction mode that generates a prediction block without interpolating a reference pixel
  • the reference pixel may not be interpolated.
  • the DC filter may generate a prediction block through filtering when the prediction mode of the current block is the DC mode.
  • the reconstructed block or picture may be provided to the filter unit 240.
  • the filter unit 240 may include a deblocking filter, an offset correction unit, and an ALF.
  • Information on whether a deblocking filter is applied to a corresponding block or picture and information about whether a strong filter is applied or a weak filter is applied may be provided from the encoding device.
  • the deblocking filter of the decoding device information related to the deblocking filter provided by the encoding device may be provided, and the decoding device may perform deblocking filtering on the corresponding block.
  • the offset correction unit may perform offset correction on the reconstructed image based on the type of offset correction and offset value information applied to the image during encoding.
  • ALF may be applied to a coding unit based on ALF application information provided by an encoder, ALF coefficient information, and the like. Such ALF information may be provided by being included in a specific parameter set.
  • the memory 245 may store the restored picture or block so that it can be used as a reference picture or a reference block, and also provide the restored picture to an output unit.
  • 3 is an embodiment to which the present invention is applied, and shows an intra prediction method.
  • an intra prediction mode of a current block may be determined (S300 ).
  • the decoding apparatus may acquire a first flag from the bitstream.
  • the first flag may indicate whether the intra prediction mode of the current block is derived from a candidate mode list (first candidate group).
  • the candidate mode list includes k candidate modes (MPM), and k may be an integer of 1, 2, 3, 4, 5, 6 or more.
  • the decoding apparatus may acquire index information (mpm_idx) from the bitstream.
  • the index information may specify any one of a plurality of MPMs belonging to the candidate mode list.
  • the intra prediction mode of the current block may be determined based on the candidate mode list and index information. That is, the MPM specified by the index information may be set as the intra prediction mode of the current block.
  • the index information may be used only when a plurality of MPMs are included in the candidate mode list. For example, when only one MPM is included in the candidate mode list, signaling of index information is omitted, and the corresponding MPM can be set as an intra prediction mode of the current block.
  • the MPM may be determined using neighboring blocks of the current block.
  • the neighboring block may mean a block adjacent to at least one of the left, top, top left, top right, or bottom right of the current block.
  • the number of neighboring blocks may be 1, 2, 3, 4, 5 or more.
  • the number may be a fixed number pre-defined in the encoding/decoding device.
  • the number may be variably determined based on predetermined encoding parameters.
  • the encoding parameter may include information on block attributes.
  • the block properties include position, size, shape, ratio of width and height, length value of width and height, segmentation technique (eg, Quadtree, Binary tree, Ternary tree), split depth, value of intra prediction mode, It may mean whether the intra prediction mode is a directional mode, an angle of the intra prediction mode, a component type (luminance, color difference), and the like.
  • the number may be encoded and signaled by an encoding device. The signaling may be performed at a level of at least one of a video sequence, picture, slice, tile, or a predetermined piece area (e.g., CTU row, CTU, CU, PU, etc.).
  • the MPM includes: (A) whether the intra prediction mode between neighboring blocks is the same, (B) whether the intra prediction mode of the neighboring block is a directional mode, (C) the intra prediction mode of the first neighboring block is the second neighboring block, Is greater than the intra prediction mode of, (D) whether the difference between intra prediction modes between neighboring blocks is equal to a predetermined threshold value, or (E) based on at least one of the position of a reference line for intra prediction of the current block.
  • the threshold may be any natural number in the range 1 to (NumIntraAngMode-1).
  • NumIntraAngMode means the total number of pre-defined directional modes in the encoding/decoding device, which may be 65.
  • the MPM may be configured as at least one of an intra prediction mode of one or more neighboring blocks, a mode derived by adding or subtracting an n value to an intra prediction mode of a neighboring block, or a default mode.
  • the n value may be an integer of 1, 2, 3 or more.
  • the n value can be variably determined based on at least one of (A) to (D) described above.
  • the default mode may include at least one of a planar mode or a DC mode.
  • intraPredModeA intraPredModeL
  • intraPredModeL intraPredModeL
  • the MPM of the current block may include an intraPredModeL, a default mode, a mode derived by subtracting 1 from intraPredModeL, a mode derived by adding 1 to intraPredModeL, and a mode derived by adding or subtracting 2 to intraPredModeL.
  • An index may be assigned to the MPM based on a predetermined priority. For example, an index may be assigned to each MPM as shown in Table 1 below. However, the priority of the present invention is not limited to Table 1, and the position of the MPM in the candidate mode list may be different from Table 1.
  • intraPredModeL and intraPredModeA are different (1)
  • intraPredModeL and intraPredModeA are both directional modes, intraPredModeL is greater than intraPredModeA, and the difference between intraPredModeL and intraPredModeA is not 1 or 64
  • the MPM of the current block may include a mode derived by subtracting 1 from intraPredModeL, intraPredModeA, default mode, intraPredModeL, and a mode derived by adding 1 to intraPredModeL.
  • An index may be assigned to the MPM based on a predetermined priority. For example, an index may be assigned to each MPM as shown in Table 2 below. However, the priority of the present invention is not limited to Table 2, and the position of the MPM in the candidate mode list may be different from Table 2.
  • the MPM of the current block may include intraPredModeL, intraPredModeA, and default mode.
  • the MPM of the current block adds at least one of a mode derived by subtracting 1 from intraPredModeL, a mode derived by adding 1 to intraPredModeL, a mode derived by subtracting 2 from intraPredModeL, or a mode derived by adding 2 to intraPredModeL. It can contain.
  • the mode derived by subtracting or adding 1 to the intraPredModeL is the same as the intraPredModeA, it may be excluded from the MPM.
  • a mode derived by subtracting or adding 2 to the intraPredModeL may be added/included as an MPM.
  • An index may be assigned to the MPM based on a predetermined priority. For example, an index may be assigned to each MPM as shown in Table 3 below. However, the priority of the present invention is not limited to Table 3, and the position of the MPM in the candidate mode list may be different from Table 3.
  • intraPredModeL is less than intraPredModeA, and the difference between intraPredModeL and intraPredModeA is not 1 or 64
  • the MPM of the current block is derived by subtracting 1 from intraPredModeL, intraPredModeA, default mode, intraPredModeA It may include a mode derived by adding 1 to the selected mode and intraPredModeA.
  • An index may be assigned to the MPM based on a predetermined priority. For example, an index may be assigned to each MPM as shown in Table 4 below. However, the priority of the present invention is not limited to Table 4, and the position of the MPM in the candidate mode list may be different from Table 4.
  • the MPM of the current block may include intraPredModeL, intraPredModeA, and default mode.
  • the MPM of the current block adds at least one of a mode derived by subtracting 1 from intraPredModeA, a mode derived by adding 1 to intraPredModeA, a mode derived by subtracting 2 from intraPredModeA, or a mode derived by adding 2 to intraPredModeA. It can contain.
  • the mode derived by subtracting or adding 1 to the intraPredModeA is the same as the intraPredModeL, it may be excluded from the MPM.
  • a mode derived by subtracting or adding 2 to the intraPredModeA may be added/included as an MPM.
  • An index may be assigned to the MPM based on a predetermined priority. For example, an index may be assigned to each MPM as shown in Table 5 below. However, the priority of the present invention is not limited to Table 5, and the position of the MPM in the candidate mode list may be different from Table 5.
  • the MPM of the current block is a mode derived by subtracting 1 from intraPredModeL or intraPredModeA directional mode (intraPredModeX), default mode, intraPredModeX, and intraPredModeX A mode derived by adding 1 to and a mode derived by subtracting or adding 2 from intraPredModeX may be included.
  • An index may be assigned to the MPM based on a predetermined priority. For example, an index may be assigned to each MPM as shown in Table 6 below. However, the priority of the present invention is not limited to Table 6, and the position of the MPM in the candidate mode list may be different from Table 6. For example, DC may have a higher priority than intraPredModeX. PLANAR may have a higher priority than DC. PLANAR may have a higher priority than intraPredModeX.
  • the MPM of the current block is a mode derived by subtracting 1 from intraPredModeL or intraPredModeA, either directional mode (intraPredModeX), default mode, intraPredModeX, and intraPredModeX A mode derived by adding 1 to and a mode derived by subtracting or adding 2 from intraPredModeX may be included.
  • An index may be assigned to the MPM based on a predetermined priority. For example, an index may be assigned to each MPM as shown in Table 7 below. However, the priority of the present invention is not limited to Table 7, and the position of the MPM in the candidate mode list may be different from Table 7. For example, PLANAR may have a higher priority than intraPredModeX. DC may have a higher priority than PLANAR. DC may have a higher priority than intraPredModeX.
  • the MPM of the current block may include a default mode, a horizontal mode (intraPredModeH), and a vertical mode (intraPredModeV).
  • the MPM of the current block may further include at least one of a mode derived by subtracting or adding 1 from intraPredModeH or a mode derived by subtracting or adding 1 from intraPredModeV.
  • An index may be assigned to the MPM based on a predetermined priority. For example, an index may be assigned to each MPM as shown in Table 8 below. However, the priority of the present invention is not limited to Table 8, and the position of the MPM in the candidate mode list may be different from Table 8.
  • the MPM of the current block may be determined based on a reference area to be described later. If the reference area of the current block is the k-th reference line, the non-directional mode may be used, otherwise, the non-directional mode may be restricted. If the current block is allowed to use a reference line other than the k-th reference line, the non-directional mode may not be included in the MPM of the current block.
  • k may be 1, 2, 3, or 4.
  • the non-directional mode belonging to the MPM may be replaced with a predetermined intra prediction mode.
  • the predetermined intra prediction mode may be at least one of a mode derived by adding/subtracting an n value to an intra prediction mode of a neighboring block or an intra prediction mode of a neighboring block.
  • n may be an integer of 1, 2, 3 or more.
  • the addition/subtraction process may be repeatedly performed while increasing the n value by 1 until the candidate mode list is composed of 6 MPMs.
  • the maximum number of MPMs constituting the candidate mode list may be 3, 4, 5, 7, 8, 9 or more.
  • the maximum number may be a fixed value pre-promised in the encoder/decoder, or may be variably determined based on encoding parameters (e.g., block attribute related information, the location of the reference line, etc.).
  • the decoding apparatus may obtain residual mode information from the bitstream.
  • the decoding apparatus may determine the intra prediction mode of the current block based on the residual mode information.
  • the remaining mode information may be coded based on the remaining modes (hereinafter referred to as non-MPM) other than the above-described MPM in the intra prediction mode pre-defined in the encoding/decoding device.
  • the pre-defined intra prediction mode may include two non-directional modes (planner mode, DC mode) and 65 directional modes.
  • the encoding apparatus may generate residual mode information by encoding a mode corresponding to the intra prediction mode of the current block among the non-MPMs.
  • residual mode information may be encoded based on truncated binary coding scheme. Assuming that 67 intra-prediction modes and 6 MPMs are used, as shown in the table below, in 61 non-MPMs, the intra-prediction mode with an index of 0-2 is coded with 5 bits and has an index of 3-60. The intra prediction mode can be coded with 6 bits. However, in the table below, the number of bits and the number of intra prediction modes encoded with 5 bits/6 bits may be variably determined based on at least one of the number of pre-defined intra prediction modes or the number of MPMs. Further, the residual mode information may be encoded based on a fixed length code (FLC), a variable length code (VLC), or the like.
  • FLC fixed length code
  • VLC variable length code
  • the non-MPMs may be classified into at least two or more groups.
  • the non-MPM may include a second candidate group and a third candidate group.
  • the intra prediction mode of the current block may be derived by selectively using either the second candidate group or the third candidate group.
  • the second candidate group may be configured in a mode derived based on the MPM, and the third candidate group may be configured in a mode other than the second candidate group in the non-MPM.
  • the second candidate group may be configured based on a mode neighboring the intra prediction mode of the neighboring block and/or the intra prediction mode of the neighboring block. That is, the second candidate group may be derived in the same/similar manner to the aforementioned first candidate group, but the second candidate group may not include the MPM belonging to the first candidate group.
  • the second candidate group has modes in which the mode value difference from the intra prediction mode of the neighboring block is +1, -1, +2, -2, +3, -3, .., +L, -L It may include at least one of the following, it is assumed that the second candidate group consists of five candidate modes. However, the present invention is not limited thereto, and the number of candidate modes belonging to the second candidate group may be an integer of 1, 2, 3, 4, 6 or more.
  • the second candidate group may be determined by considering at least one of whether the intra prediction mode (candIntraPredModeA) of the left block and the intra prediction mode (candIntraPredModeB) of the upper block are the same or whether candIntraPredModeA and candIntraPredModeB are non-directional modes.
  • the second candidate group may include at least one of candIntraPredModeA, (candIntraPredModeA-n), (candIntraPredModeA+n), or non-directional mode.
  • n may be an integer of 1, 2, or more.
  • the non-directional mode may include at least one of a planar mode or a DC mode.
  • the candidate mode of the second candidate group may be determined as shown in Table 9 below. The index in Table 9 specifies the position or priority of the candidate mode, but is not limited thereto.
  • the second candidate group is candIntraPredModeA, candIntraPredModeB, (maxAB-n), (maxAB+n), (minAB+n), (minAB+n), (minAB+n), n) or a non-directional mode.
  • maxAB and minAB mean maximum and minimum values of candIntraPredModeA and candIntraPredModeB, respectively, and n may be an integer of 1, 2, or more.
  • the non-directional mode may include at least one of a planar mode or a DC mode. For example, based on the difference value (D) between candIntraPredModeA and candIntraPredModeB, the candidate mode of the second candidate group may be determined as shown in Table 10 below.
  • the second candidate group may include at least one of maxAB, (maxAB-n), (maxAB+n), or non-directional mode.
  • maxAB means the maximum value among candIntraPredModeA and candIntraPredModeB
  • n may be an integer of 1, 2, or more.
  • the non-directional mode may include at least one of a planar mode or a DC mode.
  • the candidate mode of the second candidate group may be determined as shown in Table 11 below. The index in Table 11 specifies the position or priority of the candidate mode, but is not limited thereto.
  • the second candidate group is non-directional mode, vertical mode, horizontal mode, (vertical mode-m), (vertical mode+m), (horizontal mode) Mode-m) or (horizontal mode+m).
  • m may be an integer of 1, 2, 3, 4 or more.
  • the non-directional mode may include at least one of a planar mode or a DC mode.
  • the candidate mode of the second candidate group may be determined as shown in Table 12 below. The index in Table 12 specifies the position or priority of the candidate mode, but is not limited thereto.
  • index 1 may be allocated to the horizontal mode, or the largest index may be allocated.
  • the candidate mode may include at least one of a diagonal mode (e.g., mode 2, mode 34, mode 66), (diagonal mode-m) or (diagonal mode+m).
  • the second candidate group may include a plurality of candidate modes.
  • First residual mode information specifying any one of a plurality of candidate modes may be signaled.
  • the candidate mode specified by the signaled first residual mode information may be set as the intra prediction mode of the current block.
  • the second residual mode information is signaled.
  • the second residual mode information may specify any one of the remaining modes other than the candidate modes belonging to the first and second candidate groups among the intra prediction modes pre-defined in the encoding/decoding device.
  • the candidate mode specified by the second residual mode information may be set as the intra prediction mode of the current block.
  • the residual mode information may be encoded based on a mode other than the second candidate group from the non-MPM, or may be encoded based on a non-MPM in which at least one of the second candidate group or the third candidate group is rearranged. It will be described with reference to FIGS. 6 and 7.
  • a reference region for intra prediction of a current block may be determined (S310 ).
  • the reference area is a peripheral area spatially adjacent to the current block, and may mean an area pre-restored before the current block.
  • the reference area may include one or more reference lines.
  • the reference area may include at least one of a first reference line, a second reference line, a third reference line, or a fourth reference line.
  • the first reference line may refer to a reference line adjacent to the left and/or top of the current block
  • the second reference line may refer to a reference line adjacent to the left and/or top of the first reference line.
  • the third reference line may refer to a reference line adjacent to the left and/or top of the second reference line
  • the fourth reference line may refer to a reference line adjacent to the left and/or top of the third reference line.
  • the current block can be intra predicted using a predetermined number of reference lines.
  • the number of reference lines may be 1) a fixed number pre-promised in the encoding/decoding device, 2) a number derived from the decoding device based on encoding parameters, and 3) the number of the reference number in the encoding device.
  • Information may be encoded and signaled.
  • the number may be determined using any one of the embodiments 1) to 3) described above, or may be derived based on a combination of at least two of the embodiments 1) to 3).
  • the determined number of reference lines may be 0, 1, 2, 3, or 4.
  • the encoding parameter may include information on block attributes, as described above.
  • the block properties include position, size, shape, ratio of width and height, length value of width and height, segmentation technique, segmentation depth, value of intra prediction mode, whether intra prediction mode is directional mode, intra prediction It may mean an angle of a mode, a component type (brightness, color difference), and the like.
  • a boundary means a boundary between pieces of images, and the pieces of images may be slices, tiles, CTU rows, CTUs, and the like, as described above. If the current block is in contact with the boundary in the image, the upper reference area of the current block may be limited to include only p reference lines.
  • the number of reference lines may be determined based on a comparison between an intra prediction mode of a current block and a predetermined first threshold. For example, when the intra prediction mode of the current block is smaller than a predetermined first threshold, p reference lines are used, and when the intra prediction mode of the current block is equal to or greater than a predetermined first threshold, q reference lines are used. Reference lines can be used.
  • the comparison may be a comparison with a mode value or an angle of an intra prediction mode.
  • the first threshold value may be a value pre-defined in the encoding/decoding device. For example, the first threshold value may mean information on at least one of a planner mode, a DC mode, a vertical mode, or a horizontal mode.
  • the number of reference lines may be determined based on the length values of the width and height of the current block. For example, when the width of the current block is greater than the height, the top reference area may include q reference lines, and the left reference area may include p reference lines. Alternatively, if the width of the current block is greater than a predetermined second threshold, the top reference region includes q reference lines, otherwise, the top reference region may include p reference lines.
  • the aforementioned p is 0, 1 or 2, and q may be 1, 2, 3 or 4. p may be less than q.
  • the current block may perform intra prediction by selecting one or more reference lines from the aforementioned first to fourth reference lines.
  • the location of the reference line may be 1) a location pre-promised in the encoding/decoding apparatus, 2) derived from the decoding apparatus based on the number information of the reference line described above, or 3) the location of the reference line in the encoding apparatus.
  • the specific information (mrl_idx) may be encoded and signaled.
  • the information (mrl_idx) may be signaled in consideration of at least one of the number of reference lines or information on the above-described block attributes.
  • the position may be determined using any one of the embodiments 1) to 3) described above, or may be determined based on a combination of at least two of the embodiments 1) to 3).
  • the non-available case is 1) when a reference line does not exist at the corresponding position, 2) when the reference line is located in a fragment image different from the current block, 3) coding the reference line at the corresponding position after the current block It may mean the case of having an order.
  • the reference line at the corresponding location can be excluded from the reference area.
  • an insoluble reference line may be replaced using an available reference line.
  • the available reference lines may include peripheral samples of the non-available reference lines, peripheral samples of the current block, and the like.
  • the peripheral sample may mean a sample adjacent to at least one of left, right, top, bottom, or diagonal directions.
  • intra prediction may be performed on a current block using an intra prediction mode and a reference region of the current block (S320).
  • 4 and 5 is an embodiment to which the present invention is applied, and shows a method of determining a second candidate group.
  • the second candidate group may be determined by subtracting/adding a predetermined m value to the MPM (Example 1).
  • the above operation can be performed for a plurality of MPMs, respectively.
  • the planar mode or the DC mode may be restricted so that the above operation is not performed.
  • the m value may be an integer of 2, 3, 4, or more.
  • the m value may be greater than the n value mentioned in FIG. 3.
  • the above-described subtraction/addition operation may be performed based on a comparison result between the MPM mode value and the reference mode value.
  • the reference mode value may mean mode 2, mode 18 (horizontal mode), mode 34 (diagonal mode), mode 50 (vertical mode), or mode 66.
  • mode A may mean an intra prediction mode in which the mode value is A.
  • an operation to subtract a predetermined m value from MPM is performed, otherwise, an operation to add a predetermined m value to MPM can be performed.
  • an operation to add a predetermined m value to MPM is performed, otherwise, an operation to subtract the predetermined m value to the MPM may be performed.
  • i can be used as a reference mode value.
  • the i value may be 1, 2, 3, 4 or 5.
  • the reference mode value may include a first reference mode value and a second reference mode value.
  • the first reference mode value may be any one of the five modes described above, and the second reference mode value may be another one of the five modes.
  • the second candidate group when the MPM is greater than the mode 34, the second candidate group may include a mode corresponding to a value obtained by subtracting 32 from the mode value of the MPM.
  • the second candidate group when the MPM is in mode 34, the second candidate group may include mode 2 and mode 66.
  • the second candidate group when the MPM is smaller than the mode 34, the second candidate group may include a mode corresponding to 32 of the MPM mode value.
  • the second candidate group may further include their neighbor mode in addition to the mode derived based on the MPM (Example 2).
  • the neighbor mode may be determined by adding or subtracting an integer of 1, 2, 3, or more to a mode derived based on MPM.
  • the second candidate group may be determined based on the location of the region to which the MPM belongs (Example 3).
  • the intra prediction mode pre-defined in the encoding/decoding device may be classified into a plurality of regions. For convenience of description, FIG. 5 shows that the pre-defined intra prediction mode is classified into four regions.
  • the first region R1 includes modes 2 to 17, the second region R2 includes modes 18 to 33, and the third region R3 includes modes 34 to 49
  • the fourth region R4 may include modes 50 to 66.
  • the second candidate group may be determined based on the intra prediction mode of the region adjacent to the region to which the MPM belongs. For example, when the MPM belongs to the first region, the second candidate group may be determined from at least one of the second region or the fourth region. In this case, the second candidate group may be determined based on a minimum value, a maximum value, a median value, or a reference mode value among intra prediction modes belonging to the corresponding region.
  • the second candidate group may be determined based on the intra prediction mode of the region not adjacent to the region to which the MPM belongs. For example, when the MPM belongs to the second region, the second candidate group may be determined from the fourth region. Alternatively, if the MPM belongs to the third region, the second candidate group may be determined from the first region. In this case, the second candidate group may be determined based on a minimum value, a maximum value, a median value, or a reference mode value among intra prediction modes belonging to the corresponding region.
  • the second candidate group may be determined based on at least one of Examples 1 to 3 described above, or may be determined based on a combination of at least two of Examples 1 to 3.
  • the determined second candidate group may include a mode overlapping with the previously determined MPM.
  • the mode overlapping with the MPM may be removed from the second candidate group.
  • the number of intra prediction modes belonging to the second candidate group may be smaller than the maximum number of second candidate groups (MaxNumNonMPM).
  • the intra prediction mode according to Embodiments 2 or 3 described above may be added to the second candidate group.
  • the addition may be repeatedly performed until the number of intra prediction modes belonging to the second candidate group is equal to MaxNumNonMPM.
  • the MaxNumNonMPM may be a fixed number pre-promised in the encoding/decoding device, or may be variably determined based on the number of MPMs belonging to the candidate mode list.
  • 6 is an embodiment to which the present invention is applied, and relates to a method of encoding/decoding residual mode information based on removal of a second candidate group.
  • the encoding apparatus may encode residual mode information based on the remaining mode (third candidate group) other than the second candidate group in the non-MPM.
  • residual mode information may be encoded based on truncated binary coding scheme. For convenience of description, it is assumed that 67 intra prediction modes and 6 MPMs are used.
  • an intra prediction mode having an index of 0 to 6 may be encoded with 5 bits, and an intra prediction mode with an index of 7 to 56 may be encoded with 6 bits.
  • the number of second candidate groups is five
  • the number of third candidate groups is 56.
  • an intra prediction mode having an index of 0 to 7 may be encoded with 5 bits
  • an intra prediction mode having an index of 8 to 55 may be encoded with 6 bits.
  • the number of third candidate groups is 48.
  • an intra prediction mode having an index of 0 to 15 may be encoded with 5 bits, and an intra prediction mode having an index of 16 to 47 may be encoded with 6 bits.
  • the number of bits and the number of intra prediction modes encoded in 5 bits/6 bits is at least one of the number of pre-defined intra prediction modes, the number of MPMs, or the number of second candidate groups. It can be determined variably based on one. Further, the residual mode information may be encoded based on a fixed length code (FLC), a variable length code (VLC), or the like.
  • FLC fixed length code
  • VLC variable length code
  • the decoding apparatus may acquire residual mode information through the bitstream.
  • the decoding apparatus may rearrange the MPMs of the candidate mode list in ascending order.
  • the rearranged MPM and residual mode information can be compared.
  • a first process of adding 1 to the remaining mode information may be performed.
  • the first process may be sequentially performed for each rearranged MPM.
  • the second candidate group belonging to the first group of non-MPMs may be rearranged in ascending order.
  • the rearranged second candidate group and the mode value obtained through the first process may be compared.
  • a second process of adding 1 to the mode value may be performed.
  • the second process may be sequentially performed for each of the rearranged second candidate groups.
  • the decoding apparatus may set the mode value obtained through the first process and the second process as an intra prediction mode of the current block.
  • the decoding apparatus may generate a single list by combining the candidate mode list and the first group of non-MPMs.
  • the generated list is composed of an intra prediction mode including an MPM and a second candidate group, which can be rearranged in ascending order.
  • the rearranged intra prediction mode and residual mode information can be compared.
  • a process of adding 1 to the residual mode information may be performed.
  • the above process can be performed sequentially for each of the rearranged intra prediction modes.
  • the decoding apparatus may set the mode value obtained through the above process as the intra prediction mode of the current block.
  • 7 is an embodiment to which the present invention is applied, and relates to a method of encoding/decoding residual mode information based on rearrangement of a second candidate group.
  • the encoding apparatus may encode the residual mode information based on the remaining mode (non-MPM) other than the MPM in the pre-defined intra prediction mode.
  • the encoding apparatus may rearrange the second candidate group of the non-MPM list at a predetermined position, and encode residual mode information based on the rearranged non-MPM list.
  • the position may be a position pre-promised in the encoding/decoding device.
  • the second candidate group may be rearranged to be located after the third candidate group.
  • the intra prediction mode corresponding to the second candidate group may be coded with a longer codeword than the third candidate group.
  • the second candidate group may be rearranged to be located in front of the third candidate group.
  • the intra prediction mode corresponding to the second candidate group may be coded with a shorter codeword than the third candidate group. That is, the intra prediction mode corresponding to the second candidate group may be coded with a short codeword, and the third candidate group may be coded with a relatively long codeword.
  • a part of the third candidate group may be selectively arranged before or after the second candidate group.
  • a part of the third candidate group may mean a mode in which the mode value is an even number among intra prediction modes included in the third candidate group, or a mode in which the mode value is odd.
  • a part of the third candidate group may mean a mode in which a mode value is a multiple of k among intra prediction modes included in the third candidate group.
  • k may be an integer of 2, 3, 4, 5, or more.
  • it is disclosed that a part of the third candidate group is selected based on the mode value of the intra prediction mode belonging to the third candidate group, but this is only an example.
  • the third candidate group may be grouped into i intra prediction modes.
  • a part of the third candidate group may be determined by selecting at least one intra prediction mode in each group.
  • i may be an integer of 2, 3, 4, 5, 6 or more.
  • An intra prediction mode corresponding to a minimum value, a maximum value, or an intermediate value among modes belonging to each group may be selected.
  • a part of the third candidate group may be determined based on a comparison result between the intra prediction mode of the third candidate group and the intra prediction mode (or intra prediction mode of the MPM) of the second candidate group. For example, a mode that satisfies that the difference between the mode values is less than or equal to a predetermined threshold may be selected.
  • the non-MPM may be rearranged/reconfigured to remove only the second candidate group by removing the remaining modes, ie, the third candidate group, from the non-MPM.
  • the third candidate group By not using the third candidate group, the number of intra prediction modes belonging to the non-MPM list can be reduced, and the second candidate group can be coded with a shorter codeword.
  • the decoding apparatus may acquire residual mode information through the bitstream.
  • the intra prediction mode of the current block may be decoded based on the residual mode information.
  • the decoding may be performed based on at least one of the number of second candidate groups, the position of the second candidate group in the non-MPM, or the value of the residual mode information.
  • the decoding may further include an ascending sorting and comparison process of the MPM/second candidate group shown in FIG. 6.
  • the number of second candidate groups is five, and the second candidate group is located after the third candidate group.
  • the decoding apparatus may determine an intra prediction mode corresponding to the value of the residual mode information.
  • the determined intra prediction mode may be set as the intra prediction mode of the current block.
  • the decoding apparatus may rearrange the MPM of the candidate mode list in ascending order.
  • the rearranged MPM and residual mode information can be compared.
  • a first process of adding 1 to the remaining mode information may be performed.
  • the first process may be sequentially performed for each rearranged MPM.
  • the second candidate group belonging to the first group of non-MPMs may be rearranged in ascending order.
  • the rearranged second candidate group and the mode value obtained through the first process may be compared.
  • a second process of adding 1 to the mode value may be performed.
  • the second process may be sequentially performed for each of the rearranged second candidate groups.
  • the decoding apparatus may set the mode value obtained through the first process and the second process as an intra prediction mode of the current block.
  • the decoding apparatus may generate a single list by combining the candidate mode list and the first group of non-MPMs.
  • the generated list is composed of an intra prediction mode including an MPM and a second candidate group, which can be rearranged in ascending order.
  • the rearranged intra prediction mode and residual mode information can be compared.
  • a process of adding 1 to the residual mode information may be performed.
  • the above process can be performed sequentially for each of the rearranged intra prediction modes.
  • the decoding apparatus may set the mode value obtained through the above process as the intra prediction mode of the current block.
  • the number of second candidate groups is five, and the second candidate group is located in front of the third candidate group.
  • the decoding apparatus may determine an intra prediction mode corresponding to the value of the residual mode information from the second candidate group.
  • the determined intra prediction mode may be set as the intra prediction mode of the current block.
  • the decoding apparatus may rearrange the MPM of the candidate mode list in ascending order.
  • the rearranged MPM and residual mode information can be compared.
  • a first process of adding 1 to the remaining mode information may be performed.
  • the first process may be sequentially performed for each rearranged MPM.
  • the second candidate group belonging to the first group of non-MPMs may be rearranged in ascending order.
  • the rearranged second candidate group and the mode value obtained through the first process may be compared.
  • a second process of adding 1 to the mode value may be performed.
  • the second process may be sequentially performed for each of the rearranged second candidate groups.
  • the decoding apparatus may set the mode value obtained through the first process and the second process as an intra prediction mode of the current block.
  • the decoding apparatus may generate a single list by combining the candidate mode list and the first group of non-MPMs.
  • the generated list is composed of an intra prediction mode including an MPM and a second candidate group, which can be rearranged in ascending order.
  • the rearranged intra prediction mode and residual mode information can be compared.
  • a process of adding 1 to the residual mode information may be performed.
  • the above process can be performed sequentially for each of the rearranged intra prediction modes.
  • the decoding apparatus may set the mode value obtained through the above process as the intra prediction mode of the current block.
  • Exemplary methods of the present disclosure are expressed as a series of operations for clarity of description, but are not intended to limit the order in which the steps are performed, and each step may be performed simultaneously or in a different order if necessary.
  • the steps illustrated may include other steps in addition, other steps may be included in addition to the other steps, or other additional steps may be included in addition to some steps.
  • various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof.
  • ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal Processors
  • DSPDs Digital Signal Processing Devices
  • PLDs Programmable Logic Devices
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal Processors
  • DSPDs Digital Signal Processing Devices
  • PLDs Programmable Logic Devices
  • FPGAs Field Programmable Gate Arrays
  • Universal It can be implemented by a processor (general processor), a controller, a microcontroller, a microprocessor.
  • the scope of the present disclosure includes software or machine-executable instructions (eg, operating systems, applications, firmware, programs, etc.) that cause an operation according to the method of various embodiments to be executed on a device or computer, and such software or Instructions include a non-transitory computer-readable medium that is stored and executable on a device or computer.
  • software or Instructions include a non-transitory computer-readable medium that is stored and executable on a device or computer.
  • the present invention can be used to encode/decode video signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

본 발명에 따른 부호화/복호화 장치는, 현재 블록의 MPM(most probable mode) 또는 이웃 블록의 인트라 예측 모드에 기반하여 현재 블록의 인트라 예측 모드를 결정하고, 현재 블록의 인트라 예측을 위한 참조 영역을 결정하며, 인트라 예측 모드 및 참조 영역을 이용하여 현재 블록에 대해 인트라 예측을 수행할 수 있다.

Description

비디오 부호화/복호화 방법 및 장치
본 발명은 비디오 신호를 부호화/복호화하는 방법 및 장치에 관한 것이다.
고해상도, 고품질의 영상에 대한 수요가 다양한 응용 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 데이터량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 저장하는 경우, 전송 비용과 저장 비용이 증가하게 된다. 영상 데이터가 고해상도, 고품질화 됨에 따라 발생하는 이러한 문제들을 해결하기 위해서는 고효율의 영상 압축 기술들이 활용될 수 있다.
본 발명은 인트라 예측의 부호화/복호화 효율을 향상시키고자 한다.
본 발명은 인트라 예측 모드의 부호화/복호화 효율을 향상시키고자 한다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치는, 비트스트림으로부터 플래그를 획득하고, 상기 플래그를 기반으로, 상기 현재 블록의 인트라 예측 모드에 관한 후보군을 결정하며, 상기 결정된 후보군을 기반으로, 상기 현재 블록의 인트라 예측 모드를 유도하고, 상기 유도된 인트라 예측 모드 및 소정의 참조 영역을 기반으로, 상기 현재 블록에 대해 인트라 예측을 수행할 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 플래그는, 현재 블록의 인트라 예측 모드를 유도하기 위해 이용되는 소정의 후보군을 지시할 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 후보군은 제1 후보군 또는 제2 후보군으로 결정되고, 상기 제1 후보군은 디폴트 모드로 구성되며, 상기 제2 후보군은 상기 현재 블록에 인접한 이웃 블록의 인트라 예측 모드를 이용하여 구성될 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 디폴트 모드는, DC 모드 또는 Planar 모드 중 적어도 하나를 포함할 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 제2 후보군에 속한 적어도 하나의 후보 모드는, 상기 이웃 블록의 인트라 예측 모드에 n 값을 가산 또는 감산하여 유도되고, n은 2보다 크거나 같은 자연수일 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 제2 후보군에 속한 후보 모드의 개수는 m개이고, m은 1, 2, 3, 4, 5, 6 또는 그 이상의 자연수일 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 제2 후보군은, 상기 제1 그룹에 포함된 디폴트 모드를 포함하지 않을 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치는, 현재 블록의 인트라 예측 모드를 결정하고, 상기 현재 블록의 인트라 예측 모드가 속한 후보군을 지시하기 위한 플래그를 부호화하며, 상기 현재 블록의 인트라 예측 모드 및 소정의 참조 영역을 기반으로, 상기 현재 블록에 대해 인트라 예측을 수행할 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 후보군은, 제1 후보군 또는 제2 후보군 중 적어도 하나를 포함하고, 상기 제1 후보군은, 디폴트 모드로 구성되며, 상기 제2 후보군은, 상기 현재 블록에 인접한 이웃 블록의 인트라 예측 모드를 이용하여 구성될 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 디폴트 모드는, DC 모드 또는 Planar 모드 중 적어도 하나를 포함할 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 제2 후보군에 속한 적어도 하나의 후보 모드는, 상기 이웃 블록의 인트라 예측 모드에 n 값을 가산 또는 감산하여 유도되고, n은 2보다 크거나 같은 자연수일 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 제2 후보군에 속한 후보 모드의 개수는 m개이고, m은 1, 2, 3, 4, 5, 6 또는 그 이상의 자연수일 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 제2 후보군은, 상기 제1 그룹에 포함된 디폴트 모드를 포함하지 않을 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체는, 현재 블록의 인트라 예측에 의해 부호화된 부호화 정보를 포함하는 데이터 스트림을 포함하되, 상기 부호화 정보는, 상기 현재 블록의 인트라 예측 모드를 유도하기 위해 이용되는 후보군을 지시하는 플래그를 포함하며, 상기 플래그에 따라, 상기 현재 블록의 인트라 예측 모드에 관한 후보군은 제1 후보군 또는 제2 후보군 중 어느 하나로 결정될 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 제1 후보군은, 디폴트 모드로 구성되고, 상기 제2 후보군은, 상기 현재 블록에 인접한 이웃 블록의 인트라 예측 모드를 이용하여 구성될 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 디폴트 모드는, DC 모드 또는 Planar 모드 중 적어도 하나를 포함할 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 제2 후보군에 속한 적어도 하나의 후보 모드는, 상기 이웃 블록의 인트라 예측 모드에 n 값을 가산 또는 감산하여 유도되고, n은 2보다 크거나 같은 자연수일 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 제2 후보군에 속한 후보 모드의 개수는 m개이고, m은 1, 2, 3, 4, 5, 6 또는 그 이상의 자연수일 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 제2 후보군은, 상기 제1 그룹에 포함된 디폴트 모드를 포함하지 않을 수 있다.
본 발명에 따르면, 복수의 후보군 중 어느 하나를 선택적으로 이용하여 인트라 예측 모드의 부호화/복호화 효율을 향상시킬 수 있다.
또한, 본 발명에 따르면, non-MPM의 개수를 줄이거나, non-MPM의 배열을 변경함으로써, 인트라 예측 모드의 부호화/복호화 효율을 향상시킬 수 있다.
또한, 본 발명에 따르면, 인트라 예측을 위한 소정의 참조 영역을 결정함으로써, 인트라 예측의 부호화/복호화 효율을 향상시킬 수 있다.
도 1은 본 발명의 일실시예로서, 부호화 장치의 개략적인 블록도를 도시한 것이다.
도 2는 본 발명의 일실시예로서, 복호화 장치의 개략적인 블록도를 도시한것이다.
도 3은 본 발명이 적용되는 일실시예로서, 인트라 예측 방법을 도시한 것이다.
도 4 및 도 5는 본 발명이 적용되는 일실시예로서, 제2 후보군을 결정하는 방법을 도시한 것이다.
도 6은 본 발명이 적용되는 일실시예로서, 제2 후보군 제거에 기반하여, 잔여 모드 정보를 부호화/복호화하는 방법에 관한 것이다.
도 7은 본 발명이 적용되는 일실시예로서, 제2 후보군의 재배열에 기반하여 잔여 모드 정보를 부호화/복호화하는 방법에 관한 것이다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치는, 비트스트림으로부터 플래그를 획득하고, 상기 플래그를 기반으로, 상기 현재 블록의 인트라 예측 모드에 관한 후보군을 결정하며, 상기 결정된 후보군을 기반으로, 상기 현재 블록의 인트라 예측 모드를 유도하고, 상기 유도된 인트라 예측 모드 및 소정의 참조 영역을 기반으로, 상기 현재 블록에 대해 인트라 예측을 수행할 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 플래그는, 현재 블록의 인트라 예측 모드를 유도하기 위해 이용되는 소정의 후보군을 지시할 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 후보군은 제1 후보군 또는 제2 후보군으로 결정되고, 상기 제1 후보군은 디폴트 모드로 구성되며, 상기 제2 후보군은 상기 현재 블록에 인접한 이웃 블록의 인트라 예측 모드를 이용하여 구성될 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 디폴트 모드는, DC 모드 또는 Planar 모드 중 적어도 하나를 포함할 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 제2 후보군에 속한 적어도 하나의 후보 모드는, 상기 이웃 블록의 인트라 예측 모드에 n 값을 가산 또는 감산하여 유도되고, n은 2보다 크거나 같은 자연수일 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 제2 후보군에 속한 후보 모드의 개수는 m개이고, m은 1, 2, 3, 4, 5, 6 또는 그 이상의 자연수일 수 있다.
본 발명에 따른 비디오 신호 복호화 방법 및 장치에 있어서, 상기 제2 후보군은, 상기 제1 그룹에 포함된 디폴트 모드를 포함하지 않을 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치는, 현재 블록의 인트라 예측 모드를 결정하고, 상기 현재 블록의 인트라 예측 모드가 속한 후보군을 지시하기 위한 플래그를 부호화하며, 상기 현재 블록의 인트라 예측 모드 및 소정의 참조 영역을 기반으로, 상기 현재 블록에 대해 인트라 예측을 수행할 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 후보군은, 제1 후보군 또는 제2 후보군 중 적어도 하나를 포함하고, 상기 제1 후보군은, 디폴트 모드로 구성되며, 상기 제2 후보군은, 상기 현재 블록에 인접한 이웃 블록의 인트라 예측 모드를 이용하여 구성될 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 디폴트 모드는, DC 모드 또는 Planar 모드 중 적어도 하나를 포함할 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 제2 후보군에 속한 적어도 하나의 후보 모드는, 상기 이웃 블록의 인트라 예측 모드에 n 값을 가산 또는 감산하여 유도되고, n은 2보다 크거나 같은 자연수일 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 제2 후보군에 속한 후보 모드의 개수는 m개이고, m은 1, 2, 3, 4, 5, 6 또는 그 이상의 자연수일 수 있다.
본 발명에 따른 비디오 신호 부호화 방법 및 장치에 있어서, 상기 제2 후보군은, 상기 제1 그룹에 포함된 디폴트 모드를 포함하지 않을 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체는, 현재 블록의 인트라 예측에 의해 부호화된 부호화 정보를 포함하는 데이터 스트림을 포함하되, 상기 부호화 정보는, 상기 현재 블록의 인트라 예측 모드를 유도하기 위해 이용되는 후보군을 지시하는 플래그를 포함하며, 상기 플래그에 따라, 상기 현재 블록의 인트라 예측 모드에 관한 후보군은 제1 후보군 또는 제2 후보군 중 어느 하나로 결정될 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 제1 후보군은, 디폴트 모드로 구성되고, 상기 제2 후보군은, 상기 현재 블록에 인접한 이웃 블록의 인트라 예측 모드를 이용하여 구성될 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 디폴트 모드는, DC 모드 또는 Planar 모드 중 적어도 하나를 포함할 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 제2 후보군에 속한 적어도 하나의 후보 모드는, 상기 이웃 블록의 인트라 예측 모드에 n 값을 가산 또는 감산하여 유도되고, n은 2보다 크거나 같은 자연수일 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 제2 후보군에 속한 후보 모드의 개수는 m개이고, m은 1, 2, 3, 4, 5, 6 또는 그 이상의 자연수일 수 있다.
본 발명에 따른 컴퓨터로 판독 가능한 기록 매체에 있어서, 상기 제2 후보군은, 상기 제1 그룹에 포함된 디폴트 모드를 포함하지 않을 수 있다.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.
어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어"있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어"있다거나 "직접 접속되어"있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.
본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.
도 1은 본 발명의 일실시예로서, 부호화 장치의 개략적인 블록도를 도시한 것이다.
도 1을 참조하면, 부호화 장치(100)는 픽쳐 분할부(110), 예측부(120, 125), 변환부(130), 양자화부(135), 재정렬부(160), 엔트로피 부호화부(165), 역양자화부(140), 역변환부(145), 필터부(150) 및 메모리(155)를 포함할 수 있다.
도 1에 나타난 각 구성부들은 영상 부호화 장치에서 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시한 것으로, 각 구성부들이 분리된 하드웨어로 이루어짐을 의미할 수 있다. 다만, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로, 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수개의 구성부로 나뉘어져 기능을 수행할 수 있고, 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.
픽쳐 분할부(110)는 입력된 픽쳐를 적어도 하나의 블록으로 분할할 수 있다. 이때, 블록은 부호화 단위(CU), 예측 단위(PU) 또는 변환 단위(TU)를 의미할 수 있다. 상기 부호화 단위(CU)가 예측 단위(PU) 및/또는 변환 단위(TU)로 동일하게 설정될 수도 있다. 또는, 하나의 부호화 단위(CU)는 복수의 예측 단위(PU) 또는 변환 단위(TU)로 분할될 수도 있다. 하나의 예측 단위(PU)는 복수의 변환 단위(TU)로 분할/구성될 수도 있다. 반대로, 하나의 변환 단위(TU)는 복수의 예측 단위(PU)로 분할/구성될 수도 있다.
상기 분할은 쿼드 트리(Quad-tree), 바이너리 트리(Biniary-tree), 트리플 트리(Triple-tree) 중 적어도 하나에 기반하여 수행될 수 있다. 쿼드 트리는 상위 블록을 너비와 높이가 상위 블록의 절반인 하위 블록으로 사분할하는 방식이다. 바이너리 트리는 상위 블록을 너비 또는 높이 중 어느 하나가 상위 블록의 절반인 하위 블록으로 이분할하는 방식이다. 바이너리 트리에서는 상위 블록이 높이가 절반이 전술한 바이너리 트리 기반의 분할을 통해, 블록은 정방형뿐만 아니라 비정방형의 형태를 가질 수 있다.
이하, 본 발명의 실시예에서는 부호화 단위는 부호화를 수행하는 단위의 의미로 사용할 수도 있고, 복호화를 수행하는 단위의 의미로 사용할 수도 있다.
예측부(120, 125)는 인터 예측을 수행하는 인터 예측부(120)와 인트라 예측을 수행하는 인트라 예측부(125)를 포함할 수 있다. 예측 단위에 대해 인터 예측을 사용할 것인지 또는 인트라 예측을 수행할 것인지를 결정하고, 각 예측 방법에 따른 구체적인 정보(예컨대, 인트라 예측 모드, 모션 벡터, 참조 픽쳐 등)를 결정할 수 있다. 이때, 예측이 수행되는 처리 단위와 예측 방법 및 구체적인 내용이 정해지는 처리 단위는 다를 수 있다. 예컨대, 예측의 방법과 예측 모드 등은 예측 단위로 결정되고, 예측의 수행은 변환 단위로 수행될 수도 있다. 생성된 예측 블록과 원본 블록 사이의 잔차값(잔차 블록)은 변환부(130)로 입력될 수 있다. 또한, 예측을 위해 사용한 예측 모드 정보, 모션 벡터 정보 등은 잔차값과 함께 엔트로피 부호화부(165)에서 부호화되어 복호화 장치에 전달될 수 있다. 특정한 부호화 모드를 사용할 경우, 예측부(120, 125)를 통해 예측 블록을 생성하지 않고, 원본 블록을 그대로 부호화하여 복호화부에 전송하는 것도 가능하다.
인터 예측부(120)는 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐의 정보를 기초로 예측 단위를 예측할 수도 있고, 경우에 따라서는 현재 픽쳐 내의 부호화가 완료된 일부 영역의 정보를 기초로 예측 단위를 예측할 수도 있다. 인터 예측부(120)는 참조 픽쳐 보간부, 모션 예측부, 움직임 보상부를 포함할 수 있다.
참조 픽쳐 보간부에서는 메모리(155)로부터 참조 픽쳐 정보를 제공받고 참조 픽쳐에서 정수 화소 이하의 화소 정보를 생성할 수 있다. 휘도 화소의 경우, 1/4 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 8탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다. 색차 신호의 경우 1/8 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 4탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다.
모션 예측부는 참조 픽쳐 보간부에 의해 보간된 참조 픽쳐를 기초로 모션 예측을 수행할 수 있다. 모션 벡터를 산출하기 위한 방법으로 FBMA(Full search-based Block Matching Algorithm), TSS(Three Step Search), NTS(New Three-Step Search Algorithm) 등 다양한 방법이 사용될 수 있다. 모션 벡터는 보간된 화소를 기초로 1/2 또는 1/4 화소 단위의 모션 벡터값을 가질 수 있다. 모션 예측부에서는 모션 예측 방법을 다르게 하여 현재 예측 단위를 예측할 수 있다. 모션 예측 방법으로 스킵(Skip) 방법, 머지(Merge) 방법, AMVP(Advanced Motion Vector Prediction) 방법 등 다양한 방법이 사용될 수 있다.
인트라 예측부(125)는 현재 픽쳐 내의 화소 정보인 현재 블록 주변의 참조 픽셀 정보를 기초로 예측 단위를 생성할 수 있다. 현재 예측 단위의 주변 블록이 인터 예측을 수행한 블록이어서, 참조 픽셀이 인터 예측을 수행한 픽셀일 경우, 인터 예측을 수행한 블록에 포함되는 참조 픽셀을 주변의 인트라 예측을 수행한 블록의 참조 픽셀 정보로 대체하여 사용할 수 있다. 즉, 참조 픽셀이 가용하지 않는 경우, 가용하지 않은 참조 픽셀 정보를 가용한 참조 픽셀 중 적어도 하나의 참조 픽셀로 대체하여 사용할 수 있다.
인트라 예측에서 예측 모드는 참조 픽셀 정보를 예측 방향에 따라 사용하는 방향성 예측 모드와 예측을 수행시 방향성 정보를 사용하지 않는 비방향성 모드를 가질 수 있다. 휘도 정보를 예측하기 위한 모드와 색차 정보를 예측하기 위한 모드가 상이할 수 있고, 색차 정보를 예측하기 위해 휘도 정보를 예측하기 위해 사용된 인트라 예측 모드 정보 또는 예측된 휘도 신호 정보를 활용할 수 있다.
인트라 예측 방법은 예측 모드에 따라 참조 화소에 AIS(Adaptive Intra Smoothing) 필터를 적용한 후 예측 블록을 생성할 수 있다. 참조 화소에 적용되는 AIS 필터의 종류는 상이할 수 있다. 인트라 예측 방법을 수행하기 위해 현재 예측 단위의 인트라 예측 모드는 현재 예측 단위의 주변에 존재하는 예측 단위의 인트라 예측 모드로부터 예측할 수 있다. 주변 예측 단위로부터 예측된 모드 정보를 이용하여 현재 예측 단위의 예측 모드를 예측하는 경우, 현재 예측 단위와 주변 예측 단위의 인트라 예측 모드가 동일하면 소정의 플래그 정보를 이용하여 현재 예측 단위와 주변 예측 단위의 예측 모드가 동일하다는 정보를 전송할 수 있고, 만약 현재 예측 단위와 주변 예측 단위의 예측 모드가 상이하면 엔트로피 부호화를 수행하여 현재 블록의 예측 모드 정보를 부호화할 수 있다.
또한, 예측부(120, 125)에서 생성된 예측 단위를 기초로 예측을 수행한 예측 단위와 예측 단위의 원본 블록과 차이값인 잔차값(Residual) 정보를 포함하는 잔차 블록이 생성될 수 있다. 생성된 잔차 블록은 변환부(130)로 입력될 수 있다.
변환부(130)에서는 잔차 데이터를 포함한 잔차 블록을 DCT, DST 등과 같은 변환 타입을 사용하여 변환시킬 수 있다. 이때, 변환 방법은 잔차 블록을 생성하기 위해 사용된 예측 단위의 인트라 예측 모드에 기반하여 결정될 수 있다.
양자화부(135)는 변환부(130)에서 주파수 영역으로 변환된 값들을 양자화할 수 있다. 블록에 따라 또는 영상의 중요도에 따라 양자화 계수는 변할 수 있다. 양자화부(135)에서 산출된 값은 역양자화부(140)와 재정렬부(160)에 제공될 수 있다.
재정렬부(160)는 양자화된 잔차값에 대해 계수값의 재정렬을 수행할 수 있다.
재정렬부(160)는 계수 스캐닝(Coefficient Scanning) 방법을 통해 2차원의 블록 형태 계수를 1차원의 벡터 형태로 변경할 수 있다. 예를 들어, 재정렬부(160)에서는 소정의 스캔 타입을 이용하여 DC 계수부터 고주파수 영역의 계수까지 스캔하여 1차원 벡터 형태로 변경시킬 수 있다.
엔트로피 부호화부(165)는 재정렬부(160)에 의해 산출된 값들을 기초로 엔트로피 부호화를 수행할 수 있다. 엔트로피 부호화는 예를 들어, 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 부호화 방법을 사용할 수 있다.
엔트로피 부호화부(165)는 재정렬부(160) 및 예측부(120, 125)로부터 부호화 단위의 잔차값 계수 정보 및 블록 타입 정보, 예측 모드 정보, 분할 단위 정보, 예측 단위 정보 및 전송 단위 정보, 모션 벡터 정보, 참조 프레임 정보, 블록의 보간 정보, 필터링 정보 등 다양한 정보를 부호화할 수 있다.
엔트로피 부호화부(165)에서는 재정렬부(160)에서 입력된 부호화 단위의 계수값을 엔트로피 부호화할 수 있다.
역양자화부(140) 및 역변환부(145)에서는 양자화부(135)에서 양자화된 값들을 역양자화하고 변환부(130)에서 변환된 값들을 역변환한다. 역양자화부(140) 및 역변환부(145)에서 생성된 잔차값(Residual)은 예측부(120, 125)에 포함된 움직임 추정부, 움직임 보상부 및 인트라 예측부를 통해서 예측된 예측 단위와 합쳐져 복원 블록(Reconstructed Block)을 생성할 수 있다.
필터부(150)는 디블록킹 필터, 오프셋 보정부, ALF(Adaptive Loop Filter)중 적어도 하나를 포함할 수 있다.
디블록킹 필터는 복원된 픽쳐에서 블록간의 경계로 인해 생긴 블록 왜곡을 제거할 수 있다. 디블록킹을 수행할지 여부를 판단하기 위해 블록에 포함된 몇 개의 열 또는 행에 포함된 픽셀을 기초로 현재 블록에 디블록킹 필터 적용할지 여부를 판단할 수 있다. 블록에 디블록킹 필터를 적용하는 경우 필요한 디블록킹 필터링 강도에 따라 강한 필터(Strong Filter) 또는 약한 필터(Weak Filter)를 적용할 수 있다. 또한 디블록킹 필터를 적용함에 있어 수직 필터링 및 수평 필터링 수행시 수평 방향 필터링 및 수직 방향 필터링이 병행 처리되도록 할 수 있다.
오프셋 보정부는 디블록킹을 수행한 영상에 대해 픽셀 단위로 원본 영상과의 오프셋을 보정할 수 있다. 특정 픽쳐에 대한 오프셋 보정을 수행하기 위해 영상에 포함된 픽셀을 일정한 수의 영역으로 구분한 후 오프셋을 수행할 영역을 결정하고 해당 영역에 오프셋을 적용하는 방법 또는 각 픽셀의 에지 정보를 고려하여 오프셋을 적용하는 방법을 사용할 수 있다.
ALF(Adaptive Loop Filtering)는 필터링한 복원 영상과 원래의 영상을 비교한 값을 기초로 수행될 수 있다. 영상에 포함된 픽셀을 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. ALF를 적용할지 여부에 관련된 정보는 휘도 신호는 부호화 단위(Coding Unit, CU) 별로 전송될 수 있고, 각각의 블록에 따라 적용될 ALF 필터의 모양 및 필터 계수는 달라질 수 있다. 또한, 적용 대상 블록의 특성에 상관없이 동일한 형태(고정된 형태)의 ALF 필터가 적용될 수도 있다.
메모리(155)는 필터부(150)를 통해 산출된 복원 블록 또는 픽쳐를 저장할 수 있고, 저장된 복원 블록 또는 픽쳐는 인터 예측을 수행 시 예측부(120, 125)에 제공될 수 있다.
도 2는 본 발명의 일실시예로서, 복호화 장치의 개략적인 블록도를 도시한것이다.
도 2를 참조하면, 복호화 장치(200)는 엔트로피 복호화부(210), 재정렬부(215), 역양자화부(220), 역변환부(225), 예측부(230, 235), 필터부(240), 메모리(245)가 포함될 수 있다.
도 2에 나타난 각 구성부들은 복호화 장치에서 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시한 것으로, 각 구성부들이 분리된 하드웨어로 이루짐을 의미할 수 있다. 다만, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수개의 구성부로 나뉘어져 기능을 수행할 수 있고, 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
엔트로피 복호화부(210)는 입력 비트스트림에 대해 엔트로피 복호화를 수행할 수 있다. 예를 들어, 엔트로피 복호화를 위해, 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 방법이 적용될 수 있다.
엔트로피 복호화부(210)에서는 부호화 장치에서 수행된 인트라 예측 및 인터 예측에 관련된 정보를 복호화할 수 있다.
재정렬부(215)는 엔트로피 복호화부(210)에서 엔트로피 복호화된 비트스트림에 대해 재정렬을 수행할 수 있다. 1차원 벡터 형태로 표현된 계수들을 다시 2차원의 블록 형태의 계수로 복원하여 재정렬할 수 있다. 재정렬부(215)에서는 부호화 장치에서 수행된 계수 스캐닝에 관련된 정보를 제공받고, 해당 부호화 장치에서 수행된 스캐닝 순서에 기초하여 역으로 스캐닝하는 방법을 통해 재정렬을 수행할 수 있다.
역양자화부(220)는 양자화 파라미터와 재정렬된 블록의 계수값을 기초로 역양자화를 수행할 수 있다.
역변환부(225)는 역양자화된 변환 계수를 소정의 변환 방법으로 역변환을 수행할 수 있다. 이때, 변환 방법은 예측 방법(인터/인트라 예측), 블록의 크기/형태, 인트라 예측 모드 등에 관한 정보를 기반으로 결정될 수 있다.
예측부(230, 235)는 엔트로피 복호화부(210)에서 제공된 예측 블록 생성 관련 정보와 메모리(245)에서 제공된 이전에 복호화된 블록 또는 픽쳐 정보를 기초로 예측 블록을 생성할 수 있다.
예측부(230, 235)는 예측 단위 판별부, 인터 예측부 및 인트라 예측부를 포함할 수 있다. 예측 단위 판별부는 엔트로피 복호화부(210)에서 입력되는 예측 단위 정보, 인트라 예측 방법의 예측 모드 정보, 인터 예측 방법의 모션 예측 관련 정보 등 다양한 정보를 입력 받고, 현재 부호화 단위(CU)에서 예측 단위를 구분하고, 예측 단위가 인터 예측을 수행하는지 아니면 인트라 예측을 수행하는지 여부를 판별할 수 있다. 인터 예측부(230)는 부호화 장치에서 제공된 현재 예측 단위의 인터 예측에 필요한 정보를 이용하여, 현재 예측 단위가 포함된 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐에 포함된 정보를 기초로 현재 예측 단위에 대한 인터 예측을 수행할 수 있다. 또는, 현재 예측 단위가 포함된 현재 픽쳐 내에서 기-복원된 일부 영역의 정보를 기초로 인터 예측을 수행할 수도 있다.
인터 예측을 수행하기 위해 부호화 단위를 기준으로, 해당 부호화 단위에 포함된 예측 단위의 모션 예측 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode) 중 어떠한 방법인지 여부를 판단할 수 있다.
인트라 예측부(235)는 현재 픽쳐 내의 화소 정보를 기초로 예측 블록을 생성할 수 있다. 예측 단위가 인트라 예측을 수행한 예측 단위인 경우, 부호화 장치에서 제공된 예측 단위의 인트라 예측 모드 정보를 기초로, 인트라 예측을 수행할 수 있다. 인트라 예측부(235)에는 AIS(Adaptive Intra Smoothing) 필터, 참조 화소 보간부, DC 필터를 포함할 수 있다. AIS 필터는 현재 블록의 참조 화소에 필터링을 수행하는 부분으로써 현재 예측 단위의 예측 모드에 따라 필터의 적용 여부를 결정하여 적용할 수 있다. 부호화 장치에서 제공된 예측 단위의 예측 모드 및 AIS 필터 정보를 이용하여, 현재 블록의 참조 화소에 AIS 필터링을 수행할 수 있다. 현재 블록의 예측 모드가 AIS 필터링을 수행하지 않는 모드일 경우, AIS 필터는 적용되지 않을 수 있다.
참조 화소 보간부는 예측 단위의 예측 모드가 참조 화소를 보간한 화소값을 기초로 인트라 예측을 수행하는 예측 단위일 경우, 참조 화소를 보간하여 정수값 이하의 화소 단위의 참조 화소를 생성할 수 있다. 현재 예측 단위의 예측 모드가 참조 화소를 보간하지 않고 예측 블록을 생성하는 예측 모드일 경우, 참조 화소는 보간되지 않을 수 있다. DC 필터는 현재 블록의 예측 모드가 DC 모드일 경우 필터링을 통해서 예측 블록을 생성할 수 있다.
복원된 블록 또는 픽쳐는 필터부(240)로 제공될 수 있다. 필터부(240)는 디블록킹 필터, 오프셋 보정부, ALF를 포함할 수 있다.
부호화 장치로부터 해당 블록 또는 픽쳐에 디블록킹 필터를 적용하였는지 여부에 대한 정보 및 디블록킹 필터를 적용하였을 경우, 강한 필터를 적용하였는지 또는 약한 필터를 적용하였는지에 대한 정보를 제공받을 수 있다. 복호화 장치의 디블록킹 필터에서는 부호화 장치에서 제공된 디블록킹 필터 관련 정보를 제공받고, 복호화 장치에서 해당 블록에 대한 디블록킹 필터링을 수행할 수 있다.
오프셋 보정부는 부호화시 영상에 적용된 오프셋 보정의 종류 및 오프셋 값 정보 등을 기초로 복원된 영상에 오프셋 보정을 수행할 수 있다.
ALF는 부호화기로부터 제공된 ALF 적용 여부 정보, ALF 계수 정보 등을 기초로 부호화 단위에 적용될 수 있다. 이러한 ALF 정보는 특정한 파라메터 셋에 포함되어 제공될 수 있다.
메모리(245)는 복원된 픽쳐 또는 블록을 저장하여 참조 픽쳐 또는 참조 블록으로 사용할 수 있도록 할 수 있고 또한 복원된 픽쳐를 출력부로 제공할 수 있다.
도 3은 본 발명이 적용되는 일실시예로서, 인트라 예측 방법을 도시한 것이다.
도 3을 참조하면, 현재 블록의 인트라 예측 모드를 결정할 수 있다(S300).
구체적으로, 복호화 장치는 비트스트림으로부터 제1 플래그를 획득할 수 있다. 상기 제1플래그는, 현재 블록의 인트라 예측 모드가 후보 모드 리스트(제1 후보군)으로부터 유도되는지 여부를 나타낼 수 있다. 후보 모드 리스트는 k개의 후보 모드(MPM)를 포함하며, k는 1, 2, 3, 4, 5, 6 또는 그 이상의 정수일 수 있다.
상기 제1 플래그가 제1 값인 경우(즉, 현재 블록의 인트라 예측 모드가 제1 후보군으로부터 유도되는 경우), 복호화 장치는 비트스트림으로부터 인덱스 정보(mpm_idx)를 획득할 수 있다. 여기서, 인덱스 정보는, 상기 후보 모드 리스트에 속한 복수의 MPM 중 어느 하나를 특정할 수 있다. 상기 후보 모드 리스트와 인덱스 정보에 기초하여, 현재 블록의 인트라 예측 모드가 결정될 수 있다. 즉, 상기 인덱스 정보에 의해 특정된 MPM이 현재 블록의 인트라 예측 모드로 설정될 수 있다. 다만, 인덱스 정보는, 후보 모드 리스트에 복수의 MPM이 포함된 경우에 한하여 이용될 수 있다. 예를 들어, 후보 모드 리스트에 1개의 MPM만이 포함된 경우, 인덱스 정보의 시그날링은 생략되고, 해당 MPM이 현재 블록의 인트라 예측 모드로 설정될 수 있다.
상기 MPM은 현재 블록의 이웃 블록을 이용하여 결정될 수 있다. 상기 이웃 블록은, 현재 블록의 좌측, 상단, 좌상단, 우상단 또는 우하단 중 적어도 하나에 인접한 블록을 의미할 수 있다. 상기 이웃 블록의 개수는, 1개, 2개, 3개, 4개, 5개 또는 그 이상일 수 있다. 상기 개수는, 부호화/복호화 장치에 기-정의된 고정된 개수일 수 있다. 상기 개수는, 소정의 부호화 파라미터에 기초하여 가변적으로 결정될 수도 있다. 상기 부호화 파라미터는, 블록 속성에 관한 정보를 포함할 수 있다. 여기서, 블록 속성은 위치, 크기, 형태, 너비와 높이의 비율(ratio), 너비와 높이의 길이값, 분할 기법(e.g., Quadtree, Binary tree, Ternary tree), 분할 뎁스, 인트라 예측 모드의 값, 인트라 예측 모드가 방향성 모드인지 여부, 인트라 예측 모드의 각도, 성분 타입(휘도, 색차) 등을 의미할 수 있다. 또는, 상기 개수는, 부호화 장치에서 부호화되어 시그날링될 수도 있다. 상기 시그날링은, 비디오 시퀀스, 픽쳐, 슬라이스, 타일 또는 소정의 조각 영역(e.g., CTU row, CTU, CU, PU 등) 중 적어도 하나의 레벨에서 수행될 수 있다.
상기 MPM은, (A) 전술한 이웃 블록 간의 인트라 예측 모드의 동일 여부, (B) 이웃 블록의 인트라 예측 모드가 방향성 모드인지 여부, (C) 제1 이웃 블록의 인트라 예측 모드가 제2 이웃 블록의 인트라 예측 모드보다 큰지 여부, (D) 이웃 블록 간의 인트라 예측 모드 간의 차이가 소정의 임계값과 동일한지 여부, 또는 (E) 현재 블록의 인트라 예측을 위한 참조 라인의 위치 중 적어도 하나에 기초하여 결정될 수 있다. 상기 임계값은, 1 내지 (NumIntraAngMode-1) 범위에 속하는 임의의 자연수일 수 있다. NumIntraAngMode는, 부호화/복호화 장치에 기-정의된 방향성 모드의 전체 개수를 의미하며, 이는 65개일 수 있다.
상기 MPM은, 하나 또는 그 이상의 이웃 블록의 인트라 예측 모드, 이웃 블록의 인트라 예측 모드에 n값을 가산하거나 감산하여 유도된 모드, 또는 디폴트 모드(default mode) 중 적어도 하나로 구성될 수 있다. 여기서, n값은, 1, 2, 3 또는 그 이상의 정수일 수 있다. n값은, 전술한 (A) 내지 (D) 중 적어도 하나에 기초하여 가변적으로 결정될 수 있다. 상기 디폴트 모드는, 플래너 모드(planar mode) 또는 DC 모드 중 적어도 하나를 포함할 수 있다.
이하, 설명의 편의를 위해, 2개의 이웃 블록 즉, 상단 블록과 좌측 블록을 이용하여, 6개의 MPM을 결정하는 방법을 살펴보도록 한다. 상단 블록의 인트라 예측 모드와 좌측 블록의 인트라 예측 모드를 각각 intraPredModeA, intraPredModeL라 부르기로 한다.
1. intraPredModeL와 intraPredModeA가 동일한 경우
현재 블록의 MPM은, intraPredModeL, 디폴트 모드, intraPredModeL에서 1을 감산하여 유도된 모드, intraPredModeL에 1을 가산하여 유도된 모드 및 intraPredModeL에 2를 가산하거나 감산하여 유도된 모드를 포함할 수 있다. 상기 MPM에는 소정의 우선순위에 기초하여 인덱스가 할당될 수 있다. 예를 들어, 아래 표 1과 같이 MPM 각각에 인덱스가 할당될 수 있다. 다만, 본 발명의 우선순위는 표 1에 한정되지 아니하며, 후보 모드 리스트에서 MPM의 위치는 표 1과 상이할 수 있다.
mpm[0] intraPredModeL
mpm[1] PLANAR
mpm[2] DC
mpm[3] 2 + ((intraPredModeL + 62)%65)
mpm[4] 2 + ((intraPredModeL - 1)%65)
mpm[5] 2 + ((intraPredModeL + 61)%65)
2. intraPredModeL와 intraPredModeA가 상이한 경우(1) intraPredModeL와 intraPredModeA 둘다 방향성 모드이고, intraPredModeL가 intraPredModeA보다 크며, intraPredModeL와 intraPredModeA 간의 차이가 1 또는 64가 아닌 경우
현재 블록의 MPM은, intraPredModeL, intraPredModeA, 디폴트 모드, intraPredModeL에서 1을 감산하여 유도된 모드 및 intraPredModeL에 1을 가산하여 유도된 모드를 포함할 수 있다. 상기 MPM에는 소정의 우선순위에 기초하여 인덱스가 할당될 수 있다. 예를 들어, 아래 표 2와 같이 MPM 각각에 인덱스가 할당될 수 있다. 다만, 본 발명의 우선순위는 표 2에 한정되지 아니하며, 후보 모드 리스트에서 MPM의 위치는 표 2와 상이할 수 있다.
mpm[0] intraPredModeL
mpm[1] intraPredModeA
mpm[2] PLANAR
mpm[3] DC
mpm[4] 2 + ((intraPredModeL + 62)%65)
mpm[5] 2 + ((intraPredModeL - 1)%65)
(2) intraPredModeL와 intraPredModeA 둘다 방향성 모드이고, intraPredModeL가 intraPredModeA보다 크며, intraPredModeL와 intraPredModeA 간의 차이가 1 또는 64인 경우현재 블록의 MPM은, intraPredModeL, intraPredModeA, 디폴트 모드를 포함할 수 있다. 현재 블록의 MPM은, intraPredModeL에 1을 감산하여 유도된 모드, intraPredModeL에 1을 가산하여 유도된 모드, intraPredModeL에서 2를 감산하여 유도된 모드 또는 intraPredModeL에 2를 가산하여 유도된 모드 중 적어도 하나를 더 포함할 수 있다. 상기 intraPredModeL에 1을 감산 혹은 가산하여 유도된 모드가 intraPredModeA와 동일한 경우, 이는 MPM에서 제외될 수 있다. 이 경우, 상기 intraPredModeL에 2를 감산 혹은 가산하여 유도된 모드가 MPM으로 추가/포함될 수 있다.
상기 MPM에는 소정의 우선순위에 기초하여 인덱스가 할당될 수 있다. 예를 들어, 아래 표 3과 같이 MPM 각각에 인덱스가 할당될 수 있다. 다만, 본 발명의 우선순위는 표 3에 한정되지 아니하며, 후보 모드 리스트에서 MPM의 위치는 표 3과 상이할 수 있다.
mpm[0] intraPredModeL
mpm[1] intraPredModeA
mpm[2] PLANAR
mpm[3] DC
mpm[4] 2 + ((intraPredModeL + 61)%65)
mpm[5] 2 + ((intraPredModeL)%65)
(3) intraPredModeL와 intraPredModeA 둘다 방향성 모드이고, intraPredModeL가 intraPredModeA보다 작으며, intraPredModeL와 intraPredModeA 간의 차이가 1 또는 64가 아닌 경우현재 블록의 MPM은, intraPredModeL, intraPredModeA, 디폴트 모드, intraPredModeA에서 1을 감산하여 유도된 모드 및 intraPredModeA에 1을 가산하여 유도된 모드를 포함할 수 있다. 상기 MPM에는 소정의 우선순위에 기초하여 인덱스가 할당될 수 있다. 예를 들어, 아래 표 4와 같이 MPM 각각에 인덱스가 할당될 수 있다. 다만, 본 발명의 우선순위는 표 4에 한정되지 아니하며, 후보 모드 리스트에서 MPM의 위치는 표 4와 상이할 수 있다.
mpm[0] intraPredModeL
mpm[1] intraPredModeA
mpm[2] PLANAR
mpm[3] DC
mpm[4] 2 + ((intraPredModeA + 62)%65)
mpm[5] 2 + ((intraPredModeA - 1)%65)
(4) intraPredModeL와 intraPredModeA 둘다 방향성 모드이고, intraPredModeL가 intraPredModeA보다 작으며, intraPredModeL와 intraPredModeA 간의 차이가 1 또는 64인 경우현재 블록의 MPM은, intraPredModeL, intraPredModeA, 디폴트 모드를 포함할 수 있다. 현재 블록의 MPM은, intraPredModeA에 1을 감산하여 유도된 모드, intraPredModeA에 1을 가산하여 유도된 모드, intraPredModeA에서 2를 감산하여 유도된 모드 또는 intraPredModeA에 2를 가산하여 유도된 모드 중 적어도 하나를 더 포함할 수 있다. 상기 intraPredModeA에 1을 감산 혹은 가산하여 유도된 모드가 intraPredModeL와 동일한 경우, 이는 MPM에서 제외될 수 있다. 이 경우, 상기 intraPredModeA에 2를 감산 혹은 가산하여 유도된 모드가 MPM으로 추가/포함될 수 있다.
상기 MPM에는 소정의 우선순위에 기초하여 인덱스가 할당될 수 있다. 예를 들어, 아래 표 5와 같이 MPM 각각에 인덱스가 할당될 수 있다. 다만, 본 발명의 우선순위는 표 5에 한정되지 아니하며, 후보 모드 리스트에서 MPM의 위치는 표 5와 상이할 수 있다.
mpm[0] intraPredModeL
mpm[1] intraPredModeA
mpm[2] PLANAR
mpm[3] DC
mpm[4] 2 + ((intraPredModeA + 61)%65)
mpm[5] 2 + ((intraPredModeA)%65)
(5) intraPredModeL와 intraPredModeA 중 어느 하나가 방향성 모드이고 다른 하나는 DC 모드인 경우현재 블록의 MPM은, intraPredModeL 또는 intraPredModeA 중 방향성 모드(intraPredModeX), 디폴트 모드, intraPredModeX에서 1을 감산하여 유도된 모드 및 intraPredModeX에 1을 가산하여 유도된 모드 및 intraPredModeX에서 2를 감산 혹은 가산하여 유도된 모드를 포함할 수 있다.
상기 MPM에는 소정의 우선순위에 기초하여 인덱스가 할당될 수 있다. 예를 들어, 아래 표 6과 같이 MPM 각각에 인덱스가 할당될 수 있다. 다만, 본 발명의 우선순위는 표 6에 한정되지 아니하며, 후보 모드 리스트에서 MPM의 위치는 표 6과 상이할 수 있다. 예를 들어, DC가 intraPredModeX보다 높은 우선순위를 가질 수 있다. PLANAR가 DC보다 높은 우선순위를 가질 수 있다. PLANAR가 intraPredModeX보다 높은 우선순위를 가질 수 있다.
mpm[0] intraPredModeX
mpm[1] DC
mpm[2] PLANAR
mpm[3] 2 + ((intraPredModeX + 62)%65)
mpm[4] 2 + ((intraPredModeX - 1)%65)
mpm[5] 2 + ((intraPredModeX + 61)%65)
(6) intraPredModeL와 intraPredModeA 중 어느 하나가 방향성 모드이고 다른 하나는 플래너 모드인 경우현재 블록의 MPM은, intraPredModeL 또는 intraPredModeA 중 방향성 모드(intraPredModeX), 디폴트 모드, intraPredModeX에서 1을 감산하여 유도된 모드 및 intraPredModeX에 1을 가산하여 유도된 모드 및 intraPredModeX에서 2를 감산 혹은 가산하여 유도된 모드를 포함할 수 있다.
상기 MPM에는 소정의 우선순위에 기초하여 인덱스가 할당될 수 있다. 예를 들어, 아래 표 7과 같이 MPM 각각에 인덱스가 할당될 수 있다. 다만, 본 발명의 우선순위는 표 7에 한정되지 아니하며, 후보 모드 리스트에서 MPM의 위치는 표 7과 상이할 수 있다. 예를 들어, PLANAR가 intraPredModeX보다 높은 우선순위를 가질 수 있다. DC가 PLANAR보다 높은 우선순위를 가질 수 있다. DC가 intraPredModeX보다 높은 우선순위를 가질 수 있다.
mpm[0] intraPredModeX
mpm[1] PLANAR
mpm[2] DC
mpm[3] 2 + ((intraPredModeX + 62)%65)
mpm[4] 2 + ((intraPredModeX - 1)%65)
mpm[5] 2 + ((intraPredModeX + 61)%65)
(7) intraPredModeL와 intraPredModeA 둘다 비방향성 모드인 경우현재 블록의 MPM은, 디폴트 모드, 수평 모드(intraPredModeH), 수직 모드(intraPredModeV)를 포함할 수 있다. 또한, 현재 블록의 MPM은, intraPredModeH에서 1을 감산 혹은 가산하여 유도된 모드 또는 intraPredModeV에서 1을 감산 혹은 가산하여 유도된 모드 중 적어도 하나를 더 포함할 수 있다.
상기 MPM에는 소정의 우선순위에 기초하여 인덱스가 할당될 수 있다. 예를 들어, 아래 표 8과 같이 MPM 각각에 인덱스가 할당될 수 있다. 다만, 본 발명의 우선순위는 표 8에 한정되지 아니하며, 후보 모드 리스트에서 MPM의 위치는 표 8과 상이할 수 있다.
mpm[0] PLANAR
mpm[1] DC
mpm[2] 2 + ((intraPredModeH + 62)%65)
mpm[3] 2 + ((intraPredModeH - 1)%65)
mpm[4] 2 + ((intraPredModeV + 62)%65)
mpm[5] 2 + ((intraPredModeV - 1)%65)
한편, 현재 블록의 MPM은, 후술할 참조 영역에 기초하여 결정될 수도 있다. 현재 블록의 참조 영역이 제k 참조 라인인 경우, 비방향성 모드가 사용되고, 그렇지 않은 경우, 비방향성 모드가 사용되지 않도록 제한될 수 있다. 현재 블록이 제k 참조 라인이 아닌 다른 참조 라인을 사용하는 것이 허용되는 경우, 현재 블록의 MPM에 비방향성 모드가 포함되지 않을 수 있다. k는 1, 2, 3, 또는 4일 수 있다.이 경우, 전술한 (1) 내지 (7)의 실시예에서, MPM에 속한 비방향성 모드는 소정의 인트라 예측 모드로 대체될 수 있다. 여기서, 소정의 인트라 예측 모드는, 이웃 블록의 인트라 예측 모드 또는 이웃 블록의 인트라 예측 모드에 n값을 가산/감산하여 유도된 모드 중 적어도 하나일 수 있다. n은 1, 2, 3 또는 그 이상의 정수일 수 있다. 상기 가산/감산 과정은, 후보 모드 리스트가 6개의 MPM으로 구성될 때까지 n값을 1씩 증가시키면서 반복적으로 수행될 수 있다. 다만, 상기 6개는 일예에 불과하며, 후보 모드 리스트를 구성하는 MPM의 최대 개수는, 3, 4, 5, 7, 8, 9 또는 그 이상일 수 있다. 상기 최대 개수는 부호화기/복호화기에 기-약속된 고정된 값일 수도 있고, 부호화 파라미터(e.g., 블록 속성 관련 정보, 참조 라인의 위치 등)에 기초하여 가변적으로 결정될 수도 있다.
상기 제1 플래그가 제2 값인 경우(즉, 현재 블록의 인트라 예측 모드가 제1 후보군으로부터 유도되지 않는 경우), 복호화 장치는 비트스트림으로부터 잔여 모드 정보(remaining mode)를 획득할 수 있다. 복호화 장치는, 잔여 모드 정보에 기초하여 현재 블록의 인트라 예측 모드를 결정할 수 있다.
상기 잔여 모드 정보는, 부호화/복호화 장치에 기-정의된 인트라 예측 모드에서 전술한 MPM을 제외한 나머지 모드(이하, non-MPM이라 함)를 기반으로 부호화된 것일 수 있다. 상기 기-정의된 인트라 예측 모드는, 2개의 비방향성 모드(플래너 모드, DC 모드)와 65개의 방향성 모드를 포함할 수 있다. 예를 들어, 부호화 장치는, 상기 non-MPM 중에서 현재 블록의 인트라 예측 모드에 해당하는 모드를 부호화하여 잔여 모드 정보를 생성할 수 있다.
상기 부호화에서, 잔여 모드 정보는 truncated binary coding 방식에 기반하여 부호화될 수 있다. 67개의 인트라 예측 모드와 6개의 MPM이 이용됨을 가정하면, 아래 테이블과 같이, 61개의 non-MPM에서, 0~2의 인덱스를 가진 인트라 예측 모드는 5 비트로 부호화되고, 3~60의 인덱스를 가진 인트라 예측 모드는 6 비트로 부호화될 수 있다. 다만, 아래 테이블에서, 비트수와 5비트/6비트로 부호화되는 인트라 예측 모드의 개수는, 기-정의된 인트라 예측 모드의 개수 또는 MPM의 개수 중 적어도 하나에 기초하여 가변적으로 결정될 수 있다. 또한, 잔여 모드 정보는, FLC(fixed length code), VLC(variable length code) 등에 기초하여 부호화될 수도 있다.
Figure PCTKR2019017479-appb-I000001
또는, 상기 non-MPM은, 적어도 2개 이상의 그룹으로 분류될 수 있다. 예를 들어, 상기 non-MPM은 제2 후보군과 제3 후보군을 포함할 수 있다. 현재 블록의 인트라 예측 모드가 제1 후보군으로부터 유도되지 않는 경우, 제2 후보군 또는 제3 후보군 중 어느 하나를 선택적으로 이용하여, 현재 블록의 인트라 예측 모드를 유도할 수 있다.
여기서, 제2 후보군은 MPM에 기초하여 유도된 모드로 구성되고, 제3 후보군은 non-MPM에서 제2 후보군을 제외한 나머지 모드로 구성될 수 있다. 또는, 제2 후보군은, 이웃 블록의 인트라 예측 모드 및/또는 이웃 블록의 인트라 예측 모드에 이웃한 모드에 기초하여 구성될 수 있다. 즉, 제2 후보군은 전술한 제1 후보군과 동일/유사한 방법으로 유도될 수 있고, 다만 제2 후보군은 제1 후보군에 속한 MPM을 포함하지 않을 수 있다. 예를 들어, 제2 후보군은, 이웃 블록의 인트라 예측 모드와의 모드값 차이가 +1, -1, +2, -2, +3, -3, .., +L, -L인 모드들 중 적어도 하나를 포함할 수 있으며, 이하 제2 후보군이 5개의 후보 모드로 구성된 경우를 가정하여 살펴보기로 한다. 다만, 이에 한정되지 않으며, 제2 후보군에 속한 후보 모드의 개수는, 1, 2, 3, 4, 6 또는 그 이상의 정수일 수 있다.
구체적으로, 좌측 블록의 인트라 예측 모드(candIntraPredModeA)와 상단 블록의 인트라 예측 모드(candIntraPredModeB) 간의 동일 여부 또는 candIntraPredModeA와 candIntraPredModeB가 비방향성 모드인지 여부 중 적어도 하나를 고려하여 제2 후보군이 결정될 수 있다.
예를 들어, candIntraPredModeA와 candIntraPredModeB이 동일하고, candIntraPredModeA가 비방향성 모드가 아닌 경우, 제2 후보군은 candIntraPredModeA, (candIntraPredModeA-n), (candIntraPredModeA+n) 또는 비방향성 모드 중 적어도 하나를 포함할 수 있다. 여기서, n은 1, 2, 또는 그 이상의 정수일 수 있다. 상기 비방향성 모드는, Planar 모드 또는 DC 모드 중 적어도 하나를 포함할 수 있다. 일예로, 제2 후보군의 후보 모드는 다음 표 9와 같이 결정될 수 있다. 표 9의 index는 후보 모드의 위치 또는 우선순위를 특정하나, 이에 한정되지 아니한다.
index 후보 모드
0 candIntraPredModeA
1 2 + ( ( candIntraPredModeA + 61 ) % 64 )
2 2 + ( ( candIntraPredModeA - 1 ) % 64 )
3 2 + ( ( candIntraPredModeA + 60 ) % 64 )
4 2 + ( candIntraPredModeA % 64 )
또는, candIntraPredModeA와 candIntraPredModeB가 동일하지 않고, candIntraPredModeA와 candIntraPredModeB 둘다 비방향성 모드가 아닌 경우, 제2 후보군은 candIntraPredModeA, candIntraPredModeB, (maxAB-n), (maxAB+n), (minAB-n), (minAB+n) 또는 비방향성 모드 중 적어도 하나를 포함할 수 있다. 여기서, maxAB와 minAB은 candIntraPredModeA와 candIntraPredModeB 중 최대값과 최소값을 각각 의미하고, n은 1, 2, 또는 그 이상의 정수일 수 있다. 상기 비방향성 모드는, Planar 모드 또는 DC 모드 중 적어도 하나를 포함할 수 있다. 일예로, candIntraPredModeA와 candIntraPredModeB의 차이값(D)에 기초하여, 제2 후보군의 후보 모드는 다음 표 10과 같이 결정될 수 있다.
Index 후보 모드(D = 1) 후보 모드(D = 2) 후보 모드(D >= 62) 후보 모드(Otherwise)
0 candIntraPredModeA candIntraPredModeA candIntraPredModeA candIntraPredModeA
1 candIntraPredModeB candIntraPredModeB candIntraPredModeB candIntraPredModeB
2 2 + ( ( minAB + 61 ) % 64 ) 2 + ( ( minAB - 1 ) % 64 ) 2 + ( ( minAB - 1 ) % 64 ) 2 + ( ( minAB + 61 ) % 64 )
3 2 + ( ( maxAB - 1 ) % 64 ) 2 + ( ( minAB + 61 ) % 64 ) 2 + ( ( maxAB + 61 ) % 64 ) 2 + ( ( minAB - 1 ) % 64 )
4 2 + ( ( minAB + 60 ) % 64 ) 2 + ( ( maxAB - 1 ) % 64 ) 2 + ( minAB % 64 ) 2 + ( ( maxAB + 61 ) % 64 )
또는, candIntraPredModeA와 candIntraPredModeB가 동일하지 않고, candIntraPredModeA와 candIntraPredModeB 중 어느 하나만이 비방향성 모드인 경우, 제2 후보군은 maxAB, (maxAB-n), (maxAB+n) 또는 비방향성 모드 중 적어도 하나를 포함할 수 있다. 여기서, maxAB은 candIntraPredModeA와 candIntraPredModeB 중 최대값을 의미하고, n은 1, 2, 또는 그 이상의 정수일 수 있다. 상기 비방향성 모드는, Planar 모드 또는 DC 모드 중 적어도 하나를 포함할 수 있다. 일예로, 제2 후보군의 후보 모드는 다음 표 11과 같이 결정될 수 있다. 표 11의 index는 후보 모드의 위치 또는 우선순위를 특정하나, 이에 한정되지 아니한다.
index 후보 모드
0 maxAB
1 2 + ( ( maxAB + 61 ) % 64 )
2 2 + ( ( maxAB - 1 ) % 64 )
3 2 + ( ( maxAB + 60 ) % 64 )
4 2 + ( maxAB % 64 )
또는, candIntraPredModeA와 candIntraPredModeB이 동일하지 않고, candIntraPredModeA와 candIntraPredModeB 둘다 비방향성 모드인 경우, 제2 후보군은 비방향성 모드, 수직 모드, 수평 모드, (수직 모드-m), (수직 모드+m), (수평 모드-m) 또는 (수평 모드+m) 중 적어도 하나를 포함할 수 있다. 여기서, m은 1, 2, 3, 4 또는 그 이상의 정수일 수 있다. 상기 비방향성 모드는, Planar 모드 또는 DC 모드 중 적어도 하나를 포함할 수 있다. 일예로, 제2 후보군의 후보 모드는 다음 표 12와 같이 결정될 수 있다. 표 12의 index는 후보 모드의 위치 또는 우선순위를 특정하나, 이에 한정되지 아니한다. 예를 들어, 수평 모드에 index 1이 할당되거나, 가장 큰 index가 할당될 수 있다. 또한, 후보 모드는, 대각선 모드(e.g., 모드 2, 모드 34, 모드 66), (대각선 모드-m) 또는 (대각선 모드+m) 중 적어도 하나를 포함할 수도 있다.
Index 후보 모드
0 INTRA_DC
1 수직 모드
2 수평 모드
3 (수직 모드-4)
4 (수직 모드+4)
전술한 바와 같이, 제2 후보군은 복수의 후보 모드를 포함할 수 있다. 복수의 후보 모드 중 어느 하나를 특정하는 제1 잔여 모드 정보가 시그날링될 수 있다. 시그날링된 제1 잔여 모드 정보에 의해 특정된 후보 모드가 현재 블록의 인트라 예측 모드로 설정될 수 있다.또는, 제1 및 제2 후보군이 이용되지 않는 경우, 제2 잔여 모드 정보가 시그날링될 수 있다. 제2 잔여 모드 정보는, 부호화/복호화 장치에 기-정의된 인트라 예측 모드 중에서 제1 및 제2 후보군에 속한 후보 모드를 제외한 나머지 모드 중 어느 하나를 특정할 수 있다. 제2 잔여 모드 정보에 의해 특정된 후보 모드가 현재 블록의 인트라 예측 모드로 설정될 수 있다.
전술한 제2 후보군을 결정하는 방법에 대해서는 도 4 및 도 5를 참조하여 살펴보기로 한다.
상기 잔여 모드 정보는, non-MPM에서 제2 후보군을 제외한 나머지 모드를 기반으로 부호화되거나, 제2 후보군 또는 제3 후보군 중 적어도 하나가 재배열된 non-MPM을 기반으로 부호화될 수 있으며, 이에 대해서는 도 6 및 도 7을 참조하여 살펴 보기로 한다.
도 3을 참조하면, 현재 블록의 인트라 예측을 위한 참조 영역을 결정할 수 있다(S310).
상기 참조 영역은, 현재 블록에 공간적으로 인접한 주변 영역으로서, 현재 블록 이전에 기-복원된 영역을 의미할 수 있다. 상기 참조 영역은, 하나 또는 그 이상의 참조 라인을 포함할 수 있다. 예를 들어, 참조 영역은, 제1 참조 라인, 제2 참조 라인, 제3 참조 라인 또는 제4 참조 라인 중 적어도 하나를 포함할 수 있다. 여기서, 제1 참조 라인은 현재 블록의 좌측 및/또는 상단에 인접한 참조 라인을 의미하며, 제2 참조 라인은 제1 참조 라인의 좌측 및/또는 상단에 인접한 참조 라인을 의미할 수 있다. 제3 참조 라인은 제2 참조 라인의 좌측 및/또는 상단에 인접한 참조 라인을 의미하고, 제4 참조 라인은 제3 참조 라인의 좌측 및/또는 상단에 인접한 참조 라인을 의미할 수 있다.
현재 블록은, 소정의 개수의 참조 라인을 이용하여 인트라 예측될 수 있다. 참조 라인의 개수는, 1) 부호화/복호화 장치에 기-약속된 고정된 개수일 수 있고, 2) 부호화 파라미터에 기초하여 복호화 장치에서 유도된 개수일 수도 있으며, 3) 부호화 장치에서 상기 개수에 관한 정보가 부호화되어 시그날링될 수도 있다. 상기 개수는, 전술한 1) 내지 3)의 실시예 중 어느 하나를 이용하여 결정될 수도 있고, 1) 내지 3)의 실시예 중 적어도 2개의 조합에 기초하여 유도될 수도 있다. 상기 결정된 참조 라인의 개수는, 0개, 1개, 2개, 3개 또는 4개일 수 있다.
상기 부호화 파라미터는, 블록 속성에 관한 정보를 포함할 수 있으며, 이는 전술한 바와 같다. 여기서, 블록 속성은 위치, 크기, 형태, 너비와 높이의 비율(ratio), 너비와 높이의 길이값, 분할 기법, 분할 뎁스, 인트라 예측 모드의 값, 인트라 예측 모드가 방향성 모드인지 여부, 인트라 예측 모드의 각도, 성분 타입(휘도, 색차) 등을 의미할 수 있다.
일예로, 현재 블록의 위치가 영상 내 경계에 접해있는지 여부가 고려될 수 있다. 여기서, 경계(boundary)는, 조각 영상 간의 경계를 의미하며, 조각 영상은 전술한 바와 같이 슬라이스, 타일(tile), CTU row, CTU 등일 수 있다. 만일, 현재 블록이 영상 내 경계에 접해있는 경우, 현재 블록의 상단 참조 영역은 p개의 참조 라인만을 포함하도록 제한될 수 있다.
일예로, 참조 라인의 개수는, 현재 블록의 인트라 예측 모드와 소정의 제1 문턱값 간의 비교에 기초하여 결정될 수 있다. 예를 들어, 현재 블록의 인트라 예측 모드가 소정의 제1 문턱값보다 작은 경우에는 p개의 참조 라인이 이용되고, 현재 블록의 인트라 예측 모드가 소정의 제1 문턱값과 같거나 큰 경우에는 q개의 참조 라인이 이용될 수 있다. 상기 비교는, 모드 값과의 비교일 수도 있고, 인트라 예측 모드의 각도와의 비교일 수도 있다. 상기 제1 문턱값은, 부호화/복호화 장치에 기-정의된 값일 수 있다. 예를 들어, 제1 문턱값은, 플래너 모드, DC 모드, 수직 모드, 또는 수평 모드 중 적어도 하나에 관한 정보를 의미할 수 있다.
일예로, 참조 라인의 개수는, 현재 블록의 너비와 높이의 길이값에 기초하여 결정될 수 있다. 예를 들어, 현재 블록의 너비가 높이보다 큰 경우, 상단 참조 영역은 q개의 참조 라인을 포함하고, 좌측 참조 영역은 p개의 참조 라인을 포함할 수 있다. 또는, 현재 블록의 너비가 소정의 제2 문턱값보다 큰 경우, 상단 참조 영역은 q개의 참조 라인을 포함하고, 그렇지 않은 경우, 상단 참조 영역은 p개의 참조 라인을 포함할 수 있다. 전술한 p는 0, 1 또는 2이고, q는 1, 2, 3 또는 4일 수 있다. p는 q보다 작을 수 있다.
현재 블록은, 전술한 제1 내지 제4 참조 라인 중 하나 또는 그 이상의 참조 라인을 선택하여 인트라 예측을 수행할 수 있다. 이때, 참조 라인의 위치는, 1) 부호화/복호화 장치에 기-약속된 위치이거나, 2) 전술한 참조 라인의 개수 정보에 기초하여 복호화 장치에서 유도되거나, 3) 부호화 장치에서 참조 라인의 위치를 특정하는 정보(mrl_idx)가 부호화되어 시그날링될 수 있다. 상기 정보(mrl_idx)는, 참조 라인의 개수 정보 또는 전술한 블록 속성에 관한 정보 중 적어도 하나를 고려하여 시그날링될 수 있다. 상기 위치는, 전술한 1) 내지 3)의 실시예 중 어느 하나를 이용하여 결정될 수도 있고, 1) 내지 3)의 실시예 중 적어도 2개의 조합에 기초하여 결정될 수도 있다.
참조 라인이 현재 블록의 인트라 예측을 위해 비가용인 경우가 존재할 수 있다. 상기 비가용인 경우라 함은, 1) 해당 위치에 참조 라인이 존재하지 않는 경우, 2) 참조 라인이 현재 블록과 다른 조각 영상에 위치하는 경우, 3) 해당 위치의 참조 라인이 현재 블록 이후의 코딩 순서를 가지는 경우 등을 의미할 수 있다.
참조 라인이 비가용인 경우, 해당 위치의 참조 라인을 참조 영역에서 제외시킬 수 있다. 또는, 비가용인 참조 라인은, 가용인 참조 라인을 이용하여 대체될 수도 있다. 여기서, 가용인 참조 라인은, 비가용 참조 라인의 주변 샘플, 현재 블록의 주변 샘플 등을 포함할 수 있다. 여기서, 주변 샘플은, 좌측, 우측, 상단, 하단, 또는 대각 방향 중 적어도 하나에 이웃한 샘플을 의미할 수 있다.
도 3을 참조하면, 현재 블록의 인트라 예측 모드와 참조 영역을 이용하여, 현재 블록에 대해 인트라 예측을 수행할 수 있다(S320).
도 4 및 도 5는 본 발명이 적용되는 일실시예로서, 제2 후보군을 결정하는 방법을 도시한 것이다.
제2 후보군은, MPM에 소정의 m값을 감산/가산하는 연산을 통해 결정될 수 있다(실시예 1). 상기 연산은, 복수의 MPM에 대해서 각각 수행될 수 있다. MPM 중 플래너 모드 또는 DC 모드에 대해서는 상기 연산이 수행되지 않도록 제한될 수 있다. 여기서, m값은, 2, 3, 4 또는 그 이상의 정수일 수 있다. 상기 m값은 도 3에서 언급한 n값보다 클 수 있다.
전술한 감산/가산 연산은, MPM의 모드값과 기준 모드값 간의 비교 결과에기초하여 수행될 수 있다. 기준 모드값은, 모드 2, 모드 18(수평 모드), 모드 34(대각선 모드), 모드 50(수직 모드) 또는 모드 66을 의미할 수 있다. 본 명세서에서, 모드 A는 모드값이 A인 인트라 예측 모드를 의미할 수 있다.
예를 들어, MPM의 모드값이 기준 모드값보다 크거나 같은 경우, MPM에 소정의 m값을 감산하는 연산이 수행되고, 그렇지 않은 경우, MPM에 소정의 m값을 가산하는 연산이 수행될 수 있다. 역으로, MPM의 모드값이 기준 모드값보다 크거나 같은 경우, MPM에 소정의 m값을 가산하는 연산이 수행되고, 그렇지 않은 경우, MPM에 소정의 m값을 감산하는 연산이 수행될 수도 있다.
한편, 기준 모드값으로 i개가 이용될 수 있다. 여기서, i값은 1, 2, 3, 4 또는 5일 수 있다. 예를 들어, i값이 2인 경우, 기준 모드값은, 제1 기준 모드값과 제2 기준 모드값을 포함할 수 있다. 이때, 제1 기준 모드값은, 전술한 5개의 모드 중 어느 하나이며, 제2 기준 모드값은 5개의 모드 중 다른 하나일 수 있다.
일예로, 도 4(a)를 참조하면, MPM이 모드 34보다 큰 경우, 제2 후보군은 MPM의 모드값에서 32를 뺀 값에 대응하는 모드를 포함할 수 있다. 도 4(b)를 참조하면, MPM이 모드 34인 경우, 제2 후보군은 모드 2와 모드 66을 포함할 수 있다. MPM이 모드 34보다 작은 경우, 제2 후보군은 MPM의 모드값에서 32를 더한 값에 대응하는 모드를 포함할 수 있다.
제2 후보군은, MPM에 기초하여 유도된 모드 외에 이들의 이웃 모드를 더 포함할 수 있다(실시예 2). 이웃 모드는, MPM에 기초하여 유도된 모드에 1, 2, 3 또는 그 이상의 정수를 가산하거나 감산하여 결정될 수 있다.
제2 후보군은, MPM이 속한 영역의 위치를 기반으로 결정될 수도 있다(실시예 3). 부호화/복호화 장치에 기-정의된 인트라 예측 모드는 복수의 영역으로 분류될 수 있다. 설명의 편의를 위해, 도 5에서는 기-정의된 인트라 예측 모드가 4개의 영역으로 분류됨을 도시한다.
도 5를 참조하면, 제1 영역(R1)은 모드 2 내지 모드 17을 포함하고, 제2 영역(R2)은 모드 18 내지 모드 33을 포함하며, 제3 영역(R3)은 모드 34 내지 모드 49를 포함하고, 제4 영역(R4)은 모드 50 내지 모드 66을 포함할 수 있다.
제2 후보군은, MPM이 속한 영역에 인접한 영역의 인트라 예측 모드에 기초하여 결정될 수 있다. 예를 들어, MPM이 제1 영역에 속한 경우, 제2 후보군은 제2 영역 또는 제4 영역 중 적어도 하나로부터 결정될 수 있다. 이때, 제2 후보군은, 해당 영역에 속한 인트라 예측 모드 중 최소값, 최대값, 중앙값, 또는 기준 모드값에 기초하여 결정될 수 있다.
또는, 제2 후보군은, MPM이 속한 영역에 인접하지 않은 영역의 인트라 예측 모드에 기초하여 결정될 수 있다. 예를 들어, MPM이 제2 영역에 속한 경우, 제2 후보군은 제4 영역으로부터 결정될 수 있다. 또는, MPM이 제3 영역에 속한 경우, 제2 후보군은 제1 영역으로부터 결정될 수 있다. 이때, 제2 후보군은, 해당 영역에 속한 인트라 예측 모드 중 최소값, 최대값, 중앙값, 또는 기준 모드값에 기초하여 결정될 수 있다.
제2 후보군은, 전술한 실시예 1 내지 3 중 적어도 하나에 기초하여 결정될 수도 있고, 실시예 1 내지 3 중 적어도 2개의 조합에 기초하여 결정될 수도 있다.
한편, 상기 결정된 제2 후보군은, 앞서 결정된 MPM과 중복되는 모드를 포함할 수도 있다. 상기 MPM과 중복되는 모드는 제2 후보군에서 제거될 수 있다. 상기 제거 결과, 제2 후보군에 속한 인트라 예측 모드의 개수가 제2 후보군의 최대 개수(MaxNumNonMPM)보다 작을 수 있다. 이 경우, 전술한 실시예 2 또는 3에 따른 인트라 예측 모드가 제2 후보군에 추가될 수도 있다. 상기 추가는 제2 후보군에 속한 인트라 예측 모드의 개수가 MaxNumNonMPM와 동일할 때까지 반복적으로 수행될 수 있다. 상기 MaxNumNonMPM는, 부호화/복호화 장치에 기-약속된 고정된 개수일 수도 있고, 후보 모드 리스트에 속한 MPM의 개수에 기초하여 가변적으로 결정될 수도 있다.
도 6은 본 발명이 적용되는 일실시예로서, 제2 후보군 제거에 기반하여, 잔여 모드 정보를 부호화/복호화하는 방법에 관한 것이다.
부호화 장치는, non-MPM에서 제2 후보군을 제외한 나머지 모드(제3 후보군)에 기반하여, 잔여 모드 정보를 부호화할 수 있다.
상기 부호화에서, 잔여 모드 정보는 truncated binary coding 방식에 기반하여 부호화될 수 있다. 설명의 편의를 위해, 67개의 인트라 예측 모드, 6개의 MPM이 이용됨을 가정한다.
도 6을 참조하면, 제2 후보군의 개수가 4개인 경우, 제3 후보군의 개수는 57개이다. 제3 후보군에서, 0~6의 인덱스를 가진 인트라 예측 모드는 5 비트로 부호화되고, 7~56의 인덱스를 가진 인트라 예측 모드는 6 비트로 부호화될 수 있다.
Figure PCTKR2019017479-appb-I000002
또는, 제2 후보군의 개수가 5개인 경우, 제3 후보군의 개수는 56개이다. 제3 후보군에서, 0~7의 인덱스를 가진 인트라 예측 모드는 5 비트로 부호화되고, 8~55의 인덱스를 가진 인트라 예측 모드는 6 비트로 부호화될 수 있다.
Figure PCTKR2019017479-appb-I000003
또는, 제2 후보군의 개수가 13개인 경우, 제3 후보군의 개수는 48개이다. 제3 후보군에서, 0~15의 인덱스를 가진 인트라 예측 모드는 5 비트로 부호화되고, 16~47의 인덱스를 가진 인트라 예측 모드는 6 비트로 부호화될 수 있다.
Figure PCTKR2019017479-appb-I000004
다만, 전술한 실시예는 일예에 불과하며, 비트수와 5비트/6비트로 부호화되는 인트라 예측 모드의 개수는, 기-정의된 인트라 예측 모드의 개수, MPM의 개수 또는 제2 후보군의 개수 중 적어도 하나에 기초하여 가변적으로 결정될 수 있다. 또한, 잔여 모드 정보는, FLC(fixed length code), VLC(variable length code) 등에 기초하여 부호화될 수도 있다.
복호화 장치는, 비트스트림을 통해 잔여 모드 정보를 획득할 수 있다.
복호화 장치는, 후보 모드 리스트의 MPM을 오름차순으로 재정렬할 수 있다. 재정렬된 MPM과 잔여 모드 정보를 비교할 수 있다. 상기 비교 결과, 잔여 모드 정보가 MPM보다 크거나 같은 경우, 잔여 모드 정보에 1을 가산하는 제1 과정을 수행할 수 있다. 상기 제1 과정은, 재정렬된 MPM 각각에 대해서 순차적으로 수행될 수 있다. 또한, non-MPM의 제1 그룹에 속한 제2 후보군을 오름차순으로 재정렬할 수 있다. 재정렬된 제2 후보군과 상기 제1 과정을 통해 획득되는 모드값을 비교할 수 있다. 상기 비교 결과, 모드값이 제2 후보군보다 크거나 같은 경우, 모드값에 1을 가산하는 제2 과정을 수행할 수 있다. 상기 제2 과정은, 재정렬된 제2 후보군 각각에 대해서 순차적으로 수행될 수 있다. 복호화 장치는, 상기 제1 과정 및 제2 과정을 통해 획득된 모드값을 현재 블록의 인트라 예측 모드로 설정할 수 있다.
또는, 복호화 장치는, 후보 모드 리스트와 non-MPM의 제1 그룹을 조합하여하나의 리스트를 생성할 수도 있다. 상기 생성된 리스트는, MPM과 제2 후보군을 포함한 인트라 예측 모드로 구성되며, 이는 오름차순으로 재정렬될 수 있다. 재정렬된 인트라 예측 모드와 잔여 모드 정보를 비교할 수 있다. 상기 비교 결과, 잔여 모드 정보가 재정렬된 인트라 예측 모드보다 크거나 같은 경우, 잔여 모드 정보에 1을 가산하는 과정을 수행할 수 있다. 상기 과정은, 재정렬된 인트라 예측 모드 각각에 대해서 순차적으로 수행될 수 있다. 복호화 장치는, 상기 과정을 통해 획득된 모드값을 현재 블록의 인트라 예측 모드로 설정할 수 있다.
도 7은 본 발명이 적용되는 일실시예로서, 제2 후보군의 재배열에 기반하여 잔여 모드 정보를 부호화/복호화하는 방법에 관한 것이다.
부호화 장치는, 기-정의된 인트라 예측 모드에서 MPM을 제외한 나머지 모드(non-MPM)를 기반으로, 잔여 모드 정보를 부호화할 수 있다. 부호화 장치는, non-MPM 리스트의 제2 후보군을 소정의 위치에 재배열하고, 재배열된 non-MPM 리스트에 기반하여 잔여 모드 정보를 부호화할 수 있다. 상기 위치는, 부호화/복호화 장치에 기-약속된 위치일 수 있다.
도 7을 참조하면, 제2 후보군은 제3 후보군의 뒤에 위치하도록 재배열될 수 있다. 이를 통해, 제2 후보군에 해당하는 인트라 예측 모드는 제3 후보군보다 긴 코드워드(codeword)로 부호화될 수 있다.
또는, 제2 후보군은 제3 후보군의 앞에 위치하도록 재배열될 수 있다. 이를 통해, 제2 후보군에 해당하는 인트라 예측 모드는 제3 후보군보다 짧은 코드워드(codeword)로 부호화될 수 있다. 즉, 제2 후보군에 해당하는 인트라 예측 모드는 짧은 길이의 코드워드로 부호화하고, 제3 후보군은 상대적으로 긴 길이의 코드워드로 부호화할 수 있다.
전술한 실시예에서, 제3 후보군의 일부만이 선택적으로 제2 후보군의 앞 또는 뒤에 배열될 수도 있다. 예를 들어, 상기 제3 후보군의 일부는, 제3 후보군에 포함된 인트라 예측 모드 중에서 모드값이 짝수인 모드를 의미할 수도 있고, 모드값이 홀수인 모드를 의미할 수도 있다. 또는, 상기 제3 후보군의 일부는, 제3 후보군에 포함된 인트라 예측 모드 중에서 모드값이 k의 배수인 모드를 의미할 수도 있다. 여기서, k는 2, 3, 4, 5, 또는 그 이상의 정수일 수 있다. 본 발명에서는 제3 후보군에 속한 인트라 예측 모드의 모드값을 기준으로, 제3 후보군의 일부를 선택할 것을 개시하나, 이는 일예에 불과하다. 예를 들어, 제3 후보군을 i개의 인트라 예측 모드로 그룹핑할 수 있다. 제3 후보군의 일부는, 각 그룹에서 적어도 하나의 인트라 예측 모드를 선택하여 결정될 수 있다. 여기서, i는 2, 3, 4, 5, 6 또는 그 이상의 정수일 수 있다. 각 그룹에 속한 모드 중에서 최소값, 최대값, 또는 중간값에 해당하는 인트라 예측 모드가 선택될 수 있다. 또는, 제3 후보군의 일부는, 제3 후보군의 인트라 예측 모드와 제2 후보군의 인트라 예측 모드(혹은, MPM의 인트라 예측 모드) 간의 비교 결과에 기초하여 결정될 수도 있다. 예를 들어, 상기 모드값 간의 차이가 소정의 문턱값보다 작거나 같음을 만족하는 모드를 선택할 수 있다.
또는, non-MPM에서 제2 후보군을 제외한 나머지 모드 즉, 제3 후보군을 제거함으로써, 상기 non-MPM은 제2 후보군만을 포함하도록 재배열/재구성될 수 있다. 제3 후보군을 사용하지 않음으로써, non-MPM 리스트에 속한 인트라 예측 모드의 개수를 줄일 수 있고, 제2 후보군을 보다 짧은 길이의 코드워드로 부호화할 수 있다.
복호화 장치는, 비트스트림을 통해 잔여 모드 정보를 획득할 수 있다. 상기 잔여 모드 정보에 기반하여 현재 블록의 인트라 예측 모드를 복호화할 수 있다. 상기 복호화는, 제2 후보군의 개수, non-MPM 내 제2 후보군의 배열 위치 또는 잔여 모드 정보의 값 중 적어도 하나에 기초하여 수행될 수 있다. 또한, 상기 복호화는, 도 6에서 살펴본 MPM/제2 후보군의 오름차순 정렬 및 비교 과정을 더 포함할 수 있다.
일예로, 제2 후보군의 개수는 5개이며, 제2 후보군은 제3 후보군의 뒤에 위치하는 것으로 가정한다.
만일, 상기 잔여 모드 정보가 56 내지 60의 값을 가지는 경우, 복호화 장치는, 상기 잔여 모드 정보의 값에 대응하는 인트라 예측 모드를 결정할 수 있다. 상기 결정된 인트라 예측 모드가 현재 블록의 인트라 예측 모드로 설정될 수 있다.
반면, 상기 잔여 모드 정보가 0 내지 55의 값을 가지는 경우, 복호화 장치는, 후보 모드 리스트의 MPM을 오름차순으로 재정렬할 수 있다. 재정렬된 MPM과 잔여 모드 정보를 비교할 수 있다. 상기 비교 결과, 잔여 모드 정보가 MPM보다 크거나 같은 경우, 잔여 모드 정보에 1을 가산하는 제1 과정을 수행할 수 있다. 상기 제1 과정은, 재정렬된 MPM 각각에 대해서 순차적으로 수행될 수 있다. 또한, non-MPM의 제1 그룹에 속한 제2 후보군을 오름차순으로 재정렬할 수 있다. 재정렬된 제2 후보군과 상기 제1 과정을 통해 획득된 모드값을 비교할 수 있다. 상기 비교 결과, 모드값이 제2 후보군보다 크거나 같은 경우, 모드값에 1을 가산하는 제2 과정을 수행할 수 있다. 상기 제2 과정은, 재정렬된 제2 후보군 각각에 대해서 순차적으로 수행될 수 있다. 복호화 장치는, 상기 제1 과정 및 제2 과정을 통해 획득된 모드값을 현재 블록의 인트라 예측 모드로 설정할 수 있다.
또는, 복호화 장치는, 후보 모드 리스트와 non-MPM의 제1 그룹을 조합하여하나의 리스트를 생성할 수도 있다. 상기 생성된 리스트는, MPM과 제2 후보군을 포함한 인트라 예측 모드로 구성되며, 이는 오름차순으로 재정렬될 수 있다. 재정렬된 인트라 예측 모드와 잔여 모드 정보를 비교할 수 있다. 상기 비교 결과, 잔여 모드 정보가 재정렬된 인트라 예측 모드보다 크거나 같은 경우, 잔여 모드 정보에 1을 가산하는 과정을 수행할 수 있다. 상기 과정은, 재정렬된 인트라 예측 모드 각각에 대해서 순차적으로 수행될 수 있다. 복호화 장치는, 상기 과정을 통해 획득된 모드값을 현재 블록의 인트라 예측 모드로 설정할 수 있다.
일예로, 제2 후보군의 개수는 5개이며, 제2 후보군은 제3 후보군의 앞에 위치하는 것으로 가정한다.
만일, 상기 잔여 모드 정보가 0 내지 4의 값을 가지는 경우, 복호화 장치는, 제2 후보군 중에서 잔여 모드 정보의 값에 대응하는 인트라 예측 모드를 결정할 수 있다. 상기 결정된 인트라 예측 모드가 현재 블록의 인트라 예측 모드로 설정될 수 있다.
반면, 상기 잔여 모드 정보가 5 내지 60의 값을 가지는 경우, 복호화 장치는, 후보 모드 리스트의 MPM을 오름차순으로 재정렬할 수 있다. 재정렬된 MPM과 잔여 모드 정보를 비교할 수 있다. 상기 비교 결과, 잔여 모드 정보가 MPM보다 크거나 같은 경우, 잔여 모드 정보에 1을 가산하는 제1 과정을 수행할 수 있다. 상기 제1 과정은, 재정렬된 MPM 각각에 대해서 순차적으로 수행될 수 있다. 또한, non-MPM의 제1 그룹에 속한 제2 후보군을 오름차순으로 재정렬할 수 있다. 재정렬된 제2 후보군과 상기 제1 과정을 통해 획득된 모드값을 비교할 수 있다. 상기 비교 결과, 모드값이 제2 후보군보다 크거나 같은 경우, 모드값에 1을 가산하는 제2 과정을 수행할 수 있다. 상기 제2 과정은, 재정렬된 제2 후보군 각각에 대해서 순차적으로 수행될 수 있다. 복호화 장치는, 상기 제1 과정 및 제2 과정을 통해 획득된 모드값을 현재 블록의 인트라 예측 모드로 설정할 수 있다.
또는, 복호화 장치는, 후보 모드 리스트와 non-MPM의 제1 그룹을 조합하여 하나의 리스트를 생성할 수도 있다. 상기 생성된 리스트는, MPM과 제2 후보군을 포함한 인트라 예측 모드로 구성되며, 이는 오름차순으로 재정렬될 수 있다. 재정렬된 인트라 예측 모드와 잔여 모드 정보를 비교할 수 있다. 상기 비교 결과, 잔여 모드 정보가 재정렬된 인트라 예측 모드보다 크거나 같은 경우, 잔여 모드 정보에 1을 가산하는 과정을 수행할 수 있다. 상기 과정은, 재정렬된 인트라 예측 모드 각각에 대해서 순차적으로 수행될 수 있다. 복호화 장치는, 상기 과정을 통해 획득된 모드값을 현재 블록의 인트라 예측 모드로 설정할 수 있다.
본 개시의 예시적인 방법들은 설명의 명확성을 위해서 동작의 시리즈로 표현되어 있지만, 이는 단계가 수행되는 순서를 제한하기 위한 것은 아니며, 필요한 경우에는 각각의 단계가 동시에 또는 상이한 순서로 수행될 수도 있다. 본 개시에 따른 방법을 구현하기 위해서, 예시하는 단계에 추가적으로 다른 단계를 포함하거나, 일부의 단계를 제외하고 나머지 단계를 포함하거나, 또는 일부의 단계를 제외하고 추가적인 다른 단계를 포함할 수도 있다.
본 개시의 다양한 실시 예는 모든 가능한 조합을 나열한 것이 아니고 본 개시의 대표적인 양상을 설명하기 위한 것이며, 다양한 실시 예에서 설명하는 사항들은 독립적으로 적용되거나 또는 둘 이상의 조합으로 적용될 수도 있다.
또한, 본 개시의 다양한 실시 예는 하드웨어, 펌웨어(firmware), 소프트웨어, 또는 그들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 하나 또는 그 이상의 ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), FPGAs(Field Programmable Gate Arrays), 범용 프로세서(general processor), 컨트롤러, 마이크로 컨트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다.
본 개시의 범위는 다양한 실시 예의 방법에 따른 동작이 장치 또는 컴퓨터 상에서 실행되도록 하는 소프트웨어 또는 머신-실행가능한 명령들(예를 들어, 운영체제, 애플리케이션, 펌웨어(firmware), 프로그램 등), 및 이러한 소프트웨어 또는 명령 등이 저장되어 장치 또는 컴퓨터 상에서 실행 가능한 비-일시적 컴퓨터-판독가능 매체(non-transitory computer-readable medium)를 포함한다.
본 발명은 비디오 신호를 부호화/복호화하기 위해 이용될 수 있다.

Claims (15)

  1. 비트스트림으로부터 플래그를 획득하는 단계; 여기서, 상기 플래그는, 현재 블록의 인트라 예측 모드를 유도하기 위해 이용되는 소정의 후보군을 지시함,
    상기 플래그를 기반으로, 상기 현재 블록의 인트라 예측 모드에 관한 후보군을 결정하는 단계;
    상기 결정된 후보군을 기반으로, 상기 현재 블록의 인트라 예측 모드를 유도하는 단계; 및
    상기 유도된 인트라 예측 모드 및 소정의 참조 영역을 기반으로, 상기 현재 블록에 대해 인트라 예측을 수행하는 단계를 포함하되,
    상기 후보군은, 제1 후보군 또는 제2 후보군으로 결정되고,
    상기 제1 후보군은, 디폴트 모드로 구성되고,
    상기 제2 후보군은, 상기 현재 블록에 인접한 이웃 블록의 인트라 예측 모드를 이용하여 구성되는, 비디오 복호화 방법.
  2. 제1항에 있어서,
    상기 디폴트 모드는, DC 모드 또는 Planar 모드 중 적어도 하나를 포함하는, 비디오 복호화 방법.
  3. 제1항에 있어서,
    상기 제2 후보군에 속한 적어도 하나의 후보 모드는, 상기 이웃 블록의 인트라 예측 모드에 n 값을 가산 또는 감산하여 유도되고,
    n은 2보다 크거나 같은 자연수인, 비디오 복호화 방법.
  4. 제3항에 있어서,
    상기 제2 후보군에 속한 후보 모드의 개수는 5개인, 비디오 복호화 방법.
  5. 제4항에 있어서,
    상기 제2 후보군은, 상기 제1 그룹에 포함된 디폴트 모드를 포함하지 않는, 비디오 복호화 방법.
  6. 현재 블록의 인트라 예측 모드를 결정하는 단계;
    상기 현재 블록의 인트라 예측 모드가 속한 후보군을 지시하기 위한 플래그를 부호화하는 단계;
    상기 현재 블록의 인트라 예측 모드 및 소정의 참조 영역을 기반으로, 상기 현재 블록에 대해 인트라 예측을 수행하는 단계를 포함하되,
    상기 후보군은, 제1 후보군 또는 제2 후보군 중 적어도 하나를 포함하고,
    상기 제1 후보군은, 디폴트 모드로 구성되고,
    상기 제2 후보군은, 상기 현재 블록에 인접한 이웃 블록의 인트라 예측 모드를 이용하여 구성되는, 비디오 부호화 방법.
  7. 제6항에 있어서,
    상기 디폴트 모드는, DC 모드 또는 Planar 모드 중 적어도 하나를 포함하는, 비디오 부호화 방법.
  8. 제6항에 있어서,
    상기 제2 후보군에 속한 적어도 하나의 후보 모드는, 상기 이웃 블록의 인트라 예측 모드에 n 값을 가산 또는 감산하여 유도되고,
    n은 2보다 크거나 같은 자연수인, 비디오 부호화 방법.
  9. 제8항에 있어서,
    상기 제2 후보군에 속한 후보 모드의 개수는 5개인, 비디오 부호화 방법.
  10. 제9항에 있어서,
    상기 제2 후보군은, 상기 제1 그룹에 포함된 디폴트 모드를 포함하지 않는, 비디오 부호화 방법.
  11. 비디오 신호와 관련된 데이터를 저장하기 위한 컴퓨터로 판독 가능한 기록 매체에 있어서,
    현재 블록의 인트라 예측에 의해 부호화된 부호화 정보를 포함하는 데이터 스트림을 포함하되,
    상기 부호화 정보는, 상기 현재 블록의 인트라 예측 모드를 유도하기 위해 이용되는 후보군을 지시하는 플래그를 포함하고,
    상기 플래그에 따라, 상기 현재 블록의 인트라 예측 모드에 관한 후보군은 제1 후보군 또는 제2 후보군 중 어느 하나로 결정되고,
    상기 제1 후보군은, 디폴트 모드로 구성되고,
    상기 제2 후보군은, 상기 현재 블록에 인접한 이웃 블록의 인트라 예측 모드를 이용하여 구성되는, 컴퓨터로 판독 가능한 기록 매체.
  12. 제11항에 있어서,
    상기 디폴트 모드는, DC 모드 또는 Planar 모드 중 적어도 하나를 포함하는, 컴퓨터로 판독 가능한 기록 매체.
  13. 제11항에 있어서,
    상기 제2 후보군에 속한 적어도 하나의 후보 모드는, 상기 이웃 블록의 인트라 예측 모드에 n 값을 가산 또는 감산하여 유도되고,
    n은 2보다 크거나 같은 자연수인, 컴퓨터로 판독 가능한 기록 매체.
  14. 제13항에 있어서,
    상기 제2 후보군에 속한 후보 모드의 개수는 5개인, 컴퓨터로 판독 가능한 기록 매체.
  15. 제14항에 있어서,
    상기 제2 후보군은, 상기 제1 그룹에 포함된 디폴트 모드를 포함하지 않는, 컴퓨터로 판독 가능한 기록 매체.
PCT/KR2019/017479 2018-12-17 2019-12-11 비디오 부호화/복호화 방법 및 장치 WO2020130477A1 (ko)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US17/285,336 US11659163B2 (en) 2018-12-17 2019-12-11 Video encoding/decoding method and device
CN201980076799.3A CN113170117A (zh) 2018-12-17 2019-12-11 一种视频编码/解码方法及装置
US18/191,375 US20230231993A1 (en) 2018-12-17 2023-03-28 Video encoding/decoding method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20180163526 2018-12-17
KR10-2018-0163526 2018-12-17

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US17/285,336 A-371-Of-International US11659163B2 (en) 2018-12-17 2019-12-11 Video encoding/decoding method and device
US18/191,375 Division US20230231993A1 (en) 2018-12-17 2023-03-28 Video encoding/decoding method and device

Publications (1)

Publication Number Publication Date
WO2020130477A1 true WO2020130477A1 (ko) 2020-06-25

Family

ID=71101699

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/017479 WO2020130477A1 (ko) 2018-12-17 2019-12-11 비디오 부호화/복호화 방법 및 장치

Country Status (4)

Country Link
US (2) US11659163B2 (ko)
KR (3) KR102358391B1 (ko)
CN (1) CN113170117A (ko)
WO (1) WO2020130477A1 (ko)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MX2021007764A (es) * 2018-12-28 2021-08-05 B1 Institute Image Technology Inc Metodo y dispositivo de codificacion/decodificacion de video a base de intra prediccion.
US20230104476A1 (en) * 2021-10-05 2023-04-06 Tencent America LLC Grouping based adaptive reordering of merge candidate

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140098113A (ko) * 2011-11-04 2014-08-07 퀄컴 인코포레이티드 인트라 모드 비디오 코딩
KR101735137B1 (ko) * 2009-09-14 2017-05-12 톰슨 라이센싱 인트라 예측 모드의 효율적인 비디오 인코딩 및 디코딩에 대한 방법 및 장치
US20180103251A1 (en) * 2016-10-07 2018-04-12 Industrial Technology Research Institute Method for selecting prediction mode of intra prediction, video encoding device and image processing apparatus
JP2018174569A (ja) * 2010-07-15 2018-11-08 シャープ株式会社 画像符号化装置及び画像復号装置
KR20180123674A (ko) * 2016-04-06 2018-11-19 주식회사 케이티 비디오 신호 처리 방법 및 장치

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140121022A (ko) * 2013-04-04 2014-10-15 주식회사 팬택 복수의 레이어를 지원하는 비디오의 부호화 및 복호화 방법 및 이를 이용하는 장치
KR20170058837A (ko) * 2015-11-19 2017-05-29 한국전자통신연구원 화면내 예측모드 부호화/복호화 방법 및 장치
KR102641362B1 (ko) * 2017-11-30 2024-02-27 엘지전자 주식회사 비디오 신호의 처리 방법 및 장치
JP2021536717A (ja) * 2018-09-07 2021-12-27 ビー1、インスティテュート、オブ、イメージ、テクノロジー、インコーポレイテッドB1 Institute Of Image Technology, Inc. イントラ予測を用いた画像符号化/復号化方法及び装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101735137B1 (ko) * 2009-09-14 2017-05-12 톰슨 라이센싱 인트라 예측 모드의 효율적인 비디오 인코딩 및 디코딩에 대한 방법 및 장치
JP2018174569A (ja) * 2010-07-15 2018-11-08 シャープ株式会社 画像符号化装置及び画像復号装置
KR20140098113A (ko) * 2011-11-04 2014-08-07 퀄컴 인코포레이티드 인트라 모드 비디오 코딩
KR20180123674A (ko) * 2016-04-06 2018-11-19 주식회사 케이티 비디오 신호 처리 방법 및 장치
US20180103251A1 (en) * 2016-10-07 2018-04-12 Industrial Technology Research Institute Method for selecting prediction mode of intra prediction, video encoding device and image processing apparatus

Also Published As

Publication number Publication date
US20210385435A1 (en) 2021-12-09
KR20230129360A (ko) 2023-09-08
US20230231993A1 (en) 2023-07-20
KR20220019731A (ko) 2022-02-17
CN113170117A (zh) 2021-07-23
KR102358391B1 (ko) 2022-02-04
KR102575576B1 (ko) 2023-09-08
KR20200074877A (ko) 2020-06-25
US11659163B2 (en) 2023-05-23

Similar Documents

Publication Publication Date Title
WO2017188652A1 (ko) 영상 부호화/복호화 방법 및 장치
WO2017164645A2 (ko) 비디오 신호 부호화/복호화 방법 및 장치
WO2017039256A1 (ko) 비디오 신호 처리 방법 및 장치
WO2020050684A1 (ko) 인트라 예측을 이용한 영상 부호화/복호화 방법 및 장치
WO2018088805A1 (ko) 비디오 신호 처리 방법 및 장치
WO2018212577A1 (ko) 비디오 신호 처리 방법 및 장치
WO2016052977A1 (ko) 비디오 신호 처리 방법 및 장치
WO2017052081A1 (ko) 영상 코딩 시스템에서 인터 예측 방법 및 장치
WO2018008904A2 (ko) 비디오 신호 처리 방법 및 장치
WO2018044088A1 (ko) 비디오 신호 처리 방법 및 장치
WO2012148138A2 (ko) 인트라 예측 방법과 이를 이용한 부호화기 및 복호화기
WO2018044087A1 (ko) 비디오 신호 처리 방법 및 장치
WO2019240449A1 (ko) 양자화 파라미터 기반의 잔차 블록 부호화/복호화 방법 및 장치
WO2017014412A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2019240448A1 (ko) 성분 간 참조 기반의 비디오 신호 처리 방법 및 장치
WO2013154366A1 (ko) 블록 정보에 따른 변환 방법 및 이러한 방법을 사용하는 장치
WO2020009419A1 (ko) 병합 후보를 사용하는 비디오 코딩 방법 및 장치
WO2016159610A1 (ko) 비디오 신호 처리 방법 및 장치
WO2016114583A1 (ko) 비디오 신호 처리 방법 및 장치
WO2016048092A1 (ko) 비디오 신호 처리 방법 및 장치
WO2016085231A1 (ko) 비디오 신호 처리 방법 및 장치
WO2018044089A1 (ko) 비디오 신호 처리 방법 및 장치
WO2019194484A1 (ko) 인트라 예측을 이용한 영상 부호화/복호화 방법 및 장치
WO2016064123A1 (ko) 비디오 신호 처리 방법 및 장치
WO2017159901A1 (ko) 비디오 코딩 시스템에서 블록 구조 도출 방법 및 장치

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: 19898345

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: 19898345

Country of ref document: EP

Kind code of ref document: A1