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

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

Info

Publication number
WO2017188565A1
WO2017188565A1 PCT/KR2017/001350 KR2017001350W WO2017188565A1 WO 2017188565 A1 WO2017188565 A1 WO 2017188565A1 KR 2017001350 W KR2017001350 W KR 2017001350W WO 2017188565 A1 WO2017188565 A1 WO 2017188565A1
Authority
WO
WIPO (PCT)
Prior art keywords
intra prediction
sample
tus
current
peripheral
Prior art date
Application number
PCT/KR2017/001350
Other languages
English (en)
French (fr)
Inventor
허진
이범식
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020187030945A priority Critical patent/KR20180129863A/ko
Priority to US16/096,194 priority patent/US10841574B2/en
Publication of WO2017188565A1 publication Critical patent/WO2017188565A1/ko

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/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/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/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • 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/182Methods 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 pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding

Definitions

  • the present invention relates to an image coding technique, and more particularly, to an image decoding method and apparatus in an image coding system.
  • the demand for high resolution and high quality images such as high definition (HD) images and ultra high definition (UHD) images is increasing in various fields.
  • the higher the resolution and the higher quality of the image data the more information or bit rate is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost are increased.
  • a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
  • An object of the present invention is to provide a method and apparatus for improving image coding efficiency.
  • Another object of the present invention is to provide an intra prediction method and apparatus which are performed based on first and second neighboring samples of a current block.
  • Another technical problem of the present invention is to provide a method and apparatus for determining a reconstruction order of a plurality of TUs in a region of a current PU based on an intra prediction mode for the current PU.
  • Another technical problem of the present invention is to provide a method and apparatus for deriving non-square TUs from the current CU.
  • an image decoding method performed by a decoding apparatus.
  • the method includes deriving an intra prediction mode for a current prediction unit (PU) based on the received bitstream, and a plurality of transform units (TUs) located in an area of the current PU based on the intra prediction mode.
  • PU current prediction unit
  • TUs transform units
  • Performing a reconstruction for the first block includes: first peripheral samples including left periphery samples, left upper periphery samples, and top periphery samples of a current block that is one of the plurality of TUs Deriving, based on the first peripheral samples, deriving second peripheral samples including right peripheral samples, right lower peripheral samples and lower peripheral samples of the current block, the first peripheral samples and the first peripheral samples;
  • the first reference sample positioned in the prediction direction of the intra prediction mode, and the second reference sample positioned in the opposite direction of the prediction direction, from two neighboring samples may be stored.
  • deriving a prediction sample of the current block, and restoring the target block based on the prediction sample may be stored.
  • a decoding apparatus for performing image decoding.
  • the decoding apparatus may further include an entropy decoding unit configured to receive information about an intra prediction mode for a current PU through a bitstream, and an intra prediction mode for the current PU based on the received bitstream.
  • a prediction unit configured to reconstruct a plurality of TUs located in an area of the current PU based on an intra prediction mode, wherein the prediction unit includes a left neighboring sample of a current block that is one of the plurality of TUs Deriving first peripheral samples including the upper left peripheral sample and the upper peripheral samples, and including the right peripheral samples, the lower right peripheral sample, and the lower peripheral samples of the current block based on the first peripheral samples.
  • the predicted sample of the current block is derived based on a first reference sample and a second reference sample positioned in an opposite direction to the prediction direction, and the target block is reconstructed based on the prediction sample.
  • a video encoding method performed by an encoding apparatus may include deriving an intra prediction mode for a current prediction unit (PU), performing reconstruction of a plurality of transform units (TUs) located in an area of the current PU based on the intra prediction mode, And encoding and outputting information on an intra prediction mode for the current PU and residual information for the current block, wherein performing the reconstruction comprises: a current one of the plurality of TUs; Deriving first peripheral samples including left peripheral samples, upper left peripheral samples, and upper peripheral samples of the block, right peripheral samples of the current block, lower right peripheral samples, and lower side based on the first peripheral samples; Deriving second peripheral samples comprising peripheral samples, wherein the intra prediction mode of the first peripheral samples and the second peripheral samples is determined.
  • PU current prediction unit
  • TUs transform units
  • a video encoding apparatus may be configured to derive an intra prediction mode for a current prediction unit (PU), and to perform reconstruction of a plurality of TUs located in an area of the current PU based on the intra prediction mode. And an entropy encoding unit for encoding and outputting information on the intra prediction mode for the current PU and residual information for the current block, wherein the prediction unit is a current block that is one of the plurality of TUs.
  • PU current prediction unit
  • first peripheral samples comprising a left periphery sample, an upper left periphery sample, and an upper periphery sample, and based on the first periphery samples, right periphery samples, right bottom periphery sample and bottom periphery sample of the current block
  • Derive second periphery samples that include a second periphery sample; Deriving a prediction sample of the current block based on a first reference sample located laterally and a second reference sample located opposite the prediction direction, and reconstructing the target block based on the prediction sample It features.
  • intra prediction may be performed based on first and second neighboring samples of the current block, thereby improving prediction accuracy of intra prediction for the current block.
  • the present invention it is possible to change the reconstruction order of a plurality of TUs located in the region of the current PU based on the intra prediction mode for the current PU, thereby improving the prediction accuracy of the intra prediction for the current block. have.
  • FIG. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
  • FIG. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
  • 3 illustrates an example of a prediction direction of an intra prediction mode.
  • FIG. 4 shows an example of performing intra prediction according to the present invention on a plurality of TUs in a raster scan order.
  • FIG. 5 illustrates an example of dividing directional intra prediction modes into a plurality of categories by way of example.
  • FIG. 6 shows an example of a changed reconstruction order of a plurality of TUs determined according to which of the plurality of categories the intra prediction mode belongs to.
  • FIG. 7 illustrates an example of intra prediction according to the present invention of a plurality of TUs performed in a reconstruction order changed according to a category to which an intra prediction mode belongs.
  • FIG 8 illustrates first peripheral samples and second peripheral samples for intra prediction according to the present invention.
  • FIG. 9 illustrates an example of a reference sample generated to perform intra prediction according to the present invention on a square TU.
  • FIG. 10 illustrates an example of a plurality of non-square TUs derived in consideration of an intra prediction mode from a current CU.
  • FIG. 11 illustrates an example of intra prediction according to the present invention for a horizontally long non-square TU.
  • FIG. 12 illustrates another example of intra prediction according to the present invention for a horizontally long non-square TU.
  • FIG. 13 schematically illustrates a video encoding method by an encoding device according to the present invention.
  • FIG. 14 schematically illustrates a video decoding method by a decoding apparatus according to the present invention.
  • each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented by separate hardware or separate software.
  • two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations.
  • Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.
  • a picture generally refers to a unit representing one image of a specific time zone
  • a slice is a unit constituting a part of a picture in coding.
  • One picture may be composed of a plurality of slices, and if necessary, the picture and the slice may be mixed with each other.
  • a pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel.
  • a sample may generally represent a pixel or a value of a pixel, and may only represent pixel / pixel values of the luma component, or only pixel / pixel values of the chroma component.
  • a unit represents the basic unit of image processing.
  • the unit may include at least one of a specific region of the picture and information related to the region.
  • the unit may be used interchangeably with terms such as block or area in some cases.
  • an M ⁇ N block may represent a set of samples or transform coefficients composed of M columns and N rows.
  • FIG. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
  • the video encoding apparatus 100 may include a picture divider 105, a predictor 110, a subtractor 115, a transformer 120, a quantizer 125, a reordering unit 130, An entropy encoding unit 135, an inverse quantization unit 140, an inverse transform unit 145, an adder 150, a filter unit 155, and a memory 160 are included.
  • the picture divider 105 may divide the input picture into at least one processing unit.
  • the processing unit may be a coding unit block (CU), a prediction unit (PU), or a transform unit (TU).
  • a coding unit is a unit block of coding and may be split from a largest coding unit (LCU) into coding units of a deeper depth along a 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.
  • 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 block partitioning from the coding unit block and may be a unit block 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 block, and may be a unit block for deriving a transform coefficient and / or a unit block for deriving a residual signal from the transform coefficient.
  • a coding unit may be called a coding block (CB)
  • a prediction unit is a prediction block (PB)
  • a transform unit may be called a transform block (TB).
  • a prediction block or prediction unit may mean a specific area in the form of a block within a picture, and may include an array of prediction samples.
  • a transform block or a transform unit may mean a specific area in a block form within a picture, and may include an array of transform coefficients or residual samples.
  • the prediction unit 110 may perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a prediction block including prediction samples of the current block.
  • the unit of prediction performed by the prediction unit 110 may be a coding block, a transform block, or a prediction block.
  • the prediction unit 110 may determine whether intra prediction or inter prediction is applied to the current block. As an example, the prediction unit 110 may determine whether intra prediction or inter prediction is applied on a CU basis.
  • the prediction unit 110 may derive a prediction sample for the current block based on reference samples outside the current block in the picture to which the current block belongs (hereinafter, referred to as the current picture). In this case, the prediction unit 110 may (i) derive the prediction sample based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighbor reference of the current block.
  • the prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample among the samples. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode.
  • the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes.
  • the non-directional mode may include a DC prediction mode and a planner mode (Planar mode).
  • the prediction unit 110 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the prediction unit 110 may derive the prediction sample for the current block based on the sample specified by the motion vector on the reference picture.
  • the prediction unit 110 may apply one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode to derive a prediction sample for the current block.
  • the prediction unit 110 may use the motion information of the neighboring block as the motion information of the current block.
  • the skip mode unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted.
  • the MVP mode the motion vector of the current block can 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 115 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 120 generates a transform coefficient by transforming the residual sample in units of transform blocks.
  • the transform unit 120 may perform the transformation 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 uses a discrete sine transform (DST). In other cases, the residual sample may be transformed by using a discrete cosine transform (DCT).
  • DST discrete sine transform
  • DCT discrete cosine transform
  • the quantization unit 125 may quantize the transform coefficients to generate quantized transform coefficients.
  • the reordering unit 130 rearranges the quantized transform coefficients.
  • the reordering unit 130 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 130 has been described in a separate configuration, the reordering unit 130 may be part of the quantization unit 125.
  • the entropy encoding unit 135 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 135 may encode information necessary for video reconstruction other than the quantized transform coefficients (for example, a value of a syntax element) together or separately. Entropy encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
  • NAL network abstraction layer
  • the inverse quantization unit 140 inverse quantizes the quantized values (quantized transform coefficients) in the quantization unit 125, and the inverse transform unit 145 inversely transforms the inverse quantized values in the inverse quantization unit 135 to obtain a residual sample.
  • the adder 150 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 150 has been described in a separate configuration, the adder 150 may be part of the predictor 110.
  • the filter unit 155 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 155 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 information necessary for reconstruction picture or encoding / decoding.
  • the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 155.
  • the stored reconstructed picture may be used as a reference picture for (inter) prediction of another picture.
  • the memory 160 may store (reference) pictures used for inter prediction.
  • pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
  • FIG. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
  • the video decoding apparatus 200 includes an entropy decoding unit 210, a reordering unit 220, an inverse quantization unit 230, an inverse transform unit 240, a predictor 250, and an adder 260. , A filter unit 270, and a memory 280.
  • the video decoding apparatus 200 may reconstruct the video in response to a process in which the video information is processed in the video encoding apparatus.
  • the video decoding apparatus 200 may perform video decoding using a processing unit applied in the video encoding apparatus.
  • the processing unit block of video decoding may be a coding unit block, a prediction unit block, or a transform unit block.
  • the coding unit block may be divided along the quad tree structure from the largest coding unit block as a unit block of decoding.
  • the prediction unit block is a block partitioned from the coding unit block and may be a unit block of sample prediction. In this case, the prediction unit block may be divided into sub blocks.
  • the transform unit block may be divided along the quad tree structure from the coding unit block, and may be a unit block for deriving a transform coefficient or a unit block for deriving a residual signal from the transform coefficient.
  • the entropy decoding unit 210 may parse the bitstream and output information necessary for video reconstruction or picture reconstruction. For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements necessary for video reconstruction, and residual coefficients. Can be output.
  • a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements necessary for video reconstruction, and residual coefficients. Can be output.
  • the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step.
  • the context model may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have.
  • the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
  • the information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the prediction unit 230, and the residual value on which the entropy decoding has been performed by the entropy decoding unit 210, that is, the quantized transform coefficient, is used as a reordering unit ( 220).
  • the reordering unit 220 may rearrange the quantized transform coefficients in the form of a two-dimensional block.
  • the reordering unit 220 may perform reordering in response to coefficient scanning performed by the encoding apparatus. Although the reordering unit 220 has been described in a separate configuration, the reordering unit 220 may be a part of the quantization unit 230.
  • the inverse quantization unit 230 may output the transform coefficients by inversely quantizing the transform coefficients quantized based on the (inverse) quantization parameter.
  • information for deriving a quantization parameter may be signaled from the encoding apparatus.
  • the inverse transform unit 240 may induce residual samples by inversely transforming the transform coefficients.
  • the prediction unit 250 may perform prediction on the current block and generate a prediction block including prediction samples for the current block.
  • the unit of prediction performed by the prediction unit 250 may be a coding block, a transform block, or a prediction block.
  • the prediction unit 250 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 250 may derive the prediction sample for the current block based on the neighbor reference samples in the current picture.
  • the prediction unit 250 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 250 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 250 may induce a prediction sample for the current block by applying any one of a skip mode, a merge mode, and an MVP mode.
  • 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 predictor 250 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 250 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 250 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 250 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 260 may reconstruct the current block or the current picture by adding the residual sample and the predictive sample.
  • the adder 260 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 260 is described in a separate configuration, the adder 260 may be part of the predictor 250.
  • the filter unit 270 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 280 may store information necessary for reconstruction picture or decoding.
  • the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 270.
  • the memory 280 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 280 may output the reconstructed picture in an output order.
  • the coding apparatus may derive the prediction sample of the current block by applying one of 33 directional intra prediction modes and 2 non-directional intra prediction modes.
  • the current block may be reconstructed based on the prediction sample.
  • Restoring a block or unit below may include generating reconstruction sample (s) within that block or unit.
  • a directional intra prediction mode is applied to the current block, a prediction sample may be generated by using a reference sample according to an intra prediction mode among neighboring samples of the current block to perform intra prediction on the current block.
  • the neighboring samples may include left, upper left, and upper neighboring samples of the current block, and the directional intra prediction described above simply generates a prediction sample by copying a reference sample located in one prediction direction. The greater the distance from the sample, the less accurate the prediction, and the greater the error.
  • the coding apparatus derives the right peripheral samples, the right lower peripheral samples, and the lower peripheral samples of the current block, and the derived peripheral samples and the existing peripheral samples (the current block of the current block).
  • Predictive samples may be generated based on the left periphery samples, the top left periphery samples, and the top periphery samples). That is, the coding apparatus may derive the peripheral sample located in the prediction direction of the intra prediction mode as the first reference sample and the peripheral sample located in the direction opposite to the prediction direction as the second reference sample, and the first reference sample and A prediction sample of the current block may be generated based on the second reference sample.
  • the prediction sample may be generated through interpolation of the first reference sample and the second reference sample.
  • the left peripheral samples, the upper left peripheral samples, and the upper peripheral samples of the current block may be referred to as first peripheral samples, and the right peripheral samples of the current block, the lower right peripheral samples.
  • the lower peripheral samples may be referred to as second peripheral samples.
  • the above-described prediction method may be referred to as linear interpolation prediction, or may be called linear interpolation intra prediction.
  • intra prediction modes may include, for example, two non-directional intra prediction modes and 33 directional intra prediction modes.
  • the intra prediction modes 0 to 1 are the anisotropic intra prediction modes.
  • the intra prediction mode 0 represents an intra planar mode, and the intra prediction mode 1 represents an intra DC mode.
  • the remaining 2 to 34 intra prediction modes are the directional intra prediction modes, each having a prediction direction as shown in FIG. 3.
  • the directional intra prediction mode may be referred to as an intra angular mode.
  • the prediction sample value of the current sample of the current block may be derived based on the intra prediction mode for the current block.
  • the intra prediction mode for the current block is one of the directional intra modes
  • the value of the neighboring sample located in the prediction direction of the intra prediction mode for the current block with respect to the current sample in the current block is derived from the predicted sample value of the current sample.
  • the fraction at the corresponding prediction direction position is based on interpolation of neighboring samples of the integer sample unit located near the prediction direction.
  • a sample value of the fractional sample unit may be derived as a predicted sample value of the current sample.
  • the first reference sample and the second reference sample must be derived, and thus, the first peripheral samples as well as the second peripheral samples need to be derived. have. That is, the coding apparatus generates right peripheral samples, right lower peripheral samples, and lower peripheral samples of the current block to perform intra prediction according to the present invention on the current block based on various peripheral samples adjacent to the current block. can do.
  • the coding apparatus may derive the peripheral sample located in the prediction direction of the intra prediction mode with respect to the first reference sample and the peripheral sample located in the opposite direction to the prediction direction with respect to the current sample as the second reference sample.
  • a prediction sample of the current block may be generated based on a first reference sample and the second reference sample.
  • the coding apparatus may derive the first reference sample and the second reference sample for the prediction sample of the current block, and interpolate the first reference sample and the second reference sample.
  • the prediction sample may be generated.
  • the coding apparatus may derive the prediction sample of the current block by using the following equation.
  • predSample is the prediction sample
  • predSample0 is the first reference sample
  • predSample1 is the second reference sample
  • d0 is a first distance between the prediction sample and the first reference sample
  • d1 is the prediction sample and the second reference.
  • the second distance between samples is shown. Meanwhile, the first distance and the second distance may be derived based on the following table.
  • d0 represents the first distance
  • d1 represents the second distance
  • intraPredAngle is an intra prediction angle of the intra prediction mode
  • refAbove [m] is one of the upper peripheral samples
  • the reference sample, refBelow [n] represents the second reference sample of one of the lower peripheral samples and of which x coordinate is n.
  • Table 1 shows a case where the upper peripheral sample having the x coordinate m is derived as the first reference sample and the lower peripheral sample having the x coordinate n as the second reference sample, this is an example of the intra directional mode.
  • a left reference sample and a right reference sample may be used.
  • the intra prediction angle according to the directional intra prediction mode may be derived based on the following table.
  • predModeIntra represents an index indicating an intra prediction mode
  • intraPredAngle represents the intra prediction angle of the intra prediction mode
  • the current block may be one of a plurality of TUs included in an area of a current PU, and in this case, the plurality of TUs may be predicted and reconstructed in a specific order.
  • the current block may be one of the plurality of TUs.
  • the reconstruction order (or transform order or decoding order) of the plurality of TUs located in the region of the current PU may be based on a raster scan order.
  • the plurality of TUs may be sequentially restored in the order of the following rows in the upper row, and in each row, the plurality of TUs may be sequentially restored in the order of the left TU to the right TU in each row.
  • the raster scan order may be called a Z scan order. As illustrated in FIG.
  • the transformation and reconstruction of the plurality of TUs may be performed according to a Z-shaped direction, and at this point, when the intra prediction is performed on a current block which is one of the plurality of TUs, the current block may be performed. Only the first peripheral samples including the upper peripheral samples, the upper left peripheral sample and the left peripheral samples of are available. That is, the TU including the right neighboring samples of the current block and the TU including the lower neighboring samples may be decoded after the decoding process of the current block in decoding order, and thus cannot be used in the decoding process of the current block. have.
  • the second peripheral samples including the right peripheral samples, the lower right peripheral sample, and the lower peripheral samples may be derived as well as the first peripheral samples.
  • the second neighboring samples may be derived using previously decoded (restored) neighboring samples of the current block.
  • the intra prediction efficiency according to the present invention may be determined according to the accuracy of the derived second peripheral samples.
  • the accuracy since the second neighboring samples are not substantially reconstructed samples of the right block, the right lower block, and the lower block, and are estimated samples for intra prediction of the current block, the accuracy may be inferior, which is an intra according to the present invention. It can affect the predictive efficiency. Therefore, as the number of pre-decoded neighboring samples used for intra prediction according to the present invention of the current block increases, intra prediction efficiency according to the present invention may be improved.
  • a neighboring sample used for generating a predictive sample is substantially different among the neighboring samples.
  • the decoded order used for intra prediction by changing the reconstruction order of the TUs is changed. Peripheral samples can be increased.
  • the coding apparatus may change the reconstruction order of the plurality of TUs located in the region of the current PU based on the intra prediction mode (or the prediction direction of the intra prediction mode), and according to the changed reconstruction order.
  • Intra prediction according to the present invention may be sequentially performed on the plurality of TUs located in the region of the current PU.
  • the intra prediction modes may be divided into a plurality of categories, and prediction, transformation, and reconstruction may be performed in a specified order according to each category.
  • the intra prediction modes 2 to 9 may be classified into category 1
  • the intra prediction modes 10 to 26 and the intra prediction modes of category 2 and 27 to 34 may be classified into category 3.
  • non-directional intra prediction modes including intra prediction modes 0 to 1 may not belong to the plurality of categories or may belong to category 2.
  • a coding apparatus When reconstructing the plurality of TUs using a fixed direction (for example, a Z-shaped direction (raster scan order)) regardless of the prediction direction of the intra prediction mode with respect to the current PU, as in the conventional prediction method, a coding apparatus May use incorrect surrounding samples as reference samples to generate incorrect prediction samples.
  • the reconstruction order (or the conversion order or decoding order) may be changed so that the available neighboring samples may increase in the decoding process of the plurality of TUs. have. That is, the coding apparatus may perform intra prediction according to the present invention on the plurality of TUs located in the region of the current PU sequentially according to the changed reconstruction order in consideration of the prediction direction of the intra prediction mode.
  • FIG. 6 illustrates an example of a changed reconstruction order of the plurality of TUs determined according to which of the plurality of categories the intra prediction mode belongs to.
  • the number of neighboring samples available in the decoding process of each TU may be increased by applying a reconstruction order changed according to a category to which the intra prediction mode belongs, and a more accurate prediction sample may be generated.
  • the coding apparatus may apply a changed reconstruction order to the plurality of TUs. Specifically, when the intra prediction mode included in the category 1 is applied, the plurality of TUs are sequentially restored in the order of the above row in the lower row, and in each row, the plurality of TUs are sequentially restored in the order of the left TU to the right TU in each row. Can be.
  • the modified restoration order (or transform order or decoding order) described above may be referred to as a horizontally inversed raster scan order.
  • the coding apparatus may apply a changed reconstruction order to the plurality of TUs. Specifically, when the intra prediction mode included in the category 3 is applied, the plurality of TUs are sequentially restored in the order of the lower row in the upper row, and in each row, the plurality of TUs are sequentially restored in the order of the left TU in the right TU. Can be.
  • the modified restoration order (or transform order or decoding order) described above may be referred to as a vertically inversed raster scan order.
  • the coding apparatus may reconstruct the plurality of TUs according to the aforementioned Z-shaped direction (raster scan order). Specifically, when the intra prediction mode included in the category 2 is applied, the plurality of TUs are sequentially restored in the order of the lower row in the upper row, and in each row, the plurality of TUs are sequentially restored in the order of the left TU and the right TU in each row. Can be.
  • the intra prediction according to the present invention Since the intra prediction according to the present invention generates a prediction sample of the current block based on all neighboring neighboring samples of the current block to be coded as described above, the accuracy of the neighboring samples may be proportional to the accuracy of the prediction sample. .
  • the intra prediction according to the present invention is performed by applying the changed reconstruction order shown according to the prediction direction of the intra prediction mode of the current block shown in FIG.
  • the decoded neighboring samples may be increased at the decoding time, and thus the coding apparatus may generate more accurate prediction samples.
  • FIG. 7 exemplarily illustrates an example of intra prediction according to the present invention of the plurality of TUs performed in a reconstruction order changed according to a category to which the intra prediction mode belongs.
  • the coding apparatus may perform intra prediction according to the present invention on the plurality of TUs with the horizontal inverse raster scan order.
  • the plurality of TUs may be sequentially restored in the order of the above row in the lower row, and in each row, the plurality of TUs may be sequentially restored in the order of the left TU to the right TU in each row. have.
  • the number of available peripheral samples that can be referred to for performing prediction according to the present invention of each TU may increase, and the coding apparatus may generate more accurate prediction samples. .
  • the coding apparatus may perform intra prediction according to the present invention on the plurality of TUs with the vertical inverse raster scan order. .
  • the plurality of TUs are sequentially restored in the order of the lower row in the upper row of the inner row, and in each row, the plurality of TUs are sequentially restored in the order of the left TU in the rightmost TU.
  • the number of available neighboring samples that can be referred to for performing intra prediction according to the present invention of each TU may increase, and the coding apparatus may generate more accurate prediction samples. have.
  • samples that are not available at the decoding time of the current block, and are not available. Samples may be specifically derived through, for example, the following method.
  • FIG 8 illustrates the first peripheral samples and the second peripheral samples for intra prediction according to the present invention.
  • right lower peripheral samples p [N] [N] as well as the first peripheral samples
  • the second peripheral samples can be derived, including the right peripheral samples p [N] [N-1] ... p [N] [0].
  • N represents the size of the current block 800. N may correspond to the width or height of the current block 800. If the current block 800 is a TU, the N may be represented as nTbS.
  • the samples that are not available can be filled with the available samples through a substitution or padding procedure.
  • the unavailable sample may be replaced or padded with another peripheral sample adjacent to the sample.
  • the sample when the location of the sample is located outside the picture, the sample may be an unavailable sample.
  • the current block 800 when the current block 800 is located at the edge of the picture, some of the surrounding samples may not be available.
  • the sample may be an available sample.
  • the replacement or padding procedure may be performed in the following order, for example.
  • peripheral sample p [-1] [2N-1] If peripheral sample p [-1] [2N-1] is not available, then peripheral sample p [-1] [2N-1] (or peripheral sample p [-1] [2N-2]) ) Then p [-1] [-1], then p [0] [-1] through p [2N-1] [-1], sequentially searching for the first available found The value of one peripheral sample can be assigned to the peripheral sample p [-1] [2N-1].
  • the lower peripheral samples p [0] [N] ... p [N-1] [N] may not be available, in which case unused samples may be replaced or padded.
  • the padding procedure can be used to fill in the available samples.
  • the lower right peripheral sample may be derived based on the following equation.
  • p [N] [N] is the lower right peripheral sample
  • p [N] [-1] is the peripheral sample p [N] [-1]
  • P [-1] [N] is the peripheral sample p [-1] [N] is shown.
  • the lower right peripheral sample may be derived based on the following equation.
  • p [N] [N] is the lower right peripheral sample
  • p [2N-1] [-1] is the peripheral sample p [2N-1] [-1]
  • P [-1] [2N-1 ] Represents the peripheral sample p [-1] [2N-1].
  • the lower peripheral samples and the upper peripheral samples may be derived based on the right lower peripheral sample and the first peripheral samples. For example, with respect to each of the lower peripheral samples p [0] [N] ... p [N-1] [N], the lower right peripheral sample p [N] [N] and the surroundings according to the position. Values derived through interpolation of samples p [-1] [N] can be assigned. Also, for each of the right peripheral samples p [N] [N-1] ... p [N] [0], the right lower peripheral sample p [N] [N] and the peripheral sample p [ A value derived through interpolation of N] [-1] can be assigned.
  • the lower peripheral samples p [0] [N] ... p [N-1] [N] the lower right peripheral sample p [N] [N] and the right peripheral samples
  • the replacement or padding procedure may be performed in the following order.
  • peripheral sample p [0] [N] is not available, sequentially from peripheral sample p [0] [N] (or peripheral sample p [1] [N]), p [N] [N] And then sequentially search from p [N] [N-1] to p [N] [0] and determine the value of the first available peripheral sample found above the peripheral sample p [0]. Can be assigned to [N].
  • the plurality of TUs can be derived not only as square TUs but also as non-square TUs to perform intra prediction according to the present invention. That is, the plurality of TUs may be derived from a current coding unit (CU), and the plurality of TUs may be derived as square or non-square TUs. Intra prediction according to the present invention for the non-square TUs may be specifically performed through the following method, for example. Meanwhile, one TU may be located in one PU region or a plurality of TUs may be located in one PU region. That is, one or more PUs and a plurality of TUs may be derived from the current CU in various forms.
  • CU current coding unit
  • one PU may be derived from the current CU, and a plurality of TUs may be located in an area of the PU.
  • a plurality of PUs and a plurality of TUs may be derived from the current CU, and each of the plurality of PUs may be located in the same size and the same area as each of the plurality of TUs.
  • the coding apparatus may perform lower peripheral samples 960, lower right peripheral samples 950, and right peripheral samples 940 of the current block to perform intra prediction according to the present invention on the square TU.
  • Second peripheral samples may be generated.
  • the coding device may derive first peripheral samples including left peripheral samples 910, upper left peripheral samples 920, and upper peripheral samples 930 of the current block, wherein the first peripheral samples are derived from the first block.
  • second peripheral samples including the lower peripheral samples 960, the right lower peripheral samples 950, and the right peripheral samples 940 may be derived.
  • the lower right peripheral sample 950 may be first generated based on the first peripheral samples, and the lower peripheral samples 960 and the right side may be generated based on the right lower peripheral sample 950.
  • Peripheral samples 940 may be generated.
  • the interpolation (or average) of the peripheral sample p [-1] [N] and the peripheral sample p [N] [-1] or the peripheral sample p [-1] [2N-1] and the surroundings The value derived through interpolation (or average) of sample p [2N-1] [-1] can be assigned to the lower right peripheral sample p [N] [N]. Thereafter, for each of the lower peripheral samples p [0] [N] ...
  • p [N-1] [N] the peripheral sample p [N] [N] and the peripheral sample p [- 1]
  • a value derived through interpolation of [N] may be assigned.
  • Values derived through interpolation in [-1] may be assigned.
  • p [m] [n] represents the sample (or pixel) of the sample position (m, n), which is a relative sample given the top-left sample position of the current block as (0, 0) Position can be indicated.
  • N may correspond to the width or height of the current block.
  • the square TU is compared with the non-square TU, the lower right peripheral sample 950 and the peripheral sample p [-1] [N] and the peripheral sample p [N] [-1] or the peripheral sample p
  • the distance between [-1] [2N-1] and the peripheral sample p [2N-1] [-1] is relatively far, so that the sample value of the lower right peripheral sample may be inaccurate.
  • the derived sample values of the right peripheral samples 940 and the lower peripheral samples 960 derived based on the right lower peripheral sample 950 may also be inaccurate as compared with the case where the current block is a non-square TU. Can be.
  • the coding apparatus may derive the plurality of TUs derived from the current coding unit (CU) as non-square TUs, and perform intra prediction according to the present invention on the non-square TUs. Can be done.
  • the non-square TUs may be derived in consideration of the intra prediction mode.
  • FIG. 10 illustrates an example of a plurality of non-square TUs derived in consideration of the intra prediction mode from a current CU.
  • the plurality of TUs are non-square TUs whose width is greater than height. Can be derived.
  • the intra prediction modes 18 to 34 may be referred to as vertical-wise modes, and a non-square TU having a height greater than a width may be referred to as a horizontal non-square TU.
  • the plurality of TUs may be derived as non-square TUs of type 2N ⁇ N.
  • the plurality of TUs may be derived as non-square TUs of 2NxnU or 2NxnD type.
  • the plurality of TUs may be derived from 2N ⁇ nN type non-square TUs.
  • the plurality of TUs may be derived as non-square TUs having a height greater than the width.
  • the intra prediction modes 2 to 17 may be called a horizontal-wise mode, and the non-square TU having a width greater than the height may be referred to as a vertical non-square TU.
  • the plurality of TUs may be derived as Nx2N type non-square TUs.
  • the plurality of TUs may be derived as non-square TUs of nLx2N type or nRx2N type.
  • the plurality of TUs may be derived as non-square TUs of the nNx2N type.
  • intra prediction according to the present invention for the plurality of non-square TUs may be specifically performed as follows.
  • FIG. 11 illustrates an example of intra prediction according to the present invention for a horizontally long non-square TU.
  • the coding apparatus may determine the current CU.
  • Four non-square TUs of size 2N ⁇ N / 2 can be derived.
  • the non-square TUs may include TU1 1110, TU2 1120, TU3 1130, and TU4 1140.
  • the coding apparatus includes left peripheral samples, upper left peripheral samples, and upper peripheral samples of the TU1 1110 of the TU1 1110.
  • the lower right peripheral sample 1150 of the TU1 1110 may be derived based on the first peripheral samples.
  • the coding apparatus may derive the right peripheral samples of the TU1 1110 based on the first peripheral samples and the lower right peripheral sample 1150.
  • Lower peripheral samples of the TU1 1110 may be derived based on first peripheral samples and the lower right peripheral sample 1150. That is, the coding apparatus may include the second peripheral sample including the lower peripheral samples, the lower right peripheral sample 1150, and the right peripheral samples based on the first peripheral samples and the lower right peripheral sample 1150. Samples can be derived.
  • the coding apparatus may derive the prediction sample of the TU1 1110 by performing intra prediction according to the present invention based on the first and second neighboring samples of the TU1 1110.
  • the encoding apparatus may generate a residual signal based on the derived prediction sample, and perform encoding, performing transformation, quantization, and entropy encoding on the residual signal.
  • the encoding apparatus may generate a reconstruction block corresponding to the TU1 1110 by performing inverse quantization and inverse transformation on the residual signal of the TU1 1110, and based on the reconstruction block, of the TU2 1120. Intra prediction according to the present invention can be performed.
  • FIG. 12 illustrates another example of intra prediction according to the present invention for a horizontally long non-square TU. This example shows an example in which intra prediction according to the present invention is performed on TU2 after TU1 is encoded / decoded (or reconstructed).
  • the non-square TUs may include TU1 1210, TU2 1220, TU3 1230, and TU4 1240.
  • the coding apparatus When performing intra prediction according to the present invention on the TU2 1220, the coding apparatus includes left peripheral samples, upper left peripheral samples, and upper peripheral samples of the TU2 1220 of the TU2 1220.
  • the right lower peripheral sample 1250 of the TU2 1220 may be derived based on the first peripheral samples of the TU2.
  • the first peripheral samples may include reconstructed samples of the TU1 1210 pre-decoded at the decoding time of the TU2 1220.
  • the coding apparatus may derive the right peripheral samples of the TU2 1220 based on the first peripheral samples and the lower right peripheral sample 1250.
  • Lower peripheral samples of the TU2 1220 may be derived based on first peripheral samples and the lower right peripheral sample 1250. That is, the coding apparatus may include a second peripheral sample including the lower peripheral samples, the lower right peripheral sample 1250, and the right peripheral samples based on the first peripheral samples and the lower right peripheral sample 1250.
  • the coding apparatus may derive the prediction sample of the TU2 1220 by performing the intra prediction according to the present invention based on the first and second peripheral samples of the TU2 1220.
  • 11 and 12 described above can be similarly applied to performing the intra prediction according to the present invention for a vertically long non-square TU, thereby improving the prediction accuracy of the current block. Can be improved.
  • FIG. 13 schematically illustrates a video encoding method by an encoding device according to the present invention.
  • the method disclosed in FIG. 13 may be performed by the encoding apparatus disclosed in FIG. 1.
  • S1300 to S1310 of FIG. 13 may be performed by the prediction unit of the encoding apparatus
  • S1320 may be performed by the entropy encoding unit of the encoding apparatus.
  • the encoding apparatus derives an intra prediction mode for the current PU (S1300).
  • the encoding apparatus may perform various intra prediction modes to derive an intra prediction mode having an optimal RD cost as an intra prediction mode for the current PU.
  • the intra prediction mode may be one of two non-directional prediction modes and 33 directional prediction modes. As described above, the two non-directional prediction modes may include an intra DC mode and an intra planner mode.
  • the current block may be one of a plurality of transform units (TUs) located in the region of the current PU, and an intra prediction mode for the current PU may be derived as an intra prediction mode for the current block.
  • TUs transform units
  • the encoding apparatus reconstructs a plurality of TUs located in the region of the current PU based on the intra prediction mode (S1310).
  • the encoding apparatus may generate a prediction sample by performing intra prediction on each of the plurality of TUs, and may reconstruct each TU based on the prediction sample.
  • the encoding apparatus may derive first peripheral samples including left peripheral samples, upper left peripheral samples, and upper peripheral samples of one of the plurality of TUs.
  • the first neighboring samples may be samples that are already reconstructed at the decoding time of the current block.
  • the unavailable sample may be filled with the available sample through a substitution or padding procedure. In this case, for example, the unavailable sample may be replaced or padded with another peripheral sample adjacent to the sample.
  • the left neighboring samples are p [-1] [2N-1] to p [-1] [0]
  • the lower left peripheral sample is p [-1] [-1]
  • the upper peripheral samples are p [0] [-1] to p [2N-1] [-1] Can be.
  • peripheral sample p [-1] [2N-1] is not available, then peripheral sample p [-1] [2N-1] (or peripheral sample p [-1] [2N-2]) in sequence From p [-1] [-1], then p [0] [-1] to p [2N-1] [-1], sequentially
  • the value of the available peripheral sample can be assigned to the peripheral sample p [-1] [2N-1].
  • the encoding apparatus may derive second peripheral samples including right peripheral samples, right bottom peripheral samples and bottom peripheral samples of the current block based on the first peripheral samples.
  • the lower peripheral samples are p [0] [N] to p [N-1] [N]
  • the right lower peripheral sample may be p [N] [N]
  • the right peripheral samples may be p [N] [N-1] to p [N] [0].
  • the encoding apparatus may derive the lower right peripheral sample based on the peripheral sample p [-1] [N] and the peripheral sample p [N] [-1] among the first peripheral samples. Specifically, for example, the encoding apparatus may derive the lower right peripheral sample through interpolation of the peripheral sample p [-1] [N] and the peripheral sample p [N] [-1]. . Also, for example, the encoding apparatus may derive the lower right peripheral sample through an average of the peripheral samples p [-1] [N] and the peripheral samples p [N] [-1]. Also, for example, the encoding apparatus may derive the lower right peripheral sample from the peripheral sample p [-1] [N] and the peripheral sample p [N] [-1] based on Equation 2 described above. have.
  • the encoding apparatus may derive the lower right peripheral sample based on the peripheral sample p [-1] [2N-1] and the peripheral sample p [2N-1] [-1] among the first peripheral samples.
  • the encoding apparatus may derive the lower right peripheral sample through interpolation between the peripheral sample p [-1] [2N-1] and the peripheral sample p [2N-1] [-1]. have.
  • the encoding apparatus may derive the lower right peripheral sample through an average of the peripheral samples p [-1] [2N-1] and the peripheral samples p [2N-1] [-1].
  • the encoding apparatus may be configured to generate the right lower peripheral sample from the peripheral sample p [-1] [2N-1] and the peripheral sample p [2N-1] [-1] based on Equation 3 described above. Can be derived.
  • the encoding apparatus may derive the lower peripheral samples of the current block based on the first peripheral samples and the lower right peripheral sample. For example, the encoding apparatus may derive sample values of the lower peripheral samples through interpolation of the peripheral sample p [-1] [N] of the lower right peripheral sample and the first peripheral samples. Also, the encoding apparatus may derive the right peripheral samples of the current block based on the first peripheral samples and the right lower peripheral samples. For example, the encoding apparatus may derive the right peripheral samples through interpolation of the peripheral sample p [N] [-1] of the lower right peripheral sample and the first peripheral samples.
  • the encoding apparatus is based on a first reference sample positioned in the prediction direction of the intra prediction mode and the second reference sample positioned in the opposite direction of the first neighboring samples.
  • a prediction sample of the current block can be derived.
  • the encoding apparatus may derive the prediction sample of the current block through interpolation of the first reference sample and the second reference sample.
  • the encoding apparatus may derive the prediction sample from the first reference sample and the second reference sample based on Equation 1 described above.
  • the encoding apparatus may reconstruct the current block based on the prediction sample.
  • the encoding apparatus may generate a residual sample for the current block and may reconstruct the current block based on the prediction sample and the residual sample.
  • the reconstruction order of the plurality of TUs located in the region of the current PU may be determined based on an intra prediction mode for the current PU.
  • the intra prediction mode for the current PU may be, for example, one of intra prediction modes 0 to 34, the intra prediction modes 0 and 1 may be non-directional intra prediction modes, and the 2 The intra prediction modes of the first to the thirty-fourth may be directional intra prediction modes.
  • the directional intra prediction modes may be divided into a plurality of categories, and the reconstruction order of the plurality of TUs may vary depending on which of the plurality of categories the intra prediction mode for the current PU belongs to. Can be determined.
  • the plurality of categories may include category 1, category 2, and category 3, and the intra prediction modes 2 to 9 may include the intra prediction modes of category 1, 10 to 26, and Category 2, intra prediction modes 27 to 34 may belong to the category 3.
  • the non-directional intra prediction modes may not belong to the plurality of categories or may belong to category 2.
  • the reconstruction order of the plurality of TUs is a horizontal inverse raster scan order. (horizontally inversed raster scan order).
  • the reconstruction order of the plurality of TUs may be determined in a raster scan order.
  • the reconstruction order of the plurality of TUs may be determined in a vertically inversed raster scan order.
  • the plurality of TUs may be restored in the order of the above rows in the lower row, and each row. In, it may be sequentially restored in order from the left TU to the right TU.
  • the intra prediction mode for the current PU is one of intra prediction modes 27 to 34
  • the plurality of TUs may be sequentially restored in the order of the following rows in the top row, and in each row It may be sequentially restored from the right end TU to the left end TU.
  • the intra prediction mode for the current PU is one of 10 to 26 intra prediction modes
  • the plurality of TUs may be sequentially restored in the order of the following rows in the top row, and in each row It may be sequentially restored from the left TU to the right TU.
  • the plurality of TUs may be derived as square TUs or non-square TUs from a current coding unit (CU) based on an intra prediction mode for the current PU.
  • CU current coding unit
  • the plurality of TUs may be derived as non-square TUs whose width is greater than height. Can be. Specifically, for example, when the size of the current CU is 2N ⁇ 2N, the plurality of TUs may be derived as non-square TUs of type 2N ⁇ N. In addition, the plurality of TUs may be derived from non-square TUs of 2N ⁇ nU type. In addition, the plurality of TUs may be derived from non-square TUs of the 2NxnD type. Also, the plurality of TUs may be derived from 2N ⁇ nN type non-square TUs. For example, the plurality of TUs may be derived as non-square TUs each having a size of 2N ⁇ N / 2.
  • the plurality of TUs may be derived as non-square TUs whose height is greater than the width.
  • the plurality of TUs may be derived as Nx2N type non-square TUs.
  • the plurality of TUs may be derived as non-square TUs of the nLx2N type.
  • the plurality of TUs may be derived as non-square TUs of the nRx2N type.
  • the plurality of TUs may be derived as non-square TUs of the nNx2N type.
  • the plurality of TUs may be derived as non-square TUs each having an N / 2 ⁇ 2N size.
  • the encoding apparatus encodes and outputs information about an intra prediction mode for the current PU (S1320).
  • the encoding apparatus may encode and output the information about the intra prediction mode for the current PU in the form of a bitstream.
  • the encoding apparatus may generate, encode, and output the information about the intra prediction mode indicating the intra prediction mode in the form of a bitstream.
  • the information about the intra prediction mode may include information indicating an intra prediction mode for the current PU directly, or an intra prediction mode candidate list derived based on the intra prediction mode of the left or upper block of the current PU. It may also include information indicating any one of the candidates.
  • the encoding apparatus may generate residual information on the current block, encode the residual information, and output the encoded information in a bitstream form.
  • the residual information may include transform coefficients for the residual sample of the current block.
  • the bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
  • FIG. 14 schematically illustrates a video decoding method by a decoding apparatus according to the present invention.
  • the method disclosed in FIG. 14 may be performed by the decoding apparatus disclosed in FIG. 2.
  • S1400 to S1410 may be performed by the prediction unit of the decoding apparatus.
  • the decoding apparatus derives an intra prediction mode for the current PU based on the received bitstream (S1400).
  • the decoding apparatus may obtain information about an intra prediction mode for the current PU through a bitstream.
  • the decoding apparatus may derive the intra prediction mode for the current PU based on the information about the intra prediction mode.
  • the information about the intra prediction mode may include information indicating an intra prediction mode for the current PU directly, or an intra prediction mode candidate list derived based on the intra prediction mode of the left or upper block of the current PU. It may also include information indicating any one of the candidates.
  • the intra prediction mode for the current PU may be, for example, one of intra prediction modes 0 to 34, the intra prediction modes 0 and 1 may be non-directional intra prediction modes, and the 2 The intra prediction modes of the first to the thirty-fourth may be directional intra prediction modes.
  • the two non-directional intra prediction modes may include an intra DC mode and an intra planner mode.
  • the current block may be one of a plurality of transform units (TUs) located in the region of the current PU, and an intra prediction mode for the current PU may be derived as an intra prediction mode for the current block.
  • TUs transform units
  • the decoding apparatus performs reconstruction of a plurality of TUs located in the region of the current PU based on the intra prediction mode (S1410).
  • the decoding apparatus may generate a prediction sample by performing intra prediction on each of the plurality of TUs, and may reconstruct each TU based on the prediction sample.
  • the decoding apparatus may derive first peripheral samples including left peripheral samples, upper left peripheral samples, and upper peripheral samples of one of the plurality of TUs.
  • the first peripheral samples may be already reconstructed samples.
  • the sample that is not available may be filled with the available sample through a substitution or padding procedure. In this case, for example, the unavailable sample may be replaced or padded with another peripheral sample adjacent to the sample.
  • the left neighboring samples are p [-1] [2N-1] to p [-1] [0]
  • the lower left peripheral sample is p [-1] [-1]
  • the upper peripheral samples are p [0] [-1] to p [2N-1] [-1] Can be.
  • peripheral sample p [-1] [2N-1] is not available, then peripheral sample p [-1] [2N-1] (or peripheral sample p [-1] [2N-2]) in sequence From p [-1] [-1], then p [0] [-1] to p [2N-1] [-1], sequentially
  • the value of the available peripheral sample can be assigned to the peripheral sample p [-1] [2N-1].
  • the decoding apparatus may derive second peripheral samples including right peripheral samples, right bottom peripheral samples and bottom peripheral samples of the current block based on the first peripheral samples.
  • the lower peripheral samples are p [0] [N] to p [N-1] [N]
  • the right lower peripheral sample may be p [N] [N]
  • the right peripheral samples may be p [N] [N-1] to p [N] [0].
  • the decoding apparatus may derive the lower right peripheral sample based on the peripheral sample p [-1] [N] and the peripheral sample p [N] [-1] among the first peripheral samples. Specifically, for example, the decoding apparatus may derive the lower right peripheral sample through interpolation of the peripheral sample p [-1] [N] and the peripheral sample p [N] [-1]. . Also, for example, the decoding apparatus may derive the lower right peripheral sample through an average of the peripheral samples p [-1] [N] and the peripheral samples p [N] [-1]. Also, for example, the decoding apparatus may derive the lower right peripheral sample from the peripheral sample p [-1] [N] and the peripheral sample p [N] [-1] based on Equation 2 described above. have.
  • the decoding apparatus may derive the lower right peripheral sample based on the peripheral sample p [-1] [2N-1] and the peripheral sample p [2N-1] [-1] among the first peripheral samples.
  • the decoding apparatus may derive the lower right peripheral sample through interpolation between the peripheral sample p [-1] [2N-1] and the peripheral sample p [2N-1] [-1]. have.
  • the decoding apparatus may derive the lower right peripheral sample through an average of the peripheral samples p [-1] [2N-1] and the peripheral samples p [2N-1] [-1].
  • the decoding apparatus may be configured to generate the right lower peripheral sample from the peripheral sample p [-1] [2N-1] and the peripheral sample p [2N-1] [-1] based on Equation 3 described above. Can be derived.
  • the decoding apparatus may derive the lower peripheral samples of the current block based on the first peripheral samples and the right lower peripheral sample. For example, the decoding apparatus may derive sample values of the lower peripheral samples through interpolation of the peripheral sample p [-1] [N] among the lower right peripheral sample and the first peripheral samples. In addition, the decoding apparatus may derive the right peripheral samples of the current block based on the first peripheral samples and the right lower peripheral samples. For example, the decoding apparatus may derive the right peripheral samples through interpolation of the peripheral sample p [N] [-1] among the lower right peripheral sample and the first peripheral samples.
  • the decoding apparatus is based on the first reference sample located in the prediction direction of the intra prediction mode and the second reference sample located in the opposite direction of the first peripheral samples and the second peripheral samples.
  • a prediction sample of the current block can be derived.
  • the decoding apparatus may derive the prediction sample of the current block through interpolation of the first reference sample and the second reference sample.
  • the decoding apparatus may derive the prediction sample from the first reference sample and the second reference sample based on Equation 1 described above.
  • the decoding apparatus may reconstruct the current block based on the prediction sample.
  • the decoding apparatus may receive residual information for the current block from the bitstream.
  • the residual information may include transform coefficients for the residual sample of the current block.
  • the decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information.
  • the decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture in order to improve subjective / objective picture quality as necessary.
  • an in-loop filtering procedure such as a deblocking filtering and / or SAO procedure
  • the reconstruction order of the plurality of TUs located in the region of the current PU may be determined based on an intra prediction mode for the current PU.
  • the intra prediction mode for the current PU may be one of intra prediction modes 0 to 34, the intra prediction modes 0 and 1 may be non-directional intra prediction modes, and the second to the The intra prediction mode 34 may be directional intra prediction modes.
  • the directional intra prediction modes may be divided into a plurality of categories, and the reconstruction order of the plurality of TUs may vary depending on which of the plurality of categories the intra prediction mode for the current PU belongs to. Can be determined.
  • the plurality of categories may include category 1, category 2, and category 3, and the intra prediction modes 2 to 9 may include the intra prediction modes of category 1, 10 to 26, and Category 2, intra prediction modes 27 to 34 may belong to the category 3.
  • the non-directional intra prediction modes may not belong to the plurality of categories or may belong to category 2.
  • the reconstruction order of the plurality of TUs is horizontally inversed raster. scan order).
  • the reconstruction order of the plurality of TUs may be determined in a raster scan order.
  • the reconstruction order of the plurality of TUs may be determined in a vertically inversed raster scan order.
  • the plurality of TUs may be restored in the order of the above rows in the lower row, and each row. In, it may be sequentially restored in order from the left TU to the right TU.
  • the intra prediction mode for the current PU is one of intra prediction modes 27 to 34
  • the plurality of TUs may be sequentially restored in the order of the following rows in the top row, and in each row It may be sequentially restored from the right end TU to the left end TU.
  • the intra prediction mode for the current PU is one of 10 to 26 intra prediction modes
  • the plurality of TUs may be sequentially restored in the order of the following rows in the top row, and in each row It may be sequentially restored from the left TU to the right TU.
  • the plurality of TUs may be derived as square TUs or non-square TUs from a current coding unit (CU) based on an intra prediction mode for the current PU.
  • CU current coding unit
  • the plurality of TUs may be derived as non-square TUs whose width is greater than height. Can be. Specifically, for example, when the size of the current CU is 2N ⁇ 2N, the plurality of TUs may be derived as non-square TUs of type 2N ⁇ N. In addition, the plurality of TUs may be derived from non-square TUs of 2N ⁇ nU type. In addition, the plurality of TUs may be derived from non-square TUs of the 2NxnD type. Also, the plurality of TUs may be derived from 2N ⁇ nN type non-square TUs. For example, the plurality of TUs may be derived as non-square TUs each having a size of 2N ⁇ N / 2.
  • the plurality of TUs may be derived as non-square TUs whose height is greater than the width.
  • the plurality of TUs may be derived as Nx2N type non-square TUs.
  • the plurality of TUs may be derived as non-square TUs of the nLx2N type.
  • the plurality of TUs may be derived as non-square TUs of the nRx2N type.
  • the plurality of TUs may be derived as non-square TUs of the nNx2N type.
  • the plurality of TUs may be derived as non-square TUs each having an N / 2 ⁇ 2N size.
  • intra prediction may be performed based on first and second neighboring samples of the current block, thereby improving prediction accuracy of intra prediction for the current block.
  • the reconstruction order of a plurality of TUs located in the region of the current PU can be changed based on the intra prediction mode for the current PU, thereby improving the prediction accuracy of the intra prediction for the current block. You can.
  • the above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set top box, a display device, and the like. It can be included in the device.
  • the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function.
  • the module may be stored in memory and executed by a processor.
  • the memory may be internal or external to the processor and may be coupled to the processor by various well known means.
  • the processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices.
  • the memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device.

Abstract

본 발명에 따른 디코딩 장치에 의하여 수행되는 영상 디코딩 방법은 수신한 비트스트림을 기반으로 현재 PU에 대한 인트라 예측 모드를 도출하는 단계, 및 상기 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU들에 대한 복원을 수행하는 단계를 포함하되, 상기 복원을 수행하는 단계는 상기 복수의 TU들 중 하나인 현재 블록에 대하여, 상기 인트라 예측 모드의 예측 방향에 위치하는 제1 참조 샘플 및 상기 예측 방향의 반대 방향에 위치하는 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출하는 단계, 및 상기 예측 샘플을 기반으로 상기 대상 블록을 복원하는 단계를 포함함을 특징으로 한다.

Description

영상 코딩 시스템에서 영상 디코딩 방법 및 장치
본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 영상 디코딩 방법 및 장치에 관한 것이다.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.
본 발명의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.
본 발명의 다른 기술적 과제는 현재 블록의 제1 주변 샘플들 및 제2 주변 샘플들을 기반으로 수행되는 인트라 예측 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 현재 PU에 대한 인트라 예측 모드를 기반으로 현재 PU의 영역 내 복수의 TU들의 복원 순서를 결정하는 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 현재 CU로부터 비정방형 TU들을 도출하는 방법 및 장치를 제공함에 있다.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은 수신한 비트스트림을 기반으로 현재 PU(Prediction Unit)에 대한 인트라 예측 모드를 도출하는 단계, 및 상기 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU(Transform Unit)들에 대한 복원을 수행하는 단계를 포함하되, 상기 복원을 수행하는 단계는 상기 복수의 TU들 중 하나인 현재 블록의 좌측 주변 샘플들, 좌상측 주변 샘플 및 상측 주변 샘플들을 포함하는 제1 주변 샘플들을 도출하는 단계, 상기 제1 주변 샘플들을 기반으로 상기 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플 및 하측 주변 샘플들을 포함하는 제2 주변 샘플들을 도출하는 단계, 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들 중 상기 인트라 예측 모드의 예측 방향에 위치하는 제1 참조 샘플 및 상기 예측 방향의 반대 방향에 위치하는 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출하는 단계, 및 상기 예측 샘플을 기반으로 상기 대상 블록을 복원하는 단계를 포함하는 것을 특징으로 한다.
본 발명의 다른 일 실시예에 따르면, 영상 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는 비트스트림을 통하여 현재 PU(Prediction Unit)에 대한 인트라 예측 모드에 대한 정보를 수신하는 엔트로피 디코딩부, 및 수신한 비트스트림을 기반으로 상기 현재 PU에 대한 인트라 예측 모드를 도출하고, 상기 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU(Transform Unit)들에 대한 복원을 수행하는 예측부를 포함하되, 상기 예측부는 상기 복수의 TU들 중 하나인 현재 블록의 좌측 주변 샘플들, 좌상측 주변 샘플 및 상측 주변 샘플들을 포함하는 제1 주변 샘플들을 도출하고, 상기 제1 주변 샘플들을 기반으로 상기 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플 및 하측 주변 샘플들을 포함하는 제2 주변 샘플들을 도출하고, 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들 중 상기 인트라 예측 모드의 예측 방향에 위치하는 제1 참조 샘플 및 상기 예측 방향의 반대 방향에 위치하는 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출하고, 상기 예측 샘플을 기반으로 상기 대상 블록을 복원하는 것을 특징으로 한다.
본 발명의 또 다른 일 실시예에 따르면, 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법을 제공한다. 상기 방법은 현재 PU(Prediction Unit)에 대한 인트라 예측 모드를 도출하는 단계, 상기 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU(Transform Unit)들에 대한 복원을 수행하는 단계, 및 상기 현재 PU에 대한 인트라 예측 모드에 대한 정보 및 상기 현재 블록에 대한 레지듀얼(residual) 정보를 인코딩하여 출력하는 단계를 포함하되, 상기 복원을 수행하는 단계는 상기 복수의 TU들 중 하나인 현재 블록의 좌측 주변 샘플들, 좌상측 주변 샘플 및 상측 주변 샘플들을 포함하는 제1 주변 샘플들을 도출하는 단계, 상기 제1 주변 샘플들을 기반으로 상기 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플 및 하측 주변 샘플들을 포함하는 제2 주변 샘플들을 도출하는 단계, 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들 중 상기 인트라 예측 모드의 예측 방향에 위치하는 제1 참조 샘플 및 상기 예측 방향의 반대 방향에 위치하는 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출하는 단계, 및 상기 예측 샘플을 기반으로 상기 대상 블록을 복원하는 단계를 포함하는 것을 특징으로 한다.
본 발명의 또 다른 일 실시예에 따르면, 비디오 인코딩 장치를 제공한다. 상기 인코딩 장치는 현재 PU(Prediction Unit)에 대한 인트라 예측 모드를 도출하는 단계, 상기 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU(Transform Unit)들에 대한 복원을 수행하는 예측부, 및 상기 현재 PU에 대한 인트라 예측 모드에 대한 정보 및 상기 현재 블록에 대한 레지듀얼(residual) 정보를 인코딩하여 출력하는 엔트로피 인코딩부를 포함하되, 상기 예측부는 상기 복수의 TU들 중 하나인 현재 블록의 좌측 주변 샘플들, 좌상측 주변 샘플 및 상측 주변 샘플들을 포함하는 제1 주변 샘플들을 도출하고, 상기 제1 주변 샘플들을 기반으로 상기 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플 및 하측 주변 샘플들을 포함하는 제2 주변 샘플들을 도출하고, 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들 중 상기 인트라 예측 모드의 예측 방향에 위치하는 제1 참조 샘플 및 상기 예측 방향의 반대 방향에 위치하는 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출하고, 및 상기 예측 샘플을 기반으로 상기 대상 블록을 복원하는 것을 특징으로 한다.
본 발명에 따르면 현재 블록의 제1 주변 샘플들 및 제2 주변 샘플들을 기반으로 인트라 예측을 수행할 수 있고, 이를 통하여 상기 현재 블록에 대한 인트라 예측의 예측 정확도를 향상시킬 수 있다.
본 발명에 따르면 상기 현재 PU에 대한 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU들의 복원 순서를 변경할 수 있고, 이를 통하여 상기 현재 블록에 대한 인트라 예측의 예측 정확도를 향상시킬 수 있다.
본 발명에 따르면 현재 CU로부터 비정방형 TU들을 도출할 수 있고, 이를 통하여 상기 현재 블록에 대한 인트라 예측의 예측 정확도를 향상시킬 수 있다.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 3은 인트라 예측 모드의 예측 방향의 일 예를 예시적으로 나타낸다.
도 4는 복수의 TU들을 래스터 스캔 오더(raster scan order)로 본 발명에 따른 인트라 예측을 수행하는 일 예를 나타낸다.
도 5는 방향성 인트라 예측 모드들을 복수의 카테고리들로 구분한 일 예를 예시적으로 나타낸다.
도 6은 상기 인트라 예측 모드가 복수의 카테고리들 중 어느 카테고리에 속하는지에 따라 결정된 복수의 TU들의 변경된 복원 순서의 일 예를 나타낸다.
도 7은 인트라 예측 모드가 속하는 카테고리에 따라 변경된 복원 순서로 수행되는 복수의 TU들의 상기 본 발명에 따른 인트라 예측의 일 예를 예시적으로 나타낸다.
도 8은 본 발명에 따른 인트라 예측을 위한 제1 주변 샘플들 및 제2 주변 샘플들을 나타낸다.
도 9는 정방형 TU에 본 발명에 따른 인트라 예측을 수행하기 위하여 생성하는 참조 샘플의 일 예를 예시적으로 나타낸다.
도 10은 현재 CU로부터 인트라 예측 모드를 고려하여 도출된 복수의 비정방형 TU들의 일 예를 예시적으로 나타낸다.
도 11은 수평으로 긴(horizontally-long) 비정방형 TU에 대한 본 발명에 따른 인트라 예측의 일 예를 예시적으로 나타낸다.
도 12는 수평으로 긴 비정방형 TU에 대한 본 발명에 따른 인트라 예측의 다른 예를 예시적으로 나타낸다.
도 13은 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다.
도 14는 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.
본 명세서에서 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다.
유닛(unit)은 영상 처리의 기본 단위를 나타낸다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 1을 참조하면, 비디오 인코딩 장치(100)는 픽처 분할부(105), 예측부(110), 감산부(115), 변환부(120), 양자화부(125), 재정렬부(130), 엔트로피 인코딩부(135), 역양자화부(140), 역변환부(145), 가산부(150), 필터부(155) 및 메모리(160)을 포함한다.
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다. 이 때, 처리 유닛 코딩 유닛 블록(coding unit, CU), 예측 유닛(prediction unit, PU) 또는 변환 유닛(transform unit, TU)일 수 있다. 코딩 유닛은 코딩의 유닛 블록이고, 최대 코딩 유닛(largest coding unit, LCU)으로부터 쿼드 트리 구조(quad-tree structure)를 따라서 하위(deeper) 뎁스의 코딩 유닛들로 분할(split)될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 최소 코딩 유닛(smallest coding unit, SCU)이 설정된 경우 코딩 유닛은 최소 코딩 유닛보다 더 작은 코딩 유닛으로 분할될 수 없다. 여기서 최종 코딩 유닛이라 함은 예측 유닛 또는 변환 유닛으로 파티셔닝 또는 분할되는 기반이 되는 코딩 유닛을 의미한다. 예측 유닛은 코딩 유닛 블록으로부터 파티셔닝(partitioning)되는 블록으로서, 샘플 예측의 유닛 블록일 수 있다. 이 때, 예측 유닛은 서브 블록(sub block)으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛 블록으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 블록 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 유닛 블록일 수 있다.
이하, 코딩 유닛은 코딩 블록(coding block, CB), 예측 유닛은 예측 블록(prediction block, PB), 변환 유닛은 변환 블록(transform block, TB) 으로 불릴 수 있다.
예측 블록 또는 예측 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 예측 샘플의 어레이(array)를 포함할 수 있다. 또한, 변환 블록 또는 변환 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 변환 계수 또는 레지듀얼 샘플의 어레이를 포함할 수 있다.
예측부(110)는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측 블록을 생성할 수 있다. 예측부(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는 픽처의 디스플레이 순서에 대응하며, 코딩 순서와 구분될 수 있다.
감산부(115)는 원본 샘플과 예측 샘플 간의 차이인 레지듀얼 샘플을 생성한다. 스킵 모드가 적용되는 경우에는, 상술한 바와 같이 레지듀얼 샘플을 생성하지 않을 수 있다.
변환부(120)는 변환 블록 단위로 레지듀얼 샘플을 변환하여 변환 계수(transform coefficient)를 생성한다. 변환부(120)는 해당 변환 블록의 사이즈와, 해당 변환 블록과 공간적으로 겹치는 코딩 블록 또는 예측 블록에 적용된 예측 모드에 따라서 변환을 수행할 수 있다. 예컨대, 상기 변환 블록과 겹치는 상기 코딩 블록 또는 상기 예측 블록에 인트라 예측이 적용되었고, 상기 변환 블록이 4×4의 레지듀얼 어레이(array)라면, 레지듀얼 샘플은 DST(Discrete Sine Transform)를 이용하여 변환되고, 그 외의 경우라면 레지듀얼 샘플은 DCT(Discrete Cosine Transform)를 이용하여 변환할 수 있다.
양자화부(125)는 변환 계수들을 양자화하여, 양자화된 변환 계수를 생성할 수 있다.
재정렬부(130)는 양자화된 변환 계수를 재정렬한다. 재정렬부(130)는 계수들 스캐닝(scanning) 방법을 통해 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있다. 여기서 재정렬부(130)는 별도의 구성으로 설명하였으나, 재정렬부(130)는 양자화부(125)의 일부일 수 있다.
엔트로피 인코딩부(135)는 양자화된 변환 계수들에 대한 엔트로피 인코딩을 수행할 수 있다. 엔트로피 인코딩은 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 인코딩 방법을 포함할 수 있다. 엔트로피 인코딩부(135)는 양자화된 변환 계수 외 비디오 복원에 필요한 정보들(예컨대 신택스 요소(syntax element)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 엔트로피 인코딩된 정보들은 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다.
역양자화부(140)는 양자화부(125)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(145)는 역양자화부(135)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.
가산부(150)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(150)는 별도의 구성으로 설명하였으나, 가산부(150)는 예측부(110)의 일부일 수 있다.
복원된 픽처(reconstructed picture)에 대하여 필터부(155)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(155)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.
메모리(160)는 복원 픽처 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(155)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 2를 참조하면, 비디오 디코딩 장치(200)는 엔트로피 디코딩부(210), 재정렬부(220), 역양자화부(230), 역변환부(240), 예측부(250), 가산부(260), 필터부(270), 메모리(280)를 포함한다.
비디오 정보를 포함하는 비트스트림이 입력되면, 비디오 디코딩 장치는(200)는 비디오 인코딩 장치에서 비디오 정보가 처리된 프로세스에 대응하여 비디오를 복원할 수 있다.
예컨대, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 적용된 처리 유닛을 이용하여 비디오 디코딩을 수행할 수 있다. 따라서 비디오 디코딩의 처리 유닛 블록은 코딩 유닛 블록, 예측 유닛 블록 또는 변환 유닛 블록일 수 있다. 코딩 유닛 블록은 디코딩의 유닛 블록으로서 최대 코딩 유닛 블록으로부터 쿼드 트리 구조를 따라서 분할될 수 있다. 예측 유닛 블록은 코딩 유닛 블록으로부터 파티셔닝되는 블록으로서, 샘플 예측의 유닛 블록일 수 있다. 이 때, 예측 유닛 블록은 서브 블록으로 나뉠 수도 있다. 변환 유닛 블록은 코딩 유닛 블록으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 블록 또는 변환 계수로부터 레지듀얼 신호를 유도하는 유닛 블록일 수 있다.
엔트로피 디코딩부(210)는 비트스트림을 파싱하여 비디오 복원 또는 픽처 복원에 필요한 정보를 출력할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 비디오 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다.
보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다.
엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(230)로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수는 재정렬부(220)로 입력될 수 있다.
재정렬부(220)는 양자화되어 있는 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 재정렬부(220)는 인코딩 장치에서 수행된 계수 스캐닝에 대응하여 재정렬을 수행할 수 있다. 여기서 재정렬부(220)는 별도의 구성으로 설명하였으나, 재정렬부(220)는 양자화부(230)의 일부일 수 있다.
역양자화부(230)는 양자화되어 있는 변환 계수들을 (역)양자화 파라미터를 기반으로 역양자화하여 변환 계수를 출력할 수 있다. 이 때, 양자화 파라미터를 유도하기 위한 정보는 인코딩 장치로부터 시그널링될 수 있다.
역변환부(240)는 변환 계수들을 역변환하여 레지듀얼 샘플들을 유도할 수 있다.
예측부(250)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측 블록을 생성할 수 있다. 예측부(250)에서 수행되는 예측의 단위는 코딩 블록일 수도 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.
예측부(250)는 상기 예측에 관한 정보를 기반으로 인트라 예측을 적용할 것인지 인터 예측을 적용할 것인지를 결정할 수 있다. 이 때, 인트라 예측과 인터 예측 중 어느 것을 적용할 것인지를 결정하는 단위와 예측 샘플을 생성하는 단위는 상이할 수 있다. 아울러, 인터 예측과 인트라 예측에 있어서 예측 샘플을 생성하는 단위 또한 상이할 수 있다. 예를 들어, 인터 예측과 인트라 예측 중 어느 것을 적용할 것인지는 CU 단위로 결정할 수 있다. 또한 예를 들어, 인터 예측에 있어서 PU 단위로 예측 모드를 결정하고 예측 샘플을 생성할 수 있고, 인트라 예측에 있어서 PU 단위로 예측 모드를 결정하고 TU 단위로 예측 샘플을 생성할 수도 있다.
인트라 예측의 경우에, 예측부(250)는 현재 픽처 내의 주변 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(250)는 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용할 예측 모드가 결정될 수도 있다.
인터 예측의 경우에, 예측부(250)는 참조 픽처 상에서 움직임 벡터에 의해 참조 픽처 상에서 특정되는 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(250)는 스킵(skip) 모드, 머지(merge) 모드 및 MVP 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이때, 비디오 인코딩 장치에서 제공된 현재 블록의 인터 예측에 필요한 움직임 정보, 예컨대 움직임 벡터, 참조 픽처 인덱스 등에 관한 정보는 상기 예측에 관한 정보를 기반으로 획득 또는 유도될 수 있다
스킵 모드와 머지 모드의 경우에, 주변 블록의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.
예측부(250)는 가용한 주변 블록의 움직임 정보로 머지 후보 리스트를 구성하고, 머지 인덱스가 머지 후보 리스트 상에서 지시하는 정보를 현재 블록의 움직임 벡터로 사용할 수 있다. 머지 인덱스는 인코딩 장치로부터 시그널링될 수 있다. 움직임 정보는 움직임 벡터와 참조 픽처를 포함할 수 있다. 스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트 상의 최상위 픽처가 참조 픽처로서 이용될 수 있다.
스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차이(레지듀얼)이 전송되지 않는다.
MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하여 현재 블록의 움직임 벡터가 유도될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.
일 예로, 머지 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 머지 후보 리스트가 생성될 수 있다. 머지 모드에서는 머지 후보 리스트에서 선택된 후보 블록의 움직임 벡터가 현재 블록의 움직임 벡터로 사용된다. 상기 예측에 관한 정보는 상기 머지 후보 리스트에 포함된 후보 블록들 중에서 선택된 최적의 움직임 벡터를 갖는 후보 블록을 지시하는 머지 인덱스를 포함할 수 있다. 이 때, 예측부(250)는 상기 머지 인덱스를 이용하여, 현재 블록의 움직임 벡터를 도출할 수 있다.
다른 예로, MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터는 움직임 벡터 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 후보 중에서 선택된 최적의 움직임 벡터를 지시하는 예측 움직임 벡터 인덱스를 포함할 수 있다. 이 때, 예측부(250)는 상기 움직임 벡터 인덱스를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서, 현재 블록의 예측 움직임 벡터를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 예측부(250)는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 예측부는 또한 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다.
가산부(260)는 레지듀얼 샘플과 예측 샘플을 더하여 현재 블록 혹은 현재 픽처를 복원할 수 있다. 가산부(260)는 레지듀얼 샘플과 예측 샘플을 블록 단위로 더하여 현재 픽처를 복원할 수도 있다. 스킵 모드가 적용된 경우에는 레지듀얼이 전송되지 않으므로, 예측 샘플이 복원 샘플이 될 수 있다. 여기서는 가산부(260)를 별도의 구성으로 설명하였으나, 가산부(260)는 예측부(250)의 일부일 수도 있다.
필터부(270)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.
메모리(280)는 복원 픽처 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(270)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(280)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(280)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다.
상술한 내용과 같이 현재 블록에 대하여 인트라 예측이 수행되는 경우, 코딩 장치는 33가지의 방향성 인트라 예측 모드 및 2가지의 비방향성 인트라 예측 모드 중 하나를 적용하여 상기 현재 블록의 예측 샘플을 도출할 수 있고, 상기 예측 샘플을 기반으로 상기 현재 블록을 복원할 수 있다. 이하 블록 또는 유닛을 복원한다 함은 해당 블록 또는 유닛 내의 복원 샘플(들)을 생성하는 것을 포함할 수 있다. 상기 현재 블록에 방향성 인트라 예측 모드가 적용되는 경우, 상기 현재 블록에 대하여 인트라 예측을 수행하기 위해 상기 현재 블록의 주변 샘플들 중 인트라 예측 모드에 따른 참조 샘플을 이용하여 예측 샘플을 생성할 수 있다. 여기서 상기 주변 샘플들은 현재 블록의 좌측, 좌상측, 상측 주변 샘플들을 포함할 수 있으며, 상술한 방향성 인트라 예측은 하나의 예측 방향에 위치하는 참조 샘플을 단순히 복사하여 예측 샘플을 생성하므로 예측 샘플과 참조 샘플과의 거리가 멀수록 예측의 정확도가 떨어져 에러가 증가할 수 있다.
이에, 상기 에러를 줄이기 위하여, 코딩 장치는 상기 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플, 및 하측 주변 샘플들을 도출하고, 상기 도출된 주변 샘플들과 기존의 주변 샘플들(상기 현재 블록의 좌측 주변 샘플들, 좌상측 주변 샘플, 및 상측 주변 샘플들)을 기반으로 예측 샘플을 생성할 수 있다. 즉, 코딩 장치는 인트라 예측 모드의 예측 방향에 위치하는 주변 샘플을 제1 참조 샘플, 상기 예측 방향의 반대 방향에 위치하는 주변 샘플을 제2 참조 샘플로 도출할 수 있고, 상기 제1 참조 샘플 및 상기 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 생성할 수 있다. 예를 들어, 상기 제1 참조 샘플과 상기 제2 참조 샘플의 보간을 통하여 상기 예측 샘플을 생성할 수 있다. 상술한 방법을 통하여 추가적인 보조 정보의 전송을 최소화하면서도 인트라 예측 정확도를 향상시킬 수 있고, 이를 통하여 전반적인 코딩 효율을 향상시킬 수 있다. 여기서, 상기 현재 블록의 상기 좌측 주변 샘플들, 상기 좌상측 주변 샘플들, 및 상기 상측 주변 샘플들은 제1 주변 샘플들이라고 불릴 수 있고, 상기 현재 블록의 상기 우측 주변 샘플들, 상기 우하측 주변 샘플, 및 상기 하측 주변 샘플들은 제2 주변 샘플들이라고 불릴 수 있다. 또한, 상술한 예측 방법은 선형 보간 예측(linear interpolation prediction)이라고 불릴 수 있고, 또는 선형 보간 인트라 예측(linear interpolation intra prediction)이라고 불릴 수 있다.
도 3은 인트라 예측 모드의 예측 방향의 일 예를 예시적으로 나타낸다. 도 3을 참조하면 본 발명에 따른 인트라 예측 모드들은 예를 들어 2개의 비방향성 인트라 예측 모드와 33개의 방향성 인트라 예측 모드를 포함할 수 있다. 여기서, 0번 내지 1번 인트라 예측 모드들은 상기 비방형성 인트라 예측 모드들로, 0번 인트라 예측 모드는 인트라 플래너(Planar) 모드를 나타내고, 1번 인트라 예측 모드는 인트라 DC 모드를 나타낸다. 나머지 2번 내지 34번 인트라 예측 모드들은 상기 방향성 인트라 예측 모드들로, 각각 도 3에 도시된 바와 같은 예측 방향을 갖는다. 상기 방향성 인트라 예측 모드는 인트라 앵귤러(angular) 모드로 불릴 수 있다. 현재 블록의 현재 샘플의 예측 샘플 값은 상기 현재 블록에 대한 인트라 예측 모드를 기반으로 도출될 수 있다.
일 예로, 현재 블록에 대한 인트라 예측 모드가 상기 방향성 인트라 모드들 중 하나인 경우, 상기 현재 블록 내의 상기 현재 샘플을 기준으로 상기 현재 블록에 대한 상기 인트라 예측 모드의 예측 방향에 위치하는 주변 샘플의 값이 상기 현재 샘플의 예측 샘플 값으로 도출할 수 있다. 만약, 현재 샘플을 기준으로 예측 방향에 정수 샘플 단위의 주변 샘플이 위치하지 않는 경우, 해당 예측 방향의 주변에 위치하는 정수 샘플 단위의 주변 샘플들에 대한 보간을 기반으로, 해당 예측 방향 위치에 분수 샘플 단위의 샘플을 도출하여, 상기 분수 샘플 단위의 샘플 값을 상기 현재 샘플의 예측 샘플 값으로 도출할 수 있다.
한편, 상술한 본 발명에 따른 인트라 예측을 수행하기 위해서는 상기 제1 참조 샘플 및 상기 제2 참조 샘플이 도출되어야 하고, 따라서, 상기 제1 주변 샘플들뿐만 아니라 상기 제2 주변 샘플들이 도출될 필요가 있다. 즉, 코딩 장치는 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플, 및 하측 주변 샘플들을 생성하여 상기 현재 블록에 인접한 다양한 주변 샘플들을 기반으로 상기 현재 블록에 대한 상기 본 발명에 따른 인트라 예측을 수행할 수 있다. 코딩 장치는 현재 샘플을 기준으로 인트라 예측 모드의 예측 방향에 위치하는 주변 샘플을 상기 제1 참조 샘플, 상기 예측 방향의 반대 방향에 위치하는 주변 샘플을 상기 제2 참조 샘플로 도출할 수 있고, 상기 제1 참조 샘플 및 상기 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 생성할 수 있다.
예를 들어, 코딩 장치는 상기 현재 블록의 상기 예측 샘플에 대한 상기 제1 참조 샘플 및 상기 제2 참조 샘플을 도출할 수 있고, 상기 제1 참조 샘플과 상기 제2 참조 샘플의 보간(interpolation)을 통하여 상기 예측 샘플을 생성할 수 있다.
예를 들어, 코딩장치는 상기 현재 블록의 상기 예측 샘플을 다음과 같은 수학식을 이용하여 도출할 수 있다.
Figure PCTKR2017001350-appb-M000001
여기서, predSample은 상기 예측 샘플, predSample0은 상기 제1 참조 샘플, predSample1은 상기 제2 참조 샘플, d0는 상기 예측 샘플과 상기 제1 참조 샘플간의 제1 거리, d1은 상기 예측 샘플과 상기 제2 참조 샘플간의 제2 거리를 나타낸다. 한편, 상기 제1 거리 및 상기 제2 거리는 다음의 표에 기반하여 도출될 수 있다.
Figure PCTKR2017001350-appb-I000001
여기서, d0는 상기 제1 거리, d1은 상기 제2 거리를 나타내고, intraPredAngle은 상기 인트라 예측 모드의 인트라 예측 각도, refAbove[m]는 상기 상측 주변 샘플들 중 하나이고 x좌표가 m인 상기 제1 참조 샘플, refBelow[n]는 상기 하측 주변 샘플들 중 하나이고 x좌표가 n인 상기 제2 참조 샘플을 나타낸다. 비록 표 1에서는 상기 x좌표가 m인 상측 주변 샘플이 상기 제1 참조 샘플, 상기 x좌표가 n인 하측 주변 샘플이 상기 제2 참조 샘플로 도출된 경우가 표기되었으나, 이는 예시로서 인트라 방향성 모드의 예측 방향에 따라 좌측 참조 샘플 및 우측 참조 샘플 등이 사용될 수도 있다.
한편, 상기 인트라 예측 모드가 방향성 인트라 예측 모드인 경우, 상기 방향성 인트라 예측 모드에 따른 상기 인트라 예측 각도는 다음 표에 기반하여 도출될 수 있다.
Figure PCTKR2017001350-appb-T000001
여기서, predModeIntra는 인트라 예측 모드를 가리키는 인덱스를 나타내고, intraPredAngle은 상기 인트라 예측 모드의 상기 인트라 예측 각도를 나타낸다.
한편, 상기 현재 블록은 현재 PU(Prediction Unit)의 영역에 포함된 복수의 TU(Transform Unit)들 중 하나일 수 있으며, 이 경우 상기 복수의 TU들은 특정 순서에 따라 예측 및 복원될 수 있다.
도 4는 복수의 TU들을 래스터 스캔 오더(raster scan order)로 본 발명에 따른 인트라 예측을 수행하는 일 예를 나타낸다. 상기 현재 블록은 상기 복수의 TU들 중 하나일 수 있다. 도 4를 참조하면 현재 PU의 영역에 위치하는 상기 복수의 TU들의 복원 순서(또는 변환 순서 또는 디코딩 순서)는 래스터 스캔 오더(raster scan order)에 기반할 수 있다. 구체적으로, 상기 복수의 TU들은 상단 행에서 순차적으로 아래의 행의 순서로 복원되고, 각각의 행에서는 좌단 TU에서 우단 TU의 순서로 순차적으로 복원될 수 있다. 상기 래스터 스캔 오더는 Z 스캔 오더(Z scan order)라고 불릴 수도 있다. 도 4에 도시된 바와 같이 상기 복수의 TU들의 변환 및 복원은 Z 모양의 방향에 따라 수행될 수 있고, 이에 상기 복수의 TU들 중 하나인 현재 블록에 인트라 예측을 수행하는 시점에는, 상기 현재 블록의 상측 주변 샘플들, 좌상측 주변 샘플 및 좌측 주변 샘플들을 포함하는 제1 주변 샘플들만이 가용할 수 있다. 즉, 상기 현재 블록의 우측 주변 샘플들을 포함하는 TU와 하측 주변 샘플들을 포함하는 TU는 디코딩 순서상 상기 현재 블록의 디코딩 과정 이후에 디코딩될 수 있고, 이에 상기 현재 블록의 디코딩 과정에 사용될 수 없을 수 있다. 따라서, 상기 현재 블록에 대한 인트라 예측 효율을 높이기 위하여 상기 제1 주변 샘플들뿐 아니라 상기 우측 주변 샘플들, 상기 우하측 주변 샘플, 및 상기 하측 주변 샘플들을 포함하는 상기 제2 주변 샘플들을 도출할 수 있다. 일 예로, 상기 제2 주변 샘플들은 상기 현재 블록의 기 디코딩된(복원된) 주변 샘플들을 이용하여 도출될 수 있다. 이 경우, 상기 본 발명에 따른 인트라 예측 효율은 도출된 상기 제2 주변 샘플들의 정확도에 따라 결정될 수 있다. 다만, 상기 제2 주변 샘플들은 실질적으로 우측 블록, 우하측 블록, 및 하측 블록의 복원 샘플이 아니고, 상기 현재 블록의 인트라 예측을 위하여 추정된 샘플이기에 정확도가 떨어질 수 있으며, 이는 본 발명에 따른 인트라 예측 효율에 영향을 미칠 수 있다. 따라서, 상기 현재 블록의 상기 본 발명에 따른 인트라 예측을 위하여 사용되는 기 디코딩된 주변 샘플들의 수가 증가할수록 상기 본 발명에 따른 인트라 예측 효율이 향상될 수 있다.
한편, 인트라 예측 모드에 따라 상기 주변 샘플들 중 실질적으로 예측 샘플 생성을 위하여 사용되는 주변 샘플이 달라지며, 이 경우 본 발명에 따르면 상기 TU들의 복원 순서를 변경하여 인트라 예측을 위하여 사용되는 기 디코딩된 주변 샘플들을 증가시킬 수 있다.
예를 들어, 코딩 장치는 상기 인트라 예측 모드(또는 상기 인트라 예측 모드의 예측 방향)을 기반으로 상기 현재 PU의 영역에 위치하는 상기 복수의 TU들의 복원 순서를 변경할 수 있고, 변경된 상기 복원 순서에 따라 순차적으로 상기 현재 PU의 영역에 위치하는 상기 복수의 TU들에 본 발명에 따른 인트라 예측을 수행할 수 있다. 이 경우 인트라 예측 모드들은 복수의 카테고리(category)들로 구분될 수 있으며, 각 카테고리에 따라 지정된 순서에 따른 예측, 변환 및 복원이 수행될 수 있다.
도 5는 방향성 인트라 예측 모드들을 복수의 카테고리들로 구분한 일 예를 예시적으로 나타낸다. 도 5에 도시된 바와 같이 2번 내지 9번 인트라 예측 모드들은 카테고리 1, 10번 내지 26번 인트라 예측 모드들은 카테고리 2, 27번 내지 34번 인트라 예측 모드들은 카테고리 3으로 구분할 수 있다. 한편, 0번 내지 1번 인트라 예측 모드들을 포함하는 비방향성 인트라 예측 모드들은 상기 복수의 카테고리들에 속하지 않을 수도 있고, 또는, 상기 카테고리 2에 속할 수도 있다.
기존 예측 방법과 같이 상기 현재 PU에 대한 인트라 예측 모드의 예측 방향에 관계없이 고정된 방향 (예를 들어 Z 모양의 방향(래스터 스캔 오더))을 사용하여 상기 복수의 TU들을 복원하는 경우, 코딩 장치는 부정확한 주변 샘플들을 참조 샘플로 사용하여 부정확한 예측 샘플들을 생성할 수 있다. 그러나, 본 발명의 경우, 상기 인트라 예측 모드의 예측 방향을 고려하여 상기 복수의 TU들의 디코딩 과정에서 가용한(available) 주변 샘플들이 증가할 수 있도록 복원 순서(또는 변환 순서 또는 디코딩 순서)를 변경할 수 있다. 즉, 코딩 장치는 상기 인트라 예측 모드의 예측 방향을 고려하여 변경된 복원 순서에 따라 순차적으로 상기 현재 PU의 영역에 위치하는 상기 복수의 TU들에 상기 본 발명에 따른 인트라 예측을 수행할 수 있다.
도 6은 상기 인트라 예측 모드가 상기 복수의 카테고리들 중 어느 카테고리에 속하는지에 따라 결정된 상기 복수의 TU들의 변경된 복원 순서의 일 예를 나타낸다. 도 6을 참조하면 상기 인트라 예측 모드가 속하는 카테고리에 따라 변경된 복원 순서를 적용하여 각 TU의 디코딩 과정에서 가용한 주변 샘플들의 수가 늘어날 수 있고, 보다 정확한 예측 샘플을 생성할 수 있다.
도 6의 (a)를 참조하면, 상기 인트라 예측 모드가 상기 카테고리 1에 속하는 경우, 코딩 장치는 상기 복수의 TU들에 변경된 복원 순서를 적용할 수 있다. 구체적으로 상기 카테고리 1에 포함된 인트라 예측 모드가 적용되는 경우, 상기 복수의 TU들은 하단 행에서 순차적으로 위의 행의 순서로 복원되고, 각각의 행에서는 좌단 TU에서 우단 TU의 순서로 순차적으로 복원될 수 있다. 상술한 변경된 복원 순서(또는 변환 순서 또는 디코딩 순서)는 수평적 역 래스터 스캔 오더(horizontally inversed raster scan order)라고 불릴 수 있다.
도 6의 (b)를 참조하면, 상기 인트라 예측 모드가 상기 카테고리 3에 속하는 경우, 코딩 장치는 상기 복수의 TU들에 변경된 복원 순서를 적용할 수 있다. 구체적으로 상기 카테고리 3에 포함된 인트라 예측 모드가 적용되는 경우, 상기 복수의 TU들은 상단 행에서 순차적으로 아래의 행의 순서로 복원되고, 각각의 행에서는 우단 TU에서 좌단 TU의 순서로 순차적으로 복원될 수 있다. 상술한 변경된 복원 순서(또는 변환 순서 또는 디코딩 순서)는 수직적 역 래스터 스캔 오더(vertically inversed raster scan order)라고 불릴 수 있다.
상기 인트라 예측 모드가 상기 카테고리 2에 속하는 경우, 코딩 장치는 상술한 Z 모양의 방향(래스터 스캔 오더)에 따라 상기 복수의 TU들을 복원할 수 있다. 구체적으로 상기 카테고리 2에 포함된 인트라 예측 모드가 적용되는 경우, 상기 복수의 TU들은 상단 행에서 순차적으로 아래의 행의 순서로 복원되고, 각각의 행에서는 좌단 TU에서 우단 TU의 순서로 순차적으로 복원될 수 있다.
상기 본 발명에 따른 인트라 예측은 상술한 내용과 같이 코딩하려는 현재 블록의 인접한 모든 주변 샘플들을 기반으로 상기 현재 블록의 예측 샘플을 생성하므로 상기 주변 샘플들의 정확도와 상기 예측 샘플의 정확도가 비례할 수 있다. 다시 말해, 상기 본 발명에 따른 인트라 예측을 도 6에 도시된 상기 현재 블록의 인트라 예측 모드의 예측 방향에 따라 도시된 변경된 복원 순서를 적용하여 수행하는 경우, 상기 변경된 복원 순서를 통하여 상기 현재 블록의 디코딩 시점에 기 디코딩된 주변 샘플들이 증가할 수 있고, 이를 통하여 코딩 장치는 보다 정확한 예측 샘플을 생성할 수 있다.
도 7은 상기 인트라 예측 모드가 속하는 카테고리에 따라 변경된 복원 순서로 수행되는 상기 복수의 TU들의 상기 본 발명에 따른 인트라 예측의 일 예를 예시적으로 나타낸다.
도 7의 (a)를 참조하면, 상기 인트라 예측 모드가 상기 카테고리 1에 속하는 경우, 코딩 장치는 상기 복수의 TU들을 상기 수평적 역 래스터 스캔 오더로 상기 본 발명에 따른 인트라 예측을 수행할 수 있다. 구체적으로 상기 인트라 예측 모드가 상기 카테고리 1에 속하는 경우, 상기 복수의 TU들은 하단 행에서 순차적으로 위의 행의 순서로 복원되고, 각각의 행에서는 좌단 TU에서 우단 TU의 순서로 순차적으로 복원될 수 있다. 도 7의 (a)에 도시된 바와 같이, 각 TU의 상기 본 발명에 따른 예측 수행에 참조할 수 있는 가용한 주변 샘플들의 수가 증가할 수 있고, 코딩 장치는 보다 정확한 예측 샘플을 생성할 수 있다.
도 7의 (b)를 참조하면, 상기 인트라 예측 모드가 상기 카테고리 3에 속하는 경우, 코딩 장치는 상기 복수의 TU들에 상기 수직적 역 래스터 스캔 오더로 상기 본 발명에 따른 인트라 예측을 수행할 수 있다. 구체적으로 상기 인트라 예측 모드가 상기 카테고리 3에 속하는 경우, 상기 복수의 TU들은 내 상단 행에서 순차적으로 아래의 행의 순서로 복원되고, 각각의 행에서는 우단 TU에서 좌단 TU의 순서로 순차적으로 복원될 수 있다. 도 7의 (b)에 도시된 바와 같이, 각 TU의 상기 본 발명에 따른 인트라 예측 수행에 참조할 수 있는 가용한 주변 샘플들의 수가 증가할 수 있고, 코딩 장치는 보다 정확한 예측 샘플을 생성할 수 있다.
한편, 상술한 본 발명에 따른 인트라 예측을 수행하기 위하여 사용되는 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들 중 상기 현재 블록의 디코딩 시점에 가용하지 않은 샘플들이 존재할 수 있고, 상기 가용하지 않은 샘플들은 구체적으로 예를 들어 다음과 같은 방법을 통하여 도출될 수 있다.
도 8은 상기 본 발명에 따른 인트라 예측을 위한 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들을 나타낸다.
도 8을 참조하면, 현재 블록(800)의 상기 본 발명에 따른 인트라 예측을 위한 주변 샘플들로, 좌측 주변 샘플들(p[-1][2N-1]...p[-1][0]), 좌상측 주변 샘플(p[-1][-1]), 및 상측 주변 샘플들(p[0][-1]...p[2N-1][-1])을 포함하는 상기 제1 주변 샘플들뿐 아니라, 하측 주변 샘플들(p[0][N]...p[N-1][N]), 우하측 주변 샘플(p[N][N]) 및 우측 주변 샘플들(p[N][N-1]...p[N][0])을 포함하는 상기 제2 주변 샘플들이 도출될 수 있다. 여기서 p[m][n]은 샘플 포지션 (m,n)의 샘플(또는 픽셀)을 나타내며, 이는 현재 블록의 좌상단(top-left) 샘플 포지션을 (0, 0)으로 간주하였을 때, 상대적인 샘플 포지션을 나타낼 수 있다. 또한, 여기서 N은 현재 블록(800)의 사이즈를 나타낸다. 상기 N은 현재 블록(800)의 폭(width) 또는 높이(height)에 대응될 수 있다. 현재 블록(800)이 TU인 경우 상기 N은 nTbS라고 나타내어질 수도 있다.
한편, 상기 제1 주변 샘플들(p[-1][2N-1]...p[-1][-1]... p[2N-1][-1]) 중 인트라 예측을 위하여 가용하지 않은 샘플이 있는 경우, 해당 가용하지 않은 샘플은 대체(substitution) 또는 패딩(padding)절차를 통하여 가용한 샘플로 채워질 수 있다. 이 경우, 예를 들어, 상기 가용하지 않은 샘플은 해당 샘플에 인접한 다른 주변 샘플로 대체 또는 패딩될 수 있다.
여기서, 일 예로, 해당 샘플의 위치가 픽처의 외곽에 위치하는 경우에 해당 샘플은 가용하지 않은 샘플일 수 있다. 예를 들어, 현재 블록(800)이 픽처의 엣지(edge)에 위치하는 경우 상기 주변 샘플들 중 일부는 가용하지 않을 수 있다.
다른 예로 해당 샘플을 포함하는 다른 TU가 아직 복원되지 않은 경우에 해당 샘플은 가용하지 않은 샘플일 수 있다.
또한, 대체 또는 패딩 절차는 예를 들어 다음과 같은 순서로 수행될 수 있다.
1) 만약, 주변 샘플 p[-1][2N-1]가 가용하지 않은 경우, 순차적으로 주변 샘플 p[-1][2N-1](또는 주변 샘플 p[-1][2N-2])으로부터 p[-1][-1]까지, 그리고 나서 p[0][-1]부터 p[2N-1][-1]까지 순차적으로 서치를 수행하고, 처음으로 발견된(found) 가용한 주변 샘플의 값을 상기 주변 샘플 p[-1][2N-1]에 할당(assign)할 수 있다.
2) x=-1, y=2N-2부터 x=-1,y=-1까지 순차적으로 서치를 수행하고, 만약 p[x][y]가 가용하지 않은 경우, p[x][y+1]의 값이 상기 가용하지 않은 p[x][y]의 값에 대체된다.
3) x=0, y=-1부터 x=2N-1,y=-1까지 순차적으로 서치를 수행하고, 만약 [x][y]가 가용하지 않은 경우, p[x-1][y]의 값이 상기 가용하지 않은 p[x][y]의 값에 대체된다.
한편, 하측 주변 샘플들(p[0][N]...p[N-1][N]), 우하측 주변 샘플(p[N][N]) 및 우측 주변 샘플들(p[N][N-1]...p[N][0])을 포함하는 상기 제2 주변 샘플들 중 일부 또는 전부가 가용하지 않을 수 있으며, 이 경우 가용하지 않은 샘플은 대체(substitution) 또는 패딩(padding)절차를 통하여 가용한 샘플로 채워질 수 있다.
일 예로, 만약, 하측 주변 샘플들(p[0][N]...p[N-1][N]), 우하측 주변 샘플(p[N][N]) 및 우측 주변 샘플들(p[N][N-1]...p[N][0]) 모두가 가용하지 않은 경우, 주변 샘플 p[-1][N]과 주변 샘플 p[N][-1]의 보간(또는 평균) 또는 샘플 p[-1][2N-1]과 샘플 p[2N-1][-1]의 보간(또는 평균)을 통하여 도출된 값을 샘플 p[N][N]에 할당할 수 있다. 예를 들어, 상기 우하측 주변 샘플은 다음의 수학식을 기반으로 도출될 수 있다.
Figure PCTKR2017001350-appb-M000002
여기서, p[N][N]은 상기 우하측 주변 샘플, p[N][-1]은 상기 주변 샘플 p[N][-1], P[-1][N]은 상기 주변 샘플 p[-1][N]을 나타낸다.
또한, 예를 들어, 상기 우하측 주변 샘플은 다음의 수학식을 기반으로 도출될 수 있다.
Figure PCTKR2017001350-appb-M000003
여기서, p[N][N]은 상기 우하측 주변 샘플, p[2N-1][-1]은 상기 주변 샘플 p[2N-1][-1], P[-1][2N-1]은 상기 주변 샘플 p[-1][2N-1]을 나타낸다.
이 후, 상기 하측 주변 샘플들 및 상기 상측 주변 샘플들은 상기 우하측 주변 샘플과 상기 제1 주변 샘플들을 기반으로 도출될 수 있다. 예를 들어, 상기 하측 주변 샘플들(p[0][N]...p[N-1][N]) 각각에 대하여는 위치에 따라 상기 우하측 주변 샘플 p[N][N]과 주변 샘플 p[-1][N]의 보간을 통하여 도출된 값이 할당될 수 있다. 또한, 우측 주변 샘플들(p[N][N-1]...p[N][0]) 각각에 대하여는 위치에 따라 상기 우하측 주변 샘플 p[N][N]과 주변 샘플 p[N][-1]의 보간을 통하여 도출된 값이 할당될 수 있다.
다른 예로, 상기 하측 주변 샘플들(p[0][N]...p[N-1][N]), 상기 우하측 주변 샘플(p[N][N]) 및 상기 우측 주변 샘플들(p[N][N-1]...p[N][0]) 중 적어도 하나의 샘플이 가용한 경우는 다음과 같은 순서로 대체 또는 패딩 절차가 수행될 수 있다.
1) 만약, 주변 샘플 p[0][N]가 가용하지 않은 경우, 순차적으로 주변 샘플 p[0][N](또는 주변 샘플 p[1][N])으로부터 p[N][N]까지, 그리고 나서 p[N][N-1]부터 p[N][0]까지 순차적으로 서치를 수행하고, 처음으로 발견된(found) 가용한 주변 샘플의 값을 상기 주변 샘플 p[0][N]에 할당할 수 있다.
2) x=1, y=N부터 x=N,y=N까지 순차적으로 서치를 수행하고, 만약 p[x][y]가 가용하지 않은 경우, p[x-1][y]의 값이 상기 가용하지 않은 p[x][y]의 값에 대체된다.
3) x=N, y=N-1부터 x=N,y=0까지 순차적으로 서치를 수행하고, 만약 p[x][y]가 가용하지 않은 경우, p[x][y+1]의 값이 상기 가용하지 않은 p[x][y]의 값에 대체된다. 또는 x=N, y=0부터 x=N,y=N-1까지 순차적으로 서치를 수행하고, 만약 p[x][y]가 가용하지 않은 경우, p[x][y-1]의 값이 상기 가용하지 않은 p[x][y]의 값에 대체될 수도 있다.
한편, 상기 본 발명에 따른 인트라 예측의 정확도를 향상시키기 위하여 상기 복수의 TU들은 정방형 TU들로 도출될 수 있을 뿐 아니라 비정방형 TU들로 도출되어 상기 본 발명에 따른 인트라 예측을 수행할 수 있다. 즉, 상기 복수의 TU들은 현재 CU(Coding Unit)로부터 도출될 수 있고, 상기 복수의 TU들은 정방형 또는 비정방형 TU들로 도출될 수 있다. 상기 비정방형 TU들에 대한 상기 본 발명에 따른 인트라 예측은 구체적으로 예를 들어 다음과 같은 방법을 통하여 수행될 수 있다. 한편, 하나의 PU 영역에 하나의 TU가 위치할 수도 있고, 또는 하나의 PU 영역에 복수의 TU들이 위치할 수도 있다. 즉, 다양한 형태로 현재 CU로부터 하나 이상의 PU 및 복수의 TU들이 도출될 수 있다. 일 예로, 현재 CU로부터 하나의 PU가 도출될 수 있고, 상기 PU의 영역에 복수의 TU들이 위치할 수 있다. 또한, 일 예로, 현재 CU로부터 복수의 PU들 및 복수의 TU들이 도출될 수 있고, 상기 복수의 PU들 각각은 상기 복수의 TU들 각각과 동일 사이즈, 동일 영역에 위치할 수 있다.
도 9는 정방형 TU에 본 발명에 따른 인트라 예측을 수행하기 위하여 생성하는 참조 샘플의 일 예를 예시적으로 나타낸다. 도 9를 참조하면 코딩 장치는 상기 정방형 TU에 상기 본 발명에 따른 인트라 예측을 수행하기 위하여 상기 현재 블록의 하측 주변 샘플들(960), 우하측 주변 샘플(950), 및 우측 주변 샘플들(940)을 포함하는 제2 주변 샘플들을 생성할 수 있다. 다시 말해, 코딩 장치는 상기 현재 블록의 좌측 주변 샘플들(910), 좌상측 주변 샘플(920), 및 상측 주변 샘플들(930)을 포함하는 제1 주변 샘플들을 도출할 수 있고, 상기 제1 주변 샘플들을 기반으로 상기 하측 주변 샘플들(960), 우하측 주변 샘플(950), 및 우측 주변 샘플들(940)을 포함하는 제2 주변 샘플들을 도출할 수 있다. 구체적으로, 예를 들어, 상기 제1 주변 샘플들을 기반으로 상기 우하측 주변 샘플(950)을 먼저 생성할 수 있고, 상기 우하측 주변 샘플(950)을 기반으로 하측 주변 샘플들(960) 및 우측 주변 샘플들(940)을 생성할 수 있다. 일 예로, 상술한 내용과 같이 주변 샘플 p[-1][N]과 주변 샘플 p[N][-1]의 보간(또는 평균) 또는 주변 샘플 p[-1][2N-1]과 주변 샘플 p[2N-1][-1]의 보간(또는 평균)을 통하여 도출된 값을 우하측 주변 샘플 p[N][N]에 할당할 수 있다. 이 후, 하측 주변 샘플들(p[0][N]...p[N-1][N]) 각각에 대하여는 위치에 따라 상기 주변 샘플 p[N][N]과 주변 샘플 p[-1][N]의 보간을 통하여 도출된 값이 할당될 수 있다. 또한, 우측 주변 샘플들(p[N][N-1]...p[N][0]) 각각에 대하여는 위치에 따라 상기 주변 샘플 p[N][N]과 주변 샘플 p[N][-1]의 보간을 통하여 도출된 값이 할당될 수 있다. 여기서 p[m][n]은 샘플 포지션 (m,n)의 샘플(또는 픽셀)을 나타내며, 이는 현재 블록의 좌상단(top-left) 샘플 포지션을 (0, 0)으로 간주하였을 때, 상대적인 샘플 포지션을 나타낼 수 있다. 또한, 여기서 N은 현재 블록의 너비 또는 높이에 대응할 수 있다.
한편, 상기 정방형 TU는 상기 비정방형 TU에 비하여, 상기 우하측 주변 샘플(950)과 상기 주변 샘플 p[-1][N] 및 상기 주변 샘플 p[N][-1] 또는 상기 주변 샘플 p[-1][2N-1] 및 상기 주변 샘플 p[2N-1][-1]과의 거리가 상대적으로 멀어 상기 우하측 주변 샘플의 샘플값이 부정확할 가능성이 있다. 또한, 상기 우하측 주변 샘플(950)을 기반으로 도출되는 우측 주변 샘플들(940) 및 하측 주변 샘플들(960)의 도출되는 샘플값들도 상기 현재 블록이 비정방형 TU인 경우에 비하여 부정확할 수 있다. 상술한 문제를 해결하기 위하여, 코딩 장치는 현재 CU(Coding Unit)로부터 도출되는 상기 복수의 TU들을을 비정방형 TU들로 도출할 수 있고, 상기 비정방형 TU들에 상기 본 발명에 따른 인트라 예측을 수행할 수 있다. 이 경우, 상기 인트라 예측 모드를 고려하여 상기 비정방형 TU들을 도출할 수도 있다.
도 10은 현재 CU로부터 상기 인트라 예측 모드를 고려하여 도출된 복수의 비정방형 TU들의 일 예를 예시적으로 나타낸다.
도 10의 (a)를 참조하면 상기 현재 PU에 대한 인트라 예측 모드가 18번 내지 34번 인트라 예측 모드 중 하나인 경우, 상기 복수의 TU들은 폭(width)이 높이(height)보다 큰 비정방형 TU들로 도출될 수 있다. 상기 18번 내지 34번 인트라 예측 모드는 수직향(vertical-wise) 모드라고 불릴 수 있고, 상기 높이가 폭보다 큰 비정방형 TU는 수평 비정방형 TU라고 불릴 수 있다. 구체적으로, 예를 들어, 상기 현재 CU의 사이즈가 2Nx2N인 경우, 상기 복수의 TU들은 2NxN 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 2NxnU 또는 2NxnD 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 2NxnN 타입의 비정방형 TU들로 도출될 수 있다.
도 9의 (b)를 참조하면 상기 현재 PU에 대한 인트라 예측 모드가 2번 내지 17번 인트라 예측 모드 중 하나인 경우, 상기 복수의 TU들은 높이가 폭보다 큰 비정방형 TU들로 도출될 수 있다. 상기 2번 내지 17번 인트라 예측 모드는 수평향(horizontal-wise) 모드라고 불릴 수 있고, 상기 폭이 높이보다 큰 비정방형 TU는 수직 비정방형 TU라고 불릴 수 있다. 구체적으로, 예를 들어, 상기 현재 CU의 사이즈가 2Nx2N인 경우, 상기 복수의 TU들은 Nx2N 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 nLx2N 타입 또는 nRx2N 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 nNx2N 타입의 비정방형 TU들로 도출될 수 있다.
상기 비정방형 TU인 상기 현재 블록에 상기 본 발명에 따른 인트라 예측을 수행하는 경우, 상기 정방형 TU에 상기 본 발명에 따른 인트라 예측을 수행하는 경우보다 상기 우하측 주변 샘플과 상기 주변 샘플 p[-1][N] 및 상기 주변 샘플 p[N][-1] 또는 상기 주변 샘플 p[-1][2N-1] 및 상기 주변 샘플 p[2N-1][-1]과의 거리가 짧아질 수 있고, 이를 통하여 보다 정확한 우하측 주변 샘플의 샘플값이 도출될 수 있다. 따라서 정방형 TU에 상기 본 발명에 따른 인트라 예측을 수행하는 경우보다 상기 우하측 주변 샘플을 기반으로 도출되는 상기 우측 주변 샘플들 및 하측 주변 샘플들의 샘플값의 정확도를 향상시킬 수 있고, 이를 통하여 상기 현재 블록의 예측 정확도를 향상시킬 수 있다. 상기 인트라 예측 모드를 기반으로 상기 현재 CU로부터 복수의 비정방형 TU들이 도출된 경우, 상기 복수의 비정방형 TU들에 대한 상기 본 발명에 따른 인트라 예측은 구체적으로 다음과 같이 수행될 수 있다.
도 11은 수평으로 긴(horizontally-long) 비정방형 TU에 대한 본 발명에 따른 인트라 예측의 일 예를 예시적으로 나타낸다.
도 11을 참조하면 코딩 장치는 상기 현재 PU에 대한 인트라 예측 모드가 상기 수직향 모드(17번 내지 34번 인트라 예측 모드) 중 하나이고, 현재 CU의 사이즈가 2Nx2N인 경우, 코딩 장치는 상기 현재 CU로부터 4개의 2NxN/2 사이즈의 비정방형 TU들을 도출할 수 있다. 도 11에 도시된 바와 같이 상기 비정방형 TU들은 TU1(1110), TU2(1120), TU3(1130), 및 TU4(1140)를 포함할 수 있다. 상기 TU1(1110)에 상기 본 발명에 따른 인트라 예측을 수행하는 경우, 코딩 장치는 상기 TU1(1110)의 상기 TU1(1110)의 좌측 주변 샘플들, 좌상측 주변 샘플, 및 상측 주변 샘플들을 포함하는 상기 제1 주변 샘플들을 기반으로 상기 TU1(1110)의 우하측 주변 샘플(1150)을 도출할 수 있다. 상기 우하측 주변 샘플(1150)을 도출한 이후, 코딩 장치는 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플(1150)을 기반으로 상기 TU1(1110)의 우측 주변 샘플들을 도출할 수 있고, 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플(1150)을 기반으로 상기 TU1(1110)의 하측 주변 샘플들을 도출할 수 있다. 즉, 코딩 장치는 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플(1150)을 기반으로 상기 하측 주변 샘플들, 상기 우하측 주변 샘플(1150), 및 상기 우측 주변 샘플들을 포함하는 상기 제2 주변 샘플들을 도출할 수 있다. 코딩 장치는 상기 TU1(1110)의 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들을 기반으로 상기 본 발명에 따른 인트라 예측을 수행하여 상기 TU1(1110)의 예측 샘플을 도출할 수 있다. 이 경우, 인코딩 장치는 도출된 예측 샘플을 기반으로 레지듀얼(residual) 신호를 생성할 수 있고, 상기 레지듀얼 신호에 변환, 양자화, 및 엔트로피 인코딩 과정을 수행하여 인코딩할 수 있다. 또한, 인코딩 장치는 상기 TU1(1110)의 레지듀얼 신호에 대해 역양자화 및 역변환을 수행하여 상기 TU1(1110)에 대응하는 복원 블록을 생성할 수 있고, 상기 복원 블록을 기반으로 TU2(1120)의 상기 본 발명에 따른 인트라 예측을 수행할 수 있다.
도 12는 수평으로 긴 비정방형 TU에 대한 본 발명에 따른 인트라 예측의 다른 예를 예시적으로 나타낸다. 본 예는 TU1이 인코딩/디코딩(또는 복원)된 이후에 TU2에 대하여 본 발명에 따른 인트라 예측이 수행되는 예를 나타낸다.
도 12에 도시된 바와 같이 상기 비정방형 TU들은 TU1(1210), TU2(1220), TU3(1230), 및 TU4(1240)를 포함할 수 있다. 상기 TU2(1220)에 상기 본 발명에 따른 인트라 예측을 수행하는 경우, 코딩 장치는 상기 TU2(1220)의 상기 TU2(1220)의 좌측 주변 샘플들, 좌상측 주변 샘플, 및 상측 주변 샘플들을 포함하는 상기 TU2의 제1 주변 샘플들을 기반으로 상기 TU2(1220)의 우하측 주변 샘플(1250)을 도출할 수 있다. 상기 제1 주변 샘플들은 상기 TU2(1220)의 디코딩 시점에 기 디코딩된 TU1(1210)의 복원 샘플들을 포함할 수 있다. 상기 우하측 주변 샘플(1250)을 도출한 이후, 코딩 장치는 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플(1250)을 기반으로 상기 TU2(1220)의 우측 주변 샘플들을 도출할 수 있고, 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플(1250)을 기반으로 상기 TU2(1220)의 하측 주변 샘플들을 도출할 수 있다. 즉, 코딩 장치는 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플(1250)을 기반으로 상기 하측 주변 샘플들, 상기 우하측 주변 샘플(1250), 및 상기 우측 주변 샘플들을 포함하는 제2 주변 샘플들을 도출할 수 있다. 코딩 장치는 상기 TU2(1220)의 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들을 기반으로 상기 본 발명에 따른 인트라 예측을 수행하여 상기 TU2(1220)의 예측 샘플을 도출할 수 있다.
상술한 도 11 및 도 12에서 도시된 방법은 수직으로 긴(vertically-long) 비정방형 TU에 대한 상기 본 발명에 따른 인트라 예측을 수행하는데 유사하게 적용될 수 있고, 이를 통하여 상기 현재 블록의 예측 정확도를 향상시킬 수 있다.
도 13은 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다. 도 13에서 개시된 방법은 도 1에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 13의 S1300 내지 S1310은 상기 인코딩 장치의 예측부에 의하여 수행될 수 있고, S1320은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.
인코딩 장치는 현재 PU(Prediction Unit)에 대한 인트라 예측 모드를 도출한다(S1300). 인코딩 장치는 다양한 인트라 예측 모드들을 수행하여 최적의 RD 코스트를 갖는 인트라 예측 모드를 상기 현재 PU에 대한 인트라 예측 모드로 도출할 수 있다. 상기 인트라 예측 모드는 2개의 비방향성 예측 모드들과 33개의 방향성 예측 모드들 중 하나일 수 있다. 상기 2개의 비방향성 예측 모드들은 인트라 DC 모드 및 인트라 플래너 모드를 포함할 수 있음은 상술한 바와 같다.
한편, 현재 블록은 상기 현재 PU의 영역에 위치하는 복수의 TU(transform unit)들 중 하나일 수 있고, 상기 현재 PU에 대한 인트라 예측 모드는 상기 현재 블록에 대한 인트라 예측 모드로 도출될 수 있다.
인코딩 장치는 상기 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU들에 대한 복원을 수행한다(S1310). 인코딩 장치는 상기 복수의 TU들 각각에 대하여 인트라 예측을 수행하여 예측 샘플을 생성할 수 있고, 상기 예측 샘플을 기반으로 각각의 TU를 복원할 수 있다.
예를 들어, 인코딩 장치는 상기 복수의 TU들 중 하나인 현재 블록의 좌측 주변 샘플들, 좌상측 주변 샘플, 상측 주변 샘플들을 포함하는 제1 주변 샘플들을 도출할 수 있다. 상기 제1 주변 샘플들은 상기 현재 블록의 디코딩 시점에 이미 복원된 샘플들일 수 있다.
한편, 상기 제1 주변 샘플들(p[-1][2N-1]...p[-1][-1]... p[2N-1][-1]) 중 가용하지 않은(not available) 샘플이 있는 경우, 해당 가용하지 않은 샘플은 대체(substitution) 또는 패딩(padding)절차를 통하여 가용한 샘플로 채워질 수 있다. 이 경우, 예를 들어, 상기 가용하지 않은 샘플은 해당 샘플에 인접한 다른 주변 샘플로 대체 또는 패딩될 수 있다. 상기 현재 블록의 사이즈가 NxN이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][2N-1] 내지 p[-1][0], 상기 좌하측 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[2N-1][-1]일 수 있다.
일 예로, 주변 샘플 p[-1][2N-1]가 가용하지 않은 경우, 순차적으로 주변 샘플 p[-1][2N-1](또는 주변 샘플 p[-1][2N-2])으로부터 p[-1][-1]까지, 그리고 나서 p[0][-1]부터 p[2N-1][-1]까지 순차적으로 서치를 수행할 수 있고, 처음으로 발견된(found) 가용한 주변 샘플의 값을 상기 주변 샘플 p[-1][2N-1]에 할당(assign)할 수 있다. 또한, x=-1, y=2N-2부터 x=-1,y=-1까지 순차적으로 서치를 수행할 수 있고, p[x][y]가 가용하지 않은 경우, p[x][y+1]의 값이 상기 가용하지 않은 p[x][y]의 값으로 대체될 수 있다. 또한, x=0, y=-1부터 x=2N-1,y=-1까지 순차적으로 서치를 수행할 수 있고, p[x][y]가 가용하지 않은 경우, p[x-1][y]의 값이 상기 가용하지 않은 p[x][y]의 값으로 대체될 수 있다.
인코딩 장치는 상기 제1 주변 샘플들을 기반으로 상기 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플 및 하측 주변 샘플들을 포함하는 제2 주변 샘플들을 도출할 수 있다. 상기 현재 블록의 샘플 사이즈가 N×N이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 하측 주변 샘플들은 p[0][N] 내지 p[N-1][N], 상기 우하측 주변 샘플은 p[N][N], 상기 우측 주변 샘플들은 p[N][N-1] 내지 p[N][0]일 수 있다.
일 예로, 인코딩 장치는 상기 제1 주변 샘플들 중 주변 샘플 p[-1][N]와 주변 샘플 p[N][-1]를 기반으로 상기 우하측 주변 샘플을 도출할 수 있다. 구체적으로, 예를 들어, 인코딩 장치는 상기 주변 샘플 p[-1][N]와 상기 주변 샘플 p[N][-1]의 보간(interpolation)을 통하여 상기 우하측 주변 샘플을 도출할 수 있다. 또한, 예를 들어, 인코딩 장치는 상기 주변 샘플 p[-1][N]와 상기 주변 샘플 p[N][-1]의 평균을 통하여 상기 우하측 주변 샘플을 도출할 수 있다. 또한, 예를 들어, 인코딩 장치는 상술한 수학식 2를 기반으로 상기 주변 샘플 p[-1][N] 및 상기 주변 샘플 p[N][-1]로부터 상기 우하측 주변 샘플을 도출할 수 있다.
다른 예로, 인코딩 장치는 상기 제1 주변 샘플들 중 주변 샘플 p[-1][2N-1]와 주변 샘플 p[2N-1][-1]을 기반으로 상기 우하측 주변 샘플을 도출할 수 있다. 구체적으로, 예를 들어, 인코딩 장치는 상기 주변 샘플 p[-1][2N-1]와 상기 주변 샘플 p[2N-1][-1]의 보간을 통하여 상기 우하측 주변 샘플을 도출할 수 있다. 또한, 예를 들어, 인코딩 장치는 상기 주변 샘플 p[-1][2N-1]와 상기 주변 샘플 p[2N-1][-1]의 평균을 통하여 상기 우하측 주변 샘플을 도출할 수 있다. 또한, 예를 들어, 인코딩 장치는 상술한 수학식 3을 기반으로 상기 주변 샘플 p[-1][2N-1] 및 상기 주변 샘플 p[2N-1][-1]로부터 상기 우하측 주변 샘플을 도출할 수 있다.
상기 현재 블록의 상기 우하측 주변 샘플이 도출된 경우, 인코딩 장치는 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플을 기반으로 상기 현재 블록의 상기 하측 주변 샘플들을 도출할 수 있다. 예를 들어, 인코딩 장치는 상기 우하측 주변 샘플과 상기 제1 주변 샘플들 중 주변 샘플 p[-1][N]의 보간을 통하여 상기 하측 주변 샘플들의 샘플값들을 도출할 수 있다. 또한, 인코딩 장치는 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플을 기반으로 상기 현재 블록의 상기 우측 주변 샘플들을 도출할 수 있다. 예를 들어, 인코딩 장치는 상기 우하측 주변 샘플과 상기 제1 주변 샘플들 중 주변 샘플 p[N][-1]의 보간을 통하여 상기 우측 주변 샘플들을 도출할 수 있다.
다음으로, 인코딩 장치는 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들 중 상기 인트라 예측 모드의 예측 방향에 위치하는 제1 참조 샘플 및 상기 예측 방향의 반대 방향에 위치하는 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다. 예를 들어, 인코딩 장치는 상기 제1 참조 샘플과 상기 제2 참조 샘플의 보간을 통하여 상기 현재 블록의 상기 예측 샘플을 도출할 수 있다. 또한, 예를 들어, 인코딩 장치는 상술한 수학식 1을 기반으로 상기 제1 참조 샘플 및 상기 제2 참조 샘플로부터 상기 예측 샘플을 도출할 수 있다.
인코딩 장치는 상기 예측 샘플을 기반으로 상기 현재 블록을 복원할 수 있다. 인코딩 장치는 상기 현재 블록에 대한 레지듀얼 샘플을 생성할 수 있고, 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 상기 현재 블록을 복원할 수 있다.
한편, 상기 현재 PU의 영역에 위치하는 상기 복수의 TU들의 복원 순서는 상기 현재 PU에 대한 인트라 예측 모드를 기반으로 결정될 수 있다. 상기 현재 PU에 대한 상기 인트라 예측 모드는 예를 들어 0번 내지 34번의 인트라 예측 모드들 중 하나일 수 있고, 상기 0번 및 상기 1번 인트라 예측 모드는 비방향성 인트라 예측 모드들일 수 있고, 상기 2번 내지 상기 34번의 인트라 예측 모드는 방향성 인트라 예측 모드들일 수 있다.
일 예로, 상기 방향성 인트라 예측 모드들은 복수의 카테고리들로 구분될 수 있고, 상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 복수의 카테고리들 중 어느 카테고리에 속하는지에 따라서 상기 복수의 TU들의 상기 복원 순서가 결정될 수 있다. 여기서, 예를 들어, 상기 복수의 카테고리들은 카테고리 1, 카테고리 2, 및 카테고리 3을 포함할 수 있고, 상기 2번 내지 9번 인트라 예측 모드들은 상기 카테고리 1, 10번 내지 26번 인트라 예측 모드들은 상기 카테고리 2, 27번 내지 34번 인트라 예측 모드들은 상기 카테고리 3에 속할 수 있다. 한편, 상기 비방항성 인트라 예측 모드들은 상기 복수의 카테고리들에 속하지 않을 수도 있고, 상기 카테고리 2에 속할 수도 있다.
상기 인트라 예측 모드들을 상기 복수의 카테고리들로 구분하고, 상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 카테고리 1에 속하는 경우, 예를 들어, 상기 복수의 TU들의 상기 복원 순서는 수평적 역 래스터 스캔 오더(horizontally inversed raster scan order)로 결정될 수 있다. 또한, 상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 카테고리 2에 속하는 경우, 예를 들어, 상기 복수의 TU들의 상기 복원 순서는 래스터 스캔 오더(raster scan order)로 결정될 수 있다. 또한, 상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 카테고리 3에 속하는 경우, 예를 들어, 상기 복수의 TU들의 상기 복원 순서는 수직적 역 래스터 스캔 오더(vertically inversed raster scan order)로 결정될 수 있다.
다른 예로, 상기 현재 PU에 대한 인트라 예측 모드가 2번 내지 9번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 하단 행에서 순차적으로 위의 행의 순서로 복원될 수 있고, 각각의 행에서는 좌단 TU에서 우단 TU의 순서로 순차적으로 복원될 수 있다. 또한, 상기 현재 PU에 대한 인트라 예측 모드가 27번 내지 34번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 상단 행에서 순차적으로 아래의 행의 순서로 복원될 수 있고, 각각의 행에서는 우단 TU에서 좌단 TU의 순서로 순차적으로 복원될 수 있다. 또한, 상기 현재 PU에 대한 인트라 예측 모드가 10번 내지 26번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 상단 행에서 순차적으로 아래의 행의 순서로 복원될 수 있고, 각각의 행에서는 좌단 TU에서 우단 TU의 순서로 순차적으로 복원될 수 있다.
한편, 상기 복수의 TU들은 상기 현재 PU에 대한 인트라 예측 모드를 기반으로 현재 CU(Coding Unit)로부터 정방형 TU들 또는 비정방형 TU들로 도출될 수 있다.
일 예로, 상기 현재 PU에 대한 상기 인트라 예측 모드가 18번 내지 34번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 폭(width)이 높이(height)보다 큰 비정방형 TU들로 도출될 수 있다. 구체적으로, 예를 들어, 상기 현재 CU의 사이즈가 2Nx2N인 경우, 상기 복수의 TU들은 2NxN 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 2NxnU 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 2NxnD 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 2NxnN 타입의 비정방형 TU들로 도출될 수 있다. 예를 들어, 상기 복수의 TU들은 각각 2NxN/2 사이즈의 비정방형 TU로 도출될 수 있다.
또한, 다른 예로, 상기 현재 PU에 대한 인트라 예측 모드가 2번 내지 17번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 높이가 폭보다 큰 비정방형 TU들로 도출될 수 있다. 구체적으로, 예를 들어, 상기 현재 CU의 사이즈가 2Nx2N인 경우, 상기 복수의 TU들은 Nx2N 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 nLx2N 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 nRx2N 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 nNx2N 타입의 비정방형 TU들로 도출될 수 있다. 예를 들어, 상기 복수의 TU들은 각각 N/2x2N 사이즈의 비정방형 TU로 도출될 수 있다.
인코딩 장치는 상기 현재 PU에 대한 인트라 예측 모드에 관한 정보를 인코딩하여 출력한다(S1320). 인코딩 장치는 상기 현재 PU에 대한 인트라 예측 모드에 관한 정보를 인코딩하여 비트스트림 형태로 출력할 수 있다. 인코딩 장치는 상기 인트라 예측 모드를 나타내는 인트라 예측 모드에 관한 정보를 생성하고, 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 인트라 예측 모드에 관한 정보는 상기 현재 PU에 대한 인트라 예측 모드를 직접적으로 가리키는 정보를 포함할 수도 있고, 또는 상기 현재 PU의 좌측 또는 상측 블록의 인트라 예측 모드를 기반으로 도출된 인트라 예측 모드 후보 리스트 중에서 어느 하나의 후보를 가리키는 정보를 포함할 수도 있다.
한편, 비록 도면에서 도시되지는 않았으나 인코딩 장치는 상기 현재 블록에 대한 레지듀얼(residual) 정보를 생성하고, 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 레지듀얼 정보는 상기 현재 블록의 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다. 상기 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다.
도 14는 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다. 도 14에서 개시된 방법은 도 2에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, S1400 내지 S1410은 상기 디코딩 장치의 예측부에 의하여 수행될 수 있다.
디코딩 장치는 수신한 비트스트림을 기반으로 현재 PU에 대한 인트라 예측 모드를 도출한다(S1400). 디코딩 장치는 비트스트림을 통하여 상기 현재 PU에 대한 인트라 예측 모드에 관한 정보를 획득할 수 있다. 디코딩 장치는 상기 인트라 예측 모드에 관한 정보를 기반으로 상기 현재 PU에 대한 상기 인트라 예측 모드를 도출할 수 있다. 상기 인트라 예측 모드에 관한 정보는 상기 현재 PU에 대한 인트라 예측 모드를 직접적으로 가리키는 정보를 포함할 수도 있고, 또는 상기 현재 PU의 좌측 또는 상측 블록의 인트라 예측 모드를 기반으로 도출된 인트라 예측 모드 후보 리스트 중에서 어느 하나의 후보를 가리키는 정보를 포함할 수도 있다. 상기 현재 PU에 대한 상기 인트라 예측 모드는 예를 들어 0번 내지 34번의 인트라 예측 모드들 중 하나일 수 있고, 상기 0번 및 상기 1번 인트라 예측 모드는 비방향성 인트라 예측 모드들일 수 있고, 상기 2번 내지 상기 34번의 인트라 예측 모드는 방향성 인트라 예측 모드들일 수 있다. 상기 2개의 비방향성 인트라 예측 모드들은 인트라 DC 모드 및 인트라 플래너 모드를 포함할 수 있음은 상술한 바와 같다.
한편, 상기 현재 블록은 상기 현재 PU의 영역에 위치하는 복수의 TU(transform unit)들 중 하나일 수 있고, 상기 현재 PU에 대한 인트라 예측 모드는 상기 현재 블록에 대한 인트라 예측 모드로 도출될 수 있다.
디코딩 장치는 상기 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU들에 대한 복원을 수행한다(S1410). 디코딩 장치는 상기 복수의 TU들 각각에 대하여 인트라 예측을 수행하여 예측 샘플을 생성할 수 있고, 상기 예측 샘플을 기반으로 각각의 TU를 복원할 수 있다.
예를 들어, 디코딩 장치는 상기 복수의 TU들 중 하나인 현재 블록의 좌측 주변 샘플들, 좌상측 주변 샘플, 상측 주변 샘플들을 포함하는 제1 주변 샘플들을 도출할 수 있다. 상기 제1 주변 샘플들은 이미 복원된 샘플들일 수 있다.
한편, 상기 제1 주변 샘플들(p[-1][2N-1]...p[-1][-1]... p[2N-1][-1]) 중 가용하지 않은(not available)한 샘플이 있는 경우, 해당 가용하지 않은 샘플은 대체(substitution) 또는 패딩(padding)절차를 통하여 가용한 샘플로 채워질 수 있다. 이 경우, 예를 들어, 상기 가용하지 않은 샘플은 해당 샘플에 인접한 다른 주변 샘플로 대체 또는 패딩될 수 있다. 상기 현재 블록의 사이즈가 NxN이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][2N-1] 내지 p[-1][0], 상기 좌하측 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[2N-1][-1]일 수 있다.
일 예로, 주변 샘플 p[-1][2N-1]가 가용하지 않은 경우, 순차적으로 주변 샘플 p[-1][2N-1](또는 주변 샘플 p[-1][2N-2])으로부터 p[-1][-1]까지, 그리고 나서 p[0][-1]부터 p[2N-1][-1]까지 순차적으로 서치를 수행할 수 있고, 처음으로 발견된(found) 가용한 주변 샘플의 값을 상기 주변 샘플 p[-1][2N-1]에 할당(assign)할 수 있다. 또한, x=-1, y=2N-2부터 x=-1,y=-1까지 순차적으로 서치를 수행할 수 있고, p[x][y]가 가용하지 않은 경우, p[x][y+1]의 값이 상기 가용하지 않은 p[x][y]의 값으로 대체될 수 있다. 또한, x=0, y=-1부터 x=2N-1,y=-1까지 순차적으로 서치를 수행할 수 있고, p[x][y]가 가용하지 않은 경우, p[x-1][y]의 값이 상기 가용하지 않은 p[x][y]의 값으로 대체될 수 있다.
디코딩 장치는 상기 제1 주변 샘플들을 기반으로 상기 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플 및 하측 주변 샘플들을 포함하는 제2 주변 샘플들을 도출할 수 있다. 상기 현재 블록의 샘플 사이즈가 N×N이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 하측 주변 샘플들은 p[0][N] 내지 p[N-1][N], 상기 우하측 주변 샘플은 p[N][N], 상기 우측 주변 샘플들은 p[N][N-1] 내지 p[N][0]일 수 있다.
일 예로, 디코딩 장치는 상기 제1 주변 샘플들 중 주변 샘플 p[-1][N]와 주변 샘플 p[N][-1]를 기반으로 상기 우하측 주변 샘플을 도출할 수 있다. 구체적으로, 예를 들어, 디코딩 장치는 상기 주변 샘플 p[-1][N]와 상기 주변 샘플 p[N][-1]의 보간(interpolation)을 통하여 상기 우하측 주변 샘플을 도출할 수 있다. 또한, 예를 들어, 디코딩 장치는 상기 주변 샘플 p[-1][N]와 상기 주변 샘플 p[N][-1]의 평균을 통하여 상기 우하측 주변 샘플을 도출할 수 있다. 또한, 예를 들어, 디코딩 장치는 상술한 수학식 2를 기반으로 상기 주변 샘플 p[-1][N] 및 상기 주변 샘플 p[N][-1]로부터 상기 우하측 주변 샘플을 도출할 수 있다.
다른 예로, 디코딩 장치는 상기 제1 주변 샘플들 중 주변 샘플 p[-1][2N-1]와 주변 샘플 p[2N-1][-1]을 기반으로 상기 우하측 주변 샘플을 도출할 수 있다. 구체적으로, 예를 들어, 디코딩 장치는 상기 주변 샘플 p[-1][2N-1]와 상기 주변 샘플 p[2N-1][-1]의 보간을 통하여 상기 우하측 주변 샘플을 도출할 수 있다. 또한, 예를 들어, 디코딩 장치는 상기 주변 샘플 p[-1][2N-1]와 상기 주변 샘플 p[2N-1][-1]의 평균을 통하여 상기 우하측 주변 샘플을 도출할 수 있다. 또한, 예를 들어, 디코딩 장치는 상술한 수학식 3을 기반으로 상기 주변 샘플 p[-1][2N-1] 및 상기 주변 샘플 p[2N-1][-1]로부터 상기 우하측 주변 샘플을 도출할 수 있다.
상기 현재 블록의 상기 우하측 주변 샘플이 도출된 경우, 디코딩 장치는 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플을 기반으로 상기 현재 블록의 상기 하측 주변 샘플들을 도출할 수 있다. 예를 들어, 디코딩 장치는 상기 우하측 주변 샘플과 상기 제1 주변 샘플들 중 주변 샘플 p[-1][N]의 보간을 통하여 상기 하측 주변 샘플들의 샘플값들을 도출할 수 있다. 또한, 디코딩 장치는 상기 제1 주변 샘플들 및 상기 우하측 주변 샘플을 기반으로 상기 현재 블록의 상기 우측 주변 샘플들을 도출할 수 있다. 예를 들어, 디코딩 장치는 상기 우하측 주변 샘플과 상기 제1 주변 샘플들 중 주변 샘플 p[N][-1]의 보간을 통하여 상기 우측 주변 샘플들을 도출할 수 있다.
다음으로, 디코딩 장치는 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들 중 상기 인트라 예측 모드의 예측 방향에 위치하는 제1 참조 샘플 및 상기 예측 방향의 반대 방향에 위치하는 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다. 예를 들어, 디코딩 장치는 상기 제1 참조 샘플과 상기 제2 참조 샘플의 보간을 통하여 상기 현재 블록의 상기 예측 샘플을 도출할 수 있다. 또한, 디코딩 장치는 상술한 수학식 1을 기반으로 상기 제1 참조 샘플 및 상기 제2 참조 샘플로부터 상기 예측 샘플을 도출할 수 있다.
디코딩 장치는 상기 예측 샘플을 기반으로 상기 현재 블록을 복원할 수 있다. 디코딩 장치는 비트스트림으로부터 상기 현재 블록에 대한 레지듀얼(residual) 정보를 수신할 수 있다. 상기 레지듀얼 정보는 상기 현재 블록의 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다.
디코딩 장치는 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플(또는 레지듀얼 샘플 어레이)을 도출할 수 있다. 디코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 샘플을 생성할 수 있고, 상기 복원 샘플을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 디코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다.
한편, 상기 현재 PU의 영역에 위치하는 상기 복수의 TU들의 복원 순서는 상기 현재 PU에 대한 인트라 예측 모드를 기반으로 결정될 수 있다. 상기 현재 PU에 대한 상기 인트라 예측 모드는 0번 내지 34번의 인트라 예측 모드들 중 하나일 수 있고, 상기 0번 및 상기 1번 인트라 예측 모드는 비방향성 인트라 예측 모드들일 수 있고, 상기 2번 내지 상기 34번의 인트라 예측 모드는 방향성 인트라 예측 모드들일 수 있다.
일 예로, 상기 방향성 인트라 예측 모드들은 복수의 카테고리들로 구분될 수 있고, 상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 복수의 카테고리들 중 어느 카테고리에 속하는지에 따라서 상기 복수의 TU들의 상기 복원 순서가 결정될 수 있다. 여기서, 예를 들어, 상기 복수의 카테고리들은 카테고리 1, 카테고리 2, 및 카테고리 3을 포함할 수 있고, 상기 2번 내지 9번 인트라 예측 모드들은 상기 카테고리 1, 10번 내지 26번 인트라 예측 모드들은 상기 카테고리 2, 27번 내지 34번 인트라 예측 모드들은 상기 카테고리 3에 속할 수 있다. 한편, 상기 비방항성 인트라 예측 모드들은 상기 복수의 카테고리들에 속하지 않을 수도 있고, 상기 카테고리 2에 속할 수도 있다.
상기 인트라 예측 모드들을 상기 복수의 카테고리들로 구분하고, 상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 카테고리 1에 속하는 경우, 상기 복수의 TU들의 상기 복원 순서는 수평적 역 래스터 스캔 오더(horizontally inversed raster scan order)로 결정될 수 있다. 또한, 상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 카테고리 2에 속하는 경우, 상기 복수의 TU들의 상기 복원 순서는 래스터 스캔 오더(raster scan order)로 결정될 수 있다. 또한, 상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 카테고리 3에 속하는 경우, 상기 복수의 TU들의 상기 복원 순서는 수직적 역 래스터 스캔 오더(vertically inversed raster scan order)로 결정될 수 있다.
다른 예로, 상기 현재 PU에 대한 인트라 예측 모드가 2번 내지 9번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 하단 행에서 순차적으로 위의 행의 순서로 복원될 수 있고, 각각의 행에서는 좌단 TU에서 우단 TU의 순서로 순차적으로 복원될 수 있다. 또한, 상기 현재 PU에 대한 인트라 예측 모드가 27번 내지 34번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 상단 행에서 순차적으로 아래의 행의 순서로 복원될 수 있고, 각각의 행에서는 우단 TU에서 좌단 TU의 순서로 순차적으로 복원될 수 있다. 또한, 상기 현재 PU에 대한 인트라 예측 모드가 10번 내지 26번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 상단 행에서 순차적으로 아래의 행의 순서로 복원될 수 있고, 각각의 행에서는 좌단 TU에서 우단 TU의 순서로 순차적으로 복원될 수 있다.
한편, 상기 복수의 TU들은 상기 현재 PU에 대한 인트라 예측 모드를 기반으로 현재 CU(Coding Unit)로부터 정방형 TU들 또는 비정방형 TU들로 도출될 수 있다.
일 예로, 상기 현재 PU에 대한 상기 인트라 예측 모드가 18번 내지 34번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 폭(width)이 높이(height)보다 큰 비정방형 TU들로 도출될 수 있다. 구체적으로, 예를 들어, 상기 현재 CU의 사이즈가 2Nx2N인 경우, 상기 복수의 TU들은 2NxN 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 2NxnU 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 2NxnD 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 2NxnN 타입의 비정방형 TU들로 도출될 수 있다. 예를 들어, 상기 복수의 TU들은 각각 2NxN/2 사이즈의 비정방형 TU로 도출될 수 있다.
또한, 다른 예로, 상기 현재 PU에 대한 인트라 예측 모드가 2번 내지 17번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 높이가 폭보다 큰 비정방형 TU들로 도출될 수 있다. 구체적으로, 예를 들어, 상기 현재 CU의 사이즈가 2Nx2N인 경우, 상기 복수의 TU들은 Nx2N 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 nLx2N 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 nRx2N 타입의 비정방형 TU들로 도출될 수 있다. 또한, 상기 복수의 TU들은 nNx2N 타입의 비정방형 TU들로 도출될 수 있다. 예를 들어, 상기 복수의 TU들은 각각 N/2x2N 사이즈의 비정방형 TU로 도출될 수 있다. 상술한 본 발명에 따르면 현재 블록의 제1 주변 샘플들 및 제2 주변 샘플들을 기반으로 인트라 예측을 수행할 수 있고, 이를 통하여 상기 현재 블록에 대한 인트라 예측의 예측 정확도를 향상시킬 수 있다.
또한, 본 발명에 따르면 상기 현재 PU에 대한 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU들의 복원 순서를 변경할 수 있고, 이를 통하여 상기 현재 블록에 대한 인트라 예측의 예측 정확도를 향상시킬 수 있다.
또한, 본 발명에 따르면 현재 CU로부터 비정방형 TU들을 도출할 수 있고, 이를 통하여 상기 현재 블록에 대한 인트라 예측의 예측 정확도를 향상시킬 수 있다.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다.

Claims (15)

  1. 디코딩 장치에 의하여 수행되는 비디오 디코딩 방법에 있어서,
    수신한 비트스트림을 기반으로 현재 PU(Prediction Unit)에 대한 인트라 예측 모드를 도출하는 단계; 및
    상기 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU(Transform Unit)들에 대한 복원을 수행하는 단계를 포함하되,
    상기 복원을 수행하는 단계는:
    상기 복수의 TU들 중 하나인 현재 블록의 좌측 주변 샘플들, 좌상측 주변 샘플 및 상측 주변 샘플들을 포함하는 제1 주변 샘플들을 도출하는 단계;
    상기 제1 주변 샘플들을 기반으로 상기 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플 및 하측 주변 샘플들을 포함하는 제2 주변 샘플들을 도출하는 단계;
    상기 제1 주변 샘플들 및 상기 제2 주변 샘플들 중 상기 인트라 예측 모드의 예측 방향에 위치하는 제1 참조 샘플 및 상기 예측 방향의 반대 방향에 위치하는 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출하는 단계; 및
    상기 예측 샘플을 기반으로 상기 대상 블록을 복원하는 단계를 포함하는 것을 특징으로 하는 디코딩 방법.
  2. 제1항에 있어서,
    상기 현재 블록의 상기 예측 샘플은 상기 제1 참조 샘플과 상기 제2 참조 샘플을 기반으로 도출되는 것을 특징으로 하는 디코딩 방법.
  3. 제1항에 있어서,
    상기 현재 블록의 상기 예측 샘플은 다음의 수학식을 기반으로 도출되고,
    Figure PCTKR2017001350-appb-I000002
    여기서, predSample은 상기 현재 블록의 예측 샘플, predSample0은 상기 제1 참조 샘플, predSample1은 상기 제2 참조 샘플, d0는 상기 예측 샘플과 상기 제1 참조 샘플간의 거리, d1는 상기 예측 샘플과 상기 제2 참조 샘플간의 거리를 나타내는 것을 특징으로 하는 디코딩 방법.
  4. 제1항에 있어서,
    상기 현재 블록의 샘플 사이즈가 N×N이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 우하측 주변 샘플은 주변 샘플 p[-1][N]과 주변 샘플 p[N][-1]의 보간을 통하여 도출되는 것을 특징으로 하는 디코딩 방법.
  5. 제1항에 있어서,
    상기 현재 PU의 영역에 위치하는 상기 복수의 TU들은 순차적으로 복원되되, 상기 복수의 TU들의 복원 순서는 상기 현재 PU에 대한 상기 인트라 예측 모드를 기반으로 결정되는 것을 특징으로 하는 디코딩 방법.
  6. 제5항에 있어서,
    상기 현재 PU에 대한 상기 인트라 예측 모드는 0번 내지 34번의 인트라 예측 모드들 중 하나이고, 상기 0번 및 상기 1번 인트라 예측 모드는 비방향성 인트라 예측 모드들이고, 상기 2번 내지 상기 34번의 인트라 예측 모드는 방향성 인트라 예측 모드들이고,
    상기 방향성 인트라 예측 모드들은 복수의 카테고리들로 구분되며,
    상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 복수의 카테고리들 중 어느 카테고리에 속하는지에 따라서 상기 복수의 TU들의 상기 복원 순서가 결정되는 것을 특징으로 하는 디코딩 방법.
  7. 제6항에 있어서,
    상기 복수의 카테고리들은 카테고리 1, 카테고리 2 및 카테고리 3을 포함하고,
    상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 카테고리 1에 속하는 경우, 상기 복수의 TU들의 상기 복원 순서는 수평적 역 래스터 스캔 오더(horizontally inversed raster scan order)로 결정되고,
    상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 카테고리 2에 속하는 경우, 상기 복수의 TU들의 상기 복원 순서는 래스터 스캔 오더(raster scan order)로 결정되고,
    상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 카테고리 3에 속하는 경우, 상기 복수의 TU들의 상기 복원 순서는 수직적 역 래스터 스캔 오더(vertically inversed raster scan order)로 결정되는 것을 특징으로 하는 디코딩 방법.
  8. 제5항에 있어서,
    상기 현재 PU에 대한 상기 인트라 예측 모드는 0번 내지 34번의 인트라 예측 모드들 중 하나이고, 상기 0번 및 상기 1번 인트라 예측 모드는 비방향성 인트라 예측 모드들이고, 상기 2번 내지 상기 34번의 인트라 예측 모드는 방향성 인트라 예측 모드들이고,
    상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 2번 내지 상기 9번 인트라 예측 모드들 중 하나인 경우,
    상기 복수의 TU들은 하단 행에서 순차적으로 위의 행의 순서로 복원되고, 각각의 행에서는 좌단 TU에서 우단 TU의 순서로 순차적으로 복원되는 것을 특징으로 하는 디코딩 방법.
  9. 제5항에 있어서,
    상기 현재 PU에 대한 상기 인트라 예측 모드는 0번 내지 34번의 인트라 예측 모드들 중 하나이고, 상기 0번 및 상기 1번 인트라 예측 모드는 비방향성 인트라 예측 모드들이고, 상기 2번 내지 상기 34번의 인트라 예측 모드는 방향성 인트라 예측 모드들이고,
    상기 현재 PU에 대한 상기 인트라 예측 모드가 상기 27번 내지 상기 34번 인트라 예측 모드들 중 하나인 경우,
    상기 복수의 TU들은 상단 행에서 순차적으로 아래의 행의 순서로 복원되고, 각각의 행에서는 우단 TU에서 좌단 TU의 순서로 순차적으로 복원되는 것을 특징으로 하는 디코딩 방법.
  10. 제1항에 있어서,
    상기 복수의 TU들은 현재 CU(Coding Unit)로부터 도출되고,
    상기 인트라 예측 모드가 2번 내지 17번 인트라 예측 모드 중 하나인 경우, 상기 복수의 TU들은 높이(height)가 폭(width)보다 큰 비정방형 TU들로 도출되는 것을 특징으로 하는 디코딩 방법.
  11. 제10항에 있어서,
    상기 현재 CU의 사이즈가 2Nx2N인 경우,
    상기 복수의 TU들은 Nx2N 타입의 비정방형 TU들로 도출되는 것을 특징으로 하는 디코딩 방법.
  12. 제10항에 있어서,
    상기 현재 CU의 사이즈가 2Nx2N인 경우,
    상기 복수의 TU들은 nLx2N 타입 또는 nRx2N 타입의 비정방형 TU들로 도출되는 것을 특징으로 하는 디코딩 방법.
  13. 제1항에 있어서,
    상기 복수의 TU들은 현재 CU(Coding Unit)로부터 도출되고,
    상기 인트라 예측 모드가 18번 내지 34번 인트라 예측 모드들 중 하나인 경우, 상기 복수의 TU들은 폭(width)이 높이(height)보다 큰 비정방형 TU들로 도출되는 것을 특징으로 하는 디코딩 방법.
  14. 제11항에 있어서,
    상기 현재 CU의 사이즈가 2Nx2N인 경우,
    상기 복수의 TU들은 2NxN 타입의 비정방형 TU들로 도출되는 것을 특징으로 하는 디코딩 방법.
  15. 영상 디코딩을 수행하는 디코딩 장치에 있어서,
    수신한 비트스트림을 기반으로 현재 PU(Prediction Unit)에 대한 인트라 예측 모드 정보를 획득하는 엔트로피 디코딩부; 및
    상기 인트라 예측 모드 정보를 기반으로 상기 현재 PU에 대한 인트라 예측 모드를 도출하고, 상기 인트라 예측 모드를 기반으로 상기 현재 PU의 영역에 위치하는 복수의 TU(Transform Unit)들에 대한 복원을 수행하는 예측부를 포함하되,
    상기 예측부는,
    상기 복수의 TU들 중 하나인 현재 블록의 좌측 주변 샘플들, 좌상측 주변 샘플 및 상측 주변 샘플들을 포함하는 제1 주변 샘플들을 도출하고, 상기 제1 주변 샘플들을 기반으로 상기 현재 블록의 우측 주변 샘플들, 우하측 주변 샘플 및 하측 주변 샘플들을 포함하는 제2 주변 샘플들을 도출하고, 상기 제1 주변 샘플들 및 상기 제2 주변 샘플들 중 상기 인트라 예측 모드의 예측 방향에 위치하는 제1 참조 샘플 및 상기 예측 방향의 반대 방향에 위치하는 제2 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출하고, 상기 예측 샘플을 기반으로 상기 대상 블록을 복원하는 것을 특징으로 하는 디코딩 장치.
PCT/KR2017/001350 2016-04-25 2017-02-08 영상 코딩 시스템에서 영상 디코딩 방법 및 장치 WO2017188565A1 (ko)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020187030945A KR20180129863A (ko) 2016-04-25 2017-02-08 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
US16/096,194 US10841574B2 (en) 2016-04-25 2017-02-08 Image decoding method and device using intra prediction in image coding system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201662326845P 2016-04-25 2016-04-25
US62/326,845 2016-04-25

Publications (1)

Publication Number Publication Date
WO2017188565A1 true WO2017188565A1 (ko) 2017-11-02

Family

ID=60159762

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2017/001350 WO2017188565A1 (ko) 2016-04-25 2017-02-08 영상 코딩 시스템에서 영상 디코딩 방법 및 장치

Country Status (3)

Country Link
US (1) US10841574B2 (ko)
KR (1) KR20180129863A (ko)
WO (1) WO2017188565A1 (ko)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200106982A (ko) * 2018-03-16 2020-09-15 엘지전자 주식회사 인트라 예측 기반 영상/비디오 코딩 방법 및 그 장치
KR20200108085A (ko) * 2018-03-30 2020-09-16 엘지전자 주식회사 인트라 예측 기반 영상/비디오 코딩 방법 및 그 장치
WO2020181990A1 (en) * 2019-03-12 2020-09-17 Zhejiang Dahua Technology Co., Ltd. Systems and methods for image coding

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102383104B1 (ko) * 2016-06-24 2022-04-06 주식회사 케이티 비디오 신호 처리 방법 및 장치
KR101895294B1 (ko) * 2017-03-03 2018-09-05 주식회사 칩스앤미디어 프리 스캔을 이용한 블록 기반 동영상 복호화 방법 및 그 장치
JP2020120141A (ja) * 2017-05-26 2020-08-06 シャープ株式会社 動画像符号化装置及び動画像復号装置、フィルタ装置
CA3065922A1 (en) * 2017-09-08 2019-03-14 Kt Corporation Method and device for processing video signal
CN117201803A (zh) * 2017-09-21 2023-12-08 株式会社Kt 视频信号处理方法及装置
US11070847B2 (en) * 2017-12-05 2021-07-20 Qualcomm Incorporated Intra-prediction with far neighboring pixels
CN109862371A (zh) * 2019-03-12 2019-06-07 北京大学深圳研究生院 一种基于帧内预测的编解码方法、装置及滤波器
US20220166968A1 (en) * 2019-03-22 2022-05-26 Lg Electronics Inc. Intra prediction method and apparatus based on multi-reference line in image coding system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140008503A (ko) * 2012-07-10 2014-01-21 한국전자통신연구원 영상 부호화/복호화 방법 및 장치
KR20140049098A (ko) * 2011-09-12 2014-04-24 퀄컴 인코포레이티드 비디오 코딩에서 비정방형 변환 유닛들 및 예측 유닛들
US20140185672A1 (en) * 2012-12-28 2014-07-03 Panasonic Corporation Image encoding method, image decoding method, image encoding apparatus, image decoding apparatus, and image coding apparatus
JP2015109695A (ja) * 2010-01-07 2015-06-11 株式会社東芝 動画像符号化装置及び動画像復号化装置
KR101540528B1 (ko) * 2010-12-22 2015-07-29 퀄컴 인코포레이티드 비디오 데이터의 블록의 계수들의 모드 의존 스캐닝

Family Cites Families (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009094828A (ja) * 2007-10-10 2009-04-30 Hitachi Ltd 画像符号化装置及び画像符号化方法、画像復号化装置及び画像復号化方法
EP2081386A1 (en) * 2008-01-18 2009-07-22 Panasonic Corporation High precision edge prediction for intracoding
TWI442777B (zh) * 2009-06-23 2014-06-21 Acer Inc 空間性錯誤隱藏方法
KR101752418B1 (ko) * 2010-04-09 2017-06-29 엘지전자 주식회사 비디오 신호 처리 방법 및 장치
CN102972028B (zh) * 2010-05-17 2015-08-12 Lg电子株式会社 新的帧内预测模式
HUE056926T2 (hu) * 2010-05-25 2022-03-28 Lg Electronics Inc Új síkbeli predikciós mód
KR101673025B1 (ko) * 2010-07-22 2016-11-04 에스케이 텔레콤주식회사 전 방위 기반의 인트라 예측 부호화/복호화 장치 및 방법
EP2606646A1 (en) * 2010-10-01 2013-06-26 General Instrument Corporation Coding and decoding utilizing picture boundary padding in flexible partitioning
US9462272B2 (en) * 2010-12-13 2016-10-04 Electronics And Telecommunications Research Institute Intra prediction method and apparatus
US20120183041A1 (en) * 2011-01-14 2012-07-19 Sony Corporation Interpolation filter for intra prediction of hevc
KR101444667B1 (ko) * 2011-01-15 2014-09-30 에스케이 텔레콤주식회사 양방향 인트라 예측을 이용한 영상 부호화/복호화 방법 및 장치
KR101383775B1 (ko) * 2011-05-20 2014-04-14 주식회사 케이티 화면 내 예측 방법 및 장치
KR20120140181A (ko) * 2011-06-20 2012-12-28 한국전자통신연구원 화면내 예측 블록 경계 필터링을 이용한 부호화/복호화 방법 및 그 장치
CN104954805B (zh) * 2011-06-28 2019-01-04 三星电子株式会社 用于使用帧内预测进行图像编码和解码的方法和设备
US10645398B2 (en) * 2011-10-25 2020-05-05 Texas Instruments Incorporated Sample-based angular intra-prediction in video coding
US9277211B2 (en) * 2012-04-20 2016-03-01 Futurewei Technologies, Inc. Binarization scheme for intra prediction residuals and improved intra prediction in lossless coding in HEVC
CN104205843A (zh) * 2012-04-20 2014-12-10 华为技术有限公司 Hevc中无损编码中的改进帧内预测
WO2014003421A1 (ko) * 2012-06-25 2014-01-03 한양대학교 산학협력단 비디오 부호화 및 복호화를 위한 방법
US9467692B2 (en) * 2012-08-31 2016-10-11 Qualcomm Incorporated Intra prediction improvements for scalable video coding
KR101466574B1 (ko) * 2013-03-19 2014-12-02 삼성전자주식회사 스케일러블 비디오 부호화 방법 및 장치, 스케일러블 비디오 복호화 방법 및 장치
US20150016516A1 (en) * 2013-07-15 2015-01-15 Samsung Electronics Co., Ltd. Method for intra prediction improvements for oblique modes in video coding
US9451254B2 (en) * 2013-07-19 2016-09-20 Qualcomm Incorporated Disabling intra prediction filtering
US20160301941A1 (en) * 2013-09-09 2016-10-13 Nec Corporation Video-encoding device, video-encoding method, and program
US9866855B2 (en) * 2013-09-30 2018-01-09 Nec Corporation Processing control device, processing control method, and processing control program
JP6337904B2 (ja) * 2013-10-22 2018-06-06 日本電気株式会社 ブロック構造決定回路およびブロック構造決定方法
WO2015118835A1 (ja) * 2014-02-10 2015-08-13 日本電気株式会社 映像符号化装置、映像符号化方法及び映像符号化プログラム
US20170150176A1 (en) * 2015-11-25 2017-05-25 Qualcomm Incorporated Linear-model prediction with non-square prediction units in video coding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015109695A (ja) * 2010-01-07 2015-06-11 株式会社東芝 動画像符号化装置及び動画像復号化装置
KR101540528B1 (ko) * 2010-12-22 2015-07-29 퀄컴 인코포레이티드 비디오 데이터의 블록의 계수들의 모드 의존 스캐닝
KR20140049098A (ko) * 2011-09-12 2014-04-24 퀄컴 인코포레이티드 비디오 코딩에서 비정방형 변환 유닛들 및 예측 유닛들
KR20140008503A (ko) * 2012-07-10 2014-01-21 한국전자통신연구원 영상 부호화/복호화 방법 및 장치
US20140185672A1 (en) * 2012-12-28 2014-07-03 Panasonic Corporation Image encoding method, image decoding method, image encoding apparatus, image decoding apparatus, and image coding apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200106982A (ko) * 2018-03-16 2020-09-15 엘지전자 주식회사 인트라 예측 기반 영상/비디오 코딩 방법 및 그 장치
KR102448401B1 (ko) 2018-03-16 2022-09-28 엘지전자 주식회사 인트라 예측 기반 영상/비디오 코딩 방법 및 그 장치
US11632544B2 (en) 2018-03-16 2023-04-18 Lg Electronics Inc. Method for coding image/video on basis of intra prediction and device therefor
KR20200108085A (ko) * 2018-03-30 2020-09-16 엘지전자 주식회사 인트라 예측 기반 영상/비디오 코딩 방법 및 그 장치
KR102476280B1 (ko) 2018-03-30 2022-12-13 엘지전자 주식회사 인트라 예측 기반 영상/비디오 코딩 방법 및 그 장치
US11706405B2 (en) 2018-03-30 2023-07-18 Lg Electronics Inc. Image/video coding method based on intra prediction involving parsing of MPM index, and apparatus thereof
WO2020181990A1 (en) * 2019-03-12 2020-09-17 Zhejiang Dahua Technology Co., Ltd. Systems and methods for image coding

Also Published As

Publication number Publication date
KR20180129863A (ko) 2018-12-05
US10841574B2 (en) 2020-11-17
US20190141317A1 (en) 2019-05-09

Similar Documents

Publication Publication Date Title
WO2017188565A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2018062921A1 (ko) 영상 코딩 시스템에서 블록 분할 및 인트라 예측 방법 및 장치
WO2017043786A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2018062702A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017014412A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2018117546A1 (ko) 비디오 신호 처리 방법 및 장치
WO2017057953A1 (ko) 비디오 코딩 시스템에서 레지듀얼 신호 코딩 방법 및 장치
WO2017022973A1 (ko) 비디오 코딩 시스템에서 인터 예측 방법 및 장치
WO2017034331A1 (ko) 영상 코딩 시스템에서 크로마 샘플 인트라 예측 방법 및 장치
WO2018056603A1 (ko) 영상 코딩 시스템에서 조도 보상 기반 인터 예측 방법 및 장치
WO2018044088A1 (ko) 비디오 신호 처리 방법 및 장치
WO2017069590A1 (ko) 영상 코딩 시스템에서 모델링 기반 영상 디코딩 방법 및 장치
WO2017052118A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2018070632A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2019177429A1 (ko) 인트라 예측 기반 영상/비디오 코딩 방법 및 그 장치
WO2018216862A1 (ko) 영상 코딩 시스템에서 인트라 예측에 따른 영상 디코딩 방법 및 장치
WO2017057877A1 (ko) 영상 코딩 시스템에서 영상 필터링 방법 및 장치
WO2018056709A1 (ko) 영상 코딩 시스템에서 인터 예측 방법 및 장치
WO2017048008A1 (ko) 영상 코딩 시스템에서 인터 예측 방법 및 장치
WO2019194507A1 (ko) 어파인 움직임 예측에 기반한 영상 코딩 방법 및 그 장치
WO2017061671A1 (ko) 영상 코딩 시스템에서 적응적 변환에 기반한 영상 코딩 방법 및 장치
WO2018021585A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017159901A1 (ko) 비디오 코딩 시스템에서 블록 구조 도출 방법 및 장치
WO2018174357A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2018128223A1 (ko) 영상 코딩 시스템에서 인터 예측 방법 및 장치

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 20187030945

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17789750

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17789750

Country of ref document: EP

Kind code of ref document: A1