WO2018174657A1 - 영상 코딩 시스템에서 인트라 예측에 따른 영상 디코딩 방법 및 장치 - Google Patents
영상 코딩 시스템에서 인트라 예측에 따른 영상 디코딩 방법 및 장치 Download PDFInfo
- Publication number
- WO2018174657A1 WO2018174657A1 PCT/KR2018/003472 KR2018003472W WO2018174657A1 WO 2018174657 A1 WO2018174657 A1 WO 2018174657A1 KR 2018003472 W KR2018003472 W KR 2018003472W WO 2018174657 A1 WO2018174657 A1 WO 2018174657A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- intra prediction
- prediction mode
- current block
- arss
- pdpc
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods 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/103—Selection of coding mode or of prediction mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods 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/103—Selection of coding mode or of prediction mode
- H04N19/11—Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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/176—Methods 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
Definitions
- the present invention relates to an image coding technique, and more particularly, to an image decoding method and apparatus according to intra prediction in an image coding system.
- the demand for high resolution and high quality images such as high definition (HD) images and ultra high definition (UHD) images is increasing in various fields.
- the higher the resolution and the higher quality of the image data the more information or bit rate is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost are increased.
- a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
- An object of the present invention is to provide a method and apparatus for improving image coding efficiency.
- Another object of the present invention is to provide an intra prediction method and apparatus for performing intra prediction of a current block by applying a position dependent intra prediction combination (PDPC) or adaptive reference sample smoothing (ARSS) under specific conditions.
- PDPC position dependent intra prediction combination
- ARSS adaptive reference sample smoothing
- Another technical problem of the present invention is to provide a method and apparatus for performing intra prediction on a current block by combining PDPC and ARSS performed under specific conditions.
- an intra prediction method performed by a decoding apparatus includes deriving an intra prediction mode for a current block, deriving reference samples of the current block, determining whether the intra prediction mode is an intra prediction mode for a Position Dependent intra Prediction combination (PDPC), and When the intra prediction mode is the intra prediction mode for the PDPC, acquiring a PDPC flag indicating whether the current block performs the PDPC through a bitstream; and when the value of the PDPC flag is 1, the intra prediction mode is based on the intra prediction mode. Deriving a prediction sample of the current block by performing the PDPC.
- PDPC Position Dependent intra Prediction combination
- a decoding apparatus for performing intra prediction may further include an entropy decoding unit for obtaining prediction information on a current block, an intra prediction mode for the current block, deriving reference samples of the current block, and the intra prediction mode is PDPC (Position Dependent intra). Prediction combination) and if the value of the PDPC flag is 1, the prediction unit for deriving the prediction sample of the current block by performing the PDPC based on the intra prediction mode, the intra prediction When the mode is an intra prediction mode for the PDPC, the prediction information includes the PDPC flag indicating whether the current block performs PDPC.
- an intra prediction method performed by an encoding apparatus includes determining an intra prediction mode for a current block, deriving reference samples of the current block, determining whether the intra prediction mode is an intra prediction mode for a Position Dependent intra Prediction combination (PDPC), the If an intra prediction mode is an intra prediction mode for the PDPC, determining whether the current block is to perform PDPC and generating, encoding, and outputting prediction information about the current block; It is done.
- PDPC Position Dependent intra Prediction combination
- a video encoding apparatus determines an intra prediction mode for the current block, derives reference samples of the current block, determines whether the intra prediction mode is an intra prediction mode for a Position Dependent intra Prediction combination (PDPC), and the intra prediction When the mode is an intra prediction mode for the PDPC, a prediction unit for determining whether to perform the PDPC of the current block, and an entropy encoding unit for generating, encoding and outputting prediction information for the current block.
- PDPC Position Dependent intra Prediction combination
- intra prediction may be performed by applying PDPC or ARSS in a specific intra prediction mode, thereby improving intra prediction efficiency and improving overall coding efficiency.
- intra prediction may be selectively performed by applying PDPC or ARSS through an intra prediction method combining PDPC and ARSS performed in a specific intra prediction mode, thereby improving intra prediction efficiency. Overall coding efficiency can be improved.
- FIG. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
- FIG. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
- 3 exemplarily shows the left side samples and the top side samples used for intra prediction of the current block.
- 4 exemplarily shows intra directional modes of 65 prediction directions.
- 5 shows an example of performing the limited PDPC.
- FIG. 6 shows an example of performing the conventional ARSS.
- FIG. 9 shows an example of intra prediction performed by combining a limited PDPC and a limited ARSS.
- FIG. 10 shows another example of intra prediction performed by combining a limited PDPC and a limited ARSS.
- FIG. 11 illustrates another example of intra prediction performed by combining the limited PDPC and the limited ARSS when the intra prediction mode for the PDPC and the intra prediction mode for the ARSS are different.
- FIG. 12 schematically illustrates a video encoding method by an encoding device according to the present invention.
- FIG. 13 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 splitter 105, a predictor 110, a residual processor 120, an entropy encoder 130, an adder 140, and a filter 150. ) And memory 160.
- the residual processing unit 120 may include a subtraction unit 121, a conversion unit 122, a quantization unit 123, a reordering unit 124, an inverse quantization unit 125, and an inverse conversion unit 126.
- the picture divider 105 may divide the input picture into at least one processing unit.
- the processing unit may be called a coding unit (CU).
- the coding unit may be recursively split from the largest coding unit (LCU) according to a quad-tree binary-tree (QTBT) structure.
- LCU largest coding unit
- QTBT quad-tree binary-tree
- one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and / or a binary tree structure.
- the quad tree structure may be applied first and the binary tree structure may be applied later.
- the binary tree structure may be applied first.
- the coding procedure according to the present invention may be performed based on the final coding unit that is no longer split.
- the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
- a coding unit of size may be used as the final coding unit.
- the coding procedure may include a procedure of prediction, transform, and reconstruction, which will be described later.
- the processing unit may include a coding unit (CU) prediction unit (PU) or a transform unit (TU).
- the coding unit may be split from the largest coding unit (LCU) into coding units of deeper depths along the quad tree structure.
- LCU largest coding unit
- the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
- a coding unit of size may be used as the final coding unit. If a smallest coding unit (SCU) is set, the coding unit may not be split into smaller coding units than the minimum coding unit.
- the final coding unit refers to a coding unit that is the basis of partitioning or partitioning into a prediction unit or a transform unit.
- the prediction unit is a unit partitioning from the coding unit and may be a unit of sample prediction. In this case, the prediction unit may be divided into sub blocks.
- the transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
- a coding unit may be called a coding block (CB)
- a prediction unit is a prediction block (PB)
- a transform unit may be called a transform block (TB).
- a prediction block or prediction unit may mean a specific area in the form of a block within a picture, and may include an array of prediction samples.
- a transform block or a transform unit may mean a specific area in a block form within a picture, and may include an array of transform coefficients or residual samples.
- the prediction unit 110 may perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples of the current block.
- the unit of prediction performed by the prediction unit 110 may be a coding block, a transform block, or a prediction block.
- the prediction unit 110 may determine whether intra prediction or inter prediction is applied to the current block. As an example, the prediction unit 110 may determine whether intra prediction or inter prediction is applied on a CU basis.
- the prediction unit 110 may derive a prediction sample for the current block based on reference samples outside the current block in the picture to which the current block belongs (hereinafter, referred to as the current picture). In this case, the prediction unit 110 may (i) derive the prediction sample based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighbor reference of the current block.
- the prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample among the samples. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode.
- the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes.
- the non-directional mode may include a DC prediction mode and a planner mode (Planar mode).
- the prediction unit 110 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
- the prediction unit 110 may derive the prediction sample for the current block based on the sample specified by the motion vector on the reference picture.
- the prediction unit 110 may apply one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode to derive a prediction sample for the current block.
- the prediction unit 110 may use the motion information of the neighboring block as the motion information of the current block.
- the skip mode unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted.
- the MVP mode the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
- the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
- a reference picture including the temporal neighboring block may be called a collocated picture (colPic).
- the motion information may include a motion vector and a reference picture index.
- Information such as prediction mode information and motion information may be encoded (entropy) and output in the form of a bitstream.
- the highest picture on the reference picture list may be used as the reference picture.
- Reference pictures included in a reference picture list may be sorted based on a difference in a picture order count (POC) between a current picture and a corresponding reference picture.
- POC picture order count
- the subtraction unit 121 generates a residual sample which is a difference between the original sample and the prediction sample.
- residual samples may not be generated as described above.
- the transform unit 122 generates transform coefficients by transforming the residual sample in units of transform blocks.
- the transform unit 122 may perform the transform according to the size of the transform block and the prediction mode applied to the coding block or the prediction block that spatially overlaps the transform block. For example, if intra prediction is applied to the coding block or the prediction block that overlaps the transform block, and the transform block is a 4 ⁇ 4 residual array, the residual sample is configured to perform a discrete sine transform (DST) transform kernel.
- the residual sample may be transformed using a discrete cosine transform (DCT) transform kernel.
- DST discrete sine transform
- DCT discrete cosine transform
- the quantization unit 123 may quantize the transform coefficients to generate quantized transform coefficients.
- the reordering unit 124 rearranges the quantized transform coefficients.
- the reordering unit 124 may reorder the quantized transform coefficients in the form of a block into a one-dimensional vector form through a coefficient scanning method. Although the reordering unit 124 has been described in a separate configuration, the reordering unit 124 may be part of the quantization unit 123.
- the entropy encoding unit 130 may perform entropy encoding on the quantized transform coefficients.
- Entropy encoding may include, for example, encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like.
- the entropy encoding unit 130 may encode information necessary for video reconstruction other than the quantized transform coefficient (for example, a value of a syntax element) together or separately. Entropy encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
- NAL network abstraction layer
- the inverse quantization unit 125 inverse quantizes the quantized values (quantized transform coefficients) in the quantization unit 123, and the inverse transformer 126 inverse transforms the inverse quantized values in the inverse quantization unit 125 to obtain a residual sample.
- the adder 140 reconstructs the picture by combining the residual sample and the predictive sample.
- the residual sample and the predictive sample may be added in units of blocks to generate a reconstructed block.
- the adder 140 may be part of the predictor 110.
- the adder 140 may be called a restoration unit or a restoration block generation unit.
- the filter unit 150 may apply a deblocking filter and / or a sample adaptive offset to the reconstructed picture. Through deblocking filtering and / or sample adaptive offset, the artifacts of the block boundaries in the reconstructed picture or the distortion in the quantization process can be corrected.
- the sample adaptive offset may be applied on a sample basis and may be applied after the process of deblocking filtering is completed.
- the filter unit 150 may apply an adaptive loop filter (ALF) to the reconstructed picture. ALF may be applied to the reconstructed picture after the deblocking filter and / or sample adaptive offset is applied.
- ALF adaptive loop filter
- the memory 160 may store reconstructed pictures (decoded pictures) or information necessary for encoding / decoding.
- the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 150.
- the stored reconstructed picture may be used as a reference picture for (inter) prediction of another picture.
- the memory 160 may store (reference) pictures used for inter prediction.
- pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
- FIG. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
- the video decoding apparatus 200 may include an entropy decoding unit 210, a residual processor 220, a predictor 230, an adder 240, a filter 250, and a memory 260. It may include.
- the residual processor 220 may include a rearrangement unit 221, an inverse quantization unit 222, and an inverse transform unit 223.
- the video decoding apparatus 200 may reconstruct the video in response to a process in which the video information is processed in the video encoding apparatus.
- the video decoding apparatus 200 may perform video decoding using a processing unit applied in the video encoding apparatus.
- the processing unit block of video decoding may be, for example, a coding unit, and in another example, a coding unit, a prediction unit, or a transform unit.
- the coding unit may be split along the quad tree structure and / or binary tree structure from the largest coding unit.
- the prediction unit and the transform unit may be further used in some cases, in which case the prediction block is a block derived or partitioned from the coding unit and may be a unit of sample prediction. At this point, the prediction unit may be divided into subblocks.
- the transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient or a unit for deriving a residual signal from the transform coefficient.
- the entropy decoding unit 210 may parse the bitstream and output information necessary for video reconstruction or picture reconstruction. For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements necessary for video reconstruction, and residual coefficients. Can be output.
- a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements necessary for video reconstruction, and residual coefficients. Can be output.
- the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step.
- the context model may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have.
- the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
- the information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the prediction unit 230, and the residual value on which the entropy decoding has been performed by the entropy decoding unit 210, that is, the quantized transform coefficient, is used as a reordering unit ( 221 may be input.
- the reordering unit 221 may rearrange the quantized transform coefficients in a two-dimensional block form.
- the reordering unit 221 may perform reordering in response to coefficient scanning performed by the encoding apparatus.
- the rearrangement unit 221 has been described in a separate configuration, but the rearrangement unit 221 may be part of the inverse quantization unit 222.
- the inverse quantization unit 222 may dequantize the quantized transform coefficients based on the (inverse) quantization parameter and output the transform coefficients.
- information for deriving a quantization parameter may be signaled from the encoding apparatus.
- the inverse transform unit 223 may inversely transform transform coefficients to derive residual samples.
- the prediction unit 230 may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
- the unit of prediction performed by the prediction unit 230 may be a coding block, a transform block, or a prediction block.
- the prediction unit 230 may determine whether to apply intra prediction or inter prediction based on the information about the prediction.
- a unit for determining which of intra prediction and inter prediction is to be applied and a unit for generating a prediction sample may be different.
- the unit for generating a prediction sample in inter prediction and intra prediction may also be different.
- whether to apply inter prediction or intra prediction may be determined in units of CUs.
- a prediction mode may be determined and a prediction sample may be generated in PU units
- intra prediction a prediction mode may be determined in PU units and a prediction sample may be generated in TU units.
- the prediction unit 230 may derive the prediction sample for the current block based on the neighbor reference samples in the current picture.
- the prediction unit 230 may derive the prediction sample for the current block by applying the directional mode or the non-directional mode based on the neighbor reference samples of the current block.
- the prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
- the prediction unit 230 may derive the prediction sample for the current block based on the sample specified on the reference picture by the motion vector on the reference picture.
- the prediction unit 230 may apply any one of a skip mode, a merge mode, and an MVP mode to derive a prediction sample for the current block.
- motion information required for inter prediction of the current block provided by the video encoding apparatus for example, information about a motion vector, a reference picture index, and the like may be obtained or derived based on the prediction information.
- the motion information of the neighboring block may be used as the motion information of the current block.
- the neighboring block may include a spatial neighboring block and a temporal neighboring block.
- the prediction unit 230 may construct a merge candidate list using motion information of available neighboring blocks, and may use information indicated by the merge index on the merge candidate list as a motion vector of the current block.
- the merge index may be signaled from the encoding device.
- the motion information may include a motion vector and a reference picture. When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture.
- the difference (residual) between the prediction sample and the original sample is not transmitted.
- the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
- the neighboring block may include a spatial neighboring block and a temporal neighboring block.
- a merge candidate list may be generated by using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block.
- the motion vector of the candidate block selected from the merge candidate list is used as the motion vector of the current block.
- the information about the prediction may include a merge index indicating a candidate block having an optimal motion vector selected from candidate blocks included in the merge candidate list.
- the prediction unit 230 may derive the motion vector of the current block by using the merge index.
- a motion vector predictor candidate list may be generated using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block.
- the prediction information may include a prediction motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list.
- the prediction unit 230 may select the predicted motion vector of the current block from the motion vector candidates included in the motion vector candidate list using the motion vector index.
- the prediction unit of the encoding apparatus may obtain a motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, and may encode the output vector in a bitstream form. That is, MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block.
- the prediction unit 230 may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block by adding the motion vector difference and the motion vector predictor.
- the prediction unit may also obtain or derive a reference picture index or the like indicating a reference picture from the information about the prediction.
- the adder 240 may reconstruct the current block or the current picture by adding the residual sample and the predictive sample.
- the adder 240 may reconstruct the current picture by adding the residual sample and the predictive sample in block units. Since the residual is not transmitted when the skip mode is applied, the prediction sample may be a reconstruction sample.
- the adder 240 has been described in a separate configuration, the adder 240 may be part of the predictor 230. On the other hand, the adder 240 may be called a restoration unit or a restoration block generation unit.
- the filter unit 250 may apply the deblocking filtering sample adaptive offset, and / or ALF to the reconstructed picture.
- the sample adaptive offset may be applied in units of samples and may be applied after deblocking filtering.
- ALF may be applied after deblocking filtering and / or sample adaptive offset.
- the memory 260 may store reconstructed pictures (decoded pictures) or information necessary for decoding.
- the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 250.
- the memory 260 may store pictures used for inter prediction.
- pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
- the reconstructed picture can be used as a reference picture for another picture.
- the memory 260 may output the reconstructed picture in an output order.
- the prediction when prediction is performed on the current block, the prediction may be performed based on an intra prediction mode.
- the intra prediction may be performed based on a reference sample in which encoding / decoding has already been performed at the decoding time of the current block. That is, the prediction sample of the current block may be reconstructed using the left reference samples, the upper left reference sample, and the upper reference samples of the current block that have already been reconstructed.
- the left reference samples, the upper left reference sample and the upper reference samples may be represented as shown in FIG. 3.
- the left reference samples, the upper left neighboring sample and the upper neighboring sample may represent neighboring samples of the current block, wherein the size of the current block is N ⁇ N and the top-left sample of the current block.
- the left reference samples are p [-1] [0] to p [-1] [2N-1]
- the upper left reference sample is p [-1] [- 1]
- the upper reference samples may be p [0] [-1] to p [2N-1] [-1].
- an intra prediction mode for the current block may be derived, and according to the intra prediction mode, at least one of the left reference samples, the upper left peripheral sample and the upper peripheral samples. Using one, a prediction sample for the current block may be generated.
- the intra prediction mode may include two non-directional intra prediction modes and 33 directional intra prediction modes.
- the non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include 2 to 34 intra prediction modes.
- the planner intra prediction mode may be called a planner mode, and the DC intra prediction mode may be called a DC mode.
- the intra prediction mode 10 may be a horizontal intra prediction mode or a horizontal mode
- the intra intra prediction mode 26 may be a vertical intra prediction mode or a vertical mode.
- the prediction direction of angular intra mode) can be expressed in degrees.
- the relative angle corresponding to each intra prediction mode may be expressed based on the horizontal reference angle 0 ° corresponding to the intra prediction mode 10, and the vertical reference angle corresponding to the intra prediction mode 26 reference 0 °.
- the relative angle corresponding to each intra prediction mode can be expressed.
- the intra prediction mode may include two non-directional intra prediction modes and 65 directional intra prediction modes.
- the non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include 2 to 66 intra prediction modes.
- 4 exemplarily shows intra directional modes of 65 prediction directions.
- an intra prediction mode having horizontal directionality and an intra prediction mode having vertical directionality may be distinguished from the intra prediction mode 34 having a left upper diagonal prediction direction.
- H and V in FIG. 4 mean horizontal directionality and vertical directionality, respectively, and numbers of -32 to 32 represent displacements of 1/32 units on a sample grid position.
- Intra prediction modes 2 to 33 have horizontal orientation, and intra prediction modes 34 to 66 have vertical orientation.
- Intra prediction mode 18 and intra prediction mode 50 respectively indicate a horizontal intra prediction mode and a vertical intra prediction mode, and based on this, an angular intra prediction mode is used.
- the prediction direction can be expressed in degrees.
- the relative angle corresponding to each intra prediction mode may be expressed based on the horizontal reference angle 0 ° corresponding to the 18th intra prediction mode, and the vertical reference angle corresponding to the 50th intra prediction mode may be expressed as 0 °.
- the relative angle corresponding to each intra prediction mode can be expressed.
- a Position Dependent Intra Prediction combination may be applied to the current block to obtain a prediction sample of the current block.
- the PDPC may represent an intra prediction method performed based on unfiltered reference samples and filtered reference samples. Specifically, the PDPC performs filtering based on a filter for the PDPC to derive filtered reference samples, and based on the intra prediction mode of the current block and the filtered reference samples, the PDPC obtains a temporary prediction sample of the current block. Deriving and weighting the at least one reference sample and the temporary prediction sample derived according to the intra prediction mode among the existing reference samples, that is, the unfiltered reference samples, to predict the current block. An intra prediction method for deriving a sample may be indicated.
- the predefined filter may be one of five seven tap filters.
- the predefined filter may be one of a three tap filter, a five tap filter, and a seven tap filter.
- the three tap filter, the five tap filter, and the seven tap filter may represent a filter having three filter coefficients, a filter having five filter coefficients, and a filter having seven filter coefficients, respectively.
- adaptive reference sample smoothing may be applied to the reference samples, and a prediction sample of the current block may be derived based on reference samples filtered through the ARSS.
- the ARSS filters reference samples based on a filter for the ARSS, and hides a flag indicating whether the ARSS is applied to the current block to a parity of a residual signal of the current block. It may indicate a method of signaling. That is, instead of signaling a flag allocated to a separate bit, the parity of the residual signal of the current block may be derived as a flag indicating whether the ARSS is applied.
- a checksum value at an odd position among transform coefficients of the current block may be derived as a flag indicating whether to apply the ARSS.
- the filter for the ARSS may be a 5-tap filter having a filter coefficient of (2, 3, 6. 3, 2).
- the filtering performed on the reference samples may indicate a smoothing process of reducing a difference in sample values between the reference samples.
- the above-described PDPC and ARSS can be applied under a specific condition can more efficiently process the process of encoding / decoding the input image.
- the PDPC and the ARSS can generate similar effects by using methods for filtering the reference samples.
- the efficiency of the encoding / decoding process can be further improved by selectively applying the PDPC and the ARSS according to specific conditions. have.
- the present invention proposes methods for performing intra prediction of the current block by applying the PDPC or ARSS under a specific condition.
- the limited PDPC may indicate an intra prediction method that the PDPC does not apply when the intra prediction mode of the current block is an intra prediction mode of a specific prediction direction.
- the existing PDPC may be applied regardless of the prediction direction of the intra prediction mode, that is, for all intra prediction modes, so that a flag indicating whether the PDPC is performed regardless of the intra prediction mode of the current block is signaled.
- the PDPC flag for the current block may not be signaled.
- the PDPC flag may indicate a flag indicating whether the current block performs PDPC.
- the decoding apparatus may determine whether a current block is a block for a luma component (S500). If the current block is not a block for the luma component, the decoding apparatus may not perform PDPC on the current block. If the current block is a block for a luma component, the decoding apparatus may determine whether the prediction direction of the intra prediction mode of the current block is the prediction direction for the PDPC (S510). That is, the decoding apparatus may determine whether the intra prediction mode of the current block is the intra prediction mode for the PDPC. In other words, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode to which the PDPC is applicable.
- IntraDir of FIG. 5 may indicate a prediction direction of an intra prediction mode of the current block.
- the prediction direction for the PDPC of the current block may be set to various combinations of prediction directions of intra prediction modes. That is, the intra prediction mode for the PDPC may be set to a combination of various intra prediction modes. For example, if the intra prediction mode includes two non-directional intra prediction modes and 65 directional intra prediction modes, the intra prediction mode for the PDPC is intra prediction mode no. 2, intra prediction mode no. 18, no. 34 Intra prediction mode, and intra prediction mode 50.
- the decoding apparatus may parse the PDPC flag for the current block (S520).
- the decoding apparatus may determine whether the current block performs PDPC based on the PDPC flag.
- the PDPC flag may be a flag indicating whether PDPC of the current block is performed. For example, when the value of the PDPC flag is 1, the PDPC flag may indicate that the PDPC is performed on the current block, and in this case, the decoding device applies the PDPC to derive a prediction sample of the current block. can do.
- the decoding apparatus may perform filtering on reference samples of the current block based on a filter for the PDPC to derive filtered reference samples, and may extract an intra prediction mode and the filtered reference samples of the current block. Based on the at least one reference sample and the temporary prediction sample derived according to the intra prediction mode of the existing reference samples, that is, unfiltered reference samples. The weighted sum may be used to derive the predictive sample of the current block.
- the PDPC flag may indicate that the PDPC is not performed on the current block, and in this case, the decoding apparatus may perform prediction samples of the current block according to the existing intra prediction. Can be derived.
- a constrained ARSS that does not apply the ARSS to an intra prediction mode in a specific direction among intra prediction modes may be proposed.
- the limited ARSS may indicate an intra prediction method that ARSS does not apply when the intra prediction mode of the current block is an intra prediction mode of a specific prediction direction.
- whether or not smoothing processing is performed on the reference samples for the prediction directions of all the intra prediction modes except the intra DC mode, as shown in FIG. A flag indicating whether filtering is performed) may be signaled.
- the decoding apparatus may determine whether an ARSS flag of a current block is signaled by being raised to parity of a residual signal of the current block (S600).
- the ARSS flag may be a flag indicating whether smoothing processing is performed on the reference samples (that is, whether filtering is performed on the reference samples), that is, a flag indicating whether the current block performs ARSS. have.
- the method in which the ARSS flag is raised to the parity and transmitted may indicate a method of transmitting a parity of the residual signal of the current block to indicate the ARSS flag.
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC. (S610).
- the filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus may derive the ARSS flag of the current block based on the parity, It may be determined whether the value of the ARSS flag is 1 (S620). If the value of the ARSS flag is 1, the decoding apparatus may filter the reference samples of the current block based on an ARSS filter (S630).
- the ARSS filter may be a 5-tap filter having a filter coefficient of (2, 3, 6, 3, 2) as a filter for the ARSS.
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC (S610).
- the ARSS flag is signaled regardless of the prediction direction of the intra prediction mode of the current block.
- the limited ARSS proposed in the present invention it is shown in FIG. As such, an ARSS flag may be signaled only when the intra prediction mode of the current block is a specific intra prediction mode.
- the decoding apparatus may determine whether the prediction direction of the intra prediction mode of the current block is the prediction direction of the ARSS (S700). That is, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode for the ARSS. In other words, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode to which the ARSS is applicable.
- IntraDir of FIG. 7 may indicate a prediction direction of an intra prediction mode of the current block.
- the prediction direction for the ARSS of the current block may be set to various combinations of prediction directions of intra prediction modes. That is, the intra prediction mode for the ARSS may be set to a combination of various intra prediction modes.
- the decoding apparatus determines whether the prediction direction of the intra prediction mode of the current block is the prediction direction in which smoothing processing is performed on reference samples. It may be (S710). That is, the decoding apparatus may determine whether the intra prediction mode of the current block is an intra prediction mode in which a smoothing process is performed on the reference samples of the current block.
- the intra prediction mode of the current block is a specific intra prediction mode
- the smoothing process may be performed on the reference samples, and the intra prediction mode on which the smoothing process is performed on the reference samples may be performed by various intra prediction modes. It can be set in combination.
- the decoding apparatus may not perform filtering on the reference samples (S720).
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC. (S730).
- the filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus determines whether the ARSS flag of the current block is signaled by being hidden by the parity for the residual signal of the current block. It may be (S740).
- an ARSS flag is a flag indicating whether a smoothing process is performed on the reference samples (ie, performing ARSS filter based filtering on the reference samples), that is, indicating whether the current block performs ARSS. It may be a flag.
- the method in which the ARSS flag is raised to the parity and transmitted may indicate a method of transmitting a parity of the residual signal of the current block to indicate the ARSS flag.
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC.
- the filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus may derive the ARSS flag of the current block based on the parity, It may be determined whether the value of the ARSS flag is 1 (S750). If the value of the ARSS flag is 1, the decoding apparatus may filter reference samples of the current block based on an ARSS filter (S760).
- the ARSS filter may be a 5-tap filter having a filter coefficient of (2, 3, 6, 3, 2) as a filter for the ARSS.
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC (S730).
- a process of determining whether the intra prediction mode of the current block is an intra prediction mode for limited ARSS and whether the intra prediction mode of the current block is an intra prediction mode in which a smoothing process is performed on the reference samples is performed.
- the process of determining may be divided, but the process of determining whether the intra prediction mode of the current block is the intra prediction mode for the limited ARSS and the process of determining whether the intra prediction mode in which the smoothing processing is performed on the reference samples are performed in common.
- An approach to carry out may be proposed. That is, a limited ARSS may be proposed such that the ARSS is performed only for an intra prediction mode in which a smoothing process for the reference samples is performed.
- the decoding apparatus may determine whether a prediction direction of an intra prediction mode of a current block is a prediction direction in which a smoothing process is performed on reference samples (S800). That is, the decoding apparatus may determine whether the intra prediction mode of the current block is an intra prediction mode in which a smoothing process is performed on the reference samples of the current block.
- the intra prediction mode of the current block is a specific intra prediction mode
- the smoothing process may be performed on the reference samples, and the intra prediction mode on which the smoothing process is performed on the reference samples may be performed by various intra prediction modes. It can be set in combination.
- the decoding apparatus may not perform filtering on the reference samples (S810).
- an ARSS flag is a flag indicating whether a smoothing process is performed on the reference samples (ie, performing ARSS filter based filtering on the reference samples), that is, indicating whether the current block performs ARSS. It may be a flag.
- the method in which the ARSS flag is raised to the parity and transmitted may indicate a method of transmitting a parity of the residual signal of the current block to indicate the ARSS flag.
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC.
- the filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus may derive the ARSS flag of the current block based on the parity, and the ARSS flag It may be determined whether the value of 1 is 1 (S840). If the value of the ARSS flag is 1, the decoding apparatus may filter the reference samples of the current block based on an ARSS filter (S850).
- the ARSS filter may be a 5-tap filter having a filter coefficient of (2, 3, 6, 3, 2) as a filter for the ARSS.
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC (S830).
- the ARSS may be performed only when the PDPC is not applied. Accordingly, when the limited PDPC is applied, the case where the PDPC is performed may be reduced, and conversely, when the ARSS is applied, the ARSS may be increased. Accordingly, in order for both the limited PDPC and the limited ARSS to be applied, harmonization of the limited PDPC and the limited ARSS may be required. That is, a scheme combining the limited PDPC and the limited ARSS may be needed. Accordingly, the present invention proposes a combination of the limited PDPC and the limited ARSS.
- the decoding apparatus may determine whether the prediction direction of the intra prediction mode of the current block is the prediction direction of the PDPC (S900). That is, the decoding apparatus may determine whether the intra prediction mode of the current block is the intra prediction mode for the PDPC. In other words, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode to which the PDPC is applicable.
- IntraDir of FIG. 9 may indicate a prediction direction of an intra prediction mode of the current block.
- the prediction direction for the PDPC of the current block may be set to various combinations of prediction directions of intra prediction modes.
- the intra prediction mode for the PDPC may be set to a combination of various intra prediction modes. For example, if the intra prediction mode includes two non-directional intra prediction modes and 65 directional intra prediction modes, the intra prediction mode for the PDPC is intra prediction mode no. 2, intra prediction mode no. 18, no. 34 Intra prediction mode, and intra prediction mode 50.
- the decoding apparatus may parse the PDPC flag for the current block (S910).
- the decoding apparatus may determine whether the current block performs PDPC based on the PDPC flag (S920).
- the PDPC flag may be a flag indicating whether PDPC of the current block is performed. For example, when the value of the PDPC flag is 1, the PDPC flag may indicate that the PDPC is performed on the current block, and in this case, the decoding device applies the PDPC to derive a prediction sample of the current block. It may be (S930).
- the decoding apparatus may perform filtering on reference samples of the current block based on a filter for the PDPC to derive filtered reference samples, and may extract an intra prediction mode and the filtered reference samples of the current block. Based on the at least one reference sample and the temporary prediction sample derived according to the intra prediction mode of the existing reference samples, that is, unfiltered reference samples. The weighted sum may be used to derive the predictive sample of the current block.
- the decoding apparatus determines that the prediction direction of the intra prediction mode of the current block is in ARSS. In operation S940, it may be determined whether or not the prediction direction is about the prediction direction. That is, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode for the ARSS. In other words, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode to which the ARSS is applicable.
- the prediction direction for the ARSS of the current block may be set to various combinations of prediction directions of intra prediction modes. That is, the intra prediction mode for the ARSS may be set to a combination of various intra prediction modes.
- the decoding apparatus determines whether the prediction direction of the intra prediction mode of the current block is the prediction direction in which smoothing processing is performed on reference samples. It may be (S950). That is, the decoding apparatus may determine whether the intra prediction mode of the current block is an intra prediction mode in which a smoothing process is performed on the reference samples of the current block.
- the intra prediction mode of the current block is a specific intra prediction mode
- the smoothing process may be performed on the reference samples, and the intra prediction mode on which the smoothing process is performed on the reference samples may be performed by various intra prediction modes. It can be set in combination.
- the decoding apparatus may not perform filtering on the reference samples (S930).
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC. (S960).
- the filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus determines whether the ARSS flag of the current block is signaled by being hidden by the parity for the residual signal of the current block. It may be (S970).
- an ARSS flag is a flag indicating whether a smoothing process is performed on the reference samples (ie, performing ARSS filter based filtering on the reference samples), that is, indicating whether the current block performs ARSS. It may be a flag.
- the method in which the ARSS flag is raised to the parity and transmitted may indicate a method of transmitting a parity of the residual signal of the current block to indicate the ARSS flag.
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC.
- the filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus may derive the ARSS flag of the current block based on the parity, It may be determined whether the value of the ARSS flag is 1 (S980). If the value of the ARSS flag is 1, the decoding apparatus may filter reference samples of the current block based on an ARSS filter (S990).
- the ARSS filter may be a 5-tap filter having a filter coefficient of (2, 3, 6, 3, 2) as a filter for the ARSS.
- the decoding apparatus may filter the reference samples of the current block based on a filter used in the existing HEVC (S960).
- the intra prediction mode of the current block is not an intra prediction mode for the limited ARSS, and for the reference samples.
- the smoothing process is performed on the reference sample based on a filter selected in consideration of the residual sample value of the current block among the above-described weak and strong filters.
- the decoding apparatus may determine whether the prediction direction of the intra prediction mode of the current block is the prediction direction of the PDPC (S1000). That is, the decoding apparatus may determine whether the intra prediction mode of the current block is the intra prediction mode for the PDPC. In other words, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode to which the PDPC is applicable.
- IntraDir of FIG. 10 may indicate a prediction direction of an intra prediction mode of the current block.
- the prediction direction for the PDPC of the current block may be set to various combinations of prediction directions of intra prediction modes.
- the intra prediction mode for the PDPC may be set to a combination of various intra prediction modes. For example, if the intra prediction mode includes two non-directional intra prediction modes and 65 directional intra prediction modes, the intra prediction mode for the PDPC is intra prediction mode no. 2, intra prediction mode no. 18, no. 34 Intra prediction mode, and intra prediction mode 50.
- the decoding apparatus may parse the PDPC flag for the current block (S1010).
- the decoding apparatus may determine whether the current block performs PDPC on the basis of the PDPC flag (S1020).
- the PDPC flag may be a flag indicating whether PDPC of the current block is performed. For example, when the value of the PDPC flag is 1, the PDPC flag may indicate that the PDPC is performed on the current block, and in this case, the decoding device applies the PDPC to derive a prediction sample of the current block. It may be (S1030).
- the decoding apparatus may perform filtering on reference samples of the current block based on a filter for the PDPC to derive filtered reference samples, and may extract an intra prediction mode and the filtered reference samples of the current block. Based on the at least one reference sample and the temporary prediction sample derived according to the intra prediction mode of the existing reference samples, that is, unfiltered reference samples. The weighted sum may be used to derive the predictive sample of the current block.
- the decoding apparatus determines that the prediction direction of the intra prediction mode of the current block is in ARSS. It may be determined whether the prediction direction is (S1040). That is, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode for the ARSS. In other words, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode to which the ARSS is applicable.
- the prediction direction for the ARSS of the current block may be set to various combinations of prediction directions of intra prediction modes. That is, the intra prediction mode for the ARSS may be set to a combination of various intra prediction modes.
- the decoding apparatus determines whether the prediction direction of the intra prediction mode of the current block is the prediction direction in which smoothing processing is performed on reference samples. It may be (S1050). That is, the decoding apparatus may determine whether the intra prediction mode of the current block is an intra prediction mode in which a smoothing process is performed on the reference samples of the current block.
- the intra prediction mode of the current block is a specific intra prediction mode
- the smoothing process may be performed on the reference samples, and the intra prediction mode on which the smoothing process is performed on the reference samples may be performed by various intra prediction modes. It can be set in combination.
- the decoding apparatus may not perform filtering on the reference samples (S1030).
- the decoding apparatus may perform a weak filter or a strong filter based on the residual sample value of the current block.
- a filter may be selected, and reference samples of the current block may be filtered based on the selected filter (S1060).
- the weak filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus determines whether the ARSS flag of the current block is signaled by being hidden by the parity for the residual signal of the current block. It may be (S1070).
- an ARSS flag is a flag indicating whether a smoothing process is performed on the reference samples (ie, performing ARSS filter based filtering on the reference samples), that is, indicating whether the current block performs ARSS. It may be a flag.
- the method in which the ARSS flag is raised to the parity and transmitted may indicate a method of transmitting a parity of the residual signal of the current block to indicate the ARSS flag.
- the decoding apparatus may perform a weak filter or strong based on the residual sample value of the current block.
- a filter may be selected, and reference samples of the current block may be filtered based on the selected filter (S1060).
- the weak filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus may derive the ARSS flag of the current block based on the parity, and the ARSS flag It may be determined whether the value of 1 is 1 (S1080).
- the decoding apparatus may filter reference samples of the current block based on an ARSS filter (S1090).
- the ARSS filter may be a 5-tap filter having a filter coefficient of (2, 3, 6, 3, 2) as a filter for the ARSS.
- the decoding apparatus selects a weak filter or a strong filter based on the residual sample value of the current block, and selects reference samples of the current block. It may be filtered based on (S1060).
- the intra prediction mode for the PDPC and the intra prediction mode for the ARSS may be set to different intra prediction modes.
- an ARSS flag indicating whether the ARSS is performed may be signaled only when the PDPC is not performed.
- the PDPC flag of the current block is 0 or 1 and the ARSS flag Can be parsed. That is, whether or not the ARSS flag is parsed may be determined based on the value of the PDPC flag.
- the intra prediction mode for the PDPC and the intra prediction mode for the ARSS do not overlap each other, the ARSS flag may be signaled without considering the value of the PDPC flag.
- the intra prediction mode for the PDPC may be derived as shown in the following table.
- intraDir may represent an intra prediction mode.
- an intra prediction mode for the PDPC may include an intra prediction mode of 2, an intra prediction mode of 18, an intra prediction mode of 34, and an intra prediction mode of 50. have.
- the intra prediction mode for the ARSS may be derived as shown in the following table.
- intraDir may represent an intra prediction mode.
- the intra prediction mode for the ARSS is the remaining intra except the intra prediction mode 2, the intra prediction mode 18, the intra prediction mode 34, and the intra prediction mode 50. Prediction modes.
- the PDPC and the ARSS may be independently separated from each other. have.
- FIG. 11 illustrates another example of intra prediction performed by combining the limited PDPC and the limited ARSS when the intra prediction mode for the PDPC and the intra prediction mode for the ARSS are different.
- the decoding apparatus may determine whether the prediction direction of the intra prediction mode of the current block is the prediction direction of the PDPC (S1100). That is, the decoding apparatus may determine whether the intra prediction mode of the current block is the intra prediction mode for the PDPC. In other words, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode to which the PDPC is applicable.
- IntraDir of FIG. 10 may indicate a prediction direction of an intra prediction mode of the current block.
- the prediction direction for the PDPC of the current block may be set to various combinations of prediction directions of intra prediction modes. That is, the intra prediction mode for the PDPC may be set to a combination of various intra prediction modes. For example, if the intra prediction mode includes two non-directional intra prediction modes and 65 directional intra prediction modes, the intra prediction mode for the PDPC is intra prediction mode no. 2, intra prediction mode no. 18, no. 34 Intra prediction mode, and intra prediction mode 50.
- the decoding apparatus may parse the PDPC flag for the current block (S1110).
- the decoding apparatus may determine whether the current block performs PDPC based on the PDPC flag.
- the PDPC flag may be a flag indicating whether PDPC of the current block is performed. For example, when the value of the PDPC flag is 1, the PDPC flag may indicate that the PDPC is performed on the current block, and in this case, the decoding device applies the PDPC to derive a prediction sample of the current block. It may be (S1120).
- the decoding apparatus may perform filtering on reference samples of the current block based on a filter for the PDPC to derive filtered reference samples, and may extract an intra prediction mode and the filtered reference samples of the current block. Based on the at least one reference sample and the temporary prediction sample derived according to the intra prediction mode of the existing reference samples, that is, unfiltered reference samples. The weighted sum may be used to derive the predictive sample of the current block.
- the PDPC flag may indicate that the PDPC is not performed on the current block, and in this case, the decoding apparatus based on the intra prediction mode of the current block.
- a prediction sample of can be derived.
- the decoding apparatus may determine whether the prediction direction of the intra prediction mode of the current block is the prediction direction for the ARSS (S1130). ). That is, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode for the ARSS. In other words, the decoding apparatus may determine whether an intra prediction mode of the current block is an intra prediction mode to which the ARSS is applicable.
- the prediction direction for the ARSS of the current block may be set to various combinations of prediction directions of intra prediction modes. That is, the intra prediction mode for the ARSS may be set to a combination of various intra prediction modes.
- the decoding apparatus determines whether the prediction direction of the intra prediction mode of the current block is the prediction direction in which smoothing processing is performed on reference samples. It may be (S1140). That is, the decoding apparatus may determine whether the intra prediction mode of the current block is an intra prediction mode in which a smoothing process is performed on the reference samples of the current block.
- the intra prediction mode of the current block is a specific intra prediction mode
- the smoothing process may be performed on the reference samples, and the intra prediction mode on which the smoothing process is performed on the reference samples may be performed by various intra prediction modes. It can be set in combination.
- the decoding apparatus may not perform filtering on the reference samples (S1120).
- the decoding apparatus may perform a weak filter or a strong filter based on the residual sample value of the current block.
- a filter may be selected, and reference samples of the current block may be filtered based on the selected filter (S1150).
- the weak filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus determines whether the ARSS flag of the current block is signaled by being hidden by the parity for the residual signal of the current block. It may be (S1160).
- an ARSS flag is a flag indicating whether a smoothing process is performed on the reference samples (ie, performing ARSS filter based filtering on the reference samples), that is, indicating whether the current block performs ARSS. It may be a flag.
- the method in which the ARSS flag is raised to the parity and transmitted may indicate a method of transmitting a parity of the residual signal of the current block to indicate the ARSS flag.
- the decoding apparatus may perform a weak filter or strong based on the residual sample value of the current block.
- a filter may be selected, and reference samples of the current block may be filtered based on the selected filter (S1150).
- the weak filter is a weak filter used in the existing HEVC, and may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the decoding apparatus may derive the ARSS flag of the current block based on the parity, It may be determined whether the value of the ARSS flag is 1 (S1170). If the value of the ARSS flag is 1, the decoding apparatus may filter reference samples of the current block based on an ARSS filter (S1180).
- the ARSS filter may be a 5-tap filter having a filter coefficient of (2, 3, 6, 3, 2) as a filter for the ARSS.
- the decoding apparatus selects a weak filter or a strong filter based on the residual sample value of the current block, and selects reference samples of the current block. It may be filtered based on (S1150).
- FIG. 12 schematically illustrates a video encoding method by an encoding device according to the present invention.
- the method disclosed in FIG. 12 may be performed by the encoding apparatus disclosed in FIG. 1.
- S1200 to S1230 of FIG. 12 may be performed by the prediction unit of the encoding apparatus
- S1240 may be performed by the entropy encoding unit of the encoding apparatus.
- the encoding apparatus determines an intra prediction mode for the current block (S1200).
- the encoding apparatus may perform various intra prediction modes to derive an intra prediction mode having an optimal RD cost as an intra prediction mode for the current block.
- the intra prediction mode may be one of two non-directional prediction modes and 33 directional prediction modes.
- the two non-directional prediction modes may include an intra DC mode and an intra planner mode.
- the intra prediction mode may be one of two non-directional intra prediction modes and 65 directional intra prediction modes.
- the two non-directional prediction modes may include an intra DC mode and an intra planner mode.
- the 65 directional intra prediction modes may include vertical directional intra prediction modes and horizontal directional intra prediction modes.
- the vertical directional intra prediction modes may include intra prediction mode 34 to intra intra prediction mode
- the horizontal directional intra prediction modes may include intra prediction mode 2 to intra prediction mode 33.
- the encoding apparatus derives the reference samples of the current block (S1210).
- the encoding device may derive the reference samples of the current block.
- the reference samples may include the left reference samples, the upper left reference sample, and the upper reference samples.
- the left reference samples, the upper left reference sample, and the upper reference samples may be derived from neighboring blocks that are already reconstructed at the decoding time of the current block. 2N upper reference samples, upper left reference sample, and 2N left reference samples of the current block may be derived.
- the left reference samples are p [-1] [0] to p [-1] [2N-1]
- the upper left reference sample is p [-1] [-1]
- the upper reference samples are p [0] [-1] to p [2N-1] [-1] Can be.
- the M + N upper reference samples of the current block, upper left A side reference sample and M + N left reference samples can be derived.
- the left reference samples are p [-1] [0] P [-1] [M + N-1]
- the upper left reference sample is p [-1] [-1]
- the upper reference samples are p [0] [-1] to p [M + N ⁇ 1] [-1].
- the encoding apparatus determines whether the intra prediction mode is an intra prediction mode for Position Dependent intra Prediction Combination (PDPC) (S1220).
- the encoding apparatus may determine whether the intra prediction mode of the current block is an intra prediction mode for the PDPC.
- the intra prediction mode for the PDPC may be derived from a combination of various intra prediction modes.
- the intra prediction mode for the PDPC may include an intra prediction mode 2, an intra prediction mode 18, an intra prediction mode 34, and an intra prediction mode 50.
- the PDPC may represent an intra prediction method performed based on unfiltered reference samples and filtered reference samples. Specifically, the PDPC performs filtering based on a filter for the PDPC to derive filtered reference samples, and based on the intra prediction mode of the current block and the filtered reference samples, the PDPC obtains a temporary prediction sample of the current block. Deriving and weighting the at least one reference sample and the temporary prediction sample derived according to the intra prediction mode among the existing reference samples, that is, the unfiltered reference samples, to predict the current block. An intra prediction method for deriving a sample may be indicated.
- the encoding apparatus may determine whether the intra prediction mode is an intra prediction mode for adaptive reference sample smoothing (ARSS).
- the intra prediction mode for the ARSS may be derived from a combination of various intra prediction modes.
- the intra prediction mode for the ARSS and the intra prediction mode for the PDPC may be different. That is, the intra prediction mode for the ARSS may not be included in the intra prediction mode for the PDPC. In other words, the intra prediction mode for the ARSS and the intra prediction mode for the PDPC may not include the same intra prediction mode.
- the encoding apparatus does not consider whether the current block is performing PDPC without the current block.
- the ARSS may not be performed on the block.
- the intra prediction mode for the ARSS may be the same as the intra prediction mode for reference sample smoothing.
- the intra prediction mode for the reference sample smoothing process may indicate an intra prediction mode in which a smoothing process is performed on the reference samples of the current block, and the smoothing process may indicate filtering performed based on a smoothing filter.
- the smoothing filter may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the ARSS derives the parity of the residual signal of the current block as an ARSS flag, and when the ARSS flag indicates that the ARSS is performed on the current block, that is, the value of the ARSS flag If 1, it may represent a method of filtering reference samples based on the filter for the ARSS.
- the ARSS flag may indicate whether to perform the ARSS of the current block, and may be signaled by being held at the parity of the residual signal of the current block. That is, the ARSS flag may be signaled by being assigned to a parity of the residual signal of the current block instead of being allocated and signaled to a separate bit.
- the encoding apparatus may transmit the ARSS flag indicating whether the current block performs ARSS to the parity of the residual signal of the current block. That is, the encoding apparatus may signal so that the parity of the residual signal of the current block indicates an ARSS flag.
- the encoding apparatus determines whether to perform the PDPC of the current block (S1230).
- the encoding apparatus may determine whether the current block performs PDPC.
- the encoding apparatus may determine whether to perform the PDPC of the current block by comparing the RD cost according to whether the PDPC is performed.
- the encoding apparatus may generate a PDPC flag indicating whether the current block performs PDPC.
- the PDPC flag may indicate whether PDPC of the current block is performed. For example, when the value of the PDPC flag is 1, the PDPC flag may indicate that the PDPC is performed in the current block. When the value of the PDPC flag is 0, the PDPC flag is determined by the current block. It may indicate that PDPC is not performed.
- the encoding apparatus may derive the prediction sample of the current block by performing the PDPC based on the intra prediction mode. Specifically, the encoding apparatus may derive the filtered reference samples by performing filtering based on the filter for the PDPC, and temporarily predict the current block based on the intra prediction mode of the current block and the filtered reference samples. Samples can be derived. Next, the encoding apparatus may derive the prediction sample of the current block by weighting the at least one reference sample and the temporary prediction sample which are derived according to the intra prediction mode among the unfiltered reference samples. .
- the encoding apparatus may determine whether the intra prediction mode is an intra prediction mode for adaptive reference sample smoothing (ARSS).
- the intra prediction mode for the ARSS may be derived from a combination of various intra prediction modes.
- the encoding apparatus may determine whether to perform the ARSS of the current block. That is, the encoding apparatus may determine whether to perform the ARSS of the current block by comparing the RD cost according to whether to perform the ARSS of the current block.
- the encoding apparatus may filter the reference samples of the current block based on a filter for the ARSS, and the intra prediction mode of the current block among the filtered reference samples.
- a prediction sample of the current block may be derived based on a reference sample according to.
- the encoding apparatus determines that the intra prediction mode is set to ARSS. Determination of whether or not the intra prediction mode may be omitted, and a prediction sample of the current block may be derived based on the unfiltered reference sample and the intra prediction mode.
- the encoding apparatus may generate the ARSS flag indicating whether the current block performs ARSS.
- the ARSS flag may be signaled by being hidden to the parity of the residual signal of the current block. That is, when the intra prediction mode of the current block is the intra prediction mode for the ARSS, the encoding apparatus may signal so that the parity of the residual signal of the current block indicates an ARSS flag.
- the encoding apparatus may determine whether the intra prediction mode of the current block is an intra prediction mode for the reference sample smoothing. Meanwhile, when the intra prediction mode for the ARSS and the intra prediction mode for the reference sample smoothing are the same, it may not be determined whether the intra prediction mode of the current block is the intra prediction mode for the reference sample smoothing. That is, only when the intra prediction mode for the ARSS is different from the intra prediction mode for the reference sample smoothing, the encoding apparatus may determine whether the intra prediction mode of the current block is the intra prediction mode for the reference sample smoothing. .
- the encoding apparatus may filter the reference samples based on a smoothing filter, and the filtered reference samples and the intra of the current block.
- a prediction sample of the current block may be derived based on a prediction mode.
- the encoding apparatus is further configured to determine the current block based on the unfiltered reference samples and the intra prediction mode of the current block. Prediction samples can be derived.
- a prediction sample of the current block may be derived based on reference samples and the intra prediction mode of the current block.
- the intra prediction mode for the ARSS and the intra prediction mode for the reference sample smoothing are the same, the intra prediction mode of the current block is an intra prediction mode for the ARSS, and the ARSS is not performed on the current block. If not, the encoding apparatus may filter the reference samples based on the smoothing filter, and may derive the prediction sample of the current block based on the filtered reference samples and the intra prediction mode of the current block.
- the encoding apparatus generates, encodes, and outputs prediction information about the current block (S1240).
- the encoding apparatus may generate prediction information about the current block and may signal through a bitstream.
- the prediction information may include a PDPC flag indicating whether the current block performs PDPC.
- the prediction information may include a residual signal of the current block.
- the intra prediction mode of the current block is an intra prediction mode for the ARSS
- the ARSS flag indicating whether the current block performs ARSS is hidden on the parity of the residual signal of the current block. And may be signaled.
- the encoding apparatus may generate a residual sample based on the original sample and the derived prediction sample.
- the encoding apparatus may generate the residual signal based on the residual sample.
- the residual signal may include transform coefficients for the residual sample.
- the encoding apparatus may derive the reconstructed sample based on the prediction sample and the residual sample. That is, the encoding apparatus may derive the reconstructed sample by adding the prediction sample and the residual sample.
- the encoding apparatus may encode the residual signal and output it in the form of a bitstream.
- the bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
- FIG. 13 schematically illustrates a video decoding method by a decoding apparatus according to the present invention.
- the method disclosed in FIG. 13 may be performed by the decoding apparatus disclosed in FIG. 2.
- S1300 to S1320 and S1340 may be performed by the prediction unit of the decoding apparatus
- S1330 may be performed by the entropy decoding unit of the decoding apparatus.
- the decoding apparatus derives an intra prediction mode for the current block (S1300).
- the decoding apparatus may obtain prediction information about the current block through the bitstream.
- the prediction information may include information directly indicating an intra prediction mode for the current block, or any one of an intra prediction mode candidate list derived based on an intra prediction mode of a left or upper block of the current block. It may also contain information indicating candidates.
- the intra prediction mode candidate list may be referred to as an MPM candidate list.
- the decoding apparatus may derive an intra prediction mode for the current block based on the obtained prediction information.
- 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 intra prediction mode may be one of two non-directional intra prediction modes and 65 directional intra prediction modes.
- the two non-directional prediction modes may include an intra DC mode and an intra planner mode.
- the 65 directional intra prediction modes may include vertical directional intra prediction modes and horizontal directional intra prediction modes.
- the vertical directional intra prediction modes may include intra prediction mode 34 to intra intra prediction mode
- the horizontal directional intra prediction modes may include intra prediction mode 2 to intra prediction mode 33.
- the decoding apparatus derives reference samples of the current block (S1310).
- the decoding apparatus may derive the reference samples of the current block.
- the reference samples may include the left reference samples, the upper left reference sample, and the upper reference samples.
- the left reference samples, the upper left reference sample, and the upper reference samples may be derived from neighboring blocks that are already reconstructed at the decoding time of the current block. 2N upper reference samples, upper left reference sample, and 2N left reference samples of the current block may be derived.
- the left reference samples are p [-1] [0] to p [-1] [2N-1]
- the upper left reference sample is p [-1] [-1]
- the upper reference samples are p [0] [-1] to p [2N-1] [-1] Can be.
- the M + N upper reference samples of the current block, upper left A side reference sample and M + N left reference samples can be derived.
- the left reference samples are p [-1] [0] P [-1] [M + N-1]
- the upper left reference sample is p [-1] [-1]
- the upper reference samples are p [0] [-1] to p [M + N ⁇ 1] [-1].
- the decoding apparatus determines whether the intra prediction mode is an intra prediction mode for Position Dependent intra Prediction Combination (PDPC) (S1320).
- the decoding apparatus may determine whether the intra prediction mode of the current block is an intra prediction mode for the PDPC.
- the intra prediction mode for the PDPC may be derived from a combination of various intra prediction modes.
- the intra prediction mode for the PDPC may include an intra prediction mode 2, an intra prediction mode 18, an intra prediction mode 34, and an intra prediction mode 50.
- the PDPC may represent an intra prediction method performed based on unfiltered reference samples and filtered reference samples. Specifically, the PDPC performs filtering based on a filter for the PDPC to derive filtered reference samples, and based on the intra prediction mode of the current block and the filtered reference samples, the PDPC obtains a temporary prediction sample of the current block. Deriving and weighting the at least one reference sample and the temporary prediction sample derived according to the intra prediction mode among the existing reference samples, that is, the unfiltered reference samples, to predict the current block. An intra prediction method for deriving a sample may be indicated.
- the decoding apparatus may determine whether the intra prediction mode is an intra prediction mode for adaptive reference sample smoothing (ARSS).
- the intra prediction mode for the ARSS may be derived from a combination of various intra prediction modes.
- the intra prediction mode for the ARSS and the intra prediction mode for the PDPC may be different. That is, the intra prediction mode for the ARSS may not be included in the intra prediction mode for the PDPC. In other words, the intra prediction mode for the ARSS and the intra prediction mode for the PDPC may not include the same intra prediction mode.
- the decoding apparatus When the intra prediction mode for the ARSS and the intra prediction mode for the PDPC are different, and the intra prediction mode is the intra prediction mode for the PDPC, the decoding apparatus does not consider the PDPC flag of the current block and does not consider the current block.
- the ARSS may not be performed at.
- the intra prediction mode for the ARSS may be the same as the intra prediction mode for reference sample smoothing.
- the intra prediction mode for the reference sample smoothing process may indicate an intra prediction mode in which a smoothing process is performed on the reference samples of the current block, and the smoothing process may indicate filtering performed based on a smoothing filter.
- the smoothing filter may be a 3-tap filter having a filter coefficient of (1, 2, 1).
- the ARSS derives the parity of the residual signal of the current block as an ARSS flag, and when the ARSS flag indicates that the ARSS is performed on the current block, that is, the value of the ARSS flag If 1, it may represent a method of filtering reference samples based on the filter for the ARSS.
- the ARSS flag may indicate whether to perform the ARSS of the current block, and may be signaled by being held at the parity of the residual signal of the current block. That is, the ARSS flag may be signaled by being assigned to a parity of the residual signal of the current block instead of being allocated and signaled to a separate bit. Accordingly, the decoding apparatus may derive the parity of the residual signal of the current block as the ARSS flag.
- the ARSS flag indicating whether the current block performs ARSS is signaled by being hidden by the parity of the residual signal of the current block.
- the decoding apparatus may derive the parity of the residual signal of the current block as an ARSS flag.
- the decoding apparatus may filter the reference samples of the current block based on a filter for the ARSS, and the intra prediction of the current block among the filtered reference samples.
- a prediction sample of the current block may be derived based on a reference sample according to a mode.
- the decoding apparatus may filter the reference samples of the current block based on a filter for the ARSS, and based on the intra prediction mode and the filtered reference samples.
- a prediction sample of the current block can be derived.
- the decoding apparatus obtains a PDPC flag indicating whether the current block performs the PDPC through a bitstream (S1330). For example, if the intra prediction mode for the PDPC includes intra prediction mode 2, intra prediction mode 18, intra prediction mode 34, and intra prediction mode 50, the intra prediction mode of the current block is 2 If the intra prediction mode, the intra prediction mode, the intra prediction mode, the intra prediction mode, the intra prediction mode, the intra prediction mode, the intra prediction mode of the current block may be an intra prediction mode for the PDPC.
- the decoding apparatus may obtain a PDPC flag indicating whether the current block performs PDPC through the bitstream.
- the PDPC flag may indicate whether PDPC of the current block is performed. For example, when the value of the PDPC flag is 1, the PDPC flag may indicate that the PDPC is performed in the current block. When the value of the PDPC flag is 0, the PDPC flag is determined by the current block. It may indicate that PDPC is not performed.
- the decoding apparatus may determine whether the current block performs PDPC based on the value of the PDPC flag.
- the decoding apparatus may derive the prediction sample of the current block by performing the PDPC based on the intra prediction mode.
- the decoding apparatus may derive the prediction sample of the current block based on the intra prediction mode without performing the PDPC.
- the decoding apparatus When the value of the PDPC flag is 1, the decoding apparatus performs the PDPC based on the intra prediction mode to derive a prediction sample of the current block (S1340). When the value of the PDPC flag is 1, the decoding apparatus may perform filtering based on the filter for the PDPC to derive filtered reference samples, and based on the intra prediction mode of the current block and the filtered reference samples. As a result, a temporary prediction sample of the current block can be derived. Next, the decoding apparatus may derive the prediction sample of the current block by weighting the at least one reference sample and the temporary prediction sample derived according to the intra prediction mode among the unfiltered reference samples. .
- the decoding apparatus may determine whether the intra prediction mode is an intra prediction mode for adaptive reference sample smoothing (ARSS).
- the intra prediction mode for the ARSS may be derived from a combination of various intra prediction modes.
- the decoding apparatus may derive the parity of the residual signal of the current block as an ARSS flag, and when the value of the ARSS flag is 1,
- the decoding apparatus may filter the reference samples of the current block based on a filter for the ARSS, wherein the reference sample according to the intra prediction mode of the current block of the filtered reference samples may be used. Prediction samples can be derived.
- the decoding apparatus may omit whether the intra prediction mode is an intra prediction mode for the ARSS, and the reference sample that is not filtered. And a prediction sample of the current block based on the intra prediction mode. That is, when the intra prediction mode for the PDPC and the intra prediction mode for the ARSS are different, the intra prediction mode of the current block is the intra prediction mode for the PDPC, and the value of the PDPC flag is 0. May not perform the ARSS for the current block.
- the ARSS flag indicating whether the current block performs ARSS is signaled by being hidden on the parity of the residual signal of the current block.
- the decoding apparatus may derive the parity of the residual signal of the current block as an ARSS flag.
- the decoding apparatus may filter the reference samples of the current block based on a filter for the ARSS, and the intra prediction of the current block among the filtered reference samples.
- a prediction sample of the current block may be derived based on a reference sample according to a mode.
- the decoding apparatus may filter the reference samples of the current block based on a filter for the ARSS, and based on the intra prediction mode and the filtered reference samples.
- a prediction sample of the current block can be derived.
- the decoding apparatus may determine whether the intra prediction mode of the current block is an intra prediction mode for the reference sample smoothing. Meanwhile, when the intra prediction mode for the ARSS and the intra prediction mode for the reference sample smoothing are the same, it may not be determined whether the intra prediction mode of the current block is the intra prediction mode for the reference sample smoothing. That is, only when the intra prediction mode for the ARSS is different from the intra prediction mode for the reference sample smoothing, the decoding apparatus may determine whether the intra prediction mode of the current block is the intra prediction mode for the reference sample smoothing. .
- the decoding apparatus may filter the reference samples based on a smoothing filter, and the filtered reference samples and the intra of the current block.
- a prediction sample of the current block may be derived based on a prediction mode.
- the decoding apparatus may determine the current block based on the unfiltered reference samples and the intra prediction mode of the current block. Prediction samples can be derived.
- a prediction sample of the current block may be derived based on reference samples and the intra prediction mode of the current block.
- the intra prediction mode of the current block is the intra prediction mode for the ARSS, and the value of the ARSS flag is 0.
- the decoding apparatus may filter the reference samples based on a smoothing filter, and may derive the prediction sample of the current block based on the filtered reference samples and the intra prediction mode of the current block.
- the decoding apparatus may generate a reconstructed sample based on the prediction sample.
- the decoding apparatus may obtain a residual signal of the current block from the bitstream.
- the residual signal may include transform coefficients for the residual samples.
- the decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual signal. In this case, the decoding apparatus may generate the reconstructed sample based on the prediction sample and the residual sample.
- the decoding apparatus may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture in order to improve subjective / objective picture quality as necessary.
- an in-loop filtering procedure such as a deblocking filtering and / or SAO procedure
- the decoding apparatus may receive prediction information on the current block through the bitstream and may entropy decode. That is, the decoding apparatus may obtain prediction information of the current block through the bitstream.
- the prediction information may include the PDPC flag indicating whether the current block performs PDPC.
- the prediction information may include a residual signal of the current block.
- intra prediction may be performed by applying PDPC or ARSS in a specific intra prediction mode, thereby improving intra prediction efficiency and improving overall coding efficiency.
- intra prediction may be selectively performed by applying PDPC or ARSS through an intra prediction method combining PDPC and ARSS performed in a specific intra prediction mode, thereby improving intra prediction efficiency. Can improve the overall coding efficiency.
- the above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.
- the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function.
- the module may be stored in memory and executed by a processor.
- the memory may be internal or external to the processor and may be coupled to the processor by various well known means.
- the processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices.
- the memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
본 발명에 따른 디코딩 장치에 의하여 수행되는 인트라 예측 방법은 현재 블록에 대한 인트라 예측 모드를 도출하는 단계, 상기 현재 블록의 참조 샘플들을 도출하는 단계, 상기 인트라 예측 모드가 PDPC(Position Dependent intra Prediction combination) 에 대한 인트라 예측 모드인지 판단하는 단계, 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 비트스트림을 통하여 상기 현재 블록의 PDPC 수행 여부를 나타내는 PDPC 플래그를 획득하는 단계 및 상기 PDPC 플래그의 값이 1인 경우, 상기 인트라 예측 모드를 기반으로 상기 PDPC 를 수행하여 상기 현재 블록의 예측 샘플을 도출하는 단계를 포함하는 것을 특징으로 한다.
Description
본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 인트라 예측에 따른 영상 디코딩 방법 및 장치에 관한 것이다.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.
본 발명의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.
본 발명의 다른 기술적 과제는 특정 조건에서 PDPC(Position Dependent intra Prediction combination) 또는 ARSS(Adaptive Reference Sample Smoothing) 를 적용하여 현재 블록의 인트라 예측을 수행하는 인트라 예측 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 특정 조건에서 수행되는 PDPC 및 ARSS를 조합하여 현재 블록에 대한 인트라 예측을 수행하는 방법 및 장치를 제공함에 있다.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 인트라 예측 방법이 제공된다. 상기 방법은 현재 블록에 대한 인트라 예측 모드를 도출하는 단계, 상기 현재 블록의 참조 샘플들을 도출하는 단계, 상기 인트라 예측 모드가 PDPC(Position Dependent intra Prediction combination) 에 대한 인트라 예측 모드인지 판단하는 단계, 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 비트스트림을 통하여 상기 현재 블록의 PDPC 수행 여부를 나타내는 PDPC 플래그를 획득하는 단계 및 상기 PDPC 플래그의 값이 1인 경우, 상기 인트라 예측 모드를 기반으로 상기 PDPC 를 수행하여 상기 현재 블록의 예측 샘플을 도출하는 단계를 포함하는 것을 특징으로 한다.
본 발명의 다른 일 실시예에 따르면, 인트라 예측을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는 현재 블록에 대한 예측 정보를 획득하는 엔트로피 디코딩부, 및 상기 현재 블록에 대한 인트라 예측 모드를 도출하고, 상기 현재 블록의 참조 샘플들을 도출하고, 상기 인트라 예측 모드가 PDPC(Position Dependent intra Prediction combination) 에 대한 인트라 예측 모드인지 판단하고, PDPC 플래그의 값이 1인 경우, 상기 인트라 예측 모드를 기반으로 상기 PDPC 를 수행하여 상기 현재 블록의 예측 샘플을 도출하는 예측부를 포함하되, 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 상기 예측 정보는 상기 현재 블록의 PDPC 수행 여부를 나타내는 상기 PDPC 플래그를 포함하는 것을 특징으로 한다.
본 발명의 또 다른 일 실시예에 따르면, 인코딩 장치에 의하여 수행되는 인트라 예측 방법을 제공한다. 상기 방법은 현재 블록에 대한 인트라 예측 모드를 결정하는 단계, 상기 현재 블록의 참조 샘플들을 도출하는 단계, 상기 인트라 예측 모드가 PDPC(Position Dependent intra Prediction combination) 에 대한 인트라 예측 모드인지 판단하는 단계, 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 상기 현재 블록의 PDPC 수행 여부를 판단하는 단계 및 상기 현재 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 단계를 포함하는 단계를 포함하는 것을 특징으로 한다.
본 발명의 또 다른 일 실시예에 따르면, 비디오 인코딩 장치를 제공한다. 상기 인코딩 장치는 현재 블록에 대한 인트라 예측 모드를 결정하고, 상기 현재 블록의 참조 샘플들을 도출하고, 상기 인트라 예측 모드가 PDPC(Position Dependent intra Prediction combination) 에 대한 인트라 예측 모드인지 판단하고, 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 상기 현재 블록의 PDPC 수행 여부를 판단하는 예측부, 및 상기 현재 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 엔트로피 인코딩부를 포함하는 것을 특징으로 한다.
본 발명에 따르면 특정 인트라 예측 모드에서 PDPC 또는 ARSS 를 적용하여 인트라 예측을 수행할 수 있고, 이를 통하여 인트라 예측 효율을 보다 향상시킬 수 있고, 전반적인 코딩 효율을 향상시킬 수 있다.
본 발명에 따르면 특정 인트라 예측 모드에서 수행되는 PDPC 및 ARSS를 조합한 인트라 예측 방법을 통하여 선택적으로 PDPC 또는 ARSS 를 적용하여 인트라 예측을 수행할 수 있고, 이를 통하여 인트라 예측 효율을 보다 향상시킬 수 있고, 전반적인 코딩 효율을 향상시킬 수 있다.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 3은 상기 현재 블록의 인트라 예측에 사용되는 상기 좌측 주변 샘플들 및 상측 주변 샘플들을 예시적으로 나타낸다.
도 4는 65개의 예측 방향의 인트라 방향성 모드들을 예시적으로 나타낸다.
도 5는 상기 제한된 PDPC 를 수행하는 일 예를 나타낸다.
도 6은 상기 기존의 ARSS 를 수행하는 일 예를 나타낸다.
도 7은 상기 제한된 ARSS 를 수행하는 일 예를 나타낸다.
도 8은 상기 제한된 ARSS 를 수행하는 다른 일 예를 나타낸다.
도 9는 제한된 PDPC 및 제한된 ARSS 를 조합하여 수행되는 인트라 예측의 일 예를 나타낸다.
도 10은 제한된 PDPC 및 제한된 ARSS 를 조합하여 수행되는 인트라 예측의 다른 일 예를 나타낸다.
도 11은 PDPC 에 대한 인트라 예측 모드 및 상기 ARSS에 대한 인트라 예측 모드가 서로 다르게 설정된 경우, 상기 제한된 PDPC 및 제한된 ARSS 를 조합하여 수행되는 인트라 예측의 다른 일 예를 나타낸다.
도 12는 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다.
도 13은 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.
본 명세서에서 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다.
유닛(unit)은 영상 처리의 기본 단위를 나타낸다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 1을 참조하면, 비디오 인코딩 장치(100)는 픽처 분할부(105), 예측부(110), 레지듀얼 처리부(120), 엔트로피 인코딩부(130), 가산부(140), 필터부(150) 및 메모리(160)을 포함할 수 있다. 레지듀얼 처리부(120)는 감산부(121), 변환부(122), 양자화부(123), 재정렬부(124), 역양자화부(125) 및 역변환부(126)를 포함할 수 있다.
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다.
일 예로, 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다.
다른 예로, 처리 유닛은 코딩 유닛(coding unit, CU) 예측 유닛(prediction unit, PU) 또는 변환 유닛(transform unit, TU)을 포함할 수도 있다. 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 쿼드 트리 구조를 따라서 하위(deeper) 뎁스의 코딩 유닛들로 분할(split)될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 최소 코딩 유닛(smallest coding unit, SCU)이 설정된 경우 코딩 유닛은 최소 코딩 유닛보다 더 작은 코딩 유닛으로 분할될 수 없다. 여기서 최종 코딩 유닛이라 함은 예측 유닛 또는 변환 유닛으로 파티셔닝 또는 분할되는 기반이 되는 코딩 유닛을 의미한다. 예측 유닛은 코딩 유닛으로부터 파티셔닝(partitioning)되는 유닛으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록(sub block)으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 유닛일 수 있다. 이하, 코딩 유닛은 코딩 블록(coding block, CB), 예측 유닛은 예측 블록(prediction block, PB), 변환 유닛은 변환 블록(transform block, TB) 으로 불릴 수 있다. 예측 블록 또는 예측 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 예측 샘플의 어레이(array)를 포함할 수 있다. 또한, 변환 블록 또는 변환 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 변환 계수 또는 레지듀얼 샘플의 어레이를 포함할 수 있다.
예측부(110)는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(110)에서 수행되는 예측의 단위는 코딩 블록일 수 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.
예측부(110)는 현재 블록에 인트라 예측이 적용되는지 인터 예측이 적용되는지를 결정할 수 있다. 일 예로, 예측부(110)는 CU 단위로 인트라 예측 또는 인터 예측이 적용되는지를 결정할 수 있다.
인트라 예측의 경우에, 예측부(110)는 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 현재 블록 외부의 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 예측부(110)는 (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 인트라 예측에서 예측 모드는 예를 들어 33개의 방향성 예측 모드와 적어도 2개 이상의 비방향성 모드를 가질 수 있다. 비방향성 모드는 DC 예측 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 예측부(110)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측의 경우에, 예측부(110)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 샘플을 기반으로, 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(110)는 스킵(skip) 모드, 머지(merge) 모드, 및 MVP(motion vector prediction) 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 스킵 모드와 머지 모드의 경우에, 예측부(110)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차(레지듀얼)가 전송되지 않는다. MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(Motion Vector Predictor)로 이용하여 현재 블록의 움직임 벡터 예측자로 이용하여 현재 블록의 움직임 벡터를 유도할 수 있다.
인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처(reference picture)에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 움직임 정보(motion information)는 움직임 벡터와 참조 픽처 인덱스를 포함할 수 있다. 예측 모드 정보와 움직임 정보 등의 정보는 (엔트로피) 인코딩되어 비트스트림 형태로 출력될 수 있다.
스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트(reference picture list) 상의 최상위 픽처가 참조 픽처로서 이용될 수도 있다. 참조 픽처 리스트(Picture Order Count)에 포함되는 참조 픽처들은 현재 픽처와 해당 참조 픽처 간의 POC(Picture order count) 차이 기반으로 정렬될 수 있다. POC는 픽처의 디스플레이 순서에 대응하며, 코딩 순서와 구분될 수 있다.
감산부(121)는 원본 샘플과 예측 샘플 간의 차이인 레지듀얼 샘플을 생성한다. 스킵 모드가 적용되는 경우에는, 상술한 바와 같이 레지듀얼 샘플을 생성하지 않을 수 있다.
변환부(122)는 변환 블록 단위로 레지듀얼 샘플을 변환하여 변환 계수(transform coefficient)를 생성한다. 변환부(122)는 해당 변환 블록의 사이즈와, 해당 변환 블록과 공간적으로 겹치는 코딩 블록 또는 예측 블록에 적용된 예측 모드에 따라서 변환을 수행할 수 있다. 예컨대, 상기 변환 블록과 겹치는 상기 코딩 블록 또는 상기 예측 블록에 인트라 예측이 적용되었고, 상기 변환 블록이 4×4의 레지듀얼 어레이(array)라면, 레지듀얼 샘플은 DST(Discrete Sine Transform) 변환 커널을 이용하여 변환되고, 그 외의 경우라면 레지듀얼 샘플은 DCT(Discrete Cosine Transform) 변환 커널을 이용하여 변환할 수 있다.
양자화부(123)는 변환 계수들을 양자화하여, 양자화된 변환 계수를 생성할 수 있다.
재정렬부(124)는 양자화된 변환 계수를 재정렬한다. 재정렬부(124)는 계수들 스캐닝(scanning) 방법을 통해 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있다. 여기서 재정렬부(124)는 별도의 구성으로 설명하였으나, 재정렬부(124)는 양자화부(123)의 일부일 수 있다.
엔트로피 인코딩부(130)는 양자화된 변환 계수들에 대한 엔트로피 인코딩을 수행할 수 있다. 엔트로피 인코딩은 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 인코딩 방법을 포함할 수 있다. 엔트로피 인코딩부(130)는 양자화된 변환 계수 외 비디오 복원에 필요한 정보들(예컨대 신택스 요소(syntax element)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 엔트로피 인코딩된 정보들은 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다.
역양자화부(125)는 양자화부(123)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(126)는 역양자화부(125)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.
가산부(140)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(140)는 별도의 구성으로 설명하였으나, 가산부(140)는 예측부(110)의 일부일 수 있다. 한편, 가산부(140)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다.
복원된 픽처(reconstructed picture)에 대하여 필터부(150)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(150)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.
메모리(160)는 복원 픽처(디코딩된 픽처) 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(150)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 2를 참조하면, 비디오 디코딩 장치(200)는 엔트로피 디코딩부(210), 레지듀얼 처리부(220), 예측부(230), 가산부(240), 필터부(250) 및 메모리(260)을 포함할 수 있다. 여기서 레지듀얼 처리부(220)는 재정렬부(221), 역양자화부(222), 역변환부(223)을 포함할 수 있다.
비디오 정보를 포함하는 비트스트림이 입력되면, 비디오 디코딩 장치는(200)는 비디오 인코딩 장치에서 비디오 정보가 처리된 프로세스에 대응하여 비디오를 복원할 수 있다.
예컨대, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 적용된 처리 유닛을 이용하여 비디오 디코딩을 수행할 수 있다. 따라서 비디오 디코딩의 처리 유닛 블록은 일 예로 코딩 유닛일 수 있고, 다른 예로 코딩 유닛, 예측 유닛 또는 변환 유닛일 수 있다. 코딩 유닛은 최대 코딩 유닛으로부터 쿼드 트리 구조 및/또는 바이너리 트리 구조를 따라서 분할될 수 있다.
예측 유닛 및 변환 유닛이 경우에 따라 더 사용될 수 있으며, 이 경우 예측 블록은 코딩 유닛으로부터 도출 또는 파티셔닝되는 블록으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 또는 변환 계수로부터 레지듀얼 신호를 유도하는 유닛일 수 있다.
엔트로피 디코딩부(210)는 비트스트림을 파싱하여 비디오 복원 또는 픽처 복원에 필요한 정보를 출력할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 비디오 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다.
보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다.
엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(230)로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수는 재정렬부(221)로 입력될 수 있다.
재정렬부(221)는 양자화되어 있는 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 재정렬부(221)는 인코딩 장치에서 수행된 계수 스캐닝에 대응하여 재정렬을 수행할 수 있다. 여기서 재정렬부(221)는 별도의 구성으로 설명하였으나, 재정렬부(221)는 역양자화부(222)의 일부일 수 있다.
역양자화부(222)는 양자화되어 있는 변환 계수들을 (역)양자화 파라미터를 기반으로 역양자화하여 변환 계수를 출력할 수 있다. 이 때, 양자화 파라미터를 유도하기 위한 정보는 인코딩 장치로부터 시그널링될 수 있다.
역변환부(223)는 변환 계수들을 역변환하여 레지듀얼 샘플들을 유도할 수 있다.
예측부(230)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(230)에서 수행되는 예측의 단위는 코딩 블록일 수도 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.
예측부(230)는 상기 예측에 관한 정보를 기반으로 인트라 예측을 적용할 것인지 인터 예측을 적용할 것인지를 결정할 수 있다. 이 때, 인트라 예측과 인터 예측 중 어느 것을 적용할 것인지를 결정하는 단위와 예측 샘플을 생성하는 단위는 상이할 수 있다. 아울러, 인터 예측과 인트라 예측에 있어서 예측 샘플을 생성하는 단위 또한 상이할 수 있다. 예를 들어, 인터 예측과 인트라 예측 중 어느 것을 적용할 것인지는 CU 단위로 결정할 수 있다. 또한 예를 들어, 인터 예측에 있어서 PU 단위로 예측 모드를 결정하고 예측 샘플을 생성할 수 있고, 인트라 예측에 있어서 PU 단위로 예측 모드를 결정하고 TU 단위로 예측 샘플을 생성할 수도 있다.
인트라 예측의 경우에, 예측부(230)는 현재 픽처 내의 주변 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용할 예측 모드가 결정될 수도 있다.
인터 예측의 경우에, 예측부(230)는 참조 픽처 상에서 움직임 벡터에 의해 참조 픽처 상에서 특정되는 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 스킵(skip) 모드, 머지(merge) 모드 및 MVP 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이때, 비디오 인코딩 장치에서 제공된 현재 블록의 인터 예측에 필요한 움직임 정보, 예컨대 움직임 벡터, 참조 픽처 인덱스 등에 관한 정보는 상기 예측에 관한 정보를 기반으로 획득 또는 유도될 수 있다
스킵 모드와 머지 모드의 경우에, 주변 블록의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.
예측부(230)는 가용한 주변 블록의 움직임 정보로 머지 후보 리스트를 구성하고, 머지 인덱스가 머지 후보 리스트 상에서 지시하는 정보를 현재 블록의 움직임 벡터로 사용할 수 있다. 머지 인덱스는 인코딩 장치로부터 시그널링될 수 있다. 움직임 정보는 움직임 벡터와 참조 픽처를 포함할 수 있다. 스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트 상의 최상위 픽처가 참조 픽처로서 이용될 수 있다.
스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차이(레지듀얼)이 전송되지 않는다.
MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하여 현재 블록의 움직임 벡터가 유도될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.
일 예로, 머지 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 머지 후보 리스트가 생성될 수 있다. 머지 모드에서는 머지 후보 리스트에서 선택된 후보 블록의 움직임 벡터가 현재 블록의 움직임 벡터로 사용된다. 상기 예측에 관한 정보는 상기 머지 후보 리스트에 포함된 후보 블록들 중에서 선택된 최적의 움직임 벡터를 갖는 후보 블록을 지시하는 머지 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 머지 인덱스를 이용하여, 현재 블록의 움직임 벡터를 도출할 수 있다.
다른 예로, MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터는 움직임 벡터 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 후보 중에서 선택된 최적의 움직임 벡터를 지시하는 예측 움직임 벡터 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 움직임 벡터 인덱스를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서, 현재 블록의 예측 움직임 벡터를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 예측부(230)는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 예측부는 또한 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다.
가산부(240)는 레지듀얼 샘플과 예측 샘플을 더하여 현재 블록 혹은 현재 픽처를 복원할 수 있다. 가산부(240)는 레지듀얼 샘플과 예측 샘플을 블록 단위로 더하여 현재 픽처를 복원할 수도 있다. 스킵 모드가 적용된 경우에는 레지듀얼이 전송되지 않으므로, 예측 샘플이 복원 샘플이 될 수 있다. 여기서는 가산부(240)를 별도의 구성으로 설명하였으나, 가산부(240)는 예측부(230)의 일부일 수도 있다. 한편, 가산부(240)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다.
필터부(250)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.
메모리(260)는 복원 픽처(디코딩된 픽처) 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(250)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(260)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(260)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다.
상술한 내용과 같이 현재 블록에 예측이 수행되는 경우, 인트라 예측 모드를 기반으로 상기 예측이 수행될 수 있다. 예를 들어, 상기 현재 블록의 디코딩 시점에 이미 인코딩/디코딩이 수행된 참조 샘플을 기반으로 상기 인트라 예측이 수행될 수 있다. 즉, 상기 현재 블록의 예측 샘플은 이미 복원된 상기 현재 블록의 좌측 참조 샘플들, 좌상측 참조 샘플 및 상측 참조 샘플들을 사용하여 복원될 수 있다. 상기 좌측 참조 샘플들, 좌상측 참조 샘플 및 상기 상측 참조 샘플들은 다음 도 3과 같이 나타낼 수 있다.
도 3은 상기 현재 블록의 인트라 예측에 사용되는 상기 좌측 주변 샘플들 및 상측 주변 샘플들을 예시적으로 나타낸다. 상기 좌측 참조 샘플들, 상기 좌상측 주변 샘플 및 상기 상측 주변 샘플들은 상기 현재 블록의 주변 샘플들을 나타낼 수 있는바, 상기 현재 블록의 사이즈가 NxN이고, 상기 현재 블록의 좌상단(top-left) 샘플의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 참조 샘플들은 p[-1][0] 내지 p[-1][2N-1], 상기 좌상측 참조 샘플은 p[-1][-1], 상기 상측 참조 샘플들은 p[0][-1] 내지 p[2N-1][-1] 일 수 있다.
상기 현재 블록에 인트라 예측이 수행되는 경우, 상기 현재 블록에 대한 인트라 예측 모드가 도출될 수 있고, 상기 인트라 예측 모드에 따라 상기 좌측 참조 샘플들, 상기 좌상측 주변 샘플 및 상기 상측 주변 샘플들 중 적어도 하나를 이용하여 상기 현재 블록에 대한 예측 샘플이 생성될 수 있다. 여기서, 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 33개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 34번 인트라 예측 모드들을 포함할 수 있다. 상기 플래너 인트라 예측 모드는 플래너 모드라고 불릴 수 있고, 상기 DC 인트라 예측 모드는 DC 모드라고 불릴 수 있다. 또한, 10번 인트라 예측 모드는 수평 인트라 예측 모드(horizontal intra prediction mode) 또는 수평 모드, 26번 인트라 예측 모드는 수직 인트라 예측 모드(vertical intra prediction mode) 또는 수직 모드를 나타내며 이를 기준으로 방향성 인트라 모드(angular intra mode)의 예측 방향을 각도로 표현할 수 있다. 다시 말하자면, 10번 인트라 예측 모드에 대응하는 수평기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있고, 26번 인트라 예측 모드에 대응하는 수직기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있다.
또한, 고화질의 비디오에 대한 수요가 늘어나고 있고, 이에 따른 비디오 코덱의 효율을 높이기 위해 방향성 인트라 예측 방향의 수가 65개로 증가할 수 있다. 즉, 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 66번 인트라 예측 모드들을 포함할 수 있다.
도 4는 65개의 예측 방향의 인트라 방향성 모드들을 예시적으로 나타낸다.
도 4를 참조하면, 좌상 대각 예측 방향을 갖는 34번 인트라 예측 모드를 중심으로 수평 방향성(horizontal directionality)을 갖는 인트라 예측 모드와 수직 방향성(vertical directionality)을 갖는 인트라 예측 모드를 구분할 수 있다. 도 4의 H와 V는 각각 수평 방향성과 수직 방향성을 의미하며, -32 ~ 32의 숫자는 샘플 그리드 포지션(sample grid position) 상에서 1/32 단위의 변위를 나타낸다. 2번 내지 33번 인트라 예측 모드는 수평 방향성, 34번 내지 66번 인트라 예측 모드는 수직 방향성을 갖는다. 18번 인트라 예측 모드와 50번 인트라 예측 모드는 각각 수평 인트라 예측 모드(horizontal intra prediction mode), 수직 인트라 예측 모드(vertical intra prediction mode)를 나타내며 이를 기준으로 방향성 인트라 예측 모드(angular intra prediction mode)의 예측 방향을 각도로 표현할 수 있다. 다시 말하자면, 18번 인트라 예측 모드에 대응하는 수평기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있고, 50번 인트라 예측 모드에 대응하는 수직기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있다.
한편, 상술한 내용과 같이 현재 블록에 대하여 인트라 예측이 수행되는 경우, 예측 정확도를 향상시키기 위한 다양한 방법이 적용될 수 있다. 특히, 상기 참조 샘플들에 대한 필터링을 통하여 상기 참조 샘플에 포함된 노이즈(noise) 또는 왜곡(distortion)를 줄여 상기 현재 블록에 대한 예측 정확도를 향상시키는 방법들이 제안될 수 있다.
일 예로, 상기 현재 블록에 대하여 PDPC(Position Dependent intra Prediction combination)가 적용되어 상기 현재 블록의 예측 샘플이 도출될 수 있다. 상기 PDPC 는 필터링되지 않은 참조 샘플들 및 필터링된 참조 샘플들을 기반으로 수행하는 인트라 예측 방법을 나타낼 수 있다. 구체적으로, 상기 PDPC는 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출하고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출하고, 상기 기존의 참조 샘플들, 즉, 필터링되지 않은 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출하는 인트라 예측 방법을 나타낼 수 있다. 여기서, 상기 기정의된 필터는 5개의 7탭(tap) 필터들 중 하나일 수 있다. 또는 상기 기정의된 필터는 3탭 필터, 5탭 필터 및 7탭 필터 중 하나일 수 있다. 상기 3탭 필터, 상기 5탭 필터 및 상기 7탭 필터는 각각 3개의 필터 계수 (filter coefficient)를 갖는 필터, 5개의 필터 계수를 갖는 필터, 7개의 필터 계수를 갖는 필터를 나타낼 수 있다.
또한, 다른 예로, ARSS(Adaptive Reference Sample Smoothing)를 상기 참조 샘플들에 적용될 수 있고, 상기 ARSS를 통하여 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플이 도출될 수 있다. 상기 ARSS 는 상기 ARSS에 대한 필터를 기반으로 참조 샘플들을 필터링하되, 상기 현재 블록의 상기 ARSS 적용 여부를 나타내는 플래그를 상기 현재 블록의 레지듀얼(residual) 신호의 패리티(parity)에 하이딩(hiding)하여 시그널링하는 방법을 나타낼 수 있다. 즉, 별도의 비트에 할당된 플래그가 시그널링되는 대신 상기 현재 블록의 레지듀얼 신호에 대한 패리티가 상기 ARSS 적용 여부를 나타내는 플래그로 도출될 수 있다. 다시 말해, 상기 현재 블록의 변환 계수들 중 홀수 위치에 있는 체크섬(checksum) 값이 상기 ARSS 적용 여부를 나타내는 플래그로 도출될 수 있다. 여기서, 상기 ARSS 에 대한 필터는 (2, 3, 6. 3, 2) 의 필터 계수를 갖는 5탭 필터일 수 있다. 또한, 상기 참조 샘플들에 수행되는 필터링은 상기 참조 샘플들 간의 샘플값 차이를 줄이는 스무딩(smoothing) 처리를 나타낼 수 있다.
한편, 상술한 PDPC 및 ARSS 는 특정 조건에서 적용하는 것이 입력 영상을 인코딩/디코딩하는 과정을 보다 효율적으로 처리할 수 있도록 할 수 있다. 또한, 상기 PDPC 및 상기 ARSS 를 참조 샘플들에 대한 필터링을 이용한 방법들로 유사한 효과를 발생시킬 수 있는바, 특정 조건에 따라 선택적으로 적용하는 방안을 통하여 인코딩/디코딩 과정의 효율을 보다 향상시킬 수 있다.
이에, 본 발명에서는 특정 조건에서 상기 PDPC 또는 ARSS 를 적용하여 상기 현재 블록의 인트라 예측을 수행하는 방법들을 제안한다.
일 예로, 인트라 예측 모드들 중 특정 방향의 인트라 예측 모드에 대하여 상기 PDPC를 적용하지 않는 제한된(constrained) PDPC 가 제안될 수 있다. 구체적으로, 상기 제한된 PDPC는 현재 블록의 인트라 예측 모드가 특정 예측 방향의 인트라 예측 모드인 경우에는 PDPC가 적용하지 않는 인트라 예측 방법을 나타낼 수 있다. 한편, 기존의 PDPC 는 인트라 예측 모드의 예측 방향에 관계없이, 즉, 모든 인트라 예측 모드에 대하여 적용될 수 있고, 이에, 상기 현재 블록의 인트라 예측 모드와 관계없이 상기 PDPC의 수행여부를 나타내는 플래그가 시그널링될 수 있다. 이와 달리 상기 제한된 PDPC는 상기 현재 블록의 인트라 예측 모드가 상기 특정 방향의 인트라 예측 모드인 경우, 상기 현재 블록에 대한 PDPC 플래그가 시그널링되지 않을 수 있다. 여기서, 상기 PDPC 플래그는 상기 현재 블록의 PDPC 수행 여부를 나타내는 플래그를 나타낼 수 있다.
도 5는 상기 제한된 PDPC 를 수행하는 일 예를 나타낸다. 도 5를 참조하면 디코딩 장치는 현재 블록이 루마(luma) 성분에 대한 블록인지 판단할 수 있다(S500). 상기 현재 블록이 루마 성분에 대한 블록이 아닌 경우, 디코딩 장치는 상기 현재 블록에 PDPC 를 수행하지 않을 수 있다. 상기 현재 블록이 루마 성분에 대한 블록인 경우, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향인지 판단할 수 있다(S510). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 PDPC에 대한 인트라 예측 모드인지 판단할 수 있다. 다시 말해, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 PDPC 가 적용 가능한 인트라 예측 모드인지 판단할 수 있다. 도 5의 intraDir 는 상기 현재 블록의 인트라 예측 모드의 예측 방향을 나타낼 수 있다. 여기서, 상기 현재 블록의 상기 PDPC에 대한 예측 방향은 인트라 예측 모드들의 예측 방향들의 다양한 조합으로 설정될 수 있다. 즉, 상기 PDPC에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다. 예를 들어, 인트라 예측 모드가 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들을 포함하는 경우, 상기 PDPC에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드, 및 50번 인트라 예측 모드를 포함할 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향인 경우, 디코딩 장치는 상기 현재 블록에 대한 PDPC 플래그를 파싱할 수 있다(S520). 디코딩 장치는 상기 PDPC 플래그를 기반으로 상기 현재 블록의 PDPC 수행 여부를 판단할 수 있다. 상기 PDPC 플래그는 상기 현재 블록의 PDPC 수행 여부를 나타내는 플래그일 수 있다. 예를 들어, 상기 PDPC 플래그의 값이 1인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC가 수행됨을 나타낼 수 있고, 이 경우, 디코딩 장치는 상기 PDPC를 적용하여 상기 현재 블록의 예측 샘플을 도출할 수 있다. 구체적으로, 디코딩 장치는 상기 현재 블록의 참조 샘플들에 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출할 수 있고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출할 수 있고, 상기 기존의 참조 샘플들, 즉, 필터링되지 않은 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출할 수 있다.
또한, 상기 PDPC 플래그의 값이 0인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC가 수행되지 않음을 나타낼 수 있고, 이 경우, 디코딩 장치는 기존의 인트라 예측에 따른 상기 현재 블록의 예측 샘플을 도출할 수 있다.
또한, 다른 예로, 인트라 예측 모드들 중 특정 방향의 인트라 예측 모드에 대하여 상기 ARSS 를 적용하지 않는 제한된(constrained) ARSS 가 제안될 수 있다. 구체적으로, 상기 제한된 ARSS는 현재 블록의 인트라 예측 모드가 특정 예측 방향의 인트라 예측 모드인 경우에는 ARSS가 적용하지 않는 인트라 예측 방법을 나타낼 수 있다. 기존의 ARSS는 후술하는 도 6에 도시된 것과 같이 인트라 DC 모드를 제외한 모든 인트라 예측 모드의 예측 방향에 대하여 상기 참조 샘플들에 스무딩(smoothing) 처리가 수행되는지 여부(즉, 상기 참조 샘플들에 대한 필터링 수행 여부)를 나타내는 플래그가 시그널링될 수 있다.
도 6은 상기 기존의 ARSS 를 수행하는 일 예를 나타낸다. 도 6을 참조하면 디코딩 장치는 현재 블록의 ARSS 플래그가 상기 현재 블록의 레지듀얼 신호에 대한 패리티에 하이딩(hiding)되어 시그널링되는지 여부를 판단할 수 있다(S600). 여기서, ARSS 플래그는 상기 참조 샘플들에 스무딩(smoothing) 처리가 수행되는지 여부(즉, 상기 참조 샘플들에 대한 필터링 수행 여부)를 나타내는 플래그, 즉, 상기 현재 블록의 ARSS 수행 여부를 나타내는 플래그일 수 있다. 또한, 상기 ARSS 플래그가 상기 패리티에 하이딩되어 전송되는 방법은 상기 현재 블록의 레지듀얼 신호에 대한 패리티가 상기 ARSS 플래그를 나타내도록 전송하는 방법을 나타낼 수 있다.
상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링되지 않은 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S610). 여기서, 상기 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
한편, 상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링된 경우, 디코딩 장치는 상기 패리티를 기반으로 상기 현재 블록의 상기 ARSS 플래그를 도출할 수 있고, 상기 ARSS 플래그의 값이 1인지 판단할 수 있다(S620). 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 ARSS 필터를 기반으로 필터링할 수 있다(S630). 여기서, 상기 ARSS 필터는 상기 ARSS 에 대한 필터로 (2, 3, 6, 3, 2)의 필터 계수를 갖는 5탭 필터일 수 있다. 또한, 상기 ARSS 플래그의 값이 0인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S610).
기존의 ARSS가 적용되는 경우, 상술한 내용과 같이 현재 블록의 인트라 예측 모드의 예측 방향과 관계없이 ARSS 플래그가 시그널링되지만, 본 발명에서 제안한 제한된 ARSS가 적용되는 경우, 후술하는 도 7에 도시된 것과 같이 상기 현재 블록의 상기 인트라 예측 모드가 특정 인트라 예측 모드인 경우에만 ARSS 플래그가 시그널링될 수 있다.
도 7은 상기 제한된 ARSS 를 수행하는 일 예를 나타낸다. 도 7을 참조하면 디코딩 장치는 현재 블록의 인트라 예측 모드의 예측 방향이 상기 ARSS에 대한 예측 방향인지 판단할 수 있다(S700). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 ARSS에 대한 인트라 예측 모드인지 판단할 수 있다. 다시 말해, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 ARSS 가 적용 가능한 인트라 예측 모드인지 판단할 수 있다. 도 7의 intraDir 는 상기 현재 블록의 인트라 예측 모드의 예측 방향을 나타낼 수 있다. 여기서, 상기 현재 블록의 상기 ARSS 에 대한 예측 방향은 인트라 예측 모드들의 예측 방향들의 다양한 조합으로 설정될 수 있다. 즉, 상기 ARSS 에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 ARSS에 대한 예측 방향이 아닌 경우, 디코딩 장치는 상기 상기 현재 블록의 인트라 예측 모드의 예측 방향이 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인지 판단할 수 있다(S710). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록의 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드인지 판단할 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 특정 인트라 예측 모드인 경우에 상기 참조 샘플들에 대한 스무딩 처리가 수행될 수 있고, 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되지 않는 예측 방향인 경우, 디코딩 장치는 상기 참조 샘플들에 대한 필터링을 수행하지 않을 수 있다(S720). 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S730). 여기서, 상기 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 ARSS에 대한 예측 방향인 경우, 디코딩 장치는 현재 블록의 ARSS 플래그가 상기 현재 블록의 레지듀얼 신호에 대한 패리티에 하이딩(hiding)되어 시그널링되는지 여부를 판단할 수 있다(S740). 여기서, ARSS 플래그는 상기 참조 샘플들에 스무딩(smoothing) 처리가 수행되는지 여부(즉, 상기 참조 샘플들에 대한 ARSS 필터 기반 필터링 수행 여부)를 나타내는 플래그, 즉, 상기 현재 블록의 ARSS 수행 여부를 나타내는 플래그일 수 있다. 또한, 상기 ARSS 플래그가 상기 패리티에 하이딩되어 전송되는 방법은 상기 현재 블록의 레지듀얼 신호에 대한 패리티가 상기 ARSS 플래그를 나타내도록 전송하는 방법을 나타낼 수 있다.
상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링되지 않은 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S730). 여기서, 상기 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
한편, 상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링된 경우, 디코딩 장치는 상기 패리티를 기반으로 상기 현재 블록의 상기 ARSS 플래그를 도출할 수 있고, 상기 ARSS 플래그의 값이 1인지 판단할 수 있다(S750). 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 ARSS 필터를 기반으로 필터링할 수 있다(S760). 여기서, 상기 ARSS 필터는 상기 ARSS 에 대한 필터로 (2, 3, 6, 3, 2)의 필터 계수를 갖는 5탭 필터일 수 있다. 또한, 상기 ARSS 플래그의 값이 0인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S730).
한편, 상술한 내용과 같이 상기 현재 블록의 인트라 예측 모드가 제한된 ARSS 에 대한 인트라 예측 모드인지 판단하는 과정과 상기 현재 블록의 인트라 예측 모드가 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드인지 판단하는 과정이 구분될 수 있으나, 상기 현재 블록의 인트라 예측 모드가 제한된 ARSS 에 대한 인트라 예측 모드인지 판단하는 과정과 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드인지 판단하는 과정을 공통적으로 수행하는 방안이 제안될 수 있다. 즉, 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드에 대해서만 상기 ARSS 가 수행되도록 하는 제한된 ARSS 가 제안될 수 있다.
도 8은 상기 제한된 ARSS 를 수행하는 다른 일 예를 나타낸다. 도 8을 참조하면 디코딩 장치는 현재 블록의 인트라 예측 모드의 예측 방향이 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인지 판단할 수 있다(S800). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록의 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드인지 판단할 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 특정 인트라 예측 모드인 경우에 상기 참조 샘플들에 대한 스무딩 처리가 수행될 수 있고, 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되지 않는 예측 방향인 경우, 디코딩 장치는 상기 참조 샘플들에 대한 필터링을 수행하지 않을 수 있다(S810).
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인 경우, 디코딩 장치는 현재 블록의 ARSS 플래그가 상기 현재 블록의 레지듀얼 신호에 대한 패리티에 하이딩(hiding)되어 시그널링되는지 여부를 판단할 수 있다(S820). 여기서, ARSS 플래그는 상기 참조 샘플들에 스무딩(smoothing) 처리가 수행되는지 여부(즉, 상기 참조 샘플들에 대한 ARSS 필터 기반 필터링 수행 여부)를 나타내는 플래그, 즉, 상기 현재 블록의 ARSS 수행 여부를 나타내는 플래그일 수 있다. 또한, 상기 ARSS 플래그가 상기 패리티에 하이딩되어 전송되는 방법은 상기 현재 블록의 레지듀얼 신호에 대한 패리티가 상기 ARSS 플래그를 나타내도록 전송하는 방법을 나타낼 수 있다.
상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링되지 않은 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S830). 여기서, 상기 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링된 경우, 디코딩 장치는 상기 패리티를 기반으로 상기 현재 블록의 상기 ARSS 플래그를 도출할 수 있고, 상기 ARSS 플래그의 값이 1인지 판단할 수 있다(S840). 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 ARSS 필터를 기반으로 필터링할 수 있다(S850). 여기서, 상기 ARSS 필터는 상기 ARSS 에 대한 필터로 (2, 3, 6, 3, 2)의 필터 계수를 갖는 5탭 필터일 수 있다. 또한, 상기 ARSS 플래그의 값이 0인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S830).
한편, 상기 ARSS는 상기 PDPC가 적용되지 않는 경우에만 수행될 수 있고, 이에, 제한된 PDPC가 적용되면 PDPC 가 수행되는 경우가 줄어들 수 있고, 반대로 ARSS가 적용되는 경우는 증가할 수 있다. 이로 인하여 상기 제한된 PDPC 및 상기 제한된 ARSS 가 모두 적용되기 위해서는 상기 제한된 PDPC 및 상기 제한된 ARSS 를 조화(harmonization)가 필요할 수 있다. 즉, 상기 제한된 PDPC 및 상기 제한된 ARSS를 조합한 방안이 필요할 수 있다. 이에, 본 발명에서는 상기 제한된 PDPC 및 상기 제한된 ARSS를 조합한 방안을 제안한다.
도 9는 제한된 PDPC 및 제한된 ARSS 를 조합하여 수행되는 인트라 예측의 일 예를 나타낸다. 도 9를 참조하면 디코딩 장치는 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향인지 판단할 수 있다(S900). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 PDPC에 대한 인트라 예측 모드인지 판단할 수 있다. 다시 말해, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 PDPC 가 적용 가능한 인트라 예측 모드인지 판단할 수 있다. 도 9의 intraDir 는 상기 현재 블록의 인트라 예측 모드의 예측 방향을 나타낼 수 있다. 여기서, 상기 현재 블록의 상기 PDPC에 대한 예측 방향은 인트라 예측 모드들의 예측 방향들의 다양한 조합으로 설정될 수 있다. 즉, 상기 PDPC에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다. 예를 들어, 인트라 예측 모드가 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들을 포함하는 경우, 상기 PDPC에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드, 및 50번 인트라 예측 모드를 포함할 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향인 경우, 디코딩 장치는 상기 현재 블록에 대한 PDPC 플래그를 파싱할 수 있다(S910). 디코딩 장치는 상기 PDPC 플래그를 기반으로 상기 현재 블록의 PDPC 수행 여부를 판단할 수 있다(S920). 상기 PDPC 플래그는 상기 현재 블록의 PDPC 수행 여부를 나타내는 플래그일 수 있다. 예를 들어, 상기 PDPC 플래그의 값이 1인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC가 수행됨을 나타낼 수 있고, 이 경우, 디코딩 장치는 상기 PDPC를 적용하여 상기 현재 블록의 예측 샘플을 도출할 수 있다(S930). 구체적으로, 디코딩 장치는 상기 현재 블록의 참조 샘플들에 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출할 수 있고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출할 수 있고, 상기 기존의 참조 샘플들, 즉, 필터링되지 않은 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향이 아닌 경우 또는 상기 PDPC 플래그의 값이 0인 경우, 디코딩 장치는 상기 현재 블록의 상기 인트라 예측 모드의 예측 방향이 ARSS에 대한 예측 방향인지 판단할 수 있다(S940). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 ARSS에 대한 인트라 예측 모드인지 판단할 수 있다. 다시 말해, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 ARSS 가 적용 가능한 인트라 예측 모드인지 판단할 수 있다. 여기서, 상기 현재 블록의 상기 ARSS 에 대한 예측 방향은 인트라 예측 모드들의 예측 방향들의 다양한 조합으로 설정될 수 있다. 즉, 상기 ARSS 에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 ARSS에 대한 예측 방향이 아닌 경우, 디코딩 장치는 상기 상기 현재 블록의 인트라 예측 모드의 예측 방향이 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인지 판단할 수 있다(S950). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록의 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드인지 판단할 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 특정 인트라 예측 모드인 경우에 상기 참조 샘플들에 대한 스무딩 처리가 수행될 수 있고, 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되지 않는 예측 방향인 경우, 디코딩 장치는 상기 참조 샘플들에 대한 필터링을 수행하지 않을 수 있다(S930). 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S960). 여기서, 상기 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 ARSS에 대한 예측 방향인 경우, 디코딩 장치는 현재 블록의 ARSS 플래그가 상기 현재 블록의 레지듀얼 신호에 대한 패리티에 하이딩(hiding)되어 시그널링되는지 여부를 판단할 수 있다(S970). 여기서, ARSS 플래그는 상기 참조 샘플들에 스무딩(smoothing) 처리가 수행되는지 여부(즉, 상기 참조 샘플들에 대한 ARSS 필터 기반 필터링 수행 여부)를 나타내는 플래그, 즉, 상기 현재 블록의 ARSS 수행 여부를 나타내는 플래그일 수 있다. 또한, 상기 ARSS 플래그가 상기 패리티에 하이딩되어 전송되는 방법은 상기 현재 블록의 레지듀얼 신호에 대한 패리티가 상기 ARSS 플래그를 나타내도록 전송하는 방법을 나타낼 수 있다.
상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링되지 않은 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S960). 여기서, 상기 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
한편, 상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링된 경우, 디코딩 장치는 상기 패리티를 기반으로 상기 현재 블록의 상기 ARSS 플래그를 도출할 수 있고, 상기 ARSS 플래그의 값이 1인지 판단할 수 있다(S980). 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 ARSS 필터를 기반으로 필터링할 수 있다(S990). 여기서, 상기 ARSS 필터는 상기 ARSS 에 대한 필터로 (2, 3, 6, 3, 2)의 필터 계수를 갖는 5탭 필터일 수 있다. 또한, 상기 ARSS 플래그의 값이 0인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 기존 HEVC에서 사용된 필터를 기반으로 필터링할 수 있다(S960).
한편, 상술한 내용과 같이 상기 제한된 PDPC 및 상기 제한된 ARSS를 조합하여 수행되는 인트라 예측을 수행하되, 상기 현재 블록의 인트라 예측 모드가 상기 제한된 ARSS 에 대한 인트라 예측 모드가 아니고, 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드인 경우, 상술한 위크(weak) 필터 및 스트롱 필터 중 상기 현재 블록의 레지듀얼(residual) 샘플값을 고려하여 선택된 필터를 기반으로 상기 참조 샘플에 대한 스무딩 처리를 수행하는 방안이 제안될 수 있다.
도 10은 제한된 PDPC 및 제한된 ARSS 를 조합하여 수행되는 인트라 예측의 다른 일 예를 나타낸다. 도 10을 참조하면 디코딩 장치는 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향인지 판단할 수 있다(S1000). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 PDPC에 대한 인트라 예측 모드인지 판단할 수 있다. 다시 말해, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 PDPC 가 적용 가능한 인트라 예측 모드인지 판단할 수 있다. 도 10의 intraDir 는 상기 현재 블록의 인트라 예측 모드의 예측 방향을 나타낼 수 있다. 여기서, 상기 현재 블록의 상기 PDPC에 대한 예측 방향은 인트라 예측 모드들의 예측 방향들의 다양한 조합으로 설정될 수 있다. 즉, 상기 PDPC에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다. 예를 들어, 인트라 예측 모드가 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들을 포함하는 경우, 상기 PDPC에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드, 및 50번 인트라 예측 모드를 포함할 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향인 경우, 디코딩 장치는 상기 현재 블록에 대한 PDPC 플래그를 파싱할 수 있다(S1010). 디코딩 장치는 상기 PDPC 플래그를 기반으로 상기 현재 블록의 PDPC 수행 여부를 판단할 수 있다(S1020). 상기 PDPC 플래그는 상기 현재 블록의 PDPC 수행 여부를 나타내는 플래그일 수 있다. 예를 들어, 상기 PDPC 플래그의 값이 1인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC가 수행됨을 나타낼 수 있고, 이 경우, 디코딩 장치는 상기 PDPC를 적용하여 상기 현재 블록의 예측 샘플을 도출할 수 있다(S1030). 구체적으로, 디코딩 장치는 상기 현재 블록의 참조 샘플들에 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출할 수 있고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출할 수 있고, 상기 기존의 참조 샘플들, 즉, 필터링되지 않은 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향이 아닌 경우 또는 상기 PDPC 플래그의 값이 0인 경우, 디코딩 장치는 상기 현재 블록의 상기 인트라 예측 모드의 예측 방향이 ARSS에 대한 예측 방향인지 판단할 수 있다(S1040). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 ARSS에 대한 인트라 예측 모드인지 판단할 수 있다. 다시 말해, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 ARSS 가 적용 가능한 인트라 예측 모드인지 판단할 수 있다. 여기서, 상기 현재 블록의 상기 ARSS 에 대한 예측 방향은 인트라 예측 모드들의 예측 방향들의 다양한 조합으로 설정될 수 있다. 즉, 상기 ARSS 에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 ARSS에 대한 예측 방향이 아닌 경우, 디코딩 장치는 상기 상기 현재 블록의 인트라 예측 모드의 예측 방향이 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인지 판단할 수 있다(S1050). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록의 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드인지 판단할 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 특정 인트라 예측 모드인 경우에 상기 참조 샘플들에 대한 스무딩 처리가 수행될 수 있고, 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되지 않는 예측 방향인 경우, 디코딩 장치는 상기 참조 샘플들에 대한 필터링을 수행하지 않을 수 있다(S1030).
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인 경우, 디코딩 장치는 상기 현재 블록의 레지듀얼 샘플값을 기반으로 위크(weak) 필터 또는 스트롱(strong) 필터를 선택하고, 상기 현재 블록의 참조 샘플들을 선택된 필터를 기반으로 필터링할 수 있다(S1060). 여기서, 상기 위크 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 ARSS에 대한 예측 방향인 경우, 디코딩 장치는 현재 블록의 ARSS 플래그가 상기 현재 블록의 레지듀얼 신호에 대한 패리티에 하이딩(hiding)되어 시그널링되는지 여부를 판단할 수 있다(S1070). 여기서, ARSS 플래그는 상기 참조 샘플들에 스무딩(smoothing) 처리가 수행되는지 여부(즉, 상기 참조 샘플들에 대한 ARSS 필터 기반 필터링 수행 여부)를 나타내는 플래그, 즉, 상기 현재 블록의 ARSS 수행 여부를 나타내는 플래그일 수 있다. 또한, 상기 ARSS 플래그가 상기 패리티에 하이딩되어 전송되는 방법은 상기 현재 블록의 레지듀얼 신호에 대한 패리티가 상기 ARSS 플래그를 나타내도록 전송하는 방법을 나타낼 수 있다.
상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링되지 않은 경우, 디코딩 장치는 상기 현재 블록의 레지듀얼 샘플값을 기반으로 위크(weak) 필터 또는 스트롱(strong) 필터를 선택하고, 상기 현재 블록의 참조 샘플들을 선택된 필터를 기반으로 필터링할 수 있다(S1060). 여기서, 상기 위크 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링된 경우, 디코딩 장치는 상기 패리티를 기반으로 상기 현재 블록의 상기 ARSS 플래그를 도출할 수 있고, 상기 ARSS 플래그의 값이 1인지 판단할 수 있다(S1080). 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 ARSS 필터를 기반으로 필터링할 수 있다(S1090). 여기서, 상기 ARSS 필터는 상기 ARSS 에 대한 필터로 (2, 3, 6, 3, 2)의 필터 계수를 갖는 5탭 필터일 수 있다. 또한, 상기 ARSS 플래그의 값이 0인 경우, 디코딩 장치는 상기 현재 블록의 레지듀얼 샘플값을 기반으로 위크(weak) 필터 또는 스트롱(strong) 필터를 선택하고, 상기 현재 블록의 참조 샘플들을 선택된 필터를 기반으로 필터링할 수 있다(S1060).
한편, 상기 제한된 PDPC 및 상기 제한된 ARSS 가 모두 적용하기 위하여 상기 제한된 PDPC 에 대한 인트라 예측 모드와 상기 제한된 ARSS 에 대한 인트라 예측 모드 사이의 교집합이 발생하지 않도록 설정하는 방안이 제안될 수 있다. 즉, 상기 PDPC 에 대한 인트라 예측 모드와 상기 ARSS 에 대한 인트라 예측 모드가 서로 다른 인트라 예측 모드로 설정될 수 있다. 기존의 ARSS 가 적용되는 경우, 상기 PDPC 가 수행되지 않는 경우에만 상기 ARSS 의 수행 여부를 나타내는 ARSS 플래그가 시그널링될 수 있고, 이에, 상기 현재 블록의 PDPC 플래그가 0 인지 1인지가 고려되고 상기 ARSS 플래그가 파싱될 수 있다. 즉, 상기 ARSS 플래그의 파싱(parsing) 여부는 상기 PDPC 플래그의 값을 기반으로 판단될 수 있다. 그러나 상기 PDPC 에 대한 인트라 예측 모드와 상기 ARSS 에 대한 인트라 예측 모드가 서로 중복되지 않도록 설계되면 상기 PDPC 플래그의 값이 고려되지 않고 상기 ARSS 플래그가 시그널링될 수 있는 장점이 있다.
예를 들어, 상기 PDPC 에 대한 인트라 예측 모드는 다음의 표와 같이 도출될 수 있다.
여기서, intraDir 는 인트라 예측 모드를 나타낼 수 있다. 표 1을 참조하면 67개의 인트라 예측 모드로 구성되는 경우, 상기 PDPC 에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드 및 50번 인트라 예측 모드를 포함할 수 있다.
또한, 상기 ARSS 에 대한 인트라 예측 모드는 다음의 표와 같이 도출될 수 있다.
여기서, intraDir 는 인트라 예측 모드를 나타낼 수 있다. 표 2를 참조하면 67개의 인트라 예측 모드로 구성되는 경우, 상기 ARSS 에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드 및 50번 인트라 예측 모드를 제외한 나머지 인트라 예측 모드들을 포함할 수 있다.
상술한 내용과 같이 상기 PDPC가 적용되는 인트라 예측 모드에 대하여 상기 ARSS 가 적용되지 않도록 강제로 상기 ARSS 가 적용되는 인트라 예측 모드가 제한되는 경우, 상기 PDPC와 상기 ARSS 가 서로 독립적으로 분리되어 수행될 수 있다.
도 11은 PDPC 에 대한 인트라 예측 모드 및 상기 ARSS에 대한 인트라 예측 모드가 서로 다르게 설정된 경우, 상기 제한된 PDPC 및 제한된 ARSS 를 조합하여 수행되는 인트라 예측의 다른 일 예를 나타낸다.
도 11을 참조하면 디코딩 장치는 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향인지 판단할 수 있다(S1100). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 PDPC에 대한 인트라 예측 모드인지 판단할 수 있다. 다시 말해, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 PDPC 가 적용 가능한 인트라 예측 모드인지 판단할 수 있다. 도 10의 intraDir 는 상기 현재 블록의 인트라 예측 모드의 예측 방향을 나타낼 수 있다. 여기서, 상기 현재 블록의 상기 PDPC에 대한 예측 방향은 인트라 예측 모드들의 예측 방향들의 다양한 조합으로 설정될 수 있다. 즉, 상기 PDPC에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다. 예를 들어, 인트라 예측 모드가 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들을 포함하는 경우, 상기 PDPC에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드, 및 50번 인트라 예측 모드를 포함할 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향인 경우, 디코딩 장치는 상기 현재 블록에 대한 PDPC 플래그를 파싱할 수 있다(S1110). 디코딩 장치는 상기 PDPC 플래그를 기반으로 상기 현재 블록의 PDPC 수행 여부를 판단할 수 있다. 상기 PDPC 플래그는 상기 현재 블록의 PDPC 수행 여부를 나타내는 플래그일 수 있다. 예를 들어, 상기 PDPC 플래그의 값이 1인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC가 수행됨을 나타낼 수 있고, 이 경우, 디코딩 장치는 상기 PDPC를 적용하여 상기 현재 블록의 예측 샘플을 도출할 수 있다(S1120). 구체적으로, 디코딩 장치는 상기 현재 블록의 참조 샘플들에 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출할 수 있고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출할 수 있고, 상기 기존의 참조 샘플들, 즉, 필터링되지 않은 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출할 수 있다.
또한, 상기 PDPC 플래그의 값이 0인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC가 수행되지 않음을 나타낼 수 있고, 이 경우, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 PDPC에 대한 예측 방향이 아닌 경우, 디코딩 장치는 상기 현재 블록의 상기 인트라 예측 모드의 예측 방향이 ARSS에 대한 예측 방향인지 판단할 수 있다(S1130). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 ARSS에 대한 인트라 예측 모드인지 판단할 수 있다. 다시 말해, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 ARSS 가 적용 가능한 인트라 예측 모드인지 판단할 수 있다. 여기서, 상기 현재 블록의 상기 ARSS 에 대한 예측 방향은 인트라 예측 모드들의 예측 방향들의 다양한 조합으로 설정될 수 있다. 즉, 상기 ARSS 에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 ARSS에 대한 예측 방향이 아닌 경우, 디코딩 장치는 상기 상기 현재 블록의 인트라 예측 모드의 예측 방향이 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인지 판단할 수 있다(S1140). 즉, 디코딩 장치는 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록의 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드인지 판단할 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 특정 인트라 예측 모드인 경우에 상기 참조 샘플들에 대한 스무딩 처리가 수행될 수 있고, 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 설정될 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되지 않는 예측 방향인 경우, 디코딩 장치는 상기 참조 샘플들에 대한 필터링을 수행하지 않을 수 있다(S1120). 상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 참조 샘플들에 대한 스무딩 처리가 수행되는 예측 방향인 경우, 디코딩 장치는 상기 현재 블록의 레지듀얼 샘플값을 기반으로 위크(weak) 필터 또는 스트롱(strong) 필터를 선택하고, 상기 현재 블록의 참조 샘플들을 선택된 필터를 기반으로 필터링할 수 있다(S1150). 여기서, 상기 위크 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
상기 현재 블록의 인트라 예측 모드의 예측 방향이 상기 ARSS에 대한 예측 방향인 경우, 디코딩 장치는 현재 블록의 ARSS 플래그가 상기 현재 블록의 레지듀얼 신호에 대한 패리티에 하이딩(hiding)되어 시그널링되는지 여부를 판단할 수 있다(S1160). 여기서, ARSS 플래그는 상기 참조 샘플들에 스무딩(smoothing) 처리가 수행되는지 여부(즉, 상기 참조 샘플들에 대한 ARSS 필터 기반 필터링 수행 여부)를 나타내는 플래그, 즉, 상기 현재 블록의 ARSS 수행 여부를 나타내는 플래그일 수 있다. 또한, 상기 ARSS 플래그가 상기 패리티에 하이딩되어 전송되는 방법은 상기 현재 블록의 레지듀얼 신호에 대한 패리티가 상기 ARSS 플래그를 나타내도록 전송하는 방법을 나타낼 수 있다.
상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링되지 않은 경우, 디코딩 장치는 상기 현재 블록의 레지듀얼 샘플값을 기반으로 위크(weak) 필터 또는 스트롱(strong) 필터를 선택하고, 상기 현재 블록의 참조 샘플들을 선택된 필터를 기반으로 필터링할 수 있다(S1150). 여기서, 상기 위크 필터는 기존 HEVC에서 사용된 위크(weak) 필터로, (1, 2, 1)의 필터 계수를 갖는 3탭 필터일 수 있다.
한편, 상기 현재 블록의 상기 ARSS 플래그가 상기 현재 블록의 상기 레지듀얼 신호에 대한 패리티에 하이딩되어 시그널링된 경우, 디코딩 장치는 상기 패리티를 기반으로 상기 현재 블록의 상기 ARSS 플래그를 도출할 수 있고, 상기 ARSS 플래그의 값이 1인지 판단할 수 있다(S1170). 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 현재 블록의 참조 샘플들을 ARSS 필터를 기반으로 필터링할 수 있다(S1180). 여기서, 상기 ARSS 필터는 상기 ARSS 에 대한 필터로 (2, 3, 6, 3, 2)의 필터 계수를 갖는 5탭 필터일 수 있다. 또한, 상기 ARSS 플래그의 값이 0인 경우, 디코딩 장치는 상기 현재 블록의 레지듀얼 샘플값을 기반으로 위크(weak) 필터 또는 스트롱(strong) 필터를 선택하고, 상기 현재 블록의 참조 샘플들을 선택된 필터를 기반으로 필터링할 수 있다(S1150).
도 12는 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다. 도 12에서 개시된 방법은 도 1에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 12의 S1200 내지 S1230은 상기 인코딩 장치의 예측부, S1240은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.
인코딩 장치는 현재 블록에 대한 인트라 예측 모드를 결정한다(S1200). 인코딩 장치는 다양한 인트라 예측 모드들을 수행하여 최적의 RD 코스트를 갖는 인트라 예측 모드를 상기 현재 블록에 대한 인트라 예측 모드로 도출할 수 있다. 상기 인트라 예측 모드는 2개의 비방향성 예측 모드들과 33개의 방향성 예측 모드들 중 하나일 수 있다. 상기 2개의 비방향성 예측 모드들은 인트라 DC 모드 및 인트라 플래너 모드를 포함할 수 있음은 상술한 바와 같다. 또는 상기 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들 중 하나일 수 있다. 상기 2개의 비방향성 예측 모드들은 인트라 DC 모드 및 인트라 플래너 모드를 포함할 수 있음은 상술한 바와 같다. 또한, 상기 65개의 방향성 인트라 예측 모드들은 수직 방향성 인트라 예측 모드들과 수평 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 수직 방향성 인트라 예측 모드들은 34번 인트라 예측 모드 내지 66번 인트라 예측 모드를 포함할 수 있고, 상기 수평 방향성 인트라 예측 모드들은 2번 인트라 예측 모드 내지 33번 인트라 예측 모드를 포함할 수 있다.
인코딩 장치는 상기 현재 블록의 참조 샘플들을 도출한다(S1210). 인코딩 장치는 상기 현재 블록의 참조 샘플들을 도출할 수 있다. 상기 참조 샘플들은 상기 좌측 참조 샘플들, 좌상측 참조 샘플 및 상측 참조 샘플들을 포함할 수 있다. 상기 좌측 참조 샘플들, 상기 좌상측 참조 샘플, 및 상기 상측 참조 샘플들은 상기 현재 블록의 디코딩 시점에 이미 복원된 주변 블록들로부터 도출될 수 있다. 상기 현재 블록의 2N 개의 상기 상측 참조 샘플들, 좌상측 참조 샘플, 및 2N 개의 상기 좌측 참조 샘플들이 도출될 수 있다. 여기서, 상기 현재 블록의 사이즈가 NxN이고, 상기 현재 블록의 좌상단(top-left) 샘플의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 참조 샘플들은 p[-1][0] 내지 p[-1][2N-1], 상기 좌상측 참조 샘플은 p[-1][-1], 상기 상측 참조 샘플들은 p[0][-1] 내지 p[2N-1][-1] 일 수 있다.
또는, 상기 현재 블록의 사이즈가 MxN이고, 상기 현재 블록의 좌상단(top-left) 샘플의 x성분이 0 및 y성분이 0인 경우, 상기 현재 블록의 M+N 개의 상기 상측 참조 샘플들, 좌상측 참조 샘플, 및 M+N 개의 상기 좌측 참조 샘플들이 도출될 수 있다. 상기 현재 블록의 사이즈가 MxN의 비정방형 형태이고, 상기 현재 블록의 좌상단(top-left) 샘플의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 참조 샘플들은 p[-1][0] 내지 p[-1][M+N-1], 상기 좌상측 참조 샘플은 p[-1][-1], 상기 상측 참조 샘플들은 p[0][-1] 내지 p[M+N-1][-1] 일 수 있다.
인코딩 장치는 상기 인트라 예측 모드가 PDPC(Position Dependent intra Prediction Combination) 에 대한 인트라 예측 모드인지 판단한다(S1220). 인코딩 장치는 상기 현재 블록의 상기 인트라 예측 모드가 상기 PDPC에 대한 인트라 예측 모드인지 판단할 수 있다. 상기 PDPC에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 도출될 수 있다. 예를 들어, 상기 PDPC에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드, 및 50번 인트라 예측 모드를 포함할 수 있다.
여기서, 상기 PDPC 는 필터링되지 않은 참조 샘플들 및 필터링된 참조 샘플들을 기반으로 수행하는 인트라 예측 방법을 나타낼 수 있다. 구체적으로, 상기 PDPC는 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출하고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출하고, 상기 기존의 참조 샘플들, 즉, 필터링되지 않은 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출하는 인트라 예측 방법을 나타낼 수 있다.
한편, 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드가 아닌 경우, 인코딩 장치는 상기 인트라 예측 모드가 ARSS(Adaptive Reference Sample Smoothing) 에 대한 인트라 예측 모드인지 판단할 수 있다. 상기 ARSS에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 도출될 수 있다. 또한, 상기 ARSS 에 대한 인트라 예측 모드와 상기 PDPC 에 대한 인트라 예측 모드는 서로 다를 수 있다. 즉, 상기 ARSS 에 대한 인트라 예측 모드는 상기 PDPC 에 대한 인트라 예측 모드에 포함되지 않을 수 있다. 다시 말해, 상기 ARSS 에 대한 인트라 예측 모드 및 상기 PDPC 에 대한 인트라 예측 모드는 동일한 인트라 예측 모드를 포함하지 않을 수 있다. 상기 ARSS 에 대한 인트라 예측 모드와 상기 PDPC 에 대한 인트라 예측 모드가 서로 다르고, 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 인코딩 장치는 상기 현재 블록의 PDPC 수행 여부를 고려하지 않고 상기 현재 블록에 상기 ARSS를 수행하지 않을 수 있다.
또한, 상기 ARSS 에 대한 인트라 예측 모드는 참조 샘플 스무딩(reference sample smoothing)에 대한 인트라 예측 모드와 동일할 수 있다. 여기서, 상기 참조 샘플 스무딩 처리에 대한 인트라 예측 모드는 상기 현재 블록의 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드를 나타낼 수 있고, 상기 스무딩 처리는 스무딩 필터를 기반으로 수행되는 필터링을 나타낼 수 있다. 상기 스무딩 필터는 (1, 2, 1) 의 필터 계수를 갖는 3탭 필터일 수 있다.
여기서, 상기 ARSS 는 상기 현재 블록의 레지듀얼(residual) 신호의 패리티(parity)를 ARSS 플래그로 도출하고, 상기 ARSS 플래그가 상기 현재 블록에 상기 ARSS가 수행됨을 나타내는 경우, 즉, 상기 ARSS 플래그의 값이 1인 경우, 상기 ARSS에 대한 필터를 기반으로 참조 샘플들을 필터링하는 방법을 나타낼 수 있다. 상기 ARSS 플래그는 상기 현재 블록의 ARSS 수행 여부를 나타낼 수 있고, 상기 현재 블록의 레지듀얼 신호의 패리티에 하이딩(hiding)되어 시그널링될 수 있다. 즉, 상기 ARSS 플래그는 별도의 비트에 할당되어 시그널링되지 않고, 상기 현재 블록의 레지듀얼 신호의 패리티에 하이딩(hiding)되어 시그널링될 수 있다. 이에, 인코딩 장치는 상기 현재 블록의 ARSS 수행 여부를 나타내는 상기 ARSS 플래그를 상기 현재 블록의 레지듀얼 신호의 패리티에 하이딩하여 전송할 수 있다. 즉, 인코딩 장치는 상기 현재 블록의 레지듀얼 신호의 패리티가 ARSS 플래그를 나타내도록 시그널링할 수 있다.
상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 인코딩 장치는 상기 현재 블록의 PDPC 수행 여부를 판단한다(S1230). 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 인코딩 장치는 상기 현재 블록의 PDPC 수행 여부를 판단할 수 있다. 구체적으로, 인코딩 장치는 상기 PDPC 수행 여부에 따른 RD 코스트를 비교하여 상기 현재 블록의 PDPC 수행 여부를 판단할 수 있다. 또한, 인코딩 장치는 상기 현재 블록의 PDPC 수행 여부를 나타내는 PDPC 플래그를 생성할 수 있다. 상기 PDPC 플래그는 상기 현재 블록의 PDPC 수행 여부를 나타낼 수 있다. 예를 들어, 상기 PDPC 플래그의 값이 1인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC 가 수행됨을 나타낼 수 있고, 상기 PDPC 플래그의 값이 0인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC 가 수행되지 않음을 나타낼 수 있다.
상기 현재 블록에 상기 PDPC 가 수행되는 경우, 인코딩 장치는 상기 인트라 예측 모드를 기반으로 상기 PDPC 를 수행하여 상기 현재 블록의 예측 샘플을 도출할 수 있다. 구체적으로, 인코딩 장치는 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출할 수 있고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출할 수 있다. 다음으로 인코딩 장치는 필터링되지 않은 상기 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 상기 현재 블록에 상기 PDPC 가 수행되지 않는 경우, 인코딩 장치는 상기 인트라 예측 모드가 ARSS(Adaptive Reference Sample Smoothing) 에 대한 인트라 예측 모드인지 판단할 수 있다. 상기 ARSS에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 도출될 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 인코딩 장치는 상기 현재 블록의 ARSS 수행 여부를 판단할 수 있다. 즉, 인코딩 장치는 상기 현재 블록의 ARSS 수행 여부에 따른 RD 코스트를 비교하여 상기 현재 블록의 ARSS 수행 여부를 판단할 수 있다. 상기 현재 블록에 상기 ARSS 가 수행되는 경우, 인코딩 장치는 상기 ARSS에 대한 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링할 수 있고, 상기 필터링된 참조 샘플들 중 상기 현재 블록의 상기 인트라 예측 모드에 따른 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다. 또한, 상기 PDPC에 대한 인트라 예측 모드 및 상기 ARSS에 대한 인트라 예측 모드가 서로 다르고, 상기 현재 블록의 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 인코딩 장치는 상기 인트라 예측 모드가 ARSS에 대한 인트라 예측 모드인지 판단은 생략될 수 있고, 필터링되지 않은 상기 참조 샘플 및 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 인코딩 장치는 상기 현재 블록의 ARSS 수행 여부를 나타내는 상기 ARSS 플래그를 생성할 수 있다. 상기 ARSS 플래그는 상기 현재 블록의 레지듀얼 신호의 패리티에 하이딩(hiding)되어 시그널링될 수 있다. 즉, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 인코딩 장치는 상기 현재 블록의 레지듀얼 신호의 패리티가 ARSS 플래그를 나타내도록 시그널링할 수 있다.
또한, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드이지 않은 경우, 인코딩 장치는 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드인지 판단할 수 있다. 한편, 상기 ARSS 에 대한 인트라 예측 모드와 상기 참조 샘플 스무딩에 대한 인트라 예측 모드가 동일한 경우, 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드인지 판단은 수행되지 않을 수 있다. 즉, 상기 ARSS 에 대한 인트라 예측 모드와 상기 참조 샘플 스무딩에 대한 인트라 예측 모드가 다른 경우에 한하여 인코딩 장치는 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드인지 판단할 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드인 경우, 인코딩 장치는 스무딩 필터를 기반으로 상기 참조 샘플들을 필터링할 수 있고, 필터링된 참조 샘플들 및 상기 현재 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다. 또한, 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드이지 않은 경우, 인코딩 장치는 필터링되지 않은 상기 참조 샘플들 및 상기 현재 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 상기 ARSS 에 대한 인트라 예측 모드와 상기 참조 샘플 스무딩에 대한 인트라 예측 모드가 동일하고, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드이지 않은 경우, 인코딩 장치는 필터링되지 않은 상기 참조 샘플들 및 상기 현재 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
또한, 상기 ARSS 에 대한 인트라 예측 모드와 상기 참조 샘플 스무딩에 대한 인트라 예측 모드가 동일하고, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드이고, 상기 현재 블록에 상기 ARSS 가 수행되지 않는 경우, 인코딩 장치는 스무딩 필터를 기반으로 상기 참조 샘플들을 필터링할 수 있고, 필터링된 참조 샘플들 및 상기 현재 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
인코딩 장치는 상기 현재 블록에 대한 예측 정보를 생성하고 인코딩하여 출력한다(S1240). 인코딩 장치는 상기 현재 블록에 대한 예측 정보를 생성할 수 있고, 비트스트림을 통하여 시그널링할 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 상기 예측 정보는 상기 현재 블록의 PDPC 수행 여부를 나타내는 PDPC 플래그를 포함할 수 있다. 또한, 상기 예측 정보는 상기 현재 블록의 레지듀얼 신호를 포함할 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 상기 현재 블록의 ARSS 수행 여부를 나타내는 상기 ARSS 플래그는 상기 현재 블록의 상기 레지듀얼(residual) 신호의 패리티에 하이딩(hiding)되어 시그널링될 수 있다.
한편, 비록 도면에는 도시되지 않았으나 인코딩 장치는 원본 샘플과 상기 도출된 예측 샘플을 기반으로 레지듀얼(residual) 샘플을 생성할 수 있다. 인코딩 장치는 상기 레지듀얼 샘플을 기반으로 상기 레지듀얼 신호를 생성할 수 있다. 상기 레지듀얼 신호는 상기 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다. 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 상기 복원 샘플을 도출할 수 있다. 즉, 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 더하여 상기 복원 샘플을 도출할 수 있다. 또한, 인코딩 장치는 상기 레지듀얼 신호를 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다.
도 13은 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다. 도 13에서 개시된 방법은 도 2에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, S1300 내지 S1320 및 S1340은 상기 디코딩 장치의 예측부, S1330은 상기 디코딩 장치의 엔트로피 디코딩부에 의하여 수행될 수 있다.
디코딩 장치는 현재 블록에 대한 인트라 예측 모드를 도출한다(S1300). 디코딩 장치는 비트스트림을 통하여 상기 현재 블록에 대한 예측 정보를 획득할 수 있다. 상기 예측 정보는 상기 현재 블록에 대한 인트라 예측 모드를 직접적으로 가리키는 정보를 포함할 수도 있고, 또는 상기 현재 블록의 좌측 또는 상측 블록의 인트라 예측 모드를 기반으로 도출된 인트라 예측 모드 후보 리스트 중에서 어느 하나의 후보를 가리키는 정보를 포함할 수도 있다. 상기 인트라 예측 모드 후보 리스트는 MPM 후보 리스트라고 나타낼 수 있다. 디코딩 장치는 상기 획득된 예측 정보를 기반으로 상기 현재 블록에 대한 인트라 예측 모드를 도출할 수 있다. 상기 인트라 예측 모드는 2개의 비방향성 예측 모드들과 33개의 방향성 예측 모드들 중 하나일 수 있다. 상기 2개의 비방향성 예측 모드들은 인트라 DC 모드 및 인트라 플래너 모드를 포함할 수 있음은 상술한 바와 같다. 또는 상기 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들 중 하나일 수 있다. 상기 2개의 비방향성 예측 모드들은 인트라 DC 모드 및 인트라 플래너 모드를 포함할 수 있음은 상술한 바와 같다. 또한, 상기 65개의 방향성 인트라 예측 모드들은 수직 방향성 인트라 예측 모드들과 수평 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 수직 방향성 인트라 예측 모드들은 34번 인트라 예측 모드 내지 66번 인트라 예측 모드를 포함할 수 있고, 상기 수평 방향성 인트라 예측 모드들은 2번 인트라 예측 모드 내지 33번 인트라 예측 모드를 포함할 수 있다.
디코딩 장치는 상기 현재 블록의 참조 샘플들을 도출한다(S1310). 디코딩 장치는 상기 현재 블록의 참조 샘플들을 도출할 수 있다. 상기 참조 샘플들은 상기 좌측 참조 샘플들, 좌상측 참조 샘플 및 상측 참조 샘플들을 포함할 수 있다. 상기 좌측 참조 샘플들, 상기 좌상측 참조 샘플, 및 상기 상측 참조 샘플들은 상기 현재 블록의 디코딩 시점에 이미 복원된 주변 블록들로부터 도출될 수 있다. 상기 현재 블록의 2N 개의 상기 상측 참조 샘플들, 좌상측 참조 샘플, 및 2N 개의 상기 좌측 참조 샘플들이 도출될 수 있다. 여기서, 상기 현재 블록의 사이즈가 NxN이고, 상기 현재 블록의 좌상단(top-left) 샘플의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 참조 샘플들은 p[-1][0] 내지 p[-1][2N-1], 상기 좌상측 참조 샘플은 p[-1][-1], 상기 상측 참조 샘플들은 p[0][-1] 내지 p[2N-1][-1] 일 수 있다.
또는, 상기 현재 블록의 사이즈가 MxN이고, 상기 현재 블록의 좌상단(top-left) 샘플의 x성분이 0 및 y성분이 0인 경우, 상기 현재 블록의 M+N 개의 상기 상측 참조 샘플들, 좌상측 참조 샘플, 및 M+N 개의 상기 좌측 참조 샘플들이 도출될 수 있다. 상기 현재 블록의 사이즈가 MxN의 비정방형 형태이고, 상기 현재 블록의 좌상단(top-left) 샘플의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 참조 샘플들은 p[-1][0] 내지 p[-1][M+N-1], 상기 좌상측 참조 샘플은 p[-1][-1], 상기 상측 참조 샘플들은 p[0][-1] 내지 p[M+N-1][-1] 일 수 있다.
디코딩 장치는 상기 인트라 예측 모드가 PDPC(Position Dependent intra Prediction Combination) 에 대한 인트라 예측 모드인지 판단한다(S1320). 디코딩 장치는 상기 현재 블록의 상기 인트라 예측 모드가 상기 PDPC에 대한 인트라 예측 모드인지 판단할 수 있다. 상기 PDPC에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 도출될 수 있다. 예를 들어, 상기 PDPC에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드, 및 50번 인트라 예측 모드를 포함할 수 있다.
여기서, 상기 PDPC 는 필터링되지 않은 참조 샘플들 및 필터링된 참조 샘플들을 기반으로 수행하는 인트라 예측 방법을 나타낼 수 있다. 구체적으로, 상기 PDPC는 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출하고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출하고, 상기 기존의 참조 샘플들, 즉, 필터링되지 않은 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출하는 인트라 예측 방법을 나타낼 수 있다.
한편, 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드가 아닌 경우, 디코딩 장치는 상기 인트라 예측 모드가 ARSS(Adaptive Reference Sample Smoothing) 에 대한 인트라 예측 모드인지 판단할 수 있다. 상기 ARSS에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 도출될 수 있다. 또한, 상기 ARSS 에 대한 인트라 예측 모드와 상기 PDPC 에 대한 인트라 예측 모드는 서로 다를 수 있다. 즉, 상기 ARSS 에 대한 인트라 예측 모드는 상기 PDPC 에 대한 인트라 예측 모드에 포함되지 않을 수 있다. 다시 말해, 상기 ARSS 에 대한 인트라 예측 모드 및 상기 PDPC 에 대한 인트라 예측 모드는 동일한 인트라 예측 모드를 포함하지 않을 수 있다. 상기 ARSS 에 대한 인트라 예측 모드와 상기 PDPC 에 대한 인트라 예측 모드가 서로 다르고, 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 디코딩 장치는 상기 현재 블록의 PDPC 플래그를 고려하지 않고 상기 현재 블록에 상기 ARSS를 수행하지 않을 수 있다.
또한, 상기 ARSS 에 대한 인트라 예측 모드는 참조 샘플 스무딩(reference sample smoothing)에 대한 인트라 예측 모드와 동일할 수 있다. 여기서, 상기 참조 샘플 스무딩 처리에 대한 인트라 예측 모드는 상기 현재 블록의 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드를 나타낼 수 있고, 상기 스무딩 처리는 스무딩 필터를 기반으로 수행되는 필터링을 나타낼 수 있다. 상기 스무딩 필터는 (1, 2, 1) 의 필터 계수를 갖는 3탭 필터일 수 있다.
여기서, 상기 ARSS 는 상기 현재 블록의 레지듀얼(residual) 신호의 패리티(parity)를 ARSS 플래그로 도출하고, 상기 ARSS 플래그가 상기 현재 블록에 상기 ARSS가 수행됨을 나타내는 경우, 즉, 상기 ARSS 플래그의 값이 1인 경우, 상기 ARSS에 대한 필터를 기반으로 참조 샘플들을 필터링하는 방법을 나타낼 수 있다. 상기 ARSS 플래그는 상기 현재 블록의 ARSS 수행 여부를 나타낼 수 있고, 상기 현재 블록의 레지듀얼 신호의 패리티에 하이딩(hiding)되어 시그널링될 수 있다. 즉, 상기 ARSS 플래그는 별도의 비트에 할당되어 시그널링되지 않고, 상기 현재 블록의 레지듀얼 신호의 패리티에 하이딩(hiding)되어 시그널링될 수 있다. 이에, 디코딩 장치는 상기 현재 블록의 레지듀얼 신호의 패리티를 상기 ARSS 플래그로 도출할 수 있다.
한편, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 상기 현재 블록의 ARSS 수행 여부를 나타내는 상기 ARSS 플래그는 상기 현재 블록의 레지듀얼 신호의 패리티에 하이딩(hiding)되어 시그널링될 수 있다. 즉, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 디코딩 장치는 상기 현재 블록의 레지듀얼 신호의 패리티를 ARSS 플래그로 도출할 수 있다. 또한, 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 ARSS에 대한 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링할 수 있고, 상기 필터링된 참조 샘플들 중 상기 현재 블록의 상기 인트라 예측 모드에 따른 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다. 즉, 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 ARSS에 대한 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링할 수 있고, 상기 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 디코딩 장치는 비트스트림을 통하여 상기 현재 블록의 PDPC 수행 여부를 나타내는 PDPC 플래그를 획득한다(S1330). 예를 들어, 상기 PDPC에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드, 및 50번 인트라 예측 모드를 포함하는 경우, 상기 현재 블록의 인트라 예측 모드가 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드, 또는 50번 인트라 예측 모드이면 상기 현재 블록의 상기 인트라 예측 모드는 상기 PDPC 에 대한 인트라 예측 모드일 수 있다.
상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 디코딩 장치는 상기 비트스트림을 통하여 상기 현재 블록의 PDPC 수행 여부를 나타내는 PDPC 플래그를 획득할 수 있다. 상기 PDPC 플래그는 상기 현재 블록의 PDPC 수행 여부를 나타낼 수 있다. 예를 들어, 상기 PDPC 플래그의 값이 1인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC 가 수행됨을 나타낼 수 있고, 상기 PDPC 플래그의 값이 0인 경우, 상기 PDPC 플래그는 상기 현재 블록에 상기 PDPC 가 수행되지 않음을 나타낼 수 있다. 디코딩 장치는 상기 PDPC 플래그의 값을 기반으로 상기 현재 블록의 PDPC 수행 여부를 판단할 수 있다. 즉, 상기 PDPC 플래그의 값이 1인 경우, 디코딩 장치는 상기 인트라 예측 모드를 기반으로 상기 PDPC 를 수행하여 상기 현재 블록의 예측 샘플을 도출할 수 있다. 또한, 상기 PDPC 플래그의 값이 0인 경우, 디코딩 장치는 상기 PDPC 를 수행하지 않고, 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
상기 PDPC 플래그의 값이 1인 경우, 디코딩 장치는 상기 인트라 예측 모드를 기반으로 상기 PDPC 를 수행하여 상기 현재 블록의 예측 샘플을 도출한다(S1340). 상기 PDPC 플래그의 값이 1인 경우, 디코딩 장치는 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출할 수 있고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출할 수 있다. 다음으로 디코딩 장치는 필터링되지 않은 상기 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 상기 PDPC 플래그의 값이 0인 경우, 디코딩 장치는 상기 인트라 예측 모드가 ARSS(Adaptive Reference Sample Smoothing) 에 대한 인트라 예측 모드인지 판단할 수 있다. 상기 ARSS에 대한 인트라 예측 모드는 다양한 인트라 예측 모드들의 조합으로 도출될 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 디코딩 장치는 상기 현재 블록의 레지듀얼 신호의 패리티를 ARSS 플래그로 도출할 수 있고, 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 ARSS에 대한 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링할 수 있고, 상기 필터링된 참조 샘플들 중 상기 현재 블록의 상기 인트라 예측 모드에 따른 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 상기 PDPC에 대한 인트라 예측 모드 및 상기 ARSS에 대한 인트라 예측 모드가 서로 다른 경우, 디코딩 장치는 상기 인트라 예측 모드가 ARSS에 대한 인트라 예측 모드인지 판단은 생략될 수 있고, 필터링되지 않은 상기 참조 샘플 및 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다. 즉, 상기 PDPC에 대한 인트라 예측 모드 및 상기 ARSS에 대한 인트라 예측 모드가 서로 다르고, 상기 현재 블록의 인트라 예측 모드가 상기 PDPC에 대한 인트라 예측 모드이고, 상기 PDPC 플래그의 값이 0인 경우, 디코딩 장치는 상기 현재 블록에 대한 상기 ARSS를 수행하지 않을 수 있다.
또한, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 상기 현재 블록의 ARSS 수행 여부를 나타내는 상기 ARSS 플래그는 상기 현재 블록의 레지듀얼 신호의 패리티에 하이딩(hiding)되어 시그널링될 수 있다. 즉, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 디코딩 장치는 상기 현재 블록의 레지듀얼 신호의 패리티를 ARSS 플래그로 도출할 수 있다. 또한, 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 ARSS에 대한 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링할 수 있고, 상기 필터링된 참조 샘플들 중 상기 현재 블록의 상기 인트라 예측 모드에 따른 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다. 즉, 상기 ARSS 플래그의 값이 1인 경우, 디코딩 장치는 상기 ARSS에 대한 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링할 수 있고, 상기 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
또한, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드이지 않은 경우, 디코딩 장치는 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드인지 판단할 수 있다. 한편, 상기 ARSS 에 대한 인트라 예측 모드와 상기 참조 샘플 스무딩에 대한 인트라 예측 모드가 동일한 경우, 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드인지 판단은 수행되지 않을 수 있다. 즉, 상기 ARSS 에 대한 인트라 예측 모드와 상기 참조 샘플 스무딩에 대한 인트라 예측 모드가 다른 경우에 한하여 디코딩 장치는 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드인지 판단할 수 있다. 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드인 경우, 디코딩 장치는 스무딩 필터를 기반으로 상기 참조 샘플들을 필터링할 수 있고, 필터링된 참조 샘플들 및 상기 현재 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다. 또한, 상기 현재 블록의 상기 인트라 예측 모드가 상기 참조 샘플 스무딩에 대한 인트라 예측 모드이지 않은 경우, 디코딩 장치는 필터링되지 않은 상기 참조 샘플들 및 상기 현재 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 상기 ARSS 에 대한 인트라 예측 모드와 상기 참조 샘플 스무딩에 대한 인트라 예측 모드가 동일하고, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드이지 않은 경우, 디코딩 장치는 필터링되지 않은 상기 참조 샘플들 및 상기 현재 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
또한, 상기 ARSS 에 대한 인트라 예측 모드와 상기 참조 샘플 스무딩에 대한 인트라 예측 모드가 동일하고, 상기 현재 블록의 상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드이고, 상기 ARSS 플래그의 값이 0인 경우, 디코딩 장치는 스무딩 필터를 기반으로 상기 참조 샘플들을 필터링할 수 있고, 필터링된 참조 샘플들 및 상기 현재 블록의 상기 인트라 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 도출할 수 있다.
한편, 비록 도면에서 도시되지는 않았으나 디코딩 장치는 상기 예측 샘플을 기반으로 복원 샘플을 생성할 수 있다. 디코딩 장치는 상기 비트스트림으로부터 상기 현재 블록의 레지듀얼(residual) 신호를 획득할 수 있다. 상기 레지듀얼 신호는 레지듀얼 샘플에 관한 변환 계수를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 신호를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플(또는 레지듀얼 샘플 어레이)을 도출할 수 있다. 이 경우 디코딩 장치는 상기 예측 샘플 및 상기 레지듀얼 샘플을 기반으로 상기 복원 샘플을 생성할 수 있다.
디코딩 장치는 상기 복원 샘플을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 디코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다.
또한, 디코딩 장치는 비트스트림을 통하여 상기 현재 블록에 대한 예측 정보를 수신할 수 있고, 엔트로피 디코딩할 수 있다. 즉, 디코딩 장치는 상기 비트스트림을 통하여 상기 현재 블록의 예측 정보를 획득할 수 있다. 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 상기 예측 정보는 상기 현재 블록의 PDPC 수행 여부를 나타내는 상기 PDPC 플래그를 포함할 수 있다. 또한, 상기 예측 정보는 상기 현재 블록의 레지듀얼 신호를 포함할 수 있다.
상술한 본 발명에 따르면 특정 인트라 예측 모드에서 PDPC 또는 ARSS 를 적용하여 인트라 예측을 수행할 수 있고, 이를 통하여 인트라 예측 효율을 보다 향상시킬 수 있고, 전반적인 코딩 효율을 향상시킬 수 있다.
또한, 본 발명에 따르면 특정 인트라 예측 모드에서 수행되는 PDPC 및 ARSS를 조합한 인트라 예측 방법을 통하여 선택적으로 PDPC 또는 ARSS 를 적용하여 인트라 예측을 수행할 수 있고, 이를 통하여 인트라 예측 효율을 보다 향상시킬 수 있고, 전반적인 코딩 효율을 향상시킬 수 있다.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다.
Claims (15)
- 디코딩 장치에 의하여 수행되는 인트라 예측 방법에 있어서,현재 블록에 대한 인트라 예측 모드를 도출하는 단계;상기 현재 블록의 참조 샘플들을 도출하는 단계;상기 인트라 예측 모드가 PDPC(Position Dependent intra Prediction combination) 에 대한 인트라 예측 모드인지 판단하는 단계;상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 비트스트림을 통하여 상기 현재 블록의 PDPC 수행 여부를 나타내는 PDPC 플래그를 획득하는 단계; 및상기 PDPC 플래그의 값이 1인 경우, 상기 인트라 예측 모드를 기반으로 상기 PDPC 를 수행하여 상기 현재 블록의 예측 샘플을 도출하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 방법.
- 제1항에 있어서,상기 인트라 예측 모드를 기반으로 상기 PDPC 를 수행하여 상기 현재 블록의 상기 예측 샘플을 도출하는 단계는,상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출하는 단계;상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출하는 단계; 및필터링되지 않은 상기 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 방법.
- 제1항에 있어서,상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드가 아닌 경우, 상기 인트라 예측 모드가 ARSS(Adaptive Reference Sample Smoothing) 에 대한 인트라 예측 모드인지 판단하는 단계; 및상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 상기 현재 블록의 레지듀얼(residual) 신호의 패리티(parity)를 ARSS 플래그로 도출하는 단계를 더 포함하되,상기 ARSS 플래그는 상기 현재 블록의 ARSS 수행 여부를 나타내는 것을 특징으로 하는 인트라 예측 방법.
- 제3항에 있어서,상기 ARSS 플래그의 값이 1인 경우, 상기 ARSS에 대한 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링하는 단계; 및상기 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플을 도출하는 단계를 더 포함하는 것을 특징으로 하는 인트라 예측 방법.
- 제4항에 있어서,상기 ARSS에 대한 상기 필터는 (2, 3, 6, 3, 2) 의 필터 계수를 갖는 5탭 필터인 것을 특징으로 하는 인트라 예측 방법.
- 제3항에 있어서,상기 ARSS 에 대한 인트라 예측 모드는 참조 샘플들에 대한 스무딩 처리가 수행되는 인트라 예측 모드와 동일한 것을 특징으로 하는 인트라 예측 방법.
- 제6항에 있어서,상기 ARSS 플래그가 0 인 경우, 스무딩(smoothing) 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링하는 단계; 및상기 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플을 도출하는 단계를 더 포함하되,상기 스무딩 필터는 (1, 2, 1) 의 필터 계수를 갖는 3탭 필터인 것을 특징으로 하는 인트라 예측 방법.
- 제3항에 있어서,상기 PDPC 에 대한 인트라 예측 모드 및 상기 ARSS 에 대한 인트라 예측 모드는 서로 다른 것을 특징으로 하는 인트라 예측 방법.
- 제8항에 있어서,상기 PDPC 에 대한 인트라 예측 모드는 2번 인트라 예측 모드, 18번 인트라 예측 모드, 34번 인트라 예측 모드, 및 50번 인트라 예측 모드를 포함하고,상기 ARSS 에 대한 인트라 예측 모드는 상기 PDPC 에 대한 인트라 예측 모드에 포함된 인트라 예측 모드들을 제외한 인트라 예측 모드들을 포함하는 것을 특징으로 하는 인트라 예측 방법.
- 제1항에 있어서,상기 PDPC 플래그의 값이 0인 경우, 상기 인트라 예측 모드가 ARSS(Adaptive Reference Sample Smoothing) 에 대한 인트라 예측 모드인지 판단하는 단계;상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 상기 현재 블록의 레지듀얼(residual) 신호의 패리티(parity)를 ARSS 플래그로 도출하는 단계;상기 ARSS 플래그의 값이 1인 경우, 상기 ARSS에 대한 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링하는 단계; 및상기 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플을 도출하는 단계를 더 포함하되,상기 ARSS 플래그는 상기 현재 블록의 ARSS 수행 여부를 나타내는 것을 특징으로 하는 인트라 예측 방법.
- 제1항에 있어서,상기 현재 블록의 사이즈가 NxN 이고, 상기 현재 블록의 좌상단(top-left) 샘플의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 참조 샘플들은 p[-1][0] 내지 p[-1][2N-1], 상기 좌상측 참조 샘플은 p[-1][-1], 상기 상측 참조 샘플들은 p[0][-1] 내지 p[2N-1][-1] 인 것을 특징으로 하는 인트라 예측 방법.
- 인트라 예측을 수행하는 디코딩 장치에 있어서,현재 블록에 대한 예측 정보를 획득하는 엔트로피 디코딩부; 및상기 현재 블록에 대한 인트라 예측 모드를 도출하고, 상기 현재 블록의 참조 샘플들을 도출하고, 상기 인트라 예측 모드가 PDPC(Position Dependent intra Prediction combination) 에 대한 인트라 예측 모드인지 판단하고, PDPC 플래그의 값이 1인 경우, 상기 인트라 예측 모드를 기반으로 상기 PDPC 를 수행하여 상기 현재 블록의 예측 샘플을 도출하는 예측부를 포함하되,상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드인 경우, 상기 예측 정보는 상기 현재 블록의 PDPC 수행 여부를 나타내는 상기 PDPC 플래그를 포함하는 것을 특징으로 하는 디코딩 장치.
- 제12항에 있어서,PDPC 플래그의 값이 1인 경우, 상기 예측부는 상기 PDPC 에 대한 필터를 기반으로 필터링을 수행하여 필터링된 참조 샘플들을 도출하고, 상기 현재 블록의 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출하고, 필터링되지 않은 상기 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출하는 것을 특징으로 하는 디코딩 장치.
- 제12항에 있어서,상기 예측부는 상기 인트라 예측 모드가 상기 PDPC 에 대한 인트라 예측 모드가 아닌 경우, 상기 인트라 예측 모드가 ARSS(Adaptive Reference Sample Smoothing) 에 대한 인트라 예측 모드인지 판단하고,상기 인트라 예측 모드가 상기 ARSS 에 대한 인트라 예측 모드인 경우, 상기 현재 블록의 레지듀얼(residual) 신호의 패리티(parity)를 ARSS 플래그로 도출하되,상기 예측 정보는 상기 레지듀얼 신호를 포함하고, 상기 ARSS 플래그는 상기 현재 블록의 ARSS 수행 여부를 나타내는 것을 특징으로 하는 디코딩 장치.
- 제14항에 있어서,상기 ARSS 플래그의 값이 1인 경우, 상기 예측부는 상기 ARSS에 대한 필터를 기반으로 상기 현재 블록의 상기 참조 샘플들을 필터링하고, 상기 인트라 예측 모드 및 상기 필터링된 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플을 도출하는 것을 특징으로 하는 디코딩 장치.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US201762475834P | 2017-03-23 | 2017-03-23 | |
| US62/475,834 | 2017-03-23 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018174657A1 true WO2018174657A1 (ko) | 2018-09-27 |
Family
ID=63585577
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/KR2018/003472 Ceased WO2018174657A1 (ko) | 2017-03-23 | 2018-03-23 | 영상 코딩 시스템에서 인트라 예측에 따른 영상 디코딩 방법 및 장치 |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2018174657A1 (ko) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20210094058A (ko) * | 2019-02-01 | 2021-07-28 | 텐센트 아메리카 엘엘씨 | 비디오 코딩을 위한 방법 및 장치 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103141100A (zh) * | 2010-10-01 | 2013-06-05 | 高通股份有限公司 | 用于视频译码的帧内平滑滤波器 |
| WO2014010943A1 (ko) * | 2012-07-10 | 2014-01-16 | 한국전자통신연구원 | 영상 부호화/복호화 방법 및 장치 |
| JP2015515226A (ja) * | 2012-04-20 | 2015-05-21 | 華為技術有限公司Huawei Technologies Co.,Ltd. | Hevcの無損失符号化におけるイントラ予測の向上 |
-
2018
- 2018-03-23 WO PCT/KR2018/003472 patent/WO2018174657A1/ko not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103141100A (zh) * | 2010-10-01 | 2013-06-05 | 高通股份有限公司 | 用于视频译码的帧内平滑滤波器 |
| JP2015515226A (ja) * | 2012-04-20 | 2015-05-21 | 華為技術有限公司Huawei Technologies Co.,Ltd. | Hevcの無損失符号化におけるイントラ予測の向上 |
| WO2014010943A1 (ko) * | 2012-07-10 | 2014-01-16 | 한국전자통신연구원 | 영상 부호화/복호화 방법 및 장치 |
Non-Patent Citations (2)
| Title |
|---|
| JIANLE CHEN: "Algorithm Description of Joint Exploration Test Model 3", JOINT VIDEO EXPLORATION TEAM (JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11, JVET-C1001 VER. 2, 3RD MEETING, 1 June 2016 (2016-06-01), Geneva, CH, XP055577005 * |
| YAO-JEN CHANG: "Improved Intra Prediction Method Based on Arbitrary Reference Tier Coding Schemes", PICTURE CODING SYMPOSIUM (PCS, 6 December 2016 (2016-12-06), XP033086896 * |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20210094058A (ko) * | 2019-02-01 | 2021-07-28 | 텐센트 아메리카 엘엘씨 | 비디오 코딩을 위한 방법 및 장치 |
| EP3769520A4 (en) * | 2019-02-01 | 2022-07-13 | Tencent America LLC | METHOD AND DEVICE FOR VIDEO CODING |
| CN115002477A (zh) * | 2019-02-01 | 2022-09-02 | 腾讯美国有限责任公司 | 视频编码的方法、装置及计算机可读存储介质 |
| KR102765059B1 (ko) * | 2019-02-01 | 2025-02-11 | 텐센트 아메리카 엘엘씨 | 비디오 코딩을 위한 방법 및 장치 |
| US12445639B2 (en) | 2019-02-01 | 2025-10-14 | Tencent America LLC | Method and apparatus for video coding |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017043786A1 (ko) | 비디오 코딩 시스템에서 인트라 예측 방법 및 장치 | |
| WO2018062702A1 (ko) | 영상 코딩 시스템에서 인트라 예측 방법 및 장치 | |
| WO2018236051A1 (ko) | 영상 코딩 시스템에서 인트라 예측에 따른 영상 디코딩 방법 및 장치 | |
| WO2017034331A1 (ko) | 영상 코딩 시스템에서 크로마 샘플 인트라 예측 방법 및 장치 | |
| WO2018044088A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
| WO2019194440A1 (ko) | 인트라 예측 모드에 대한 룩업 테이블을 이용한 영상 코딩 방법 및 그 장치 | |
| WO2017052118A1 (ko) | 영상 코딩 시스템에서 인트라 예측 방법 및 장치 | |
| WO2017057953A1 (ko) | 비디오 코딩 시스템에서 레지듀얼 신호 코딩 방법 및 장치 | |
| WO2017014412A1 (ko) | 비디오 코딩 시스템에서 인트라 예측 방법 및 장치 | |
| WO2018070632A1 (ko) | 영상 코딩 시스템에서 영상 디코딩 방법 및 장치 | |
| WO2017057877A1 (ko) | 영상 코딩 시스템에서 영상 필터링 방법 및 장치 | |
| WO2018021585A1 (ko) | 영상 코딩 시스템에서 인트라 예측 방법 및 장치 | |
| WO2019117639A1 (ko) | 변환에 기반한 영상 코딩 방법 및 그 장치 | |
| WO2016204374A1 (ko) | 영상 코딩 시스템에서 영상 필터링 방법 및 장치 | |
| WO2017061671A1 (ko) | 영상 코딩 시스템에서 적응적 변환에 기반한 영상 코딩 방법 및 장치 | |
| WO2019194507A1 (ko) | 어파인 움직임 예측에 기반한 영상 코딩 방법 및 그 장치 | |
| WO2017188565A1 (ko) | 영상 코딩 시스템에서 영상 디코딩 방법 및 장치 | |
| WO2018216862A1 (ko) | 영상 코딩 시스템에서 인트라 예측에 따른 영상 디코딩 방법 및 장치 | |
| WO2018174357A1 (ko) | 영상 코딩 시스템에서 영상 디코딩 방법 및 장치 | |
| WO2017195914A1 (ko) | 비디오 코딩 시스템에서 인터 예측 방법 및 장치 | |
| WO2017052272A1 (ko) | 비디오 코딩 시스템에서 인트라 예측 방법 및 장치 | |
| WO2017048008A1 (ko) | 영상 코딩 시스템에서 인터 예측 방법 및 장치 | |
| WO2018128223A1 (ko) | 영상 코딩 시스템에서 인터 예측 방법 및 장치 | |
| WO2018070661A1 (ko) | 영상 코딩 시스템에서 인트라 예측에 따른 영상 디코딩 방법 및 장치 | |
| WO2018128222A1 (ko) | 영상 코딩 시스템에서 영상 디코딩 방법 및 장치 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18771855 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18771855 Country of ref document: EP Kind code of ref document: A1 |

