WO2019203487A1 - 인트라 예측에 기반한 영상 코딩 방법 및 그 장치 - Google Patents

인트라 예측에 기반한 영상 코딩 방법 및 그 장치 Download PDF

Info

Publication number
WO2019203487A1
WO2019203487A1 PCT/KR2019/004169 KR2019004169W WO2019203487A1 WO 2019203487 A1 WO2019203487 A1 WO 2019203487A1 KR 2019004169 W KR2019004169 W KR 2019004169W WO 2019203487 A1 WO2019203487 A1 WO 2019203487A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
chroma
luma
prediction mode
peripheral
Prior art date
Application number
PCT/KR2019/004169
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 WO2019203487A1 publication Critical patent/WO2019203487A1/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/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/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • 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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Definitions

  • the present invention relates to an image coding technique, and more particularly, to an image coding method and apparatus based on intra prediction 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 provide a method and apparatus for increasing the efficiency of intra prediction.
  • Another technical problem of the present invention is to provide a method and apparatus for increasing the efficiency of intra prediction based on chroma prediction mode candidates.
  • Another technical problem of the present invention is based on at least one of surrounding samples of a chroma block, samples in a luma block corresponding to the chroma block, and surrounding samples of the luma block when the cross component linear model (CCLM) is not applied.
  • CCLM cross component linear model
  • Another technical problem of the present invention is to provide an extended intra prediction mode candidate selection method for chroma intra prediction.
  • Another technical problem of the present invention is to provide a selection order in selecting an extended intra prediction mode candidate for chroma intra prediction.
  • a picture decoding method performed by a decoding apparatus includes receiving index information for an intra chroma prediction mode, intra prediction modes of at least one luma block in a luma region corresponding to a current chroma block, and intra prediction modes of neighboring chroma blocks of the current chroma block. Determining chroma prediction mode candidates based on the index information for the intra chroma prediction mode and determining an intra prediction mode for the current chroma block based on the determined chroma prediction mode candidates. Generating prediction samples for the current chroma block based on an intra prediction mode and generating reconstructed samples based on the prediction samples for the current chroma block.
  • a decoding device for performing picture decoding.
  • the decoding apparatus may further include an entropy decoding unit configured to receive index information about an intra chroma prediction mode, intra prediction modes of at least one luma block in a luma region corresponding to a current chroma block, and intra chromas of neighboring chroma blocks of the current chroma block.
  • chroma prediction mode candidates based on prediction modes, determine an intra prediction mode for the current chroma block based on the index information for the intra chroma prediction mode and the determined chroma prediction mode candidates, And a predictor for generating predictive samples for the current chroma block based on the intra prediction mode for the first predictor, and an adder for generating reconstructed samples based on the predictive samples for the current chroma block.
  • the overall video / video compression efficiency can be improved.
  • the efficiency of intra prediction can be improved.
  • intra coding may be performed by performing intra prediction based on the derived chroma prediction mode candidates.
  • intra coding when CCLM is not applied, intra coding may be performed by performing intra prediction based on chroma prediction mode candidates.
  • an intra-prediction prediction of a chroma image may be improved by providing a method for selecting a chroma intra prediction mode candidate.
  • a method of selecting a chroma intra prediction mode candidate may be provided to increase an intra coding and decoding efficiency of a chroma image.
  • FIG. 1 is a diagram schematically illustrating a configuration of an encoding apparatus according to an embodiment.
  • FIG. 2 is a diagram schematically illustrating a configuration of a decoding apparatus according to an embodiment.
  • FIG. 3 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block, according to an exemplary embodiment.
  • FIG. 4 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block according to another embodiment.
  • FIG. 5 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block according to another embodiment.
  • FIG. 6 is a flowchart illustrating a method of selecting chroma prediction mode candidates according to an embodiment.
  • FIG. 7 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block, according to another embodiment.
  • FIG. 8 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block, according to another embodiment.
  • FIG. 9 is a flowchart illustrating a method of selecting chroma prediction mode candidates according to another exemplary embodiment.
  • FIG. 10 is a flowchart illustrating a method of operating a decoding apparatus, according to an exemplary embodiment.
  • FIG. 11 is a block diagram illustrating a configuration of a decoding apparatus according to an embodiment.
  • a picture decoding method performed by a decoding apparatus includes receiving index information for an intra chroma prediction mode, intra prediction modes of at least one luma block in a luma region corresponding to a current chroma block, and intra prediction modes of neighboring chroma blocks of the current chroma block. Determining chroma prediction mode candidates based on the index information for the intra chroma prediction mode and determining an intra prediction mode for the current chroma block based on the determined chroma prediction mode candidates. Generating prediction samples for the current chroma block based on an intra prediction mode and generating reconstructed samples based on the prediction samples for the current chroma block.
  • 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.
  • VVC Versatile Video Coding
  • HEVC High Efficiency Video Coding
  • a video may mean a series of images over time.
  • a picture generally refers to a unit representing one image in a specific time zone, and 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.
  • an "image” may mean a concept including a still image and a video, which is a set of a series of still images over time.
  • video does not necessarily mean a set of a series of still images over time, and in some embodiments, may be interpreted as a concept in which still images are included in video.
  • 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.
  • the encoding / decoding device may include a video encoding / decoding device and / or an image encoding / decoding device, and the video encoding / decoding device is used as a concept including the image encoding / decoding device, or the image encoding / decoding device is It may be used in a concept including a video encoding / decoding device.
  • the (video) encoding apparatus 100 may include a picture partitioning module 105, a prediction module 110, a residual processing module 120, and an entropy encoding unit (
  • the entropy encoding module 130 may include an adder 140, a filtering module 150, and a memory 160.
  • the residual processor 120 may include a substractor 121, a transform module 122, a quantization module 123, a rearrangement module 124, and a dequantization module 125. ) And an inverse transform module 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 divided according to a quad-tree binary-tree (QTBT) structure from a largest coding unit (LCU).
  • QTBT quad-tree binary-tree
  • LCU largest coding unit
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure, a binary tree structure, and / or a ternary tree structure.
  • the quad tree structure may be applied first, and the binary tree structure and the ternary tree structure may be applied later.
  • the binary tree structure / tunary 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 divided into coding units of lower depths rather than recursively and optimally.
  • 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 performs prediction on a block to be processed (hereinafter, may mean a current block or a residual block), and generates a predicted block including prediction samples for the current block. can do.
  • 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 coefficients (for example, a value of a syntax element) together or separately according to entropy encoding or a predetermined method.
  • the encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
  • the bitstream may be transmitted over a network or may be stored in a digital storage medium.
  • the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like.
  • the inverse quantization unit 125 inversely quantizes the quantized values (quantized transform coefficients) in the quantization unit 123, and the inverse transformer 126 inversely transforms the inverse quantized values in the inverse quantization unit 125 to generate 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 also be called a reconstruction module or a restore block generator.
  • 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 / video decoding apparatus to which the present invention can be applied.
  • the video decoding apparatus may include an image decoding apparatus.
  • the (video) decoding apparatus 200 may include an entropy decoding module 210, a residual processing module 220, a prediction module 230, and an adder. , 240, a filtering module 250, and a memory 260.
  • the residual processor 220 may include a rearrangement module 221, a dequantization module 222, and an inverse transform module 223.
  • the video decoding apparatus 200 may include a receiver that receives a bitstream including video information. The receiver may be configured as a separate module or may be included in the entropy decoding unit 210.
  • the (video) decoding apparatus 200 may restore the video / image / picture in response to a process in which the video / image 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, binary tree structure and / or ternary 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 required for video reconstruction, and transform coefficients for residuals. Can be output.
  • a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for video reconstruction, and transform coefficients for residuals. 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 is determined using the context model, the probability of occurrence of a bin is predicted according to the determined context model, and arithmetic decoding of the bin is performed to generate a symbol corresponding to the value of each syntax element. can do.
  • 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 / bin 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.
  • the adder 240 may also be called a reconstruction module or a reconstruction block generator.
  • 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.
  • a predicted block including prediction samples of the current block which is a coding target block
  • the predicted block comprises prediction samples in the spatial domain (or pixel domain).
  • the predicted block is derived identically in the encoding apparatus and the decoding apparatus, and the encoding apparatus decodes information (residual information) about the residual between the original block and the predicted block, not the original sample value itself of the original block. Signaling to an apparatus may increase image coding efficiency.
  • the decoding apparatus may derive a residual block including residual samples based on the residual information, generate the reconstructed block including reconstructed samples by adding the residual block and the predicted block, and generate reconstructed blocks. A reconstructed picture may be generated.
  • the residual information may be generated through a transform and quantization procedure.
  • the encoding apparatus derives a residual block between the original block and the predicted block, and performs transform procedure on residual samples (residual sample array) included in the residual block to derive transform coefficients.
  • the quantized transform coefficients may be derived by performing a quantization procedure on the transform coefficients to signal related residual information to the decoding device (via a bitstream).
  • the residual information may include information such as value information of the quantized transform coefficients, position information, a transform scheme, a transform kernel, and a quantization parameter.
  • the decoding apparatus may perform an inverse quantization / inverse transformation procedure and derive residual samples (or residual blocks) based on the residual information.
  • the decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block.
  • the encoding apparatus may then dequantize / inverse transform the quantized transform coefficients for reference for inter prediction of the picture to derive a residual block, and generate a reconstructed picture based thereon.
  • FIG. 3 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block, according to an exemplary embodiment.
  • chroma block a "chroma image”, or the like may represent the same meaning as a color difference block, a color difference image, and the like
  • chroma and color difference may be used interchangeably.
  • a "luma block”, a “luma image”, and the like may represent the same meaning as a luminance block, a luminance image, and the like
  • the luma and the luminance may be used interchangeably.
  • CCLM cross component linear model
  • the “luma region” may mean a region corresponding to a current chroma block for performing intra prediction.
  • the luma region may include at least one luma block.
  • the luma region is the right region with respect to the center in the quadrangle shown at the left.
  • the top-left sample position is represented by TL
  • the top-right sample position is TR
  • the center right bottom sample position is CR
  • the bottom left sample position is BL
  • the left and right sample positions are represented by BR. .
  • the current chroma block is the right region based on the center of gravity in the quadrangle shown on the right side.
  • the chroma block around the lower left corner of the current chroma block is BL
  • the lower left peripheral chroma block is L
  • the upper right corner chroma block is AR
  • the upper right peripheral chroma block is A
  • the upper left corner chroma block is AL. It is expressed.
  • Non-CCLM modes include DC, Planar, and Directional modes. Five prediction modes are selected, except for modes that overlap on a first-come, first-served basis.
  • the intra prediction mode corresponding to each position may be selected as the intra prediction mode of the color difference image in the order of CR, TL, TR, BL, and BR positions of the same position luminance block.
  • the intra prediction mode may be selected as the intra prediction mode of the color difference image in the order of blocks L, A, BL, AR, and AL, which are blocks around the current color difference block.
  • the planner and the DC mode may be selected as an intra prediction mode of the color difference image.
  • the -1 or +1 angular mode of the previously selected angular mode may be selected as an intra prediction mode of the color difference image.
  • Fifth, vertical, horizontal, 2, 34, 66, 10, and 26 modes may be selected as intra prediction modes of the color difference image.
  • the selected non-CCLM modes may be binarized to perform encoding, and the selected mode through encoding in the encoder may be transmitted to the decoder through context modeling.
  • Intra prediction modes may be classified as shown in Table 1 below.
  • Intra prediction mode Associated name 0 Intra Planner One Intra DC (INTRA_DC) 2, ..., 66 Intra Direction 2, ..., Intra Direction 66 (INTRA_ANGULAR2, ..., INTRA_ANGULAR 66)
  • the horizontal mode may indicate intra directional 18, that is, intra prediction mode 18, and the vertical mode may indicate intra directional 50, that is, intra prediction mode 50.
  • FIG. 4 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block according to another embodiment.
  • a chroma block around the upper center of the current chroma block is AC
  • a chroma block around the left center of the current chroma block is CL
  • a chroma block around the upper left side of the current chroma block is A1
  • a margin around the upper left side of the current chroma block may each represent L1.
  • the more accurate prediction mode in the chrominance video screen may be selected as a candidate by considering the neighboring chrominance blocks of various positions.
  • Such an extension of the peripheral color difference block position selection allows efficient selection of the peripheral color difference blocks in consideration of various block structures such as binary trees and triple trees as well as block structures such as the existing quad tree.
  • intra prediction mode candidate selection of the color difference image using the method proposed in the present embodiment five prediction modes are selected except the modes overlapping on a first-come, first-served basis.
  • an intra prediction mode corresponding to each position may be selected as an intra prediction mode of a chrominance image in order of CR, TL, TR, BL, and BR positions of the same position luminance block.
  • the intra prediction mode may be selected as the intra prediction mode of the color difference image in the order of blocks L, A, L1, and A1 which are blocks around the current color difference block.
  • PLANAR and DC modes may be selected as intra prediction modes of the color difference image.
  • the intra prediction mode may be selected as the intra prediction mode of the color difference image in the order of CL, AC, BL, AR, and AL blocks, which are blocks around the current color difference block.
  • the -1 and +1 angular modes may be selected as the intra prediction mode of the chrominance image.
  • the vertical, horizontal, 2, 34, 66, 10, and 26 modes may be selected as intra prediction modes of the color difference image.
  • the number of prediction candidates may be selected as described above, or more may be selected to increase the accuracy of intra prediction. Also, when the intra prediction mode of the neighboring block of the current color difference block is the CCLM mode, the mode candidate is excluded. In addition, the prediction mode binarization may be performed more efficiently by changing the order of selection of the intra prediction mode.
  • FIG. 5 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block according to another embodiment.
  • the intra prediction mode (DM) of the same position luminance block may be selected as the intra prediction mode of the color difference image in the direct mode (DM) mode.
  • the intra prediction mode may be selected as the intra prediction mode of the color difference image in the order of blocks L, A, L1, and A1 which are blocks around the current color difference block.
  • PLANAR and DC modes may be selected as intra prediction modes of the color difference image.
  • the intra prediction mode may be selected as the intra prediction mode of the color difference image in the order of CL, AC, BL, AR, and AL blocks, which are blocks around the current color difference block.
  • the -1 and +1 angular modes may be selected as the intra prediction mode of the chrominance image.
  • the vertical, horizontal, 2, 34, 66, 10, and 26 modes may be selected as intra prediction modes of the color difference image.
  • the number of prediction candidates may be selected as described above, but five or more prediction candidates may be selected since more candidate modes are considered.
  • the prediction candidate number may be selected adaptively to the current chrominance block size. For example, when the product of the width and length of the chrominance block is 256 or less, the prediction candidates in the chrominance block screen are considered as in the first embodiment, and the number of prediction candidates may be selected.
  • the number of intra prediction prediction candidates may be increased to seven. That is, the prediction accuracy can be improved by allocating more prediction candidates to a large color difference block having a large variation in the residual signal amount according to the prediction mode, and maintaining the same number of prediction modes in the small color difference block. The burden of increasing the number of mode transmission bits due to the increase can be prevented.
  • the following example shows in detail how to adaptively adjust the number of prediction modes in the picture according to the color difference block size.
  • the product of the width and length of the chrominance block is 5 or more and 256 or less (e.g., chroma 16x16 block, 8x32 block), 5 intra prediction modes are used, and when 257 or more, 7 intra prediction modes are available. have.
  • three intra-prediction candidates are considered when the product of the chrominance block is less than or equal to 4 (e.g., chroma 2x2 block), and the product of the variance block is greater than or equal to 5 is less than 256 (e.g., chroma. 16x16 block, 8x32 block) 5 intra prediction modes can be used, and when 257 or more, 7 intra prediction modes can be used.
  • intra prediction mode binarization is performed through the appropriate binarization.
  • intra prediction mode binarization can be performed using unary code, truncated unary code, or fixed length code.
  • the following example shows a binarization method according to the number of intra prediction modes of a color difference image.
  • the first prediction mode DM may be 0 and the remaining two prediction modes 10 and 11 may be binarized.
  • the first prediction mode (DM) is 0, and the remaining two prediction modes are binarized using 2 bit fixed length code (100, 101, 110, 111). ).
  • binarization may be performed as 0, 10, 110, 1110, 1111 through truncated unary code.
  • the first, second, and third prediction modes perform binarization as 0, 10, 110 through an unary code.
  • the remaining four prediction modes may perform binarization such as 11100, 11101, 11110, and 11111 through fixed length codes.
  • the intra prediction candidate mode proposed by the present patent it is possible to adaptively select a prediction candidate within a chrominance screen based on not only a block structure such as a quad tree but also various block structures such as a binary tree and a triple tree. That is, by referring to the intra prediction mode at the positions L1 and A1 of FIG. 3, the intra prediction mode candidate of the current block may be considered in response to the case where the block above or to the left of the current block is encoded by the binary tree. In addition, by referring to the intra prediction mode of the CL position, the intra prediction mode candidate of the current block may be considered corresponding to the case where the upper or left block of the current block is encoded by the triple tree. In particular, as in the case of HEVC, when the luminance block and the chrominance block have the same block structure (that is, when the number of intra prediction modes selected through the DM mode is one), more effective intra chrominance prediction is possible.
  • the color difference block predicted by the method proposed in the present specification may be used to obtain a residual image by difference from an original image in an encoder, or may be used to obtain a reconstructed image by adding a residual signal in a decoder. .
  • FIG. 6 is a flowchart illustrating a method of selecting chroma prediction mode candidates according to an embodiment.
  • the decoding apparatus 200 may select an intra prediction mode of the same position luminance block (DM or CR, TL, TR, BL, BR) (S600).
  • DM or CR, TL, TR, BL, BR same position luminance block
  • the decoding apparatus 200 may select a prediction mode in a screen around a current color difference image block (L, A, L1, A1) (S610).
  • the decoding apparatus 200 may select a PLANAR and a DC prediction mode (S620).
  • the decoding apparatus 200 may select an intra prediction mode around the current color difference image block (CL, AC, BL, AR, AL) (S630).
  • the decoding apparatus 200 may select a default mode (or a default prediction mode) (S640).
  • FIG. 7 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block, according to another embodiment.
  • the sample position around the upper left corner of the luma region is L-AL
  • the sample position around the upper right corner of the luma region is L-AR
  • the sample position around the lower left corner of the luma region is L-BL
  • the sample position around the upper right corner of the luma region is LA
  • the lower left peripheral sample position of the luma region may be represented by LL.
  • an intra prediction mode candidate of an existing color difference image when selecting an intra prediction mode candidate of an existing color difference image, an intra prediction mode candidate of a block around the luminance block (LL, LA, L-BL, L-AR, L-AL) is selected. Suggest ways to make additional choices. To this end, five prediction modes can be selected except the modes overlapping on a first-come, first-served basis.
  • the intra prediction mode of the CR, TL, TR, BL, and BR positions of the same position luminance block may be selected.
  • the intra prediction mode of the L, A, BL, AR, and AL blocks around the current color difference block may be selected.
  • PLANAR and DC modes can be selected.
  • an intra prediction mode of L-L, L-A, L-BL, L-AR, and L-AL positions of the same position luminance block may be selected.
  • the number of prediction candidates may be selected as described above, or more may be selected to increase the accuracy of intra prediction. Also, when the intra prediction mode of the neighboring block of the current color difference block is the CCLM mode, the mode candidate is excluded. In addition, the prediction mode binarization may be performed more efficiently by changing the order of selection of the intra prediction mode.
  • FIG. 8 is a diagram for describing a process of deriving an intra prediction mode of a current chroma block, according to another embodiment.
  • the sample location is L-AC at the top center of the luma region, the L-A1 is at the top left of the luma region, the sample location is L-A1 at the upper left of the luma region, and the sample location is L-L1 at the left top of the luma region. It can be expressed as CL.
  • five prediction modes may be selected except for modes overlapping on a first-come, first-served basis.
  • the intra prediction mode (DM) of the same position luminance block may be selected as the intra prediction mode of the color difference image in the direct mode (DM) mode.
  • the intra prediction mode may be selected as the intra prediction mode of the color difference image in the order of blocks L, A, L1, and A1 which are blocks around the current color difference block.
  • PLANAR and DC modes may be selected as intra prediction modes of the color difference image.
  • the intra prediction mode may be selected as the intra prediction mode of the color difference image in the order of CL, AC, BL, AR, and AL blocks, which are blocks around the current color difference block.
  • the intra prediction mode of the LL, LA, L-L1, L-A1, L-CL, L-AC, L-BL, L-AR, and L-AL positions of the same position luminance block can be selected.
  • Sixth, -1 and +1 angular mode can be selected as the intra prediction mode of the chrominance image.
  • the vertical, horizontal, 2, 34, 66, 10, and 26 modes may be selected as intra prediction modes of the color difference image.
  • the number of prediction candidates may be selected as described above, but five or more prediction candidates may be selected since more candidate modes are considered.
  • the prediction candidate number may be selected adaptively to the current chrominance block size. For example, when the product of the width and length of the chrominance block is 256 or less, the prediction candidates in the chrominance block screen are considered as in the first embodiment, and the number of prediction candidates may be selected.
  • the number of intra prediction prediction candidates may be increased to seven. That is, the prediction accuracy can be improved by allocating more prediction candidates to a large color difference block having a large variation in the residual signal amount according to the prediction mode, and maintaining the same number of prediction modes in the small color difference block. The burden of increasing the number of mode transmission bits due to the increase can be prevented.
  • the following example shows in detail how to adaptively adjust the number of prediction modes in the picture according to the color difference block size.
  • the product of the width and length of the chrominance block is 5 or more and 256 or less (e.g. chroma 16x16 block, 8x32 block), 5 intra prediction modes are available, and when 257 or more, 7 intra prediction modes are available. have.
  • three intra-prediction candidates are considered when the product of the chrominance block width and height is 4 or less (e.g. chroma 2x2 block), and the product of the variance block is 5 or more and 256 or less (e.g. chroma). 16x16 block, 8x32 block) 5 intra prediction modes can be used, and when 257 or more, 7 intra prediction modes can be used.
  • intra prediction mode binarization is performed through the appropriate binarization.
  • intra prediction mode binarization can be performed using unary code, truncated unary code, or fixed length code.
  • the decoding apparatus 200 may receive index information for the intra chroma prediction mode, and determine the intra prediction mode for the current chroma block based on the index information for the intra chroma prediction mode and the chroma prediction mode candidates. You can decide. More specifically, index information for the intra chroma prediction mode may be used to select one of the chroma prediction mode candidates. Index information for the intra chroma prediction mode may be indicated based on a binarization code.
  • the following example shows a binarization method according to the number of intra prediction modes of a color difference image.
  • the first prediction mode DM when the number of intra prediction modes of the chrominance block is three, the first prediction mode DM may be 0, and the remaining two prediction modes 10 and 11 may be binarized.
  • the first prediction mode (DM) is 0, and the remaining two prediction modes are binarized using 2 bit fixed length code (100, 101, 110, 111). ).
  • binarization is performed such as 0, 10, 110, 1110, 1111 through truncated unary code.
  • the first, second, and third prediction modes perform binarization as 0, 10, 110 through an unary code.
  • the remaining four prediction modes may perform binarization such as 11100, 11101, 11110, and 11111 through fixed length codes.
  • the prediction candidate in the chrominance screen can be adaptively selected not only for the block structure like the existing quad tree but also for various block structures such as the binary tree and the triple tree. That is, by referring to the intra prediction mode of the positions of L1, A1, L-L1, and L-A1 in FIG. Mode candidates can be considered, and by referring to the intra prediction modes of the AC, CL, L-AC, and L-CL positions, corresponding to the case where the upper or left block of the current block is encoded in the triple tree, Prediction mode candidates may be considered.
  • the luminance block and the chrominance block have the same block structure as in the case of HEVC (i.e., when the number of intra prediction modes selected through the DM mode is one), more efficient intra chrominance prediction can be made. Can be.
  • the color difference block predicted by the method proposed in the present specification may be used to obtain a residual image by difference from an original image in an encoder, or may be used to obtain a reconstructed image by adding a residual signal in a decoder. .
  • FIG. 9 is a flowchart illustrating a method of selecting chroma prediction mode candidates according to another exemplary embodiment.
  • the decoding apparatus 200 may select an intra prediction mode of the same position luminance block (S900).
  • the decoding apparatus 200 may select a prediction mode in the screen around the current color difference image block (S910).
  • the decoding apparatus 200 may select an intra prediction mode around the same position luminance block (S920).
  • the decoding apparatus 200 may select a default mode (or a default prediction mode) (S930).
  • FIG. 10 is a flowchart illustrating a method of operating a decoding apparatus according to an embodiment
  • FIG. 11 is a block diagram illustrating a configuration of a decoding apparatus according to an embodiment.
  • Each step disclosed in FIG. 10 may be performed by the decoding apparatus 200 disclosed in FIG. 2. More specifically, S1000 may be performed by the entropy decoding unit 210 disclosed in FIG. 2, S1010 to S1030 may be performed by the prediction unit 230 disclosed in FIG. 2, and S1040 may be an addition disclosed in FIG. 2. It may be performed by the unit 240. In addition, operations according to S1000 to S1040 are based on some of the contents described above with reference to FIGS. 3 to 9. Accordingly, detailed descriptions overlapping with the foregoing descriptions will be omitted or simply described with reference to FIGS. 2 to 9.
  • a decoding apparatus may include an entropy decoding unit 210, a predictor 230, and an adder 240.
  • all of the components shown in FIG. 11 may not be essential components of the decoding apparatus, and the decoding apparatus may be implemented by more or fewer components than those illustrated in FIG. 11.
  • the entropy decoding unit 210, the prediction unit 230, and the adder 240 are each implemented as separate chips, or at least two or more components are implemented through one chip. May be
  • the decoding apparatus may receive index information for the intra chroma prediction mode (S1000).
  • the decoding apparatus may determine chroma prediction mode candidates based on intra prediction modes of at least one luma block in the luma region corresponding to the current chroma block and intra prediction modes of neighboring chroma blocks of the current chroma block. (S1010).
  • At least one luma block in a luma region may include a first luma block covering a top-left sample position of the luma region, and a second luma covering a top right sample position of the luma region.
  • Block, a third luma block covering the lower right sample position of the luma region, a fourth luma block covering the lower left sample position of the luma region, and a fifth luma block covering the lower right sample position of the luma region It may include.
  • the decoding apparatus determines the chroma prediction mode candidates based on intra prediction modes of luma blocks in the luma region, intra prediction modes of neighboring chroma blocks of the current chroma block, and at least one default prediction mode. Can be.
  • the at least one default prediction mode may include a DC mode and a planner mode.
  • the total number of chroma prediction mode candidates is five
  • the plurality of chroma prediction mode candidates are different from each other, and the determination may be completed when the number of the plurality of chroma prediction mode candidates is five.
  • At least one luma block in the luma region covers a first luma block covering a top-left sample position of the luma region, and covering a right top sample position of the luma region.
  • a second luma block, a third luma block covering the lower right sample position of the luma region, a fourth luma block covering the lower left sample position of the luma region, and a fourth luma block covering the lower right sample position of the luma region; May contain five luma blocks.
  • the decoding apparatus may determine the chroma prediction mode candidates based on intra prediction modes of luma blocks in the luma region, intra prediction modes of neighboring chroma blocks of the current chroma block, and at least one default prediction mode.
  • Peripheral chroma blocks include a chroma block around the lower left corner of the current chroma block, a lower left peripheral chroma block of the current chroma block, a chroma block around the upper right corner of the current chroma block, and a chroma block near the upper right side of the current chroma block. It may include a chroma block around the upper left corner of the current chroma block.
  • the side peripheral chroma block, the lower left peripheral chroma block, the upper right corner peripheral chroma block, the upper left corner peripheral chroma block, the planar mode and the DC mode may be considered.
  • At least one luma block in a luma region covers a first luma block covering a top-left sample position of the luma region, and a right top sample position of the luma region.
  • a second luma block, a third luma block covering a lower right sample position of the center of the luma region, a fourth luma block covering a lower left sample position of the luma region, and a lower right sample position of the luma region It may include a fifth luma block.
  • the decoding apparatus may determine the chroma prediction mode candidates based on intra prediction modes of luma blocks in the luma region, intra prediction modes of neighboring chroma blocks of the current chroma block, and at least one default prediction mode.
  • Peripheral chroma blocks are chroma blocks around the upper left corner of the current chroma block, chroma blocks around the upper right corner of the current chroma block, chroma blocks around the upper right side of the current chroma block, and chroma around the lower left corner of the current chroma block.
  • a block, a lower left peripheral chroma block of the current chroma block, an upper left peripheral edge chroma block of the current chroma block, an upper left peripheral chroma block of the upper left side of the current chroma block, an upper central peripheral chroma block of the current chroma block, and It may include a chroma block around the left center of the current chroma block.
  • the third luma block, the first luma block, the second luma block, the fourth luma block, the fifth luma block, the lower left peripheral chroma block, and the upper right peripheral to determine the chroma prediction mode candidates.
  • the chroma blocks around the side corners and the chroma blocks around the upper left corner may be considered in this order.
  • the at least one luma block in the luma region is one luma block, an intra prediction mode of the one luma block in the luma region, the periphery of the current chroma block.
  • the chroma prediction mode candidates may be determined based on intra prediction modes of the chroma blocks and at least one default prediction mode.
  • the at least one default prediction mode includes a DC mode and a planar mode
  • the peripheral chroma blocks include: a chroma block around the upper left corner of the current chroma block, a block around the upper right corner of the current chroma block; The right upper peripheral chroma block of the current chroma block, the lower left corner peripheral block of the current chroma block, the lower left peripheral chroma block of the current chroma block, the upper left upper peripheral peripheral chroma block of the current chroma block, and the current chroma block.
  • a left upper left peripheral chroma block, an upper middle peripheral chroma block of the current chroma block, and a left central peripheral chroma block of the current chroma block The one luma block, the lower left peripheral chroma block, the upper right peripheral chroma block, the upper left upper peripheral edge chroma block, the upper left upper peripheral edge chroma block, and the planner in the luma region to determine the chroma prediction mode candidates.
  • Mode the DC mode, the left center peripheral chroma block, the upper center peripheral chroma block, the lower left corner peripheral chroma block, the upper right corner peripheral chroma block and the upper left corner peripheral block in order.
  • At least one luma block in the luma region may include a first luma block covering a top-left sample position of the luma region, and a right top sample position of the luma region.
  • a second luma block to cover, a third luma block to cover a lower right sample position of the center of the luma region, a fourth luma block to cover a lower left sample position of the luma region, and a lower right sample position to cover the luma region It may include a fifth luma block.
  • the chroma prediction mode candidates may be determined.
  • the peripheral chroma blocks may include a chroma block around a lower left corner of the current chroma block, a lower left peripheral chroma block of the current chroma block, a chroma block around a right upper corner of the current chroma block, and a right upper peripheral chroma of the current chroma block.
  • the block may include a chroma block around an upper left corner of the current chroma block.
  • Peripheral luma blocks of the luma area may be included.
  • the sixth luma block covering the sample position around the upper left corner of the luma region
  • the seventh luma block covering the sample position around the upper right corner of the luma region
  • the lower left corner of the luma region An eighth luma block covering a peripheral sample position, a ninth luma block covering a right upper peripheral sample position of the luma region, and a tenth luma block covering a lower left peripheral sample position of the luma region may be included.
  • the blocks may be considered in the order of the seventh luma block and the sixth luma block.
  • the at least one luma block in the luma region is one luma block, an intra prediction mode of the one luma block in the luma region, a peripheral luma of the luma region
  • the chroma prediction mode candidates may be determined based on intra prediction modes of blocks, intra prediction modes of neighboring chroma blocks of the current chroma block, and at least one default prediction mode.
  • the at least one default prediction mode includes a DC mode and a planar mode
  • the peripheral chroma blocks include: a chroma block around the upper left corner of the current chroma block, a block around the upper right corner of the current chroma block; The right upper peripheral chroma block of the current chroma block, the lower left corner peripheral block of the current chroma block, the lower left peripheral chroma block of the current chroma block, the upper left upper peripheral peripheral chroma block of the current chroma block, and the current chroma block.
  • a left upper left peripheral chroma block, an upper middle peripheral chroma block of the current chroma block, and a left central peripheral chroma block of the current chroma block Peripheral luma blocks of the luma region, the second luma block covering the sample position around the upper left corner of the luma region, the third luma block covering the sample position around the upper right corner of the luma region, the lower left corner of the luma region
  • a fourth luma block covering a peripheral sample position, a fifth luma block covering a right upper peripheral sample position of the luma region, a sixth luma block covering a lower left peripheral sample position of the luma region, and an upper left upper end of the luma region A seventh luma block covering a side peripheral sample position, an eighth luma block covering a left upper peripheral sample position of the luma region, a ninth luma block covering an upper center peripheral sample position of the luma region, and the luma region It may include
  • the luma block, the seventh luma block, the tenth luma block, the ninth luma block, the fourth luma block, the third luma block and the second luma block may be considered in order.
  • the total number of chroma prediction mode candidates may be determined based on the size of the current chroma block.
  • the total number of chroma prediction mode candidates is five
  • the plurality of chroma prediction mode candidates are different from each other, and the determination may be completed when the number of the plurality of chroma prediction mode candidates is five.
  • the decoding apparatus may determine the intra prediction mode for the current chroma block based on the index information for the intra chroma prediction mode and the determined chroma prediction mode candidates (S1020).
  • the decoding apparatus may generate prediction samples for the current chroma block based on the intra prediction mode for the current chroma block (S1030).
  • the decoding apparatus may generate reconstructed samples based on prediction samples for the current chroma block (S1040).
  • the decoding apparatus receives index information about an intra chroma prediction mode (S1000), and at least one luma block in a luma region corresponding to the current chroma block.
  • S1000 intra chroma prediction mode
  • chroma prediction mode candidates based on intra prediction modes of and intra prediction modes of neighboring chroma blocks of the current chroma block (S1010), index information for the intra chroma prediction mode and the current chroma based on the determined chroma prediction mode candidates
  • An intra prediction mode for the block may be determined (S1020), prediction samples for the current chroma block may be generated based on the intra prediction mode for the current chroma block (S1030), and based on the prediction samples for the current chroma block.
  • Restore samples may be generated (S1040).
  • various methods of selecting a chroma intra prediction mode candidate may be provided to increase the intra-picture encoding and decoding efficiency of the chroma image.
  • 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 a variety of well known means.
  • the processor may include an application-specific integrated circuit (ASIC), 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.

Landscapes

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

Abstract

본 발명에 따른 디코딩 장치에 의하여 수행되는 픽처 디코딩 방법은, 인트라 크로마 예측 모드에 대한 인덱스 정보를 수신하는 단계, 현재 크로마 블록에 대응되는 루마 영역 내 적어도 하나의 루마 블록의 인트라 예측 모드들 및 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들을 기반으로 크로마 예측 모드 후보들을 결정하는 단계, 상기 인트라 크로마 예측 모드에 대한 인덱스 정보 및 상기 결정된 크로마 예측 모드 후보들을 기반으로 상기 현재 크로마 블록에 대한 인트라 예측 모드를 결정하는 단계, 상기 현재 크로마 블록에 대한 인트라 예측 모드를 기반으로 상기 현재 크로마 블록에 대한 예측 샘플들을 생성하는 단계 및 상기 현재 크로마 블록에 대한 상기 예측 샘플들을 기반으로 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 한다.

Description

인트라 예측에 기반한 영상 코딩 방법 및 그 장치
본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 인트라 예측에 기반한 영상 코딩 방법 및 그 장치에 관한 것이다.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.
본 발명의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.
본 발명의 다른 기술적 과제는 인트라 예측의 효율을 높이는 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 크로마 예측 모드 후보들을 기반으로 인트라 예측의 효율을 높이는 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 CCLM(Cross Component Linear Model)이 적용되지 않는 경우, 크로마 블록의 주변 샘플들, 크로마 블록과 대응되는 루마 블록 내의 샘플들 및 루마 블록의 주변 샘플들 중 적어도 하나를 기반으로 인트라 예측의 효율을 높이는 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 크로마 인트라 예측을 위한 확장된 인트라 예측 모드 후보 선택 방법을 제공함에 있다.
본 발명의 또 다른 기술적 과제는 크로마 인트라 예측을 위한 확장된 인트라 예측 모드 후보를 선택함에 있어서 선택 순서를 제공함에 있다.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 픽처 디코딩 방법이 제공된다. 상기 방법은, 인트라 크로마 예측 모드에 대한 인덱스 정보를 수신하는 단계, 현재 크로마 블록에 대응되는 루마 영역 내 적어도 하나의 루마 블록의 인트라 예측 모드들 및 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들을 기반으로 크로마 예측 모드 후보들을 결정하는 단계, 상기 인트라 크로마 예측 모드에 대한 인덱스 정보 및 상기 결정된 크로마 예측 모드 후보들을 기반으로 상기 현재 크로마 블록에 대한 인트라 예측 모드를 결정하는 단계, 상기 현재 크로마 블록에 대한 인트라 예측 모드를 기반으로 상기 현재 크로마 블록에 대한 예측 샘플들을 생성하는 단계 및 상기 현재 크로마 블록에 대한 상기 예측 샘플들을 기반으로 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 한다.
본 발명의 다른 일 실시예에 따르면, 픽처 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는, 인트라 크로마 예측 모드에 대한 인덱스 정보를 수신하는 엔트로피 디코딩부, 현재 크로마 블록에 대응되는 루마 영역 내 적어도 하나의 루마 블록의 인트라 예측 모드들 및 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들을 기반으로 크로마 예측 모드 후보들을 결정하고, 상기 인트라 크로마 예측 모드에 대한 인덱스 정보 및 상기 결정된 크로마 예측 모드 후보들을 기반으로 상기 현재 크로마 블록에 대한 인트라 예측 모드를 결정하고, 상기 현재 크로마 블록에 대한 인트라 예측 모드를 기반으로 상기 현재 크로마 블록에 대한 예측 샘플들을 생성하는 예측부 및 상기 현재 크로마 블록에 대한 상기 예측 샘플들을 기반으로 복원 샘플들을 생성하는 가산부를 포함하는 것을 특징으로 한다.
본 발명에 따르면 전반적인 영상/비디오 압축 효율을 높일 수 있다.
본 발명에 따르면 인트라 예측의 효율을 높일 수 있다.
본 발명에 따르면 도출된 크로마 예측 모드 후보들을 기반으로 인트라 예측을 수행하여 영상 코딩 효율을 높일 수 있다.
본 발명에 따르면 CCLM이 적용되지 않는 경우에 크로마 예측 모드 후보들을 기반으로 인트라 예측을 수행하여 영상 코딩 효율을 높일 수 있다.
본 발명에 따르면 크로마 인트라 예측 모드 후보의 선택 방법을 제공하여 크로마 영상의 화면 내 예측 정확도를 높일 수 있다.
본 발명에 따르면 크로마 인트라 예측 모드 후보의 선택 방법을 제공하여 크로마 영상의 화면 내 부호화 및 복호화 효율을 높일 수 있다.
도 1은 일 실시예에 따른 인코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 2는 일 실시예에 따른 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 3은 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
도 4는 다른 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
도 5는 또 다른 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
도 6은 일 실시예에 따른 크로마 예측 모드 후보들을 선택하는 방법을 도시하는 흐름도이다.
도 7은 또 다른 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
도 8은 또 다른 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
도 9는 다른 일 실시예에 따른 크로마 예측 모드 후보들을 선택하는 방법을 도시하는 흐름도이다.
도 10은 일 실시예에 따른 디코딩 장치의 동작 방법을 도시하는 흐름도이다.
도 11은 일 실시예에 따른 디코딩 장치의 구성을 도시하는 블록도이다.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 픽처 디코딩 방법이 제공된다. 상기 방법은, 인트라 크로마 예측 모드에 대한 인덱스 정보를 수신하는 단계, 현재 크로마 블록에 대응되는 루마 영역 내 적어도 하나의 루마 블록의 인트라 예측 모드들 및 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들을 기반으로 크로마 예측 모드 후보들을 결정하는 단계, 상기 인트라 크로마 예측 모드에 대한 인덱스 정보 및 상기 결정된 크로마 예측 모드 후보들을 기반으로 상기 현재 크로마 블록에 대한 인트라 예측 모드를 결정하는 단계, 상기 현재 크로마 블록에 대한 인트라 예측 모드를 기반으로 상기 현재 크로마 블록에 대한 예측 샘플들을 생성하는 단계 및 상기 현재 크로마 블록에 대한 상기 예측 샘플들을 기반으로 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 한다.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
이하의 설명은 비디오, 이미지 또는 영상에 대해 다루는 기술 분야에서 적용될 수 있다. 예를 들어, 이하의 설명에서 개시된 방법 또는 실시예는 VVC (Versatile Video Coding) 표준 (ITU-T Rec. H.266), VVC 이후의 차세대 비디오/이미지 코딩 표준, 또는 VVC 이전의 표준들(예를 들어, HEVC (High Efficiency Video Coding) 표준 (ITU-T Rec. H.265) 등)의 개시 내용과 관련될 수 있다.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.
본 명세서에서 비디오(video)는 시간의 흐름에 따른 일련의 영상(image)들의 집합을 의미할 수 있다. 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다. 또한, 경우에 따라서 "이미지(image)"는 정지 영상 및 시간의 흐름에 따른 일련의 정지 영상들의 집합인 비디오(video)를 포함하는 개념을 의미할 수 있다. 또한, "비디오(video)"도 반드시 시간의 흐름에 따른 일련의 정지 영상들의 집합만을 의미하는 것은 아니고, 일부 실시예에서는 정지 영상이 비디오에 포함되는 개념으로 해석될 수 있다.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다.
유닛(unit)은 영상 처리의 기본 단위를 나타낸다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다.
도 1은 본 발명이 적용될 수 있는 인코딩 장치(video encoding apparatus)의 구성을 개략적으로 설명하는 도면이다. 이하 인코딩/디코딩 장치는 비디오 인코딩/디코딩 장치 및/또는 영상 인코딩/디코딩 장치를 포함할 수 있고, 비디오 인코딩/디코딩 장치가 영상 인코딩/디코딩 장치를 포함하는 개념으로 사용되거나, 영상 인코딩/디코딩 장치가 비디오 인코딩/디코딩 장치를 포함하는 개념으로 사용될 수도 있다.
도 1을 참조하면, (비디오) 인코딩 장치(100)는 픽처 분할부(picture partitioning module, 105), 예측부(prediction module, 110), 레지듀얼 처리부(residual processing module, 120), 엔트로피 인코딩부(entropy encoding module, 130), 가산부(adder, 140), 필터부(filtering module, 150) 및 메모리(memory, 160)을 포함할 수 있다. 레지듀얼 처리부(120)는 감산부(substractor, 121), 변환부(transform module, 122), 양자화부(quantization module, 123), 재정렬부(rearrangement module, 124), 역양자화부(dequantization module, 125) 및 역변환부(inverse transform module, 126)를 포함할 수 있다.
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다.
일 예로, 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리(ternary) 트리 구조를 기반으로 하위(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) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다.
역양자화부(125)는 양자화부(123)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(126)는 역양자화부(125)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.
가산부(140)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(140)는 별도의 구성으로 설명하였으나, 가산부(140)는 예측부(110)의 일부일 수 있다. 한편, 가산부(140)는 복원부(reconstruction module) 또는 복원 블록 생성부로 불릴 수도 있다.
복원된 픽처(reconstructed picture)에 대하여 필터부(150)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(150)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.
메모리(160)는 복원 픽처(디코딩된 픽처) 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(150)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.
도 2는 본 발명이 적용될 수 있는 비디오/영상 디코딩 장치(video decoding apparatus)의 구성을 개략적으로 설명하는 도면이다. 이하 비디오 디코딩 장치라 함은 영상 디코딩 장치를 포함할 수 있다.
도 2를 참조하면, (비디오) 디코딩 장치(200)는 엔트로피 디코딩부(entropy decoding module, 210), 레지듀얼 처리부(residual processing module, 220), 예측부(prediction module, 230), 가산부(adder, 240), 필터부(filtering module, 250) 및 메모리(memory, 260)을 포함할 수 있다. 여기서 레지듀얼 처리부(220)는 재정렬부(rearrangement module, 221), 역양자화부(dequantization module, 222), 역변환부(inverse transform module, 223)을 포함할 수 있다. 또한, 비록 도시되지는 않았으나, 비디오 디코딩 장치(200)는 비디오 정보를 포함하는 비트스트림을 수신하는 수신부를 포함할 수 있다. 상기 수신부는 별도의 모듈로 구성될 수도 있고 또는 엔트로피 디코딩부(210)에 포함될 수 있다.
비디오/영상 정보를 포함하는 비트스트림이 입력되면, (비디오) 디코딩 장치는(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)는 복원부(reconstruction module) 또는 복원 블록 생성부로 불릴 수도 있다.
필터부(250)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.
메모리(260)는 복원 픽처(디코딩된 픽처) 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(250)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(260)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(260)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다.
한편, 상술한 바와 같이 비디오 코딩을 수행함에 있어 압축 효율을 높이기 위하여 예측을 수행한다. 이를 통하여 코딩 대상 블록인 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록을 생성할 수 있다. 여기서 상기 예측된 블록은 공간 도메인(또는 픽셀 도메인)에서의 예측 샘플들을 포함한다. 상기 예측된 블록은 인코딩 장치 및 디코딩 장치에서 동일하게 도출되며, 상기 인코딩 장치는 원본 블록의 원본 샘플 값 자체가 아닌 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼에 대한 정보(레지듀얼 정보)를 디코딩 장치로 시그널링함으로써 영상 코딩 효율을 높일 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 레지듀얼 샘플들을 포함하는 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록과 상기 예측된 블록을 합하여 복원 샘플들을 포함하는 복원 블록을 생성할 수 있고, 복원 블록들을 포함하는 복원 픽처를 생성할 수 있다.
상기 레지듀얼 정보는 변환 및 양자화 절차를 통하여 생성될 수 있다. 예를 들어, 인코딩 장치는 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록에 포함된 레지듀얼 샘플들(레지듀얼 샘플 어레이)에 변환 절차를 수행하여 변환 계수들을 도출하고, 상기 변환 계수들에 양자화 절차를 수행하여 양자화된 변환 계수들을 도출하여 관련된 레지듀얼 정보를 (비트스트림을 통하여) 디코딩 장치로 시그널링할 수 있다. 여기서 상기 레지듀얼 정보는 상기 양자화된 변환 계수들의 값 정보, 위치 정보, 변환 기법, 변환 커널, 양자화 파라미터 등의 정보를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 역양자화/역변환 절차를 수행하고 레지듀얼 샘플들(또는 레지듀얼 블록)을 도출할 수 있다. 디코딩 장치는 예측된 블록과 상기 레지듀얼 블록을 기반으로 복원 픽처를 생성할 수 있다. 인코딩 장치는 또한 이후 픽처의 인터 예측을 위한 참조를 위하여 양자화된 변환 계수들을 역양자화/역변환하여 레지듀얼 블록을 도출하고, 이를 기반으로 복원 픽처를 생성할 수 있다.
도 3은 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
본 명세서에서 "크로마(chroma) 블록", "크로마 영상" 등은 색차 블록, 색차 영상 등과 동일한 의미를 나타낼 수 있으므로, 크로마와 색차는 혼용되어 사용될 수 있다. 마찬가지로, "루마(luma) 블록", "루마 영상" 등은 휘도 블록, 휘도 영상 등과 동일한 의미를 나타낼 수 있으므로, 루마와 휘도는 혼용되어 사용될 수 있다.
일 실시예에서, JVET(Joint Video Exploration Team)에서 사용되는 JEM(Joint Explolation TEST Model)에서 색차 영상의 화면 내 부호화를 수행할 시, CCLM(Cross Component Linear Model) 모드와 non-CCLM 모드로 분류되어 예측을 수행할 수 있다. 도 3은 non-CCLM 모드에서 예측 모드 후보를 선택하는 일 예시를 설명하기 위해 이용될 수 있다.
본 명세서에서 "루마 영역"은 인트라 예측을 수행하기 위한 현재 크로마 블록에 대응되는 영역을 의미할 수 있다. 루마 영역은 적어도 하나의 루마 블록을 포함할 수 있다.
도 3에서 루마 영역은 좌측에 도시된 사각형에서 정중앙을 기준으로 우측 영역이다. 도 3에서 좌상단(top-left) 샘플 위치는 TL, 우상단(top-right) 샘플 위치는 TR, 센터 우하단 샘플 위치는 CR, 좌하단 샘플 위치는 BL, 좌우단 샘플 위치는 BR로 표현되고 있다.
도 3에서 현재 크로마 블록은 우측에 도시된 사각형에서 정중앙을 기준으로 우측 영역이다. 도 3에서 현재 크로마 블록의 좌하측 코너 주변 크로마 블록은 BL, 좌하측 주변 크로마 블록은 L, 우상측 코너 주변 크로마 블록은 AR, 우상측 주변 크로마 블록은 A, 좌상측 코너 주변 크로마 블록은 AL로 표현되고 있다.
non-CCLM 모드에는 DC, 플래너(PLANAR) 및 방향성 모드가 포함되며, 다음의 순서를 통해 선착순으로 중복되는 모드를 제외한 5개의 예측 모드를 선택한다.
첫 번째로, DM 모드(Direct Mode)에서 동일 위치 휘도 블록의 CR, TL, TR, BL, BR 위치 순서대로 각 위치에 해당하는 화면 내 예측 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
두 번째로, 현 색차 블록 주변 블록인 L, A, BL, AR, AL 블록 순서대로 해당 화면 내 예측 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
세 번째로, 플래너, DC 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
네 번째로, 앞서 선택된 angular 모드의 -1 또는 +1 angular 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
다섯 번째로, 수직(vertical), 수평(horizontal), 2, 34, 66, 10, 26번 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
선택된 non-CCLM 모드들은 이진화를 수행하여 부호화가 진행될 수 있고, 부호기에서 부호화를 통해 선택된 모드는 컨텍스트 모델링(context modeling)을 통해 복호기로 전송될 수 있다.
일 실시예에 따른 인트라 예측 모드는 아래의 표 1과 같이 분류될 수 있다.
인트라 예측 모드 (Intra prediction mode) 관련 명칭 (Associated name)
0 인트라 플래너 (INTRA_PLANAR)
1 인트라 DC (INTRA_DC)
2, ..., 66 인트라 방향성 2, ... , 인트라 방향성 66 (INTRA_ANGULAR2, ... , INTRA_ANGULAR 66)
표 1에서, 수평 모드는 인트라 방향성 18, 즉 18번 인트라 예측 모드를 나타낼 수 있고, 수직 모드는 인트라 방향성 50, 즉 50번 인트라 예측 모드를 나타낼 수 있다.
도 4는 다른 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
도 4에서 현재 크로마 블록의 상측 중앙 주변 크로마 블록은 AC, 현재 크로마 블록의 좌측 중앙 주변 크로마 블록은 CL, 현재 크로마 블록의 좌상측 상측변 주변 크로마 블록은 A1, 현재 크로마 블록의 좌상측 좌측변 주변 크로마 블록은 L1을 각각 나타낼 수 있다.
본 명세서에서는 색차 영상의 화면 내 예측 시, 색차 영상 블록 주변의 화면 내 예측 모드를 보다 다양하게 고려하여 색차 화면 내 예측 후보 모드를 선택하는 방법을 제안하고 있다.
즉, 도 4에서 보여지는 바와 같이, 현재 색차 블록의 주변 블록 화면 내 예측 모드를 선택 시, 보다 다양한 위치의 주변 색차 블록을 고려함으로써, 보다 정확한 색차 영상 화면 내 예측 모드를 후보로 선택할 수 있다. 이와 같은 주변 색차 블록 위치 선택 확장은 기존 quad tree와 같은 블록 구조는 물론, binary tree 및 triple tree 와 같은 다양항 블록 구조를 고려하여 주변 색차 블록을 효율적으로 선택할 수 있게 한다.
본 실시예에서 제안하는 방법을 이용한 색차 영상의 화면 내 예측 모드 후보 선택은 다음의 순서를 통해 선착순으로 중복되는 모드를 제외한 5개의 예측 모드를 선택한다.
첫 번째로, DM(direct mode) 모드에서 동일 위치 휘도 블록의 CR, TL, TR, BL, BR 위치 순서대로 각 위치에 해당하는 화면 내 예측 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
두 번째로, 현 색차 블록 주변 블록인 L, A, L1, A1 블록 순서대로 해당 화면 내 예측 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
세 번째로, PLANAR, DC 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
네 번째로, 현 색차 블록 주변 블록인 CL, AC, BL, AR, AL 블록 순서대로 해당 화면 내 예측 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
다섯 번째로, 앞서 선택된 angular 모드에 -1 and +1 angular 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
여섯 번째로, Vertical, Horizontal, 2, 34, 66, 10, 26번 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
예측 후보 수는 위와 같이 기존의 5개를 선택할 수 있으며, 혹은 보다 많은 수를 선택하여 화면 내 예측의 정확도를 높일 수 있다. 또한, 현 색차 블록의 주변 블록의 화면 내 예측 모드가 CCLM 모드일 경우 모드 후보에서 제외한다. 또한, 앞서 제안한 화면 내 예측 모드 선택 순서를 변경하여 보다 효율적으로 예측 모드 이진화를 수행할 수 있다.
도 5는 또 다른 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
도 4의 예시와는 달리, 도 5와 같이 휘도 및 채도 블록의 구조가 동일한 경우, 다음의 순서를 통해 선착순으로 중복되는 모드를 제외한 5개의 예측 모드를 선택할 수 있다.
첫 번째로, DM(direct mode) 모드에서 동일 위치 휘도 블록의 화면 내 예측 모드(DM)를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
두 번째로, 현 색차 블록 주변 블록인 L, A, L1, A1 블록 순서대로 해당 화면 내 예측 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
세 번째로, PLANAR, DC 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
네 번째로, 현 색차 블록 주변 블록인 CL, AC, BL, AR, AL 블록 순서대로 해당 화면 내 예측 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
다섯 번째로, 앞서 선택된 angular 모드에 -1 and +1 angular 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
여섯 번째로, Vertical, Horizontal, 2, 34, 66, 10, 26번 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
예측 후보 수는 위와 같이 기존의 5개를 선택할 수 있으나, 기존에 비해 보다 많은 후보 모드를 고려하기 때문에 7개 이상의 예측 후보를 선택할 수도 있다. 혹은 현재 색차 블록 사이즈에 적응적으로 예측 후보 수를 선택할 수 있다. 한 예로, 색차 블록의 가로와 세로의 곱이 256 이하일 경우에는 실시예 1과 같이 색차 블록 화면 내 예측 후보를 고려하며 예측 후보수는 5개를 선택할 수 있으며, 256을 초과할 경우에는 본 실시예와 같이 휘도 블록 주변의 화면 내 예측 후보를 고려함과 동시에 화면 내 예측 후보 수를 7개로 증가시킬 수 있다. 즉, 예측 모드에 따라 잔차 신호량의 변동이 많은 큰 색차 블록에 보다 많은 예측 후보수를 할당함으로써 예측 정확도를 높이는 효과를 볼 수 있으며, 작은 색차 블록에는 기존과 같은 예측 모드수를 유지함으로써 모드수 증가에 따른 모드 전송 비트 수 증가 부담을 방지할 수 있다. 아래의 예시는 색차 블록 크기에 따른 화면 내 예측 모드수를 적응적으로 조절하는 방법을 보다 자세히 보여준다.
일 예시에서, 색차 블록의 가로와 세로의 곱이 5 이상 256 이하일 경우 (예: chroma 16x16 block, 8x32 block) 5개의 화면 내 예측 모드수를 사용하며 257 이상일 경우 7개의 화면 내 예측 모드수를 사용할 수 있다.
다른 일 예시에서, 색차 블록의 가로와 세로의 곱이 4 이하일 경우 (예: chroma 2x2 block) 3개의 화면 내 예측 후보를 고려하며, 색차 블록의 가로와 세로의 곱이 5 이상 256 이하일 경우 (예: chroma 16x16 block, 8x32 block) 5개의 화면 내 예측 모드수를 사용하며 257 이상일 경우 7개의 화면 내 예측 모드수를 사용할 수 있다.
앞서 제안한 방법에 의해 색차 영상의 화면 내 예측 모드가 기존 (5개)에 비해 변화가 있을 경우, 그에 적합한 이진화를 통해 화면 내 예측 모드 이진화를 진행한다. 이를 위해 unary code, truncated unary code, 혹은 fixed length code를 사용하여 화면 내 예측 모드 이진화를 수행할 수 있다. 아래의 예시는 색차 영상의 화면 내 예측 모드 수에 따른 이진화 방법을 보여준다.
일 예시에서, 색차 블록의 화면 내 예측 모드 수가 3개일 경우, 1번째 예측 모드 (DM)는 0, 나머지 두개의 예측 모드는 10, 11로 이진화를 수행할 수 있다.
다른 일 예시에서, 색차 블록의 화면 내 예측 모드 수가 5개일 경우, 1번째 예측 모드 (DM)는 0, 나머지 두개의 예측 모드는 2bit fixed length code를 통해 이진화를 수행 (100, 101, 110, 111). 혹은, truncated unary code를 통해 0, 10, 110, 1110, 1111 과 같이 이진화를 수행할 수 있다.
또 다른 일 예시에서, 색차 블록의 화면 내 예측 모드 수가 7개인 경우, 1번째, 2번째, 3번째 예측 모드는 unary code를 통해 0, 10, 110,과 같이 이진화를 수행. 나머지 4개의 예측 모드는 fixed length code를 통해 11100, 11101, 11110, 11111 과 같이 이진화를 수행할 수 있다.
본 특허에서 제안하는 화면 내 예측 후보 모드를 선택함으로써 기존 quad tree와 같은 블록 구조는 물론, binary tree 및 triple tree 와 같은 다양항 블록 구조에 적응적으로 색차 화면 내 예측 후보를 선택할 수 있다. 즉, 그림 3의 L1, A1의 위치의 화면 내 예측 모드를 참조함으로써 현재 블록의 위 혹은 왼쪽의 블록이 binary tree로 부호화 되었을 경우에 대응하여 현재 블록의 화면 내 예측 모드 후보를 고려할 수 있으며, AC, CL 위치의 화면 내 예측 모드를 참조함으로써 현재 블록의 위 혹은 왼쪽의 블록이 triple tree로 부호화 되었을 경우에 대응하여 현재 블록의 화면 내 예측 모드 후보를 고려할 수 있다. 특히 HEVC의 경우와 같이 휘도 블록 및 색차 블록의 블록 구조가 같을 경우 (즉, DM 모드를 통해 선택되는 화면 내 예측 모드 수가 1개일 경우) 보다 효과적인 색차 화면 내 예측을 가능하게 한다.
본 명세서에서 제안하는 방법을 통해 예측된 색차 블록은 부호기에서 원 영상과의 차분을 통해 잔차 영상을 얻는 데에 사용되거나, 복호기에서 잔차 신호와의 합을 통해 복원된 영상을 얻는 데에 사용될 수 있다.
도 6은 일 실시예에 따른 크로마 예측 모드 후보들을 선택하는 방법을 도시하는 흐름도이다.
일 실시예에 따른 디코딩 장치(200)는 동일 위치 휘도 블록의 화면 내 예측 모드를 선택할 수 있다(DM 또는 CR, TL, TR, BL, BR)(S600).
일 실시예에 따른 디코딩 장치(200)는 현재 색차 영상 블록 주변 화면 내 예측 모드를 선택할 수 있다(L, A, L1, A1)(S610).
일 실시예에 따른 디코딩 장치(200)는 PLANAR, DC 예측 모드를 선택할 수 있다(S620).
일 실시예에 따른 디코딩 장치(200)는 현재 색차 영상 블록 주변의 화면 내 예측 모드를 선택할 수 있다(CL, AC, BL, AR, AL)(S630).
일 실시예에 따른 디코딩 장치(200)는 default mode(또는 디폴트 예측 모드)를 선택할 수 있다(S640).
도 7은 또 다른 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
도 7은 루마 영역의 주변 샘플 위치들에 관해 도시하고 있다. 루마 영역의 좌상단 코너 주변 샘플 위치는 L-AL, 루마 영역의 우상단 코너 주변 샘플 위치는 L-AR, 루마 영역의 좌하단 코너 주변 샘플 위치는 L-BL, 루마 영역의 우상단 주변 샘플 위치는 L-A, 루마 영역의 좌하단 주변 샘플 위치는 L-L로 표현될 수 있다.
즉, 도 7에서 보여지는 바와 같이, 기존 색차 영상의 화면 내 예측 모드 후보 선택 시, 휘도 블록 주변(L-L, L-A, L-BL, L-AR, L-AL) 블록의 화면 내 예측 모드 후보를 추가로 선택하는 방법을 제안한다. 이를 위해 다음의 순서를 통해 선착순으로 중복되는 모드를 제외한 5개의 예측 모드를 선택할 수 있다.
첫 번째로, 동일 위치 휘도 블록의 CR, TL, TR, BL, BR 위치의 화면 내 예측 모드를 선택할 수 있다.
두 번째로, 현 색차 블록 주변 블록인 L, A, BL, AR, AL 블록의 화면 내 예측 모드를 선택할 수 있다.
세 번째로, PLANAR, DC 모드를 선택할 수 있다.
네 번째로, 동일 위치 휘도 블록의 L-L, L-A, L-BL, L-AR, L-AL 위치의 화면 내 예측 모드를 선택할 수 있다.
다섯 번째로, 앞서 선택된 angular 모드에 -1 or +1 angular 모드를 선택할 수 있다.
여섯 번째로, Vertical, Horizontal, 2, 34, 66, 10, 26번 모드를 선택할 수 있다.
예측 후보 수는 위와 같이 기존의 5개를 선택할 수 있으며, 혹은 보다 많은 수를 선택하여 화면 내 예측의 정확도를 높일 수 있다. 또한, 현 색차 블록의 주변 블록의 화면 내 예측 모드가 CCLM 모드일 경우 모드 후보에서 제외한다. 또한, 앞서 제안한 화면 내 예측 모드 선택 순서를 변경하여 보다 효율적으로 예측 모드 이진화를 수행할 수 있다.
도 8은 또 다른 일 실시예에 따른 현재 크로마 블록의 인트라 예측 모드를 도출하는 과정을 설명하기 위한 도면이다.
도 8은 루마 영역의 주변 샘플 위치들에 관해 도시하고 있다. 루마 영역의 상측 중앙 주변 샘플 위치는 L-AC, 루마 영역의 좌상단 상측 주변 샘플 위치는 L-A1, 루마 영역의 좌상단 좌측 주변 샘플 위치는 L-L1, 루마 영역의 좌측 중앙 주변 샘플 위치는 L-CL로 표현될 수 있다.
도 8의 예시와 같이 휘도 및 채도 블록의 구조가 동일한 경우, 다음의 순서를 통해 선착순으로 중복되는 모드를 제외한 5개의 예측 모드를 선택할 수 있다.
첫 번째로, DM(direct mode) 모드에서 동일 위치 휘도 블록의 화면 내 예측 모드(DM)를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
두 번째로, 현 색차 블록 주변 블록인 L, A, L1, A1 블록 순서대로 해당 화면 내 예측 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
세 번째로, PLANAR, DC 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
네 번째로, 현 색차 블록 주변 블록인 CL, AC, BL, AR, AL 블록 순서대로 해당 화면 내 예측 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
다섯 번째로, 동일 위치 휘도 블록의 L-L, L-A, L-L1, L-A1, L-CL, L-AC, L-BL, L-AR, L-AL 위치의 화면 내 예측 모드를 선택할 수 있다.
여섯 번째로, 앞서 선택된 angular 모드에 -1 and +1 angular 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
일곱 번째로, Vertical, Horizontal, 2, 34, 66, 10, 26번 모드를 색차 영상의 화면 내 예측 모드로 선택할 수 있다.
예측 후보 수는 위와 같이 기존의 5개를 선택할 수 있으나, 기존에 비해 보다 많은 후보 모드를 고려하기 때문에 7개 이상의 예측 후보를 선택할 수도 있다. 혹은 현재 색차 블록 사이즈에 적응적으로 예측 후보 수를 선택할 수 있다. 한 예로, 색차 블록의 가로와 세로의 곱이 256 이하일 경우에는 실시예 1과 같이 색차 블록 화면 내 예측 후보를 고려하며 예측 후보수는 5개를 선택할 수 있으며, 256을 초과할 경우에는 본 실시예와 같이 휘도 블록 주변의 화면 내 예측 후보를 고려함과 동시에 화면 내 예측 후보 수를 7개로 증가시킬 수 있다. 즉, 예측 모드에 따라 잔차 신호량의 변동이 많은 큰 색차 블록에 보다 많은 예측 후보수를 할당함으로써 예측 정확도를 높이는 효과를 볼 수 있으며, 작은 색차 블록에는 기존과 같은 예측 모드수를 유지함으로써 모드수 증가에 따른 모드 전송 비트 수 증가 부담을 방지할 수 있다. 아래의 예시는 색차 블록 크기에 따른 화면 내 예측 모드수를 적응적으로 조절하는 방법을 보다 자세히 보여준다.
일 예에서, 색차 블록의 가로와 세로의 곱이 5 이상 256 이하일 경우 (예: chroma 16x16 block, 8x32 block) 5개의 화면 내 예측 모드수를 사용하며 257 이상일 경우 7개의 화면 내 예측 모드수를 사용할 수 있다.
다른 일 예에서, 색차 블록의 가로와 세로의 곱이 4 이하일 경우 (예: chroma 2x2 block) 3개의 화면 내 예측 후보를 고려하며, 색차 블록의 가로와 세로의 곱이 5 이상 256 이하일 경우 (예: chroma 16x16 block, 8x32 block) 5개의 화면 내 예측 모드수를 사용하며 257 이상일 경우 7개의 화면 내 예측 모드수를 사용할 수 있다.
앞서 제안한 방법에 의해 색차 영상의 화면 내 예측 모드가 기존 (5개)에 비해 변화가 있을 경우, 그에 적합한 이진화를 통해 화면 내 예측 모드 이진화를 진행한다. 이를 위해 unary code, truncated unary code, 혹은 fixed length code를 사용하여 화면 내 예측 모드 이진화를 수행할 수 있다.
일 실시예에서, 디코딩 장치(200)는 인트라 크로마 예측 모드에 대한 인덱스 정보를 수신할 수 있고, 인트라 크로마 예측 모드에 대한 인덱스 정보 및 크로마 예측 모드 후보들을 기반으로 현재 크로마 블록에 대한 인트라 예측 모드를 결정할 수 있다. 보다 구체적으로, 인트라 크로마 예측 모드에 대한 인덱스 정보는 크로마 예측 모드 후보들 중 하나를 선택하는데 이용될 수 있다. 인트라 크로마 예측 모드에 대한 인덱스 정보는 이진화 코드를 기반으로 지시될 수 있다.
아래의 예시는 색차 영상의 화면 내 예측 모드 수에 따른 이진화 방법을 보여준다.
일 예에서, 색차 블록의 화면 내 예측 모드 수가 3개일 경우, 1번째 예측 모드 (DM)는 0, 나머지 두개의 예측 모드는 10, 11로 이진화를 수행할 수 있다.
다른 일 예에서, 색차 블록의 화면 내 예측 모드 수가 5개일 경우, 1번째 예측 모드 (DM)는 0, 나머지 두개의 예측 모드는 2bit fixed length code를 통해 이진화를 수행 (100, 101, 110, 111). 혹은, truncated unary code를 통해 0, 10, 110, 1110, 1111 과 같이 이진화를 수행
또 다른 일 예에서, 색차 블록의 화면 내 예측 모드 수가 7개인 경우, 1번째, 2번째, 3번째 예측 모드는 unary code를 통해 0, 10, 110,과 같이 이진화를 수행. 나머지 4개의 예측 모드는 fixed length code를 통해 11100, 11101, 11110, 11111 과 같이 이진화를 수행할 수 있다.
본 명세서에서 제안하는 화면 내 예측 후보 모드를 선택함으로써 기존 quad tree와 같은 블록 구조는 물론, binary tree 및 triple tree 와 같은 다양항 블록 구조에 적응적으로 색차 화면 내 예측 후보를 선택할 수 있다. 즉, 그림 6의 L1, A1, L-L1, L-A1의 위치의 화면 내 예측 모드를 참조함으로써 현재 블록의 위 혹은 왼쪽의 블록이 binary tree로 부호화 되었을 경우에 대응하여 현재 블록의 화면 내 예측 모드 후보를 고려할 수 있으며, AC, CL, L-AC, L-CL 위치의 화면 내 예측 모드를 참조함으로써 현재 블록의 위 혹은 왼쪽의 블록이 triple tree로 부호화 되었을 경우에 대응하여 현재 블록의 화면 내 예측 모드 후보를 고려할 수 있다.
일 실시예에서, 특히 HEVC의 경우와 같이 휘도 블록 및 색차 블록의 블록 구조가 같을 경우 (즉, DM 모드를 통해 선택되는 화면 내 예측 모드 수가 1개일 경우) 보다 효과적인 색차 화면 내 예측을 가능하게 할 수 있다.
본 명세서에서 제안하는 방법을 통해 예측된 색차 블록은 부호기에서 원 영상과의 차분을 통해 잔차 영상을 얻는 데에 사용되거나, 복호기에서 잔차 신호와의 합을 통해 복원된 영상을 얻는 데에 사용될 수 있다.
도 9는 다른 일 실시예에 따른 크로마 예측 모드 후보들을 선택하는 방법을 도시하는 흐름도이다.
일 실시예에 따른 디코딩 장치(200)는 동일 위치 휘도 블록의 화면 내 예측 모드를 선택할 수 있다(S900).
일 실시예에 따른 디코딩 장치(200)는 현재 색차 영상 블록 주변 화면 내 예측 모드를 선택할 수 있다(S910).
일 실시예에 따른 디코딩 장치(200)는 동일 위치 휘도 블록 주변의 화면 내 예측 모드를 선택할 수 있다(S920).
일 실시예에 따른 디코딩 장치(200)는 default mode(또는 디폴트 예측 모드)를 선택할 수 있다(S930).
도 10은 일 실시예에 따른 디코딩 장치의 동작 방법을 도시하는 흐름도이고, 도 11은 일 실시예에 따른 디코딩 장치의 구성을 도시하는 블록도이다.
도 10에 개시된 각 단계는 도 2 에 개시된 디코딩 장치(200)에 의하여 수행될 수 있다. 보다 구체적으로, S1000은 도 2에 개시된 엔트로피 디코딩부(210)에 의하여 수행될 수 있고, S1010 내지 S1030은 도 2에 개시된 예측부(230)에 의하여 수행될 수 있고, S1040은 도 2에 개시된 가산부(240)에 의하여 수행될 수 있다. 더불어 S1000 내지 S1040에 따른 동작들은, 도 3 내지 도 9에서 전술된 내용들 중 일부를 기반으로 한 것이다. 따라서, 도 2 내지 도 9에서 전술된 내용과 중복되는 구체적인 내용은 설명을 생략하거나 간단히 하기로 한다.
도 11에 도시된 바와 같이, 일 실시예에 따른 디코딩 장치는 엔트로피 디코딩부(210), 예측부(230) 및 가산부(240)를 포함할 수 있다. 그러나, 경우에 따라서는 도 11에 도시된 구성 요소 모두가 디코딩 장치의 필수 구성 요소가 아닐 수 있고, 디코딩 장치는 도 11에 도시된 구성 요소보다 많거나 적은 구성 요소에 의해 구현될 수 있다.
일 실시예에 따른 디코딩 장치에서 엔트로피 디코딩부(210), 예측부(230) 및 가산부(240)는 각각 별도의 칩(chip)으로 구현되거나, 적어도 둘 이상의 구성 요소가 하나의 칩을 통해 구현될 수도 있다.
일 실시예에 따른 디코딩 장치는 인트라 크로마 예측 모드에 대한 인덱스 정보를 수신할 수 있다(S1000).
일 실시예에 따른 디코딩 장치는 현재 크로마 블록에 대응되는 루마 영역 내 적어도 하나의 루마 블록의 인트라 예측 모드들 및 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들을 기반으로 크로마 예측 모드 후보들을 결정할 수 있다(S1010).
일 실시예에 따른 디코딩 장치는 루마 영역 내 적어도 하나의 루마 블록은 상기 루마 영역의 좌상단(top-left) 샘플 위치를 커버하는 제1 루마 블록, 상기 루마 영역의 우상단 샘플 위치를 커버하는 제2 루마 블록, 상기 루마 영역의 센터 우하단 샘플 위치를 커버하는 제3 루마 블록, 상기 루마 영역의 좌하단 샘플 위치를 커버하는 제4 루마 블록 및 상기 루마 영역의 우하단 샘플 위치를 커버하는 제5 루마 블록을 포함할 수 있다.
일 실시예에 따른 디코딩 장치는 상기 루마 영역 내 루마 블록들의 인트라 예측 모드들, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들을 결정할 수 있다.
일 실시예에서, 적어도 하나의 디폴트 예측 모드는 DC 모드 및 플래너 모드를 포함할 수 있다.
일 실시예에서, 크로마 예측 모드 후보들의 총 개수는 5개이고, 상기 복수의 크로마 예측 모드 후보들은 서로 상이하며, 상기 복수의 크로마 예측 모드 후보들의 개수가 5개가 되는 때에 상기 결정이 완료될 수 있다.
일 실시예에서, 도 3을 참조하면, 루마 영역 내 적어도 하나의 루마 블록은 상기 루마 영역의 좌상단(top-left) 샘플 위치를 커버하는 제1 루마 블록, 상기 루마 영역의 우상단 샘플 위치를 커버하는 제2 루마 블록, 상기 루마 영역의 센터 우하단 샘플 위치를 커버하는 제3 루마 블록, 상기 루마 영역의 좌하단 샘플 위치를 커버하는 제4 루마 블록 및 상기 루마 영역의 우하단 샘플 위치를 커버하는 제5 루마 블록을 포함할 수 있다. 디코딩 장치는 상기 루마 영역 내 루마 블록들의 인트라 예측 모드들, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들을 결정할 수 있다. 주변 크로마 블록들은, 상기 현재 크로마 블록의 좌하측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 코너 주변 크로마 블록을 포함할 수 있다. 또한 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 제3 루마 블록, 상기 제1 루마 블록, 상기 제2 루마 블록, 상기 제4 루마 블록, 상기 제5 루마 블록, 상기 좌하측 코너 주변 크로마 블록, 상기 우상측 주변 크로마 블록, 상기 좌하측 주변 크로마 블록, 상기 우상측 코너 주변 크로마 블록, 상기 좌상측 코너 주변 크로마 블록, 상기 플래너 모드 및 상기 DC 모드 순으로 고려될 수 있다.
다른 일 실시예에서, 도 4를 참조하면, 루마 영역 내 적어도 하나의 루마 블록은 상기 루마 영역의 좌상단(top-left) 샘플 위치를 커버하는 제1 루마 블록, 상기 루마 영역의 우상단 샘플 위치를 커버하는 제2 루마 블록, 상기 루마 영역의 센터 우하단 샘플 위치를 커버하는 제3 루마 블록, 상기 루마 영역의 좌하단 샘플 위치를 커버하는 제4 루마 블록 및 상기 루마 영역의 우하단 샘플 위치를 커버하는 제5 루마 블록을 포함할 수 있다. 디코딩 장치는 상기 루마 영역 내 루마 블록들의 인트라 예측 모드들, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들을 결정할 수 있다. 주변 크로마 블록들은, 상기 현재 크로마 블록의 좌상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 좌측변 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 상측변 주변 크로마 블록, 상기 현재 크로마 블록의 상측 중앙 주변 크로마 블록 및 상기 현재 크로마 블록의 좌측 중앙 주변 크로마 블록을 포함할 수 있다. 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 제3 루마 블록, 상기 제1 루마 블록, 상기 제2 루마 블록, 상기 제4 루마 블록, 상기 제5 루마 블록, 상기 좌하측 주변 크로마 블록, 상기 우상측 주변 크로마 블록, 상기좌상측 좌측변 주변 크로마 블록, 상기 좌상측 상측변, 상기 플래너 모드, 상기 DC 모드, 상기 좌측 중앙 주변 크로마 블록, 상기 상측 중앙 주변 크로마 블록, 상기 좌하측 코너 주변 크로마 블록, 상기 우상측 코너 주변 크로마 블록 및 상기 좌상단 코너 주변 크로마 블록 순으로 고려될 수 있다.
또 다른 일 실시예에서, 도 5를 참조하면, 상기 루마 영역 내 상기 적어도 하나의 루마 블록은 하나의 루마 블록이고, 상기 루마 영역 내 상기 하나의 루마 블록의 인트라 예측 모드, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들이 결정될 수 있다. 상기 적어도 하나의 디폴트 예측 모드는 DC 모드 및 플래너(planar) 모드를 포함하고, 상기 주변 크로마 블록들은, 상기 현재 크로마 블록의 좌상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 코너 주변 블록, 상기 현재 크로마 블록의 우상측 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 코너 주변 블록, 상기 현재 크로마 블록의 좌하측 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 상측변 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 좌측변 주변 크로마 블록, 상기 현재 크로마 블록의 상측 중앙 주변 크로마 블록 및 상기 현재 크로마 블록의 좌측 중앙 주변 크로마 블록을 포함하는 것을 특징으로 할 수 있다. 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 루마 영역 내 상기 하나의 루마 블록, 상기 좌하단 주변 크로마 블록, 상기 우상단 주변 크로마 블록, 상기 좌상단 좌측변 주변 크로마 블록, 상기 좌상단 상측변 주변 크로마 블록, 상기 플래너 모드, 상기 DC 모드, 상기 좌측 중앙 주변 크로마 블록, 상기 상측 중앙 주변 크로마 블록, 상기 좌하측 코너 주변 크로마 블록, 상기 우상단 코너 주변 크로마 블록 및 상기 좌상단 코너 주변 블록 순으로 고려될 수 있다.
또 다른 일 실시예에서, 도 7을 참조하면, 루마 영역 내 적어도 하나의 루마 블록은 상기 루마 영역의 좌상단(top-left) 샘플 위치를 커버하는 제1 루마 블록, 상기 루마 영역의 우상단 샘플 위치를 커버하는 제2 루마 블록, 상기 루마 영역의 센터 우하단 샘플 위치를 커버하는 제3 루마 블록, 상기 루마 영역의 좌하단 샘플 위치를 커버하는 제4 루마 블록 및 상기 루마 영역의 우하단 샘플 위치를 커버하는 제5 루마 블록을 포함할 수 있다. 상기 루마 영역 내 상기 하나의 루마 블록의 인트라 예측 모드, 상기 루마 영역의 주변 루마 블록들의 인트라 예측 모드들, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들을 결정할 수 있다. 상기 주변 크로마 블록들은, 상기 현재 크로마 블록의 좌하측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 코너 주변 크로마 블록을 포함할 수 있다. 상기 루마 영역의 주변 루마 블록들은, 상기 루마 영역의 좌상단 코너 주변 샘플 위치를 커버하는 제6 루마 블록, 상기 루마 영역의 우상단 코너 주변 샘플 위치를 커버하는 제7 루마 블록, 상기 루마 영역의 좌하단 코너 주변 샘플 위치를 커버하는 제8 루마 블록, 상기 루마 영역의 우상단 주변 샘플 위치를 커버하는 제9 루마 블록 및 상기 루마 영역의 좌하단 주변 샘플 위치를 커버하는 제10 루마 블록을 포함할 수 있다. 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 제3 루마 블록, 상기 제1 루마 블록, 상기 제2 루마 블록, 상기 제4 루마 블록, 상기 제5 루마 블록, 상기 좌하측 주변 크로마 블록, 상기 우상단 주변 크로마 블록, 상기 좌하측 코너 주변 크로마 블록, 상기 우상측 코너 주변 크로마 블록, 상기 좌상측 코너 주변 크로마 블록, 상기 플래너 모드, 상기 DC 모드, 상기 제10 루마 블록, 상기 제9 루마 블록, 상기 제8 루마 블록, 상기 제7 루마 블록 및 상기 제6 루마 블록 순으로 고려될 수 있다.
또 다른 일 실시예에서, 도 8을 참조하면, 상기 루마 영역 내 상기 적어도 하나의 루마 블록은 하나의 루마 블록이고, 상기 루마 영역 내 상기 하나의 루마 블록의 인트라 예측 모드, 상기 루마 영역의 주변 루마 블록들의 인트라 예측 모드들, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들이 결정될 수 있다. 상기 적어도 하나의 디폴트 예측 모드는 DC 모드 및 플래너(planar) 모드를 포함하고, 상기 주변 크로마 블록들은, 상기 현재 크로마 블록의 좌상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 코너 주변 블록, 상기 현재 크로마 블록의 우상측 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 코너 주변 블록, 상기 현재 크로마 블록의 좌하측 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 상측변 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 좌측변 주변 크로마 블록, 상기 현재 크로마 블록의 상측 중앙 주변 크로마 블록 및 상기 현재 크로마 블록의 좌측 중앙 주변 크로마 블록을 포함하는 것을 특징으로 할 수 있다. 상기 루마 영역의 주변 루마 블록들은, 상기 루마 영역의 좌상단 코너 주변 샘플 위치를 커버하는 제2 루마 블록, 상기 루마 영역의 우상단 코너 주변 샘플 위치를 커버하는 제3 루마 블록, 상기 루마 영역의 좌하단 코너 주변 샘플 위치를 커버하는 제4 루마 블록, 상기 루마 영역의 우상단 주변 샘플 위치를 커버하는 제5 루마 블록, 상기 루마 영역의 좌하단 주변 샘플 위치를 커버하는 제6 루마 블록, 상기 루마 영역의 좌상단 상측변 주변 샘플 위치를 커버하는 제7 루마 블록, 상기 루마 영역의 좌상단 좌측변 주변 샘플 위치를 커버하는 제8 루마 블록, 상기 루마 영역의 상측 중앙 주변 샘플 위치를 커버하는 제9 루마 블록 및 상기 루마 영역의 좌측 중앙 주변 샘플 위치를 커버하는 제10 루마 블록을 포함할 수 있다. 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 루마 영역 내 상기 하나의 루마 블록, 상기 좌하단 주변 크로마 블록, 상기 좌상단 좌측변 주변 크로마 블록, 상기 좌상단 상측변 주변 크로마 블록, 상기 플래너 모드, 상기 DC 모드, 상기 좌측 중앙 주변 크로마 블록, 상기 상측 주변 크로마 블록, 상기 좌하단 코너 주변 크로마 블록, 상기 우상단 코너 주변 크로마 블록, 상기 좌상단 코너 주변 크로마 블록, 상기 제6 루마 블록, 상기 제5 루마 블록, 상기 제8 루마 블록, 상기 제7 루마 블록, 상기 제10 루마 블록, 상기 제9 루마 블록, 상기 제4 루마 블록, 상기 제3 루마 블록 및 상기 제2 루마 블록 순으로 고려될 수 있다.
일 실시예에서, 상기 크로마 예측 모드 후보들의 총 개수는 상기 현재 크로마 블록의 사이즈를 기반으로 결정될 수 있다.
일 실시예에서, 크로마 예측 모드 후보들의 총 개수는 5개이고, 상기 복수의 크로마 예측 모드 후보들은 서로 상이하며, 상기 복수의 크로마 예측 모드 후보들의 개수가 5개가 되는 때에 상기 결정이 완료될 수 있다.
일 실시예에 따른 디코딩 장치는 인트라 크로마 예측 모드에 대한 인덱스 정보 및 결정된 크로마 예측 모드 후보들을 기반으로 현재 크로마 블록에 대한 인트라 예측 모드를 결정할 수 있다(S1020).
일 실시예에 따른 디코딩 장치는 현재 크로마 블록에 대한 인트라 예측 모드를 기반으로 현재 크로마 블록에 대한 예측 샘플들을 생성할 수 있다(S1030).
일 실시예에 따른 디코딩 장치는 현재 크로마 블록에 대한 예측 샘플들을 기반으로 복원 샘플들을 생성할 수 있다(S1040).
도 10 및 도 11에 개시된 디코딩 장치 및 디코딩 장치의 동작 방법에 따르면, 디코딩 장치는 인트라 크로마 예측 모드에 대한 인덱스 정보를 수신하고(S1000), 현재 크로마 블록에 대응되는 루마 영역 내 적어도 하나의 루마 블록의 인트라 예측 모드들 및 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들을 기반으로 크로마 예측 모드 후보들을 결정하고(S1010), 인트라 크로마 예측 모드에 대한 인덱스 정보 및 결정된 크로마 예측 모드 후보들을 기반으로 현재 크로마 블록에 대한 인트라 예측 모드를 결정할 수 있고(S1020), 현재 크로마 블록에 대한 인트라 예측 모드를 기반으로 현재 크로마 블록에 대한 예측 샘플들을 생성할 수 있고(S1030), 현재 크로마 블록에 대한 예측 샘플들을 기반으로 복원 샘플들을 생성할 수 있다(S1040). 즉 크로마 인트라 예측 모드 후보를 선택하는 다양한 방법을 제공하여 크로마 영상의 화면 내 부호화 및 복호화 효율을 높일 수 있다.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(appICation-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다.

Claims (15)

  1. 디코딩 장치에 의하여 수행되는 픽처 디코딩 방법에 있어서,
    인트라 크로마 예측 모드에 대한 인덱스 정보를 수신하는 단계;
    현재 크로마 블록에 대응되는 루마 영역 내 적어도 하나의 루마 블록의 인트라 예측 모드들 및 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들을 기반으로 크로마 예측 모드 후보들을 결정하는 단계;
    상기 인트라 크로마 예측 모드에 대한 인덱스 정보 및 상기 결정된 크로마 예측 모드 후보들을 기반으로 상기 현재 크로마 블록에 대한 인트라 예측 모드를 결정하는 단계;
    상기 현재 크로마 블록에 대한 인트라 예측 모드를 기반으로 상기 현재 크로마 블록에 대한 예측 샘플들을 생성하는 단계; 및
    상기 현재 크로마 블록에 대한 상기 예측 샘플들을 기반으로 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 하는 픽처 디코딩 방법.
  2. 제1항에 있어서,
    상기 루마 영역 내 적어도 하나의 루마 블록은 상기 루마 영역의 좌상단(top-left) 샘플 위치를 커버하는 제1 루마 블록, 상기 루마 영역의 우상단 샘플 위치를 커버하는 제2 루마 블록, 상기 루마 영역의 센터 우하단 샘플 위치를 커버하는 제3 루마 블록, 상기 루마 영역의 좌하단 샘플 위치를 커버하는 제4 루마 블록 및 상기 루마 영역의 우하단 샘플 위치를 커버하는 제5 루마 블록을 포함하고,
    상기 크로마 예측 모드 후보들을 결정하는 단계는, 상기 루마 영역 내 루마 블록들의 인트라 예측 모드들, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들을 결정하는 단계를 포함하고,
    상기 적어도 하나의 디폴트 예측 모드는 DC 모드 및 플래너(planar) 모드를 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  3. 제2항에 있어서,
    상기 주변 크로마 블록들은, 상기 현재 크로마 블록의 좌하측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 코너 주변 크로마 블록을 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  4. 제3항에 있어서,
    상기 크로마 예측 모드 후보들을 결정하는 단계는, 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 제3 루마 블록, 상기 제1 루마 블록, 상기 제2 루마 블록, 상기 제4 루마 블록, 상기 제5 루마 블록, 상기 좌하측 코너 주변 크로마 블록, 상기 우상측 주변 크로마 블록, 상기 좌하측 주변 크로마 블록, 상기 우상측 코너 주변 크로마 블록, 상기 좌상측 코너 주변 크로마 블록, 상기 플래너 모드 및 상기 DC 모드 순으로 고려하는 단계를 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  5. 제2항에 있어서,
    상기 주변 크로마 블록들은, 상기 현재 크로마 블록의 좌상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 좌측변 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 상측변 주변 크로마 블록, 상기 현재 크로마 블록의 상측 중앙 주변 크로마 블록 및 상기 현재 크로마 블록의 좌측 중앙 주변 크로마 블록을 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  6. 제5항에 있어서,
    상기 크로마 예측 모드 후보들을 결정하는 단계는, 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 제3 루마 블록, 상기 제1 루마 블록, 상기 제2 루마 블록, 상기 제4 루마 블록, 상기 제5 루마 블록, 상기 좌하측 주변 크로마 블록, 상기 우상측 주변 크로마 블록, 상기 좌상측 좌측변 주변 크로마 블록, 상기 좌상측 상측변, 상기 플래너 모드, 상기 DC 모드, 상기 좌측 중앙 주변 크로마 블록, 상기 상측 중앙 주변 크로마 블록, 상기 좌하측 코너 주변 크로마 블록, 상기 우상측 코너 주변 크로마 블록 및 상기 좌상단 코너 주변 크로마 블록 순으로 고려하는 단계를 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  7. 제1항에 있어서,
    상기 루마 영역 내 상기 적어도 하나의 루마 블록은 하나의 루마 블록이고,
    상기 크로마 예측 모드 후보들을 결정하는 단계는, 상기 루마 영역 내 상기 하나의 루마 블록의 인트라 예측 모드, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들을 결정하는 단계를 포함하고,
    상기 적어도 하나의 디폴트 예측 모드는 DC 모드 및 플래너(planar) 모드를 포함하고,
    상기 크로마 예측 모드 후보들의 총 개수는 5개이고, 상기 크로마 예측 모드 후보들은 서로 상이하며, 상기 크로마 예측 모드 후보들의 개수가 5개가 되는 때에 상기 결정이 완료되는 것을 특징으로 하는, 픽처 디코딩 방법.
  8. 제7항에 있어서,
    상기 주변 크로마 블록들은, 상기 현재 크로마 블록의 좌상측 코너 주변 크로마 블록, 상기 현재 크로마 블록의 우상측 코너 주변 블록, 상기 현재 크로마 블록의 우상측 주변 크로마 블록, 상기 현재 크로마 블록의 좌하측 코너 주변 블록, 상기 현재 크로마 블록의 좌하측 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 상측변 주변 크로마 블록, 상기 현재 크로마 블록의 좌상측 좌측변 주변 크로마 블록, 상기 현재 크로마 블록의 상측 중앙 주변 크로마 블록 및 상기 현재 크로마 블록의 좌측 중앙 주변 크로마 블록을 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  9. 제8항에 있어서,
    상기 크로마 예측 모드 후보들을 결정하는 단계는, 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 루마 영역 내 상기 하나의 루마 블록, 상기 좌하단 주변 크로마 블록, 상기 우상단 주변 크로마 블록, 상기 좌상단 좌측변 주변 크로마 블록, 상기 좌상단 상측변 주변 크로마 블록, 상기 플래너 모드, 상기 DC 모드, 상기 좌측 중앙 주변 크로마 블록, 상기 상측 중앙 주변 크로마 블록, 상기 좌하측 코너 주변 크로마 블록, 상기 우상단 코너 주변 크로마 블록 및 상기 좌상단 코너 주변 블록 순으로 고려하는 단계를 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  10. 제3항에 있어서,
    상기 크로마 예측 모드 후보들을 결정하는 단계는, 상기 루마 영역 내 상기 하나의 루마 블록의 인트라 예측 모드, 상기 루마 영역의 주변 루마 블록들의 인트라 예측 모드들, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들을 결정하는 단계를 포함하고,
    상기 루마 영역의 주변 루마 블록들은, 상기 루마 영역의 좌상단 코너 주변 샘플 위치를 커버하는 제6 루마 블록, 상기 루마 영역의 우상단 코너 주변 샘플 위치를 커버하는 제7 루마 블록, 상기 루마 영역의 좌하단 코너 주변 샘플 위치를 커버하는 제8 루마 블록, 상기 루마 영역의 우상단 주변 샘플 위치를 커버하는 제9 루마 블록 및 상기 루마 영역의 좌하단 주변 샘플 위치를 커버하는 제10 루마 블록을 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  11. 제10항에 있어서,
    상기 크로마 예측 모드 후보들을 결정하는 단계는, 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 제3 루마 블록, 상기 제1 루마 블록, 상기 제2 루마 블록, 상기 제4 루마 블록, 상기 제5 루마 블록, 상기 좌하측 주변 크로마 블록, 상기 우상단 주변 크로마 블록, 상기 좌하측 코너 주변 크로마 블록, 상기 우상측 코너 주변 크로마 블록, 상기 좌상측 코너 주변 크로마 블록, 상기 플래너 모드, 상기 DC 모드, 상기 제10 루마 블록, 상기 제9 루마 블록, 상기 제8 루마 블록, 상기 제7 루마 블록 및 상기 제6 루마 블록 순으로 고려하는 단계를 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  12. 제8항에 있어서,
    상기 크로마 예측 모드 후보들을 결정하는 단계는, 상기 루마 영역 내 상기 하나의 루마 블록의 인트라 예측 모드, 상기 루마 영역의 주변 루마 블록들의 인트라 예측 모드들, 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들 및 적어도 하나의 디폴트 예측 모드를 기반으로 상기 크로마 예측 모드 후보들을 결정하는 단계를 포함하고,
    상기 루마 영역의 주변 루마 블록들은, 상기 루마 영역의 좌상단 코너 주변 샘플 위치를 커버하는 제2 루마 블록, 상기 루마 영역의 우상단 코너 주변 샘플 위치를 커버하는 제3 루마 블록, 상기 루마 영역의 좌하단 코너 주변 샘플 위치를 커버하는 제4 루마 블록, 상기 루마 영역의 우상단 주변 샘플 위치를 커버하는 제5 루마 블록, 상기 루마 영역의 좌하단 주변 샘플 위치를 커버하는 제6 루마 블록, 상기 루마 영역의 좌상단 상측변 주변 샘플 위치를 커버하는 제7 루마 블록, 상기 루마 영역의 좌상단 좌측변 주변 샘플 위치를 커버하는 제8 루마 블록, 상기 루마 영역의 상측 중앙 주변 샘플 위치를 커버하는 제9 루마 블록 및 상기 루마 영역의 좌측 중앙 주변 샘플 위치를 커버하는 제10 루마 블록을 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  13. 제12항에 있어서,
    상기 크로마 예측 모드 후보들을 결정하는 단계는, 상기 크로마 예측 모드 후보들을 결정하기 위해 상기 루마 영역 내 상기 하나의 루마 블록, 상기 좌하단 주변 크로마 블록, 상기 좌상단 좌측변 주변 크로마 블록, 상기 좌상단 상측변 주변 크로마 블록, 상기 플래너 모드, 상기 DC 모드, 상기 좌측 중앙 주변 크로마 블록, 상기 상측 주변 크로마 블록, 상기 좌하단 코너 주변 크로마 블록, 상기 우상단 코너 주변 크로마 블록, 상기 좌상단 코너 주변 크로마 블록, 상기 제6 루마 블록, 상기 제5 루마 블록, 상기 제8 루마 블록, 상기 제7 루마 블록, 상기 제10 루마 블록, 상기 제9 루마 블록, 상기 제4 루마 블록, 상기 제3 루마 블록 및 상기 제2 루마 블록 순으로 고려하는 단계를 포함하는 것을 특징으로 하는, 픽처 디코딩 방법.
  14. 제1항에 있어서,
    상기 크로마 예측 모드 후보들의 총 개수는 상기 현재 크로마 블록의 사이즈를 기반으로 결정되는 것을 특징으로 하는, 픽처 디코딩 방법.
  15. 픽처 디코딩을 수행하는 디코딩 장치에 있어서,
    인트라 크로마 예측 모드에 대한 인덱스 정보를 수신하는 엔트로피 디코딩부;
    현재 크로마 블록에 대응되는 루마 영역 내 적어도 하나의 루마 블록의 인트라 예측 모드들 및 상기 현재 크로마 블록의 주변 크로마 블록들의 인트라 예측 모드들을 기반으로 크로마 예측 모드 후보들을 결정하고, 상기 인트라 크로마 예측 모드에 대한 인덱스 정보 및 상기 결정된 크로마 예측 모드 후보들을 기반으로 상기 현재 크로마 블록에 대한 인트라 예측 모드를 결정하고, 상기 현재 크로마 블록에 대한 인트라 예측 모드를 기반으로 상기 현재 크로마 블록에 대한 예측 샘플들을 생성하는 예측부; 및
    상기 현재 크로마 블록에 대한 상기 예측 샘플들을 기반으로 복원 샘플들을 생성하는 가산부를 포함하는 것을 특징으로 하는 픽처 디코딩 장치.
PCT/KR2019/004169 2018-04-19 2019-04-08 인트라 예측에 기반한 영상 코딩 방법 및 그 장치 WO2019203487A1 (ko)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201862660213P 2018-04-19 2018-04-19
US62/660,213 2018-04-19
KR10-2018-0074141 2018-06-27
KR20180074141 2018-06-27

Publications (1)

Publication Number Publication Date
WO2019203487A1 true WO2019203487A1 (ko) 2019-10-24

Family

ID=68240456

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/004169 WO2019203487A1 (ko) 2018-04-19 2019-04-08 인트라 예측에 기반한 영상 코딩 방법 및 그 장치

Country Status (1)

Country Link
WO (1) WO2019203487A1 (ko)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114731417A (zh) * 2019-11-22 2022-07-08 高通股份有限公司 交叉分量自适应环路滤波器

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120043661A (ko) * 2010-10-26 2012-05-04 (주)휴맥스 적응적 화면내 예측 부호화 및 복호화 방법
KR20130050900A (ko) * 2011-11-08 2013-05-16 한국전자통신연구원 인트라 예측 방법 및 그 장치
KR20140089488A (ko) * 2013-01-04 2014-07-15 삼성전자주식회사 비디오의 부호화 방법 및 장치, 그 복호화 방법 및 장치
KR20180033302A (ko) * 2011-03-06 2018-04-02 엘지전자 주식회사 휘도 샘플을 이용한 색차 블록의 화면 내 예측 방법 및 이러한 방법을 사용하는 장치
KR20180037575A (ko) * 2016-10-04 2018-04-12 한국전자통신연구원 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120043661A (ko) * 2010-10-26 2012-05-04 (주)휴맥스 적응적 화면내 예측 부호화 및 복호화 방법
KR20180033302A (ko) * 2011-03-06 2018-04-02 엘지전자 주식회사 휘도 샘플을 이용한 색차 블록의 화면 내 예측 방법 및 이러한 방법을 사용하는 장치
KR20130050900A (ko) * 2011-11-08 2013-05-16 한국전자통신연구원 인트라 예측 방법 및 그 장치
KR20140089488A (ko) * 2013-01-04 2014-07-15 삼성전자주식회사 비디오의 부호화 방법 및 장치, 그 복호화 방법 및 장치
KR20180037575A (ko) * 2016-10-04 2018-04-12 한국전자통신연구원 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114731417A (zh) * 2019-11-22 2022-07-08 高通股份有限公司 交叉分量自适应环路滤波器
CN114731417B (zh) * 2019-11-22 2023-07-14 高通股份有限公司 交叉分量自适应环路滤波器

Similar Documents

Publication Publication Date Title
WO2017043786A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2019194440A1 (ko) 인트라 예측 모드에 대한 룩업 테이블을 이용한 영상 코딩 방법 및 그 장치
WO2017014412A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2018044088A1 (ko) 비디오 신호 처리 방법 및 장치
WO2017188565A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2018062702A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017057877A1 (ko) 영상 코딩 시스템에서 영상 필터링 방법 및 장치
WO2016200043A1 (ko) 비디오 코딩 시스템에서 가상 참조 픽처 기반 인터 예측 방법 및 장치
WO2017061671A1 (ko) 영상 코딩 시스템에서 적응적 변환에 기반한 영상 코딩 방법 및 장치
WO2020091213A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2018056702A1 (ko) 비디오 신호 처리 방법 및 장치
WO2016114583A1 (ko) 비디오 신호 처리 방법 및 장치
WO2016204374A1 (ko) 영상 코딩 시스템에서 영상 필터링 방법 및 장치
WO2017048008A1 (ko) 영상 코딩 시스템에서 인터 예측 방법 및 장치
WO2018021585A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017159901A1 (ko) 비디오 코딩 시스템에서 블록 구조 도출 방법 및 장치
WO2019194507A1 (ko) 어파인 움직임 예측에 기반한 영상 코딩 방법 및 그 장치
WO2018174357A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2018128222A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2019194500A1 (ko) 인트라 예측에 기반한 영상 코딩 방법 및 그 장치
WO2016056754A1 (ko) 3d 비디오 부호화/복호화 방법 및 장치
WO2017052272A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2020013480A1 (ko) 인트라 예측 모드를 코딩하는 방법 및 그 장치
WO2020141932A1 (ko) Cpr 기반 mmvd를 이용하는 인터 예측 방법 및 장치
WO2021118265A1 (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: 19789161

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

Country of ref document: EP

Kind code of ref document: A1