WO2019194441A1 - Method for image coding on basis of adaptively derived mpm list and device therefor - Google Patents

Method for image coding on basis of adaptively derived mpm list and device therefor Download PDF

Info

Publication number
WO2019194441A1
WO2019194441A1 PCT/KR2019/003388 KR2019003388W WO2019194441A1 WO 2019194441 A1 WO2019194441 A1 WO 2019194441A1 KR 2019003388 W KR2019003388 W KR 2019003388W WO 2019194441 A1 WO2019194441 A1 WO 2019194441A1
Authority
WO
WIPO (PCT)
Prior art keywords
intra prediction
prediction mode
block
current block
neighboring block
Prior art date
Application number
PCT/KR2019/003388
Other languages
French (fr)
Korean (ko)
Inventor
살레히파메흐디
김승환
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Publication of WO2019194441A1 publication Critical patent/WO2019194441A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/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/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/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • 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/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • 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/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

Definitions

  • the present invention relates to an image coding technique, and more particularly, to an image decoding method and apparatus according to an MPM list adaptively derived from an image coding system.
  • the demand for high resolution and high quality images such as high definition (HD) images and ultra high definition (UHD) images is increasing in various fields.
  • the higher the resolution and the higher quality of the image data the more information or bit rate is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost are increased.
  • a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
  • An object of the present invention is to provide a method and apparatus for improving image coding efficiency.
  • Another technical problem of the present invention is to provide an image decoding method and apparatus for deriving an MPM list for a current block.
  • Another technical problem of the present invention is to provide an image decoding method and apparatus for deriving an MPM list based on neighboring blocks of a current block.
  • Another object of the present invention is to provide an image decoding method and apparatus for deriving an MPM list based on the size and / or type of a current block and neighboring blocks.
  • Another object of the present invention is to provide an image decoding method and apparatus for deriving an intra prediction mode for a current block based on sample values of neighboring samples of the current block.
  • an image decoding method performed by a decoding apparatus.
  • the method includes constructing an MPM list of the current block based on neighboring blocks of the current block, deriving an intra prediction mode for the current block based on the MPM list, and based on the intra prediction mode.
  • Generating a predictive sample for the current block wherein the neighboring block includes a left neighboring block and an upper neighboring block of the current block, the size of the current block is WxH, and the upper left sample position of the current block.
  • the left peripheral block is a block including a sample of (-1, H-1) coordinates
  • the upper peripheral block is a sample of (W-1, -1) coordinates. Characterized in that the block containing.
  • a decoding apparatus for performing image decoding.
  • the decoding apparatus constructs an MPM list of the current block based on neighboring blocks of the current block, derives an intra prediction mode for the current block based on the MPM list, and based on the intra prediction mode.
  • a prediction unit for generating a prediction sample for the neighboring block wherein the neighboring block includes a left neighboring block and an upper neighboring block of the current block, the size of the current block is WxH, and an x component of the upper left sample position of the current block
  • the left peripheral block is a block containing samples of (-1, H-1) coordinates
  • the upper peripheral block includes samples of (W-1, -1) coordinates. It is characterized in that the block.
  • a video encoding method performed by an encoding apparatus may include constructing a Most Probable Mode (MPM) list of the current block based on neighboring blocks of the current block, determining an intra prediction mode for the current block, and based on the intra prediction mode. Generating a prediction sample for, and encoding intra prediction mode information for the current block, wherein the neighboring block includes a left neighboring block and an upper neighboring block of the current block; If the size is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left peripheral block is a block containing samples of (-1, H-1) coordinates. The upper peripheral block is a block including samples of (W-1, -1) coordinates.
  • MCM Most Probable Mode
  • a video encoding apparatus may be configured to construct a Most Probable Mode (MPM) list of the current block based on neighboring blocks of the current block, determine an intra prediction mode for the current block, and based on the intra prediction mode.
  • MPM Most Probable Mode
  • the MPM list for the current block may be configured in consideration of neighboring blocks of the current block, thereby reducing the amount of bits for indicating the intra prediction mode of the current block and improving the overall coding efficiency. have.
  • an MPM list for the current block in consideration of the size and / or type of the current block and neighboring blocks, thereby reducing the amount of bits for indicating the intra prediction mode of the current block and Coding efficiency can be improved.
  • the intra prediction mode of the current block can be derived based on the sample values of neighboring samples of the current block, thereby reducing the amount of bits for indicating the intra prediction mode of the current block and improving the overall coding efficiency. Can be improved.
  • FIG. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
  • FIG. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
  • 3 exemplarily shows intra directional modes of 65 prediction directions.
  • 5A and 5B illustrate an example of configuring an MPM list of the current block based on the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block.
  • FIG. 6 illustrates an example of configuring an MPM list of the current block based on the size and type of the current block and neighboring blocks.
  • 8A and 8B illustrate an example of deriving an intra prediction mode of the current block based on neighboring samples of the current block in an encoding device / decoding device.
  • FIG. 9 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.
  • FIG. 10 schematically illustrates an encoding apparatus for performing an image encoding method according to the present invention.
  • FIG. 11 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.
  • FIG. 12 schematically illustrates a decoding apparatus for performing an image decoding method according to the present invention.
  • each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented by separate hardware or separate software.
  • two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations.
  • Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.
  • the present invention relates to video / image coding.
  • the method / embodiment disclosed herein may be applied to the method disclosed in the versatile video coding (VVC) standard or the next generation video / image coding standard.
  • VVC versatile video coding
  • a picture generally refers to a unit representing one image in a specific time zone, and a slice / tile is a unit constituting a part of a picture in coding.
  • the slice / tile may comprise one or more coding tree units (CTUs).
  • CTUs coding tree units
  • One picture may consist of a plurality of slices / tiles, and one tile group may include one or more tiles.
  • a pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel.
  • a sample may generally represent a pixel or a value of a pixel, and may only represent pixel / pixel values of the luma component, or only pixel / pixel values of the chroma component.
  • a unit represents the basic unit of image processing.
  • the unit may include at least one of a specific region of the picture and information related to the region.
  • the unit may be used interchangeably with terms such as block or area in some cases.
  • an M ⁇ N block may represent a set of samples or transform coefficients composed of M columns and N rows.
  • FIG. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
  • the video encoding apparatus 100 may include a picture splitter 105, a predictor 110, a residual processor 120, an entropy encoder 130, an adder 140, and a filter 150. ) And memory 160.
  • the residual processing unit 120 may include a subtraction unit 121, a conversion unit 122, a quantization unit 123, a reordering unit 124, an inverse quantization unit 125, and an inverse conversion unit 126.
  • the picture divider 105 may divide the input picture into at least one processing unit.
  • the processing unit may be called a coding unit (CU).
  • the coding unit may be recursively split from the largest coding unit (LCU) according to a quad-tree binary-tree (QTBT) structure.
  • LCU largest coding unit
  • QTBT quad-tree binary-tree
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and / or a binary tree structure.
  • the quad tree structure may be applied first and the binary tree structure may be applied later.
  • the binary tree structure may be applied first.
  • the coding procedure according to the present invention may be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
  • a coding unit of size may be used as the final coding unit.
  • the coding procedure may include a procedure of prediction, transform, and reconstruction, which will be described later.
  • the processing unit may include a coding unit (CU) prediction unit (PU) or a transform unit (TU).
  • the coding unit may be split from the largest coding unit (LCU) into coding units of deeper depths along the quad tree structure.
  • LCU largest coding unit
  • the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
  • a coding unit of size may be used as the final coding unit. If a smallest coding unit (SCU) is set, the coding unit may not be split into smaller coding units than the minimum coding unit.
  • the final coding unit refers to a coding unit that is the basis of partitioning or partitioning into a prediction unit or a transform unit.
  • the prediction unit is a unit partitioning from the coding unit and may be a unit of sample prediction. In this case, the prediction unit may be divided into sub blocks.
  • the transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
  • a coding unit may be called a coding block (CB)
  • a prediction unit is a prediction block (PB)
  • a transform unit may be called a transform block (TB).
  • a prediction block or prediction unit may mean a specific area in the form of a block within a picture, and may include an array of prediction samples.
  • a transform block or a transform unit may mean a specific area in a block form within a picture, and may include an array of transform coefficients or residual samples.
  • the prediction unit 110 may perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples of the current block.
  • the unit of prediction performed by the prediction unit 110 may be a coding block, a transform block, or a prediction block.
  • the prediction unit 110 may determine whether intra prediction or inter prediction is applied to the current block. As an example, the prediction unit 110 may determine whether intra prediction or inter prediction is applied on a CU basis.
  • the prediction unit 110 may derive a prediction sample for the current block based on reference samples outside the current block in the picture to which the current block belongs (hereinafter, referred to as the current picture). In this case, the prediction unit 110 may (i) derive the prediction sample based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighbor reference of the current block.
  • the prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample among the samples. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode.
  • the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes.
  • the non-directional mode may include a DC prediction mode and a planner mode (Planar mode).
  • the prediction unit 110 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the prediction unit 110 may derive the prediction sample for the current block based on the sample specified by the motion vector on the reference picture.
  • the prediction unit 110 may apply one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode to derive a prediction sample for the current block.
  • the prediction unit 110 may use the motion information of the neighboring block as the motion information of the current block.
  • the skip mode unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted.
  • the MVP mode the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • a reference picture including the temporal neighboring block may be called a collocated picture (colPic).
  • the motion information may include a motion vector and a reference picture index.
  • Information such as prediction mode information and motion information may be encoded (entropy) and output in the form of a bitstream.
  • the highest picture on the reference picture list may be used as the reference picture.
  • Reference pictures included in a reference picture list may be sorted based on a difference in a picture order count (POC) between a current picture and a corresponding reference picture.
  • POC picture order count
  • the subtraction unit 121 generates a residual sample which is a difference between the original sample and the prediction sample.
  • residual samples may not be generated as described above.
  • the transform unit 122 generates transform coefficients by transforming the residual sample in units of transform blocks.
  • the transform unit 122 may perform the transform according to the size of the transform block and the prediction mode applied to the coding block or the prediction block that spatially overlaps the transform block. For example, if intra prediction is applied to the coding block or the prediction block that overlaps the transform block, and the transform block is a 4 ⁇ 4 residual array, the residual sample is configured to perform a discrete sine transform (DST) transform kernel.
  • the residual sample may be transformed using a discrete cosine transform (DCT) transform kernel.
  • DST discrete sine transform
  • DCT discrete cosine transform
  • the quantization unit 123 may quantize the transform coefficients to generate quantized transform coefficients.
  • the reordering unit 124 rearranges the quantized transform coefficients.
  • the reordering unit 124 may reorder the quantized transform coefficients in the form of a block into a one-dimensional vector form through a coefficient scanning method. Although the reordering unit 124 has been described in a separate configuration, the reordering unit 124 may be part of the quantization unit 123.
  • the entropy encoding unit 130 may perform entropy encoding on the quantized transform coefficients.
  • Entropy encoding may include, for example, encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like.
  • the entropy encoding unit 130 may encode information necessary for video reconstruction other than the quantized transform coefficient (for example, a value of a syntax element) together or separately. Entropy-encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
  • NAL network abstraction layer
  • the inverse quantization unit 125 inverse quantizes the quantized values (quantized transform coefficients) in the quantization unit 123, and the inverse transformer 126 inverse transforms the inverse quantized values in the inverse quantization unit 125 to obtain a residual sample.
  • the adder 140 reconstructs the picture by combining the residual sample and the predictive sample.
  • the residual sample and the predictive sample may be added in units of blocks to generate a reconstructed block.
  • the adder 140 may be part of the predictor 110.
  • the adder 140 may be called a restoration unit or a restoration block generation unit.
  • the filter unit 150 may apply a deblocking filter and / or a sample adaptive offset to the reconstructed picture. Through deblocking filtering and / or sample adaptive offset, the artifacts of the block boundaries in the reconstructed picture or the distortion in the quantization process can be corrected.
  • the sample adaptive offset may be applied on a sample basis and may be applied after the process of deblocking filtering is completed.
  • the filter unit 150 may apply an adaptive loop filter (ALF) to the reconstructed picture. ALF may be applied to the reconstructed picture after the deblocking filter and / or sample adaptive offset is applied.
  • ALF adaptive loop filter
  • the memory 160 may store reconstructed pictures (decoded pictures) or information necessary for encoding / decoding.
  • the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 150.
  • the stored reconstructed picture may be used as a reference picture for (inter) prediction of another picture.
  • the memory 160 may store (reference) pictures used for inter prediction.
  • pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
  • FIG. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
  • the video decoding apparatus 200 may include an entropy decoding unit 210, a residual processor 220, a predictor 230, an adder 240, a filter 250, and a memory 260. It may include.
  • the residual processor 220 may include a rearrangement unit 221, an inverse quantization unit 222, and an inverse transform unit 223.
  • the video decoding apparatus 200 may restore video in response to a process in which video information is processed in the video encoding apparatus.
  • the video decoding apparatus 200 may perform video decoding using a processing unit applied in the video encoding apparatus.
  • the processing unit block of video decoding may be, for example, a coding unit, and in another example, a coding unit, a prediction unit, or a transform unit.
  • the coding unit may be split along the quad tree structure and / or binary tree structure from the largest coding unit.
  • the prediction unit and the transform unit may be further used in some cases, in which case the prediction block is a block derived or partitioned from the coding unit and may be a unit of sample prediction. At this point, the prediction unit may be divided into subblocks.
  • the transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient or a unit for deriving a residual signal from the transform coefficient.
  • the entropy decoding unit 210 may parse the bitstream and output information necessary for video reconstruction or picture reconstruction. For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements necessary for video reconstruction, and residual coefficients. Can be output.
  • a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements necessary for video reconstruction, and residual coefficients. Can be output.
  • the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step.
  • the context model may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have.
  • the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
  • the information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the prediction unit 230, and the residual value on which the entropy decoding has been performed by the entropy decoding unit 210, that is, the quantized transform coefficient, is used as a reordering unit ( 221 may be input.
  • the reordering unit 221 may rearrange the quantized transform coefficients in a two-dimensional block form.
  • the reordering unit 221 may perform reordering in response to coefficient scanning performed by the encoding apparatus.
  • the rearrangement unit 221 has been described in a separate configuration, but the rearrangement unit 221 may be part of the inverse quantization unit 222.
  • the inverse quantization unit 222 may dequantize the quantized transform coefficients based on the (inverse) quantization parameter and output the transform coefficients.
  • information for deriving a quantization parameter may be signaled from the encoding apparatus.
  • the inverse transform unit 223 may inversely transform transform coefficients to derive residual samples.
  • the prediction unit 230 may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the unit of prediction performed by the prediction unit 230 may be a coding block, a transform block, or a prediction block.
  • the prediction unit 230 may determine whether to apply intra prediction or inter prediction based on the information about the prediction.
  • a unit for determining which of intra prediction and inter prediction is to be applied and a unit for generating a prediction sample may be different.
  • the unit for generating a prediction sample in inter prediction and intra prediction may also be different.
  • whether to apply inter prediction or intra prediction may be determined in units of CUs.
  • a prediction mode may be determined and a prediction sample may be generated in PU units
  • intra prediction a prediction mode may be determined in PU units and a prediction sample may be generated in TU units.
  • the prediction unit 230 may derive the prediction sample for the current block based on the neighbor reference samples in the current picture.
  • the prediction unit 230 may derive the prediction sample for the current block by applying the directional mode or the non-directional mode based on the neighbor reference samples of the current block.
  • the prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
  • the prediction unit 230 may derive the prediction sample for the current block based on the sample specified on the reference picture by the motion vector on the reference picture.
  • the prediction unit 230 may apply any one of a skip mode, a merge mode, and an MVP mode to derive a prediction sample for the current block.
  • motion information required for inter prediction of the current block provided by the video encoding apparatus for example, information about a motion vector, a reference picture index, and the like may be obtained or derived based on the prediction information.
  • the motion information of the neighboring block may be used as the motion information of the current block.
  • the neighboring block may include a spatial neighboring block and a temporal neighboring block.
  • the prediction unit 230 may construct a merge candidate list using motion information of available neighboring blocks, and may use information indicated by the merge index on the merge candidate list as a motion vector of the current block.
  • the merge index may be signaled from the encoding device.
  • the motion information may include a motion vector and a reference picture. When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture.
  • the difference (residual) between the prediction sample and the original sample is not transmitted.
  • the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
  • the neighboring block may include a spatial neighboring block and a temporal neighboring block.
  • a merge candidate list may be generated by using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block.
  • the motion vector of the candidate block selected from the merge candidate list is used as the motion vector of the current block.
  • the information about the prediction may include a merge index indicating a candidate block having an optimal motion vector selected from candidate blocks included in the merge candidate list.
  • the prediction unit 230 may derive the motion vector of the current block by using the merge index.
  • a motion vector predictor candidate list may be generated using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block.
  • the prediction information may include a prediction motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list.
  • the prediction unit 230 may select the predicted motion vector of the current block from the motion vector candidates included in the motion vector candidate list using the motion vector index.
  • the prediction unit of the encoding apparatus may obtain a motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, and may encode the output vector in a bitstream form. That is, MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block.
  • the prediction unit 230 may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block by adding the motion vector difference and the motion vector predictor.
  • the prediction unit may also obtain or derive a reference picture index or the like indicating a reference picture from the information about the prediction.
  • the adder 240 may reconstruct the current block or the current picture by adding the residual sample and the predictive sample.
  • the adder 240 may reconstruct the current picture by adding the residual sample and the predictive sample in block units. Since the residual is not transmitted when the skip mode is applied, the prediction sample may be a reconstruction sample.
  • the adder 240 has been described in a separate configuration, the adder 240 may be part of the predictor 230. On the other hand, the adder 240 may be called a restoration unit or a restoration block generation unit.
  • the filter unit 250 may apply the deblocking filtering sample adaptive offset, and / or ALF to the reconstructed picture.
  • the sample adaptive offset may be applied in units of samples and may be applied after deblocking filtering.
  • ALF may be applied after deblocking filtering and / or sample adaptive offset.
  • the memory 260 may store reconstructed pictures (decoded pictures) or information necessary for decoding.
  • the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 250.
  • the memory 260 may store pictures used for inter prediction.
  • pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
  • the reconstructed picture can be used as a reference picture for another picture.
  • the memory 260 may output the reconstructed picture in an output order.
  • the encoding device / decoding device may derive an intra prediction mode for the current block, and predict the sample of the current block based on the intra prediction mode. Can be derived. That is, the encoding device / decoding device may derive the prediction sample of the current block by applying the directional mode or the non-directional mode based on the peripheral reference samples of the current block.
  • the intra prediction mode includes two non-directional or non-angular intra prediction modes and 65 directional or angular intra prediction modes. Can include them.
  • the non-directional intra prediction modes may include a planar intra prediction mode of 0 and a DC intra prediction mode of 1, and the directional intra prediction modes may include 65 intra prediction modes of 2 to 66. .
  • the present invention may be applied to a case where the number of intra prediction modes is different.
  • the intra prediction mode 67 may further be used, and the intra prediction mode 67 may represent a linear model (LM) mode.
  • LM linear model
  • 3 exemplarily shows intra directional modes of 65 prediction directions.
  • an intra prediction mode having horizontal directionality and an intra prediction mode having vertical directionality may be distinguished from the intra prediction mode 34 having a left upward diagonal prediction direction.
  • H and V in FIG. 3 mean horizontal directionality and vertical directionality, respectively, and numbers of -32 to 32 represent a displacement of 1/32 on a sample grid position.
  • Intra prediction modes 2 to 33 have horizontal orientation, and intra prediction modes 34 to 66 have vertical orientation.
  • Intra prediction mode 18 and intra prediction mode 50 indicate a horizontal intra prediction mode and a vertical intra prediction mode, respectively, and an intra prediction mode 2 indicates a left downward diagonal intra prediction mode,
  • the 34th intra prediction mode may be referred to as a left upward diagonal intra prediction mode, and the 66th intra prediction mode may be referred to as a right upward diagonal intra prediction mode.
  • an intra prediction mode applied to the current block may be derived based on the intra prediction mode of the neighboring block of the current block.
  • the decoding apparatus may derive the most probable mode (MPM) list based on the intra prediction mode and additional candidate modes of the neighboring block (eg, the left neighboring block and / or the upper neighboring block) of the current block.
  • MPM most probable mode
  • One of the MPM candidates in the derived MPM list may be selected based on the received MPM index, or one of the remaining intra prediction modes not included in the MPM candidates is based on intra prediction mode information. Can be selected.
  • the MPM list may be referred to as an intra prediction mode candidate list or may be referred to as candModeList.
  • the MPM list may include three MPM candidates or six MPM candidates.
  • the MPM list may include candidates derived based on an intra prediction mode, a derived intra prediction mode, and / or a default intra prediction mode of a neighboring block.
  • the encoding device / decoding device may search the neighboring blocks of the current block in a specific order and derive the intra prediction mode of the neighboring block as the MPM candidate in the derived order.
  • the neighboring blocks may include a left neighboring block, an upper neighboring block, a lower left neighboring block, a right upper neighboring block, and an upper left neighboring block, and the encoding device / decoding device is an intra prediction mode of the left neighboring block.
  • Intra prediction mode of the upper neighboring block may be derived and the MPM list of the current block may be constructed. Meanwhile, if six MPM candidates are not derived after the search, an MPM candidate may be derived based on an intra prediction mode derived as the MPM candidate. For example, when the intra prediction mode derived as the MPM candidate is N intra prediction mode, the encoding device / decoding device selects the N + 1 intra prediction mode and / or the N-1 intra prediction mode from the current block. Can be derived as an MPM candidate. A detailed description of the neighboring blocks will be described later.
  • an intra prediction mode applied to the current block is included in the MPM candidates or the remaining intra prediction modes may be derived based on an MPM flag.
  • the MPM flag may indicate that the intra prediction mode of the current block is included in MPM candidates (MPM list)
  • MPM list when the value of the MPM flag is 0, the MPM The flag may indicate that an intra prediction mode for the current block is included in the remaining intra prediction modes rather than included in MPM candidates (MPM list).
  • the MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the remaining intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element.
  • the MPM flag may be signaled in the form of an intra_luma_mpm_flag syntax element, and when the MPM flag is not signaled, the value of the MPM flag may be regarded as 1.
  • the remaining intra prediction mode information may index one of the remaining intra prediction modes not included in the MPM candidates among all the intra prediction modes in order of prediction mode number.
  • the intra prediction mode may be an intra prediction mode for a luma component (sample).
  • the intra prediction mode information may include at least one of the MPM flag, the MPM index, and the remaining intra prediction mode information.
  • the MPM list may be called in various terms such as an MPM candidate list and a candModeList.
  • the encoding apparatus may derive an MPM list for the current block based on the intra prediction mode and additional candidate modes of the neighboring block of the current block, determine the intra prediction mode of the current block, and determine the current block.
  • Intra prediction mode information for may be encoded and stored and / or transmitted.
  • the current block and the neighboring block to be coded may have similar image characteristics, and thus, the current block and the neighboring block have a high probability of having the same or similar intra prediction mode.
  • the MPM list of the current block may be determined to derive an intra prediction mode applied to the block. That is, as the MPM list includes the intra prediction mode of the current block, the coding efficiency of the entire image may be improved.
  • a small bit amount is allocated to the value of the MPM index indicating an earlier order of MPM candidates in the MPM list. As the case where an MPM candidate of the previous order in the MPM list is selected as an intra prediction mode of the current block increases It is possible to reduce the amount of bits for coding the entire image and to improve coding efficiency.
  • the present invention increases the accuracy of the MPM list construction, that is, the case where the MPM candidates in the preceding order (for example, the first order) of the MPM list are increased when the intra prediction mode of the current block is selected.
  • the neighboring block of the current block may be represented as follows.
  • a neighboring block of the current block may include a left neighboring block, an upper neighboring block, a lower left neighboring block, a right upper neighboring block, and / or a left upper neighboring block.
  • the left neighboring block has a coordinate of (-1, H-1).
  • a block including a sample the upper peripheral block is a block including a sample of (W-1, -1) coordinates, the right upper peripheral block is a block including a sample of (W, -1) coordinates,
  • the lower left peripheral block may be a block including samples of (-1, H) coordinates, and the upper left peripheral block may be a block including samples of (-1, -1) coordinates.
  • a method of constructing the MPM list of the current block may be proposed based on an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block.
  • 5A and 5B illustrate an example of configuring an MPM list of the current block based on the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block.
  • the encoding apparatus / decoding apparatus may determine whether an intra prediction mode of a left neighboring block and an intra prediction mode of an upper neighboring block exist in the current block (S500).
  • the intra prediction mode of the left neighboring block of the current block may be represented as dir_Left
  • the intra prediction mode of the upper neighboring block of the current block may be represented as dir_Above.
  • the left neighboring block has a coordinate of (-1, H-1).
  • the block may include a sample
  • the upper peripheral block may be a block including a sample having a coordinate (W-1, -1).
  • the encoding device / decoding device is configured to the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block. It may be determined whether a specific condition is satisfied (S510). When the specific condition is satisfied, the encoding apparatus / decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order of the MPM list of the current block (S520). In addition, when the specific condition is not satisfied, the encoding apparatus / decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidate of the first order of the MPM list of the current block (S530).
  • FIG. 5B illustrates an example of constructing an MPM list using whether the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block are intra prediction modes having a vertical direction under the specific condition.
  • the intra prediction mode having the vertical direction may represent an intra prediction mode having an angle parameter larger than the intra prediction mode having the upper left diagonal prediction direction.
  • the intra prediction mode having the vertical direction may represent the intra prediction modes 35 to 66.
  • the intra prediction mode having the vertical direction may be N intra prediction modes, and N may be a number greater than 34 (N> 34).
  • the encoding apparatus / decoding apparatus may determine whether an intra prediction mode of a left neighboring block and an intra prediction mode of an upper neighboring block exist in the current block (S540).
  • the left neighboring block has a coordinate of (-1, H-1).
  • the block may include a sample
  • the upper peripheral block may be a block including a sample having a coordinate (W-1, -1).
  • the encoding device / decoding device may have an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block. It may be determined whether the intra prediction mode has the vertical direction (S550). When the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block are intra prediction modes having vertical directionality, the encoding device / decoding device sets the intra prediction mode of the upper neighboring block to the MPM list of the current block. The first order may be derived as the MPM candidate (S560).
  • the encoding device / decoding device sets the intra prediction mode of the left neighboring block to the current. It may be derived as the MPM candidate in the first order of the MPM list of the block (S570).
  • the MPM list of the current block may be constructed based on various conditions other than the above.
  • the encoding device / decoding device may determine whether an intra prediction mode of the upper neighboring block is an intra prediction mode having vertical orientation. When the intra prediction mode of the upper neighboring block is an intra prediction mode having vertical direction, the encoding device / decoding device may derive the intra prediction mode of the upper neighboring block as the MPM candidate of the first order of the MPM list of the current block. And the intra prediction mode of the upper neighboring block is not the intra prediction mode having the vertical direction, the encoding device / decoding device sets the intra prediction mode of the left neighboring block as the MPM candidate of the first order of the MPM list of the current block. Can be derived.
  • the encoding apparatus / decoding apparatus may determine whether the intra prediction mode of the upper right side neighboring block and the intra prediction mode of the lower left side neighboring block are the intra prediction modes having the vertical direction. When the intra prediction mode of the upper right neighboring block and the intra prediction mode of the lower left neighboring block are the intra prediction modes having vertical directionality, the encoding device / decoding device sets the intra prediction mode of the right upper neighboring block of the current block.
  • the decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidate in the first order of the MPM list of the current block.
  • the encoding device / decoding device may determine whether the intra prediction mode of the right upper neighboring block is an intra prediction mode having vertical orientation. When the intra prediction mode of the right upper neighboring block is an intra prediction mode having vertical direction, the encoding device / decoding device derives the intra prediction mode of the right upper neighboring block as the MPM candidate of the first order of the MPM list of the current block. If the intra prediction mode of the right upper neighboring block is not an intra prediction mode having vertical directionality, the encoding device / decoding device sets the intra prediction mode of the lower left neighboring block in the first order of the MPM list of the current block. Can be derived as an MPM candidate.
  • the encoding apparatus / decoding apparatus may configure the MPM list in any order according to the prediction direction of the intra prediction mode of the neighboring block of the current block.
  • the MPM list As an example of constructing the MPM list, a method of constructing the MPM list of the current block based on the size and type of the current block and neighboring blocks may be proposed.
  • FIG. 6 illustrates an example of configuring an MPM list of the current block based on the size and type of the current block and neighboring blocks.
  • the encoding device / decoding device may derive the size and type of the current block and neighboring blocks (S600).
  • the peripheral block may include the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block, and / or the upper left peripheral block of the current block.
  • the type of block may be a square block or a non-square block.
  • List 1, List 2, and List 3 may be preset, and the MPM list of the current block is List 1, List 2, or List 3 based on Specific Condition 1, Specific Condition 2, and Specific Condition 3. Can be configured.
  • the encoding device / decoding device may determine whether the size and type of the current block and / or the neighboring block satisfy a specific condition 1 (S610). When the size and type of the current block and / or the neighboring block satisfy a specific condition 1, the encoding device / decoding device may configure the MPM list of the current block as list 1 (S620).
  • the encoding device / decoding device determines whether the size and type of the current block and / or neighboring block satisfy the specific condition 2. It may be (S630). When the size and type of the current block and / or the neighboring block satisfy a specific condition 2, the encoding device / decoding device may configure the MPM list of the current block as list 2 (S640).
  • the encoding device / decoding device determines whether the size and type of the current block and / or neighboring block satisfies specific condition 3. Can be (S650). When the size and type of the current block and / or the neighboring block satisfy a specific condition 3, the encoding device / decoding device may configure the MPM list of the current block as list 3 (S660).
  • boundary values of the neighboring block may represent neighboring samples located near the upper side and the left side of the current block. That is, boundary values of the neighboring block may represent neighboring samples used for intra prediction of the current block.
  • the peripheral samples of the current block may include 2W upper peripheral samples, 2H left peripheral samples, and a left upper corner peripheral sample.
  • the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
  • the encoding device / decoding device may derive the intra prediction mode of the current block based on the neighboring samples of the current block. For example, the encoding device / decoding device may determine whether a specific condition for the surrounding samples is satisfied, and if the specific condition for the surrounding samples is satisfied, explicit intra prediction mode information.
  • the intra prediction mode for the current block can be derived without performing intra prediction. That is, when a specific condition for the neighboring samples is satisfied, intra prediction mode information for the current block may not be signaled. Meanwhile, a method of deriving an intra prediction mode without the explicit intra prediction mode information may be referred to as implicit coding.
  • 8A and 8B illustrate an example of deriving an intra prediction mode of the current block based on neighboring samples of the current block in an encoding device / decoding device.
  • FIG. 8A illustrates an example of encoding information about an intra prediction mode of the current block based on neighboring samples of the current block in the encoding apparatus.
  • the encoding apparatus may determine whether values of neighboring samples of the current block satisfy a specific condition (S800). When values of neighboring samples of the current block satisfy a specific condition, the encoding apparatus may derive an intra prediction mode for the specific condition as an intra prediction mode of the current block.
  • S800 a specific condition
  • intra prediction modes may be classified into M subgroups, and when values of neighboring samples of the current block satisfy a specific condition, the encoding apparatus may include an intra prediction mode included in a specific subgroup for the specific condition. One of these may be determined as the intra prediction mode of the current block.
  • the encoding apparatus may generate an index indicating the selected intra prediction mode among the intra prediction modes included in the M subgroups. Through this, the index for the subgroup including a limited number of intra prediction modes in the subgroup may be signaled, and the index may be coded in a limited range of values to improve overall coding efficiency. For example, when the subgroup includes eight candidates, the index for the subgroup may have a value of 0 to 7, and the index may be coded with 3 bits. Therefore, the bit amount of the information indicating the intra prediction mode of the current block can be reduced, and coding efficiency can be improved.
  • the encoding apparatus may determine an intra prediction mode for the current block, and generate existing intra prediction mode information (S810).
  • the decoding apparatus may determine whether values of neighboring samples of the current block satisfy a specific condition (S820). If the values of the neighboring samples of the current block satisfy a specific condition, the decoding apparatus may derive an intra prediction mode for the specific condition as an intra prediction mode of the current block (S830).
  • intra prediction modes may be classified into M subgroups, and when values of neighboring samples of the current block satisfy a specific condition, the decoding apparatus may include an intra prediction mode included in a specific subgroup for the specific condition. An index indicating one of the above may be obtained, and an intra prediction mode of the current block may be determined based on the index. That is, the decoding apparatus may derive the intra prediction mode indicated by the index among the intra prediction modes included in the specific subgroup for the specific condition as the intra prediction mode of the current block.
  • the decoding apparatus may obtain existing intra prediction mode information (that is, explicit intra prediction mode information), and the intra prediction An intra prediction mode for the current block may be derived based on mode information in operation S840.
  • existing intra prediction mode information that is, explicit intra prediction mode information
  • FIG. 9 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.
  • the method disclosed in FIG. 9 may be performed by the encoding apparatus disclosed in FIG. 1.
  • S900 to S920 of FIG. 9 may be performed by the prediction unit of the encoding apparatus
  • S930 may be performed by the entropy encoding unit of the encoding apparatus.
  • a process of deriving a residual sample for the current block based on an original sample and a prediction sample for the current block may be performed by a subtractor of the encoding apparatus.
  • the generating of the information about the residual on the current block may be performed by a converter of the encoding apparatus, and the encoding of the information about the residual may be performed by an entropy encoding unit of the encoding apparatus. It can be performed by.
  • the encoding apparatus configures a Most Probable Mode (MPM) list of the current block based on the neighboring blocks of the current block (S900).
  • MPM Most Probable Mode
  • the MPM list may include three MPM candidates, five MPM candidates, or six MPM candidates.
  • the encoding apparatus may construct the MPM list of the current block based on the neighboring block of the current block.
  • the neighboring block may include a left neighboring block and / or an upper neighboring block of the current block.
  • the encoding apparatus may derive an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block, and the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block have an intra prediction.
  • the mode can be determined.
  • the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block are the intra prediction modes having the vertical direction
  • the encoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order. have.
  • the encoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the second order.
  • the encoding apparatus may derive the intra prediction mode of the left neighboring block as MPM candidates in N-th order other than the first order.
  • the intra prediction mode of the left neighboring block is the MPM candidate of the first order.
  • the encoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the second order.
  • the encoding apparatus may derive the intra prediction mode of the upper neighboring block as MPM candidates in N-th order other than the first order.
  • the left neighboring block is (-1, H- 1) a block including a sample of coordinates
  • the upper peripheral block may be a block including a sample of (W-1, -1) coordinates.
  • the encoding apparatus may derive an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block, and determine whether the intra prediction mode of the upper neighboring block is an intra prediction mode having vertical direction. can do.
  • the encoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order.
  • the encoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the second order.
  • the encoding apparatus may derive the intra prediction mode of the left neighboring block as MPM candidates in N-th order other than the first order.
  • the intra prediction mode of the left neighboring block may be derived as the MPM candidate of the first order.
  • the encoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the second order.
  • the encoding apparatus may derive the intra prediction mode of the upper neighboring block as MPM candidates in N-th order other than the first order.
  • the encoding apparatus may construct the MPM list of the current block based on the neighboring block of the current block, wherein the neighboring block is a right upper neighboring block and / or a lower left margin of the current block. It may include a block.
  • the encoding apparatus may derive an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block, and the intra prediction mode of the right upper neighboring block and the intra prediction mode of the lower left neighboring block are vertical directional. It may be determined whether the intra prediction mode has a.
  • the encoding apparatus uses the intra prediction mode of the right upper neighboring block as the MPM candidate in the first order. Can be derived.
  • the encoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the second order.
  • the encoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the N-th order other than the first order.
  • the intra prediction mode of the lower left neighboring block is performed in the first order.
  • the encoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the second order.
  • the encoding apparatus may derive the intra prediction mode of the right upper neighbor block as the MPM candidates in the N-th order other than the first order.
  • the right upper peripheral block is (W, -1 )
  • the lower left peripheral block may be a block including a sample of (-1, H) coordinates.
  • the encoding apparatus may derive an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block, and the intra prediction mode of the right upper neighboring block has an intra prediction with vertical orientation.
  • the mode can be determined.
  • the encoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the first order.
  • the encoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the second order.
  • the encoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the N-th order other than the first order.
  • the intra prediction mode of the lower left neighboring block may be derived as the MPM candidate in the first order.
  • the encoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the second order.
  • the encoding apparatus may derive the intra prediction mode of the right upper neighbor block as the MPM candidates in the N-th order other than the first order.
  • the encoding apparatus may construct an MPM list for the current block based on the size and / or type of the current block and the size and / or type of the neighboring block.
  • the peripheral block may include the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block, and / or the upper left peripheral block of the current block.
  • the type of block may be a square block or a non-square block.
  • the encoding apparatus may construct an MPM list for the current block based on N conditions for the size and type of the current block and the size and type of the neighboring block.
  • N may be one or more.
  • the encoding apparatus may determine whether the size of the current block, the type of the current block, the size of the neighboring block, and / or the type of the neighboring block correspond to a condition, and determine in order of the Nth condition in the first condition. Can be.
  • the MPM list may be configured as a list for the specific condition.
  • the list for the specific condition may include MPM candidates derived based on an intra prediction mode and a default intra prediction mode in a neighboring block of the current block in a specific order.
  • a condition for constructing the MPM list whether the current block is a non-square block, the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block and / or the upper left peripheral block Whether it is a non-square block, whether the size of the current block is greater than or equal to a specific size, the size of the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block and / or the upper left peripheral block It may include whether or not more than a specific size.
  • the encoding apparatus may first derive an intra prediction mode having horizontal directionality as an MPM candidate for the current block. That is, the encoding apparatus may derive the intra prediction mode having the horizontal directionality as the MPM candidates in the order before the intra prediction modes.
  • the encoding apparatus may preferentially derive an intra prediction mode having vertical orientation as an MPM candidate for the current block. That is, the encoding apparatus may derive the intra prediction mode having the vertical direction as the MPM candidates in the order before the intra prediction modes.
  • the current block may be a subblock derived by dividing the (partitioning) target block in the horizontal direction during the block partitioning process or a subblock derived by dividing the (partitioning) target block in the vertical direction.
  • the prediction may be performed in consideration of the characteristics of the current block, and the prediction accuracy may be improved.
  • the encoding apparatus may first derive an MPM candidate for the current block with an intra prediction mode having horizontal directionality as follows.
  • MPM [0] PLANAR_IDX (Planner Intra Prediction Mode 0)
  • MPM [1] HOR_IDX (No. 18 horizontal intra prediction mode)
  • MPM [4] 65 (intra prediction mode 65)
  • MPM [5] VER_IDX (No. 50 vertical intra prediction mode)
  • the encoding apparatus may derive the intra prediction mode having the horizontal directionality as the MPM candidates in the order before the intra prediction modes.
  • the encoding apparatus may first derive the MPM candidate for the current block as follows, in the intra prediction mode having the vertical direction.
  • MPM [0] PLANAR_IDX (Planner Intra Prediction Mode 0)
  • MPM [1] VER_IDX (No. 50 vertical intra prediction mode)
  • MPM [3] 60 (intra prediction mode 60)
  • MPM [4] 3 (intra prediction mode 3)
  • the encoding apparatus may derive the intra prediction mode having the vertical direction as the MPM candidates in the order before the intra prediction modes.
  • the encoding apparatus may derive the first N (eg, N equal to 3) MPM candidates based on the mode of the neighboring block, and for the remaining MPM candidates, the current block is larger than the height.
  • the MPM candidate for the current block may be derived as follows in the intra prediction mode having horizontal directionality as follows.
  • MPM [4] 5 (intra prediction mode 5)
  • MPM [5] PLANAR_IDX (Planner Intra Prediction Mode 0)
  • the encoding apparatus may first derive the remaining MPM candidates for the current block with the intra prediction mode having the vertical direction as follows.
  • MPM [3] VER_IDX (No. 50 vertical intra prediction mode)
  • MPM [5] PLANAR_IDX (Planner Intra Prediction Mode 0)
  • the encoding apparatus determines an intra prediction mode for the current block (S910).
  • the encoding apparatus may perform various intra prediction modes to derive an intra prediction mode having an optimal RD cost as an intra prediction mode for the current block.
  • the intra prediction mode may be one of two non-directional intra prediction modes and 65 intra directional prediction modes. As described above, the two non-directional intra prediction modes may include an intra DC mode and an intra planner mode.
  • the encoding apparatus may generate an MPM flag indicating whether the determined intra prediction mode is included in the MPM candidates of the MPM list.
  • an MPM index indicating the determined intra prediction mode among the MPM candidates may be generated.
  • the determined intra prediction mode is not included in the MPM candidates of the MPM list, generating remaining intra prediction mode information indicating the determined intra prediction mode among remaining intra prediction modes not included in the MPM candidates. can do.
  • the encoding apparatus may not signal the MPM flag, and the value of the MPM flag may be derived as 1.
  • the encoding apparatus may determine the intra prediction mode for the current block based on neighboring samples of the current block. In detail, the encoding apparatus may determine whether the sample values of the neighboring samples correspond to a specific condition. For example, the encoding apparatus may derive a representative value for neighboring samples of the current block, and determine whether the representative value is greater than a specific value.
  • the representative value may be an average value or a median value of the sample values of the peripheral samples.
  • the peripheral samples may include upper left corner samples, upper peripheral samples, and left peripheral samples of the current block.
  • the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
  • the encoding apparatus may determine an intra prediction mode for the specific condition as an intra prediction mode for the current block. Or, for example, when the sample values of the neighboring samples correspond to a specific condition, the encoding apparatus may derive M intra prediction modes for the specific condition, and the current block of the M intra prediction modes. The intra prediction mode for may be determined. In this case, the encoding apparatus may generate an index indicating the determined intra prediction mode among the M intra prediction modes.
  • the encoding apparatus generates a prediction sample for the current block based on the intra prediction mode (S920).
  • the encoding apparatus may derive at least one neighboring sample of the neighboring samples of the current block based on the intra prediction mode, and generate the predictive sample based on the neighboring sample.
  • the peripheral samples may include upper left corner peripheral samples, upper peripheral samples, and left peripheral samples of the current block. For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
  • the encoding device encodes intra prediction mode information on the current block (S930).
  • the encoding apparatus may encode the intra prediction mode information on the current block and output the bit stream in the form of a bitstream.
  • the intra prediction mode information may include the MPM flag, the MPM index and / or the remaining intra prediction mode information.
  • the encoding apparatus may generate an index indicating the determined intra prediction mode among the M intra prediction modes, and encode the index. Can be output in the form of a bitstream.
  • the bitstream may be transmitted to a decoding device through a network or a (digital) storage medium.
  • the network may include a broadcasting network and / or a communication network
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like.
  • FIG. 10 schematically illustrates an encoding apparatus for performing an image encoding method according to the present invention.
  • the method disclosed in FIG. 9 may be performed by the encoding apparatus disclosed in FIG. 10.
  • the prediction unit of the encoding apparatus of FIG. 10 may perform S900 to S920 of FIG. 9, and the entropy encoding unit of the encoding apparatus of FIG. 10 may perform S930 of FIG. 9.
  • a process of deriving a residual sample for the current block based on the original sample and the prediction sample for the current block may be performed by the subtraction unit of the encoding apparatus of FIG. 10.
  • the generating of the information about the residual for the current block based on the residual sample may be performed by the converter of the encoding apparatus of FIG. 10, and the encoding of the residual information may be performed in FIG. 10. May be performed by an entropy encoding unit of the encoding apparatus.
  • FIG. 11 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.
  • the method disclosed in FIG. 11 may be performed by the decoding apparatus disclosed in FIG. 2.
  • S1100 to S1120 of FIG. 11 may be performed by the prediction unit of the decoding apparatus.
  • the process of acquiring intra prediction mode information on the current block through the bitstream and the process of acquiring information on the residual of the current block through the bitstream may include entropy decoding of the decoding apparatus.
  • the derivation of the residual sample for the current block based on the residual information may be performed by an inverse transform unit of the decoding apparatus, and the prediction sample and the residual sample
  • the process of generating a reconstructed picture based on may be performed by an adder of the decoding apparatus.
  • the decoding apparatus configures a Most Probable Mode (MPM) list of the current block based on the neighboring blocks of the current block (S1100).
  • MPM Most Probable Mode
  • the MPM list may include three MPM candidates, five MPM candidates, or six MPM candidates.
  • the decoding apparatus may configure the MPM list of the current block based on the neighboring block of the current block.
  • the neighboring block may include a left neighboring block and / or an upper neighboring block of the current block.
  • the decoding apparatus may derive an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block, and the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block have an intra prediction.
  • the mode can be determined.
  • the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order. have.
  • the decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the second order.
  • the decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the N-th order other than the first order.
  • the intra prediction mode of the left neighboring block is the MPM candidate of the first order.
  • the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the second order.
  • the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the N-th order other than the first order.
  • the left neighboring block is (-1, H- 1) a block including a sample of coordinates
  • the upper peripheral block may be a block including a sample of (W-1, -1) coordinates.
  • the decoding apparatus may derive an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block, and determine whether the intra prediction mode of the upper neighboring block is an intra prediction mode having vertical orientation. can do.
  • the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order.
  • the decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the second order.
  • the decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the N-th order other than the first order.
  • the intra prediction mode of the left neighboring block may be derived as the MPM candidate of the first order.
  • the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the second order.
  • the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the N-th order other than the first order.
  • the decoding apparatus may construct the MPM list of the current block based on the neighboring block of the current block, wherein the neighboring block is a right upper neighboring block and / or a lower left margin of the current block. It may include a block.
  • the decoding apparatus may derive an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block, and the intra prediction mode of the right upper neighboring block and the intra prediction mode of the lower left neighboring block are vertical directional. It may be determined whether the intra prediction mode has a.
  • the decoding apparatus sets the intra prediction mode of the right upper neighboring block as the MPM candidate in the first order. Can be derived.
  • the decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the second order.
  • the decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the N-th order other than the first order.
  • the intra prediction mode of the lower left neighboring block is performed in the first order.
  • the decoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the second order.
  • the decoding apparatus may derive the intra prediction mode of the right upper neighbor block as the MPM candidates in the N-th order other than the first order.
  • the right upper peripheral block is (W, -1 )
  • the lower left peripheral block may be a block including a sample of (-1, H) coordinates.
  • the decoding apparatus may derive an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block, and the intra prediction mode of the right upper neighboring block has an intra prediction with vertical direction.
  • the mode can be determined.
  • the decoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the first order.
  • the decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the second order.
  • the decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the N-th order other than the first order.
  • the decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the first order.
  • the decoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the second order.
  • the decoding apparatus may derive the intra prediction mode of the right upper neighbor block as the MPM candidates in the N-th order other than the first order.
  • the decoding apparatus may construct an MPM list for the current block based on the size and / or type of the current block and the size and / or type of the neighboring block.
  • the peripheral block may include the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block, and / or the upper left peripheral block of the current block.
  • the type of block may be a square block or a non-square block.
  • the decoding apparatus may configure an MPM list for the current block based on N conditions for the size and type of the current block and the size and type of the neighboring block.
  • N may be one or more.
  • the decoding apparatus may determine whether the size of the current block, the type of the current block, the size of the neighboring block, and / or the type of the neighboring block correspond to a condition, and determine in order of the Nth condition in the first condition. Can be.
  • the MPM list may be configured as a list for the specific condition.
  • the list for the specific condition may include MPM candidates derived based on an intra prediction mode and a default intra prediction mode in a neighboring block of the current block in a specific order.
  • a condition for constructing the MPM list whether the current block is a non-square block, the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block and / or the upper left peripheral block Whether it is a non-square block, whether the size of the current block is greater than or equal to a specific size, the size of the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block and / or the upper left peripheral block It may include whether or not more than a specific size.
  • the decoding apparatus may preferentially derive an intra prediction mode having horizontal directionality as an MPM candidate for the current block. That is, the decoding apparatus may derive the intra prediction mode having the horizontal directionality as the MPM candidates in the order before the intra prediction modes other than the intra prediction mode.
  • the decoding apparatus may preferentially derive an intra prediction mode having vertical orientation as an MPM candidate for the current block. That is, the decoding apparatus may derive the intra prediction mode having the vertical direction as the MPM candidates in the order before the intra prediction modes.
  • the current block may be a subblock derived by dividing the (partitioning) target block in the horizontal direction during the block partitioning process or a subblock derived by dividing the (partitioning) target block in the vertical direction.
  • the prediction may be performed in consideration of the characteristics of the current block, and the prediction accuracy may be improved.
  • the decoding apparatus may first derive an MPM candidate for the current block with an intra prediction mode having horizontal directionality as follows.
  • MPM [0] PLANAR_IDX (Planner Intra Prediction Mode 0)
  • MPM [1] HOR_IDX (No. 18 horizontal intra prediction mode)
  • MPM [4] 65 (intra prediction mode 65)
  • MPM [5] VER_IDX (No. 50 vertical intra prediction mode)
  • the decoding apparatus may derive the intra prediction mode having the horizontal directionality as the MPM candidates in the order before the intra prediction modes other than the intra prediction mode.
  • the decoding apparatus may first derive an MPM candidate for the current block with an intra prediction mode having vertical orientation as follows.
  • MPM [0] PLANAR_IDX (Planner Intra Prediction Mode 0)
  • MPM [1] VER_IDX (No. 50 vertical intra prediction mode)
  • MPM [3] 60 (intra prediction mode 60)
  • MPM [4] 3 (intra prediction mode 3)
  • the decoding apparatus may derive the intra prediction mode having the vertical direction as the MPM candidates in the order before the intra prediction modes.
  • the first N (eg, N equals 3) MPM candidates may be derived based on the mode of the neighboring block, and for the remaining MPM candidates, the current block is a non-square block whose width is greater than the height.
  • the MPM candidate for the current block may be derived as follows in the intra prediction mode having the horizontal directionality as follows.
  • MPM [4] 5 (intra prediction mode 5)
  • MPM [5] PLANAR_IDX (Planner Intra Prediction Mode 0)
  • the decoding apparatus may first derive the remaining MPM candidates for the current block with the intra prediction mode having the vertical direction as follows.
  • MPM [3] VER_IDX (No. 50 vertical intra prediction mode)
  • MPM [5] PLANAR_IDX (Planner Intra Prediction Mode 0)
  • the decoding apparatus derives an intra prediction mode for the current block based on the MPM list (S1110).
  • the decoding apparatus may derive an MPM flag for the current block.
  • the decoding apparatus may obtain intra prediction mode information for the current block from the bitstream, and the intra prediction mode information may include an MPM flag for the current block.
  • the intra prediction mode information may not include the MPM flag, and in this case, the decoding apparatus may derive the value of the MPM flag as 1.
  • the decoding apparatus may derive the MPM candidate indicated by the MPM index among the MPM candidates of the MPM list in the intra prediction mode for the current block.
  • the intra prediction mode information may include the MPM index.
  • the MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element.
  • the decoding apparatus may derive the intra prediction mode indicated by the remaining intra prediction mode information among the remaining intra prediction modes as the intra prediction mode for the current block.
  • the remaining intra prediction modes may indicate remaining intra prediction modes not included in the MPM candidates of the MPM list.
  • the intra prediction mode information may include the remaining intra prediction mode information.
  • the remaining intra prediction mode information may be signaled in the form of rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax elements.
  • the decoding apparatus may derive the intra prediction mode for the current block based on the neighboring samples for the current block.
  • the decoding apparatus may determine whether sample values of the neighboring samples correspond to a specific condition.
  • the decoding apparatus may derive a representative value for neighboring samples of the current block, and determine whether the representative value is greater than a specific value.
  • the representative value may be an average value or a median value of the sample values of the peripheral samples.
  • the peripheral samples may include upper left corner samples, upper peripheral samples, and left peripheral samples of the current block.
  • the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
  • the decoding apparatus may derive an intra prediction mode for the specific condition as an intra prediction mode for the current block.
  • the decoding apparatus may derive M intra prediction modes for the specific condition, and the received index among the M intra prediction modes.
  • the intra prediction mode indicated by may be derived as the intra prediction mode for the current block.
  • the index may be obtained through a bitstream, and the index may indicate one of the M intra prediction modes.
  • the decoding apparatus generates a prediction sample for the current block based on the intra prediction mode (S1120).
  • the decoding apparatus may derive at least one neighboring sample of the neighboring samples of the current block based on the intra prediction mode, and generate the predictive sample based on the neighboring sample.
  • the peripheral samples may include upper left corner peripheral samples, upper peripheral samples, and left peripheral samples of the current block. For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
  • the decoding apparatus may directly use the prediction sample as a reconstruction sample according to a prediction mode, or generate a reconstruction sample by adding a residual sample to the prediction sample. If there is a residual sample for the current block, the decoding apparatus may receive information about the residual for the current block, and the information about the residual may be included in the information about the face. The information about the residual may include transform coefficients regarding the residual sample. The decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information. The decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture in order to improve subjective / objective picture quality as necessary.
  • an in-loop filtering procedure such as a deblocking filtering and / or
  • FIG. 12 schematically illustrates a decoding apparatus for performing an image decoding method according to the present invention.
  • the method disclosed in FIG. 11 may be performed by the decoding apparatus disclosed in FIG. 12.
  • the prediction unit of the decoding apparatus of FIG. 12 may perform S1100 to S1120 of FIG. 11.
  • the process of obtaining the intra prediction mode information for the current block through the bitstream and the process of obtaining the information about the residual for the current block through the bitstream may be performed in the decoding apparatus of FIG. 12.
  • the derivation of the residual sample for the current block based on the residual information may be performed by an inverse transform unit of the decoding apparatus of FIG. 12.
  • a process of generating a reconstructed picture based on a sample and the residual sample may be performed by an adder of the decoding apparatus of FIG. 12.
  • the MPM list for the current block in consideration of the neighboring blocks of the current block, thereby reducing the amount of bits for indicating the intra prediction mode of the current block and improving the overall coding efficiency. You can.
  • the MPM list for the current block may be configured in consideration of the size and / or type of the current block and neighboring blocks, thereby reducing the amount of bits indicating the intra prediction mode of the current block. And improve the overall coding efficiency.
  • the present invention it is possible to derive the intra prediction mode of the current block based on the sample values of neighboring samples of the current block, thereby reducing the amount of bits to indicate the intra prediction mode of the current block and overall coding.
  • the efficiency can be improved.
  • the above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.
  • the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function.
  • the module may be stored in memory and executed by a processor.
  • the memory may be internal or external to the processor and may be coupled to the processor by various well known means.
  • the processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices.
  • the memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device. That is, the embodiments described in the present invention may be implemented and performed on a processor, a microprocessor, a controller, or a chip. For example, the functional units shown in each drawing may be implemented and performed on a computer, processor, microprocessor, controller, or chip.
  • the decoding apparatus and encoding apparatus to which the present invention is applied include a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real time communication device such as video communication, and mobile streaming.
  • the OTT video device may include a game console, a Blu-ray player, an internet access TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), and the like.
  • the processing method to which the present invention is applied can be produced in the form of a program executed by a computer, and can be stored in a computer-readable recording medium.
  • Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium.
  • the computer readable recording medium includes all kinds of storage devices and distributed storage devices in which computer readable data is stored.
  • the computer-readable recording medium may be, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical disc. It may include a data storage device.
  • the computer-readable recording medium also includes media embodied in the form of a carrier wave (eg, transmission over the Internet).
  • the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
  • an embodiment of the present invention may be implemented as a computer program product by program code, which may be performed on a computer by an embodiment of the present invention.
  • the program code may be stored on a carrier readable by a computer.
  • the content streaming system to which the present invention is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
  • the encoding server compresses content input from multimedia input devices such as a smart phone, a camera, a camcorder, etc. into digital data to generate a bitstream and transmit the bitstream to the streaming server.
  • multimedia input devices such as smart phones, cameras, camcorders, etc. directly generate a bitstream
  • the encoding server may be omitted.
  • the bitstream may be generated by an encoding method or a bitstream generation method to which the present invention is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
  • the streaming server transmits the multimedia data to the user device based on the user's request through the web server, and the web server serves as a medium for informing the user of what service.
  • the web server delivers it to a streaming server, and the streaming server transmits multimedia data to the user.
  • the content streaming system may include a separate control server.
  • the control server plays a role of controlling a command / response between devices in the content streaming system.
  • the streaming server may receive content from a media store and / or an encoding server. For example, when the content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
  • Examples of the user device include a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PCs, ultrabooks, wearable devices, such as smartwatches, glass glasses, head mounted displays, digital TVs, desktops Computer, digital signage, and the like.
  • PDA personal digital assistant
  • PMP portable multimedia player
  • navigation a slate PC
  • Tablet PCs tablet PCs
  • ultrabooks wearable devices, such as smartwatches, glass glasses, head mounted displays, digital TVs, desktops Computer, digital signage, and the like.
  • Each server in the content streaming system may be operated as a distributed server, in which case data received from each server may be distributed.

Abstract

An image decoding method performed by a decoding device according to the present invention comprises the steps of: constructing an MPM list of a current block on the basis of neighboring blocks of the current block; deriving an intra prediction mode for the current block on the basis of the MPM list; and generating a prediction sample for the current block on the basis of the intra prediction mode, wherein the neighboring blocks include a left neighboring block and an upper neighboring block of the current block, and if the size of the current block is WxH and the x component of an upper left sample position of the current block is 0 and the y component thereof is 0, the left neighboring block includes a sample of coordinates (-1, H-1) and the upper neighboring block includes a sample of coordinates (W-1, -1).

Description

적응적으로 도출되는 MPM 리스트에 기반한 영상 코딩 방법 및 그 장치Image Coding Method Based on Adaptive Derived MPM List and Its Apparatus
본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 적응적으로 도출되는 MPM 리스트에 따른 영상 디코딩 방법 및 장치에 관한 것이다.The present invention relates to an image coding technique, and more particularly, to an image decoding method and apparatus according to an MPM list adaptively derived from an image coding system.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다. Recently, the demand for high resolution and high quality images such as high definition (HD) images and ultra high definition (UHD) images is increasing in various fields. The higher the resolution and the higher quality of the image data, the more information or bit rate is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost are increased.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.Accordingly, a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
본 발명의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.An object of the present invention is to provide a method and apparatus for improving image coding efficiency.
본 발명의 다른 기술적 과제는 현재 블록에 대한 MPM 리스트를 도출하는 영상 디코딩 방법 및 장치를 제공함에 있다.Another technical problem of the present invention is to provide an image decoding method and apparatus for deriving an MPM list for a current block.
본 발명의 다른 기술적 과제는 현재 블록의 주변 블록을 기반으로 MPM 리스트를 도출하는 영상 디코딩 방법 및 장치를 제공함에 있다.Another technical problem of the present invention is to provide an image decoding method and apparatus for deriving an MPM list based on neighboring blocks of a current block.
본 발명의 다른 기술적 과제는 현재 블록 및 주변 블록의 사이즈 및/또는 타입을 기반으로 MPM 리스트를 도출하는 영상 디코딩 방법 및 장치를 제공함에 있다.Another object of the present invention is to provide an image decoding method and apparatus for deriving an MPM list based on the size and / or type of a current block and neighboring blocks.
본 발명의 다른 기술적 과제는 현재 블록의 주변 샘플들의 샘플값들을 기반으로 현재 블록에 대한 인트라 예측 모드를 도출하는 영상 디코딩 방법 및 장치를 제공함에 있다.Another object of the present invention is to provide an image decoding method and apparatus for deriving an intra prediction mode for a current block based on sample values of neighboring samples of the current block.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은 현재 블록의 주변 블록을 기반으로 상기 현재 블록의 MPM 리스트를 구성하는 단계, 상기 MPM 리스트를 기반으로 상기 현재 블록에 대한 인트라 예측 모드를 도출하는 단계, 및 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측 샘플을 생성하는 단계를 포함하되, 상기 주변 블록은 상기 현재 블록의 좌측 주변 블록 및 상측 주변 블록을 포함하고, 상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록인 것을 특징으로 한다.According to an embodiment of the present invention, there is provided an image decoding method performed by a decoding apparatus. The method includes constructing an MPM list of the current block based on neighboring blocks of the current block, deriving an intra prediction mode for the current block based on the MPM list, and based on the intra prediction mode. Generating a predictive sample for the current block, wherein the neighboring block includes a left neighboring block and an upper neighboring block of the current block, the size of the current block is WxH, and the upper left sample position of the current block. When x component is 0 and y component is 0, the left peripheral block is a block including a sample of (-1, H-1) coordinates, and the upper peripheral block is a sample of (W-1, -1) coordinates. Characterized in that the block containing.
본 발명의 다른 일 실시예에 따르면, 영상 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는 현재 블록의 주변 블록을 기반으로 상기 현재 블록의 MPM 리스트를 구성하고, 상기 MPM 리스트를 기반으로 상기 현재 블록에 대한 인트라 예측 모드를 도출하고, 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측 샘플을 생성하는 예측부를 포함하되, 상기 주변 블록은 상기 현재 블록의 좌측 주변 블록 및 상측 주변 블록을 포함하고, 상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록인 것을 특징으로 한다.According to another embodiment of the present invention, a decoding apparatus for performing image decoding is provided. The decoding apparatus constructs an MPM list of the current block based on neighboring blocks of the current block, derives an intra prediction mode for the current block based on the MPM list, and based on the intra prediction mode. A prediction unit for generating a prediction sample for the neighboring block, wherein the neighboring block includes a left neighboring block and an upper neighboring block of the current block, the size of the current block is WxH, and an x component of the upper left sample position of the current block When the 0 and y components are 0, the left peripheral block is a block containing samples of (-1, H-1) coordinates, and the upper peripheral block includes samples of (W-1, -1) coordinates. It is characterized in that the block.
본 발명의 또 다른 일 실시예에 따르면, 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법을 제공한다. 상기 방법은 현재 블록의 주변 블록을 기반으로 상기 현재 블록의 MPM(Most Probable Mode) 리스트를 구성하는 단계, 상기 현재 블록에 대한 인트라 예측 모드를 결정하는 단계, 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측 샘플을 생성하는 단계, 및 상기 현재 블록에 대한 인트라 예측 모드 정보를 인코딩하는 단계를 포함하되, 상기 주변 블록은 상기 현재 블록의 좌측 주변 블록 및 상측 주변 블록을 포함하고, 상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록인 것을 특징으로 한다.According to another embodiment of the present invention, a video encoding method performed by an encoding apparatus is provided. The method may include constructing a Most Probable Mode (MPM) list of the current block based on neighboring blocks of the current block, determining an intra prediction mode for the current block, and based on the intra prediction mode. Generating a prediction sample for, and encoding intra prediction mode information for the current block, wherein the neighboring block includes a left neighboring block and an upper neighboring block of the current block; If the size is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left peripheral block is a block containing samples of (-1, H-1) coordinates. The upper peripheral block is a block including samples of (W-1, -1) coordinates.
본 발명의 또 다른 일 실시예에 따르면, 비디오 인코딩 장치를 제공한다. 상기 인코딩 장치는 상기 방법은 현재 블록의 주변 블록을 기반으로 상기 현재 블록의 MPM(Most Probable Mode) 리스트를 구성하고, 상기 현재 블록에 대한 인트라 예측 모드를 결정하고, 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측 샘플을 생성하는 예측부, 및 상기 현재 블록에 대한 인트라 예측 모드 정보를 인코딩하는 엔트로피 인코딩부를 포함하되, 상기 주변 블록은 상기 현재 블록의 좌측 주변 블록 및 상측 주변 블록을 포함하고, 상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록인 것을 특징으로 한다.According to another embodiment of the present invention, a video encoding apparatus is provided. The encoding apparatus may be configured to construct a Most Probable Mode (MPM) list of the current block based on neighboring blocks of the current block, determine an intra prediction mode for the current block, and based on the intra prediction mode. A prediction unit for generating a prediction sample for the current block, and an entropy encoding unit for encoding intra prediction mode information for the current block, wherein the neighboring block includes a left neighboring block and an upper neighboring block of the current block, When the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring block is a sample of (-1, H-1) coordinates. And a block including a sample of (W-1, -1) coordinates.
본 발명에 따르면 현재 블록의 주변 블록을 고려하여 상기 현재 블록에 대한 MPM 리스트를 구성할 수 있고, 이를 통하여, 현재 블록의 인트라 예측 모드를 나타내기 위한 비트량을 감소시키고 전반적인 코딩 효율을 향상시킬 수 있다. According to the present invention, the MPM list for the current block may be configured in consideration of neighboring blocks of the current block, thereby reducing the amount of bits for indicating the intra prediction mode of the current block and improving the overall coding efficiency. have.
본 발명에 따르면 현재 블록 및 주변 블록의 사이즈 및/또는 타입을 고려하여 상기 현재 블록에 대한 MPM 리스트를 구성할 수 있고, 이를 통하여, 현재 블록의 인트라 예측 모드를 나타내기 위한 비트량을 감소시키고 전반적인 코딩 효율을 향상시킬 수 있다. According to the present invention, it is possible to construct an MPM list for the current block in consideration of the size and / or type of the current block and neighboring blocks, thereby reducing the amount of bits for indicating the intra prediction mode of the current block and Coding efficiency can be improved.
본 발명에 따르면 현재 블록의 주변 샘플들의 샘플값을 기반으로 상기 현재 블록의 인트라 예측 모드를 도출할 수 있고, 이를 통하여, 현재 블록의 인트라 예측 모드를 나타내기 위한 비트량을 감소시키고 전반적인 코딩 효율을 향상시킬 수 있다. According to the present invention, the intra prediction mode of the current block can be derived based on the sample values of neighboring samples of the current block, thereby reducing the amount of bits for indicating the intra prediction mode of the current block and improving the overall coding efficiency. Can be improved.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
도 3은 65개의 예측 방향의 인트라 방향성 모드들을 예시적으로 나타낸다. 3 exemplarily shows intra directional modes of 65 prediction directions.
도 4는 상기 현재 블록의 주변 블록을 예시적으로 나타낸다. 4 exemplarily illustrates neighboring blocks of the current block.
도 5a 및 도 5b는 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드를 기반으로 상기 현재 블록의 MPM 리스트를 구성하는 일 예를 나타낸다.5A and 5B illustrate an example of configuring an MPM list of the current block based on the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block.
도 6은 상기 현재 블록 및 주변 블록의 사이즈 및 타입을 기반으로 상기 현재 블록의 MPM 리스트를 구성하는 일 예를 나타낸다. 6 illustrates an example of configuring an MPM list of the current block based on the size and type of the current block and neighboring blocks.
도 7은 상기 현재 블록의 인트라 예측에 사용되는 상기 주변 샘플들을 예시적으로 나타낸다. 7 exemplarily shows the neighboring samples used for intra prediction of the current block.
도 8a 및 도 8b는 인코딩 장치/디코딩 장치에서 상기 현재 블록의 주변 샘플들을 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하는 일 예를 나타낸다. 8A and 8B illustrate an example of deriving an intra prediction mode of the current block based on neighboring samples of the current block in an encoding device / decoding device.
도 9는 본 발명에 따른 인코딩 장치에 의한 영상 인코딩 방법을 개략적으로 나타낸다.9 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.
도 10은 본 발명에 따른 영상 인코딩 방법을 수행하는 인코딩 장치를 개략적으로 나타낸다.10 schematically illustrates an encoding apparatus for performing an image encoding method according to the present invention.
도 11은 본 발명에 따른 디코딩 장치에 의한 영상 디코딩 방법을 개략적으로 나타낸다.11 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.
도 12는 본 발명에 따른 영상 디코딩 방법을 수행하는 디코딩 장치를 개략적으로 나타낸다.12 schematically illustrates a decoding apparatus for performing an image decoding method according to the present invention.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.As the present invention allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description. However, this is not intended to limit the invention to the specific embodiments. The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting of the spirit of the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. The terms "comprise" or "having" in this specification are intended to indicate that there is a feature, number, step, operation, component, part, or combination thereof described in the specification, and one or more other features It is to be understood that the numbers, steps, operations, components, parts or figures do not exclude in advance the presence or possibility of adding them.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.On the other hand, each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented by separate hardware or separate software. For example, two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations. Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.Hereinafter, with reference to the accompanying drawings, it will be described in detail a preferred embodiment of the present invention. Hereinafter, the same reference numerals are used for the same components in the drawings, and redundant description of the same components is omitted.
한편, 본 발명은 비디오/영상 코딩에 관한 것이다. 예를 들어, 본 발명에서 개시된 방법/실시예는 VVC (versatile video coding) 표준 또는 차세대 비디오/이미지 코딩 표준에 개시된 방법에 적용될 수 있다.On the other hand, the present invention relates to video / image coding. For example, the method / embodiment disclosed herein may be applied to the method disclosed in the versatile video coding (VVC) standard or the next generation video / image coding standard.
본 명세서에서 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)/타일(tile)은 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 슬라이스/타일은 하나 이상의 CTU(coding tree unit)을 포함할 수 있다. 하나의 픽처는 복수의 슬라이스/타일로 구성될 수 있으며, 하나의 타일 그룹은 하나 이상의 타일들을 포함할 수 있다.In the present specification, a picture generally refers to a unit representing one image in a specific time zone, and a slice / tile is a unit constituting a part of a picture in coding. The slice / tile may comprise one or more coding tree units (CTUs). One picture may consist of a plurality of slices / tiles, and one tile group may include one or more tiles.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. A pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a value of a pixel, and may only represent pixel / pixel values of the luma component, or only pixel / pixel values of the chroma component.
유닛(unit)은 영상 처리의 기본 단위를 나타낸다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다.A unit represents the basic unit of image processing. The unit may include at least one of a specific region of the picture and information related to the region. The unit may be used interchangeably with terms such as block or area in some cases. In a general case, an M × N block may represent a set of samples or transform coefficients composed of M columns and N rows.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
도 1을 참조하면, 비디오 인코딩 장치(100)는 픽처 분할부(105), 예측부(110), 레지듀얼 처리부(120), 엔트로피 인코딩부(130), 가산부(140), 필터부(150) 및 메모리(160)을 포함할 수 있다. 레지듀얼 처리부(120)는 감산부(121), 변환부(122), 양자화부(123), 재정렬부(124), 역양자화부(125) 및 역변환부(126)를 포함할 수 있다. Referring to FIG. 1, the video encoding apparatus 100 may include a picture splitter 105, a predictor 110, a residual processor 120, an entropy encoder 130, an adder 140, and a filter 150. ) And memory 160. The residual processing unit 120 may include a subtraction unit 121, a conversion unit 122, a quantization unit 123, a reordering unit 124, an inverse quantization unit 125, and an inverse conversion unit 126.
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다. The picture divider 105 may divide the input picture into at least one processing unit.
일 예로, 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다. As an example, the processing unit may be called a coding unit (CU). In this case, the coding unit may be recursively split from the largest coding unit (LCU) according to a quad-tree binary-tree (QTBT) structure. For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and / or a binary tree structure. In this case, for example, the quad tree structure may be applied first and the binary tree structure may be applied later. Alternatively, the binary tree structure may be applied first. The coding procedure according to the present invention may be performed based on the final coding unit that is no longer split. In this case, the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized. A coding unit of size may be used as the final coding unit. Here, the coding procedure may include a procedure of prediction, transform, and reconstruction, which will be described later.
다른 예로, 처리 유닛은 코딩 유닛(coding unit, CU) 예측 유닛(prediction unit, PU) 또는 변환 유닛(transform unit, TU)을 포함할 수도 있다. 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 쿼드 트리 구조를 따라서 하위(deeper) 뎁스의 코딩 유닛들로 분할(split)될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 최소 코딩 유닛(smallest coding unit, SCU)이 설정된 경우 코딩 유닛은 최소 코딩 유닛보다 더 작은 코딩 유닛으로 분할될 수 없다. 여기서 최종 코딩 유닛이라 함은 예측 유닛 또는 변환 유닛으로 파티셔닝 또는 분할되는 기반이 되는 코딩 유닛을 의미한다. 예측 유닛은 코딩 유닛으로부터 파티셔닝(partitioning)되는 유닛으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록(sub block)으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 유닛일 수 있다. 이하, 코딩 유닛은 코딩 블록(coding block, CB), 예측 유닛은 예측 블록(prediction block, PB), 변환 유닛은 변환 블록(transform block, TB) 으로 불릴 수 있다. 예측 블록 또는 예측 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 예측 샘플의 어레이(array)를 포함할 수 있다. 또한, 변환 블록 또는 변환 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 변환 계수 또는 레지듀얼 샘플의 어레이를 포함할 수 있다.As another example, the processing unit may include a coding unit (CU) prediction unit (PU) or a transform unit (TU). The coding unit may be split from the largest coding unit (LCU) into coding units of deeper depths along the quad tree structure. In this case, the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized. A coding unit of size may be used as the final coding unit. If a smallest coding unit (SCU) is set, the coding unit may not be split into smaller coding units than the minimum coding unit. Here, the final coding unit refers to a coding unit that is the basis of partitioning or partitioning into a prediction unit or a transform unit. The prediction unit is a unit partitioning from the coding unit and may be a unit of sample prediction. In this case, the prediction unit may be divided into sub blocks. The transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient. Hereinafter, a coding unit may be called a coding block (CB), a prediction unit is a prediction block (PB), and a transform unit may be called a transform block (TB). A prediction block or prediction unit may mean a specific area in the form of a block within a picture, and may include an array of prediction samples. In addition, a transform block or a transform unit may mean a specific area in a block form within a picture, and may include an array of transform coefficients or residual samples.
예측부(110)는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(110)에서 수행되는 예측의 단위는 코딩 블록일 수 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.The prediction unit 110 may perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples of the current block. The unit of prediction performed by the prediction unit 110 may be a coding block, a transform block, or a prediction block.
예측부(110)는 현재 블록에 인트라 예측이 적용되는지 인터 예측이 적용되는지를 결정할 수 있다. 일 예로, 예측부(110)는 CU 단위로 인트라 예측 또는 인터 예측이 적용되는지를 결정할 수 있다.The prediction unit 110 may determine whether intra prediction or inter prediction is applied to the current block. As an example, the prediction unit 110 may determine whether intra prediction or inter prediction is applied on a CU basis.
인트라 예측의 경우에, 예측부(110)는 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 현재 블록 외부의 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 예측부(110)는 (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 인트라 예측에서 예측 모드는 예를 들어 33개의 방향성 예측 모드와 적어도 2개 이상의 비방향성 모드를 가질 수 있다. 비방향성 모드는 DC 예측 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 예측부(110)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.In the case of intra prediction, the prediction unit 110 may derive a prediction sample for the current block based on reference samples outside the current block in the picture to which the current block belongs (hereinafter, referred to as the current picture). In this case, the prediction unit 110 may (i) derive the prediction sample based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighbor reference of the current block. The prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample among the samples. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode. In intra prediction, the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes. The non-directional mode may include a DC prediction mode and a planner mode (Planar mode). The prediction unit 110 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
인터 예측의 경우에, 예측부(110)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 샘플을 기반으로, 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(110)는 스킵(skip) 모드, 머지(merge) 모드, 및 MVP(motion vector prediction) 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 스킵 모드와 머지 모드의 경우에, 예측부(110)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차(레지듀얼)가 전송되지 않는다. MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(Motion Vector Predictor)로 이용하여 현재 블록의 움직임 벡터 예측자로 이용하여 현재 블록의 움직임 벡터를 유도할 수 있다.In the case of inter prediction, the prediction unit 110 may derive the prediction sample for the current block based on the sample specified by the motion vector on the reference picture. The prediction unit 110 may apply one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode to derive a prediction sample for the current block. In the skip mode and the merge mode, the prediction unit 110 may use the motion information of the neighboring block as the motion information of the current block. In the skip mode, unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted. In the MVP mode, the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처(reference picture)에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 움직임 정보(motion information)는 움직임 벡터와 참조 픽처 인덱스를 포함할 수 있다. 예측 모드 정보와 움직임 정보 등의 정보는 (엔트로피) 인코딩되어 비트스트림 형태로 출력될 수 있다.In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture. A reference picture including the temporal neighboring block may be called a collocated picture (colPic). The motion information may include a motion vector and a reference picture index. Information such as prediction mode information and motion information may be encoded (entropy) and output in the form of a bitstream.
스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트(reference picture list) 상의 최상위 픽처가 참조 픽처로서 이용될 수도 있다. 참조 픽처 리스트(Picture Order Count)에 포함되는 참조 픽처들은 현재 픽처와 해당 참조 픽처 간의 POC(Picture order count) 차이 기반으로 정렬될 수 있다. POC는 픽처의 디스플레이 순서에 대응하며, 코딩 순서와 구분될 수 있다.When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture. Reference pictures included in a reference picture list may be sorted based on a difference in a picture order count (POC) between a current picture and a corresponding reference picture. The POC corresponds to the display order of the pictures and may be distinguished from the coding order.
감산부(121)는 원본 샘플과 예측 샘플 간의 차이인 레지듀얼 샘플을 생성한다. 스킵 모드가 적용되는 경우에는, 상술한 바와 같이 레지듀얼 샘플을 생성하지 않을 수 있다.The subtraction unit 121 generates a residual sample which is a difference between the original sample and the prediction sample. When the skip mode is applied, residual samples may not be generated as described above.
변환부(122)는 변환 블록 단위로 레지듀얼 샘플을 변환하여 변환 계수(transform coefficient)를 생성한다. 변환부(122)는 해당 변환 블록의 사이즈와, 해당 변환 블록과 공간적으로 겹치는 코딩 블록 또는 예측 블록에 적용된 예측 모드에 따라서 변환을 수행할 수 있다. 예컨대, 상기 변환 블록과 겹치는 상기 코딩 블록 또는 상기 예측 블록에 인트라 예측이 적용되었고, 상기 변환 블록이 4×4의 레지듀얼 어레이(array)라면, 레지듀얼 샘플은 DST(Discrete Sine Transform) 변환 커널을 이용하여 변환되고, 그 외의 경우라면 레지듀얼 샘플은 DCT(Discrete Cosine Transform) 변환 커널을 이용하여 변환할 수 있다.The transform unit 122 generates transform coefficients by transforming the residual sample in units of transform blocks. The transform unit 122 may perform the transform according to the size of the transform block and the prediction mode applied to the coding block or the prediction block that spatially overlaps the transform block. For example, if intra prediction is applied to the coding block or the prediction block that overlaps the transform block, and the transform block is a 4 × 4 residual array, the residual sample is configured to perform a discrete sine transform (DST) transform kernel. The residual sample may be transformed using a discrete cosine transform (DCT) transform kernel.
양자화부(123)는 변환 계수들을 양자화하여, 양자화된 변환 계수를 생성할 수 있다.The quantization unit 123 may quantize the transform coefficients to generate quantized transform coefficients.
재정렬부(124)는 양자화된 변환 계수를 재정렬한다. 재정렬부(124)는 계수들 스캐닝(scanning) 방법을 통해 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있다. 여기서 재정렬부(124)는 별도의 구성으로 설명하였으나, 재정렬부(124)는 양자화부(123)의 일부일 수 있다.The reordering unit 124 rearranges the quantized transform coefficients. The reordering unit 124 may reorder the quantized transform coefficients in the form of a block into a one-dimensional vector form through a coefficient scanning method. Although the reordering unit 124 has been described in a separate configuration, the reordering unit 124 may be part of the quantization unit 123.
엔트로피 인코딩부(130)는 양자화된 변환 계수들에 대한 엔트로피 인코딩을 수행할 수 있다. 엔트로피 인코딩은 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 인코딩 방법을 포함할 수 있다. 엔트로피 인코딩부(130)는 양자화된 변환 계수 외 비디오 복원에 필요한 정보들(예컨대 신택스 요소(syntax element)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 엔트로피 인코딩된 정보들은 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다.The entropy encoding unit 130 may perform entropy encoding on the quantized transform coefficients. Entropy encoding may include, for example, encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like. The entropy encoding unit 130 may encode information necessary for video reconstruction other than the quantized transform coefficient (for example, a value of a syntax element) together or separately. Entropy-encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
역양자화부(125)는 양자화부(123)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(126)는 역양자화부(125)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.The inverse quantization unit 125 inverse quantizes the quantized values (quantized transform coefficients) in the quantization unit 123, and the inverse transformer 126 inverse transforms the inverse quantized values in the inverse quantization unit 125 to obtain a residual sample. Create
가산부(140)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(140)는 별도의 구성으로 설명하였으나, 가산부(140)는 예측부(110)의 일부일 수 있다. 한편, 가산부(140)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다.The adder 140 reconstructs the picture by combining the residual sample and the predictive sample. The residual sample and the predictive sample may be added in units of blocks to generate a reconstructed block. Although the adder 140 has been described in a separate configuration, the adder 140 may be part of the predictor 110. On the other hand, the adder 140 may be called a restoration unit or a restoration block generation unit.
복원된 픽처(reconstructed picture)에 대하여 필터부(150)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(150)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.The filter unit 150 may apply a deblocking filter and / or a sample adaptive offset to the reconstructed picture. Through deblocking filtering and / or sample adaptive offset, the artifacts of the block boundaries in the reconstructed picture or the distortion in the quantization process can be corrected. The sample adaptive offset may be applied on a sample basis and may be applied after the process of deblocking filtering is completed. The filter unit 150 may apply an adaptive loop filter (ALF) to the reconstructed picture. ALF may be applied to the reconstructed picture after the deblocking filter and / or sample adaptive offset is applied.
메모리(160)는 복원 픽처(디코딩된 픽처) 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(150)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.The memory 160 may store reconstructed pictures (decoded pictures) or information necessary for encoding / decoding. Here, the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 150. The stored reconstructed picture may be used as a reference picture for (inter) prediction of another picture. For example, the memory 160 may store (reference) pictures used for inter prediction. In this case, pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
도 2를 참조하면, 비디오 디코딩 장치(200)는 엔트로피 디코딩부(210), 레지듀얼 처리부(220), 예측부(230), 가산부(240), 필터부(250) 및 메모리(260)을 포함할 수 있다. 여기서 레지듀얼 처리부(220)는 재정렬부(221), 역양자화부(222), 역변환부(223)을 포함할 수 있다. Referring to FIG. 2, the video decoding apparatus 200 may include an entropy decoding unit 210, a residual processor 220, a predictor 230, an adder 240, a filter 250, and a memory 260. It may include. Here, the residual processor 220 may include a rearrangement unit 221, an inverse quantization unit 222, and an inverse transform unit 223.
비디오 정보를 포함하는 비트스트림이 입력되면, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 비디오 정보가 처리된 프로세스에 대응하여 비디오를 복원할 수 있다.When a bitstream including video information is input, the video decoding apparatus 200 may restore video in response to a process in which video information is processed in the video encoding apparatus.
예컨대, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 적용된 처리 유닛을 이용하여 비디오 디코딩을 수행할 수 있다. 따라서 비디오 디코딩의 처리 유닛 블록은 일 예로 코딩 유닛일 수 있고, 다른 예로 코딩 유닛, 예측 유닛 또는 변환 유닛일 수 있다. 코딩 유닛은 최대 코딩 유닛으로부터 쿼드 트리 구조 및/또는 바이너리 트리 구조를 따라서 분할될 수 있다. For example, the video decoding apparatus 200 may perform video decoding using a processing unit applied in the video encoding apparatus. Thus, the processing unit block of video decoding may be, for example, a coding unit, and in another example, a coding unit, a prediction unit, or a transform unit. The coding unit may be split along the quad tree structure and / or binary tree structure from the largest coding unit.
예측 유닛 및 변환 유닛이 경우에 따라 더 사용될 수 있으며, 이 경우 예측 블록은 코딩 유닛으로부터 도출 또는 파티셔닝되는 블록으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 또는 변환 계수로부터 레지듀얼 신호를 유도하는 유닛일 수 있다. The prediction unit and the transform unit may be further used in some cases, in which case the prediction block is a block derived or partitioned from the coding unit and may be a unit of sample prediction. At this point, the prediction unit may be divided into subblocks. The transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient or a unit for deriving a residual signal from the transform coefficient.
엔트로피 디코딩부(210)는 비트스트림을 파싱하여 비디오 복원 또는 픽처 복원에 필요한 정보를 출력할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 비디오 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. The entropy decoding unit 210 may parse the bitstream and output information necessary for video reconstruction or picture reconstruction. For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements necessary for video reconstruction, and residual coefficients. Can be output.
보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다.More specifically, the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step. The context model may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have. In this case, the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(230)로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수는 재정렬부(221)로 입력될 수 있다.The information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the prediction unit 230, and the residual value on which the entropy decoding has been performed by the entropy decoding unit 210, that is, the quantized transform coefficient, is used as a reordering unit ( 221 may be input.
재정렬부(221)는 양자화되어 있는 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 재정렬부(221)는 인코딩 장치에서 수행된 계수 스캐닝에 대응하여 재정렬을 수행할 수 있다. 여기서 재정렬부(221)는 별도의 구성으로 설명하였으나, 재정렬부(221)는 역양자화부(222)의 일부일 수 있다.The reordering unit 221 may rearrange the quantized transform coefficients in a two-dimensional block form. The reordering unit 221 may perform reordering in response to coefficient scanning performed by the encoding apparatus. Here, the rearrangement unit 221 has been described in a separate configuration, but the rearrangement unit 221 may be part of the inverse quantization unit 222.
역양자화부(222)는 양자화되어 있는 변환 계수들을 (역)양자화 파라미터를 기반으로 역양자화하여 변환 계수를 출력할 수 있다. 이 때, 양자화 파라미터를 유도하기 위한 정보는 인코딩 장치로부터 시그널링될 수 있다.The inverse quantization unit 222 may dequantize the quantized transform coefficients based on the (inverse) quantization parameter and output the transform coefficients. In this case, information for deriving a quantization parameter may be signaled from the encoding apparatus.
역변환부(223)는 변환 계수들을 역변환하여 레지듀얼 샘플들을 유도할 수 있다. The inverse transform unit 223 may inversely transform transform coefficients to derive residual samples.
예측부(230)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(230)에서 수행되는 예측의 단위는 코딩 블록일 수도 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다. The prediction unit 230 may perform prediction on the current block and generate a predicted block including prediction samples for the current block. The unit of prediction performed by the prediction unit 230 may be a coding block, a transform block, or a prediction block.
예측부(230)는 상기 예측에 관한 정보를 기반으로 인트라 예측을 적용할 것인지 인터 예측을 적용할 것인지를 결정할 수 있다. 이 때, 인트라 예측과 인터 예측 중 어느 것을 적용할 것인지를 결정하는 단위와 예측 샘플을 생성하는 단위는 상이할 수 있다. 아울러, 인터 예측과 인트라 예측에 있어서 예측 샘플을 생성하는 단위 또한 상이할 수 있다. 예를 들어, 인터 예측과 인트라 예측 중 어느 것을 적용할 것인지는 CU 단위로 결정할 수 있다. 또한 예를 들어, 인터 예측에 있어서 PU 단위로 예측 모드를 결정하고 예측 샘플을 생성할 수 있고, 인트라 예측에 있어서 PU 단위로 예측 모드를 결정하고 TU 단위로 예측 샘플을 생성할 수도 있다. The prediction unit 230 may determine whether to apply intra prediction or inter prediction based on the information about the prediction. In this case, a unit for determining which of intra prediction and inter prediction is to be applied and a unit for generating a prediction sample may be different. In addition, the unit for generating a prediction sample in inter prediction and intra prediction may also be different. For example, whether to apply inter prediction or intra prediction may be determined in units of CUs. In addition, for example, in inter prediction, a prediction mode may be determined and a prediction sample may be generated in PU units, and in intra prediction, a prediction mode may be determined in PU units and a prediction sample may be generated in TU units.
인트라 예측의 경우에, 예측부(230)는 현재 픽처 내의 주변 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용할 예측 모드가 결정될 수도 있다. In the case of intra prediction, the prediction unit 230 may derive the prediction sample for the current block based on the neighbor reference samples in the current picture. The prediction unit 230 may derive the prediction sample for the current block by applying the directional mode or the non-directional mode based on the neighbor reference samples of the current block. In this case, the prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
인터 예측의 경우에, 예측부(230)는 참조 픽처 상에서 움직임 벡터에 의해 참조 픽처 상에서 특정되는 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 스킵(skip) 모드, 머지(merge) 모드 및 MVP 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이때, 비디오 인코딩 장치에서 제공된 현재 블록의 인터 예측에 필요한 움직임 정보, 예컨대 움직임 벡터, 참조 픽처 인덱스 등에 관한 정보는 상기 예측에 관한 정보를 기반으로 획득 또는 유도될 수 있다In the case of inter prediction, the prediction unit 230 may derive the prediction sample for the current block based on the sample specified on the reference picture by the motion vector on the reference picture. The prediction unit 230 may apply any one of a skip mode, a merge mode, and an MVP mode to derive a prediction sample for the current block. In this case, motion information required for inter prediction of the current block provided by the video encoding apparatus, for example, information about a motion vector, a reference picture index, and the like may be obtained or derived based on the prediction information.
스킵 모드와 머지 모드의 경우에, 주변 블록의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.In the skip mode and the merge mode, the motion information of the neighboring block may be used as the motion information of the current block. In this case, the neighboring block may include a spatial neighboring block and a temporal neighboring block.
예측부(230)는 가용한 주변 블록의 움직임 정보로 머지 후보 리스트를 구성하고, 머지 인덱스가 머지 후보 리스트 상에서 지시하는 정보를 현재 블록의 움직임 벡터로 사용할 수 있다. 머지 인덱스는 인코딩 장치로부터 시그널링될 수 있다. 움직임 정보는 움직임 벡터와 참조 픽처를 포함할 수 있다. 스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트 상의 최상위 픽처가 참조 픽처로서 이용될 수 있다.The prediction unit 230 may construct a merge candidate list using motion information of available neighboring blocks, and may use information indicated by the merge index on the merge candidate list as a motion vector of the current block. The merge index may be signaled from the encoding device. The motion information may include a motion vector and a reference picture. When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture.
스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차이(레지듀얼)이 전송되지 않는다.In the skip mode, unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted.
MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하여 현재 블록의 움직임 벡터가 유도될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.In the MVP mode, the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor. In this case, the neighboring block may include a spatial neighboring block and a temporal neighboring block.
일 예로, 머지 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 머지 후보 리스트가 생성될 수 있다. 머지 모드에서는 머지 후보 리스트에서 선택된 후보 블록의 움직임 벡터가 현재 블록의 움직임 벡터로 사용된다. 상기 예측에 관한 정보는 상기 머지 후보 리스트에 포함된 후보 블록들 중에서 선택된 최적의 움직임 벡터를 갖는 후보 블록을 지시하는 머지 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 머지 인덱스를 이용하여, 현재 블록의 움직임 벡터를 도출할 수 있다.For example, when the merge mode is applied, a merge candidate list may be generated by using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block. In the merge mode, the motion vector of the candidate block selected from the merge candidate list is used as the motion vector of the current block. The information about the prediction may include a merge index indicating a candidate block having an optimal motion vector selected from candidate blocks included in the merge candidate list. In this case, the prediction unit 230 may derive the motion vector of the current block by using the merge index.
다른 예로, MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터는 움직임 벡터 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 후보 중에서 선택된 최적의 움직임 벡터를 지시하는 예측 움직임 벡터 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 움직임 벡터 인덱스를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서, 현재 블록의 예측 움직임 벡터를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 예측부(230)는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 예측부는 또한 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다. As another example, when the Motion Vector Prediction (MVP) mode is applied, a motion vector predictor candidate list may be generated using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block. Can be. That is, the motion vector of the reconstructed spatial neighboring block and / or the Col vector, which is a temporal neighboring block, may be used as a motion vector candidate. The prediction information may include a prediction motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list. In this case, the prediction unit 230 may select the predicted motion vector of the current block from the motion vector candidates included in the motion vector candidate list using the motion vector index. The prediction unit of the encoding apparatus may obtain a motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, and may encode the output vector in a bitstream form. That is, MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block. In this case, the prediction unit 230 may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block by adding the motion vector difference and the motion vector predictor. The prediction unit may also obtain or derive a reference picture index or the like indicating a reference picture from the information about the prediction.
가산부(240)는 레지듀얼 샘플과 예측 샘플을 더하여 현재 블록 혹은 현재 픽처를 복원할 수 있다. 가산부(240)는 레지듀얼 샘플과 예측 샘플을 블록 단위로 더하여 현재 픽처를 복원할 수도 있다. 스킵 모드가 적용된 경우에는 레지듀얼이 전송되지 않으므로, 예측 샘플이 복원 샘플이 될 수 있다. 여기서는 가산부(240)를 별도의 구성으로 설명하였으나, 가산부(240)는 예측부(230)의 일부일 수도 있다. 한편, 가산부(240)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다. The adder 240 may reconstruct the current block or the current picture by adding the residual sample and the predictive sample. The adder 240 may reconstruct the current picture by adding the residual sample and the predictive sample in block units. Since the residual is not transmitted when the skip mode is applied, the prediction sample may be a reconstruction sample. Although the adder 240 has been described in a separate configuration, the adder 240 may be part of the predictor 230. On the other hand, the adder 240 may be called a restoration unit or a restoration block generation unit.
필터부(250)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.The filter unit 250 may apply the deblocking filtering sample adaptive offset, and / or ALF to the reconstructed picture. In this case, the sample adaptive offset may be applied in units of samples and may be applied after deblocking filtering. ALF may be applied after deblocking filtering and / or sample adaptive offset.
메모리(260)는 복원 픽처(디코딩된 픽처) 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(250)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(260)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(260)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다.The memory 260 may store reconstructed pictures (decoded pictures) or information necessary for decoding. Here, the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 250. For example, the memory 260 may store pictures used for inter prediction. In this case, pictures used for inter prediction may be designated by a reference picture set or a reference picture list. The reconstructed picture can be used as a reference picture for another picture. In addition, the memory 260 may output the reconstructed picture in an output order.
한편, 현재 블록에 인트라 예측이 적용되는 경우, 상술한 내용과 같이 인코딩 장치/디코딩 장치는 상기 현재 블록에 대한 인트라 예측 모드를 도출할 수 있고, 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다. 즉, 인코딩 장치/디코딩 장치는 상기 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 상기 현재 블록의 상기 예측 샘플을 도출할 수 있다.On the other hand, when intra prediction is applied to the current block, as described above, the encoding device / decoding device may derive an intra prediction mode for the current block, and predict the sample of the current block based on the intra prediction mode. Can be derived. That is, the encoding device / decoding device may derive the prediction sample of the current block by applying the directional mode or the non-directional mode based on the peripheral reference samples of the current block.
참고로, 예를 들어, 인트라 예측 모드는 2개의 비방향성(non-directional, 또는 비각도성(non-angular)) 인트라 예측 모드들과 65개의 방향성(directional, 또는 각도성(angular)) 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 0번인 플래너(planar) 인트라 예측 모드 및 1번인 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 66번의 65개의 인트라 예측 모드들을 포함할 수 있다. 다만, 이는 예시로서 본 발명은 인트라 예측 모드들의 수가 다른 경우에도 적용될 수 있다. 한편, 경우에 따라 67번 인트라 예측 모드가 더 사용될 수 있으며, 상기 67번 인트라 예측 모드는 LM(linear model) 모드를 나타낼 수 있다.For reference, for example, the intra prediction mode includes two non-directional or non-angular intra prediction modes and 65 directional or angular intra prediction modes. Can include them. The non-directional intra prediction modes may include a planar intra prediction mode of 0 and a DC intra prediction mode of 1, and the directional intra prediction modes may include 65 intra prediction modes of 2 to 66. . However, as an example, the present invention may be applied to a case where the number of intra prediction modes is different. In some cases, the intra prediction mode 67 may further be used, and the intra prediction mode 67 may represent a linear model (LM) mode.
도 3은 65개의 예측 방향의 인트라 방향성 모드들을 예시적으로 나타낸다.3 exemplarily shows intra directional modes of 65 prediction directions.
도 3을 참조하면, 좌상향 대각 예측 방향을 갖는 34번 인트라 예측 모드를 중심으로 수평 방향성(horizontal directionality)을 갖는 인트라 예측 모드와 수직 방향성(vertical directionality)을 갖는 인트라 예측 모드를 구분할 수 있다. 도 3의 H와 V는 각각 수평 방향성과 수직 방향성을 의미하며, -32 ~ 32의 숫자는 샘플 그리드 포지션(sample grid position) 상에서 1/32 단위의 변위를 나타낸다. 2번 내지 33번 인트라 예측 모드는 수평 방향성, 34번 내지 66번 인트라 예측 모드는 수직 방향성을 갖는다. 18번 인트라 예측 모드와 50번 인트라 예측 모드는 각각 수평 인트라 예측 모드(horizontal intra prediction mode), 수직 인트라 예측 모드(vertical intra prediction mode)를 나타내며, 2번 인트라 예측 모드는 좌하향 대각 인트라 예측 모드, 34번 인트라 예측 모드는 좌상향 대각 인트라 예측 모드, 66번 인트라 예측 모드는 우상향 대각 인트라 예측 모드라고 불릴 수 있다. Referring to FIG. 3, an intra prediction mode having horizontal directionality and an intra prediction mode having vertical directionality may be distinguished from the intra prediction mode 34 having a left upward diagonal prediction direction. H and V in FIG. 3 mean horizontal directionality and vertical directionality, respectively, and numbers of -32 to 32 represent a displacement of 1/32 on a sample grid position. Intra prediction modes 2 to 33 have horizontal orientation, and intra prediction modes 34 to 66 have vertical orientation. Intra prediction mode 18 and intra prediction mode 50 indicate a horizontal intra prediction mode and a vertical intra prediction mode, respectively, and an intra prediction mode 2 indicates a left downward diagonal intra prediction mode, The 34th intra prediction mode may be referred to as a left upward diagonal intra prediction mode, and the 66th intra prediction mode may be referred to as a right upward diagonal intra prediction mode.
한편, 상기 현재 블록에 상기 인트라 예측이 적용되는 경우, 상기 현재 블록의 주변 블록의 인트라 예측 모드를 기반으로 상기 현재 블록에 적용되는 인트라 예측 모드가 도출될 수 있다. 예를 들어, 디코딩 장치는 현재 블록의 주변 블록(예를 들어, 좌측 주변 블록 및/또는 상측 주변 블록)의 인트라 예측 모드 및 추가적인 후보 모드들을 기반으로 MPM(most probable mode) 리스트를 도출할 수 있고, 상기 도출된 MPM 리스트 내 MPM 후보들 중 하나를 수신된 MPM 인덱스를 기반으로 선택할 수 있으며, 또는 상기 MPM 후보들에 포함되지 않은 나머지 인트라 예측 모드들 중 하나를 리메이닝(remaining) 인트라 예측 모드 정보를 기반으로 선택할 수 있다. 상기 MPM 리스트는 인트라 예측 모드 후보 리스트라고 나타낼 수도 있으며, candModeList 라고 나타낼 수도 있다.Meanwhile, when the intra prediction is applied to the current block, an intra prediction mode applied to the current block may be derived based on the intra prediction mode of the neighboring block of the current block. For example, the decoding apparatus may derive the most probable mode (MPM) list based on the intra prediction mode and additional candidate modes of the neighboring block (eg, the left neighboring block and / or the upper neighboring block) of the current block. One of the MPM candidates in the derived MPM list may be selected based on the received MPM index, or one of the remaining intra prediction modes not included in the MPM candidates is based on intra prediction mode information. Can be selected. The MPM list may be referred to as an intra prediction mode candidate list or may be referred to as candModeList.
여기서, 예를 들어, 상기 MPM 리스트는 3개의 MPM 후보들 또는 6개의 MPM 후보들을 포함할 수 있다. 일 예로, 상기 MPM 리스트는 주변 블록의 인트라 예측 모드, 도출된 인트라 예측 모드 및/또는 디폴트(default) 인트라 예측 모드를 기반으로 도출된 후보들을 포함할 수 있다. 인코딩 장치/디코딩 장치는 현재 블록의 주변 블록들을 특정 순서에 따라 탐색할 수 있고, 주변 블록의 인트라 예측 모드를 도출된 순서로 상기 MPM 후보로 도출할 수 있다. 예를 들어, 상기 주변 블록들은 좌측 주변 블록, 상측 주변 블록, 좌하측 주변 블록, 우상측 주변 블록, 좌상측 주변 블록을 포함할 수 있고, 인코딩 장치/디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드, 상기 상측 주변 블록의 인트라 예측 모드, 플래너 인트라 예측 모드, DC 인트라 예측 모드, 상기 좌하측 주변 블록의 인트라 예측 모드, 상기 우상측 주변 블록의 인트라 예측 모드, 상기 좌상측 주변 블록의 인트라 예측 모드 순서로 탐색하여 MPM 후보를 도출하고 상기 현재 블록의 상기 MPM 리스트를 구성할 수 있다. 한편, 상기 탐색 후, 6개의 MPM 후보들이 도출되지 않은 경우, MPM 후보로 도출된 인트라 예측 모드를 기반으로 MPM 후보가 도출될 수 있다. 예를 들어, 상기 MPM 후보로 도출된 인트라 예측 모드가 N번 인트라 예측 모드인 경우, 인코딩 장치/디코딩 장치는 상기 N+1번 인트라 예측 모드 및/또는 N-1번 인트라 예측 모드를 상기 현재 블록의 MPM 후보로 도출할 수 있다. 상기 주변 블록들에 대한 구체적인 설명은 후술한다.Here, for example, the MPM list may include three MPM candidates or six MPM candidates. For example, the MPM list may include candidates derived based on an intra prediction mode, a derived intra prediction mode, and / or a default intra prediction mode of a neighboring block. The encoding device / decoding device may search the neighboring blocks of the current block in a specific order and derive the intra prediction mode of the neighboring block as the MPM candidate in the derived order. For example, the neighboring blocks may include a left neighboring block, an upper neighboring block, a lower left neighboring block, a right upper neighboring block, and an upper left neighboring block, and the encoding device / decoding device is an intra prediction mode of the left neighboring block. , Intra prediction mode of the upper neighboring block, planner intra prediction mode, DC intra prediction mode, intra prediction mode of the lower left neighboring block, intra prediction mode of the upper right neighboring block, and intra prediction mode of the upper left neighboring block The MPM candidate may be derived and the MPM list of the current block may be constructed. Meanwhile, if six MPM candidates are not derived after the search, an MPM candidate may be derived based on an intra prediction mode derived as the MPM candidate. For example, when the intra prediction mode derived as the MPM candidate is N intra prediction mode, the encoding device / decoding device selects the N + 1 intra prediction mode and / or the N-1 intra prediction mode from the current block. Can be derived as an MPM candidate. A detailed description of the neighboring blocks will be described later.
또한, 예를 들어, 상기 현재 블록에 적용되는 인트라 예측 모드가 상기 MPM 후보들에 포함되는지, 또는 상기 나머지 인트라 예측 모드들에 포함되는지 여부는 MPM 플래그를 기반으로 도출될 수 있다. 구체적으로, 상기 MPM 플래그의 값이 1인 경우, 상기 MPM 플래그는 상기 현재 블록의 인트라 예측 모드가 MPM 후보들(MPM 리스트)에 포함됨을 나타낼 수 있고, 상기 MPM 플래그의 값이 0인 경우, 상기 MPM 플래그는 상기 현재 블록에 대한 인트라 예측 모드가 MPM 후보들(MPM 리스트)에 포함되지 않고 상기 나머지 인트라 예측 모드들에 포함됨을 나타낼 수 있다. 한편, 상기 MPM 인덱스는 mpm_idx 또는 intra_luma_mpm_idx 신텍스 요소의 형태로 시그널링될 수 있고, 상기 리메이닝 인트라 예측 모드 정보는 rem_intra_luma_pred_mode 또는 intra_luma_mpm_remainder 신텍스 요소의 형태로 시그널링될 수 있다. 또한, 상기 MPM 플래그는 intra_luma_mpm_flag 신텍스 요소의 형태로 시그널링될 수 있고, 상기 MPM 플래그가 시그널링되지 않는 경우, 상기 MPM 플래그의 값은 1로 간주될 수도 있다. 또한, 예를 들어, 상기 리메이닝 인트라 예측 모드 정보는 전체 인트라 예측 모드들 중 상기 MPM 후보들에 포함되지 않는 상기 나머지 인트라 예측 모드들을 예측 모드 번호 순으로 인덱싱하여 그 중 하나를 가리킬 수 있다. 상기 인트라 예측 모드는 루마 성분(샘플)에 대한 인트라 예측 모드일 수 있다. 이하, 인트라 예측 모드 정보는 상기 MPM 플래그, 상기 MPM 인덱스, 상기 리메이닝 인트라 예측 모드 정보 중 적어도 하나를 포함할 수 있다. 또한, 상기 MPM 리스트는 MPM 후보 리스트, candModeList 등 다양한 용어로 불릴 수도 있다.In addition, for example, whether an intra prediction mode applied to the current block is included in the MPM candidates or the remaining intra prediction modes may be derived based on an MPM flag. Specifically, when the value of the MPM flag is 1, the MPM flag may indicate that the intra prediction mode of the current block is included in MPM candidates (MPM list), and when the value of the MPM flag is 0, the MPM The flag may indicate that an intra prediction mode for the current block is included in the remaining intra prediction modes rather than included in MPM candidates (MPM list). The MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the remaining intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. In addition, the MPM flag may be signaled in the form of an intra_luma_mpm_flag syntax element, and when the MPM flag is not signaled, the value of the MPM flag may be regarded as 1. For example, the remaining intra prediction mode information may index one of the remaining intra prediction modes not included in the MPM candidates among all the intra prediction modes in order of prediction mode number. The intra prediction mode may be an intra prediction mode for a luma component (sample). Hereinafter, the intra prediction mode information may include at least one of the MPM flag, the MPM index, and the remaining intra prediction mode information. In addition, the MPM list may be called in various terms such as an MPM candidate list and a candModeList.
한편, 인코딩 장치는 상기 현재 블록의 주변 블록의 인트라 예측 모드 및 추가적인 후보 모드들을 기반으로 상기 현재 블록에 대한 MPM 리스트를 도출할 수 있고, 상기 현재 블록의 인트라 예측 모드를 결정할 수 있고, 상기 현재 블록에 대한 인트라 예측 모드 정보를 인코딩하여 저장 및/또는 전송할 수 있다. Meanwhile, the encoding apparatus may derive an MPM list for the current block based on the intra prediction mode and additional candidate modes of the neighboring block of the current block, determine the intra prediction mode of the current block, and determine the current block. Intra prediction mode information for may be encoded and stored and / or transmitted.
상술한 내용과 같이 일반적으로 코딩하려는 현재 블록과 주변 블록은 비슷한 영상 특성을 갖게 될 수 있고, 따라서, 상기 현재 블록과 상기 주변 블록은 서로 동일하거나 비슷한 인트라 예측 모드를 가질 확률이 높은바, 상기 현재 블록에 적용되는 인트라 예측 모드를 도출하기 위하여 상기 현재 블록의 MPM 리스트가 결정될 수 있다. 즉, 상기 MPM 리스트가 상기 현재 블록의 인트라 예측 모드를 포함하는 경우가 증가할수록 전체 영상의 코딩 효율이 향상될 수 있다. 또한, 상기 MPM 리스트 내 앞선 순서의 MPM 후보를 가리키는 상기 MPM 인덱스의 값에 작은 비트량이 할당되는바, 상기 MPM 리스트 내 앞선 순서의 MPM 후보가 상기 현재 블록의 인트라 예측 모드로 선택되는 경우가 증가할수록 전체 영상의 코딩을 위한 비트량을 줄이고, 코딩 효율을 향상될 수 있다. 이에, 본 발명은 상기 MPM 리스트 구성의 정확도를 보다 향상시키는 방안, 즉, 상기 MPM 리스트의 앞선 순서(예를 들어, 첫번째 순서)의 MPM 후보가 상기 현재 블록의 인트라 예측 모드가 선택되는 경우를 증가되도록 상기 MPM 리스트를 구성하는 방안을 제안한다. 구체적으로, 본 발명은 후술하는 실시예들과 같이 상기 현재 블록의 주변 블록의 인트라 예측 모드 및/또는 블록 타입 등을 고려하여 상기 MPM 리스트 구성의 정확도를 향상시키는 방안을 제안한다.In general, as described above, the current block and the neighboring block to be coded may have similar image characteristics, and thus, the current block and the neighboring block have a high probability of having the same or similar intra prediction mode. The MPM list of the current block may be determined to derive an intra prediction mode applied to the block. That is, as the MPM list includes the intra prediction mode of the current block, the coding efficiency of the entire image may be improved. In addition, a small bit amount is allocated to the value of the MPM index indicating an earlier order of MPM candidates in the MPM list. As the case where an MPM candidate of the previous order in the MPM list is selected as an intra prediction mode of the current block increases It is possible to reduce the amount of bits for coding the entire image and to improve coding efficiency. Accordingly, the present invention increases the accuracy of the MPM list construction, that is, the case where the MPM candidates in the preceding order (for example, the first order) of the MPM list are increased when the intra prediction mode of the current block is selected. We propose a scheme for constructing the MPM list. Specifically, the present invention proposes a method of improving the accuracy of the MPM list configuration in consideration of the intra prediction mode and / or the block type of the neighboring block of the current block as in the following embodiments.
한편, 상기 현재 블록의 주변 블록은 다음과 같이 나타낼 수 있다.Meanwhile, the neighboring block of the current block may be represented as follows.
도 4는 상기 현재 블록의 주변 블록을 예시적으로 나타낸다. 도 4를 참조하면 상기 현재 블록의 주변 블록은 좌측 주변 블록, 상측 주변 블록, 좌하측 주변 블록, 우상측 주변 블록 및/또는 좌상측 주변 블록을 포함할 수 있다. 여기서, 상기 현재 블록의 사이즈가 WxH 이고, 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록이고, 상기 우상측 주변 블록은 (W, -1) 좌표의 샘플을 포함하는 블록이고, 상기 좌하측 주변 블록은 (-1, H) 좌표의 샘플을 포함하는 블록이고, 상기 좌상측 주변 블록은 (-1, -1) 좌표의 샘플을 포함하는 블록일 수 있다.4 exemplarily illustrates neighboring blocks of the current block. Referring to FIG. 4, a neighboring block of the current block may include a left neighboring block, an upper neighboring block, a lower left neighboring block, a right upper neighboring block, and / or a left upper neighboring block. In this case, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring block has a coordinate of (-1, H-1). A block including a sample, the upper peripheral block is a block including a sample of (W-1, -1) coordinates, the right upper peripheral block is a block including a sample of (W, -1) coordinates, The lower left peripheral block may be a block including samples of (-1, H) coordinates, and the upper left peripheral block may be a block including samples of (-1, -1) coordinates.
상기 MPM 리스트를 구성하는 일 예로, 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드를 기반으로 상기 현재 블록의 MPM 리스트를 구성하는 방안이 제안될 수 있다.As an example of constructing the MPM list, a method of constructing the MPM list of the current block may be proposed based on an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block.
도 5a 및 도 5b는 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드를 기반으로 상기 현재 블록의 MPM 리스트를 구성하는 일 예를 나타낸다. 5A and 5B illustrate an example of configuring an MPM list of the current block based on the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block.
예를 들어, 도 5a를 참조하면 인코딩 장치/디코딩 장치는 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드 및 상측 주변 블록의 인트라 예측 모드가 존재하는지 판단할 수 있다(S500). 여기서, 상기 현재 블록의 상기 좌측 주변 블록의 인트라 예측 모드는 dir_Left 라고 나타낼 수 있고, 상기 현재 블록의 상기 상측 주변 블록의 인트라 예측 모드는 dir_Above 라고 나타낼 수 있다. 여기서, 상기 현재 블록의 사이즈가 WxH 이고, 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록일 수 있다.For example, referring to FIG. 5A, the encoding apparatus / decoding apparatus may determine whether an intra prediction mode of a left neighboring block and an intra prediction mode of an upper neighboring block exist in the current block (S500). Here, the intra prediction mode of the left neighboring block of the current block may be represented as dir_Left, and the intra prediction mode of the upper neighboring block of the current block may be represented as dir_Above. In this case, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring block has a coordinate of (-1, H-1). The block may include a sample, and the upper peripheral block may be a block including a sample having a coordinate (W-1, -1).
상기 현재 블록의 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 존재하는 경우, 인코딩 장치/디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드에 대한 특정 조건이 만족되는지 판단할 수 있다(S510). 상기 특정 조건이 만족되는 경우, 인코딩 장치/디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있다(S520). 또한, 상기 특정 조건이 만족되지 않는 경우, 인코딩 장치/디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있다(S530).If there is an intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block of the current block, the encoding device / decoding device is configured to the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block. It may be determined whether a specific condition is satisfied (S510). When the specific condition is satisfied, the encoding apparatus / decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order of the MPM list of the current block (S520). In addition, when the specific condition is not satisfied, the encoding apparatus / decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidate of the first order of the MPM list of the current block (S530).
상기 특정 조건은 여러 가지 조건들이 적용될 수 있다.Various conditions may be applied to the specific condition.
도 5b는 상기 특정 조건으로 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 여부를 사용하여 MPM 리스트를 구성하는 일 예를 나타낸다. 여기서, 상기 수직 방향성을 갖는 인트라 예측 모드는 좌상 대각 예측 방향을 갖는 34번 인트라 예측 모드보다 큰 앵글 파라미터(angle parameter)를 갖는 인트라 예측 모드를 나타낼 수 있다. 예를 들어, 수직 방향성을 갖는 인트라 예측 모드는 35번 내지 66번 인트라 예측 모드를 나타낼 수 있다. 또는, 상기 수직 방향성을 갖는 인트라 예측 모드는 N번 인트라 예측 모드일 수 있고, 상기 N은 34보다 큰 수(N>34)일 수 있다. FIG. 5B illustrates an example of constructing an MPM list using whether the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block are intra prediction modes having a vertical direction under the specific condition. Here, the intra prediction mode having the vertical direction may represent an intra prediction mode having an angle parameter larger than the intra prediction mode having the upper left diagonal prediction direction. For example, the intra prediction mode having the vertical direction may represent the intra prediction modes 35 to 66. Alternatively, the intra prediction mode having the vertical direction may be N intra prediction modes, and N may be a number greater than 34 (N> 34).
예를 들어, 도 5b를 참조하면 인코딩 장치/디코딩 장치는 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드 및 상측 주변 블록의 인트라 예측 모드가 존재하는지 판단할 수 있다(S540). 여기서, 상기 현재 블록의 사이즈가 WxH 이고, 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록일 수 있다.For example, referring to FIG. 5B, the encoding apparatus / decoding apparatus may determine whether an intra prediction mode of a left neighboring block and an intra prediction mode of an upper neighboring block exist in the current block (S540). In this case, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring block has a coordinate of (-1, H-1). The block may include a sample, and the upper peripheral block may be a block including a sample having a coordinate (W-1, -1).
상기 현재 블록의 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 존재하는 경우, 인코딩 장치/디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다(S550). 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인 경우, 인코딩 장치/디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있다(S560). 또한, 상기 좌측 주변 블록의 인트라 예측 모드 및/또는 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 인코딩 장치/디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있다(S570).When there is an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block of the current block, the encoding device / decoding device may have an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block. It may be determined whether the intra prediction mode has the vertical direction (S550). When the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block are intra prediction modes having vertical directionality, the encoding device / decoding device sets the intra prediction mode of the upper neighboring block to the MPM list of the current block. The first order may be derived as the MPM candidate (S560). Further, when the intra prediction mode of the left neighboring block and / or the intra prediction mode of the upper neighboring block is not an intra prediction mode having vertical directionality, the encoding device / decoding device sets the intra prediction mode of the left neighboring block to the current. It may be derived as the MPM candidate in the first order of the MPM list of the block (S570).
한편, 상술한 내용 이외의 여러 가지 조건들을 기반으로 상기 현재 블록의 MPM 리스트가 구성될 수 있다.Meanwhile, the MPM list of the current block may be constructed based on various conditions other than the above.
예를 들어, 인코딩 장치/디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인 경우, 인코딩 장치/디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있고, 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 인코딩 장치/디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있다.For example, the encoding device / decoding device may determine whether an intra prediction mode of the upper neighboring block is an intra prediction mode having vertical orientation. When the intra prediction mode of the upper neighboring block is an intra prediction mode having vertical direction, the encoding device / decoding device may derive the intra prediction mode of the upper neighboring block as the MPM candidate of the first order of the MPM list of the current block. And the intra prediction mode of the upper neighboring block is not the intra prediction mode having the vertical direction, the encoding device / decoding device sets the intra prediction mode of the left neighboring block as the MPM candidate of the first order of the MPM list of the current block. Can be derived.
또한, 다른 일 예로, 인코딩 장치/디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인 경우, 인코딩 장치/디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있고, 상기 우상측 주변 블록의 인트라 예측 모드 및/또는 상기 좌하측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 인코딩 장치/디코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있다.Also, as another example, the encoding apparatus / decoding apparatus may determine whether the intra prediction mode of the upper right side neighboring block and the intra prediction mode of the lower left side neighboring block are the intra prediction modes having the vertical direction. When the intra prediction mode of the upper right neighboring block and the intra prediction mode of the lower left neighboring block are the intra prediction modes having vertical directionality, the encoding device / decoding device sets the intra prediction mode of the right upper neighboring block of the current block. Encoding apparatus / when the intra prediction mode of the right upper neighboring block and / or the intra prediction mode of the lower left neighboring block is not an intra prediction mode having vertical orientation, The decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidate in the first order of the MPM list of the current block.
또한, 다른 일 예로, 인코딩 장치/디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 우상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인 경우, 인코딩 장치/디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있고, 상기 우상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 인코딩 장치/디코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 상기 현재 블록의 MPM 리스트의 첫번째 순서의 MPM 후보로 도출할 수 있다.Also, as another example, the encoding device / decoding device may determine whether the intra prediction mode of the right upper neighboring block is an intra prediction mode having vertical orientation. When the intra prediction mode of the right upper neighboring block is an intra prediction mode having vertical direction, the encoding device / decoding device derives the intra prediction mode of the right upper neighboring block as the MPM candidate of the first order of the MPM list of the current block. If the intra prediction mode of the right upper neighboring block is not an intra prediction mode having vertical directionality, the encoding device / decoding device sets the intra prediction mode of the lower left neighboring block in the first order of the MPM list of the current block. Can be derived as an MPM candidate.
또한, 다른 일 예로, 인코딩 장치/디코딩 장치는 상기 현재 블록의 주변 블록의 인트라 예측 모드의 예측 방향에 따라 임의의 순서로 상기 MPM 리스트를 구성할 수 있다.As another example, the encoding apparatus / decoding apparatus may configure the MPM list in any order according to the prediction direction of the intra prediction mode of the neighboring block of the current block.
한편, 상기 MPM 리스트를 구성하는 일 예로, 상기 현재 블록 및 주변 블록의 사이즈 및 타입을 기반으로 상기 현재 블록의 MPM 리스트를 구성하는 방안이 제안될 수 있다.Meanwhile, as an example of constructing the MPM list, a method of constructing the MPM list of the current block based on the size and type of the current block and neighboring blocks may be proposed.
도 6은 상기 현재 블록 및 주변 블록의 사이즈 및 타입을 기반으로 상기 현재 블록의 MPM 리스트를 구성하는 일 예를 나타낸다. 6 illustrates an example of configuring an MPM list of the current block based on the size and type of the current block and neighboring blocks.
도 6을 참조하면 인코딩 장치/디코딩 장치는 상기 현재 블록 및 주변 블록의 사이즈 및 타입이 도출할 수 있다(S600). 여기서, 상기 주변 블록은 상기 현재 블록의 상기 좌측 주변 블록, 상기 상측 주변 블록, 상기 좌하측 주변 블록, 상기 우상측 주변 블록 및/또는 상기 좌상측 주변 블록을 포함할 수 있다. 또한, 블록의 타입은 정방형(square) 블록 또는 비정방형(non-square) 블록일 수 있다.Referring to FIG. 6, the encoding device / decoding device may derive the size and type of the current block and neighboring blocks (S600). Here, the peripheral block may include the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block, and / or the upper left peripheral block of the current block. In addition, the type of block may be a square block or a non-square block.
도 6을 참조하면 리스트 1, 리스트 2, 리스트 3 이 기설정될 수 있고, 특정 조건 1, 특정 조건 2, 특정 조건 3을 기반으로 상기 현재 블록의 MPM 리스트가 리스트 1, 리스트 2 또는 리스트 3으로 구성될 수 있다.Referring to FIG. 6, List 1, List 2, and List 3 may be preset, and the MPM list of the current block is List 1, List 2, or List 3 based on Specific Condition 1, Specific Condition 2, and Specific Condition 3. Can be configured.
예를 들어, 인코딩 장치/디코딩 장치는 상기 현재 블록 및/또는 주변 블록의 사이즈 및 타입이 특정 조건 1을 만족하는지 여부를 판단할 수 있다(S610). 상기 현재 블록 및/또는 주변 블록의 사이즈 및 타입이 특정 조건 1을 만족하는 경우, 인코딩 장치/디코딩 장치는 상기 현재 블록의 MPM 리스트를 리스트 1로 구성할 수 있다(S620). For example, the encoding device / decoding device may determine whether the size and type of the current block and / or the neighboring block satisfy a specific condition 1 (S610). When the size and type of the current block and / or the neighboring block satisfy a specific condition 1, the encoding device / decoding device may configure the MPM list of the current block as list 1 (S620).
상기 현재 블록 및/또는 주변 블록의 사이즈 및 타입이 특정 조건 1에 해당하지 않는 경우, 인코딩 장치/디코딩 장치는 상기 현재 블록 및/또는 주변 블록의 사이즈 및 타입이 특정 조건 2을 만족하는지 여부를 판단할 수 있다(S630). 상기 현재 블록 및/또는 주변 블록의 사이즈 및 타입이 특정 조건 2을 만족하는 경우, 인코딩 장치/디코딩 장치는 상기 현재 블록의 MPM 리스트를 리스트 2로 구성할 수 있다(S640). If the size and type of the current block and / or neighboring block do not correspond to the specific condition 1, the encoding device / decoding device determines whether the size and type of the current block and / or neighboring block satisfy the specific condition 2. It may be (S630). When the size and type of the current block and / or the neighboring block satisfy a specific condition 2, the encoding device / decoding device may configure the MPM list of the current block as list 2 (S640).
상기 현재 블록 및/또는 주변 블록의 사이즈 및 타입이 특정 조건 2에 해당하지 않는 경우, 인코딩 장치/디코딩 장치는 상기 현재 블록 및/또는 주변 블록의 사이즈 및 타입이 특정 조건 3을 만족하는지 여부를 판단할 수 있다(S650). 상기 현재 블록 및/또는 주변 블록의 사이즈 및 타입이 특정 조건 3을 만족하는 경우, 인코딩 장치/디코딩 장치는 상기 현재 블록의 MPM 리스트를 리스트 3으로 구성할 수 있다(S660). If the size and type of the current block and / or neighboring block do not correspond to specific condition 2, the encoding device / decoding device determines whether the size and type of the current block and / or neighboring block satisfies specific condition 3. Can be (S650). When the size and type of the current block and / or the neighboring block satisfy a specific condition 3, the encoding device / decoding device may configure the MPM list of the current block as list 3 (S660).
한편, 상기 현재 블록에 인트라 예측이 적용되는 경우에 코딩 효율을 보다 향상시키는 방안으로, 상기 현재 블록의 주변 블록의 바운더리 값(boundary values)들을 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하는 방안이 제안될 수 있다.Meanwhile, a method of further improving coding efficiency when intra prediction is applied to the current block, and a method of deriving an intra prediction mode of the current block based on boundary values of neighboring blocks of the current block is provided. Can be suggested.
여기서, 상기 주변 블록의 바운더리 값들은 상기 현재 블록의 상측 및 좌측 주변에 위치하는 주변 샘플들을 나타낼 수 있다. 즉, 상기 주변 블록의 바운더리 값들은 상기 현재 블록의 인트라 예측에 사용되는 주변 샘플들을 나타낼 수 있다.Here, boundary values of the neighboring block may represent neighboring samples located near the upper side and the left side of the current block. That is, boundary values of the neighboring block may represent neighboring samples used for intra prediction of the current block.
도 7은 상기 현재 블록의 인트라 예측에 사용되는 상기 주변 샘플들을 예시적으로 나타낸다. 도 7을 참조하면 상기 현재 블록의 사이즈가 WxH 인 경우, 상기 현재 블록의 상기 주변 샘플들은 2W개의 상측 주변 샘플들, 2H개의 좌측 주변 샘플들 및 좌상측 코너 주변 샘플을 포함할 수 있다. 예를 들어, 상기 현재 블록의 사이즈가 WxH이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][0] 내지 p[-1][2H-1], 상기 좌상측 코너 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[2W-1][-1]일 수 있다.7 exemplarily shows the neighboring samples used for intra prediction of the current block. Referring to FIG. 7, when the size of the current block is WxH, the peripheral samples of the current block may include 2W upper peripheral samples, 2H left peripheral samples, and a left upper corner peripheral sample. For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
인코딩 장치/디코딩 장치는 상기 현재 블록의 주변 샘플들을 기반으로 상기 현재 블록의 인트라 예측 모드를 도출할 수 있다. 예를 들어, 인코딩 장치/디코딩 장치는 상기 주변 샘플들에 대한 특정 조건이 만족되는지 여부를 판단할 수 있고, 상기 주변 샘플들에 대한 특정 조건이 만족되는 경우, 명시적인(explicit) 인트라 예측 모드 정보없이 상기 현재 블록에 대한 인트라 예측 모드를 도출하고, 인트라 예측을 수행할 수 있다. 즉, 상기 주변 샘플들에 대한 특정 조건이 만족되는 경우, 상기 현재 블록에 대한 인트라 예측 모드 정보가 시그널링되지 않을 수 있다. 한편, 상기 명시적인 인트라 예측 모드 정보없이 인트라 예측 모드를 도출하는 방법은 암시적(implicit) 코딩이라고 나타낼 수 있다. The encoding device / decoding device may derive the intra prediction mode of the current block based on the neighboring samples of the current block. For example, the encoding device / decoding device may determine whether a specific condition for the surrounding samples is satisfied, and if the specific condition for the surrounding samples is satisfied, explicit intra prediction mode information. The intra prediction mode for the current block can be derived without performing intra prediction. That is, when a specific condition for the neighboring samples is satisfied, intra prediction mode information for the current block may not be signaled. Meanwhile, a method of deriving an intra prediction mode without the explicit intra prediction mode information may be referred to as implicit coding.
도 8a 및 도 8b는 인코딩 장치/디코딩 장치에서 상기 현재 블록의 주변 샘플들을 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하는 일 예를 나타낸다. 8A and 8B illustrate an example of deriving an intra prediction mode of the current block based on neighboring samples of the current block in an encoding device / decoding device.
도 8a는 인코딩 장치에서 상기 현재 블록의 주변 샘플들을 기반으로 상기 현재 블록의 인트라 예측 모드에 대한 정보를 코딩하는 일 예를 나타낼 수 있다. 도 8a를 참조하면 인코딩 장치는 상기 현재 블록의 주변 샘플들의 값들이 특정 조건을 만족하는지 여부를 판단할 수 있다(S800). 상기 현재 블록의 주변 샘플들의 값들이 특정 조건을 만족하는 경우, 인코딩 장치는 상기 특정 조건에 대한 인트라 예측 모드를 상기 현재 블록의 인트라 예측 모드로 도출할 수 있다.FIG. 8A illustrates an example of encoding information about an intra prediction mode of the current block based on neighboring samples of the current block in the encoding apparatus. Referring to FIG. 8A, the encoding apparatus may determine whether values of neighboring samples of the current block satisfy a specific condition (S800). When values of neighboring samples of the current block satisfy a specific condition, the encoding apparatus may derive an intra prediction mode for the specific condition as an intra prediction mode of the current block.
일 예로, 인트라 예측 모드들은 M 개의 서브 그룹으로 분류될 수 있고, 상기 현재 블록의 주변 샘플들의 값들이 특정 조건을 만족하는 경우, 인코딩 장치는 상기 특정 조건에 대한 특정 서브 그룹에 포함된 인트라 예측 모드들 중 하나를 상기 현재 블록의 인트라 예측 모드로 결정할 수 있다. 또한, 인코딩 장치는 상기 M개의 서브 그룹에 포함된 인트라 예측 모드들 중 상기 선택된 인트라 예측 모드를 가리키는 인덱스를 생성할 수 있다. 이를 통하여, 서브 그룹에 제한된 개수의 인트라 예측 모드들을 포함하는 서브 그룹에 대한 상기 인덱스가 시그널링될 수 있고, 상기 인덱스는 제한된 값의 범위로 코딩되어 전반적인 코딩 효율을 향상시킬 수 있다. 예를 들어, 상기 서브 그룹이 8개의 후보를 포함하는 경우, 상기 서브 그룹에 대한 인덱스는 0 내지 7의 값을 가질 수 있는바, 상기 인덱스는 3 비트로 코딩될 수 있다. 따라서, 상기 현재 블록의 인트라 예측 모드를 나타내는 정보에 대한 비트량을 줄일 수 있고, 코딩 효율을 향상시킬 수 있다.For example, intra prediction modes may be classified into M subgroups, and when values of neighboring samples of the current block satisfy a specific condition, the encoding apparatus may include an intra prediction mode included in a specific subgroup for the specific condition. One of these may be determined as the intra prediction mode of the current block. In addition, the encoding apparatus may generate an index indicating the selected intra prediction mode among the intra prediction modes included in the M subgroups. Through this, the index for the subgroup including a limited number of intra prediction modes in the subgroup may be signaled, and the index may be coded in a limited range of values to improve overall coding efficiency. For example, when the subgroup includes eight candidates, the index for the subgroup may have a value of 0 to 7, and the index may be coded with 3 bits. Therefore, the bit amount of the information indicating the intra prediction mode of the current block can be reduced, and coding efficiency can be improved.
한편, 상기 현재 블록의 주변 샘플들의 값들이 특정 조건을 만족하지 않는 경우, 인코딩 장치는 상기 현재 블록에 대한 인트라 예측 모드를 결정할 수 있고, 기존의 인트라 예측 모드 정보를 생성할 수 있다(S810).If the values of the neighboring samples of the current block do not satisfy a specific condition, the encoding apparatus may determine an intra prediction mode for the current block, and generate existing intra prediction mode information (S810).
도 8b는 디코딩 장치에서 상기 현재 블록의 인트라 예측 모드를 도출하는 일 예를 나타낼 수 있다. 도 8b를 참조하면 디코딩 장치는 상기 현재 블록의 주변 샘플들의 값들이 특정 조건을 만족하는지 여부를 판단할 수 있다(S820). 상기 현재 블록의 주변 샘플들의 값들이 특정 조건을 만족하는 경우, 디코딩 장치는 상기 특정 조건에 대한 인트라 예측 모드를 상기 현재 블록의 인트라 예측 모드로 도출할 수 있다(S830).8B illustrates an example of deriving an intra prediction mode of the current block in a decoding apparatus. Referring to FIG. 8B, the decoding apparatus may determine whether values of neighboring samples of the current block satisfy a specific condition (S820). If the values of the neighboring samples of the current block satisfy a specific condition, the decoding apparatus may derive an intra prediction mode for the specific condition as an intra prediction mode of the current block (S830).
일 예로, 인트라 예측 모드들은 M 개의 서브 그룹으로 분류될 수 있고, 상기 현재 블록의 주변 샘플들의 값들이 특정 조건을 만족하는 경우, 디코딩 장치는 상기 특정 조건에 대한 특정 서브 그룹에 포함된 인트라 예측 모드들 중 하나를 가리키는 인덱스를 획득할 수 있고, 상기 인덱스를 기반으로 상기 현재 블록의 인트라 예측 모드로 결정할 수 있다. 즉, 디코딩 장치는 상기 특정 조건에 대한 특정 서브 그룹에 포함된 인트라 예측 모드들 중 상기 인덱스가 가리키는 인트라 예측 모드를 상기 현재 블록의 인트라 예측 모드로 도출할 수 있다. For example, intra prediction modes may be classified into M subgroups, and when values of neighboring samples of the current block satisfy a specific condition, the decoding apparatus may include an intra prediction mode included in a specific subgroup for the specific condition. An index indicating one of the above may be obtained, and an intra prediction mode of the current block may be determined based on the index. That is, the decoding apparatus may derive the intra prediction mode indicated by the index among the intra prediction modes included in the specific subgroup for the specific condition as the intra prediction mode of the current block.
한편, 상기 현재 블록의 주변 샘플들의 값들이 특정 조건을 만족하지 않는 경우, 디코딩 장치는 기존의 인트라 예측 모드 정보(즉, 명시적인(explicit) 인트라 예측 모드 정보)를 획득할 수 있고, 상기 인트라 예측 모드 정보를 기반으로 상기 현재 블록에 대한 인트라 예측 모드를 도출할 수 있다(S840).On the other hand, if the values of the neighboring samples of the current block do not satisfy a specific condition, the decoding apparatus may obtain existing intra prediction mode information (that is, explicit intra prediction mode information), and the intra prediction An intra prediction mode for the current block may be derived based on mode information in operation S840.
도 9는 본 발명에 따른 인코딩 장치에 의한 영상 인코딩 방법을 개략적으로 나타낸다. 도 9에서 개시된 방법은 도 1에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 9의 S900 내지 S920은 상기 인코딩 장치의 예측부에 의하여 수행될 수 있고, S930은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다. 또한, 비록 도시되지는 않았으나 상기 현재 블록에 대한 원본 샘플과 예측 샘플을 기반으로 상기 현재 블록에 대한 레지듀얼 샘플을 도출하는 과정은 상기 인코딩 장치의 감산부에 의하여 수행될 수 있고, 상기 레지듀얼 샘플을 기반으로 상기 현재 블록에 대한 레지듀얼에 관한 정보를 생성하는 과정은 상기 인코딩 장치의 변환부에 의하여 수행될 수 있고, 상기 레지듀얼에 관한 정보를 인코딩하는 과정은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.9 schematically illustrates an image encoding method by an encoding apparatus according to the present invention. The method disclosed in FIG. 9 may be performed by the encoding apparatus disclosed in FIG. 1. Specifically, for example, S900 to S920 of FIG. 9 may be performed by the prediction unit of the encoding apparatus, and S930 may be performed by the entropy encoding unit of the encoding apparatus. In addition, although not shown, a process of deriving a residual sample for the current block based on an original sample and a prediction sample for the current block may be performed by a subtractor of the encoding apparatus. The generating of the information about the residual on the current block may be performed by a converter of the encoding apparatus, and the encoding of the information about the residual may be performed by an entropy encoding unit of the encoding apparatus. It can be performed by.
인코딩 장치는 현재 블록의 주변 블록을 기반으로 상기 현재 블록의 MPM(Most Probable Mode) 리스트를 구성한다(S900). 여기서, 일 예로, 상기 MPM 리스트는 3개의 MPM 후보들, 5개의 MPM 후보들, 또는 6개의 MPM 후보들을 포함할 수 있다.The encoding apparatus configures a Most Probable Mode (MPM) list of the current block based on the neighboring blocks of the current block (S900). Here, as an example, the MPM list may include three MPM candidates, five MPM candidates, or six MPM candidates.
예를 들어, 인코딩 장치는 상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성할 수 있다. 상기 주변 블록은 상기 현재 블록의 좌측 주변 블록 및/또는 상측 주변 블록을 포함할 수 있다. 인코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드를 도출할 수 있고, 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 인코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출할 수 있다. 인코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 인코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다.For example, the encoding apparatus may construct the MPM list of the current block based on the neighboring block of the current block. The neighboring block may include a left neighboring block and / or an upper neighboring block of the current block. The encoding apparatus may derive an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block, and the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block have an intra prediction. The mode can be determined. When the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block are the intra prediction modes having the vertical direction, the encoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order. have. The encoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the second order. Alternatively, the encoding apparatus may derive the intra prediction mode of the left neighboring block as MPM candidates in N-th order other than the first order.
또한, 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드 중 적어도 하나가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출할 수 있다. 인코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 인코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다. 여기서, 일 예로, 상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록일 수 있다.In addition, when at least one of the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block is not the intra prediction mode having the vertical direction, the intra prediction mode of the left neighboring block is the MPM candidate of the first order. Can be derived. The encoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the second order. Alternatively, the encoding apparatus may derive the intra prediction mode of the upper neighboring block as MPM candidates in N-th order other than the first order. Here, as an example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring block is (-1, H- 1) a block including a sample of coordinates, and the upper peripheral block may be a block including a sample of (W-1, -1) coordinates.
또한, 예를 들어, 인코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드를 도출할 수 있고, 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 인코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출할 수 있다. 인코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 인코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다. 또한, 상기 상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출할 수 있다. 인코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 인코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다.Also, for example, the encoding apparatus may derive an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block, and determine whether the intra prediction mode of the upper neighboring block is an intra prediction mode having vertical direction. can do. When the intra prediction mode of the upper neighboring block is the intra prediction mode having the vertical direction, the encoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order. The encoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the second order. Alternatively, the encoding apparatus may derive the intra prediction mode of the left neighboring block as MPM candidates in N-th order other than the first order. In addition, when the intra prediction mode of the upper neighboring block is not the intra prediction mode having the vertical direction, the intra prediction mode of the left neighboring block may be derived as the MPM candidate of the first order. The encoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the second order. Alternatively, the encoding apparatus may derive the intra prediction mode of the upper neighboring block as MPM candidates in N-th order other than the first order.
또한, 예를 들어, 인코딩 장치는 상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성할 수 있고, 상기 주변 블록은 상기 현재 블록의 우상측 주변 블록 및/또는 좌하측 주변 블록을 포함할 수 있다. 인코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드를 도출할 수 있고, 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 인코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출할 수 있다. 인코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 인코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다.Also, for example, the encoding apparatus may construct the MPM list of the current block based on the neighboring block of the current block, wherein the neighboring block is a right upper neighboring block and / or a lower left margin of the current block. It may include a block. The encoding apparatus may derive an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block, and the intra prediction mode of the right upper neighboring block and the intra prediction mode of the lower left neighboring block are vertical directional. It may be determined whether the intra prediction mode has a. When the intra prediction mode of the right upper neighboring block and the intra prediction mode of the lower left neighboring block are the intra prediction modes having the vertical direction, the encoding apparatus uses the intra prediction mode of the right upper neighboring block as the MPM candidate in the first order. Can be derived. The encoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the second order. Alternatively, the encoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the N-th order other than the first order.
또한, 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드 중 적어도 하나가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌하측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출할 수 있다. 인코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 인코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다. 여기서, 일 예로, 상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 우상측 주변 블록은 (W, -1) 좌표의 샘플을 포함하는 블록이고, 상기 좌하측 주변 블록은 (-1, H) 좌표의 샘플을 포함하는 블록일 수 있다.In addition, when at least one of the intra prediction mode of the upper right neighboring block and the intra prediction mode of the lower left neighboring block is not the intra prediction mode having the vertical direction, the intra prediction mode of the lower left neighboring block is performed in the first order. Can be derived as an MPM candidate. The encoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the second order. Alternatively, the encoding apparatus may derive the intra prediction mode of the right upper neighbor block as the MPM candidates in the N-th order other than the first order. For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the right upper peripheral block is (W, -1 ) A block including a sample of coordinates, and the lower left peripheral block may be a block including a sample of (-1, H) coordinates.
또한, 예를 들어, 인코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드를 도출할 수 있고, 상기 우상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 우상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 인코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출할 수 있다. 인코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 인코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다.Also, for example, the encoding apparatus may derive an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block, and the intra prediction mode of the right upper neighboring block has an intra prediction with vertical orientation. The mode can be determined. When the intra prediction mode of the right upper neighboring block is the intra prediction mode having the vertical direction, the encoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the first order. The encoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the second order. Alternatively, the encoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the N-th order other than the first order.
또한, 상기 우상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌하측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출할 수 있다. 인코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 인코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다. In addition, when the intra prediction mode of the upper right neighboring block is not the intra prediction mode having the vertical direction, the intra prediction mode of the lower left neighboring block may be derived as the MPM candidate in the first order. The encoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the second order. Alternatively, the encoding apparatus may derive the intra prediction mode of the right upper neighbor block as the MPM candidates in the N-th order other than the first order.
또한, 예를 들어, 인코딩 장치는 상기 현재 블록의 사이즈 및/또는 타입, 상기 주변 블록의 사이즈 및/또는 타입을 기반으로 상기 현재 블록에 대한 MPM 리스트를 구성할 수 있다. 여기서, 상기 주변 블록은 상기 현재 블록의 상기 좌측 주변 블록, 상기 상측 주변 블록, 상기 좌하측 주변 블록, 상기 우상측 주변 블록 및/또는 상기 좌상측 주변 블록을 포함할 수 있다. 또한, 블록의 타입은 정방형(square) 블록 또는 비정방형(non-square) 블록일 수 있다.Also, for example, the encoding apparatus may construct an MPM list for the current block based on the size and / or type of the current block and the size and / or type of the neighboring block. Here, the peripheral block may include the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block, and / or the upper left peripheral block of the current block. In addition, the type of block may be a square block or a non-square block.
일 예로, 인코딩 장치는 상기 현재 블록의 사이즈 및 타입, 상기 주변 블록의 사이즈 및 타입에 대한 N개의 조건을 기반으로 상기 현재 블록에 대한 MPM 리스트를 구성할 수 있다. 상기 N 은 1 이상일 수 있다. 인코딩 장치는 상기 현재 블록의 사이즈, 상기 현재 블록의 타입, 상기 주변 블록의 사이즈, 및/또는 상기 주변 블록의 타입이 조건에 해당하는지 판단할 수 있고, 제1 조건에서 제N 조건 순으로 판단할 수 있다. 상기 현재 블록의 사이즈, 상기 현재 블록의 타입, 상기 주변 블록의 사이즈, 및/또는 상기 주변 블록의 타입이 특정 조건에 해당하는 경우, 상기 특정 조건에 대한 리스트로 상기 MPM 리스트를 구성할 수 있다. 예를 들어, 상기 특정 조건에 대한 리스트는 상기 현재 블록의 주변 블록에 인트라 예측 모드 및 디폴트(default) 인트라 예측 모드를 기반으로 도출된 MPM 후보들을 특정 순서로 포함할 수 있다. 또한, 상기 MPM 리스트 구성을 위한 조건으로 상기 현재 블록이 비정방형 블록인지 여부, 상기 좌측 주변 블록, 상기 상측 주변 블록, 상기 좌하측 주변 블록, 상기 우상측 주변 블록 및/또는 상기 좌상측 주변 블록이 비정방형 블록인지 여부, 상기 현재 블록의 사이즈가 특정 사이즈 이상인지 여부, 상기 좌측 주변 블록, 상기 상측 주변 블록, 상기 좌하측 주변 블록, 상기 우상측 주변 블록 및/또는 상기 좌상측 주변 블록의 사이즈가 특정 사이즈 이상인지 여부 등이 포함될 수 있다. 일 예로, 상기 현재 블록이 폭이 높이보다 큰 비정방형 블록인 경우, 인코딩 장치는 수평 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보로 도출할 수 있다. 즉, 인코딩 장치는 상기 수평 방향성을 갖는 인트라 예측 모드를 이외의 인트라 예측 모드보다 앞선 순서의 MPM 후보로 도출할 수 있다. 또한, 상기 현재 블록이 높이가 폭보다 큰 비정방형 블록인 경우, 인코딩 장치는 수직 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보로 도출할 수 있다. 즉, 인코딩 장치는 상기 수직 방향성을 갖는 인트라 예측 모드를 이외의 인트라 예측 모드보다 앞선 순서의 MPM 후보로 도출할 수 있다. 상기 현재 블록은 블록 파티셔닝(block partitioning) 과정에서 (파티셔닝) 대상 블록을 수평 방향으로 분할하여 도출된 서브 블록 또는 (파티셔닝) 대상 블록을 수직 방향으로 분할하여 도출된 서브 블록일 수 있는바, 상술한 내용과 같이 분할된 타입을 고려하여 MPM 리스트를 구성하는 경우, 현재 블록의 특성을 고려하여 예측이 수행될 수 있으며 예측 정확도가 향상될 수 있다.As an example, the encoding apparatus may construct an MPM list for the current block based on N conditions for the size and type of the current block and the size and type of the neighboring block. N may be one or more. The encoding apparatus may determine whether the size of the current block, the type of the current block, the size of the neighboring block, and / or the type of the neighboring block correspond to a condition, and determine in order of the Nth condition in the first condition. Can be. When the size of the current block, the type of the current block, the size of the neighboring block, and / or the type of the neighboring block correspond to a specific condition, the MPM list may be configured as a list for the specific condition. For example, the list for the specific condition may include MPM candidates derived based on an intra prediction mode and a default intra prediction mode in a neighboring block of the current block in a specific order. Further, as a condition for constructing the MPM list, whether the current block is a non-square block, the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block and / or the upper left peripheral block Whether it is a non-square block, whether the size of the current block is greater than or equal to a specific size, the size of the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block and / or the upper left peripheral block It may include whether or not more than a specific size. As an example, when the current block is a non-square block having a width greater than the height, the encoding apparatus may first derive an intra prediction mode having horizontal directionality as an MPM candidate for the current block. That is, the encoding apparatus may derive the intra prediction mode having the horizontal directionality as the MPM candidates in the order before the intra prediction modes. In addition, when the current block is a non-square block having a height greater than the width, the encoding apparatus may preferentially derive an intra prediction mode having vertical orientation as an MPM candidate for the current block. That is, the encoding apparatus may derive the intra prediction mode having the vertical direction as the MPM candidates in the order before the intra prediction modes. The current block may be a subblock derived by dividing the (partitioning) target block in the horizontal direction during the block partitioning process or a subblock derived by dividing the (partitioning) target block in the vertical direction. When the MPM list is constructed in consideration of the divided type as described above, the prediction may be performed in consideration of the characteristics of the current block, and the prediction accuracy may be improved.
일 예로, 상기 현재 블록이 폭이 높이보다 큰 비정방형 블록인 경우, 인코딩 장치는 수평 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보를 다음과 같이 도출할 수 있다.As an example, when the current block is a non-square block having a width greater than the height, the encoding apparatus may first derive an MPM candidate for the current block with an intra prediction mode having horizontal directionality as follows.
MPM [0] = PLANAR_IDX (0번 플래너 인트라 예측 모드)MPM [0] = PLANAR_IDX (Planner Intra Prediction Mode 0)
MPM [1] = HOR_IDX (18번 수평 방향 인트라 예측 모드)MPM [1] = HOR_IDX (No. 18 horizontal intra prediction mode)
MPM [2] = 25 (25번 인트라 예측 모드)MPM [2] = 25 (intra prediction mode 25)
MPM [3] = 10 (10번 인트라 예측 모드)MPM [3] = 10 (10 intra prediction mode)
MPM [4] = 65 (65번 인트라 예측 모드)MPM [4] = 65 (intra prediction mode 65)
MPM [5] = VER_IDX (50번 수직 방향 인트라 예측 모드)MPM [5] = VER_IDX (No. 50 vertical intra prediction mode)
즉, 인코딩 장치는 상기 수평 방향성을 갖는 인트라 예측 모드를 이외의 인트라 예측 모드보다 앞선 순서의 MPM 후보로 도출할 수 있다. That is, the encoding apparatus may derive the intra prediction mode having the horizontal directionality as the MPM candidates in the order before the intra prediction modes.
또한, 상기 현재 블록이 높이가 폭보다 큰 비정방형 블록인 경우, 인코딩 장치는 수직 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보를 다음과 같이 도출할 수 있다.In addition, when the current block is a non-square block whose height is greater than the width, the encoding apparatus may first derive the MPM candidate for the current block as follows, in the intra prediction mode having the vertical direction.
MPM [0] = PLANAR_IDX (0번 플래너 인트라 예측 모드)MPM [0] = PLANAR_IDX (Planner Intra Prediction Mode 0)
MPM [1] = VER_IDX (50번 수직 방향 인트라 예측 모드)MPM [1] = VER_IDX (No. 50 vertical intra prediction mode)
MPM [2] = 43 (43번 인트라 예측 모드)MPM [2] = 43 (Intra-prediction mode 43)
MPM [3] = 60 (60번 인트라 예측 모드)MPM [3] = 60 (intra prediction mode 60)
MPM [4] = 3 (3번 인트라 예측 모드)MPM [4] = 3 (intra prediction mode 3)
MPM [5] = HOR_IDX (18번 수평 방향 인트라 예측 모드)MPM [5] = HOR_IDX (No. 18 horizontal intra prediction mode)
즉, 인코딩 장치는 상기 수직 방향성을 갖는 인트라 예측 모드를 이외의 인트라 예측 모드보다 앞선 순서의 MPM 후보로 도출할 수 있다.That is, the encoding apparatus may derive the intra prediction mode having the vertical direction as the MPM candidates in the order before the intra prediction modes.
다른 일 예로, 인코딩 장치는 처음 N (예를 들어, N은 3과 동일)개의 MPM 후보는 주변 블록의 모드를 기반으로 도출 할 수 있고, 나머지 MPM 후보들의 경우 상기 현재 블록이 폭이 높이보다 큰 비정방형 블록인 경우, 수평 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보를 다음과 같이 도출할 수 있다.As another example, the encoding apparatus may derive the first N (eg, N equal to 3) MPM candidates based on the mode of the neighboring block, and for the remaining MPM candidates, the current block is larger than the height. In the case of a non-square block, the MPM candidate for the current block may be derived as follows in the intra prediction mode having horizontal directionality as follows.
MPM [3] = HOR_IDX (18번 수평 방향 인트라 예측 모드)MPM [3] = HOR_IDX (No. 18 horizontal intra prediction mode)
MPM [4] = 5 (5번 인트라 예측 모드)MPM [4] = 5 (intra prediction mode 5)
MPM [5] = PLANAR_IDX (0번 플래너 인트라 예측 모드)MPM [5] = PLANAR_IDX (Planner Intra Prediction Mode 0)
또한, 상기 현재 블록이 높이가 폭보다 큰 비정방형 블록인 경우, 인코딩 장치는 수직 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 나머지 MPM 후보들을 다음과 같이 도출할 수 있다.In addition, when the current block is a non-square block having a height greater than the width, the encoding apparatus may first derive the remaining MPM candidates for the current block with the intra prediction mode having the vertical direction as follows.
MPM [3] = VER_IDX (50번 수직 방향 인트라 예측 모드)MPM [3] = VER_IDX (No. 50 vertical intra prediction mode)
MPM [4] = VER_IDX - 3MPM [4] = VER_IDX-3
MPM [5] = PLANAR_IDX (0번 플래너 인트라 예측 모드)MPM [5] = PLANAR_IDX (Planner Intra Prediction Mode 0)
인코딩 장치는 현재 블록에 대한 인트라 예측 모드를 결정한다(S910). 인코딩 장치는 다양한 인트라 예측 모드들을 수행하여 최적의 RD 코스트를 갖는 인트라 예측 모드를 상기 현재 블록에 대한 인트라 예측 모드로 도출할 수 있다. 상기 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 65개의 인트라 방향성 예측 모드들 중 하나일 수 있다. 상기 2개의 비방향성 인트라 예측 모드들은 인트라 DC 모드 및 인트라 플래너 모드를 포함할 수 있음은 상술한 바와 같다.The encoding apparatus determines an intra prediction mode for the current block (S910). The encoding apparatus may perform various intra prediction modes to derive an intra prediction mode having an optimal RD cost as an intra prediction mode for the current block. The intra prediction mode may be one of two non-directional intra prediction modes and 65 intra directional prediction modes. As described above, the two non-directional intra prediction modes may include an intra DC mode and an intra planner mode.
인코딩 장치는 상기 결정된 인트라 예측 모드가 상기 MPM 리스트의 MPM 후보들에 포함되는지 여부를 나타내는 MPM 플래그를 생성할 수 있다. 상기 결정된 인트라 예측 모드가 상기 MPM 리스트의 상기 MPM 후보들에 포함되는 경우, 상기 MPM 후보들 중 상기 결정된 인트라 예측 모드를 가리키는 MPM 인덱스를 생성할 수 있다. 상기 결정된 인트라 예측 모드가 상기 MPM 리스트의 상기 MPM 후보들에 포함되지 않는 경우, 상기 MPM 후보들에 포함되지 않은 나머지 인트라 예측 모드들 중 상기 결정된 인트라 예측 모드를 가리키는 리메이닝(remaining) 인트라 예측 모드 정보를 생성할 수 있다. 한편, 상기 결정된 인트라 예측 모드가 상기 MPM 리스트의 상기 MPM 후보들에 포함되는 경우, 인코딩 장치는 상기 MPM 플래그를 시그널링하지 않을 수 있고, 상기 MPM 플래그의 값은 1로 도출될 수 있다. The encoding apparatus may generate an MPM flag indicating whether the determined intra prediction mode is included in the MPM candidates of the MPM list. When the determined intra prediction mode is included in the MPM candidates of the MPM list, an MPM index indicating the determined intra prediction mode among the MPM candidates may be generated. When the determined intra prediction mode is not included in the MPM candidates of the MPM list, generating remaining intra prediction mode information indicating the determined intra prediction mode among remaining intra prediction modes not included in the MPM candidates. can do. Meanwhile, when the determined intra prediction mode is included in the MPM candidates of the MPM list, the encoding apparatus may not signal the MPM flag, and the value of the MPM flag may be derived as 1.
또한, 일 예로, 인코딩 장치는 상기 현재 블록의 주변 샘플들을 기반으로 상기 현재 블록에 대한 상기 인트라 예측 모드를 결정할 수 있다. 구체적으로, 인코딩 장치는 상기 주변 샘플들의 샘플값들이 특정 조건에 해당하는지 판단할 수 있다. 예를 들어, 인코딩 장치는 상기 현재 블록의 주변 샘플들에 대한 대표값을 도출할 수 있고, 상기 대표값이 특정값보다 큰지 판단할 수 있다. 상기 대표값은 상기 주변 샘플들의 샘플값들의 평균값 또는 중간값 등일 수 있다. 여기서, 상기 주변 샘플들은 상기 현재 블록의 좌상측 코너 주변 샘플, 상측 주변 샘플들 및 좌측 주변 샘플들을 포함할 수 있다. 예를 들어, 상기 현재 블록의 사이즈가 WxH이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][0] 내지 p[-1][2H-1], 상기 좌상측 코너 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[2W-1][-1]일 수 있다.Also, as an example, the encoding apparatus may determine the intra prediction mode for the current block based on neighboring samples of the current block. In detail, the encoding apparatus may determine whether the sample values of the neighboring samples correspond to a specific condition. For example, the encoding apparatus may derive a representative value for neighboring samples of the current block, and determine whether the representative value is greater than a specific value. The representative value may be an average value or a median value of the sample values of the peripheral samples. Here, the peripheral samples may include upper left corner samples, upper peripheral samples, and left peripheral samples of the current block. For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
상기 주변 샘플들의 샘플값들이 특정 조건에 해당하는 경우, 인코딩 장치는 상기 특정 조건에 대한 인트라 예측 모드를 상기 현재 블록에 대한 인트라 예측 모드로 결정할 수 있다. 또는, 예를 들어, 상기 주변 샘플들의 샘플값들이 특정 조건에 해당하는 경우, 인코딩 장치는 상기 특정 조건에 대한 M개의 인트라 예측 모드들을 도출할 수 있고, 상기 M개의 인트라 예측 모드들 중 상기 현재 블록에 대한 상기 인트라 예측 모드를 결정할 수 있다. 이 경우, 인코딩 장치는 상기 M개의 인트라 예측 모드들 중 상기 결정된 인트라 예측 모드를 가리키는 인덱스를 생성할 수 있다. If the sample values of the neighboring samples correspond to a specific condition, the encoding apparatus may determine an intra prediction mode for the specific condition as an intra prediction mode for the current block. Or, for example, when the sample values of the neighboring samples correspond to a specific condition, the encoding apparatus may derive M intra prediction modes for the specific condition, and the current block of the M intra prediction modes. The intra prediction mode for may be determined. In this case, the encoding apparatus may generate an index indicating the determined intra prediction mode among the M intra prediction modes.
인코딩 장치는 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측 샘플을 생성한다(S920). 인코딩 장치는 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 주변 샘플들 중 적어도 하나의 주변 샘플을 도출할 수 있고, 상기 주변 샘플을 기반으로 상기 예측 샘플을 생성할 수 있다. 상기 주변 샘플들은 상기 현재 블록의 좌상측 코너 주변 샘플, 상측 주변 샘플들 및 좌측 주변 샘플들을 포함할 수 있다. 예를 들어, 상기 현재 블록의 사이즈가 WxH이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][0] 내지 p[-1][2H-1], 상기 좌상측 코너 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[2W-1][-1]일 수 있다.The encoding apparatus generates a prediction sample for the current block based on the intra prediction mode (S920). The encoding apparatus may derive at least one neighboring sample of the neighboring samples of the current block based on the intra prediction mode, and generate the predictive sample based on the neighboring sample. The peripheral samples may include upper left corner peripheral samples, upper peripheral samples, and left peripheral samples of the current block. For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
인코딩 장치는 상기 현재 블록에 대한 인트라 예측 모드 정보를 인코딩한다(S930). 인코딩 장치는 상기 현재 블록에 대한 상기 인트라 예측 모드 정보를 인코딩할 수 있고, 비트스트림 형태로 출력할 수 있다. 상기 인트라 예측 모드 정보는 상기 MPM 플래그, 상기 MPM 인덱스 및/또는 상기 리메이닝 인트라 예측 모드 정보를 포함할 수 있다. 또한, 예를 들어, 상기 주변 샘플들의 샘플값들이 상기 특정 조건에 해당하는 경우, 인코딩 장치는 상기 M개의 인트라 예측 모드들 중 상기 결정된 인트라 예측 모드를 가리키는 인덱스를 생성할 수 있고, 상기 인덱스를 인코딩하여 비트스트림 형태로 출력할 수 있다. 한편, 상기 비트스트림은 네트워크 또는 (디지털) 저장매체를 통하여 디코딩 장치로 전송될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다.The encoding device encodes intra prediction mode information on the current block (S930). The encoding apparatus may encode the intra prediction mode information on the current block and output the bit stream in the form of a bitstream. The intra prediction mode information may include the MPM flag, the MPM index and / or the remaining intra prediction mode information. Also, for example, when the sample values of the neighboring samples correspond to the specific condition, the encoding apparatus may generate an index indicating the determined intra prediction mode among the M intra prediction modes, and encode the index. Can be output in the form of a bitstream. Meanwhile, the bitstream may be transmitted to a decoding device through a network or a (digital) storage medium. The network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like.
도 10은 본 발명에 따른 영상 인코딩 방법을 수행하는 인코딩 장치를 개략적으로 나타낸다. 도 9에서 개시된 방법은 도 10에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 10의 상기 인코딩 장치의 예측부는 도 9의 S900 내지 S920을 수행할 수 있고, 도 10의 상기 인코딩 장치의 엔트로피 인코딩부는 도 9의 S930을 수행할 수 있다. 또한, 비록 도시되지는 않았으나 상기 현재 블록에 대한 원본 샘플과 예측 샘플을 기반으로 상기 현재 블록에 대한 레지듀얼 샘플을 도출하는 과정은 도 10의 상기 인코딩 장치의 감산부에 의하여 수행될 수 있고, 상기 레지듀얼 샘플을 기반으로 상기 현재 블록에 대한 레지듀얼에 관한 정보를 생성하는 과정은 도 10의 상기 인코딩 장치의 변환부에 의하여 수행될 수 있고, 상기 레지듀얼에 관한 정보를 인코딩하는 과정은 도 10의 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.10 schematically illustrates an encoding apparatus for performing an image encoding method according to the present invention. The method disclosed in FIG. 9 may be performed by the encoding apparatus disclosed in FIG. 10. Specifically, for example, the prediction unit of the encoding apparatus of FIG. 10 may perform S900 to S920 of FIG. 9, and the entropy encoding unit of the encoding apparatus of FIG. 10 may perform S930 of FIG. 9. Although not shown, a process of deriving a residual sample for the current block based on the original sample and the prediction sample for the current block may be performed by the subtraction unit of the encoding apparatus of FIG. 10. The generating of the information about the residual for the current block based on the residual sample may be performed by the converter of the encoding apparatus of FIG. 10, and the encoding of the residual information may be performed in FIG. 10. May be performed by an entropy encoding unit of the encoding apparatus.
도 11은 본 발명에 따른 디코딩 장치에 의한 영상 디코딩 방법을 개략적으로 나타낸다. 도 11에서 개시된 방법은 도 2에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 11의 S1100 내지 S1120은 상기 디코딩 장치의 예측부에 의하여 수행될 수 있다. 또한, 비록 도시되지는 않았으나 비트스트림을 통하여 상기 현재 블록에 대한 인트라 예측 모드 정보를 획득하는 과정 및 비트스트림을 통하여 상기 현재 블록에 대한 레지듀얼에 관한 정보를 획득하는 과정은 상기 디코딩 장치의 엔트로피 디코딩부에 의하여 수행될 수 있고, 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플을 도출하는 과정은 상기 디코딩 장치의 역변환부에 의하여 수행될 수 있고, 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 픽처를 생성하는 과정은 상기 디코딩 장치의 가산부에 의하여 수행될 수 있다.11 schematically illustrates an image decoding method by a decoding apparatus according to the present invention. The method disclosed in FIG. 11 may be performed by the decoding apparatus disclosed in FIG. 2. Specifically, for example, S1100 to S1120 of FIG. 11 may be performed by the prediction unit of the decoding apparatus. In addition, although not shown, the process of acquiring intra prediction mode information on the current block through the bitstream and the process of acquiring information on the residual of the current block through the bitstream may include entropy decoding of the decoding apparatus. The derivation of the residual sample for the current block based on the residual information may be performed by an inverse transform unit of the decoding apparatus, and the prediction sample and the residual sample The process of generating a reconstructed picture based on may be performed by an adder of the decoding apparatus.
디코딩 장치는 현재 블록의 주변 블록을 기반으로 상기 현재 블록의 MPM(Most Probable Mode) 리스트를 구성한다(S1100). 여기서, 일 예로, 상기 MPM 리스트는 3개의 MPM 후보들, 5개의 MPM 후보들 또는 6개의 MPM 후보들을 포함할 수 있다.The decoding apparatus configures a Most Probable Mode (MPM) list of the current block based on the neighboring blocks of the current block (S1100). Here, as an example, the MPM list may include three MPM candidates, five MPM candidates, or six MPM candidates.
예를 들어, 디코딩 장치는 상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성할 수 있다. 상기 주변 블록은 상기 현재 블록의 좌측 주변 블록 및/또는 상측 주변 블록을 포함할 수 있다. 디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드를 도출할 수 있고, 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출할 수 있다. 디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다.For example, the decoding apparatus may configure the MPM list of the current block based on the neighboring block of the current block. The neighboring block may include a left neighboring block and / or an upper neighboring block of the current block. The decoding apparatus may derive an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block, and the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block have an intra prediction. The mode can be determined. When the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block are the intra prediction modes having the vertical direction, the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order. have. The decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the second order. Alternatively, the decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the N-th order other than the first order.
또한, 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드 중 적어도 하나가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출할 수 있다. 디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다. 여기서, 일 예로, 상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록일 수 있다.In addition, when at least one of the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block is not the intra prediction mode having the vertical direction, the intra prediction mode of the left neighboring block is the MPM candidate of the first order. Can be derived. The decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the second order. Alternatively, the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the N-th order other than the first order. Here, as an example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring block is (-1, H- 1) a block including a sample of coordinates, and the upper peripheral block may be a block including a sample of (W-1, -1) coordinates.
또한, 예를 들어, 디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드를 도출할 수 있고, 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출할 수 있다. 디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 디코딩 장치는 상기 좌측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다. 또한, 상기 상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출할 수 있다. 디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 디코딩 장치는 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다.Also, for example, the decoding apparatus may derive an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block, and determine whether the intra prediction mode of the upper neighboring block is an intra prediction mode having vertical orientation. can do. When the intra prediction mode of the upper neighboring block is the intra prediction mode having the vertical direction, the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the first order. The decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the second order. Alternatively, the decoding apparatus may derive the intra prediction mode of the left neighboring block as the MPM candidates in the N-th order other than the first order. In addition, when the intra prediction mode of the upper neighboring block is not the intra prediction mode having the vertical direction, the intra prediction mode of the left neighboring block may be derived as the MPM candidate of the first order. The decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the second order. Alternatively, the decoding apparatus may derive the intra prediction mode of the upper neighboring block as the MPM candidates in the N-th order other than the first order.
또한, 예를 들어, 디코딩 장치는 상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성할 수 있고, 상기 주변 블록은 상기 현재 블록의 우상측 주변 블록 및/또는 좌하측 주변 블록을 포함할 수 있다. 디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드를 도출할 수 있고, 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출할 수 있다. 디코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 디코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다.Also, for example, the decoding apparatus may construct the MPM list of the current block based on the neighboring block of the current block, wherein the neighboring block is a right upper neighboring block and / or a lower left margin of the current block. It may include a block. The decoding apparatus may derive an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block, and the intra prediction mode of the right upper neighboring block and the intra prediction mode of the lower left neighboring block are vertical directional. It may be determined whether the intra prediction mode has a. When the intra prediction mode of the right upper neighboring block and the intra prediction mode of the lower left neighboring block are the intra prediction modes having the vertical direction, the decoding apparatus sets the intra prediction mode of the right upper neighboring block as the MPM candidate in the first order. Can be derived. The decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the second order. Alternatively, the decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the N-th order other than the first order.
또한, 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드 중 적어도 하나가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌하측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출할 수 있다. 디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다. 여기서, 일 예로, 상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 우상측 주변 블록은 (W, -1) 좌표의 샘플을 포함하는 블록이고, 상기 좌하측 주변 블록은 (-1, H) 좌표의 샘플을 포함하는 블록일 수 있다.In addition, when at least one of the intra prediction mode of the upper right neighboring block and the intra prediction mode of the lower left neighboring block is not the intra prediction mode having the vertical direction, the intra prediction mode of the lower left neighboring block is performed in the first order. Can be derived as an MPM candidate. The decoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the second order. Alternatively, the decoding apparatus may derive the intra prediction mode of the right upper neighbor block as the MPM candidates in the N-th order other than the first order. For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the right upper peripheral block is (W, -1 ) A block including a sample of coordinates, and the lower left peripheral block may be a block including a sample of (-1, H) coordinates.
또한, 예를 들어, 디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드를 도출할 수 있고, 상기 우상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단할 수 있다. 상기 우상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출할 수 있다. 디코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 디코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다.Also, for example, the decoding apparatus may derive an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block, and the intra prediction mode of the right upper neighboring block has an intra prediction with vertical direction. The mode can be determined. When the intra prediction mode of the right upper neighboring block is the intra prediction mode having the vertical direction, the decoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the first order. The decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the second order. Alternatively, the decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the N-th order other than the first order.
또한, 상기 우상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 디코딩 장치는 상기 좌하측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출할 수 있다. 디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 두번째 순서의 MPM 후보로 도출할 수 있다. 또는, 디코딩 장치는 상기 우상측 주변 블록의 인트라 예측 모드를 첫번째 순서 이외의 N번째 순서의 MPM 후보로 도출할 수 있다. In addition, when the intra prediction mode of the right upper neighboring block is not the intra prediction mode having the vertical direction, the decoding apparatus may derive the intra prediction mode of the lower left neighboring block as the MPM candidates in the first order. The decoding apparatus may derive the intra prediction mode of the right upper neighboring block as the MPM candidates in the second order. Alternatively, the decoding apparatus may derive the intra prediction mode of the right upper neighbor block as the MPM candidates in the N-th order other than the first order.
또한, 예를 들어, 디코딩 장치는 상기 현재 블록의 사이즈 및/또는 타입, 상기 주변 블록의 사이즈 및/또는 타입을 기반으로 상기 현재 블록에 대한 MPM 리스트를 구성할 수 있다. 여기서, 상기 주변 블록은 상기 현재 블록의 상기 좌측 주변 블록, 상기 상측 주변 블록, 상기 좌하측 주변 블록, 상기 우상측 주변 블록 및/또는 상기 좌상측 주변 블록을 포함할 수 있다. 또한, 블록의 타입은 정방형(square) 블록 또는 비정방형(non-square) 블록일 수 있다.Also, for example, the decoding apparatus may construct an MPM list for the current block based on the size and / or type of the current block and the size and / or type of the neighboring block. Here, the peripheral block may include the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block, and / or the upper left peripheral block of the current block. In addition, the type of block may be a square block or a non-square block.
일 예로, 디코딩 장치는 상기 현재 블록의 사이즈 및 타입, 상기 주변 블록의 사이즈 및 타입에 대한 N개의 조건을 기반으로 상기 현재 블록에 대한 MPM 리스트를 구성할 수 있다. 상기 N 은 1 이상일 수 있다. 디코딩 장치는 상기 현재 블록의 사이즈, 상기 현재 블록의 타입, 상기 주변 블록의 사이즈, 및/또는 상기 주변 블록의 타입이 조건에 해당하는지 판단할 수 있고, 제1 조건에서 제N 조건 순으로 판단할 수 있다. 상기 현재 블록의 사이즈, 상기 현재 블록의 타입, 상기 주변 블록의 사이즈, 및/또는 상기 주변 블록의 타입이 특정 조건에 해당하는 경우, 상기 특정 조건에 대한 리스트로 상기 MPM 리스트를 구성할 수 있다. 예를 들어, 상기 특정 조건에 대한 리스트는 상기 현재 블록의 주변 블록에 인트라 예측 모드 및 디폴트(default) 인트라 예측 모드를 기반으로 도출된 MPM 후보들을 특정 순서로 포함할 수 있다. 또한, 상기 MPM 리스트 구성을 위한 조건으로 상기 현재 블록이 비정방형 블록인지 여부, 상기 좌측 주변 블록, 상기 상측 주변 블록, 상기 좌하측 주변 블록, 상기 우상측 주변 블록 및/또는 상기 좌상측 주변 블록이 비정방형 블록인지 여부, 상기 현재 블록의 사이즈가 특정 사이즈 이상인지 여부, 상기 좌측 주변 블록, 상기 상측 주변 블록, 상기 좌하측 주변 블록, 상기 우상측 주변 블록 및/또는 상기 좌상측 주변 블록의 사이즈가 특정 사이즈 이상인지 여부 등이 포함될 수 있다. 일 예로, 상기 현재 블록이 폭이 높이보다 큰 비정방형 블록인 경우, 디코딩 장치는 수평 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보로 도출할 수 있다. 즉, 디코딩 장치는 상기 수평 방향성을 갖는 인트라 예측 모드를 이외의 인트라 예측 모드보다 앞선 순서의 MPM 후보로 도출할 수 있다. 또한, 상기 현재 블록이 높이가 폭보다 큰 비정방형 블록인 경우, 디코딩 장치는 수직 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보로 도출할 수 있다. 즉, 디코딩 장치는 상기 수직 방향성을 갖는 인트라 예측 모드를 이외의 인트라 예측 모드보다 앞선 순서의 MPM 후보로 도출할 수 있다. 상기 현재 블록은 블록 파티셔닝(block partitioning) 과정에서 (파티셔닝) 대상 블록을 수평 방향으로 분할하여 도출된 서브 블록 또는 (파티셔닝) 대상 블록을 수직 방향으로 분할하여 도출된 서브 블록일 수 있는바, 상술한 내용과 같이 분할된 타입을 고려하여 MPM 리스트를 구성하는 경우, 현재 블록의 특성을 고려하여 예측이 수행될 수 있으며 예측 정확도가 향상될 수 있다.For example, the decoding apparatus may configure an MPM list for the current block based on N conditions for the size and type of the current block and the size and type of the neighboring block. N may be one or more. The decoding apparatus may determine whether the size of the current block, the type of the current block, the size of the neighboring block, and / or the type of the neighboring block correspond to a condition, and determine in order of the Nth condition in the first condition. Can be. When the size of the current block, the type of the current block, the size of the neighboring block, and / or the type of the neighboring block correspond to a specific condition, the MPM list may be configured as a list for the specific condition. For example, the list for the specific condition may include MPM candidates derived based on an intra prediction mode and a default intra prediction mode in a neighboring block of the current block in a specific order. Further, as a condition for constructing the MPM list, whether the current block is a non-square block, the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block and / or the upper left peripheral block Whether it is a non-square block, whether the size of the current block is greater than or equal to a specific size, the size of the left peripheral block, the upper peripheral block, the lower left peripheral block, the right upper peripheral block and / or the upper left peripheral block It may include whether or not more than a specific size. As an example, when the current block is a non-square block having a width greater than the height, the decoding apparatus may preferentially derive an intra prediction mode having horizontal directionality as an MPM candidate for the current block. That is, the decoding apparatus may derive the intra prediction mode having the horizontal directionality as the MPM candidates in the order before the intra prediction modes other than the intra prediction mode. In addition, when the current block is a non-square block whose height is greater than the width, the decoding apparatus may preferentially derive an intra prediction mode having vertical orientation as an MPM candidate for the current block. That is, the decoding apparatus may derive the intra prediction mode having the vertical direction as the MPM candidates in the order before the intra prediction modes. The current block may be a subblock derived by dividing the (partitioning) target block in the horizontal direction during the block partitioning process or a subblock derived by dividing the (partitioning) target block in the vertical direction. When the MPM list is constructed in consideration of the divided type as described above, the prediction may be performed in consideration of the characteristics of the current block, and the prediction accuracy may be improved.
일 예로, 상기 현재 블록이 폭이 높이보다 큰 비정방형 블록인 경우, 디코딩 장치는 수평 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보를 다음과 같이 도출할 수 있다.As an example, when the current block is a non-square block having a width greater than the height, the decoding apparatus may first derive an MPM candidate for the current block with an intra prediction mode having horizontal directionality as follows.
MPM [0] = PLANAR_IDX (0번 플래너 인트라 예측 모드)MPM [0] = PLANAR_IDX (Planner Intra Prediction Mode 0)
MPM [1] = HOR_IDX (18번 수평 방향 인트라 예측 모드)MPM [1] = HOR_IDX (No. 18 horizontal intra prediction mode)
MPM [2] = 25 (25번 인트라 예측 모드)MPM [2] = 25 (intra prediction mode 25)
MPM [3] = 10 (10번 인트라 예측 모드)MPM [3] = 10 (10 intra prediction mode)
MPM [4] = 65 (65번 인트라 예측 모드)MPM [4] = 65 (intra prediction mode 65)
MPM [5] = VER_IDX (50번 수직 방향 인트라 예측 모드)MPM [5] = VER_IDX (No. 50 vertical intra prediction mode)
즉, 디코딩 장치는 상기 수평 방향성을 갖는 인트라 예측 모드를 이외의 인트라 예측 모드보다 앞선 순서의 MPM 후보로 도출할 수 있다. That is, the decoding apparatus may derive the intra prediction mode having the horizontal directionality as the MPM candidates in the order before the intra prediction modes other than the intra prediction mode.
또한, 상기 현재 블록이 높이가 폭보다 큰 비정방형 블록인 경우, 디코딩 장치는 수직 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보를 다음과 같이 도출할 수 있다.In addition, when the current block is a non-square block having a height greater than the width, the decoding apparatus may first derive an MPM candidate for the current block with an intra prediction mode having vertical orientation as follows.
MPM [0] = PLANAR_IDX (0번 플래너 인트라 예측 모드)MPM [0] = PLANAR_IDX (Planner Intra Prediction Mode 0)
MPM [1] = VER_IDX (50번 수직 방향 인트라 예측 모드)MPM [1] = VER_IDX (No. 50 vertical intra prediction mode)
MPM [2] = 43 (43번 인트라 예측 모드)MPM [2] = 43 (Intra-prediction mode 43)
MPM [3] = 60 (60번 인트라 예측 모드)MPM [3] = 60 (intra prediction mode 60)
MPM [4] = 3 (3번 인트라 예측 모드)MPM [4] = 3 (intra prediction mode 3)
MPM [5] = HOR_IDX (18번 수평 방향 인트라 예측 모드)MPM [5] = HOR_IDX (No. 18 horizontal intra prediction mode)
즉, 디코딩 장치는 상기 수직 방향성을 갖는 인트라 예측 모드를 이외의 인트라 예측 모드보다 앞선 순서의 MPM 후보로 도출할 수 있다.That is, the decoding apparatus may derive the intra prediction mode having the vertical direction as the MPM candidates in the order before the intra prediction modes.
다른 일 예로, 처음 N (예를 들어, N은 3과 동일)개의 MPM 후보는 주변 블록의 모드를 기반으로 도출 할 수 있고, 나머지 MPM 후보들의 경우 상기 현재 블록이 폭이 높이보다 큰 비정방형 블록인 경우, 수평 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 MPM 후보를 다음과 같이 도출할 수 있다.As another example, the first N (eg, N equals 3) MPM candidates may be derived based on the mode of the neighboring block, and for the remaining MPM candidates, the current block is a non-square block whose width is greater than the height. In the case of, the MPM candidate for the current block may be derived as follows in the intra prediction mode having the horizontal directionality as follows.
MPM [3] = HOR_IDX (18번 수평 방향 인트라 예측 모드)MPM [3] = HOR_IDX (No. 18 horizontal intra prediction mode)
MPM [4] = 5 (5번 인트라 예측 모드)MPM [4] = 5 (intra prediction mode 5)
MPM [5] = PLANAR_IDX (0번 플래너 인트라 예측 모드)MPM [5] = PLANAR_IDX (Planner Intra Prediction Mode 0)
또한, 상기 현재 블록이 높이가 폭보다 큰 비정방형 블록인 경우, 디코딩 장치는 수직 방향성을 갖는 인트라 예측 모드를 우선적으로 상기 현재 블록에 대한 나머지 MPM 후보들을 다음과 같이 도출할 수 있다.In addition, when the current block is a non-square block whose height is greater than the width, the decoding apparatus may first derive the remaining MPM candidates for the current block with the intra prediction mode having the vertical direction as follows.
MPM [3] = VER_IDX (50번 수직 방향 인트라 예측 모드)MPM [3] = VER_IDX (No. 50 vertical intra prediction mode)
MPM [4] = VER_IDX - 3MPM [4] = VER_IDX-3
MPM [5] = PLANAR_IDX (0번 플래너 인트라 예측 모드)MPM [5] = PLANAR_IDX (Planner Intra Prediction Mode 0)
디코딩 장치는 상기 MPM 리스트를 기반으로 상기 현재 블록에 대한 인트라 예측 모드를 도출한다(S1110). The decoding apparatus derives an intra prediction mode for the current block based on the MPM list (S1110).
일 예로, 디코딩 장치는 상기 현재 블록에 대한 MPM 플래그를 도출할 수 있다. 예를 들어, 디코딩 장치는 비트스트림으로부터 상기 현재 블록에 대한 인트라 예측 모드 정보를 획득할 수 있고, 상기 인트라 예측 모드 정보는 상기 현재 블록에 대한 MPM 플래그를 포함할 수 있다. 또는, 상기 인트라 예측 모드 정보는 상기 MPM 플래그를 포함하지 않을 수 있고, 이 경우, 디코딩 장치는 상기 MPM 플래그의 값을 1로 도출할 수 있다.For example, the decoding apparatus may derive an MPM flag for the current block. For example, the decoding apparatus may obtain intra prediction mode information for the current block from the bitstream, and the intra prediction mode information may include an MPM flag for the current block. Alternatively, the intra prediction mode information may not include the MPM flag, and in this case, the decoding apparatus may derive the value of the MPM flag as 1.
상기 MPM 플래그의 값이 1인 경우, 디코딩 장치는 상기 MPM 리스트의 MPM 후보들 중 MPM 인덱스가 가리키는 MPM 후보를 상기 현재 블록에 대한 상기 인트라 예측 모드로 도출할 수 있다. 상기 인트라 예측 모드 정보는 상기 MPM 인덱스를 포함할 수 있다. 상기 MPM 인덱스는 mpm_idx 또는 intra_luma_mpm_idx 신텍스 요소의 형태로 시그널링될 수 있다.When the value of the MPM flag is 1, the decoding apparatus may derive the MPM candidate indicated by the MPM index among the MPM candidates of the MPM list in the intra prediction mode for the current block. The intra prediction mode information may include the MPM index. The MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element.
상기 MPM 플래그의 값이 0인 경우, 디코딩 장치는 나머지 인트라 예측 모드들 중 리메이닝(remaining) 인트라 예측 모드 정보가 가리키는 인트라 예측 모드를 상기 현재 블록에 대한 상기 인트라 예측 모드로 도출할 수 있다. 상기 나머지 인트라 예측 모드들은 상기 MPM 리스트의 상기 MPM 후보들에 포함되지 않은 나머지 인트라 예측 모드들을 나타낼 수 있다. 상기 인트라 예측 모드 정보는 상기 리메이닝 인트라 예측 모드 정보를 포함할 수 있다. 상기 리메이닝 인트라 예측 모드 정보는 rem_intra_luma_pred_mode 또는 intra_luma_mpm_remainder 신텍스 요소의 형태로 시그널링될 수 있다.When the value of the MPM flag is 0, the decoding apparatus may derive the intra prediction mode indicated by the remaining intra prediction mode information among the remaining intra prediction modes as the intra prediction mode for the current block. The remaining intra prediction modes may indicate remaining intra prediction modes not included in the MPM candidates of the MPM list. The intra prediction mode information may include the remaining intra prediction mode information. The remaining intra prediction mode information may be signaled in the form of rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax elements.
또한, 다른 일 예로, 디코딩 장치는 상기 현재 블록에 대한 주변 샘플들을 기반으로 상기 현재 블록에 대한 상기 인트라 예측 모드를 도출할 수 있다. 구체적으로, 디코딩 장치는 상기 주변 샘플들의 샘플값들이 특정 조건에 해당하는지 판단할 수 있다. 예를 들어, 디코딩 장치는 상기 현재 블록의 주변 샘플들에 대한 대표값을 도출할 수 있고, 상기 대표값이 특정값보다 큰지 판단할 수 있다. 상기 대표값은 상기 주변 샘플들의 샘플값들의 평균값 또는 중간값 등일 수 있다. 여기서, 상기 주변 샘플들은 상기 현재 블록의 좌상측 코너 주변 샘플, 상측 주변 샘플들 및 좌측 주변 샘플들을 포함할 수 있다. 예를 들어, 상기 현재 블록의 사이즈가 WxH이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][0] 내지 p[-1][2H-1], 상기 좌상측 코너 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[2W-1][-1]일 수 있다.As another example, the decoding apparatus may derive the intra prediction mode for the current block based on the neighboring samples for the current block. In detail, the decoding apparatus may determine whether sample values of the neighboring samples correspond to a specific condition. For example, the decoding apparatus may derive a representative value for neighboring samples of the current block, and determine whether the representative value is greater than a specific value. The representative value may be an average value or a median value of the sample values of the peripheral samples. Here, the peripheral samples may include upper left corner samples, upper peripheral samples, and left peripheral samples of the current block. For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
상기 주변 샘플들의 샘플값들이 특정 조건에 해당하는 경우, 디코딩 장치는 상기 특정 조건에 대한 인트라 예측 모드를 상기 현재 블록에 대한 인트라 예측 모드로 도출할 수 있다. 또는, 예를 들어, 상기 주변 샘플들의 샘플값들이 특정 조건에 해당하는 경우, 디코딩 장치는 상기 특정 조건에 대한 M개의 인트라 예측 모드들을 도출할 수 있고, 상기 M개의 인트라 예측 모드들 중 수신된 인덱스가 가리키는 인트라 예측 모드를 상기 현재 블록에 대한 상기 인트라 예측 모드로 도출할 수 있다. 상기 인덱스는 비트스트림을 통하여 획득될 수 있고, 상기 인덱스는 상기 M개의 인트라 예측 모드들 중 하나를 가리킬 수 있다. When the sample values of the neighboring samples correspond to a specific condition, the decoding apparatus may derive an intra prediction mode for the specific condition as an intra prediction mode for the current block. Or, for example, when the sample values of the neighboring samples correspond to a specific condition, the decoding apparatus may derive M intra prediction modes for the specific condition, and the received index among the M intra prediction modes. The intra prediction mode indicated by may be derived as the intra prediction mode for the current block. The index may be obtained through a bitstream, and the index may indicate one of the M intra prediction modes.
디코딩 장치는 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측 샘플을 생성한다(S1120). 디코딩 장치는 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 주변 샘플들 중 적어도 하나의 주변 샘플을 도출할 수 있고, 상기 주변 샘플을 기반으로 상기 예측 샘플을 생성할 수 있다. 상기 주변 샘플들은 상기 현재 블록의 좌상측 코너 주변 샘플, 상측 주변 샘플들 및 좌측 주변 샘플들을 포함할 수 있다. 예를 들어, 상기 현재 블록의 사이즈가 WxH이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][0] 내지 p[-1][2H-1], 상기 좌상측 코너 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[2W-1][-1]일 수 있다.The decoding apparatus generates a prediction sample for the current block based on the intra prediction mode (S1120). The decoding apparatus may derive at least one neighboring sample of the neighboring samples of the current block based on the intra prediction mode, and generate the predictive sample based on the neighboring sample. The peripheral samples may include upper left corner peripheral samples, upper peripheral samples, and left peripheral samples of the current block. For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring samples are p [-1] [0. ] To p [-1] [2H-1], the sample around the upper left corner is p [-1] [-1], and the sample around the upper side is p [0] [-1] to p [2W-1] [-1].
한편, 비록 도면에서 도시되지는 않았으나 디코딩 장치는 예측 모드에 따라 상기 예측 샘플을 바로 복원 샘플로 이용할 수도 있고, 또는 상기 예측 샘플에 레지듀얼 샘플을 더하여 복원 샘플을 생성할 수도 있다. 디코딩 장치는 상기 현재 블록에 대한 레지듀얼 샘플이 존재하는 경우, 상기 현재 블록에 대한 레지듀얼에 관한 정보를 수신할 수 있고, 상기 레지듀얼에 관한 정보는 상기 페이스에 대한 정보에 포함될 수 있다. 상기 레지듀얼에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플(또는 레지듀얼 샘플 어레이)을 도출할 수 있다. 디코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 샘플을 생성할 수 있고, 상기 복원 샘플을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 디코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다.Although not shown in the drawing, the decoding apparatus may directly use the prediction sample as a reconstruction sample according to a prediction mode, or generate a reconstruction sample by adding a residual sample to the prediction sample. If there is a residual sample for the current block, the decoding apparatus may receive information about the residual for the current block, and the information about the residual may be included in the information about the face. The information about the residual may include transform coefficients regarding the residual sample. The decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information. The decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture in order to improve subjective / objective picture quality as necessary.
도 12는 본 발명에 따른 영상 디코딩 방법을 수행하는 디코딩 장치를 개략적으로 나타낸다. 도 11에서 개시된 방법은 도 12에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 12의 상기 디코딩 장치의 예측부는 도 11의 S1100 내지 S1120을 수행할 수 있다. 또한, 비록 도시되지는 않았으나 비트스트림을 통하여 상기 현재 블록에 대한 인트라 예측 모드 정보를 획득하는 과정 및 비트스트림을 통하여 상기 현재 블록에 대한 레지듀얼에 관한 정보를 획득하는 과정은 도 12의 상기 디코딩 장치의 엔트로피 디코딩부에 의하여 수행될 수 있고, 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플을 도출하는 과정은 도 12의 상기 디코딩 장치의 역변환부에 의하여 수행될 수 있고, 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 픽처를 생성하는 과정은 도 12의 상기 디코딩 장치의 가산부에 의하여 수행될 수 있다. 12 schematically illustrates a decoding apparatus for performing an image decoding method according to the present invention. The method disclosed in FIG. 11 may be performed by the decoding apparatus disclosed in FIG. 12. In detail, for example, the prediction unit of the decoding apparatus of FIG. 12 may perform S1100 to S1120 of FIG. 11. In addition, although not shown, the process of obtaining the intra prediction mode information for the current block through the bitstream and the process of obtaining the information about the residual for the current block through the bitstream may be performed in the decoding apparatus of FIG. 12. The derivation of the residual sample for the current block based on the residual information may be performed by an inverse transform unit of the decoding apparatus of FIG. 12. A process of generating a reconstructed picture based on a sample and the residual sample may be performed by an adder of the decoding apparatus of FIG. 12.
상술한 본 발명에 따르면 현재 블록의 주변 블록을 고려하여 상기 현재 블록에 대한 MPM 리스트를 구성할 수 있고, 이를 통하여, 현재 블록의 인트라 예측 모드를 나타내기 위한 비트량을 감소시키고 전반적인 코딩 효율을 향상시킬 수 있다. According to the present invention described above, it is possible to configure the MPM list for the current block in consideration of the neighboring blocks of the current block, thereby reducing the amount of bits for indicating the intra prediction mode of the current block and improving the overall coding efficiency. You can.
또한, 본 발명에 따르면 현재 블록 및 주변 블록의 사이즈 및/또는 타입을 고려하여 상기 현재 블록에 대한 MPM 리스트를 구성할 수 있고, 이를 통하여, 현재 블록의 인트라 예측 모드를 나타내기 위한 비트량을 감소시키고 전반적인 코딩 효율을 향상시킬 수 있다. In addition, according to the present invention, the MPM list for the current block may be configured in consideration of the size and / or type of the current block and neighboring blocks, thereby reducing the amount of bits indicating the intra prediction mode of the current block. And improve the overall coding efficiency.
또한, 본 발명에 따르면 현재 블록의 주변 샘플들의 샘플값을 기반으로 상기 현재 블록의 인트라 예측 모드를 도출할 수 있고, 이를 통하여, 현재 블록의 인트라 예측 모드를 나타내기 위한 비트량을 감소시키고 전반적인 코딩 효율을 향상시킬 수 있다. In addition, according to the present invention, it is possible to derive the intra prediction mode of the current block based on the sample values of neighboring samples of the current block, thereby reducing the amount of bits to indicate the intra prediction mode of the current block and overall coding. The efficiency can be improved.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.In the above-described embodiment, the methods are described based on a flowchart as a series of steps or blocks, but the present invention is not limited to the order of steps, and any steps may occur in a different order or simultaneously from other steps as described above. have. In addition, those skilled in the art will appreciate that the steps shown in the flowcharts are not exclusive and that other steps may be included or one or more steps in the flowcharts may be deleted without affecting the scope of the present invention.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.The above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다. 즉, 본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.When the embodiments of the present invention are implemented in software, the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function. The module may be stored in memory and executed by a processor. The memory may be internal or external to the processor and may be coupled to the processor by various well known means. The processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices. The memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device. That is, the embodiments described in the present invention may be implemented and performed on a processor, a microprocessor, a controller, or a chip. For example, the functional units shown in each drawing may be implemented and performed on a computer, processor, microprocessor, controller, or chip.
또한, 본 발명이 적용되는 디코딩 장치 및 인코딩 장치는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recoder) 등을 포함할 수 있다.In addition, the decoding apparatus and encoding apparatus to which the present invention is applied include a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real time communication device such as video communication, and mobile streaming. Devices, storage media, camcorders, video on demand (VoD) service providers, over the top video (OTT) devices, internet streaming service providers, 3D (3D) video devices, video telephony video devices, and medical video devices It may be included and used to process a video signal or a data signal. For example, the OTT video device may include a game console, a Blu-ray player, an internet access TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), and the like.
또한, 본 발명이 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 발명에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다. 또한, 본 발명의 실시예는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 발명의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독 가능한 캐리어 상에 저장될 수 있다.In addition, the processing method to which the present invention is applied can be produced in the form of a program executed by a computer, and can be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium. The computer readable recording medium includes all kinds of storage devices and distributed storage devices in which computer readable data is stored. The computer-readable recording medium may be, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical disc. It may include a data storage device. The computer-readable recording medium also includes media embodied in the form of a carrier wave (eg, transmission over the Internet). In addition, the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network. In addition, an embodiment of the present invention may be implemented as a computer program product by program code, which may be performed on a computer by an embodiment of the present invention. The program code may be stored on a carrier readable by a computer.
또한, 본 발명이 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.In addition, the content streaming system to which the present invention is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
상기 인코딩 서버는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 상기 스트리밍 서버로 전송하는 역할을 한다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들이 비트스트림을 직접 생성하는 경우, 상기 인코딩 서버는 생략될 수 있다. 상기 비트스트림은 본 발명이 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 상기 스트리밍 서버는 상기 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 상기 비트스트림을 저장할 수 있다.The encoding server compresses content input from multimedia input devices such as a smart phone, a camera, a camcorder, etc. into digital data to generate a bitstream and transmit the bitstream to the streaming server. As another example, when multimedia input devices such as smart phones, cameras, camcorders, etc. directly generate a bitstream, the encoding server may be omitted. The bitstream may be generated by an encoding method or a bitstream generation method to which the present invention is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
상기 스트리밍 서버는 웹 서버를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치에 전송하고, 상기 웹 서버는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 상기 웹 서버에 원하는 서비스를 요청하면, 상기 웹 서버는 이를 스트리밍 서버에 전달하고, 상기 스트리밍 서버는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 상기 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 상기 제어 서버는 상기 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.The streaming server transmits the multimedia data to the user device based on the user's request through the web server, and the web server serves as a medium for informing the user of what service. When a user requests a desired service from the web server, the web server delivers it to a streaming server, and the streaming server transmits multimedia data to the user. In this case, the content streaming system may include a separate control server. In this case, the control server plays a role of controlling a command / response between devices in the content streaming system.
상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하게 되는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.The streaming server may receive content from a media store and / or an encoding server. For example, when the content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
상기 사용자 장치의 예로는, 휴대폰, 스마트 폰(smart phone), 노트북 컴퓨터(laptop computer), 디지털방송용 단말기, PDA(personal digital assistants), PMP(portable multimedia player), 네비게이션, 슬레이트 PC(slate PC), 태블릿 PC(tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(wearable device, 예를 들어, 워치형 단말기 (smartwatch), 글래스형 단말기 (smart glass), HMD(head mounted display)), 디지털 TV, 데스크탑 컴퓨터, 디지털 사이니지 등이 있을 수 있다. 상기 컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.Examples of the user device include a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PCs, ultrabooks, wearable devices, such as smartwatches, glass glasses, head mounted displays, digital TVs, desktops Computer, digital signage, and the like. Each server in the content streaming system may be operated as a distributed server, in which case data received from each server may be distributed.

Claims (15)

  1. 디코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,In the image decoding method performed by the decoding apparatus,
    현재 블록의 주변 블록을 기반으로 상기 현재 블록의 MPM(Most Probable Mode) 리스트를 구성하는 단계;Constructing a Most Probable Mode (MPM) list of the current block based on neighboring blocks of the current block;
    상기 MPM 리스트를 기반으로 상기 현재 블록에 대한 인트라 예측 모드를 도출하는 단계; 및Deriving an intra prediction mode for the current block based on the MPM list; And
    상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측 샘플을 생성하는 단계를 포함하되,Generating a prediction sample for the current block based on the intra prediction mode;
    상기 주변 블록은 상기 현재 블록의 좌측 주변 블록 및 상측 주변 블록을 포함하고, The neighboring block includes a left neighboring block and an upper neighboring block of the current block,
    상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록인 것을 특징으로 하는 영상 디코딩 방법.When the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring block is a sample of (-1, H-1) coordinates. And a block including a sample of (W-1, -1) coordinates.
  2. 제1항에 있어서,The method of claim 1,
    상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성하는 단계는, Comprising the MPM list of the current block based on the neighboring block of the current block,
    상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드를 도출하는 단계;Deriving an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block;
    상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단하는 단계; Determining whether an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block are an intra prediction mode having a vertical direction;
    상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출하는 단계; 및 Deriving an intra prediction mode of the upper neighboring block as a first order MPM candidate when the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block are intra prediction modes having the vertical direction; And
    상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드 중 적어도 하나가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출하는 단계를 포함하는 것을 특징으로 하는 영상 디코딩 방법.If at least one of the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block is not an intra prediction mode having the vertical direction, the intra prediction mode of the left neighboring block is derived as the MPM candidate in the first order. And decoding the image.
  3. 제2항에 있어서,The method of claim 2,
    상기 수직 방향성을 갖는 인트라 예측 모드는 35번 내지 66번 인트라 예측 모드 인트라 예측 모드인 것을 특징으로 하는 영상 디코딩 방법.The intra prediction mode having the vertical direction is an intra prediction mode of the 35 to 66 intra prediction mode.
  4. 제1항에 있어서,The method of claim 1,
    상기 주변 블록은 상기 현재 블록의 좌하측 주변 블록, 우상측 주변 블록 및 상기 좌상측 주변 블록을 더 포함하고, The neighboring block further includes a lower left peripheral block, a right upper peripheral block, and the upper left peripheral block of the current block,
    상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌하측 주변 블록은 (-1, H) 좌표의 샘플을 포함하는 블록이고, 상기 우상측 주변 블록은 (W, -1) 좌표의 샘플을 포함하는 블록이고, 상기 좌상측 주변 블록은 (-1, -1) 좌표의 샘플을 포함하는 블록인 것을 특징으로 하는 영상 디코딩 방법.When the size of the current block is WxH, and the x component of the top-left sample position of the current block is 0 and the y component is 0, the lower left peripheral block is a sample of (-1, H) coordinates. And a block including a sample of (W, -1) coordinates, and the upper left peripheral block is a block including a sample of (-1, -1) coordinates. Video decoding method.
  5. 제4항에 있어서,The method of claim 4, wherein
    상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성하는 단계는, Comprising the MPM list of the current block based on the neighboring block of the current block,
    상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드를 도출하는 단계;Deriving an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block;
    상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단하는 단계; Determining whether an intra prediction mode of the upper right neighboring block and an intra prediction mode of the lower left neighboring block are an intra prediction mode having vertical orientation;
    상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 상기 우상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출하는 단계; 및 Deriving the intra prediction mode of the upper right neighboring block as the first order MPM candidate when the intra prediction mode of the upper right neighboring block and the intra prediction mode of the lower left neighboring block are the intra prediction modes having the vertical direction; ; And
    상기 우상측 주변 블록의 인트라 예측 모드 및 상기 좌하측 주변 블록의 인트라 예측 모드 중 적어도 하나가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌하측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출하는 단계를 포함하는 것을 특징으로 하는 영상 디코딩 방법.When at least one of the intra prediction mode of the upper right neighboring block and the intra prediction mode of the lower left neighboring block is not the intra prediction mode having the vertical direction, the intra prediction mode of the lower left neighboring block is determined by the MPM in the first order. And deriving it as a candidate.
  6. 제1항에 있어서,The method of claim 1,
    상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성하는 단계는, Comprising the MPM list of the current block based on the neighboring block of the current block,
    상기 현재 블록의 사이즈 및 타입, 상기 주변 블록의 사이즈 및 타입에 대한 N개의 조건을 기반으로 상기 MPM 리스트를 구성하는 단계를 포함하는 것을 특징으로 하는 영상 디코딩 방법.And constructing the MPM list based on the N conditions for the size and type of the current block and the size and type of the neighboring block.
  7. 제6항에 있어서,The method of claim 6,
    상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성하는 단계는,Comprising the MPM list of the current block based on the neighboring block of the current block,
    상기 현재 블록의 사이즈 및 타입, 상기 주변 블록의 사이즈 및 타입이 상기 N개의 조건 중 특정 조건에 해당하는 경우, 상기 특정 조건에 대한 리스트로 상기 MPM 리스트를 구성하는 단계를 더 포함하는 것을 특징으로 하는 영상 디코딩 방법.When the size and type of the current block and the size and type of the neighboring block correspond to a specific condition among the N conditions, further comprising constructing the MPM list with a list for the specific condition. Video decoding method.
  8. 제1항에 있어서,The method of claim 1,
    상기 현재 블록에 대한 상기 인트라 예측 모드를 도출하는 단계는,Deriving the intra prediction mode for the current block,
    상기 현재 블록의 주변 샘플들의 샘플값들이 특정 조건에 해당하는지 판단하는 단계; 및Determining whether sample values of neighboring samples of the current block correspond to a specific condition; And
    상기 주변 샘플들의 샘플값들이 상기 특정 조건에 해당하는 경우, 상기 특정 조건에 대한 인트라 예측 모드를 상기 현재 블록에 대한 상기 인트라 예측 모드로 도출하는 단계를 포함하는 것을 특징으로 하는 영상 디코딩 방법.And if the sample values of the neighboring samples correspond to the specific condition, deriving an intra prediction mode for the specific condition into the intra prediction mode for the current block.
  9. 제1항에 있어서,The method of claim 1,
    상기 현재 블록의 주변 샘플들의 샘플값들이 특정 조건에 해당하는지 판단하는 단계;Determining whether sample values of neighboring samples of the current block correspond to a specific condition;
    상기 주변 샘플들의 샘플값들이 상기 특정 조건에 해당하는 경우, 상기 특정 조건에 대한 M개의 인트라 예측 모드들을 도출하는 단계; 및Deriving M intra prediction modes for the particular condition if the sample values of the surrounding samples correspond to the particular condition; And
    상기 M개의 인트라 예측 모드들 중 수신된 인덱스가 가리키는 인트라 예측 모드를 상기 현재 블록에 대한 상기 인트라 예측 모드로 도출하는 단계를 포함하는 것을 특징으로 하는 영상 디코딩 방법.And deriving the intra prediction mode indicated by the received index among the M intra prediction modes as the intra prediction mode for the current block.
  10. 제9항에 있어서,The method of claim 9,
    상기 주변 샘플들은 상기 현재 블록의 좌상측 코너 주변 샘플, 상측 주변 샘플들 및 좌측 주변 샘플들을 포함하고, The peripheral samples include a top left corner periphery sample, a top periphery sample, and a left periphery sample of the current block,
    상기 현재 블록의 사이즈가 WxH이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][0] 내지 p[-1][2H-1], 상기 좌상측 코너 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[2W-1][-1]인 것을 특징으로 하는 영상 디코딩 방법.When the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring samples are p [-1] [0] to p [ -1] [2H-1], the sample around the upper left corner is p [-1] [-1], the sample around the upper side is p [0] [-1] to p [2W-1] [-1] Video decoding method characterized in that.
  11. 인코딩 장치에 의하여 수행되는 영상 인코딩 방법에 있어서,In the video encoding method performed by the encoding device,
    현재 블록의 주변 블록을 기반으로 상기 현재 블록의 MPM(Most Probable Mode) 리스트를 구성하는 단계;Constructing a Most Probable Mode (MPM) list of the current block based on neighboring blocks of the current block;
    상기 현재 블록에 대한 인트라 예측 모드를 결정하는 단계;Determining an intra prediction mode for the current block;
    상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측 샘플을 생성하는 단계; 및Generating a prediction sample for the current block based on the intra prediction mode; And
    상기 현재 블록에 대한 인트라 예측 모드 정보를 인코딩하는 단계를 포함하되,Encoding intra prediction mode information for the current block;
    상기 주변 블록은 상기 현재 블록의 좌측 주변 블록 및 상측 주변 블록을 포함하고, The neighboring block includes a left neighboring block and an upper neighboring block of the current block,
    상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록인 것을 특징으로 하는 영상 인코딩 방법.When the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left neighboring block is a sample of (-1, H-1) coordinates. And a block including a sample of (W-1, -1) coordinates.
  12. 제11항에 있어서,The method of claim 11,
    상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성하는 단계는, Comprising the MPM list of the current block based on the neighboring block of the current block,
    상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드를 도출하는 단계;Deriving an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block;
    상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 수직 방향성을 갖는 인트라 예측 모드인지 판단하는 단계; Determining whether an intra prediction mode of the left neighboring block and an intra prediction mode of the upper neighboring block are an intra prediction mode having a vertical direction;
    상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드가 상기 수직 방향성을 갖는 인트라 예측 모드인 경우, 상기 상측 주변 블록의 인트라 예측 모드를 첫번째 순서의 MPM 후보로 도출하는 단계; 및 Deriving an intra prediction mode of the upper neighboring block as a first order MPM candidate when the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block are intra prediction modes having the vertical direction; And
    상기 좌측 주변 블록의 인트라 예측 모드 및 상기 상측 주변 블록의 인트라 예측 모드 중 적어도 하나가 상기 수직 방향성을 갖는 인트라 예측 모드가 아닌 경우, 상기 좌측 주변 블록의 인트라 예측 모드를 상기 첫번째 순서의 MPM 후보로 도출하는 단계를 포함하는 것을 특징으로 하는 영상 인코딩 방법.When at least one of the intra prediction mode of the left neighboring block and the intra prediction mode of the upper neighboring block is not the intra prediction mode having the vertical direction, the intra prediction mode of the left neighboring block is derived as the MPM candidate in the first order. And encoding the image.
  13. 제11항에 있어서,The method of claim 11,
    상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성하는 단계는, Comprising the MPM list of the current block based on the neighboring block of the current block,
    상기 현재 블록의 사이즈 및 타입, 상기 주변 블록의 사이즈 및 타입에 대한 N개의 조건을 기반으로 상기 MPM 리스트를 구성하는 단계를 포함하는 것을 특징으로 하는 영상 인코딩 방법.And constructing the MPM list based on the N conditions for the size and type of the current block and the size and type of the neighboring block.
  14. 제13항에 있어서,The method of claim 13,
    상기 현재 블록의 상기 주변 블록을 기반으로 상기 현재 블록의 상기 MPM 리스트를 구성하는 단계는,Comprising the MPM list of the current block based on the neighboring block of the current block,
    상기 현재 블록의 사이즈 및 타입, 상기 주변 블록의 사이즈 및 타입이 상기 N개의 조건 중 특정 조건에 해당하는 경우, 상기 특정 조건에 대한 리스트로 상기 MPM 리스트를 구성하는 단계를 더 포함하는 것을 특징으로 하는 영상 인코딩 방법.When the size and type of the current block and the size and type of the neighboring block correspond to a specific condition among the N conditions, further comprising constructing the MPM list with a list for the specific condition. Video encoding method.
  15. 제11항에 있어서,The method of claim 11,
    상기 현재 블록의 주변 샘플들의 샘플값들이 특정 조건에 해당하는지 판단하는 단계;Determining whether sample values of neighboring samples of the current block correspond to a specific condition;
    상기 주변 샘플들의 샘플값들이 상기 특정 조건에 해당하는 경우, 상기 특정 조건에 대한 M개의 인트라 예측 모드들을 도출하는 단계; Deriving M intra prediction modes for the particular condition if the sample values of the surrounding samples correspond to the particular condition;
    상기 M개의 인트라 예측 모드들 중 상기 현재 블록에 대한 상기 인트라 예측 모드를 결정하는 단계; 및Determining the intra prediction mode for the current block of the M intra prediction modes; And
    상기 M개의 인트라 예측 모드들 중 상기 결정된 인트라 예측 모드를 가리키는 인덱스를 생성하는 단계를 포함하는 것을 특징으로 하는 영상 인코딩 방법.And generating an index indicating the determined intra prediction mode among the M intra prediction modes.
PCT/KR2019/003388 2018-04-02 2019-03-22 Method for image coding on basis of adaptively derived mpm list and device therefor WO2019194441A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201862651684P 2018-04-02 2018-04-02
US62/651,684 2018-04-02

Publications (1)

Publication Number Publication Date
WO2019194441A1 true WO2019194441A1 (en) 2019-10-10

Family

ID=68101286

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/KR2019/003388 WO2019194441A1 (en) 2018-04-02 2019-03-22 Method for image coding on basis of adaptively derived mpm list and device therefor
PCT/KR2019/003379 WO2019194439A1 (en) 2018-04-02 2019-03-22 Image coding method using context-based intra prediction mode information coding and apparatus therefor

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/003379 WO2019194439A1 (en) 2018-04-02 2019-03-22 Image coding method using context-based intra prediction mode information coding and apparatus therefor

Country Status (1)

Country Link
WO (2) WO2019194441A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140008503A (en) * 2012-07-10 2014-01-21 한국전자통신연구원 Method and apparatus for image encoding/decoding
KR20140093869A (en) * 2013-01-18 2014-07-29 연세대학교 산학협력단 Method and apparatus for intra prediction, and apparatus for processing picture
KR20180001478A (en) * 2016-06-24 2018-01-04 주식회사 케이티 Method and apparatus for processing a video signal
KR20180011285A (en) * 2011-12-14 2018-01-31 주식회사 스카이미디어테크 Method of encoding intra mode by choosing most probable mode with high hit rate and apparatus for the same, and method of decoding and apparatus for the same
KR20180019563A (en) * 2015-06-18 2018-02-26 퀄컴 인코포레이티드 Intra prediction and intra mode coding

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120070479A (en) * 2010-12-21 2012-06-29 한국전자통신연구원 Method and apparatus for encoding and decoding of intra prediction mode information
US8953690B2 (en) * 2011-02-16 2015-02-10 Google Technology Holdings LLC Method and system for processing video data
US8995523B2 (en) * 2011-06-03 2015-03-31 Qualcomm Incorporated Memory efficient context modeling
JP5989772B2 (en) * 2011-07-01 2016-09-07 サムスン エレクトロニクス カンパニー リミテッド Entropy encoding method and apparatus using data unit of hierarchical structure, and decoding method and apparatus
US10142627B2 (en) * 2015-06-18 2018-11-27 Qualcomm Incorporated Intra prediction and intra mode coding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180011285A (en) * 2011-12-14 2018-01-31 주식회사 스카이미디어테크 Method of encoding intra mode by choosing most probable mode with high hit rate and apparatus for the same, and method of decoding and apparatus for the same
KR20140008503A (en) * 2012-07-10 2014-01-21 한국전자통신연구원 Method and apparatus for image encoding/decoding
KR20140093869A (en) * 2013-01-18 2014-07-29 연세대학교 산학협력단 Method and apparatus for intra prediction, and apparatus for processing picture
KR20180019563A (en) * 2015-06-18 2018-02-26 퀄컴 인코포레이티드 Intra prediction and intra mode coding
KR20180001478A (en) * 2016-06-24 2018-01-04 주식회사 케이티 Method and apparatus for processing a video signal

Also Published As

Publication number Publication date
WO2019194439A1 (en) 2019-10-10

Similar Documents

Publication Publication Date Title
WO2019194440A1 (en) Image coding method using lookup table for intra prediction mode and apparatus therefor
WO2019117636A1 (en) Image coding method on basis of non-separable secondary transform and device therefor
WO2020091213A1 (en) Intra prediction method and apparatus in image coding system
WO2020171632A1 (en) Mpm list-based intra prediction method and device
WO2021137597A1 (en) Image decoding method and device using dpb parameter for ols
WO2020197038A1 (en) Intra prediction method and device based on intra sub-partitions in image coding system
WO2020145604A1 (en) Intra prediction-based video coding method and device using mpm list
WO2020141928A1 (en) Method and apparatus for decoding image on basis of prediction based on mmvd in image coding system
WO2019225933A1 (en) Method and apparatus for decoding image by using mvd derived on basis of lut in image coding system
WO2020256346A1 (en) Coding of information about transform kernel set
WO2020141932A1 (en) Inter prediction method and apparatus using cpr-based mmvd
WO2020184821A1 (en) Method and device for configuring mpm list
WO2020013480A1 (en) Method for coding intra-prediction mode, and device for same
WO2020145620A1 (en) Intra prediction-based image coding method and device using mpm list
WO2020013497A1 (en) Image decoding method and device using intra prediction information in image coding system
WO2020141856A1 (en) Image decoding method and device using residual information in image coding system
WO2020004879A1 (en) Method and device for image decoding according to inter-prediction using plurality of neighboring blocks in image coding system
WO2019225932A1 (en) Method and apparatus for decoding image by using dmvr in image coding system
WO2021137588A1 (en) Image decoding method and apparatus for coding image information including picture header
WO2021107622A1 (en) Image/video coding method and apparatus
WO2020235959A1 (en) Method and device for decoding image by using bdpcm in image coding system
WO2019203513A1 (en) Image decoding method and apparatus according to inter prediction using dmvd in image coding system
WO2020017841A1 (en) Method and apparatus for performing inter-prediction on basis of merge mode
WO2019212223A1 (en) Image decoding method using dmvr in image coding system and device therefor
WO2019194441A1 (en) Method for image coding on basis of adaptively derived mpm list and device therefor

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

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

Country of ref document: EP

Kind code of ref document: A1