WO2018174357A1 - 영상 코딩 시스템에서 영상 디코딩 방법 및 장치 - Google Patents

영상 코딩 시스템에서 영상 디코딩 방법 및 장치 Download PDF

Info

Publication number
WO2018174357A1
WO2018174357A1 PCT/KR2017/010767 KR2017010767W WO2018174357A1 WO 2018174357 A1 WO2018174357 A1 WO 2018174357A1 KR 2017010767 W KR2017010767 W KR 2017010767W WO 2018174357 A1 WO2018174357 A1 WO 2018174357A1
Authority
WO
WIPO (PCT)
Prior art keywords
intra prediction
prediction mode
block
chroma block
current chroma
Prior art date
Application number
PCT/KR2017/010767
Other languages
English (en)
French (fr)
Inventor
최장원
허진
유선미
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Publication of WO2018174357A1 publication Critical patent/WO2018174357A1/ko

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/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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • the present invention relates to an image coding technique, and more particularly, to an image decoding method and apparatus in 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 determine the number of intra prediction mode candidates for the current chroma block, derive an intra prediction mode for the current chroma block based on the determined number of intra prediction mode candidates, and based on the intra prediction mode.
  • An intra prediction method and apparatus for performing prediction are provided.
  • Another technical problem of the present invention is to provide a method and apparatus for coding information on intra prediction mode candidates for a current chroma block.
  • an image decoding method performed by a decoding apparatus.
  • the method includes determining a number of intra prediction mode candidates for a current chroma block, deriving the determined number of intra prediction mode candidates, and converting one of the intra prediction mode candidates into an intra prediction mode of the current chroma block. And deriving the current chroma block based on the intra prediction mode of the current chroma block.
  • a decoding apparatus for performing image decoding.
  • the decoding apparatus may further include an entropy decoding unit configured to obtain prediction information on a current chroma block, a number of intra prediction mode candidates for the current chroma block, derive the determined number of intra prediction mode candidates, and determine the prediction.
  • a prediction unit configured to derive one of the intra prediction mode candidates based on the information into the intra prediction mode of the current chroma block, and to perform the prediction of the current chroma block based on the intra prediction mode of the current chroma block. It features.
  • a video encoding method performed by an encoding apparatus includes determining a number of intra prediction mode candidates for a current chroma block, deriving the determined number of intra prediction mode candidates, and converting one of the intra prediction mode candidates into an intra prediction mode of the current chroma block. Deriving, performing prediction of the current chroma block based on the intra prediction mode of the current chroma block, and generating, encoding, and outputting prediction information about the current chroma block. do.
  • a video encoding apparatus determines the number of intra prediction mode candidates for the current chroma block, derives the determined number of intra prediction mode candidates, and derives one of the intra prediction mode candidates to the intra prediction mode of the current chroma block. And an estimator for predicting the current chroma block based on the intra prediction mode of the current chroma block, and an entropy encoding unit for generating, encoding, and outputting prediction information about the current chroma block. do.
  • the number of intra prediction mode candidates can be derived according to a specific condition, and through this, the intra prediction mode of the current chroma block can be derived more accurately, and the prediction accuracy for the current block can be improved.
  • the present invention it is possible to perform binarization of indexes for intra prediction mode candidates through various methods, thereby reducing the amount of bits for prediction information of the current chroma block and improving overall coding efficiency.
  • coding may be performed through another context model according to the number of bits of an index for intra prediction mode candidates, thereby improving overall coding efficiency.
  • 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 the left side samples and the top side samples used for intra prediction of the current block.
  • 4 exemplarily shows intra directional modes of 65 prediction directions.
  • FIG. 5 illustrates an example of deriving intra prediction mode candidates of the current chroma block 520.
  • FIG. 6 schematically illustrates a video encoding method by an encoding device according to the present invention.
  • FIG. 7 schematically illustrates a video decoding method by a decoding apparatus 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.
  • a picture generally refers to a unit representing one image of a specific time zone
  • a slice is a unit constituting a part of a picture in coding.
  • One picture may be composed of a plurality of slices, and if necessary, the picture and the slice may be mixed with each other.
  • 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 divider 105, a predictor 110, a residual processor 120, an adder 140, a filter 150, and a memory 160. It may include.
  • 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 reconstruct the video in response to a process in which the 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 prediction when prediction is performed on the current block, the prediction may be performed based on an intra prediction mode.
  • the intra prediction may be performed based on neighboring samples that have already been encoded / decoded at the decoding time of the current block. That is, the predictive sample of the current block may be reconstructed using the left neighboring samples and the upper neighboring samples of the current block that have already been reconstructed.
  • the left peripheral samples and the upper peripheral samples may be represented as shown in FIG. 3.
  • an intra prediction mode for the current block may be derived, and the current block using at least one of the left neighboring samples and the upper neighboring samples according to the intra prediction mode.
  • a prediction sample for can be generated.
  • the intra prediction mode may include two non-directional intra prediction modes and 33 directional intra prediction modes.
  • the non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include 2 to 34 intra prediction modes.
  • the planner intra prediction mode may be called a planner mode, and the DC intra prediction mode may be called a DC mode.
  • the intra prediction mode 10 may be a horizontal intra prediction mode or a horizontal mode
  • the intra intra prediction mode 26 may be a vertical intra prediction mode or a vertical mode.
  • the prediction direction of angular intra mode) can be expressed in degrees.
  • the relative angle corresponding to each intra prediction mode may be expressed based on the horizontal reference angle 0 ° corresponding to the intra prediction mode 10, and the vertical reference angle corresponding to the intra prediction mode 26 reference 0 °.
  • the relative angle corresponding to each intra prediction mode can be expressed.
  • the intra prediction mode may include two non-directional intra prediction modes and 65 directional intra prediction modes.
  • the non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include 2 to 66 intra prediction modes.
  • 4 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 upper diagonal prediction direction.
  • H and V in FIG. 4 mean horizontal directionality and vertical directionality, respectively, and numbers of -32 to 32 represent displacements of 1/32 units 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 respectively indicate a horizontal intra prediction mode and a vertical intra prediction mode, and based on this, an angular intra prediction mode is used.
  • the prediction direction can be expressed in degrees.
  • the relative angle corresponding to each intra prediction mode may be expressed based on the horizontal reference angle 0 ° corresponding to the 18th intra prediction mode, and the vertical reference angle corresponding to the 50th intra prediction mode may be expressed as 0 °.
  • the relative angle corresponding to each intra prediction mode can be expressed.
  • intra prediction mode candidates for the chroma component of the current block may be derived, and one of the intra prediction mode candidates may be derived from the chroma component of the current block. It can be derived into the intra prediction mode for.
  • the chroma component of the current block may be represented as a current chroma block.
  • JEM Joint Explolation Test Model 5.0.1 currently used in Joint Video Exploration Team (JVET), when the current chroma block is encoded based on intra prediction, intra prediction mode candidates of the current chroma block as described below. This is derived.
  • a cross component linear model (CCLM) mode may be used, in which case the CCLM mode may be derived as an intra prediction mode candidate of the current chroma block 520. Details of the CCLM mode will be described later.
  • the intra prediction mode candidates of the current chroma block 520 may include a total of six candidates. Therefore, when the CCLM mode is not used, six intra prediction mode candidates may be derived based on the order described below, and the CCLM mode is used so that the CCLM mode is the intra prediction mode of the current chroma block 520. When derived as a candidate, five intra prediction mode candidates may be derived based on the order described below.
  • the coding apparatus may include: The derivation process may be terminated.
  • the derivation order of the intra prediction mode candidates of the current chroma block 520 may be as follows.
  • a center right bottom sample (center right, CR), top left sample (top left, TL), top right sample (top right, TR), and bottom left sample of the current luma block 510 corresponding to the current chroma block 520 (bottom left, BL), intra prediction modes of bottom right (BR) position
  • Intra prediction modes of the left peripheral block L, the upper peripheral block A, the lower left peripheral block BL, the right upper peripheral block AR, and the upper left peripheral block AL of the current chroma block 520 are Intra prediction modes of the left peripheral block L, the upper peripheral block A, the lower left peripheral block BL, the right upper peripheral block AR, and the upper left peripheral block AL of the current chroma block 520.
  • the intra prediction mode candidates of the current chroma block 520 may include a plurality of intra prediction mode candidates indicating the same intra prediction mode.
  • the CCLM mode is an intra prediction mode using correlation between a luma block and a chroma block corresponding to the luma block, and a linear model is derived based on the surrounding samples of the luma block and the surrounding samples of the chroma block. And a mode in which prediction samples of the chroma block are derived based on the linear model and reconstructed samples of the luma block.
  • parameters for the linear model are based on neighbor samples used for intra prediction of the current chroma block and neighbor samples used for intra prediction of the current luma block.
  • the linear model may be represented based on the following equation.
  • pred c (i, j) may represent a prediction sample of the (i, j) coordinate of the current chroma block
  • rec L '(i, j) is the (i, j) coordinate of the current luma block.
  • Reconstruction samples may be indicated.
  • the recL '(i, j) may represent a down-sampled reconstructed sample of the current luma block.
  • the parameters ⁇ and ⁇ of the linear model may be derived based on neighboring samples used for intra prediction of the current luma block and surrounding samples used for intra prediction of the current chroma block.
  • the parameter ⁇ and the parameter ⁇ may be derived based on the following equation.
  • L (n) may represent upper peripheral samples and left peripheral samples of the current luma block
  • C (n) may represent upper peripheral samples and left peripheral samples of the current chroma block.
  • L (n) may represent down-sampled upper peripheral samples and left peripheral samples of the current luma block.
  • N may represent a value that is twice the smaller of the width and height of the current chroma block.
  • the number of intra prediction mode candidates of the current chroma block may be fixed to six as described above, a different number determined according to a specific condition may improve coding efficiency.
  • the present invention proposes a method for more efficiently selecting the intra prediction mode candidates in relation to the number of intra prediction mode candidates of the current chroma block and a method for transmitting information about the intra prediction mode candidates.
  • the number of intra prediction mode candidates of the current chroma block may be determined based on the size of the current chroma block.
  • the number of intra prediction mode candidates may be changed based on whether the size of the current chroma block satisfies a specific condition. Specifically, when the size of the current chroma block is greater than or equal to 64, that is, when the value obtained by multiplying the width and height of the current chroma block is greater than or equal to 64 (that is, the samples included in the current chroma block). If the number is 64 or more), the number of intra prediction mode candidates of the current chroma block may be determined to be eight. In this case, the intra prediction mode candidates may include the aforementioned CCLM mode.
  • the number of intra prediction mode candidates of the current chroma block may be determined to be six.
  • the intra prediction mode candidates may include the aforementioned CCLM mode.
  • the number of intra prediction mode candidates of the current chroma block may be adaptively determined based on the size of the current chroma block. That is, the number of intra prediction mode candidates of the current chroma block may be determined to be proportional to the size of the current chroma block, or the number of intra prediction mode candidates of the current chroma block may be determined to be inversely proportional to the size of the current chroma block. It may be.
  • two additional intra prediction mode candidates are further derived so that a total of eight intra prediction mode candidates are intra prediction of the current chroma block.
  • Mode candidates may be derived, or two intra prediction mode candidates may be derived less so that a total of four intra prediction mode candidates may be derived as intra prediction mode candidates of the current chroma block.
  • the derivation order of the intra prediction mode candidates of the current chroma block may be as follows.
  • a center right bottom sample (center right, CR), top left sample (top left, TL), top right sample (top right, TR), and bottom left of the current luma block 510 corresponding to the current chroma block 520
  • Intra prediction modes at bottom left (BL) and bottom right (BR) positions
  • N-directional intra prediction mode is derived as an intra prediction mode candidate, N-1 directional intra prediction mode or N + 1 directional intra prediction mode.
  • the number of intra prediction mode candidates determined in the order of the intra prediction mode of the sixth order may be derived. That is, it may be determined whether the intra prediction mode of the current order overlaps with the intra prediction mode already derived as an intra prediction mode candidate, and if the overlap does not overlap, the intra prediction mode of the current order is intra prediction of the current chroma block. Can be derived as a mode candidate.
  • the coding apparatus may end the derivation process.
  • the sum of the number of intra prediction modes in step 4 and the number of intra prediction modes in step 6 may be set to be equal to the number of intra prediction mode candidates of the current chroma block.
  • the number of intra prediction mode candidates of the current chroma block is determined to be six
  • the sum of the number of intra prediction modes in order 4 and the number of intra prediction modes in order 6 may be 6.
  • the intra prediction mode candidates of the current chroma block are derived, the intra prediction mode candidates may be sorted in a specific order, and an index indicating one of the intra prediction mode candidates may be signaled.
  • An intra prediction mode candidate indicated by the index may be derived as an intra prediction mode of the current chroma block.
  • the index may be referred to as a chroma intra prediction mode index.
  • the chroma intra prediction mode index may be encoded through a unary code. That is, the chroma intra prediction mode index may be binarized through the binary code.
  • the chroma intra prediction mode index binarized through the binary code may be encoded / decoded based on a context model corresponding to the binary digit of the chroma intra prediction mode index.
  • the chroma intra prediction mode index may be encoded / decoded through context-based adaptive binary arithmetic coding (CABAC) to improve coding efficiency.
  • CABAC context-based adaptive binary arithmetic coding
  • One context model may be determined based on the binary digits of the chroma intra prediction mode index, and the chroma intra prediction mode index may be encoded / decoded based on the determined context model.
  • the chroma intra prediction mode index may be encoded through a truncated unary code. That is, the chroma intra prediction mode index may be binarized through the truncated binary code. For example, when the CCLM mode is included among the intra prediction mode candidates of the current chroma block, the CCLM mode may be sorted by 1, and the intra prediction mode candidates except the CCLM mode may be sorted in a specific order. Indices representing each intra prediction mode candidate may be binarized.
  • a value of an index indicating the intra prediction mode candidates may be binarized as shown in the following table.
  • Mode1 to Mode7 may represent intra prediction mode candidates of the derived chroma block.
  • the intra prediction mode candidates may be arranged into the Mode1 to the Mode7 based on a ratio selected in the prediction for the current picture. That is, an intra prediction mode candidate having a high ratio selected may be sorted by a smaller number among Mode1 to Mode7, and a chroma intra prediction candidate index representing the intra prediction mode candidate may be binarized to a binary code having a small number of bits. have.
  • Mode7 may be truncated to '1111111'. That is, the chroma intra prediction candidate index indicating the Mode 7 may be binarized to a binary code of '1111111'.
  • the value representing Mode 7 is binarized to a binary code of '11111110', wherein the chroma intra prediction candidate index is changed through the truncated binary code.
  • the number of bits for Mode7 can be reduced by one bit than in the case of binarization through the binary code.
  • the number of intra prediction mode candidates of the current chroma block is one example, and may be less or more than eight.
  • the binarization process for the chroma intra prediction candidate index may be performed according to the determined number.
  • a context model may be determined based on binary digits of the chroma intra prediction mode index. That is, the context model may be determined based on the number of bits of the binary code of the chroma intra prediction mode index. For example, referring to Table 1, when the chroma intra prediction mode index indicates Mode1, the binary digit of the chroma intra prediction mode index is 1 digit, and the context model for the chroma intra prediction mode index is Context model 0. Can be determined. In addition, referring to Table 1, when the chroma intra prediction mode index indicates the CCLM mode, the binary digit of the chroma intra prediction mode index is 2 digits, and the context model for the chroma intra prediction mode index is Context model 1 Can be determined.
  • the chroma intra prediction mode index may be encoded through a fixed length code. That is, the chroma intra prediction mode index may be binarized through the fixed length code. For example, when six intra prediction mode candidates are derived for the current chroma block, the index value representing the intra prediction mode candidates may be binarized as shown in the following table.
  • intra prediction mode candidates of the current chroma block may include a CCLM mode.
  • the CCLM mode may be sorted by one, intra prediction mode candidates except the CCLM mode may be sorted in a specific order, and a chroma intra prediction mode index indicating each intra prediction mode candidate may be binarized.
  • the chroma intra prediction mode index indicating the CCLM mode aligned with No. 1 may be binarized to 1-bit binary code.
  • the chroma intra prediction mode index indicating the CCLM mode may be '0. Can be binarized.
  • the chroma intra prediction mode index indicating Mode1 aligned in two may be binarized into two bits of binary code.
  • the chroma intra prediction mode index indicating Mode1 may be binarized to '10'.
  • the chroma intra prediction mode indexes indicating Mode 2 to Mode 5 aligned to 3 to 5 may be binarized to 4 bits of binary code, for example, the chroma intra prediction mode indexes indicating the Mode 2 to Mode 5.
  • Each may be binarized into '1100', '1101', '1110', and '1111'.
  • a chroma intra prediction mode index indicating an intra prediction mode candidate having a high selection ratio may be binarized with a small number of bits
  • a chroma intra prediction mode index indicating an intra prediction mode candidate with a low selection ratio may be binarized with a fixed large number of bits. Can be. Through this, the overall amount of bits for prediction of the input image can be reduced, and coding efficiency can be improved.
  • the context model may be determined based on the number of digits of the binary code of the chroma intra prediction mode index. As shown in the examples shown in Table 1 and Table 2, a different context model may be set for each digit of the binary code. That is, when the digit of the binary code of the chroma intra prediction mode index is 1, the context model for the chroma intra prediction mode index may be set to Context model 0, and the digit of the binary code of the chroma intra prediction mode index may be set.
  • the context model for the chroma intra prediction mode index may be set to Context model 1, and when the number of digits of the binary code of the chroma intra prediction mode index is n, the context model for the chroma intra prediction mode index Can be set to Context model n + 1.
  • the context model setting shown in Tables 1 and 2 described above various examples of the context model setting may be applied.
  • the chroma intra prediction mode index may be binarized to 1 to 7 bits of binary code.
  • the context model according to the number of bits of the binary code may be expressed as shown in the following table.
  • the context model for the chroma intra prediction mode index may be set to the context model n.
  • the context model for the chroma intra prediction mode index may be set to Context model 1
  • the context model for the chroma intra prediction mode index may be set to Context model 2
  • the context model for the chroma intra prediction mode index may be set to Context model 2
  • the number of bits of the binary code of the chroma intra prediction mode index may be set.
  • the context model for the chroma intra prediction mode index may be set to Context model 3.
  • the context model for the chroma intra prediction mode index when the number of bits of the binary code of the chroma intra prediction mode index is 1, the context model for the chroma intra prediction mode index may be set to Context model 1, When the number of bits of the binary code of the chroma intra prediction mode index is 2 to 3, the context model for the chroma intra prediction mode index may be set to Context model 2, and the number of bits of the binary code of the chroma intra prediction mode index may be set. When 4 to 5, the context model for the chroma intra prediction mode index may be set to Context model 3, and when the number of bits of the binary code of the chroma intra prediction mode index is 6 to 7, the chroma intra prediction mode index The context model for can be set to Context model 4.
  • Example 4 of Table 3 when the number of bits of the binary code of the chroma intra prediction mode index is 1, the context model for the chroma intra prediction mode index may be set to Context model 1, When the number of bits of the binary code of the chroma intra prediction mode index is 2, the context model for the chroma intra prediction mode index may be set to Context model 2, and the number of bits of the binary code of the chroma intra prediction mode index is 3 to When 6, the context model for the chroma intra prediction mode index may be set to Context model 3, and when the number of bits of the binary code of the chroma intra prediction mode index is 7, the context model for the chroma intra prediction mode index Can be set to Context model 4.
  • the context model for the chroma intra prediction mode index may be set to Context model 1 regardless of the number of bits of the binary code of the chroma intra prediction mode index.
  • the context model may be determined based on the number of digits of the binary code of the chroma intra prediction mode index. Meanwhile, the context models may have different initial values and initValues. The initial value may be referred to as an initial state, an initstate, or an initial probability state.
  • the chroma intra prediction mode index may be entropy encoded / decoded through context-adaptive binary arithmetic coding (CABAC) based on the determined context model, and thus a probability of occurrence of a bin according to the determined context model By predicting, arithmetic decoding of a bin may be performed to generate a symbol corresponding to a value of each syntax element.
  • CABAC context-adaptive binary arithmetic coding
  • An occurrence probability according to the context model may be initialized based on an initial value of the context model. That is, the initial value may represent the initialized probability of the occurrence probability.
  • the encoding / decoding process may be performed based on different context models according to the number of digits of the binary code for each of the intra prediction mode candidates of the current chroma block, and the initial value of the context model for each of the intra prediction mode candidates is optimized. It can be set through. For example, when there are five context models for the intra prediction mode candidates, initial values of the context models may be set as shown in the following table.
  • the intra prediction mode candidates of the current chroma block include the CCLM mode
  • the intra prediction mode candidates except the CCLM mode may be sorted in the derived order, and the intra prediction mode candidates may have a small number of bits in the sorted order. It can be binarized to binary code of. That is, the intra prediction mode candidates except the CCLM mode may be allocated to the chroma intra prediction index of the binary code having a small number of bits in the derived order.
  • the chroma intra prediction index may be binarized through a truncated binary code, a binary code, or a fixed length code.
  • the chroma intra prediction index is as shown in the following table. Can be binarized.
  • the chroma intra prediction index when the CCLM mode among the intra prediction mode candidates of the current chroma block may be aligned as the first candidate, and the chroma intra prediction index indicates the CCLM mode among the intra prediction mode candidates, the chroma intra prediction The index can be binarized to '0'. That is, when the binary code of the chroma intra prediction index is '0', the chroma intra prediction index may indicate the CCLM mode.
  • Mode1 to Mode5 may represent intra prediction mode candidates of the current chroma block except for the CCLM mode, and may be derived as intra prediction mode candidates of the current chroma block in the order of Mode5 to Mode5.
  • the Mode1 may be aligned with the second candidate, and when the chroma intra prediction index indicates the Mode1 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '10'.
  • Mode2 may be aligned with the third candidate, and when the chroma intra prediction index indicates the Mode2 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '110'.
  • Mode3 may be arranged as a candidate 4, and when the chroma intra prediction index indicates Mode3 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '1110'.
  • Mode4 may be aligned with the fifth candidate, and when the chroma intra prediction index indicates the Mode4 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '11110'.
  • Mode5 may be aligned with the sixth candidate, and when the chroma intra prediction index indicates the Mode5 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '11111'.
  • the chroma intra prediction index may be binarized as shown in the following table. Can be.
  • the chroma intra prediction index when the CCLM mode among the intra prediction mode candidates of the current chroma block may be aligned as the second candidate, and the chroma intra prediction index indicates the CCLM mode among the intra prediction mode candidates, the chroma intra prediction The index can be binarized to '10'. That is, when the binary code of the chroma intra prediction index is '10', the chroma intra prediction index may indicate the CCLM mode.
  • Mode1 to Mode5 may represent intra prediction mode candidates of the current chroma block except for the CCLM mode, and may be derived as intra prediction mode candidates of the current chroma block in the order of Mode5 to Mode5.
  • the Mode1 may be aligned with the first candidate, and when the chroma intra prediction index indicates the Mode1 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '0'.
  • Mode2 may be aligned with the third candidate, and when the chroma intra prediction index indicates the Mode2 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '110'.
  • Mode3 may be arranged as a candidate 4, and when the chroma intra prediction index indicates Mode3 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '1110'.
  • Mode4 may be aligned with the fifth candidate, and when the chroma intra prediction index indicates the Mode4 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '11110'.
  • Mode5 may be arranged as a sixth candidate, and when the chroma intra prediction index indicates Mode5 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '111110'.
  • the chroma intra prediction index may be binarized as shown in the following table. Can be.
  • the chroma intra prediction index when the CCLM mode among the intra prediction mode candidates of the current chroma block may be aligned as the second candidate, and the chroma intra prediction index indicates the CCLM mode among the intra prediction mode candidates, the chroma intra prediction The index can be binarized to '10'. That is, when the binary code of the chroma intra prediction index is '10', the chroma intra prediction index may indicate the CCLM mode.
  • Mode1 to Mode5 may represent intra prediction mode candidates of the current chroma block except for the CCLM mode, and may be derived as intra prediction mode candidates of the current chroma block in the order of Mode5 to Mode5.
  • the Mode1 may be aligned with the first candidate, and when the chroma intra prediction index indicates the Mode1 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '0'.
  • Mode2 may be aligned with the third candidate, and when the chroma intra prediction index indicates the Mode2 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '1100'.
  • Mode3 may be aligned with candidate number 4, and when the chroma intra prediction index indicates Mode3 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '1101'.
  • Mode4 may be aligned with the fifth candidate, and when the chroma intra prediction index indicates the Mode4 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '1110'.
  • Mode5 may be aligned with the sixth candidate, and when the chroma intra prediction index indicates the Mode5 among the intra prediction mode candidates, the chroma intra prediction index may be binarized to '1111'.
  • the number of the intra prediction mode candidates is limited to 6 cases, but may also be applied to the number of the intra prediction mode candidates larger or smaller than six.
  • the CCLM mode may be arranged as candidates in an order other than 1 or 2 times.
  • FIG. 6 schematically illustrates a video encoding method by an encoding device according to the present invention.
  • the method disclosed in FIG. 6 may be performed by the encoding apparatus disclosed in FIG. 1.
  • S600 to S630 of FIG. 6 may be performed by the prediction unit of the encoding apparatus
  • S640 may be performed by the entropy encoding unit of the encoding apparatus.
  • the encoding apparatus determines the number of intra prediction mode candidates for the current chroma block (S600).
  • the encoding apparatus may determine the number of intra prediction mode candidates for the current chroma block.
  • the number of intra prediction mode candidates for the current chroma block may be determined based on the size of the current chroma block.
  • the number of intra prediction mode candidates may be determined based on whether the size of the current chroma block is greater than or equal to a specific size.
  • the width multiplied by the height of the current chroma block is equal to or greater than 64
  • the number of the intra prediction mode candidates of the current chroma block may be determined to be eight.
  • the number of samples included in the current chroma block is 64 or more, that is, when the current chroma block includes 64 or more samples
  • the number of candidate intra prediction mode candidates of the current chroma block is eight. Can be determined.
  • the number of intra prediction mode candidates of the current chroma block may be determined to be six. In other words, when the number of samples included in the current chroma block is less than 64, that is, when the current chroma block includes less than 64 samples, the number of intra prediction mode candidates of the current chroma block is six. Can be determined.
  • the number of the intra prediction mode candidates of the current chroma block may be proportional to the size of the current chroma block. Alternatively, the number of the intra prediction mode candidates of the current chroma block may be inversely proportional to the size of the current chroma block.
  • the number of intra prediction mode candidates for the current chroma block may be determined as a specific value.
  • the number of intra prediction mode candidates for the current chroma block may be determined to be eight, or the number of intra prediction mode candidates for the current chroma block may be determined to be four.
  • the number of intra prediction mode candidates may be always determined to be eight regardless of the size of the current chroma block.
  • the number of intra prediction mode candidates may always be determined to be 4 regardless of the size of the current chroma block.
  • the encoding apparatus may determine an optimal number of the intra prediction mode candidates of the current chroma block.
  • the encoding apparatus derives the determined number of intra prediction mode candidates (S610).
  • the intra prediction mode that may be derived as the intra prediction mode candidates may be one of two non-directional prediction modes and 33 directional prediction modes.
  • the intra prediction mode that may be derived as the intra prediction mode candidates may be one of two non-directional prediction modes and 65 directional prediction modes.
  • the two non-directional prediction modes may include an intra DC mode and an intra planner mode.
  • the encoding apparatus may derive the intra prediction mode candidates based on a luma block corresponding to the current chroma block and neighboring blocks of the current chroma block.
  • intra prediction mode candidates of the current chroma block may include a center right (CR), top left (TL), and top right sample (top right) of the luma block corresponding to the current chroma block.
  • the bottom left (BL), bottom right (BR) bottom right (BRtom right, BR) can be derived based on the intra prediction modes, the intra prediction mode candidates of the current chroma block It may be derived based on intra prediction modes of the left neighboring block, the upper neighboring block, the lower left neighboring block, the right upper neighboring block, and the upper left neighboring block of the chroma block. That is, intra prediction mode candidates of the current chroma block are used for prediction of the left neighboring block, the upper neighboring block, the lower left neighboring block, the right upper neighboring block, or the upper left neighboring block of the current chroma block. It can be derived based on intra prediction modes.
  • intra prediction mode candidates of the current chroma block may be derived in a specific order. That is, a specific search order may be set, and whether or not an overlap between the intra prediction mode of the current order and the intra prediction mode already derived as an intra prediction mode candidate on the specific search order may be determined. An intra prediction mode of a current order may be derived as an intra prediction mode candidate of the current chroma block. When the number of intra prediction mode candidates determined through the specific search order is derived, the process of deriving intra prediction mode candidates for the order after the current order may be terminated.
  • intra prediction mode candidates of the current chroma block may include the cross component linear model (CCLM) mode, an intra prediction mode of a luma block corresponding to the current chroma block, an intra prediction mode of a neighboring block of the current chroma block, and a planner.
  • CCLM cross component linear model
  • PLANAR PLANAR
  • DC mode when N intra prediction mode is derived as an intra prediction mode candidate in the previous sequence, N-1 directional intra prediction mode or N + 1 directional intra prediction mode, vertical mode, It may be determined whether it is possible to derive the intra prediction mode candidates in the order of the horizontal mode, the intra prediction modes 2, 34, 66, 10, and 26.
  • the CCLM mode may be first derived as an intra prediction mode candidate of the current chroma block.
  • a linear model is derived based on neighboring samples of the luma block corresponding to the current chroma block and surrounding samples of the current chroma block, and reconstruction of the linear model and the luma block. It may represent a mode for deriving prediction samples of the current chroma block based on samples. Equation for the linear model can be derived as shown in Equation 1 above.
  • the parameters of the linear model may be derived through Equations 2 and 3 described above.
  • an intra prediction mode applied to the sample position in the order of a center lower right sample, upper left sample, upper right sample, upper left sample, lower left sample, and lower right sample of the luma block corresponding to the current chroma block is derived as the intra prediction mode candidate. It can be determined whether it is possible. That is, it may be determined whether it is the same mode as a previously derived intra prediction mode candidate, and an intra prediction mode determined not to be the same as the previously derived intra prediction mode candidate may be derived as the intra prediction candidate mode.
  • the intra prediction mode applied to the neighboring block in the order of the left neighboring block, the upper neighboring block, the right upper neighboring block, the lower left neighboring block, and the upper left neighboring block of the current chroma block can be derived as the intra prediction mode candidate.
  • an intra prediction mode candidate of the current chroma block can be derived in order of a planar mode and a DC mode.
  • N intra prediction mode is derived as an intra prediction mode candidate in a previous sequence
  • N-1 directional intra prediction mode or N + 1 directional intra prediction mode is derived as an intra prediction mode candidate of the current chroma block. It can be determined whether it is possible.
  • the encoding apparatus derives one of the encoding prediction mode candidates into the intra prediction mode of the current chroma block (S620).
  • the encoding apparatus may select one intra prediction mode candidate among the intra prediction mode candidates as the intra prediction mode of the current chroma block.
  • the encoding apparatus may derive an intra prediction mode candidate having an optimal RD cost among the encoding prediction mode candidates as an intra prediction mode for the current block.
  • the encoding apparatus may generate an index indicating one of the intra prediction mode candidates of the current chroma block.
  • the index may be referred to as a chroma intra prediction mode index. That is, the chroma intra prediction mode index for the current chroma block representing one of the intra prediction mode candidates may be generated.
  • the encoding apparatus performs prediction of the current chroma block based on an intra prediction mode (S630).
  • the encoding apparatus may generate a prediction sample of the current chroma block using neighboring samples of the current chroma block according to the intra prediction mode.
  • the peripheral samples may include upper peripheral samples and left peripheral samples of the current chroma block.
  • the encoding apparatus generates, encodes, and outputs prediction information about the current chroma block (S640).
  • the encoding apparatus may generate prediction information on the current chroma block and may signal through a bitstream.
  • the prediction information may include the chroma intra prediction mode index for the current chroma block representing one of the intra prediction mode candidates of the current chroma block.
  • the chroma intra prediction mode index for the current chroma block may be encoded through context-based adaptive binary arithmetic coding (CABAC).
  • CABAC context-based adaptive binary arithmetic coding
  • the chroma intra prediction mode index may be binarized through various methods.
  • the intra prediction mode candidates may be aligned from candidate 1 to candidate N, and the candidates 1 to N candidates.
  • the value of the chroma intra prediction mode index representing each may be binarized through the binary code. That is, the chroma intra prediction mode index may be binarized through the binary code. For example, a binarization code having a large number of bits may be allocated from the first candidate to the N candidate.
  • the binarization code may be allocated as shown in Table 6 above.
  • the value of the chroma intra prediction mode index representing each of the candidates 1 to N may be binarized through a truncated binary code. That is, the chroma intra prediction mode index may be binarized through the truncated binary code. For example, a binarization code having a larger number of bits may be allocated from candidate 1 to candidate N in order, and the binarization code for candidate N and the binarization code for candidate N-1 may be assigned the same number of bits. Can be.
  • the binarization code may be allocated as shown in Table 1 and Table 5 above.
  • the value of the chroma intra prediction mode index representing each of the candidates 1 to N may be binarized through a fixed length code. That is, the chroma intra prediction mode index may be binarized through the fixed length code.
  • the binarization code may be allocated to 1 bit, 2 bits or 4 bits.
  • the binarization code may be allocated as shown in Tables 2 and 7 described above.
  • the intra prediction mode candidates may be arranged in the order in which the candidates are derived.
  • the CCLM mode when the CCLM mode is included among the intra prediction mode candidates, the CCLM mode may be derived as a candidate 1 or a candidate 2 of the intra prediction mode candidates.
  • the binarization code of the chroma intra prediction index indicating the candidate 1 may be allocated with the smallest number of bits among the binarization codes of the chroma intra prediction index for the intra prediction mode candidates.
  • a context model for the chroma intra prediction mode index may be derived based on the number of bits of the binary code of the chroma intra prediction mode index, and based on the derived context model.
  • the chroma intra prediction mode index may be encoded. That is, a context model having different initial values may be derived according to the number of bits of the binary code of the chroma intra prediction mode index, and may be encoded through the context model. For example, when the number of bits of the binary code of the chroma intra prediction mode index is 1, the context model for the chroma intra prediction mode index may be derived as context model 0, The initial value of the context model 0 may be 139 or 184.
  • the context model for the chroma intra prediction mode index may be derived from the context model 1, and the context The initial value of model 1 may be 63, 154 or 152.
  • the context model for the chroma intra prediction mode index may be derived based on Tables 1 to 3 and 5 to 7 described above.
  • the initial value of the context model for the chroma intra prediction mode index may be derived based on Table 4 described above.
  • the encoding apparatus may generate a residual sample based on the original sample and the derived prediction sample.
  • the encoding apparatus may generate information about the residual based on the residual sample.
  • the information about the residual may include transform coefficients related to the residual sample.
  • the encoding apparatus may derive the reconstructed sample based on the prediction sample and the residual sample. That is, the encoding apparatus may derive the reconstructed sample by adding the prediction sample and the residual sample.
  • the encoding apparatus may encode the information about the residual and output the bitstream.
  • the bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
  • FIG. 7 schematically illustrates a video decoding method by a decoding apparatus according to the present invention.
  • the method disclosed in FIG. 7 may be performed by the decoding apparatus disclosed in FIG. 2.
  • S700 to S730 may be performed by the prediction unit of the decoding apparatus.
  • the decoding apparatus determines the number of intra prediction mode candidates for the current chroma block (S700).
  • the decoding apparatus may determine the number of intra prediction mode candidates for the current chroma block.
  • the number of intra prediction mode candidates for the current chroma block may be determined based on the size of the current chroma block.
  • the number of intra prediction mode candidates may be determined based on whether the size of the current chroma block is greater than or equal to a specific size. Specifically, when the width of the current chroma block is multiplied by height (height) is 64 or more (when the size of the current chroma block is AxB size, multiplied by A and B is 64 or more), The number of the intra prediction mode candidates of the current chroma block may be determined to be eight.
  • the number of candidate intra prediction mode candidates of the current chroma block is eight. Can be determined.
  • the width of the current chroma block is multiplied by height (height) is less than 64 (the size of the current chroma block is AxB size, the value of A and B times less than 64)
  • the number of intra prediction mode candidates of the current chroma block may be determined to be six.
  • the number of intra prediction mode candidates of the current chroma block is six. Can be determined.
  • the number of the intra prediction mode candidates of the current chroma block may be proportional to the size of the current chroma block.
  • the number of the intra prediction mode candidates of the current chroma block may be inversely proportional to the size of the current chroma block.
  • the number of intra prediction mode candidates for the current chroma block may be determined as a specific value.
  • the number of intra prediction mode candidates for the current chroma block may be determined to be eight, or the number of intra prediction mode candidates for the current chroma block may be determined to be four.
  • the number of intra prediction mode candidates may be always determined to be eight regardless of the size of the current chroma block.
  • the number of intra prediction mode candidates may always be determined to be 4 regardless of the size of the current chroma block.
  • the decoding apparatus derives the determined number of intra prediction mode candidates (S710).
  • the intra prediction mode that may be derived as the intra prediction mode candidates may be one of two non-directional prediction modes and 33 directional prediction modes.
  • the intra prediction mode that may be derived as the intra prediction mode candidates may be one of two non-directional prediction modes and 65 directional prediction modes.
  • the two non-directional prediction modes may include an intra DC mode and an intra planner mode.
  • the decoding apparatus may derive the intra prediction mode candidates based on a luma block corresponding to the current chroma block and neighboring blocks of the current chroma block.
  • intra prediction mode candidates of the current chroma block may include a center right (CR), top left (TL), and top right sample (top right) of the luma block corresponding to the current chroma block.
  • the bottom left (BL), bottom right (BR) bottom right (BRtom right, BR) can be derived based on the intra prediction modes, the intra prediction mode candidates of the current chroma block It may be derived based on intra prediction modes of the left neighboring block, the upper neighboring block, the lower left neighboring block, the right upper neighboring block, and the upper left neighboring block of the chroma block. That is, intra prediction mode candidates of the current chroma block are used for prediction of the left neighboring block, the upper neighboring block, the lower left neighboring block, the right upper neighboring block, or the upper left neighboring block of the current chroma block. It can be derived based on intra prediction modes.
  • intra prediction mode candidates of the current chroma block may be derived in a specific order. That is, a specific search order may be set, and whether or not an overlap between the intra prediction mode of the current order and the intra prediction mode already derived as an intra prediction mode candidate on the specific search order may be determined. An intra prediction mode of a current order may be derived as an intra prediction mode candidate of the current chroma block. When the number of intra prediction mode candidates determined through the specific search order is derived, the process of deriving intra prediction mode candidates for the order after the current order may be terminated.
  • intra prediction mode candidates of the current chroma block may include the cross component linear model (CCLM) mode, an intra prediction mode of a luma block corresponding to the current chroma block, an intra prediction mode of a neighboring block of the current chroma block, and a planner.
  • CCLM cross component linear model
  • PLANAR PLANAR
  • DC mode when N intra prediction mode is derived as an intra prediction mode candidate in the previous sequence, N-1 directional intra prediction mode or N + 1 directional intra prediction mode, vertical mode, It may be determined whether it is possible to derive the intra prediction mode candidates in the order of the horizontal mode, the intra prediction modes 2, 34, 66, 10, and 26.
  • the CCLM mode may be first derived as an intra prediction mode candidate of the current chroma block.
  • a linear model is derived based on neighboring samples of the luma block corresponding to the current chroma block and surrounding samples of the current chroma block, and reconstruction of the linear model and the luma block. It may represent a mode for deriving prediction samples of the current chroma block based on samples. Equation for the linear model can be derived as shown in Equation 1 above.
  • the parameters of the linear model may be derived through Equations 2 and 3 described above.
  • an intra prediction mode applied to the sample position in the order of a center lower right sample, upper left sample, upper right sample, upper left sample, lower left sample, and lower right sample of the luma block corresponding to the current chroma block is derived as the intra prediction mode candidate. It can be determined whether it is possible. That is, it may be determined whether it is the same mode as a previously derived intra prediction mode candidate, and an intra prediction mode determined not to be the same as the previously derived intra prediction mode candidate may be derived as the intra prediction candidate mode.
  • the intra prediction mode applied to the neighboring block in the order of the left neighboring block, the upper neighboring block, the right upper neighboring block, the lower left neighboring block, and the upper left neighboring block of the current chroma block can be derived as the intra prediction mode candidate.
  • an intra prediction mode candidate of the current chroma block can be derived in order of a planar mode and a DC mode.
  • N intra prediction mode is derived as an intra prediction mode candidate in a previous sequence
  • N-1 directional intra prediction mode or N + 1 directional intra prediction mode is derived as an intra prediction mode candidate of the current chroma block. It can be determined whether it is possible.
  • the decoding apparatus derives one of the encoding prediction mode candidates into the intra prediction mode of the current chroma block (S720).
  • the decoding apparatus may obtain prediction information about the current block through the bitstream.
  • the prediction information may include an index indicating one of the intra prediction mode candidates of the current chroma block.
  • the index may be referred to as a chroma intra prediction mode index. That is, the prediction information may include the chroma intra prediction mode index for the current chroma block representing one of the intra prediction mode candidates.
  • the decoding apparatus may derive an intra prediction mode candidate of one of the intra prediction mode candidates into the intra prediction mode of the current chroma block based on the chroma intra prediction mode index.
  • the decoding apparatus may derive an intra prediction mode candidate indicated by the chroma intra prediction mode index among the intra prediction mode candidates as the intra prediction mode of the current chroma block.
  • An intra prediction mode candidate indicated by the chroma intra prediction mode index among the intra prediction mode candidates may be derived as the intra prediction mode of the current chroma block.
  • the chroma intra prediction mode index for the current chroma block may be decoded through context-based adaptive binary arithmetic coding (CABAC).
  • CABAC context-based adaptive binary arithmetic coding
  • the chroma intra prediction mode index may be binarized through various methods.
  • the intra prediction mode candidates may be aligned from candidate 1 to candidate N, and the candidates 1 to N candidates.
  • the value of the chroma intra prediction mode index representing each may be binarized through the binary code. That is, the chroma intra prediction mode index may be binarized through the binary code. For example, a binarization code having a large number of bits may be allocated from the first candidate to the N candidate.
  • the binarization code may be allocated as shown in Table 6 above.
  • the value of the chroma intra prediction mode index representing each of the candidates 1 to N may be binarized through a truncated binary code. That is, the chroma intra prediction mode index may be binarized through the truncated binary code. For example, a binarization code having a larger number of bits may be allocated from candidate 1 to candidate N in order, and the binarization code for candidate N and the binarization code for candidate N-1 may be assigned the same number of bits. Can be.
  • the binarization code may be allocated as shown in Table 1 and Table 5 above.
  • the value of the chroma intra prediction mode index representing each of the candidates 1 to N may be binarized through a fixed length code. That is, the chroma intra prediction mode index may be binarized through the fixed length code.
  • the binarization code may be allocated to 1 bit, 2 bits or 4 bits.
  • the binarization code may be allocated as shown in Tables 2 and 7 described above.
  • the intra prediction mode candidates may be arranged in the order in which the candidates are derived.
  • the CCLM mode when the CCLM mode is included among the intra prediction mode candidates, the CCLM mode may be derived as a candidate 1 or a candidate 2 of the intra prediction mode candidates.
  • the binarization code of the chroma intra prediction index indicating the candidate 1 may be allocated with the smallest number of bits among the binarization codes of the chroma intra prediction index for the intra prediction mode candidates.
  • a context model for the chroma intra prediction mode index may be derived based on the number of bits of the binary code of the chroma intra prediction mode index, and based on the derived context model.
  • the chroma intra prediction mode index may be decoded. That is, a context model having different initial values may be derived according to the number of bits of the binary code of the chroma intra prediction mode index, and may be decoded through the context model. For example, when the number of bits of the binary code of the chroma intra prediction mode index is 1, the context model for the chroma intra prediction mode index may be derived as context model 0, The initial value of the context model 0 may be 139 or 184.
  • the context model for the chroma intra prediction mode index may be derived from the context model 1, and the context The initial value of model 1 may be 63, 154 or 152.
  • the context model for the chroma intra prediction mode index may be derived based on Tables 1 to 3 and 5 to 7 described above.
  • the initial value of the context model for the chroma intra prediction mode index may be derived based on Table 4 described above.
  • the decoding apparatus performs prediction of the current chroma block based on the intra prediction mode (S730).
  • the encoding apparatus may generate a prediction sample of the current chroma block using neighboring samples of the current chroma block according to the intra prediction mode.
  • the peripheral samples may include upper peripheral samples and left peripheral samples of the current chroma block.
  • the decoding apparatus may generate a reconstructed sample based on the prediction sample.
  • the decoding apparatus may receive information about the residual for the current block from the bitstream.
  • the information about the residual may include transform coefficients regarding the (chroma) residual sample.
  • the decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information. In this case, the decoding apparatus may generate the reconstructed sample based on the prediction sample and the residual sample.
  • the decoding apparatus 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 SAO procedure
  • the number of intra prediction mode candidates can be derived according to a specific condition, and through this, the intra prediction mode of the current chroma block can be derived more accurately, and the prediction accuracy for the current block can be improved. have.
  • binarization of indexes for intra prediction mode candidates can be performed through various methods, thereby reducing the amount of bits for prediction information of the current chroma block and improving overall coding efficiency. have.
  • coding may be performed through another context model according to the number of bits of an index for intra prediction mode candidates, thereby improving overall coding efficiency.
  • 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.

Abstract

본 발명에 따른 디코딩 장치에 의하여 수행되는 영상 디코딩 방법은 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정하는 단계, 상기 결정된 개수의 상기 인트라 예측 모드 후보들을 도출하는 단계, 상기 인트라 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 인트라 예측 모드로 도출하는 단계, 및 상기 현재 크로마 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행하는 단계를 포함하는 것을 특징으로 한다.

Description

영상 코딩 시스템에서 영상 디코딩 방법 및 장치
본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 영상 디코딩 방법 및 장치에 관한 것이다.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.
본 발명의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.
본 발명의 다른 기술적 과제는 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정하고, 결정된 개수의 인트라 예측 모드 후보들을 기반으로 현재 크로마 블록에 대한 인트라 예측 모드를 도출하고, 인트라 예측 모드를 기반으로 예측을 수행하는 인트라 예측 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 현재 크로마 블록에 대한 인트라 예측 모드 후보들에 대한 정보를 코딩하는 방법 및 장치를 제공함에 있다.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정하는 단계, 상기 결정된 개수의 상기 인트라 예측 모드 후보들을 도출하는 단계, 상기 인트라 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 인트라 예측 모드로 도출하는 단계, 및 상기 현재 크로마 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행하는 단계를 포함하는 것을 특징으로 한다.
본 발명의 다른 일 실시예에 따르면, 영상 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는 현재 크로마 블록에 대한 예측 정보를 획득하는 엔트로피 디코딩부, 및 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정하고, 상기 결정된 개수의 상기 인트라 예측 모드 후보들을 도출하고, 상기 예측 정보를 기반으로 상기 인트라 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 인트라 예측 모드로 도출하고, 상기 현재 크로마 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행하는 예측부를 포함하는 것을 특징으로 한다.
본 발명의 또 다른 일 실시예에 따르면, 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법을 제공한다. 상기 방법은 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정하는 단계, 상기 결정된 개수의 상기 인트라 예측 모드 후보들을 도출하는 단계, 상기 인트라 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 인트라 예측 모드로 도출하는 단계, 상기 현재 크로마 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행하는 단계, 및 상기 현재 크로마 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 단계를 포함하는 것을 특징으로 한다.
본 발명의 또 다른 일 실시예에 따르면, 비디오 인코딩 장치를 제공한다. 상기 인코딩 장치는 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정하고, 상기 결정된 개수의 상기 인트라 예측 모드 후보들을 도출하고, 상기 인트라 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 인트라 예측 모드로 도출하고, 상기 현재 크로마 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행하는 예측부, 및 상기 현재 크로마 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 엔트로피 인코딩부를 포함하는 것을 특징으로 한다.
본 발명에 따르면 특정 조건에 따라 인트라 예측 모드 후보들의 개수를 도출할 수 있고, 이를 통하여 보다 정확하게 현재 크로마 블록의 인트라 예측 모드를 도출할 수 있고, 상기 현재 블록에 대한 예측 정확도를 향상시킬 수 있다.
본 발명에 따르면 다양한 방법을 통하여 인트라 예측 모드 후보들에 대한 인덱스의 이진화를 수행할 수 있고, 이를 통하여 상기 현재 크로마 블록의 예측 정보에 대한 비트량을 줄일 수 있고, 전반적인 코딩 효율을 향상시킬 수 있다.
본 발명에 따르면 인트라 예측 모드 후보들에 대한 인덱스의 비트수에 따라 다른 문맥 모델을 통하여 코딩을 수행할 수 있고, 이를 통하여 전반적인 코딩 효율을 향상시킬 수 있다.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 3은 상기 현재 블록의 인트라 예측에 사용되는 상기 좌측 주변 샘플들 및 상측 주변 샘플들을 예시적으로 나타낸다.
도 4는 65개의 예측 방향의 인트라 방향성 모드들을 예시적으로 나타낸다.
도 5는 상기 현재 크로마 블록(520)의 인트라 예측 모드 후보들을 도출하는 일 예를 나타낸다.
도 6은 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다.
도 7은 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.
본 명세서에서 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다.
유닛(unit)은 영상 처리의 기본 단위를 나타낸다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 1을 참조하면, 비디오 인코딩 장치(100)는 픽처 분할부(105), 예측부(110), 레지듀얼 처리부(120), 가산부(140), 필터부(150) 및 메모리(160)을 포함할 수 있다. 레지듀얼 처리부(120)는 감산부(121), 변환부(122), 양자화부(123), 재정렬부(124), 역양자화부(125) 및 역변환부(126)를 포함할 수 있다.
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다.
일 예로, 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다.
다른 예로, 처리 유닛은 코딩 유닛(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)를 포함할 수 있다. 또한, 변환 블록 또는 변환 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 변환 계수 또는 레지듀얼 샘플의 어레이를 포함할 수 있다.
예측부(110)는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(110)에서 수행되는 예측의 단위는 코딩 블록일 수 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.
예측부(110)는 현재 블록에 인트라 예측이 적용되는지 인터 예측이 적용되는지를 결정할 수 있다. 일 예로, 예측부(110)는 CU 단위로 인트라 예측 또는 인터 예측이 적용되는지를 결정할 수 있다.
인트라 예측의 경우에, 예측부(110)는 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 현재 블록 외부의 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 예측부(110)는 (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 인트라 예측에서 예측 모드는 예를 들어 33개의 방향성 예측 모드와 적어도 2개 이상의 비방향성 모드를 가질 수 있다. 비방향성 모드는 DC 예측 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 예측부(110)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측의 경우에, 예측부(110)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 샘플을 기반으로, 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(110)는 스킵(skip) 모드, 머지(merge) 모드, 및 MVP(motion vector prediction) 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 스킵 모드와 머지 모드의 경우에, 예측부(110)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차(레지듀얼)가 전송되지 않는다. MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(Motion Vector Predictor)로 이용하여 현재 블록의 움직임 벡터 예측자로 이용하여 현재 블록의 움직임 벡터를 유도할 수 있다.
인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처(reference picture)에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 움직임 정보(motion information)는 움직임 벡터와 참조 픽처 인덱스를 포함할 수 있다. 예측 모드 정보와 움직임 정보 등의 정보는 (엔트로피) 인코딩되어 비트스트림 형태로 출력될 수 있다.
스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트(reference picture list) 상의 최상위 픽처가 참조 픽처로서 이용될 수도 있다. 참조 픽처 리스트(Picture Order Count)에 포함되는 참조 픽처들은 현재 픽처와 해당 참조 픽처 간의 POC(Picture order count) 차이 기반으로 정렬될 수 있다. POC는 픽처의 디스플레이 순서에 대응하며, 코딩 순서와 구분될 수 있다.
감산부(121)는 원본 샘플과 예측 샘플 간의 차이인 레지듀얼 샘플을 생성한다. 스킵 모드가 적용되는 경우에는, 상술한 바와 같이 레지듀얼 샘플을 생성하지 않을 수 있다.
변환부(122)는 변환 블록 단위로 레지듀얼 샘플을 변환하여 변환 계수(transform coefficient)를 생성한다. 변환부(122)는 해당 변환 블록의 사이즈와, 해당 변환 블록과 공간적으로 겹치는 코딩 블록 또는 예측 블록에 적용된 예측 모드에 따라서 변환을 수행할 수 있다. 예컨대, 상기 변환 블록과 겹치는 상기 코딩 블록 또는 상기 예측 블록에 인트라 예측이 적용되었고, 상기 변환 블록이 4×4의 레지듀얼 어레이(array)라면, 레지듀얼 샘플은 DST(Discrete Sine Transform) 변환 커널을 이용하여 변환되고, 그 외의 경우라면 레지듀얼 샘플은 DCT(Discrete Cosine Transform) 변환 커널을 이용하여 변환할 수 있다.
양자화부(123)는 변환 계수들을 양자화하여, 양자화된 변환 계수를 생성할 수 있다.
재정렬부(124)는 양자화된 변환 계수를 재정렬한다. 재정렬부(124)는 계수들 스캐닝(scanning) 방법을 통해 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있다. 여기서 재정렬부(124)는 별도의 구성으로 설명하였으나, 재정렬부(124)는 양자화부(123)의 일부일 수 있다.
엔트로피 인코딩부(130)는 양자화된 변환 계수들에 대한 엔트로피 인코딩을 수행할 수 있다. 엔트로피 인코딩은 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 인코딩 방법을 포함할 수 있다. 엔트로피 인코딩부(130)는 양자화된 변환 계수 외 비디오 복원에 필요한 정보들(예컨대 신택스 요소(syntax element)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 엔트로피 인코딩된 정보들은 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다.
역양자화부(125)는 양자화부(123)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(126)는 역양자화부(125)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.
가산부(140)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(140)는 별도의 구성으로 설명하였으나, 가산부(140)는 예측부(110)의 일부일 수 있다. 한편, 가산부(140)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다.
복원된 픽처(reconstructed picture)에 대하여 필터부(150)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(150)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.
메모리(160)는 복원 픽처(디코딩된 픽처) 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(150)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 2를 참조하면, 비디오 디코딩 장치(200)는 엔트로피 디코딩부(210), 레지듀얼 처리부(220), 예측부(230), 가산부(240), 필터부(250) 및 메모리(260)을 포함할 수 있다. 여기서 레지듀얼 처리부(220)는 재정렬부(221), 역양자화부(222), 역변환부(223)을 포함할 수 있다.
비디오 정보를 포함하는 비트스트림이 입력되면, 비디오 디코딩 장치는(200)는 비디오 인코딩 장치에서 비디오 정보가 처리된 프로세스에 대응하여 비디오를 복원할 수 있다.
예컨대, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 적용된 처리 유닛을 이용하여 비디오 디코딩을 수행할 수 있다. 따라서 비디오 디코딩의 처리 유닛 블록은 일 예로 코딩 유닛일 수 있고, 다른 예로 코딩 유닛, 예측 유닛 또는 변환 유닛일 수 있다. 코딩 유닛은 최대 코딩 유닛으로부터 쿼드 트리 구조 및/또는 바이너리 트리 구조를 따라서 분할될 수 있다.
예측 유닛 및 변환 유닛이 경우에 따라 더 사용될 수 있으며, 이 경우 예측 블록은 코딩 유닛으로부터 도출 또는 파티셔닝되는 블록으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 또는 변환 계수로부터 레지듀얼 신호를 유도하는 유닛일 수 있다.
엔트로피 디코딩부(210)는 비트스트림을 파싱하여 비디오 복원 또는 픽처 복원에 필요한 정보를 출력할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 비디오 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다.
보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다.
엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(230)로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수는 재정렬부(221)로 입력될 수 있다.
재정렬부(221)는 양자화되어 있는 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 재정렬부(221)는 인코딩 장치에서 수행된 계수 스캐닝에 대응하여 재정렬을 수행할 수 있다. 여기서 재정렬부(221)는 별도의 구성으로 설명하였으나, 재정렬부(221)는 역양자화부(222)의 일부일 수 있다.
역양자화부(222)는 양자화되어 있는 변환 계수들을 (역)양자화 파라미터를 기반으로 역양자화하여 변환 계수를 출력할 수 있다. 이 때, 양자화 파라미터를 유도하기 위한 정보는 인코딩 장치로부터 시그널링될 수 있다.
역변환부(223)는 변환 계수들을 역변환하여 레지듀얼 샘플들을 유도할 수 있다.
예측부(230)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(230)에서 수행되는 예측의 단위는 코딩 블록일 수도 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.
예측부(230)는 상기 예측에 관한 정보를 기반으로 인트라 예측을 적용할 것인지 인터 예측을 적용할 것인지를 결정할 수 있다. 이 때, 인트라 예측과 인터 예측 중 어느 것을 적용할 것인지를 결정하는 단위와 예측 샘플을 생성하는 단위는 상이할 수 있다. 아울러, 인터 예측과 인트라 예측에 있어서 예측 샘플을 생성하는 단위 또한 상이할 수 있다. 예를 들어, 인터 예측과 인트라 예측 중 어느 것을 적용할 것인지는 CU 단위로 결정할 수 있다. 또한 예를 들어, 인터 예측에 있어서 PU 단위로 예측 모드를 결정하고 예측 샘플을 생성할 수 있고, 인트라 예측에 있어서 PU 단위로 예측 모드를 결정하고 TU 단위로 예측 샘플을 생성할 수도 있다.
인트라 예측의 경우에, 예측부(230)는 현재 픽처 내의 주변 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용할 예측 모드가 결정될 수도 있다.
인터 예측의 경우에, 예측부(230)는 참조 픽처 상에서 움직임 벡터에 의해 참조 픽처 상에서 특정되는 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 스킵(skip) 모드, 머지(merge) 모드 및 MVP 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이때, 비디오 인코딩 장치에서 제공된 현재 블록의 인터 예측에 필요한 움직임 정보, 예컨대 움직임 벡터, 참조 픽처 인덱스 등에 관한 정보는 상기 예측에 관한 정보를 기반으로 획득 또는 유도될 수 있다
스킵 모드와 머지 모드의 경우에, 주변 블록의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.
예측부(230)는 가용한 주변 블록의 움직임 정보로 머지 후보 리스트를 구성하고, 머지 인덱스가 머지 후보 리스트 상에서 지시하는 정보를 현재 블록의 움직임 벡터로 사용할 수 있다. 머지 인덱스는 인코딩 장치로부터 시그널링될 수 있다. 움직임 정보는 움직임 벡터와 참조 픽처를 포함할 수 있다. 스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트 상의 최상위 픽처가 참조 픽처로서 이용될 수 있다.
스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차이(레지듀얼)이 전송되지 않는다.
MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하여 현재 블록의 움직임 벡터가 유도될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.
일 예로, 머지 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 머지 후보 리스트가 생성될 수 있다. 머지 모드에서는 머지 후보 리스트에서 선택된 후보 블록의 움직임 벡터가 현재 블록의 움직임 벡터로 사용된다. 상기 예측에 관한 정보는 상기 머지 후보 리스트에 포함된 후보 블록들 중에서 선택된 최적의 움직임 벡터를 갖는 후보 블록을 지시하는 머지 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 머지 인덱스를 이용하여, 현재 블록의 움직임 벡터를 도출할 수 있다.
다른 예로, MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터는 움직임 벡터 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 후보 중에서 선택된 최적의 움직임 벡터를 지시하는 예측 움직임 벡터 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 움직임 벡터 인덱스를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서, 현재 블록의 예측 움직임 벡터를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 예측부(230)는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 예측부는 또한 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다.
가산부(240)는 레지듀얼 샘플과 예측 샘플을 더하여 현재 블록 혹은 현재 픽처를 복원할 수 있다. 가산부(240)는 레지듀얼 샘플과 예측 샘플을 블록 단위로 더하여 현재 픽처를 복원할 수도 있다. 스킵 모드가 적용된 경우에는 레지듀얼이 전송되지 않으므로, 예측 샘플이 복원 샘플이 될 수 있다. 여기서는 가산부(240)를 별도의 구성으로 설명하였으나, 가산부(240)는 예측부(230)의 일부일 수도 있다. 한편, 가산부(240)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다.
필터부(250)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.
메모리(260)는 복원 픽처(디코딩된 픽처) 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(250)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(260)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(260)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다.
상술한 내용과 같이 현재 블록에 예측이 수행되는 경우, 인트라 예측 모드를 기반으로 상기 예측이 수행될 수 있다. 예를 들어, 상기 현재 블록의 디코딩 시점에 이미 인코딩/디코딩이 수행된 주변 샘플을 기반으로 상기 인트라 예측이 수행될 수 있다. 즉, 상기 현재 블록의 예측 샘플은 이미 복원된 상기 현재 블록의 좌측 주변 샘플들 및 상측 주변 샘플들을 사용하여 복원될 수 있다. 상기 좌측 주변 샘플들 및 상기 상측 주변 샘플들은 다음 도 3과 같이 나타낼 수 있다.
도 3은 상기 현재 블록의 인트라 예측에 사용되는 상기 좌측 주변 샘플들 및 상측 주변 샘플들을 예시적으로 나타낸다. 상기 현재 블록에 인트라 예측이 수행되는 경우, 상기 현재 블록에 대한 인트라 예측 모드가 도출될 수 있고, 상기 인트라 예측 모드에 따라 상기 좌측 주변 샘플들 및 상측 주변 샘플들 중 적어도 하나를 이용하여 상기 현재 블록에 대한 예측 샘플이 생성될 수 있다. 여기서, 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 33개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 34번 인트라 예측 모드들을 포함할 수 있다. 상기 플래너 인트라 예측 모드는 플래너 모드라고 불릴 수 있고, 상기 DC 인트라 예측 모드는 DC 모드라고 불릴 수 있다. 또한, 10번 인트라 예측 모드는 수평 인트라 예측 모드(horizontal intra prediction mode) 또는 수평 모드, 26번 인트라 예측 모드는 수직 인트라 예측 모드(vertical intra prediction mode) 또는 수직 모드를 나타내며 이를 기준으로 방향성 인트라 모드(angular intra mode)의 예측 방향을 각도로 표현할 수 있다. 다시 말하자면, 10번 인트라 예측 모드에 대응하는 수평기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있고, 26번 인트라 예측 모드에 대응하는 수직기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있다.
또한, 고화질의 비디오에 대한 수요가 늘어나고 있고, 이에 따른 비디오 코덱의 효율을 높이기 위해 방향성 인트라 예측 방향의 수가 65개로 증가할 수 있다. 즉, 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 66번 인트라 예측 모드들을 포함할 수 있다.
도 4는 65개의 예측 방향의 인트라 방향성 모드들을 예시적으로 나타낸다.
도 4를 참조하면, 좌상 대각 예측 방향을 갖는 34번 인트라 예측 모드를 중심으로 수평 방향성(horizontal directionality)을 갖는 인트라 예측 모드와 수직 방향성(vertical directionality)을 갖는 인트라 예측 모드를 구분할 수 있다. 도 4의 H와 V는 각각 수평 방향성과 수직 방향성을 의미하며, -32 ~ 32의 숫자는 샘플 그리드 포지션(sample grid position) 상에서 1/32 단위의 변위를 나타낸다. 2번 내지 33번 인트라 예측 모드는 수평 방향성, 34번 내지 66번 인트라 예측 모드는 수직 방향성을 갖는다. 18번 인트라 예측 모드와 50번 인트라 예측 모드는 각각 수평 인트라 예측 모드(horizontal intra prediction mode), 수직 인트라 예측 모드(vertical intra prediction mode)를 나타내며 이를 기준으로 방향성 인트라 예측 모드(angular intra prediction mode)의 예측 방향을 각도로 표현할 수 있다. 다시 말하자면, 18번 인트라 예측 모드에 대응하는 수평기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있고, 50번 인트라 예측 모드에 대응하는 수직기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있다.
한편, 상기 현재 블록의 크로마 성분에 대하여 인트라 예측이 수행되는 경우, 상기 현재 블록의 크로마 성분에 대한 인트라 예측 모드 후보들이 도출될 수 있고, 상기 인트라 예측 모드 후보들 중 하나가 상기 현재 블록의 상기 크로마 성분에 대한 인트라 예측 모드로 도출될 수 있다. 여기서, 상기 현재 블록의 상기 크로마 성분은 현재 크로마 블록이라고 나타낼 수 있다.
현재 JVET(Joint Video Exploration Team)에서 사용되는 JEM(Joint Explolation test Model) 5.0.1 에서는 상기 현재 크로마 블록이 인트라 예측을 기반으로 인코딩되는 경우, 후술하는 내용과 같이 상기 현재 크로마 블록의 인트라 예측 모드 후보들이 도출된다.
도 5는 상기 현재 크로마 블록(520)의 인트라 예측 모드 후보들을 도출하는 일 예를 나타낸다. 예를 들어, CCLM(cross component linear model) 모드가 사용될 수 있고, 이 경우, 상기 CCLM 모드는 상기 현재 크로마 블록(520)의 인트라 예측 모드 후보로 도출될 수 있다. 상기 CCLM 모드에 대한 구체적인 내용은 후술한다. 상기 현재 크로마 블록(520)의 상기 인트라 예측 모드 후보들은 총 6개의 후보들을 포함할 수 있다. 따라서, 상기 CCLM 모드가 사용되지 않는 경우, 후술하는 순서를 기반으로 6개의 인트라 예측 모드 후보들이 도출될 수 있고, 상기 CCLM 모드가 사용되어 상기 CCLM 모드가 상기 현재 크로마 블록(520)의 인트라 예측 모드 후보로 도출된 경우, 후술하는 순서를 기반으로 5개의 인트라 예측 모드 후보들이 도출될 수 있다. 즉, 현재 순서의 인트라 예측 모드와 이미 인트라 예측 모드 후보로 도출된 인트라 예측 모드와의 중복 여부가 판단될 수 있고, 중복되지 않는 경우에 상기 현재 순서의 인트라 예측 모드가 상기 현재 크로마 블록(520)의 인트라 예측 모드 후보로 도출될 수 있다. 인트라 예측 모드 후보들에 대한 도출 과정을 통하여 6개(상기 CCLM 모드가 상기 현재 크로마 블록(520)의 인트라 예측 모드 후보로 도출된 경우는 5개)의 인트라 예측 모드 후보들이 도출된 경우, 코딩 장치는 상기 도출 과정을 종료할 수 있다. 상기 현재 크로마 블록(520)의 상기 인트라 예측 모드 후보들의 도출 순서는 다음과 같을 수 있다.
- 상기 현재 크로마 블록(520)과 대응하는 현재 루마 블록(510)의 센터 우하단 샘플(center right, CR), 좌상단 샘플(top left, TL), 우상단 샘플(top right, TR), 좌하단 샘플(bottom left, BL), 우하단 샘플(bottom right, BR) 위치의 인트라 예측 모드들
- 현재 크로마 블록(520)의 좌측 주변 블록(L), 상측 주변 블록(A), 좌하측 주변 블록(BL), 우상측 주변 블록(AR), 좌상측 주변 블록(AL)의 인트라 예측 모드들
- PLANAR 모드, DC 모드
- 앞서 인트라 예측 모드 후보로 도출된 방향성 인트라 예측 모드에 -1 or +1 angular 모드
- 수직(Vertical) 모드, 수평(Horizontal) 모드, 2, 34, 66, 10, 26번 인트라 예측 모드
한편, 상술한 순서로 상기 현재 크로마 블록(520)의 인트라 예측 모드 후보들을 도출하는 과정이 수행되어도 6개(상기 CCLM 모드가 상기 현재 크로마 블록(520)의 인트라 예측 모드 후보로 도출된 경우는 5개)의 인트라 예측 모드 후보들이 도출되지 않은 경우, 이미 도출된 인트라 예측 모드 후보가 복사되어 상기 인트라 예측 모드 후보들로 도출될 수 있다. 즉, 이 경우, 상기 현재 크로마 블록(520)의 상기 인트라 예측 모드 후보들은 동일한 인트라 예측 모드를 나타내는 복수의 인트라 예측 모드 후보들을 포함할 수 있다.
한편, 상기 CCLM 모드는 루마 블록과 상기 루마 블록에 대응하는 크로마 블록과의 상관성(correlation)을 이용한 인트라 예측 모드로, 상기 루마 블록의 주변 샘플들 및 크로마 블록의 주변 샘플들을 기반으로 선형 모델이 도출될 수 있고, 상기 선형 모델 및 상기 루마 블록의 복원 샘플들을 기반으로 상기 크로마 블록의 예측 샘플들이 도출되는 모드를 나타낼 수 있다. 구체적으로 상기 현재 크로마 블록에 상기 CCLM 모드가 적용되는 경우, 상기 현재 크로마 블록의 인트라 예측에 사용되는 주변 샘플들 및 현재 루마 블록의 인트라 예측에 사용되는 주변 샘플들을 기반으로 상기 선형 모델에 대한 파라미터들이 도출될 수 있다. 예를 들어, 상기 선형 모델은 다음과 같은 수학식을 기반으로 나타낼 수 있다.
Figure PCTKR2017010767-appb-M000001
여기서, predc(i,j) 는 상기 현재 크로마 블록의 (i,j) 좌표의 예측 샘플을 나타낼 수 있고, recL'(i,j)는 상기 현재 루마 블록의 (i,j) 좌표의 복원 샘플을 나타낼 수 있다. 또한, 상기 recL'(i,j)는 상기 현재 루마 블록의 다운 샘플링(down-sampled)된 복원 샘플을 나타낼 수 있다.
한편, 상기 선형 모델의 파라미터 α 및 파라미터 β 는 상기 현재 루마 블록의 인트라 예측에 사용되는 주변 샘플들 및 상기 현재 크로마 블록의 인트라 예측에 사용되는 주변 샘플들을 기반으로 도출될 수 있다. 상기 파라미터 α 및 상기 파라미터 β는 다음의 수학식을 기반으로 도출될 수 있다.
Figure PCTKR2017010767-appb-M000002
Figure PCTKR2017010767-appb-M000003
여기서, L(n)은 상기 현재 루마 블록의 상측 주변 샘플들 및 좌측 주변 샘플들을 나타낼 수 있고, C(n)은 상기 현재 크로마 블록의 상측 주변 샘플들 및 좌측 주변 샘플들을 나타낼 수 있다. 또한, 상기 L(n)은 상기 현재 루마 블록의 다운 샘플링(down-sampled)된 상측 주변 샘플들 및 좌측 주변 샘플들을 나타낼 수 있다. 또한, N 은 상기 현재 크로마 블록의 폭(width)과 높이(height) 중 작은 값의 2배인 값을 나타낼 수 있다.
한편, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 상술한 내용과 같이 6개로 고정될 수 있지만, 특정 조건에 따라 다른 개수로 결정되는 것이 코딩 효율을 향상시킬 수도 있다. 본 발명에서는 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수와 관련하여 상기 인트라 예측 모드 후보들을 보다 효율적으로 선택하는 방법 및 상기 인트라 예측 모드 후보들에 대한 정보를 전송하는 방법을 제안한다.
일 예로, 상기 현재 크로마 블록의 사이즈를 기반으로 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수가 결정될 수 있다. 예를 들어, 상기 현재 크로마 블록의 사이즈가 특정 조건을 만족하는지 여부를 기반으로 상기 인트라 예측 모드 후보들의 개수가 변경될 수 있다. 구체적으로, 상기 현재 크로마 블록의 사이즈가 64이상인 경우, 다시 말해, 상기 현재 크로마 블록의 폭(width)과 높이(height)를 곱한 값이 64 이상인 경우(즉, 상기 현재 크로마 블록에 포함된 샘플들의 개수가 64개 이상인 경우), 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 8개로 결정될 수 있다. 이 경우, 상기 인트라 예측 모드 후보들은 상술한 CCLM 모드를 포함할 수 있다. 또한, 상기 현재 크로마 블록의 사이즈가 64 미만인 경우, 다시 말해, 상기 현재 크로마 블록의 폭(width)과 높이(height)를 곱한 값이 64 미만인 경우(즉, 상기 현재 크로마 블록에 포함된 샘플들의 개수가 64개 미만인 경우), 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 6개로 결정될 수 있다. 이 경우, 상기 인트라 예측 모드 후보들은 상술한 CCLM 모드를 포함할 수 있다.
또한, 다른 예로, 상기 현재 크로마 블록의 사이즈를 기반으로 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수가 적응적으로 결정될 수 있다. 즉, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 비례하도록 결정될 수 있고, 또는 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 반비례하도록 결정될 수도 있다.
또한, 다른 예로, 기존에 상기 현재 크로마 블록에 대하여 6개의 인트라 예측 모드 후보들이 도출된 것과 달리, 2개의 인트라 예측 모드 후보들이 더 도출되어 총 8개의 인트라 예측 모드 후보들이 상기 현재 크로마 블록의 인트라 예측 모드 후보들로 도출될 수 있고, 또는 2개의 인트라 예측 모드 후보들이 덜 도출되어 총 4개의 인트라 예측 모드 후보들이 상기 현재 크로마 블록의 인트라 예측 모드 후보들로 도출될 수도 있다. 한편, 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 도출 순서는 다음과 같을 수 있다.
1. CCLM 모드
2. 상기 현재 크로마 블록(520)과 대응하는 현재 루마 블록(510)의 센터 우하단 샘플(center right, CR), 좌상단 샘플(top left, TL), 우상단 샘플(top right, TR), 좌하단 샘플(bottom left, BL), 우하단 샘플(bottom right, BR) 위치의 인트라 예측 모드들
3. 현재 크로마 블록(520)의 좌측 주변 블록(L), 상측 주변 블록(A), 좌하측 주변 블록(BL), 우상측 주변 블록(AR), 좌상측 주변 블록(AL)의 인트라 예측 모드들
-4. PLANAR 모드, DC 모드
5. 앞서 인트라 예측 모드 후보로 N번 방향성 인트라 예측 모드가 도출된 경우, N-1번 방향성 인트라 예측 모드 또는 N+1번 방향성 인트라 예측 모드
6. 수직(Vertical) 모드, 수평(Horizontal) 모드, 2, 34, 66, 10, 26번 인트라 예측 모드
상술한 1번 순서의 인트라 예측 모드에서 6번 순서의 인트라 예측 모드 순으로 결정된 개수의 인트라 예측 모드 후보들이 도출될 수 있다. 즉, 현재 순서의 인트라 예측 모드와 이미 인트라 예측 모드 후보로 도출된 인트라 예측 모드와의 중복 여부가 판단될 수 있고, 중복되지 않는 경우에 상기 현재 순서의 인트라 예측 모드가 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출될 수 있다. 인트라 예측 모드 후보들에 대한 도출 과정을 통하여 결정된 개수의 인트라 예측 모드 후보들이 도출된 경우, 코딩 장치는 상기 도출 과정을 종료할 수 있다.
한편, 상술한 4번 순서의 인트라 예측 모드들의 개수 및 6번 순서의 인트라 예측 모드들의 개수를 합한 값은 결정된 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수와 동일하게 설정될 수 있다. 예를 들어, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수가 6개로 결정된 경우, 상술한 4번 순서의 인트라 예측 모드들의 개수 및 6번 순서의 인트라 예측 모드들의 개수를 합한 값은 6일 수 있다. 상기 현재 크로마 블록의 인트라 예측 모드 후보들이 도출된 경우, 상기 인트라 예측 모드 후보들은 특정 순서로 정렬될 수 있고, 상기 인트라 예측 모드 후보들 중 하나를 나타내는 인덱스가 시그널링될 수 있다. 상기 인덱스가 가리키는 인트라 예측 모드 후보는 상기 현재 크로마 블록의 인트라 예측 모드로 도출될 수 있다. 상기 인덱스는 크로마 인트라 예측 모드 인덱스라고 불릴 수 있다.
한편, 상기 크로마 인트라 예측 모드 인덱스는 유너리 코드(unary code)를 통하여 인코딩될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스는 상기 유너리 코드를 통하여 이진화(binarization)될 수 있다. 상기 유너리 코드를 통하여 이진화된 상기 크로마 인트라 예측 모드 인덱스는 상기 크로마 인트라 예측 모드 인덱스의 binary 자리수에 해당하는 문맥 모델(context model)을 기반으로 인코딩/디코딩될 수 있다. 다시 말해, 상기 크로마 인트라 예측 모드 인덱스는 코딩 효율을 향상시키기 위하여 문맥 기반 적응적 이진 산술 코딩(context-based adaptive binary arithmetic coding, CABAC) 을 통하여 인코딩/디코딩될 수 있는바, 복수의 문맥 모델들 중 상기 크로마 인트라 예측 모드 인덱스의 binary 자리수를 기반으로 하나의 문맥 모델이 결정되고, 상기 결정된 문맥 모델을 기반으로 상기 크로마 인트라 예측 모드 인덱스가 인코딩/디코딩될 수 있다.
또한, 상기 크로마 인트라 예측 모드 인덱스는 트렁케이티드 유너리 코드(truncated unary code) 를 통하여 인코딩될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스는 상기 트렁케이티드 유너리 코드를 통하여 이진화될 수 있다. 예를 들어, 상기 현재 크로마 블록의 인트라 예측 모드 후보들 중 CCLM 모드가 포함된 경우, 상기 CCLM 모드가 1번으로 정렬될 수 있고, 상기 CCLM 모드를 제외한 인트라 예측 모드 후보들이 특정 순서로 정렬될 수 있고, 각 인트라 예측 모드 후보를 나타내는 인덱스가 이진화될 수 있다.
또한, 다른 예로, 상기 현재 크로마 블록에 대하여 8개의 인트라 예측 모드 후보들이 도출된 경우, 상기 인트라 예측 모드 후보들을 나타내는 인덱스의 값은 다음의 표와 같이 이진화될 수 있다.
Figure PCTKR2017010767-appb-T000001
여기서, Mode1 내지 Mode7는 상기 도출된 크로마 블록의 인트라 예측 모드 후보들을 나타낼 수 있다. 상기 인트라 예측 모드 후보들은 현재 픽처에 대한 예측에서 선택되는 비율을 기반으로 상기 Mode1 내지 상기 Mode7로 정렬될 수 있다. 즉, 선택되는 비율이 높은 인트라 예측 모드 후보는 상기 Mode1 내지 상기 Mode7 중 작은 번호로 정렬될 수 있고, 상기 인트라 예측 모드 후보를 나타내는 크로마 인트라 예측 후보 인덱스는 작은 비트수를 갖는 binary code로 이진화될 수 있다. 또한, 표 1을 참조하면 상기 Mode7는 '1111111' 로 truncation 될 수 있다. 즉, 상기 Mode7를 나타내는 크로마 인트라 예측 후보 인덱스는'1111111'의 binary code로 이진화될 수 있다. 상기 크로마 인트라 예측 후보 인덱스가 상기 유너리 코드를 통하여 이진화되는 경우, 상기 Mode7를 나타내는 값은 '11111110'의 binary code로 이진화되는바, 상기 크로마 인트라 예측 후보 인덱스가 상기 트렁케이티드 유너리 코드를 통하여 이진화되는 경우, 상기 유너리 코드를 통하여 이진화되는 경우보다 Mode7 에 대한 비트수를 1비트 줄일 수 있다. 한편, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 일 예이며, 8개보다 적거나 많을 수 있다. 결정된 상기 인트라 예측 모드 후보들의 개수가 8개보다 적거나 많을 경우, 결정된 개수에 맞춰 크로마 인트라 예측 후보 인덱스에 대한 이진화 과정이 수행될 수 있다. 또한, 상기 크로마 인트라 예측 모드 인덱스의 binary 자리수를 기반으로 문맥 모델이 결정될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수를 기반으로 문맥 모델이 결정될 수 있다. 예를 들어, 표 1을 참조하면 상기 크로마 인트라 예측 모드 인덱스가 Mode1을 나타내는 경우, 상기 크로마 인트라 예측 모드 인덱스의 binary 자리수는 1자리이고, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 0으로 결정될 수 있다. 또한, 표 1을 참조하면 상기 크로마 인트라 예측 모드 인덱스가 상기 CCLM 모드를 나타내는 경우, 상기 크로마 인트라 예측 모드 인덱스의 binary 자리수는 2자리이고, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 1로 결정될 수 있다.
또한, 상기 크로마 인트라 예측 모드 인덱스는 고정 길이 코드(fixed length code)를 통하여 인코딩될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스는 상기 고정 길이 코드를 통하여 이진화될 수 있다. 예를 들어, 상기 현재 크로마 블록에 대하여 6개의 인트라 예측 모드 후보들이 도출된 경우, 상기 인트라 예측 모드 후보들을 나타내는 인덱스의 값은 다음의 표와 같이 이진화될 수 있다.
Figure PCTKR2017010767-appb-T000002
표 2를 참조하면 상기 현재 크로마 블록의 인트라 예측 모드 후보들이 CCLM 모드를 포함할 수 있다. 이 경우, 상기 CCLM 모드가 1번으로 정렬될 수 있고, 상기 CCLM 모드를 제외한 인트라 예측 모드 후보들이 특정 순서로 정렬될 수 있고, 각 인트라 예측 모드 후보를 나타내는 크로마 인트라 예측 모드 인덱스가 이진화될 수 있다. 표 2를 참조하면 1번으로 정렬된 상기 CCLM 모드를 나타내는 크로마 인트라 예측 모드 인덱스는 1비트의 binary code로 이진화될 수 있는바, 예를 들어, 상기 CCLM 모드를 나타내는 크로마 인트라 예측 모드 인덱스는'0'으로 이진화될 수 있다. 또한, 2번으로 정렬된 Mode1을 나타내는 크로마 인트라 예측 모드 인덱스는 2비트의 binary code로 이진화될 수 있는바, 예를 들어, 상기 Mode1를 나타내는 크로마 인트라 예측 모드 인덱스는'10'으로 이진화될 수 있다. 또한, 3번 내지 5번으로 정렬된 Mode2 내지 Mode5를 나타내는 크로마 인트라 예측 모드 인덱스는 4비트의 binary code로 이진화될 수 있는바, 예를 들어, 상기 Mode2 내지 상기 Mode5를 나타내는 크로마 인트라 예측 모드 인덱스들 각각은 '1100', '1101', '1110', '1111' 로 이진화될 수 있다. 즉, 선택 비율이 높은 인트라 예측 모드 후보를 나타내는 크로마 인트라 예측 모드 인덱스는 작은 비트수로 이진화될 수 있고, 선택 비율이 낮은 인트라 예측 모드 후보들을 나타내는 크로마 인트라 예측 모드 인덱스는 고정된 큰 비트수로 이진화될 수 있다. 이를 통하여, 입력 영상의 예측에 대한 전반적인 비트량을 줄일 수 있고, 코딩 효율을 향상시킬 수 있다.
한편, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 자리수를 기반으로 문맥 모델이 결정될 수 있는바, 상술한 표 1 및 표 2에 나타난 예들과 같이 상기 binary code 자리수 별로 다른 문맥 모델이 설정될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 자리수가 1인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 0으로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 자리수가 2인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 1로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 자리수가 n인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model n+1로 설정될 수 있다. 상술한 표 1 및 표 2에 나타난 문맥 모델 설정은 일 예로 상기 문맥 모델 설정에 대한 다양한 예가 적용될 수 있다. 예를 들어, 상기 크로마 인트라 예측 모드 인덱스는 1에서 7 비트의 binary code로 이진화될 수 있고, 이 경우, binary code의 비트수에 따른 문맥 모델은 다음의 표와 같이 나타낼 수 있다.
Figure PCTKR2017010767-appb-T000003
표 3의 예 1(example 1)을 참조하면 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 n인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model n으로 설정될 수 있다.
또한, 표 3의 예 2(example 2)를 참조하면 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 1인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 1로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 2 내지 6인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 2로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 7인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 3으로 설정될 수 있다.
또한, 표 3의 예 3(example 3)를 참조하면 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 1인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 1로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 2 내지 3인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 2로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 4 내지 5인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 3으로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 6 내지 7인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 4로 설정될 수 있다.
또한, 표 3의 예 4(example 4)를 참조하면 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 1인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 1로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 2 인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 2로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 3 내지 6인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 3으로 설정될 수 있고, 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수가 7인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 Context model 4로 설정될 수 있다.
또한, 표 3의 예 5(example 5)를 참조하면 상기 크로마 인트라 예측 모드 인덱스 대한 문맥 모델은 상기 크로마 인트라 예측 모드 인덱스의 binary code의 비트수와 상관없이 Context model 1로 설정될 수 있다.
상술한 상기 크로마 인트라 예측 모드 인덱스의 binary code의 자리수를 기반으로 문맥 모델이 결정될 수 있다. 한편, 상기 문맥 모델들은 서로 다른 초기값(initial value, initValue)을 가질 수 있다. 상기 초기값은 초기 상태(initial state, initstate) 또는 초기 확률 상태(initial probability state)라고 나타낼 수도 있다. 상술한 내용과 같이 상기 크로마 인트라 예측 모드 인덱스는 결정된 문맥 모델을 기반으로 CABAC(context-adaptive binary arithmetic coding)을 통하여 엔트로피 인코딩/디코딩될 수 있는바, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 상기 문맥 모델에 따른 발생 확률은 상기 문맥 모델의 초기값을 기반으로 초기화될 수 있다. 즉, 상기 초기값은 상기 발생 확률의 초기화된 확률을 나타낼 수 있다. 상기 현재 크로마 블록의 인트라 예측 모드 후보들 각각에 대한 binary code의 자리수에 따라 각각 다른 문맥 모델을 기반으로 인코딩/디코딩 과정이 수행될 수 있고, 상기 인트라 예측 모드 후보들 각각에 대한 문맥 모델의 초기값은 최적화를 통하여 설정될 수 있다. 일 예로, 상기 인트라 예측 모드 후보들에 대한 문맥 모델들이 5개인 경우, 상기 문맥 모델들의 초기값들은 다음의 표와 같이 설정될 수 있다.
Figure PCTKR2017010767-appb-T000004
한편, 현재 크로마 블록의 인트라 예측 모드 후보들이 상기 CCLM 모드를 포함하는 경우, 상기 CCLM 모드를 제외한 인트라 예측 모드 후보들은 도출된 순서로 정렬될 수 있고, 인트라 예측 모드 후보들은 정렬된 순서로 작은 비트수의 binary code로 이진화될 수 있다. 즉, 상기 CCLM 모드를 제외한 인트라 예측 모드 후보들은 도출된 순서로 작은 비트수의 binary code의 크로마 인트라 예측 인덱스로 할당될 수 있다. 상기 크로마 인트라 예측 인덱스는 트렁케이티드 유너리 코드, 유너리 코드, 또는 고정 길이 코드를 통하여 이진화될 수 있다. 예를 들어, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수가 6개로 결정되고, 상기 크로마 인트라 예측 인덱스가 트렁케이티드 유너리 코드를 통하여 이진화되는 경우, 상기 크로마 인트라 예측 인덱스는 다음의 표와 같이 이진화될 수 있다.
Figure PCTKR2017010767-appb-T000005
표 5를 참조하면 상기 현재 크로마 블록의 인트라 예측 모드 후보들 중 CCLM 모드가 1번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 CCLM 모드를 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '0'으로 이진화될 수 있다. 즉, 상기 크로마 인트라 예측 인덱스의 binary code 가 '0'인 경우, 상기 크로마 인트라 예측 인덱스는 상기 CCLM 모드를 나타낼 수 있다. 또한, Mode1 내지 Mode5는 상기 CCLM 모드를 제외한 상기 현재 크로마 블록의 인트라 예측 모드 후보들을 나타낼 수 있고, 상기 Mode1에서 Mode5 순으로 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출될 수 있다. 이 경우, 상기 Mode1는 2번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode1을 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '10'으로 이진화될 수 있다. 또한, Mode2는 3번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode2을 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '110'으로 이진화될 수 있다. 또한, Mode3은 4번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode3을 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '1110'으로 이진화될 수 있다. 또한, Mode4는 5번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode4를 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '11110'으로 이진화될 수 있다. 또한, Mode5는 6번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode5를 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '11111'으로 이진화될 수 있다.
한편, 다른 예로, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수가 6개로 결정되고, 상기 크로마 인트라 예측 인덱스가 유너리 코드를 통하여 이진화되는 경우, 상기 크로마 인트라 예측 인덱스는 다음의 표와 같이 이진화될 수 있다.
Figure PCTKR2017010767-appb-T000006
표 6을 참조하면 상기 현재 크로마 블록의 인트라 예측 모드 후보들 중 CCLM 모드가 2번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 CCLM 모드를 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '10'으로 이진화될 수 있다. 즉, 상기 크로마 인트라 예측 인덱스의 binary code 가 '10'인 경우, 상기 크로마 인트라 예측 인덱스는 상기 CCLM 모드를 나타낼 수 있다. 또한, Mode1 내지 Mode5는 상기 CCLM 모드를 제외한 상기 현재 크로마 블록의 인트라 예측 모드 후보들을 나타낼 수 있고, 상기 Mode1에서 Mode5 순으로 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출될 수 있다. 이 경우, 상기 Mode1는 1번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode1을 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '0'으로 이진화될 수 있다. 또한, Mode2는 3번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode2을 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '110'으로 이진화될 수 있다. 또한, Mode3은 4번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode3을 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '1110'으로 이진화될 수 있다. 또한, Mode4는 5번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode4를 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '11110'으로 이진화될 수 있다. 또한, Mode5는 6번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode5를 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '111110'으로 이진화될 수 있다.
한편, 다른 예로, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수가 6개로 결정되고, 상기 크로마 인트라 예측 인덱스가 고정 길이 코드를 통하여 이진화되는 경우, 상기 크로마 인트라 예측 인덱스는 다음의 표와 같이 이진화될 수 있다.
Figure PCTKR2017010767-appb-T000007
표 7을 참조하면 상기 현재 크로마 블록의 인트라 예측 모드 후보들 중 CCLM 모드가 2번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 CCLM 모드를 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '10'으로 이진화될 수 있다. 즉, 상기 크로마 인트라 예측 인덱스의 binary code 가 '10'인 경우, 상기 크로마 인트라 예측 인덱스는 상기 CCLM 모드를 나타낼 수 있다. 또한, Mode1 내지 Mode5는 상기 CCLM 모드를 제외한 상기 현재 크로마 블록의 인트라 예측 모드 후보들을 나타낼 수 있고, 상기 Mode1에서 Mode5 순으로 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출될 수 있다. 이 경우, 상기 Mode1는 1번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode1을 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '0'으로 이진화될 수 있다. 또한, Mode2는 3번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode2을 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '1100'으로 이진화될 수 있다. 또한, Mode3은 4번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode3을 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '1101'으로 이진화될 수 있다. 또한, Mode4는 5번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode4를 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '1110'으로 이진화될 수 있다. 또한, Mode5는 6번 후보로 정렬될 수 있고, 상기 크로마 인트라 예측 인덱스가 상기 인트라 예측 모드 후보들 중 상기 Mode5를 나타내는 경우, 상기 크로마 인트라 예측 인덱스는 '1111'으로 이진화될 수 있다.
상술한 실시예에서는 상기 인트라 예측 모드 후보들의 개수는 6개인 경우로 한정하여 설명하고 있으나, 6개보다 크거나 작은 개수의 상기 인트라 예측 모드 후보들에 대해서도 적용될 수 있다. 또한, 상기 인트라 예측 모드 후보들 중 상기 CCLM 모드는 1번 또는 2번 이외의 순서의 후보로도 정렬될 수 있다.
도 6은 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다. 도 6에서 개시된 방법은 도 1에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 6의 S600 내지 S630은 상기 인코딩 장치의 예측부, S640은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.
인코딩 장치는 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정한다(S600). 인코딩 장치는 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정할 수 있다.
일 예로, 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈를 기반으로 결정될 수 있다. 예를 들어, 상기 현재 크로마 블록의 사이즈가 특정 사이즈 이상인지 여부를 기반으로 상기 인트라 예측 모드 후보들의 개수가 결정될 수 있다. 구체적으로, 상기 현재 크로마 블록의 폭(width)과 높이(height)를 곱한 값이 64 이상인 경우, 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 8개로 결정될 수 있다. 다시 말해, 상기 현재 크로마 블록에 포함된 샘플들의 개수가 64개 이상인 경우, 즉, 상기 현재 크로마 블록이 64개 이상의 샘플들을 포함하는 경우, 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 8개로 결정될 수 있다. 또한, 상기 현재 크로마 블록의 폭(width)과 높이(height)를 곱한 값이 64 미만인 경우, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 6개로 결정될 수 있다. 다시 말해, 상기 현재 크로마 블록에 포함된 샘플들의 개수가 64개 미만인 경우, 즉, 상기 현재 크로마 블록이 64개 미만의 샘플들을 포함하는 경우, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 6개로 결정될 수 있다. 또한, 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 비례할 수 있다. 또는 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 반비례할 수 있다.
또한, 다른 일 예로, 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수는 특정값으로 결정될 수 있다. 예를 들어, 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수는 8개로 결정될 수 있고, 또는 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수는 4개로 결정될 수 있다. 또한, 상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 상관 없이 항상 8개로 결정될 수 있다. 또는, 상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 상관 없이 항상 4개로 결정될 수 있다.
인코딩 장치는 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 최적의 개수를 결정할 수 있다.
인코딩 장치는 상기 결정된 개수의 인트라 예측 모드 후보들을 도출한다(S610). 상기 인트라 예측 모드 후보들로 도출될 수 있는 인트라 예측 모드는 2개의 비방향성 예측 모드들과 33개의 방향성 예측 모드들 중 하나일 수 있다. 또는, 상기 인트라 예측 모드 후보들로 도출될 수 있는 인트라 예측 모드는 2개의 비방향성 예측 모드들과 65개의 방향성 예측 모드들 중 하나일 수 있다. 상기 2개의 비방향성 예측 모드들은 인트라 DC 모드 및 인트라 플래너 모드를 포함할 수 있음은 상술한 바와 같다.
인코딩 장치는 상기 현재 크로마 블록에 대응하는 루마 블록 및 상기 현재 크로마 블록의 주변 블록들을 기반으로 상기 인트라 예측 모드 후보들을 도출할 수 있다. 예를 들어, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 상기 현재 크로마 블록에 대응하는 상기 루마 블록의 센터 우하단 샘플(center right, CR), 좌상단 샘플(top left, TL), 우상단 샘플(top right, TR), 좌하단 샘플(bottom left, BL), 우하단 샘플(bottom right, BR) 위치의 인트라 예측 모드들을 기반으로 도출될 수 있고, 또한, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 상기 현재 크로마 블록의 좌측 주변 블록, 상측 주변 블록, 좌하측 주변 블록, 우상측 주변 블록, 및 좌상측 주변 블록의 인트라 예측 모드들을 기반으로 도출될 수 있다. 즉, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 상기 현재 크로마 블록의 상기 좌측 주변 블록, 상기 상측 주변 블록, 상기 좌하측 주변 블록, 상기 우상측 주변 블록, 또는 상기 좌상측 주변 블록의 예측에 사용된 인트라 예측 모드들을 기반으로 도출될 수 있다.
또한, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 특정의 순서로 도출될 수 있다. 즉, 특정 탐색 순서가 설정될 수 있고, 상기 특정 탐색 순서 상에서 현재 순서의 인트라 예측 모드와 이미 인트라 예측 모드 후보로 도출된 인트라 예측 모드와의 중복 여부가 판단될 수 있고, 중복되지 않는 경우에 상기 현재 순서의 인트라 예측 모드가 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출될 수 있다. 상기 특정 탐색 순서를 통하여 결정된 개수의 인트라 예측 모드 후보들이 도출된 경우, 현재 순서 이후의 순서에 대한 인트라 예측 모드 후보 도출 과정은 종료될 수 있다.
일 예로, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 상기 CCLM(cross component linear model) 모드, 상기 현재 크로마 블록에 대응하는 루마 블록의 인트라 예측 모드, 상기 현재 크로마 블록의 주변 블록의 인트라 예측 모드, 플래너(PLANAR) 모드 및 DC 모드, 이전 순서에서 인트라 예측 모드 후보로 N번 인트라 예측 모드가 도출된 경우, N-1번 방향성 인트라 예측 모드 또는 N+1번 방향성 인트라 예측 모드, 수직(Vertical) 모드, 수평(Horizontal) 모드, 2, 34, 66, 10, 26번 인트라 예측 모드 순으로 상기 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다.
구체적으로, 예를 들어, 상술한 CCLM(cross component linear model) 모드가 인트라 예측에 사용되는 경우, 상기 CCLM 모드가 첫번째로 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출될 수 있다. 여기서, 상기 CCLM 모드는 상술한 내용과 같이 상기 현재 크로마 블록과 대응하는 루마 블록의 주변 샘플들 및 상기 현재 크로마 블록의 주변 샘플들을 기반으로 선형 모델이 도출하고, 상기 선형 모델 및 상기 루마 블록의 복원 샘플들을 기반으로 상기 현재 크로마 블록의 예측 샘플들을 도출하는 모드를 나타낼 수 있다. 상기 선형 모델에 대한 수학식은 상술한 수학식 1과 같이 도출될 수 있다. 또한, 상기 선형 모델의 파라미터들은 상술한 수학식 2 및 수학식 3을 통하여 도출될 수 있다.
다음으로, 상기 현재 크로마 블록에 대응하는 상기 루마 블록의 센터 우하단 샘플, 좌상단 샘플, 우상단 샘플, 좌하단 샘플, 우하단 샘플 순서로 상기 샘플 위치에 적용된 인트라 예측 모드가 상기 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다. 즉, 이전에 도출된 인트라 예측 모드 후보와 동일한 모드인지가 판단될 수 있고, 상기 이전에 도출된 인트라 예측 모드 후보와 동일하지 않다고 판단된 인트라 예측 모드는 상기 인트라 예측 후보 모드로 도출될 수 있다. 다음 순서로, 상기 현재 크로마 블록의 좌측 주변 블록, 상측 주변 블록, 우상측 주변 블록, 좌하측 주변 블록 및 좌상측 주변 블록 순으로 주변 블록에 적용된 인트라 예측 모드가 상기 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다. 또는, 상기 현재 크로마 블록의 좌측 주변 블록, 상측 주변 블록, 좌하측 주변 블록, 우상측 주변 블록 및 좌상측 주변 블록 순으로 주변 블록에 적용된 인트라 예측 모드가 상기 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다.
다음으로, 플래너(PLANAR) 모드 및 DC 모드 순으로 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다. 다음으로, 이전 순서에서 인트라 예측 모드 후보로 N번 인트라 예측 모드가 도출된 경우, N-1번 방향성 인트라 예측 모드 또는 N+1번 방향성 인트라 예측 모드가 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다. 다음으로, 수직(Vertical) 모드, 수평(Horizontal) 모드, 2, 34, 66, 10, 26번 인트라 예측 모드 순으로 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다.
인코딩 장치는 상기 인코딩 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 인트라 예측 모드로 도출한다(S620). 인코딩 장치는 상기 인트라 예측 모드 후보들 중 하나의 인트라 예측 모드 후보를 상기 현재 크로마 블록의 상기 인트라 예측 모드로 선택할 수 있다. 인코딩 장치는 상기 인코딩 예측 모드 후보들 중 최적의 RD 코스트를 갖는 인트라 예측 모드 후보를 상기 현재 블록에 대한 인트라 예측 모드로 도출할 수 있다.
한편, 인코딩 장치는 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들 중 하나를 나타내는 인덱스를 생성할 수 있다. 상기 인덱스는 크로마 인트라 예측 모드 인덱스라고 불릴 수 있다. 즉, 상기 인트라 예측 모드 후보들 중 하나를 나타내는 상기 현재 크로마 블록에 대한 상기 크로마 인트라 예측 모드 인덱스가 생성될 수 있다.
인코딩 장치는 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행한다(S630). 인코딩 장치는 상기 인트라 예측 모드에 따라 상기 현재 크로마 블록의 주변 샘플들을 이용하여 상기 현재 크로마 블록의 예측 샘플을 생성할 수 있다. 상기 주변 샘플들은 상기 현재 크로마 블록의 상측 주변 샘플들 및 좌측 주변 샘플들을 포함할 수 있다.
인코딩 장치는 상기 현재 크로마 블록에 대한 예측 정보를 생성하고 인코딩하여 출력한다(S640). 인코딩 장치는 상기 현재 크로마 블록에 대한 예측 정보를 생성할 수 있고, 비트스트림을 통하여 시그널링할 수 있다. 상기 예측 정보는 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들 중 하나를 나타내는 상기 현재 크로마 블록에 대한 상기 크로마 인트라 예측 모드 인덱스를 포함할 수 있다.
상기 현재 크로마 블록에 대한 상기 크로마 인트라 예측 모드 인덱스는 문맥 기반 적응적 이진 산술 코딩(context-based adaptive binary arithmetic coding, CABAC) 을 통하여 인코딩될 수 있다. 이 경우, 상기 크로마 인트라 예측 모드 인덱스는 다양한 방법을 통하여 이진화(binarization)될 수 있다.
예를 들어, 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수가 N개로 결정된 경우, 상기 인트라 예측 모드 후보들은 1번 후보에서 N번 후보로 정렬될 수 있고, 상기 1번 후보 내지 상기 N번 후보 각각을 나타내는 크로마 인트라 예측 모드 인덱스의 값은 유너리 코드를 통하여 이진화될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스는 상기 유너리 코드를 통하여 이진화될 수 있다. 예를 들어, 상기 1번 후보에서 상기 N번 후보 순으로 비트수가 큰 이진화 코드가 할당될 수 있다. 상기 이진화 코드는 상술한 표 6과 같이 할당될 수 있다.
또는, 상기 1번 후보 내지 상기 N번 후보 각각을 나타내는 크로마 인트라 예측 모드 인덱스의 값은 트렁케이티드 유너리 코드를 통하여 이진화될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스는 상기 트렁케이티드 유너리 코드를 통하여 이진화될 수 있다. 예를 들어, 상기 1번 후보에서 상기 N번 후보 순으로 비트수가 큰 이진화 코드가 할당될 수 있고, 상기 N번 후보에 대한 이진화 코드 및 N-1번 후보에 대한 이진화 코드는 동일한 비트수로 할당될 수 있다. 상기 이진화 코드는 상술한 표 1 및 표 5과 같이 할당될 수 있다.
또는 상기 1번 후보 내지 상기 N번 후보 각각을 나타내는 크로마 인트라 예측 모드 인덱스의 값은 고정 길이 코드를 통하여 이진화될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스는 상기 고정 길이 코드를 통하여 이진화될 수 있다. 예를 들어, 상기 이진화 코드는 1 비트, 2 비트 또는 4 비트로 할당될 수 있다. 상기 이진화 코드는 상술한 표 2 및 표 7과 같이 할당될 수 있다. 상기 인트라 예측 모드 후보들은 후보로 도출된 순서로 정렬될 수도 있다. 또한, 상기 인트라 예측 모드 후보들 중 상기 CCLM 모드가 포함된 경우, 상기 CCLM 모드는 상기 인트라 예측 모드 후보들 중 1번 후보 또는 2번 후보로 도출될 수 있다. 여기서, 상기 1번 후보를 나타내는 상기 크로마 인트라 예측 인덱스의 이진화 코드는 상기 인트라 예측 모드 후보들에 대한 상기 크로마 인트라 예측 인덱스의 이진화 코드들 중 가장 작은 비트수로 할당될 수 있다.
또한, 상기 크로마 인트라 예측 모드 인덱스의 이진화 코드(binary code)의 비트수를 기반으로 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델(context model)이 도출될 수 있고, 상기 도출된 문맥 모델을 기반으로 상기 크로마 인트라 예측 모드 인덱스가 인코딩될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스의 이진화 코드(binary code)의 비트수에 따라 초기값이 다른 문맥 모델이 도출될 수 있고, 상기 문맥 모델을 통하여 인코딩될 수 있다. 예를 들어, 상기 크로마 인트라 예측 모드 인덱스의 상기 이진화 코드(binary code)의 비트수가 1인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 문맥 모델 0(context model 0)으로 도출될 수 있고, 상기 문맥 모델 0의 초기값은 139 또는 184일 수 있다. 또한, 상기 크로마 인트라 예측 모드 인덱스의 상기 이진화 코드(binary code)의 비트수가 2인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 문맥 모델 1(context model 1)으로 도출될 수 있고, 상기 문맥 모델 1의 초기값은 63, 154 또는 152일 수 있다. 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 상술한 표 1 내지 3 및 표 5 내지 7을 기반으로 도출될 수 있다. 또한, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델의 초기값은 상술한 표 4를 기반으로 도출될 수 있다.
한편, 비록 도면에는 도시되지 않았으나 인코딩 장치는 원본 샘플과 상기 도출된 예측 샘플을 기반으로 레지듀얼(residual) 샘플을 생성할 수 있다. 인코딩 장치는 상기 레지듀얼 샘플을 기반으로 상기 레지듀얼에 관한 정보를 생성할 수 있다. 상기 레지듀얼에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다. 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 상기 복원 샘플을 도출할 수 있다. 즉, 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 더하여 상기 복원 샘플을 도출할 수 있다. 또한, 인코딩 장치는 상기 레지듀얼에 관한 정보를 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다.
도 7은 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다. 도 7에서 개시된 방법은 도 2에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, S700 내지 S730은 상기 디코딩 장치의 예측부에 의하여 수행될 수 있다.
디코딩 장치는 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정한다(S700). 디코딩 장치는 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정할 수 있다.
일 예로, 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈를 기반으로 결정될 수 있다. 예를 들어, 상기 현재 크로마 블록의 사이즈가 특정 사이즈 이상인지 여부를 기반으로 상기 인트라 예측 모드 후보들의 개수가 결정될 수 있다. 구체적으로, 상기 현재 크로마 블록의 폭(width)과 높이(height)를 곱한 값이 64 이상인 경우(상기 현재 크로마 블록의 사이즈가 AxB 사이즈이고, 상기 A와 상기 B를 곱한 값이 64이상인 경우), 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 8개로 결정될 수 있다. 다시 말해, 상기 현재 크로마 블록에 포함된 샘플들의 개수가 64개 이상인 경우, 즉, 상기 현재 크로마 블록이 64개 이상의 샘플들을 포함하는 경우, 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 8개로 결정될 수 있다. 또한, 상기 현재 크로마 블록의 폭(width)과 높이(height)를 곱한 값이 64 미만인 경우(상기 현재 크로마 블록의 사이즈가 AxB 사이즈이고, 상기 A와 상기 B를 곱한 값이 64미만인 경우), 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 6개로 결정될 수 있다. 다시 말해, 상기 현재 크로마 블록에 포함된 샘플들의 개수가 64개 미만인 경우, 즉, 상기 현재 크로마 블록이 64개 미만의 샘플들을 포함하는 경우, 상기 현재 크로마 블록의 인트라 예측 모드 후보들의 개수는 6개로 결정될 수 있다. 또한, 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 비례할 수 있다. 또는 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 반비례할 수 있다.
또한, 다른 일 예로, 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수는 특정값으로 결정될 수 있다. 예를 들어, 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수는 8개로 결정될 수 있고, 또는 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수는 4개로 결정될 수 있다. 또한, 상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 상관 없이 항상 8개로 결정될 수 있다. 또는, 상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 상관 없이 항상 4개로 결정될 수 있다.
디코딩 장치는 상기 결정된 개수의 인트라 예측 모드 후보들을 도출한다(S710). 상기 인트라 예측 모드 후보들로 도출될 수 있는 인트라 예측 모드는 2개의 비방향성 예측 모드들과 33개의 방향성 예측 모드들 중 하나일 수 있다. 또는, 상기 인트라 예측 모드 후보들로 도출될 수 있는 인트라 예측 모드는 2개의 비방향성 예측 모드들과 65개의 방향성 예측 모드들 중 하나일 수 있다. 상기 2개의 비방향성 예측 모드들은 인트라 DC 모드 및 인트라 플래너 모드를 포함할 수 있음은 상술한 바와 같다.
디코딩 장치는 상기 현재 크로마 블록에 대응하는 루마 블록 및 상기 현재 크로마 블록의 주변 블록들을 기반으로 상기 인트라 예측 모드 후보들을 도출할 수 있다. 예를 들어, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 상기 현재 크로마 블록에 대응하는 상기 루마 블록의 센터 우하단 샘플(center right, CR), 좌상단 샘플(top left, TL), 우상단 샘플(top right, TR), 좌하단 샘플(bottom left, BL), 우하단 샘플(bottom right, BR) 위치의 인트라 예측 모드들을 기반으로 도출될 수 있고, 또한, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 상기 현재 크로마 블록의 좌측 주변 블록, 상측 주변 블록, 좌하측 주변 블록, 우상측 주변 블록, 및 좌상측 주변 블록의 인트라 예측 모드들을 기반으로 도출될 수 있다. 즉, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 상기 현재 크로마 블록의 상기 좌측 주변 블록, 상기 상측 주변 블록, 상기 좌하측 주변 블록, 상기 우상측 주변 블록, 또는 상기 좌상측 주변 블록의 예측에 사용된 인트라 예측 모드들을 기반으로 도출될 수 있다.
또한, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 특정의 순서로 도출될 수 있다. 즉, 특정 탐색 순서가 설정될 수 있고, 상기 특정 탐색 순서 상에서 현재 순서의 인트라 예측 모드와 이미 인트라 예측 모드 후보로 도출된 인트라 예측 모드와의 중복 여부가 판단될 수 있고, 중복되지 않는 경우에 상기 현재 순서의 인트라 예측 모드가 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출될 수 있다. 상기 특정 탐색 순서를 통하여 결정된 개수의 인트라 예측 모드 후보들이 도출된 경우, 현재 순서 이후의 순서에 대한 인트라 예측 모드 후보 도출 과정은 종료될 수 있다.
일 예로, 상기 현재 크로마 블록의 인트라 예측 모드 후보들은 상기 CCLM(cross component linear model) 모드, 상기 현재 크로마 블록에 대응하는 루마 블록의 인트라 예측 모드, 상기 현재 크로마 블록의 주변 블록의 인트라 예측 모드, 플래너(PLANAR) 모드 및 DC 모드, 이전 순서에서 인트라 예측 모드 후보로 N번 인트라 예측 모드가 도출된 경우, N-1번 방향성 인트라 예측 모드 또는 N+1번 방향성 인트라 예측 모드, 수직(Vertical) 모드, 수평(Horizontal) 모드, 2, 34, 66, 10, 26번 인트라 예측 모드 순으로 상기 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다.
구체적으로, 예를 들어, 상술한 CCLM(cross component linear model) 모드가 인트라 예측에 사용되는 경우, 상기 CCLM 모드가 첫번째로 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출될 수 있다. 여기서, 상기 CCLM 모드는 상술한 내용과 같이 상기 현재 크로마 블록과 대응하는 루마 블록의 주변 샘플들 및 상기 현재 크로마 블록의 주변 샘플들을 기반으로 선형 모델이 도출하고, 상기 선형 모델 및 상기 루마 블록의 복원 샘플들을 기반으로 상기 현재 크로마 블록의 예측 샘플들을 도출하는 모드를 나타낼 수 있다. 상기 선형 모델에 대한 수학식은 상술한 수학식 1과 같이 도출될 수 있다. 또한, 상기 선형 모델의 파라미터들은 상술한 수학식 2 및 수학식 3을 통하여 도출될 수 있다.
다음으로, 상기 현재 크로마 블록에 대응하는 상기 루마 블록의 센터 우하단 샘플, 좌상단 샘플, 우상단 샘플, 좌하단 샘플, 우하단 샘플 순서로 상기 샘플 위치에 적용된 인트라 예측 모드가 상기 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다. 즉, 이전에 도출된 인트라 예측 모드 후보와 동일한 모드인지가 판단될 수 있고, 상기 이전에 도출된 인트라 예측 모드 후보와 동일하지 않다고 판단된 인트라 예측 모드는 상기 인트라 예측 후보 모드로 도출될 수 있다. 다음 순서로, 상기 현재 크로마 블록의 좌측 주변 블록, 상측 주변 블록, 우상측 주변 블록, 좌하측 주변 블록 및 좌상측 주변 블록 순으로 주변 블록에 적용된 인트라 예측 모드가 상기 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다. 또는, 상기 현재 크로마 블록의 좌측 주변 블록, 상측 주변 블록, 좌하측 주변 블록, 우상측 주변 블록 및 좌상측 주변 블록 순으로 주변 블록에 적용된 인트라 예측 모드가 상기 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다.
다음으로, 플래너(PLANAR) 모드 및 DC 모드 순으로 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다. 다음으로, 이전 순서에서 인트라 예측 모드 후보로 N번 인트라 예측 모드가 도출된 경우, N-1번 방향성 인트라 예측 모드 또는 N+1번 방향성 인트라 예측 모드가 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다. 다음으로, 수직(Vertical) 모드, 수평(Horizontal) 모드, 2, 34, 66, 10, 26번 인트라 예측 모드 순으로 상기 현재 크로마 블록의 인트라 예측 모드 후보로 도출 가능한지 판단될 수 있다.
디코딩 장치는 상기 인코딩 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 인트라 예측 모드로 도출한다(S720). 디코딩 장치는 비트스트림을 통하여 상기 현재 블록에 대한 예측 정보를 획득할 수 있다. 상기 예측 정보는 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들 중 하나를 나타내는 인덱스를 포함할 수 있다. 상기 인덱스는 크로마 인트라 예측 모드 인덱스라고 불릴 수 있다. 즉, 상기 예측 정보는 상기 인트라 예측 모드 후보들 중 하나를 나타내는 상기 현재 크로마 블록에 대한 상기 크로마 인트라 예측 모드 인덱스를 포함할 수 있다. 디코딩 장치는 상기 크로마 인트라 예측 모드 인덱스를 기반으로 상기 인트라 예측 모드 후보들 중 하나의 인트라 예측 모드 후보를 상기 현재 크로마 블록의 상기 인트라 예측 모드로 도출할 수 있다. 즉, 디코딩 장치는 상기 인트라 예측 모드 후보들 중 상기 크로마 인트라 예측 모드 인덱스가 나타내는 인트라 예측 모드 후보를 상기 현재 크로마 블록의 상기 인트라 예측 모드로 도출할 수 있다. 상기 인트라 예측 모드 후보들 중 상기 크로마 인트라 예측 모드 인덱스가 나타내는 인트라 예측 모드 후보가 상기 현재 크로마 블록의 상기 인트라 예측 모드로 도출될 수 있다.
한편, 상기 현재 크로마 블록에 대한 상기 크로마 인트라 예측 모드 인덱스는 문맥 기반 적응적 이진 산술 코딩(context-based adaptive binary arithmetic coding, CABAC) 을 통하여 디코딩될 수 있다. 이 경우, 상기 크로마 인트라 예측 모드 인덱스는 다양한 방법을 통하여 이진화(binarization)될 수 있다.
예를 들어, 상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수가 N개로 결정된 경우, 상기 인트라 예측 모드 후보들은 1번 후보에서 N번 후보로 정렬될 수 있고, 상기 1번 후보 내지 상기 N번 후보 각각을 나타내는 크로마 인트라 예측 모드 인덱스의 값은 유너리 코드를 통하여 이진화될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스는 상기 유너리 코드를 통하여 이진화될 수 있다. 예를 들어, 상기 1번 후보에서 상기 N번 후보 순으로 비트수가 큰 이진화 코드가 할당될 수 있다. 상기 이진화 코드는 상술한 표 6과 같이 할당될 수 있다.
또는, 상기 1번 후보 내지 상기 N번 후보 각각을 나타내는 크로마 인트라 예측 모드 인덱스의 값은 트렁케이티드 유너리 코드를 통하여 이진화될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스는 상기 트렁케이티드 유너리 코드를 통하여 이진화될 수 있다. 예를 들어, 상기 1번 후보에서 상기 N번 후보 순으로 비트수가 큰 이진화 코드가 할당될 수 있고, 상기 N번 후보에 대한 이진화 코드 및 N-1번 후보에 대한 이진화 코드는 동일한 비트수로 할당될 수 있다. 상기 이진화 코드는 상술한 표 1 및 표 5과 같이 할당될 수 있다.
또는 상기 1번 후보 내지 상기 N번 후보 각각을 나타내는 크로마 인트라 예측 모드 인덱스의 값은 고정 길이 코드를 통하여 이진화될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스는 상기 고정 길이 코드를 통하여 이진화될 수 있다. 예를 들어, 상기 이진화 코드는 1 비트, 2 비트 또는 4 비트로 할당될 수 있다. 상기 이진화 코드는 상술한 표 2 및 표 7과 같이 할당될 수 있다. 상기 인트라 예측 모드 후보들은 후보로 도출된 순서로 정렬될 수도 있다. 또한, 상기 인트라 예측 모드 후보들 중 상기 CCLM 모드가 포함된 경우, 상기 CCLM 모드는 상기 인트라 예측 모드 후보들 중 1번 후보 또는 2번 후보로 도출될 수 있다. 여기서, 상기 1번 후보를 나타내는 상기 크로마 인트라 예측 인덱스의 이진화 코드는 상기 인트라 예측 모드 후보들에 대한 상기 크로마 인트라 예측 인덱스의 이진화 코드들 중 가장 작은 비트수로 할당될 수 있다.
또한, 상기 크로마 인트라 예측 모드 인덱스의 이진화 코드(binary code)의 비트수를 기반으로 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델(context model)이 도출될 수 있고, 상기 도출된 문맥 모델을 기반으로 상기 크로마 인트라 예측 모드 인덱스가 디코딩될 수 있다. 즉, 상기 크로마 인트라 예측 모드 인덱스의 이진화 코드(binary code)의 비트수에 따라 초기값이 다른 문맥 모델이 도출될 수 있고, 상기 문맥 모델을 통하여 디코딩될 수 있다. 예를 들어, 상기 크로마 인트라 예측 모드 인덱스의 상기 이진화 코드(binary code)의 비트수가 1인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 문맥 모델 0(context model 0)으로 도출될 수 있고, 상기 문맥 모델 0의 초기값은 139 또는 184일 수 있다. 또한, 상기 크로마 인트라 예측 모드 인덱스의 상기 이진화 코드(binary code)의 비트수가 2인 경우, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 문맥 모델 1(context model 1)으로 도출될 수 있고, 상기 문맥 모델 1의 초기값은 63, 154 또는 152일 수 있다. 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델은 상술한 표 1 내지 3 및 표 5 내지 7을 기반으로 도출될 수 있다. 또한, 상기 크로마 인트라 예측 모드 인덱스에 대한 문맥 모델의 초기값은 상술한 표 4를 기반으로 도출될 수 있다.
디코딩 장치는 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행한다(S730). 인코딩 장치는 상기 인트라 예측 모드에 따라 상기 현재 크로마 블록의 주변 샘플들을 이용하여 상기 현재 크로마 블록의 예측 샘플을 생성할 수 있다. 상기 주변 샘플들은 상기 현재 크로마 블록의 상측 주변 샘플들 및 좌측 주변 샘플들을 포함할 수 있다.
한편, 비록 도면에서 도시되지는 않았으나 디코딩 장치는 상기 예측 샘플을 기반으로 복원 샘플을 생성할 수 있다. 디코딩 장치는 상기 비트스트림으로부터 상기 현재 블록에 대한 레지듀얼에 관한 정보를 수신할 수 있다. 상기 레지듀얼에 관한 정보는 (크로마) 레지듀얼 샘플에 관한 변환 계수를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플(또는 레지듀얼 샘플 어레이)을 도출할 수 있다. 이 경우 디코딩 장치는 상기 예측 샘플 및 상기 레지듀얼 샘플을 기반으로 상기 복원 샘플을 생성할 수 있다.
디코딩 장치는 상기 복원 샘플을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 디코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다.
상술한 본 발명에 따르면 특정 조건에 따라 인트라 예측 모드 후보들의 개수를 도출할 수 있고, 이를 통하여 보다 정확하게 현재 크로마 블록의 인트라 예측 모드를 도출할 수 있고, 상기 현재 블록에 대한 예측 정확도를 향상시킬 수 있다.
또한, 본 발명에 따르면 다양한 방법을 통하여 인트라 예측 모드 후보들에 대한 인덱스의 이진화를 수행할 수 있고, 이를 통하여 상기 현재 크로마 블록의 예측 정보에 대한 비트량을 줄일 수 있고, 전반적인 코딩 효율을 향상시킬 수 있다.
또한, 본 발명에 따르면 인트라 예측 모드 후보들에 대한 인덱스의 비트수에 따라 다른 문맥 모델을 통하여 코딩을 수행할 수 있고, 이를 통하여 전반적인 코딩 효율을 향상시킬 수 있다.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다.

Claims (15)

  1. 디코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,
    현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정하는 단계;
    상기 결정된 개수의 상기 인트라 예측 모드 후보들을 도출하는 단계;
    상기 인트라 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 인트라 예측 모드로 도출하는 단계; 및
    상기 현재 크로마 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행하는 단계를 포함하는 것을 특징으로 하는 영상 디코딩 방법.
  2. 제1항에 있어서,
    상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 상관 없이 항상 8개로 결정되는 것을 특징으로 하는 영상 디코딩 방법.
  3. 제1항에 있어서,
    상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈를 기반으로 결정되는 것을 특징으로 하는 영상 디코딩 방법.
  4. 제3항에 있어서,
    상기 현재 크로마 블록의 사이즈가 AxB 사이즈인 경우,
    상기 A와 상기 B를 곱한 값이 64 이상이면 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 8개로 결정되고,
    상기 A와 상기 B를 곱한 값이 64 미만이면 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 6개로 결정되는 것을 특징으로 하는 영상 디코딩 방법.
  5. 제3항에 있어서,
    상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈에 비례하는 것을 특징으로 하는 영상 디코딩 방법.
  6. 제1항에 있어서,
    상기 인트라 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 상기 인트라 예측 모드로 도출하는 단계는,
    비트스트림을 통하여 크로마 인트라 예측 인덱스를 포함한 상기 현재 크로마 블록에 대한 예측 정보를 획득하는 단계; 및
    상기 인트라 예측 모드 후보들 중 상기 크로마 인트라 예측 모드 인덱스가 나타내는 인트라 예측 모드 후보를 상기 현재 크로마 블록의 상기 인트라 예측 모드로 도출하는 단계를 포함하되,
    상기 크로마 인트라 예측 인덱스는 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들 중 하나를 나타내는 인덱스인 것을 특징으로 하는 영상 디코딩 방법.
  7. 제6항에 있어서,
    상기 크로마 인트라 예측 인덱스는 트렁케이티드 유너리 코드(truncated unary code)를 통하여 이진화(binarization)되고,
    상기 크로마 인트라 예측 모드 인덱스의 이진화 코드(binary code)의 비트수를 기반으로 상기 크로마 인트라 예측 인덱스에 대한 문맥 모델(context model)이 도출되고,
    상기 도출된 문맥 모델을 기반으로 상기 현재 크로마 블록의 상기 크로마 인트라 예측 인덱스가 디코딩되는 것을 특징으로 하는 영상 디코딩 방법.
  8. 제7항에 있어서,
    상기 크로마 인트라 예측 모드 인덱스의 이진화 코드(binary code)의 비트수에 따라 초기값(initial value)이 다른 문맥 모델이 도출되는 것을 특징으로 하는 영상 디코딩 방법.
  9. 제6항에 있어서,
    상기 크로마 인트라 예측 인덱스는 고정 길이 코드를 통하여 이진화(binarization)되고,
    상기 크로마 인트라 예측 모드 인덱스의 이진화 코드(binary code)의 비트수를 기반으로 상기 크로마 인트라 예측 인덱스에 대한 문맥 모델(context model)이 결정되고,
    상기 결정된 문맥 모델을 기반으로 상기 현재 크로마 블록의 상기 크로마 인트라 예측 인덱스가 디코딩되는 것을 특징으로 하는 영상 디코딩 방법.
  10. 제6항에 있어서,
    상기 인트라 예측 모드 후보들은 CCLM(cross component linear model) 모드를 포함하고,
    상기 CCLM 모드는 상기 인트라 예측 모드 후보들 중 1번 후보로 도출되고,
    상기 1번 후보를 나타내는 상기 크로마 인트라 예측 인덱스의 이진화 코드는 상기 인트라 예측 모드 후보들에 대한 상기 크로마 인트라 예측 인덱스의 이진화 코드들 중 가장 작은 비트수로 할당되는 것을 특징으로 하는 영상 디코딩 방법.
  11. 제10항에 있어서,
    상기 현재 크로마 블록의 상기 인트라 예측 모드로 상기 CCLM 모드가 도출된 경우, 상기 현재 크로마 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행하는 단계는,
    상기 현재 크로마 블록과 대응하는 루마 블록의 주변 샘플들 및 상기 현재 크로마 블록의 주변 샘플들을 기반으로 선형 모델을 도출하는 단계; 및
    상기 선형 모델 및 상기 루마 블록의 복원 샘플들을 기반으로 상기 현재 크로마 블록의 예측 샘플들을 도출하는 단계를 포함하는 것을 특징으로 하는 영상 디코딩 방법.
  12. 영상 디코딩을 수행하는 디코딩 장치에 있어서,
    현재 크로마 블록에 대한 예측 정보를 획득하는 엔트로피 디코딩부; 및
    상기 현재 크로마 블록에 대한 인트라 예측 모드 후보들의 개수를 결정하고, 상기 결정된 개수의 상기 인트라 예측 모드 후보들을 도출하고, 상기 예측 정보를 기반으로 상기 인트라 예측 모드 후보들 중 하나를 상기 현재 크로마 블록의 인트라 예측 모드로 도출하고, 상기 현재 크로마 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 크로마 블록의 예측을 수행하는 예측부를 포함하는 것을 특징으로 하는 디코딩 장치.
  13. 제12항에 있어서,
    상기 인트라 예측 모드 후보들의 개수는 상기 현재 크로마 블록의 사이즈를 기반으로 결정되는 것을 특징으로 하는 디코딩 장치.
  14. 제13항에 있어서,
    상기 현재 크로마 블록의 사이즈가 AxB 사이즈인 경우,
    상기 A와 상기 B를 곱한 값이 64 이상이면 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 8개로 결정되고,
    상기 A와 상기 B를 곱한 값이 64 미만이면 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들의 개수는 6개로 결정되는 것을 특징으로 하는 디코딩 장치.
  15. 제12항에 있어서,
    상기 예측부는 상기 인트라 예측 모드 후보들 중 크로마 인트라 예측 모드 인덱스가 나타내는 인트라 예측 모드 후보를 상기 현재 크로마 블록의 상기 인트라 예측 모드로 도출하되,
    상기 현재 크로마 블록에 대한 상기 예측 정보는 상기 크로마 인트라 예측 인덱스를 포함하고,
    상기 크로마 인트라 예측 인덱스는 상기 현재 크로마 블록의 상기 인트라 예측 모드 후보들 중 하나를 나타내는 인덱스인 것을 특징으로 하는 디코딩 장치.
PCT/KR2017/010767 2017-03-22 2017-09-28 영상 코딩 시스템에서 영상 디코딩 방법 및 장치 WO2018174357A1 (ko)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201762474613P 2017-03-22 2017-03-22
US62/474,613 2017-03-22

Publications (1)

Publication Number Publication Date
WO2018174357A1 true WO2018174357A1 (ko) 2018-09-27

Family

ID=63586020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2017/010767 WO2018174357A1 (ko) 2017-03-22 2017-09-28 영상 코딩 시스템에서 영상 디코딩 방법 및 장치

Country Status (1)

Country Link
WO (1) WO2018174357A1 (ko)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112913235A (zh) * 2018-10-04 2021-06-04 Lg电子株式会社 基于cclm的帧内预测方法及其设备
KR20210094126A (ko) * 2019-01-09 2021-07-28 베이징 다지아 인터넷 인포메이션 테크놀로지 컴퍼니 리미티드 교차-성분 선형 모델을 사용하는 비디오 코딩
CN113347436A (zh) * 2019-06-21 2021-09-03 杭州海康威视数字技术股份有限公司 预测模式的解码、编码方法及装置
CN114731417A (zh) * 2019-11-22 2022-07-08 高通股份有限公司 交叉分量自适应环路滤波器
CN114827612A (zh) * 2019-06-25 2022-07-29 北京大学 视频图像编码和解码方法、设备及介质
US11758142B2 (en) 2019-10-29 2023-09-12 Lg Electronics Inc. Method for transform-based image coding and apparatus therefor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012128453A1 (ko) * 2011-03-21 2012-09-27 엘지전자 주식회사 영상 부호화/복호화 방법 및 장치
KR20150035932A (ko) * 2015-03-11 2015-04-07 삼성전자주식회사 영상 부호화 단위에 대한 인트라 예측 모드 결정 방법 및 장치, 및 영상 복호화 단위에 대한 인트라 예측 모드 결정 방법 및 장치
KR20160009109A (ko) * 2011-06-17 2016-01-25 미디어텍 인크. 인트라 예측 모드의 코딩을 위한 방법 및 장치
WO2016072777A1 (ko) * 2014-11-06 2016-05-12 삼성전자 주식회사 인트라 결합 예측 부호화, 복호화 방법 및 장치
KR20170026423A (ko) * 2017-02-24 2017-03-08 삼성전자주식회사 영상 복호화 방법 및 장치

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012128453A1 (ko) * 2011-03-21 2012-09-27 엘지전자 주식회사 영상 부호화/복호화 방법 및 장치
KR20160009109A (ko) * 2011-06-17 2016-01-25 미디어텍 인크. 인트라 예측 모드의 코딩을 위한 방법 및 장치
WO2016072777A1 (ko) * 2014-11-06 2016-05-12 삼성전자 주식회사 인트라 결합 예측 부호화, 복호화 방법 및 장치
KR20150035932A (ko) * 2015-03-11 2015-04-07 삼성전자주식회사 영상 부호화 단위에 대한 인트라 예측 모드 결정 방법 및 장치, 및 영상 복호화 단위에 대한 인트라 예측 모드 결정 방법 및 장치
KR20170026423A (ko) * 2017-02-24 2017-03-08 삼성전자주식회사 영상 복호화 방법 및 장치

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112913235A (zh) * 2018-10-04 2021-06-04 Lg电子株式会社 基于cclm的帧内预测方法及其设备
CN112913235B (zh) * 2018-10-04 2023-07-14 Lg电子株式会社 基于cclm的帧内预测方法及其设备
KR102487528B1 (ko) 2019-01-09 2023-01-10 베이징 다지아 인터넷 인포메이션 테크놀로지 컴퍼니 리미티드 교차-성분 선형 모델을 사용하는 비디오 코딩
KR20210094126A (ko) * 2019-01-09 2021-07-28 베이징 다지아 인터넷 인포메이션 테크놀로지 컴퍼니 리미티드 교차-성분 선형 모델을 사용하는 비디오 코딩
KR102632259B1 (ko) 2019-01-09 2024-02-01 베이징 다지아 인터넷 인포메이션 테크놀로지 컴퍼니 리미티드 교차-성분 선형 모델을 사용하는 비디오 코딩
KR20230010065A (ko) * 2019-01-09 2023-01-17 베이징 다지아 인터넷 인포메이션 테크놀로지 컴퍼니 리미티드 교차-성분 선형 모델을 사용하는 비디오 코딩
CN113347436A (zh) * 2019-06-21 2021-09-03 杭州海康威视数字技术股份有限公司 预测模式的解码、编码方法及装置
CN113347436B (zh) * 2019-06-21 2022-03-08 杭州海康威视数字技术股份有限公司 预测模式的解码、编码方法及装置
CN114827612A (zh) * 2019-06-25 2022-07-29 北京大学 视频图像编码和解码方法、设备及介质
CN114827609A (zh) * 2019-06-25 2022-07-29 北京大学 视频图像编码和解码方法、设备及介质
CN114827610A (zh) * 2019-06-25 2022-07-29 北京大学 视频图像编码和解码方法、设备及介质
CN114827610B (zh) * 2019-06-25 2023-04-11 北京大学 视频图像编码和解码方法、设备及介质
CN114827612B (zh) * 2019-06-25 2023-04-11 北京大学 视频图像编码和解码方法、设备及介质
CN114827611A (zh) * 2019-06-25 2022-07-29 北京大学 视频图像编码和解码方法、设备及介质
CN114827611B (zh) * 2019-06-25 2023-09-12 北京大学 视频图像编码和解码方法、设备及介质
CN114827609B (zh) * 2019-06-25 2023-09-12 北京大学 视频图像编码和解码方法、设备及介质
US11871004B2 (en) 2019-06-25 2024-01-09 SZ DJI Technology Co., Ltd. Video image processing method and device, and storage medium
US11758142B2 (en) 2019-10-29 2023-09-12 Lg Electronics Inc. Method for transform-based image coding and apparatus therefor
CN114731417B (zh) * 2019-11-22 2023-07-14 高通股份有限公司 交叉分量自适应环路滤波器
CN114731417A (zh) * 2019-11-22 2022-07-08 高通股份有限公司 交叉分量自适应环路滤波器

Similar Documents

Publication Publication Date Title
WO2018174402A1 (ko) 영상 코딩 시스템에서 변환 방법 및 그 장치
WO2018062921A1 (ko) 영상 코딩 시스템에서 블록 분할 및 인트라 예측 방법 및 장치
WO2017043786A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017034331A1 (ko) 영상 코딩 시스템에서 크로마 샘플 인트라 예측 방법 및 장치
WO2017069419A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017022973A1 (ko) 비디오 코딩 시스템에서 인터 예측 방법 및 장치
WO2017057953A1 (ko) 비디오 코딩 시스템에서 레지듀얼 신호 코딩 방법 및 장치
WO2018070632A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2017069590A1 (ko) 영상 코딩 시스템에서 모델링 기반 영상 디코딩 방법 및 장치
WO2016204360A1 (ko) 영상 코딩 시스템에서 조도 보상에 기반한 블록 예측 방법 및 장치
WO2018062702A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017052000A1 (ko) 영상 코딩 시스템에서 움직임 벡터 정제 기반 인터 예측 방법 및 장치
WO2018174357A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2017014412A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017052118A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017188565A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2018216862A1 (ko) 영상 코딩 시스템에서 인트라 예측에 따른 영상 디코딩 방법 및 장치
WO2017061671A1 (ko) 영상 코딩 시스템에서 적응적 변환에 기반한 영상 코딩 방법 및 장치
WO2017048008A1 (ko) 영상 코딩 시스템에서 인터 예측 방법 및 장치
WO2018056709A1 (ko) 영상 코딩 시스템에서 인터 예측 방법 및 장치
WO2019194507A1 (ko) 어파인 움직임 예측에 기반한 영상 코딩 방법 및 그 장치
WO2018021585A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2019198997A1 (ko) 인트라 예측에 기반한 영상 코딩 방법 및 그 장치
WO2019125035A1 (ko) 선택적 변환에 기반한 영상 코딩 방법 및 그 장치
WO2019112071A1 (ko) 영상 코딩 시스템에서 크로마 성분의 효율적 변환에 기반한 영상 디코딩 방법 및 장치

Legal Events

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

Ref document number: 17902128

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

Country of ref document: EP

Kind code of ref document: A1