WO2019050291A1 - 비디오 신호 처리 방법 및 장치 - Google Patents
비디오 신호 처리 방법 및 장치 Download PDFInfo
- Publication number
- WO2019050291A1 WO2019050291A1 PCT/KR2018/010413 KR2018010413W WO2019050291A1 WO 2019050291 A1 WO2019050291 A1 WO 2019050291A1 KR 2018010413 W KR2018010413 W KR 2018010413W WO 2019050291 A1 WO2019050291 A1 WO 2019050291A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- reference sample
- current block
- intra prediction
- sample
- block
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 101
- 238000012545 processing Methods 0.000 title description 6
- 239000013074 reference sample Substances 0.000 claims abstract description 516
- 239000000523 sample Substances 0.000 claims abstract description 191
- 230000002457 bidirectional effect Effects 0.000 claims description 37
- 230000001939 inductive effect Effects 0.000 abstract 1
- 238000000638 solvent extraction Methods 0.000 description 74
- 238000005192 partition Methods 0.000 description 64
- 238000001914 filtration Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 19
- 238000006243 chemical reaction Methods 0.000 description 17
- 238000013139 quantization Methods 0.000 description 17
- 238000012937 correction Methods 0.000 description 12
- 239000013598 vector Substances 0.000 description 10
- 239000000470 constituent Substances 0.000 description 9
- 208000037170 Delayed Emergence from Anesthesia Diseases 0.000 description 6
- 230000003044 adaptive effect Effects 0.000 description 5
- 230000011218 segmentation Effects 0.000 description 5
- 230000006835 compression Effects 0.000 description 4
- 238000007906 compression Methods 0.000 description 4
- 230000009466 transformation Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 3
- 238000009499 grossing Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000006866 deterioration Effects 0.000 description 2
- 238000013213 extrapolation Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- TVEXGJYMHHTVKP-UHFFFAOYSA-N 6-oxabicyclo[3.2.1]oct-3-en-7-one Chemical compound C1C2C(=O)OC1C=CC2 TVEXGJYMHHTVKP-UHFFFAOYSA-N 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000010845 search algorithm Methods 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
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
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- 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/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N19/159—Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
-
- 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/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- 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/186—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 a colour or a chrominance component
Definitions
- the present invention relates to a video signal processing method and apparatus.
- HD image and UHD image are increasing in various applications.
- HD image and UHD image are increasing in various applications.
- the image data has high resolution and high quality, the amount of data increases relative to the existing image data. Therefore, when the image data is transmitted using a medium such as a wired / wireless broadband line or stored using an existing storage medium, The storage cost is increased.
- High-efficiency image compression techniques can be utilized to solve such problems as image data becomes high-resolution and high-quality.
- An inter picture prediction technique for predicting a pixel value included in a current picture from a previous or a subsequent picture of a current picture by an image compression technique an intra picture prediction technique for predicting a pixel value included in a current picture using pixel information in the current picture
- an entropy encoding technique in which a short code is assigned to a value having a high appearance frequency and a long code is assigned to a value having a low appearance frequency.
- Image data can be effectively compressed and transmitted or stored using such an image compression technique.
- An object of the present invention is to provide a method and apparatus for efficiently performing intra prediction on a block to be encoded / decoded in coding / decoding a video signal.
- An object of the present invention is to provide a method and apparatus for performing intra prediction using a plurality of reference samples that are not neighboring each other in coding / decoding a video signal.
- An object of the present invention is to provide a method and apparatus for performing intra prediction using right and bottom reference samples in coding / decoding a video signal.
- a video signal decoding method and apparatus decides whether or not bi-directional intra prediction is applied to a current block, derives a reference sample of the current block, and when bidirectional intra prediction is applied to the current block,
- the prediction sample of the current block can be obtained based on the first reference sample and the second reference sample specified by the intra prediction mode of the block.
- the method and apparatus for encoding a video signal determines whether bidirectional intra prediction is applied to a current block, derives a reference sample of the current block, and when bidirectional intra prediction is applied to the current block, The prediction sample of the current block can be obtained based on the first reference sample and the second reference sample specified by the intra prediction mode of the block.
- the first reference sample may be a left or top reference sample of the current block and the second reference sample may be a reference sample of the right or bottom reference sample of the current block have.
- the right reference sample is generated by interpolating a right lower reference sample and a right upper reference sample
- the lower reference sample is generated by interpolating the lower right reference sample and the lower left reference sample, Can be generated by interpolating reference samples.
- the first reference sample is selected by applying an intra prediction mode of the current block in a forward direction, Can be selected by applying the prediction mode in the reverse direction.
- the predicted sample may include a first predicted sample obtained based on the first reference sample and a second predicted sample obtained based on the second reference sample Can be obtained based on a weighted sum operation.
- a weight applied to each of the first predicted sample and the second predicted sample may be determined based on a position of a predictive sample, a size or type of the current block, Based on at least one of < / RTI >
- the bidirectional intra prediction may be applied to only a predetermined region in the current block.
- the step of determining whether bidirectional intra prediction is applied to the current block may include determining whether the intra prediction mode of the current block is a directional intra prediction mode And decoding information indicating whether the directional intra prediction mode is used in a bidirectional intra prediction mode.
- whether bi-directional intra prediction is applied to the current block may be determined based on whether bi-directional intra prediction is applied to neighboring blocks adjacent to the current block .
- bidirectional intra prediction may be determined to be applied to the current block.
- intraprediction can be efficiently performed on a block to be encoded / decoded.
- intra prediction is performed using a plurality of reference samples that are not adjacent to each other, thereby improving the efficiency of intra prediction.
- FIG. 1 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.
- FIG. 2 is a block diagram illustrating an image decoding apparatus according to an embodiment of the present invention.
- FIG. 3 illustrates an example in which a coding block is hierarchically divided based on a tree structure according to an embodiment to which the present invention is applied.
- FIG. 4 is a diagram illustrating a partition type in which binary tree-based partitioning is permitted according to an embodiment of the present invention.
- FIG. 5 is a diagram illustrating an example in which only a specific type of binary tree-based partitioning is permitted according to an embodiment of the present invention.
- FIG. 6 is a diagram for explaining an example in which information related to the allowable number of binary tree division is encoded / decoded according to an embodiment to which the present invention is applied.
- FIG. 7 is a diagram illustrating a partition mode that can be applied to a coding block according to an embodiment of the present invention.
- FIG. 8 illustrates an intra prediction mode defined in an image encoder / decoder according to an embodiment of the present invention.
- FIG. 9 illustrates an example of an extended intra prediction mode according to an embodiment of the present invention. Referring to FIG.
- FIG. 10 is a flowchart schematically illustrating an intra prediction method according to an embodiment of the present invention.
- FIG. 11 illustrates a method of correcting a prediction sample of a current block based on difference information of neighboring samples, according to an embodiment of the present invention.
- FIGS. 12 and 13 show a one-dimensional reference sample group in which reference samples are rearranged in a line.
- FIG. 14 is a diagram showing an example of deriving a right reference sample or a lower reference sample using a plurality of reference samples.
- FIGS. 15 and 16 are diagrams for explaining determination of a right reference sample and a bottom reference sample with respect to a non-square block, according to an embodiment of the present invention.
- 17 is a diagram for explaining an example of deriving a second reference sample using a first reference sample.
- 18 is a diagram illustrating reference samples constituting a one-dimensional reference sample group.
- FIG. 19 shows an example of a region to which bi-directional intra prediction is applied.
- FIG. 20 shows an example in which a directional prediction mode in which bi-directional intra prediction is allowed is identified and displayed.
- 21 is a flowchart illustrating a method of intra prediction of a current block based on a bi-directional intra prediction mode according to the present invention.
- first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.
- the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component.
- / or < / RTI > includes any combination of a plurality of related listed items or any of a plurality of related listed items.
- FIG. 1 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.
- the image encoding apparatus 100 includes a picture division unit 110, prediction units 120 and 125, a transform unit 130, a quantization unit 135, a reordering unit 160, an entropy encoding unit An inverse quantization unit 140, an inverse transform unit 145, a filter unit 150, and a memory 155.
- each of the components shown in FIG. 1 is shown independently to represent different characteristic functions in the image encoding apparatus, and does not mean that each component is composed of separate hardware or one software configuration unit. That is, each constituent unit is included in each constituent unit for convenience of explanation, and at least two constituent units of the constituent units may be combined to form one constituent unit, or one constituent unit may be divided into a plurality of constituent units to perform a function.
- the integrated embodiments and separate embodiments of the components are also included within the scope of the present invention, unless they depart from the essence of the present invention.
- the components are not essential components to perform essential functions in the present invention, but may be optional components only to improve performance.
- the present invention can be implemented only with components essential for realizing the essence of the present invention, except for the components used for the performance improvement, and can be implemented by only including the essential components except the optional components used for performance improvement Are also included in the scope of the present invention.
- the picture division unit 110 may divide the input picture into at least one processing unit.
- the processing unit may be a prediction unit (PU), a transform unit (TU), or a coding unit (CU).
- the picture division unit 110 divides one picture into a plurality of coding units, a prediction unit, and a combination of conversion units, and generates a coding unit, a prediction unit, and a conversion unit combination So that the picture can be encoded.
- one picture may be divided into a plurality of coding units.
- a recursive tree structure such as a quad tree structure can be used.
- a unit can be divided with as many child nodes as the number of divided coding units. Under certain constraints, an encoding unit that is no longer segmented becomes a leaf node. That is, when it is assumed that only one square division is possible for one coding unit, one coding unit can be divided into a maximum of four different coding units.
- a coding unit may be used as a unit for performing coding, or may be used as a unit for performing decoding.
- the prediction unit may be one divided into at least one square or rectangular shape having the same size in one coding unit, and one of the prediction units in one coding unit may be divided into another prediction Or may have a shape and / or size different from the unit.
- intraprediction can be performed without dividing the prediction unit into a plurality of prediction units NxN.
- the prediction units 120 and 125 may include an inter prediction unit 120 for performing inter prediction and an intra prediction unit 125 for performing intra prediction. It is possible to determine whether to use inter prediction or intra prediction for a prediction unit and to determine concrete information (e.g., intra prediction mode, motion vector, reference picture, etc.) according to each prediction method.
- the processing unit in which the prediction is performed may be different from the processing unit in which the prediction method and the concrete contents are determined. For example, the method of prediction, the prediction mode and the like are determined as a prediction unit, and the execution of the prediction may be performed in a conversion unit.
- the residual value (residual block) between the generated prediction block and the original block can be input to the conversion unit 130.
- the prediction mode information, motion vector information, and the like used for prediction can be encoded by the entropy encoding unit 165 together with the residual value and transmitted to the decoder.
- the entropy encoding unit 165 When a particular encoding mode is used, it is also possible to directly encode the original block and transmit it to the decoding unit without generating a prediction block through the prediction units 120 and 125.
- the inter-prediction unit 120 may predict a prediction unit based on information of at least one of a previous picture or a following picture of the current picture, and may predict a prediction unit based on information of a partially- Unit may be predicted.
- the inter prediction unit 120 may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.
- the reference picture information is supplied from the memory 155 and pixel information of an integer pixel or less can be generated in the reference picture.
- a DCT-based interpolation filter having a different filter coefficient may be used to generate pixel information of an integer number of pixels or less in units of quarter pixels.
- a DCT-based 4-tap interpolation filter having a different filter coefficient may be used to generate pixel information of an integer number of pixels or less in units of 1/8 pixel.
- the motion prediction unit may perform motion prediction based on the reference picture interpolated by the reference picture interpolating unit.
- Various methods such as Full Search-based Block Matching Algorithm (FBMA), Three Step Search (TSS), and New Three-Step Search Algorithm (NTS) can be used as methods for calculating motion vectors.
- the motion vector may have a motion vector value of 1/2 or 1/4 pixel unit based on the interpolated pixel.
- the motion prediction unit can predict the current prediction unit by making the motion prediction method different.
- Various methods such as a skip method, a merge method, an AMVP (Advanced Motion Vector Prediction) method, and an Intra Block Copy method can be used as the motion prediction method.
- AMVP Advanced Motion Vector Prediction
- the intra prediction unit 125 can generate a prediction unit based on reference pixel information around the current block which is pixel information in the current picture.
- the reference pixel included in the block in which the inter prediction is performed is referred to as the reference pixel Information. That is, when the reference pixel is not available, the reference pixel information that is not available may be replaced by at least one reference pixel among the available reference pixels.
- the prediction mode may have a directional prediction mode in which reference pixel information is used according to a prediction direction, and a non-directional mode in which direction information is not used in prediction.
- the mode for predicting the luminance information may be different from the mode for predicting the chrominance information and the intra prediction mode information or predicted luminance signal information used for predicting the luminance information may be utilized to predict the chrominance information.
- intraprediction when the size of the prediction unit is the same as the size of the conversion unit, intra prediction is performed on the prediction unit based on pixels existing on the left side of the prediction unit, pixels existing on the upper left side, Can be performed.
- intra prediction when the size of the prediction unit differs from the size of the conversion unit, intraprediction can be performed using the reference pixel based on the conversion unit. It is also possible to use intraprediction using NxN partitioning only for the minimum encoding unit.
- the intra prediction method can generate a prediction block after applying an AIS (Adaptive Intra Smoothing) filter to the reference pixel according to the prediction mode.
- the type of the AIS filter applied to the reference pixel may be different.
- the intra prediction mode of the current prediction unit can be predicted from the intra prediction mode of the prediction unit existing around the current prediction unit.
- the prediction mode of the current prediction unit is predicted using the mode information predicted from the peripheral prediction unit, if the intra prediction mode of the current prediction unit is the same as the intra prediction mode of the current prediction unit,
- the prediction mode information of the current block can be encoded by performing entropy encoding if the prediction mode of the current prediction unit is different from the prediction mode of the neighbor prediction unit.
- a residual block including a prediction unit that has been predicted based on the prediction unit generated by the prediction units 120 and 125 and a residual value that is a difference value from the original block of the prediction unit may be generated.
- the generated residual block may be input to the transform unit 130.
- the transform unit 130 transforms the residual block including the residual information of the prediction unit generated through the original block and the predictors 120 and 125 into a DCT (Discrete Cosine Transform), a DST (Discrete Sine Transform), a KLT You can convert using the same conversion method.
- the decision to apply the DCT, DST, or KLT to transform the residual block may be based on the intra prediction mode information of the prediction unit used to generate the residual block.
- the quantization unit 135 may quantize the values converted into the frequency domain by the conversion unit 130. [ The quantization factor may vary depending on the block or the importance of the image. The values calculated by the quantization unit 135 may be provided to the inverse quantization unit 140 and the reorder unit 160.
- the reordering unit 160 can reorder the coefficient values with respect to the quantized residual values.
- the reordering unit 160 may change the two-dimensional block type coefficient to a one-dimensional vector form through a coefficient scanning method.
- the rearranging unit 160 may scan a DC coefficient to a coefficient in a high frequency region using a Zig-Zag scan method, and change the DC coefficient to a one-dimensional vector form.
- a vertical scan may be used to scan two-dimensional block type coefficients in a column direction, and a horizontal scan to scan a two-dimensional block type coefficient in a row direction depending on the size of the conversion unit and the intra prediction mode. That is, it is possible to determine whether any scanning method among the jig-jag scan, the vertical direction scan and the horizontal direction scan is used according to the size of the conversion unit and the intra prediction mode.
- the entropy encoding unit 165 may perform entropy encoding based on the values calculated by the reordering unit 160.
- various encoding methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be used.
- the entropy encoding unit 165 receives the residual value count information of the encoding unit, the block type information, the prediction mode information, the division unit information, the prediction unit information and the transmission unit information, and the motion information of the motion unit from the reordering unit 160 and the prediction units 120 and 125 Vector information, reference frame information, interpolation information of a block, filtering information, and the like.
- the entropy encoding unit 165 can entropy-encode the coefficient value of the encoding unit input by the reordering unit 160.
- the inverse quantization unit 140 and the inverse transformation unit 145 inverse quantize the quantized values in the quantization unit 135 and inversely transform the converted values in the conversion unit 130.
- the residual value generated by the inverse quantization unit 140 and the inverse transform unit 145 is combined with the prediction unit predicted through the motion estimation unit, the motion compensation unit and the intra prediction unit included in the prediction units 120 and 125, A block (Reconstructed Block) can be generated.
- the filter unit 150 may include at least one of a deblocking filter, an offset correction unit, and an adaptive loop filter (ALF).
- a deblocking filter may include at least one of a deblocking filter, an offset correction unit, and an adaptive loop filter (ALF).
- ALF adaptive loop filter
- the deblocking filter can remove block distortion caused by the boundary between the blocks in the reconstructed picture. It may be determined whether to apply a deblocking filter to the current block based on pixels included in a few columns or rows included in the block to determine whether to perform deblocking. When a deblocking filter is applied to a block, a strong filter or a weak filter may be applied according to the deblocking filtering strength required. In applying the deblocking filter, horizontal filtering and vertical filtering may be performed concurrently in performing vertical filtering and horizontal filtering.
- the offset correction unit may correct the offset of the deblocked image with respect to the original image in units of pixels.
- pixels included in an image are divided into a predetermined number of areas, and then an area to be offset is determined and an offset is applied to the area.
- Adaptive Loop Filtering can be performed based on a comparison between the filtered reconstructed image and the original image. After dividing the pixels included in the image into a predetermined group, one filter to be applied to the group may be determined and different filtering may be performed for each group.
- the information related to whether to apply the ALF may be transmitted for each coding unit (CU), and the shape and the filter coefficient of the ALF filter to be applied may be changed according to each block. Also, an ALF filter of the same type (fixed form) may be applied irrespective of the characteristics of the application target block.
- the memory 155 may store the reconstructed block or picture calculated through the filter unit 150 and the reconstructed block or picture stored therein may be provided to the predictor 120 or 125 when the inter prediction is performed.
- FIG. 2 is a block diagram illustrating an image decoding apparatus according to an embodiment of the present invention.
- the image decoder 200 includes an entropy decoding unit 210, a reordering unit 215, an inverse quantization unit 220, an inverse transform unit 225, prediction units 230 and 235, 240, and a memory 245 may be included.
- the input bitstream may be decoded in a procedure opposite to that of the image encoder.
- the entropy decoding unit 210 can perform entropy decoding in a procedure opposite to that in which entropy encoding is performed in the entropy encoding unit of the image encoder. For example, various methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be applied in accordance with the method performed by the image encoder.
- various methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be applied in accordance with the method performed by the image encoder.
- CAVLC Context-Adaptive Variable Length Coding
- CABAC Context-Adaptive Binary Arithmetic Coding
- the entropy decoding unit 210 may decode information related to intra prediction and inter prediction performed in the encoder.
- the reordering unit 215 can perform reordering based on a method in which the entropy decoding unit 210 rearranges the entropy-decoded bitstreams in the encoding unit.
- the coefficients represented by the one-dimensional vector form can be rearranged by restoring the coefficients of the two-dimensional block form again.
- the reordering unit 215 can perform reordering by receiving information related to the coefficient scanning performed by the encoding unit and performing a reverse scanning based on the scanning order performed by the encoding unit.
- the inverse quantization unit 220 can perform inverse quantization based on the quantization parameters provided by the encoder and the coefficient values of the re-arranged blocks.
- the inverse transform unit 225 may perform an inverse DCT, an inverse DST, and an inverse KLT on the DCT, DST, and KLT transformations performed by the transform unit on the quantization result performed by the image encoder.
- the inverse transform can be performed based on the transmission unit determined by the image encoder.
- a transform technique e.g., DCT, DST, KLT
- the prediction units 230 and 235 can generate a prediction block based on the prediction block generation related information provided by the entropy decoding unit 210 and the previously decoded block or picture information provided in the memory 245.
- intraprediction is performed using a reference pixel based on the conversion unit . It is also possible to use intra prediction using NxN division only for the minimum coding unit.
- the prediction units 230 and 235 may include a prediction unit determination unit, an inter prediction unit, and an intra prediction unit.
- the prediction unit determination unit receives various information such as prediction unit information input from the entropy decoding unit 210, prediction mode information of the intra prediction method, motion prediction related information of the inter prediction method, and identifies prediction units in the current coding unit. It is possible to determine whether the unit performs inter prediction or intra prediction.
- the inter prediction unit 230 predicts the current prediction based on the information included in at least one of the previous picture of the current picture or the following picture including the current prediction unit by using information necessary for inter prediction of the current prediction unit provided by the image encoder, Unit can be performed. Alternatively, the inter prediction may be performed on the basis of the information of the partial region previously reconstructed in the current picture including the current prediction unit.
- a motion prediction method of a prediction unit included in a corresponding encoding unit on the basis of an encoding unit includes a skip mode, a merge mode, an AMVP mode, and an intra block copy mode It is possible to judge whether or not it is any method.
- the intra prediction unit 235 can generate a prediction block based on the pixel information in the current picture. If the prediction unit is a prediction unit that performs intra prediction, the intra prediction can be performed based on the intra prediction mode information of the prediction unit provided by the image encoder.
- the intraprediction unit 235 may include an AIS (Adaptive Intra Smoothing) filter, a reference pixel interpolator, and a DC filter.
- the AIS filter performs filtering on the reference pixels of the current block and can determine whether to apply the filter according to the prediction mode of the current prediction unit.
- the AIS filtering can be performed on the reference pixel of the current block using the prediction mode of the prediction unit provided in the image encoder and the AIS filter information. When the prediction mode of the current block is a mode in which AIS filtering is not performed, the AIS filter may not be applied.
- the reference pixel interpolator may interpolate the reference pixels to generate reference pixels in units of pixels less than or equal to an integer value when the prediction mode of the prediction unit is a prediction unit that performs intra prediction based on pixel values obtained by interpolating reference pixels.
- the reference pixel may not be interpolated in the prediction mode in which the prediction mode of the current prediction unit generates the prediction block without interpolating the reference pixel.
- the DC filter can generate a prediction block through filtering when the prediction mode of the current block is the DC mode.
- the restored block or picture may be provided to the filter unit 240.
- the filter unit 240 may include a deblocking filter, an offset correction unit, and an ALF.
- the deblocking filter of the video decoder When information on whether a deblocking filter is applied to a corresponding block or picture from the image encoder or a deblocking filter is applied, information on whether a strong filter or a weak filter is applied can be provided.
- the deblocking filter of the video decoder the deblocking filter related information provided by the video encoder is provided, and the video decoder can perform deblocking filtering for the corresponding block.
- the offset correction unit may perform offset correction on the reconstructed image based on the type of offset correction applied to the image and the offset value information during encoding.
- the ALF can be applied to an encoding unit on the basis of ALF application information and ALF coefficient information provided from an encoder.
- ALF information may be provided in a specific parameter set.
- the memory 245 may store the reconstructed picture or block to be used as a reference picture or a reference block, and may also provide the reconstructed picture to the output unit.
- a coding unit (coding unit) is used as a coding unit for convenience of explanation, but it may be a unit for performing not only coding but also decoding.
- the current block indicates a block to be coded / decoded.
- the current block includes a coding tree block (or coding tree unit), a coding block (or coding unit), a transform block (Or prediction unit), and the like.
- the basic block may be referred to as a coding tree unit.
- the coding tree unit may be defined as a coding unit of the largest size allowed by a sequence or a slice. Information regarding whether the coding tree unit is square or non-square or about the size of the coding tree unit can be signaled through a sequence parameter set, a picture parameter set, or a slice header.
- the coding tree unit can be divided into smaller size partitions. In this case, if the partition generated by dividing the coding tree unit is depth 1, the partition created by dividing the partition having depth 1 can be defined as depth 2. That is, the partition created by dividing the partition having the depth k in the coding tree unit can be defined as having the depth k + 1.
- a partition of arbitrary size generated as the coding tree unit is divided can be defined as a coding unit.
- the coding unit may be recursively divided or divided into basic units for performing prediction, quantization, transformation, or in-loop filtering, and the like.
- a partition of arbitrary size generated as a coding unit is divided may be defined as a coding unit, or may be defined as a conversion unit or a prediction unit, which is a basic unit for performing prediction, quantization, conversion or in-loop filtering and the like.
- the partitioning of the coding tree unit or the coding unit may be performed based on at least one of a vertical line and a horizontal line. Further, the number of vertical lines or horizontal lines partitioning the coding tree unit or the coding unit may be at least one or more. As an example, one vertical line or one horizontal line may be used to divide a coding tree unit or coding unit into two partitions, or two vertical lines or two horizontal lines to divide a coding tree unit or a coding unit into three partitions Can be divided. Alternatively, one vertical line and one horizontal line may be used to divide the coding tree unit or the coding unit into four partitions having a length and a width of 1/2.
- the partitions When dividing the coding tree unit or the coding unit into a plurality of partitions using at least one vertical line or at least one horizontal line, the partitions may have a uniform size or may have different sizes. Alternatively, any one partition may have a size different from the remaining partitions.
- a coding tree unit or a coding unit is divided into a quad tree, a triple tree, or a binary tree structure.
- a coding tree unit or a coding unit using a larger number of vertical lines or a larger number of horizontal lines.
- FIG. 3 illustrates an example in which a coding block is hierarchically divided based on a tree structure according to an embodiment to which the present invention is applied.
- the input video signal is decoded in a predetermined block unit, and a basic unit for decoding the input video signal is called a coding block.
- the coding block may be a unit for performing intra / inter prediction, conversion, and quantization. Further, a prediction mode (for example, an intra-picture prediction mode or an inter-picture prediction mode) is determined for each coding block, and the prediction blocks included in the coding block can share the determined prediction mode.
- the coding block may be a square or non-square block having any size falling within the range of 8x8 to 64x64, and may be a square or non-square block having a size of 128x128, 256x256 or more.
- the coding block may be hierarchically partitioned based on at least one of a quad tree, a triple tree, and a binary tree.
- quad tree-based partitioning is a method in which a 2Nx2N coding block is divided into 4 NxN coding blocks
- a triple tree-based partitioning is a method in which one coding block is divided into 3 coding blocks, Each of which means that one coding block is divided into two coding blocks. Even if a triple tree division or a binary tree division is performed, a square coding block may exist in a lower depth.
- the triple tree partitioning or the binary tree based partitioning it is possible to restrict the generation of the square coding blocks in the lower depths.
- Binary tree based partitioning may be performed symmetrically or asymmetrically.
- the coding block divided based on the binary tree may be a square block or a non-square block such as a rectangle.
- the partition type in which binary tree-based partitioning is allowed is a symmetric 2NxN (horizontal direction non-puncturing unit) or Nx2N (vertical direction non-puncturing coding unit) as in the example shown in FIG. 4, And may include at least one of nLx2N, nRx2N, 2NxnU, and 2NxnD, which are asymmetric.
- Binary tree-based partitioning may be limited to either a symmetric or an asymmetric partition.
- configuring the coding tree unit as a square block corresponds to quad tree CU partitioning
- configuring the coding tree unit as a symmetric non-square block may correspond to binary tree partitioning.
- Constructing the coding tree unit as a square block and a symmetric non-square block may correspond to quad and binary tree CU partitioning.
- Binary tree-based partitioning can be performed on a coded block where quadtree-based partitioning is no longer performed.
- quadtree-based partitioning For a coding block based on a binary tree, at least one of quad tree based partitioning, triple tree based partitioning, or binary tree based partitioning may be set to be no longer performed.
- a triple-tree-based partition or a binary-tree-based partition may be allowed for the coding block based on the binary tree, but only one of the horizontal or vertical partition may be limitedly allowed.
- the additional partitioning or additional partitioning direction may be restricted with respect to the coding block divided on the basis of the binary tree.
- an index of a coding block preceding a coding order is 0 (hereinafter referred to as a coding block index 0), an index of a coding block following the coding order is 1 (hereinafter, referred to as a coding block index)
- the binary tree-based partitioning is applied to both the coding block index 0 or the coding block index 1 coding block, the binary tree-based partitioning direction of the coding block having the coding block index " 1 " Can be determined according to the binary tree-based division direction of the coding block with the coding block index of 0.
- a binary tree of a coding block index 1 May be limited to have a different direction than the binary tree based partitioning of the coding block with a coding block index of 1. That is, it can be restricted that the coding blocks index 0 and the coding blocks index 1 are all divided into square partitions. In this case, encoding / decoding of information indicating the binary tree division direction of a coding block with a coding block index of 1 can be omitted.
- the triple tree-based partitioning means that the coding block is divided into three partitions in the horizontal or vertical direction. All three partitions created due to triple tree based partitioning can have different sizes. Alternatively, two of the partitions created due to the triple tree-based partition may have the same size and the remaining one may have a different size.
- the width ratio or the height ratio of the generated partitions may be set to 1: n: 1, 1: 1: n, n: 1: 1 or m: n: 1 depending on the division direction as the coding block is divided have.
- m and n may be integers equal to 1 or greater than 1, for example, 2.
- Triple tree-based partitioning can be performed on a coded block where quadtree-based partitioning is no longer performed.
- quadtree-based partitioning For a triple tree-based partitioned coding block, at least one of a quadtree based partition, a triple tree based partition, or a binary tree based partition may be set to no longer be performed.
- a triple tree-based partition or a binary tree-based partition may be allowed for a coding block divided based on a triple tree, but only one of horizontal or vertical partitioning may be limitedly permitted.
- the horizontal direction partitioning or the vertical direction partitioning may be restricted for the partition having the largest size among the coding blocks generated due to the triple tree-based partitioning.
- a partition having the largest size among the coding blocks generated due to the triple tree-based partition may not be divided into a binary tree partition in the same direction as the triple tree partition direction of the upper depth partition or a triple tree partition direction in the same direction have.
- encoding / decoding of the information indicating the binary tree division direction or the triple tree division direction may be omitted for the largest partition among the coding blocks divided based on the triple tree.
- partitioning based on a binary tree or triple tree may be limited.
- the size of the current block is determined based on at least one of the width, height, width / height of the current block, the minimum / maximum value of the current block, the sum of the width and height, the product of the width and height, Can be expressed.
- the predefined value may be an integer such as 16, 32, 64, or 128.
- a binary tree or triple tree based partition may not be allowed if the width and height ratio of the current block is greater than the predefined value or less than the predefined value. If the predefined value is 1, partitioning based on a binary tree or triple tree can be allowed only if the current block is a square block with the same width and height.
- the division of the lower depth may be determined depending on the division type of the upper depth. For example, if binary tree-based partitioning is allowed in two or more depths, only binary tree-based partitioning of the same type as the binary tree partitioning of the upper depths may be allowed in the lower depths. For example, if the binary tree-based partitioning is performed in the 2NxN type in the upper depth, 2NxN type binary tree-based partitioning can be performed even in the lower depth. Alternatively, if the binary tree-based partitioning is performed in the Nx2N type in the upper depth, the binary tree-based partitioning in the Nx2N type may be allowed in the lower depths.
- a sequence, slice, coding tree unit or coding unit it may be limited to use only a specific type of binary tree based partitioning or a specific type of triple tree based partitioning.
- a specific type of binary tree based partitioning or a specific type of triple tree based partitioning As an example, only binary tree-based partitioning in the form of 2NxN or Nx2N for the coding tree unit is allowed to be allowed.
- the allowed partition type may be predefined in an encoder or a decoder, or may be signaled through a bitstream by encoding information on an acceptable partition type or an unacceptable partition type.
- FIG. 5 is a diagram showing an example in which only a specific type of binary tree-based partition is allowed.
- FIG. 5A shows an example in which only binary tree-based partitioning in the form of Nx2N is allowed
- FIG. 5B shows an example in which only binary tree-based partitioning in the form of 2NxN is allowed to be allowed.
- information indicating quad tree-based partitioning In order to implement the adaptive partitioning based on the quadtree or the binary tree, information indicating quad tree-based partitioning, information on the size / depth of the quadtree based partitioning allowable coding block, Information about the size / depth of a coding block in which binary tree-based partitioning is allowed, information on the size / depth of a coding block in which binary tree-based partitioning is not allowed, or whether the binary tree- Information regarding the horizontal direction, and the like can be used.
- the number of times the binary tree partitioning / triple tree partitioning is permitted, the depth at which the binary tree partitioning / triple tree partitioning is allowed, or the number of the depths at which the binary tree partitioning / Etc. can be obtained.
- the information may be encoded in units of a coding tree unit or a coding unit, and may be transmitted to a decoder through a bitstream.
- a syntax 'max_binary_depth_idx_minus1' indicating the maximum depth at which binary tree segmentation is allowed may be encoded / decoded through a bitstream, via a bitstream.
- max_binary_depth_idx_minus1 + 1 may indicate the maximum depth at which the binary tree division is allowed.
- a binary tree division is performed for a depth 2 coding unit and a depth 3 coding unit. Accordingly, the information indicating the number of times (2) the binary tree segmentation in the coding tree unit has been performed, the information indicating the maximum depth (depth 3) allowed to divide the binary tree in the coding tree unit, or the binary tree segmentation in the coding tree unit At least one of information indicating the number of allowed depths (2, depth 2 and depth 3) can be encoded / decoded through a bitstream.
- the information may be encoded in a sequence, picture, or slice unit and transmitted through a bitstream.
- there may be a predefined depth that permits binary tree / triple tree partitioning for each sequence, picture, or slice, or the number of depths allowed for binary tree / triple tree partitioning.
- At least one of the number of binary tree / triple tree divisions of the first slice and the second slice, the maximum depth allowed to divide the binary tree / triple tree, or the number of depths allowed to divide the binary tree / triple tree are different .
- binary tree segmentation in the first slice binary tree segmentation is allowed in only one depth
- binary tree segmentation in two depths is allowed.
- the number of times the binary tree / triple tree partition is allowed, the depth at which the binary tree / triple tree partition is allowed, or the depth at which the binary tree / triple tree partition is allowed, according to the time level identifier (TemporalID) At least one of the numbers may be set differently.
- the temporal level identifier (TemporalID) is used to identify each of a plurality of layers of an image having a scalability of at least one of view, spatial, temporal or picture quality will be.
- the first coding block 300 having a split depth k may be divided into a plurality of second coding blocks based on a quad tree.
- the second coding blocks 310 to 340 may be square blocks having half the width and height of the first coding block, and the division depth of the second coding block may be increased to k + 1.
- the second coding block 310 having the division depth k + 1 may be divided into a plurality of third coding blocks having a division depth k + 2.
- the division of the second coding block 310 may be performed using a quadtree or a binary tree selectively according to the division method.
- the partitioning scheme may be determined based on at least one of information indicating partitioning based on a quadtree or information indicating partitioning based on a binary tree.
- the second coding block 310 When the second coding block 310 is divided based on quadtrees, the second coding block 310 is divided into four third coding blocks 310a having half the width and height of the second coding block, and the third coding block 310a The split depth can be increased to k + 2.
- the second coding block 310 when the second coding block 310 is divided based on the binary tree, the second coding block 310 may be divided into two third coding blocks. At this time, each of the two third coding blocks is a non-square block in which one of the width and height of the second coding block is half, and the dividing depth can be increased to k + 2.
- the second coding block may be determined as a non-square block in the horizontal direction or the vertical direction according to the dividing direction, and the dividing direction may be determined based on information on whether the dividing based on the binary tree is the vertical direction or the horizontal direction.
- the second coding block 310 may be determined as a last coding block that is not further divided based on a quadtree or a binary tree.
- the coding block may be used as a prediction block or a transform block.
- the third coding block 310a may be determined as a terminal coding block as well as the division of the second coding block 310, or may be further divided based on a quadtree or a binary tree.
- the third coding block 310b divided on the basis of the binary tree may be further divided into a vertical coding block 310b-2 or a horizontal coding block 310b-3 on the basis of a binary tree, The division depth of the block can be increased to k + 3.
- the third coding block 310b may be determined as a last coding block 310b-1 that is not further divided based on the binary tree, and the corresponding coding block 310b-1 may be used as a prediction block or a transform block .
- the above-described partitioning process may include information on the size / depth of a coding block in which quadtree-based partitioning is allowed, information on the size / depth of a coding block in which binary tree-based partitioning is allowed or binary tree- / RTI > information about the size / depth of the coding block that is not coded.
- the size that the coding block can have is limited to a predetermined number, or the size of the coding block in a predetermined unit may have a fixed value.
- the size of a coding block in a sequence or the size of a coding block in a picture may be limited to 256x256, 128x128, or 32x32.
- Information indicating the size of a sequence or an intra-picture coding block may be signaled through a sequence header or a picture header.
- the division result based on quad tree, binary tree and triple tree, the coding unit may be square or any size rectangle.
- the coding block may be encoded / decoded using at least one of a skip mode, an intra prediction, an inter prediction, or a skipping method.
- intra prediction or inter prediction can be performed in the same size as the coding block or in units smaller than the coding block through the division of the coding block.
- a prediction block can be determined through predictive division of the coding block.
- Predictive partitioning of the coded block can be performed by a partition mode (Part_mode) indicating the partition type of the coded block.
- Part_mode partition mode
- the size or shape of the prediction block may be determined according to the partition mode of the coding block. For example, the size of the prediction block determined according to the partition mode may be equal to or smaller than the size of the coding block.
- FIG. 7 is a diagram illustrating a partition mode that can be applied to a coding block when a coding block is coded by inter-picture prediction.
- the coding block is coded as an inter-picture prediction, one of eight partitioning modes may be applied to the coding block, as in the example shown in Fig.
- the coding mode can be applied to the partition mode PART_2Nx2N or PART_NxN.
- PART_NxN may be applied when the coding block has a minimum size.
- the minimum size of the coding block may be one previously defined in the encoder and the decoder.
- information regarding the minimum size of the coding block may be signaled via the bitstream.
- the minimum size of the coding block is signaled through the slice header, so that the minimum size of the coding block per slice can be defined.
- the size of the prediction block may have a size from 64x64 to 4x4.
- the coding block is coded by inter-picture prediction, it is possible to prevent the prediction block from having a 4x4 size in order to reduce the memory bandwidth when performing motion compensation.
- FIG. 8 illustrates an intra prediction mode defined in an image encoder / decoder according to an embodiment of the present invention.
- the image encoder / decoder may perform intra prediction using any one of the pre-defined intra prediction modes.
- a predefined intra prediction mode for intra prediction may be configured with a non-directional prediction mode (e.g., Planar mode, DC mode) and 33 directional prediction modes.
- a larger number of directional prediction modes than the 33 directional prediction modes can be used to increase the accuracy of intra prediction. That is, it is also possible to further define M extended directional prediction modes (M > 33) by further subdividing the angle of the directional prediction mode and use at least one of the 33 predefined directional prediction modes, A directional prediction mode having a directional prediction mode can be derived and used.
- a larger number of intra prediction modes than the 35 intra prediction modes shown in FIG. 8 may be used.
- the use of a larger number of intra prediction modes than the 35 intra prediction modes shown in FIG. 8 can be referred to as an extended intra prediction mode.
- the extended intra-prediction mode may be composed of two non-directional prediction modes and 65 extended directional prediction modes.
- the extended intra prediction mode may be used for the luminance component and chrominance component in the same manner, or may be a different number of intra prediction modes for each component. For example, 67 extended intra-prediction modes may be used for the luminance component, and 35 intra-prediction modes may be used for the chrominance components.
- intra prediction may be performed using a different number of intra prediction modes according to a color difference format.
- intraprediction can be performed using 67 intra prediction modes in the luminance component and 35 intra prediction modes can be used in the chrominance component.
- 4: 4: 4 format It is possible to use intra prediction using 67 intra prediction modes in both the luminance component and the chrominance component.
- the intra prediction may be performed using a different number of intra prediction modes depending on the size and / or shape of the block. That is, intra prediction can be performed using 35 intra prediction modes or 67 intra prediction modes depending on the size and / or type of the PU or CU. For example, if the size of a CU or PU is less than 64x64 or an asymmetric partition, intraprediction can be performed using 35 intra-prediction modes. If the size of the CU or PU is equal to or larger than 64x64 , Intra prediction can be performed using 67 intra prediction modes. Intra_2Nx2N may allow 65 directional intra prediction modes, and Intra_NxN may allow only 35 directional intra prediction modes.
- a size of a block to which an extended intra prediction mode is applied may be set differently for each sequence, picture or slice. For example, in the first slice, an intra prediction mode extended to a block (for example, CU or PU) larger than 64x64 is set to be applied, and in the second slice, an intra prediction mode extended to a block larger than 32x32 is set to be applied .
- Information indicating the size of a block to which the extended intra prediction mode is applied can be signaled by a sequence, a picture, or a slice unit.
- the information indicating the size of the block to which the extended intra prediction mode is applied may be defined as 'log2_extended_intra_mode_size_minus4' obtained by taking a logarithm of the block size and then subtracting the integer 4.
- the number of intra prediction modes can be determined in consideration of at least one of a color difference component, a color difference format, a block size, and a shape.
- the number of intra prediction mode candidates (for example, the number of MPMs) used for determining the intra prediction mode of the current block to be coded / decoded is not limited to at least one of the color difference component, the color difference format, . It is also possible to use a larger number of intra prediction modes than those shown in Fig. For example, it is also possible to further divide the directional prediction mode shown in FIG. 8 and use 129 directional prediction modes and two non-directional prediction modes. Whether or not to use a larger number of intra prediction modes than those shown in FIG. 8 can be determined in consideration of at least one of a chrominance component, a chrominance component, a size or a shape of a block, as in the above example.
- FIG. 10 is a flowchart schematically illustrating an intra prediction method according to an embodiment of the present invention.
- the intra prediction mode of the current block can be determined (S1000).
- the intra prediction mode of the current block can be derived based on the candidate list and the index.
- the candidate list includes a plurality of candidates, and a plurality of candidates can be determined based on an intra prediction mode of a neighboring block adjacent to the current block.
- the neighboring block may include at least one of the blocks located at the top, bottom, left, right, or corner of the current block.
- the index may specify any one of a plurality of candidates belonging to the candidate list.
- the candidate specified by the index may be set to the intra prediction mode of the current block.
- the intra prediction mode used for the intra prediction by the neighboring block may be set as a candidate. For example, candidates can be derived based on the intra-prediction modes of the left block, the upper block, the lower left corner adjacent block, the upper right corner adjacent block, and the upper left corner adjacent block of the current block. If the neighboring block is coded by inter prediction, the candidate of the current block can be derived using the intra prediction mode of the collocated block of the neighboring block.
- an intra prediction mode having a similar direction to the intra prediction mode of the neighboring block may be set as a candidate.
- the intra-prediction mode having a similar directionality may be determined by adding or subtracting a predetermined constant value to the intra-prediction mode of the neighboring block.
- the predetermined constant value may be an integer of 1, 2, or more, and the predetermined constant value may be adaptively determined according to the number of available intra prediction modes. For example, if the number of available intra prediction modes is 35, the predetermined constant value is set to 1, and if the number of available intra prediction modes is 67, the predetermined constant value may be set to 2. Further, when the number of available intra prediction modes is 131, a predetermined constant value may be set to 4. [
- the candidate list may further include a default mode.
- the default mode may include at least one of planner mode, DC mode, vertical mode, horizontal mode, upper right diagonal mode, and upper left diagonal mode.
- the default mode can be adaptively added considering the maximum number of candidates that can be included in the candidate list of the current block.
- the maximum number of candidates that may be included in the candidate list may be three, four, five, six, seven, or more.
- the maximum number of candidates that can be included in the candidate list may be a fixed value preset in the image encoder / decoder and may be variably determined based on the attribute of the current block.
- the attributes may refer to the location / size / type of the block, the number / type of intra prediction modes available for the block, the color difference property, the color difference format, and the like.
- information indicating the maximum number of candidates that can be included in the candidate list may be signaled separately, and the maximum number of candidates that can be included in the candidate list may be variably determined using the information.
- the information indicating the maximum number of candidates may be signaled in at least one of a sequence level, a picture level, a slice level, or a block level.
- the candidates included in the candidate list can be sorted in the predefined order.
- the candidates may be arranged in the candidate list in the order of the left block, the upper block, the lower left block, the upper right block, and the upper left block.
- the arrangement order of the candidates may be variably determined according to the size or shape of the current block. For example, if the current block is a non-square block whose height is greater than the width, the intra prediction mode of the upper block may be arranged with a higher priority than the intra prediction mode of the left block.
- an intra prediction mode of a neighboring block is converted into an index corresponding to the extended intra prediction mode, or 35 intra prediction modes
- the index can be converted into an index to induce candidates.
- a pre-defined table may be used for the transformation of the index, or a scaling operation based on a predetermined value may be used.
- the pre-defined table may be one that defines a mapping relationship between different intra prediction mode groups (e.g., an extended intra prediction mode and 35 intra prediction modes).
- the left neighboring block uses 35 intra prediction modes and the intra prediction mode of the left neighboring block is 10 (horizontal mode), it is converted into the index 16 corresponding to the horizontal mode in the extended intra prediction mode .
- the intra-prediction mode in which the upper neighboring block is extended is used and the intra-prediction mode index of the upper neighboring block is 50 (vertical mode), it can be converted into index 26 corresponding to the vertical mode in 35 intra- have.
- the intraprediction mode may be derived independently of each of the luminance component and the chrominance component based on the intra prediction mode determination method described above and the chrominance component may be derived as a dependency on the intra prediction mode of the luminance component.
- the intraprediction mode of the chrominance component can be determined based on the intraprediction mode of the luminance component as shown in Table 1 below.
- intra_chroma_pred_mode denotes information to be signaled to specify an intra prediction mode of a chrominance component
- IntraPredModeY denotes an intra prediction mode of a luminance component
- the candidate list it is possible to decode information indicating whether or not a candidate identical to the intra prediction mode of the current block is included in the candidate list.
- the information indicates that the candidate having the same intra prediction mode as the current block is included in the candidate list, it may decode index information (e.g., MPM_index) indicating one of the candidates.
- the intra prediction mode of the current block may be set to be the same as the intra prediction mode of the candidate indicated by the index information.
- the residual intra prediction mode information (e.g., rem_intra_mode) specifying any one of the residual intra prediction modes excluding the candidates, Can be decoded.
- the intra prediction mode of the current block may be determined based on the intra prediction mode indicated by the residual intra prediction mode information. As an example, the current intra prediction mode may be determined by comparing the candidate with the intra prediction mode indicated by the residual intra prediction mode. For example, if the candidate intra prediction mode is smaller than the intra prediction mode indicated by the residual intra prediction mode, 1 can be added to the residual intra prediction mode to derive the intra prediction mode of the current block.
- a reference sample for intra prediction of a current block may be derived (S1010).
- a reference sample for intra prediction can be derived based on the surrounding samples of the current block.
- the surrounding sample may refer to a reconstructed sample of the above-described neighboring block, which may be a reconstructed sample before the in-loop filter is applied or a reconstructed sample after the in-loop filter is applied.
- a neighboring sample reconstructed before the current block may be used as a reference sample, and a neighboring sample filtered based on a predetermined intra-filter may be used as a reference sample.
- Filtering surrounding samples using an intra filter may also be referred to as reference sample smoothing.
- the intra-filter may include at least one of a first intra-filter applied to a plurality of surrounding samples located on the same horizontal line or a second intra-filter applied to a plurality of surrounding samples located on the same vertical line. Either one of the first intra-filter or the second intra-filter may be selectively applied, or two intra-filters may be applied redundantly depending on the position of the neighboring sample.
- at least one filter coefficient of the first intra-filter or the second intra-filter may be (1, 2, 1), but is not limited thereto.
- the filtering may be performed adaptively based on at least one of the intra prediction mode of the current block or the size of the transform block with respect to the current block. For example, if the intra prediction mode of the current block is a DC mode, a vertical mode, or a horizontal mode, filtering may not be performed. If the size of the transform block is NxM, filtering may not be performed. Where N and M may be the same or different values, and may be any of 4, 8, 16, or more. In one example, if the size of the transform block is 4x4, filtering may not be performed. Alternatively, filtering may be selectively performed based on the difference between the intraprediction mode of the current block and the vertical mode (or horizontal mode) and the comparison result between the pre-defined thresholds. For example, the filtering can be performed only when the difference between the intra-prediction mode and the vertical mode of the current block is larger than the threshold value.
- the threshold value may be defined according to the size of the transform block as shown in Table 2.
- the intra-filter may be determined as any one of a plurality of intra-filter candidates predefined in the image encoder / decoder. For this purpose, a separate index that specifies the intra-filter of the current block among the plurality of intra-filter candidates may be signaled. Alternatively, the intra-filter may be determined based on at least one of the size / shape of the current block, the size / shape of the transform block, information on the strength of the filter, or variation of neighboring samples.
- Intra prediction of the current block may be performed using a plurality of reference sample lines. As an example, it may be performed using two or more reference sample lines.
- Whether intraprediction is performed using a plurality of reference sample lines can be adaptively determined according to the size, type, or intra prediction mode of the current block.
- the intra prediction mode of the current block is a non-directional intra prediction mode or an intra prediction mode in a specific direction
- performing intra prediction using a plurality of reference sample lines may be restricted.
- the specific direction may include a vertical direction, a horizontal direction, or a diagonal direction.
- intraprediction can be performed using an intra prediction mode of a current block and reference samples (S1020).
- the prediction sample of the current block can be obtained using the intra prediction mode determined in S1000 and the reference sample derived in S1010.
- a prediction sample may be obtained based on a weighted sum of reference samples belonging to different reference sample lines.
- a prediction sample may be derived based on a weighted sum of a first reference sample belonging to a first reference sample line and a second reference sample belonging to a second reference sample line.
- the weights applied to the first reference sample and the second reference sample may have the same value or different values depending on the distance from the sample to be predicted. For example, a higher weight may be given to the first reference sample and the second reference sample that are closer to the predicted sample.
- the correction process to be described later is not limited to be applied only to intra prediction samples, and can also be applied to inter prediction samples or restoration samples.
- FIG. 11 illustrates a method of correcting a prediction sample of a current block based on difference information of neighboring samples, according to an embodiment of the present invention.
- the prediction samples of the current block can be corrected based on the difference information of the plurality of neighboring samples with respect to the current block.
- the correction may be performed for all prediction samples belonging to the current block or only for prediction samples belonging to a certain partial area.
- Some areas may be one row / column or a plurality of rows / columns, which may be pre-set areas for correction in the image encoder / decoder.
- correction may be performed on a plurality of rows / columns from one row / column or boundary of the current block located at the boundary of the current block.
- some areas may be variably determined based on at least one of the size / shape of the current block or the intra prediction mode.
- the surrounding samples may belong to at least one of the top, left, and surrounding blocks located in the upper left corner of the current block.
- the number of surrounding samples used for correction may be 2, 3, 4, or more.
- the positions of the neighboring samples may be variably determined according to the positions of the prediction samples to be corrected in the current block. Alternatively, some of the surrounding samples may have a fixed position irrespective of the position of the prediction sample to be corrected, and the remaining may have a variable position according to the position of the prediction sample to be corrected.
- the difference information of neighboring samples may mean a difference sample between neighboring samples or a value obtained by scaling the difference sample by a predetermined constant value (e.g., 1, 2, 3, etc.).
- a predetermined constant value e.g. 1, 2, 3, etc.
- the predetermined constant value may be determined in consideration of the position of the predicted sample to be corrected, the position of the column or row to which the predicted sample to be corrected belongs, the position of the predicted sample in the column or row, and the like.
- the intra prediction mode of the current block is the vertical mode
- a difference sample between the neighboring sample p (-1, y) adjacent to the left boundary of the current block and the upper left neighbor sample p (-1, -1) The final prediction sample can be obtained as shown in the following Equation (1).
- the intra prediction mode of the current block is the horizontal mode
- the difference sample between the neighboring sample p (x, -1) adjacent to the upper boundary of the current block and the upper left surround sample p (-1, -1) The final prediction sample can be obtained as shown in Equation (2).
- the intra prediction mode of the current block is the vertical mode
- a difference sample between the neighboring sample p (-1, y) adjacent to the left boundary of the current block and the upper left neighbor sample p (-1, -1) The final prediction sample can be obtained.
- the differential sample may be added to the predicted sample, the differential sample may be scaled to a predetermined constant value, and then added to the predicted sample.
- the predetermined constant value used for scaling may be determined differently depending on the column and / or row.
- the prediction samples can be corrected as shown in the following equations (3) and (4).
- the intra prediction mode of the current block is the horizontal mode
- the difference sample between the neighboring sample p (x, -1) adjacent to the upper boundary of the current block and the upper left surround sample p (-1, -1) A final prediction sample can be obtained, which is as described above in the vertical mode.
- the prediction samples can be corrected as shown in the following equations (5) and (6).
- the intra prediction of the current block can be performed based on the directionality of the directional prediction mode.
- Table 3 shows intraframe direction parameters (intraPredAng) from Mode 2 to Mode 34, which are the directional intra prediction modes shown in FIG.
- predModeIntra One 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 intraPredAng - 32 26 21 17 13 9 5 2 0 -2 -5 -9 -13 -17 -21 predModeIntra 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 intraPredAng -32 -26 -21 -17 -13 -9 -5 -2 0 2 5 9 13 17 21 26
- An intra direction parameter for a current block can be determined based on a lookup table defining a mapping relationship between a directional intra prediction mode and an intra direction parameter. Alternatively, based on the information signaled via the bitstream, an intra direction parameter for the current block may be determined.
- Intra prediction of a current block may be performed using at least one of a left reference sample or a top reference sample, depending on the directionality of the directional intra prediction mode.
- the upper reference sample includes reference samples (e.g., (-1, -1) to (2W-1, -) having y-axis coordinates smaller than the predicted sample (x, 0) included in the uppermost row in the current block. 1)), and the left reference sample indicates reference samples having an x-axis coordinate smaller than the predicted sample (0, y) contained in the leftmost column in the current block (for example, -1, 2H-1)).
- the reference samples of the current block may be arranged in one dimension according to the directionality of the intra prediction mode. Specifically, when both the upper reference sample and the left reference sample are to be used in the intra prediction of the current block, it is possible to select reference samples of the respective prediction target samples, assuming that they are arranged in a line in the vertical or horizontal direction .
- a reference sample group P_ref_1D can be constructed.
- FIGS. 12 and 13 show a one-dimensional reference sample group in which reference samples are rearranged in a line.
- Whether the reference samples are rearranged in the vertical direction or in the horizontal direction can be determined according to the direction of the intra prediction mode. For example, when the intra prediction mode index is between 11 and 18, the top reference samples of the current block are rotated counterclockwise, as in the example shown in FIG. 12, so that the left reference samples and the top reference samples are rotated in the vertical direction To generate a one-dimensional reference sample group.
- the left reference samples of the current block are rotated clockwise to the left reference samples so that the left reference samples and the upper reference samples A one-dimensional reference sample group arranged in the horizontal direction can be generated.
- intra prediction for the current block may be performed using only left reference samples or top reference samples.
- one-dimensional reference sample groups can be generated by using left reference samples or top reference samples only for intra prediction modes in which the intra direction parameter is not negative.
- a reference sample decision index iIdx may be derived for specifying at least one reference sample used to predict the prediction sample.
- a weight-related parameter i fact which is used to determine weights applied to each reference sample, can be derived based on the intra directional parameters.
- equations (7) and (8) show an example of deriving a reference sample decision index and a weight-related parameter.
- iIdx and i fact are variably determined according to the slope of the directional intra prediction mode.
- the reference sample specified by iIdx may correspond to an integer pel.
- At least one reference sample can be specified for each sample to be predicted.
- the position of the reference sample in the one-dimensional reference sample group for predicting the current in-block prediction target sample can be specified.
- a prediction image i.e., prediction sample
- a prediction image for the prediction target sample is generated based on the reference sample specified by the intra prediction mode of the current block .
- Equation (8) reproduces the reference sample P_ref_1D (x + iIdx + 1) in the one-dimensional reference sample group specified by the intra-prediction mode of the current block, As shown in FIG.
- prediction of the prediction target sample may be performed using a plurality of reference samples.
- linear interpolation or tap filter-based interpolation of neighboring reference samples neighboring the reference sample at a predetermined position and the reference sample at a predetermined position is performed, Can be performed.
- the number of taps of the interpolation filter may be a natural number of 2 or more.
- the tap number of the tap filter may be an integer of 2, 3, 4, 5, 6, or more.
- the angular line of the intra-prediction mode angle or the slope of the intra-prediction mode does not exceed the integer pel in the one-dimensional reference sample group (i.e., the reference sample of the integer position)
- a reference sample placed on the angle line and a reference sample adjacent to the left / right or upper / lower side of the reference sample are interpolated to generate a prediction image for the prediction target sample.
- the following equation (9) shows an example of interpolating two or more reference samples to generate a prediction sample P (x, y) for a sample to be predicted.
- the coefficients of the interpolation filter may be determined based on the weighting related parameter i fact . In one example, the coefficients of the interpolation filter may be determined based on the distance between the fractional pel located on the angular line and the integer pel (i.e., the integer position of each reference sample).
- Equation (10) illustrates a case where the tap number of the tap filter is four.
- a sample at a position that does not correspond to the left reference sample or the top reference sample may be replaced with the nearest reference sample at that location.
- the sample may be replaced with the reference sample at the position of P_ref_1D (x + idx).
- the sample at the P_ref_1D (x + iIdx + 2) position does not correspond to the upper reference sample, the sample may be replaced with a reference sample at the P_ref_1D (x + iIdx + 1) position.
- the multi-tap filter can be applied to a plurality of reference samples arranged in a line along the horizontal or vertical direction.
- the multi-tap filter may be applied to a predetermined polygonal shape such as a rectangle.
- the type to which the multi-tap filter is applied can be variably determined according to the size, type, or intra prediction mode of the current block.
- interpolation of a reference sample using directionality of intra prediction to generate a prediction sample can be referred to as an intra prediction sample interpolation technique.
- a tap filter having a large number of taps does not always guarantee improvement in prediction accuracy.
- the size of the current block is asymmetric coding unit which is significantly larger than the other one with a height or width such as 2x16, or a block as small as 4x4
- using a tap filter of four or more taps may over- Results.
- the type of the tap filter can be adaptively determined according to the size, type, or intra prediction mode of the current block.
- the type of the tap filter can be divided by at least one of the number of taps, the filter coefficient, the filter strength (strong / weak), and the filtering direction.
- the number of filter taps or the filter coefficient may be variably determined depending on the filter strength.
- the application direction of the tap filter such as the horizontal direction interpolation, the vertical direction interpolation, or the horizontal and vertical direction interpolation can be determined.
- the application direction of the tap filter can be variably set in units of lines (rows or columns) or samples in the current block.
- the type of the tap filter to be used can be determined based on the width or the height of the current block. For example, if at least one of the width or height of the current block is smaller than the predefined value, the intra prediction sample interpolation technique may be performed using a 2-tap filter instead of the 4-tap filter. On the other hand, if both the width and the height of the current block are equal to or greater than the predefined values, the intra prediction sample interpolation technique can be performed using a 4-tap filter.
- the predefined value may represent a value such as 4, 8, or 16.
- the type of the tap filter to be used can be determined according to whether the width and height of the current block are the same value. For example, if the width and height of the current block are different values, an intra prediction sample interpolation technique may be performed using a 2-tap filter instead of a 4-tap filter. On the other hand, if the width and height of the current block have the same value, the intra prediction sample interpolation technique can be performed using a 4-tap filter.
- the type of the tap filter to be used can be determined according to the ratio of the width and height of the current block. For example, if the ratio of the width (w) to the height (h) of the current block (ie, w / h or h / w) is less than the predefined threshold, A sample interpolation technique can be performed. On the other hand, if the ratio of the width to the height of the current block is equal to or greater than the predefined threshold value, the intra prediction sample interpolation technique can be performed using a 4-tap filter.
- the type of the tap filter may be determined according to the intra prediction mode, shape, or size of the current block. For example, if the current block is a 2x16 type coding unit and the intra prediction mode of the current block is in the intra prediction mode, the intra prediction sample interpolation technique can be performed using a tap filter with a tap number n . On the other hand, when the current block is a 2x16 type coding unit and the intra prediction mode of the current block is in the intra prediction mode, the intra prediction sample interpolation technique can be performed using a tap filter with the number of taps.
- the intra prediction sample interpolation technique can be performed using a tap filter having a tap number n.
- the intra prediction sample interpolation technique can be performed using a tap filter with the number of taps.
- the horizontal direction range may represent a predetermined range including the intra-prediction mode in the horizontal direction
- the vertical direction range may represent a predetermined range including the intra-prediction mode in the vertical direction. For example, based on the 35 intra prediction modes, the horizontal direction range indicates the intra prediction mode from mode 11 to mode 18, and the vertical direction range indicates the intra prediction mode from mode 19 to mode 27.
- n and m are constants greater than 0, and n and m may have different values.
- the planar prediction can be performed by weighted prediction of the first predicted image and the second predicted image after generating the first predicted image in the horizontal direction and the second predicted image in the vertical direction using the reference samples.
- the first predicted image may be generated based on the reference samples adjacent to the current block lying in the horizontal direction of the predicted sample.
- the first predicted image may be generated based on the weighted sum of the reference samples lying in the horizontal direction of the predicted sample.
- the weight applied to each reference sample may be determined in consideration of the distance to the predicted sample or the size of the current block.
- the samples located in the horizontal direction are the left reference sample (i.e., the left reference sample having the same y coordinate as the prediction target sample) and the right reference sample (i.e., the same y coordinate as the prediction target sample) Lt; / RTI > right reference sample).
- the right reference sample can be derived from the top reference sample of the current block.
- the right reference sample may be derived by copying the values of the top reference samples lying on the same vertical line, or may be derived as a weighted sum or average value of the plurality of top reference samples.
- the upper reference sample lying on the same vertical line as the right reference sample may include a reference sample adjacent to the upper right corner of the current block (i.e., upper reference sample having the same x coordinate as the right reference sample).
- the position of the upper reference sample used to derive the right reference sample may be determined differently, depending on the type, size, or position of the current sample in the current block.
- the second predicted image may be generated based on the reference samples adjacent to the current block lying in the vertical direction of the predicted sample.
- the second predicted image may be generated based on the weighted sum of the reference samples lying in the vertical direction of the predicted sample.
- the weight applied to each reference sample may be determined in consideration of the distance to the predicted sample or the size of the current block.
- the samples located in the vertical direction are the same as the upper reference sample (that is, the upper reference sample having the same x coordinate as the prediction target sample) and the lower reference sample (i.e., the same x coordinate as the prediction target sample) Bottom reference sample).
- the lower reference sample can be derived from the left reference sample of the current block.
- the lower reference sample may be derived by copying the value of the left reference sample lying on the same horizontal line, or may be derived by a weighted sum or average value of a plurality of left reference samples.
- the left reference sample placed on the same horizontal line as the lower reference sample may include a reference sample adjacent to the lower left corner of the current block (i.e., a left reference sample having the same y coordinate as the lower reference sample).
- the position of the top reference sample used to derive the bottom reference sample may be determined differently, depending on the size, shape, or position of the current sample in the current block
- At least one of the right reference sample or the bottom reference sample may be derived using both the left reference sample and the upper reference sample.
- the weighted sum or average of the upper reference sample and the left reference sample of the current block may be determined as the value of at least one of the right reference sample or the lower reference sample.
- the lower-left reference sample and the upper-right reference sample are used to derive the lower-right reference sample adjacent to the lower right corner of the current block, and then the lower-right reference sample and the lower- You may.
- the lower right reference sample may be derived based on the weighted sum or average of the upper right reference sample and the left reference sample of the current block.
- the weights applied to the upper right reference sample and the left reference sample may have the same value or may be determined based on the width / height of the current block.
- the coefficients of the interpolation filter can be determined based on the size of the current block, the shape of the current block, the distance to the lower right reference sample, the distance to the upper right reference sample, or the distance to the lower left reference sample.
- a reference sample at a fixed position may be used, or a reference sample adaptively selected according to the position of the sample to be predicted.
- the right reference sample may be derived using the upper right reference sample regardless of the position of the sample to be predicted, or a left reference sample (e.g., having the same y-axis coordinate as the prediction sample) Reference sample) or an upper reference sample (e.g., a reference sample having the same x-axis coordinate as the predicted sample).
- the lower reference sample may be derived using the lower left reference sample regardless of the position of the sample to be predicted, or a left reference sample (e.g., a reference having the same y-axis coordinate as the prediction sample) Sample) or a top reference sample (e.g., a reference sample having the same x-axis coordinate as the predicted sample).
- a left reference sample e.g., a reference having the same y-axis coordinate as the prediction sample
- Sample e.g., a reference sample having the same x-axis coordinate as the predicted sample
- FIG. 14 is a diagram showing an example of deriving a right reference sample or a lower reference sample using a plurality of reference samples. It is assumed that the current block is a block having a size of WxH.
- the weights applied to the upper right reference sample and the left reference sample may be set the same or may be determined based on the width (W) and height (H) of the current block. For example, if the current block is non-square, the weight applied to the upper right reference sample may be determined as W / (W + H) and the weight applied to the lower left reference sample may be determined as H / (W + have.
- a right reference sample P (W, y) for the target prediction sample (x, y) is generated based on the lower right reference sample P (W, H) and the upper right reference sample P .
- the right prediction sample P (W, y) can be calculated as a weighted sum or an average value of the lower right reference sample P (W, H) and the upper right reference sample P (W, -1).
- the lower reference sample P (x, H) can be calculated as a weighted sum or mean value of the lower right reference sample P (W, H) and the left reference sample P (-1, H).
- the generated reference sample is used to calculate the first predicted sample P h (x, y) for the predicted sample and the second predicted sample P h It may generate a prediction sample P v (x, y).
- the first prediction sample P h (x, y) is generated based on the weighted sum of the left reference samples P (-1, y) and the right side reference sample P (W, y)
- the second prediction sample P v ( x, y) may be generated based on the weighted sum of the upper reference sample P (x, -1) and the lower reference sample P (x, H).
- FIGS. 15 and 16 are diagrams for explaining determination of a right reference sample and a bottom reference sample with respect to a non-square block, according to an embodiment of the present invention.
- the right reference sample is derived based on the upper right reference sample P (N / 2, -1) , And the lower left reference sample P (-1, N).
- the right-side reference sample and the right-side reference sample can be interpolated to derive the right-side reference sample.
- a lower reference sample may be derived based on the weighted sum or average of P (N / 2, -1) and P (-1, N) (N / 2, N), the lower right reference sample and the lower left reference sample can be interpolated to derive the lower reference sample.
- the right reference sample is derived based on the upper right reference sample P (N, , And the lower left reference sample P (-1, N / 2).
- a right reference sample may be derived based on a weighted sum or average of P (N, -1) and P (-1, N / 2) (N, N / 2) on the basis of the right lower reference sample P (N, N / 2) and interpolating the lower right reference sample and the upper right reference sample.
- a lower reference sample may be derived based on the weighted sum or average of P (N, -1) and P (-1, N / 2) (N, N / 2) on the basis of the lower right reference sample P (N, N / 2) and interpolating the lower right reference sample and the lower left reference sample.
- the lower reference sample is the lower left reference sample of the current block lying on the same horizontal line as the lower reference sample or the lower right reference sample of the upper right reference sample of the current block lying on the same vertical line as the right reference sample
- the right reference sample is generated based on at least one of the upper right reference sample of the current block lying on the same vertical line as the right reference sample or the lower left reference sample of the current block lying on the same horizontal line as the lower reference sample
- a right reference sample may be derived or a left reference sample may be derived based on at least one of a top interrupted reference sample or a left interrupted reference sample.
- the lower interrupted sample and the lower left reference sample may be used to derive the lower interrupted sample, and then the lower samples may be generated by interpolation or extrapolation of the lower interrupted sample and the lower left sample.
- the left interrupted sample and the upper right sample can be used to derive the right interrupted sample, and then the right interrupted sample and the right upper sample can be interpolated or extrapolated to generate the lower samples.
- the positions of the reference samples used to generate the first predicted image and the second predicted image may be determined differently depending on the size or shape of the current block. For example, depending on the size or shape of the current block, the position of the upper reference sample or the left reference sample used to derive the right reference sample or the lower reference sample may be determined differently.
- the right reference sample is derived based on the upper right reference sample P (N, -1) while the lower reference sample is derived from the lower left reference sample P (-1 , ≪ / RTI > N).
- the current block is a square block of NxN size
- the right reference sample and the bottom reference sample may be derived based on the basis.
- the current block is an Nx2 / N size non-square block, based on the upper stop reference sample P (N / 2, -1) and the lower left reference sample P (-1, N / 2) It is possible to derive a reference sample P (N / 2, N / 2) and derive lower reference samples based on the derived lower reference interrupted sample.
- lower reference samples may be derived by interpolation or extrapolation of the lower interrupted reference sample and the lower left reference sample.
- the reference samples P (N / 2, N / 2) may be derived and the right reference samples derived based on the derived right interrupted reference samples.
- the right reference samples can be derived by interpolating or extrapolating the right interrupted reference sample and the right top reference sample.
- the first predicted image may be calculated based on a weighted prediction of reference samples lying on the same horizontal line as the predicted sample. Also, the second predicted image can be calculated based on the weighted prediction of the reference samples lying on the same vertical line as the predicted sample.
- the first predicted image or the second predicted image may be generated using an average value, a minimum value, a maximum value, or the like of the reference samples.
- a method of deriving a reference sample differently or a method of deriving a first predicted image or a second predicted image according to whether or not a prediction target sample is included in a predetermined area in a current block Can be set differently. Specifically, depending on the position of the sample to be predicted, the number of reference samples used for using the right or bottom reference sample or the position of the reference sample may be determined differently, or the position of the reference sample used to derive the first predicted image or the second predicted image may be different The weights, the number of reference samples, and the like can be set differently.
- the right reference sample used when generating the first prediction image of the prediction target samples included in the predetermined region is derived using only the upper reference sample, and the first prediction image of the prediction target samples included outside the predetermined region Can be derived based on the weighted sum or average of the upper reference sample and the left reference sample.
- the right reference sample of the prediction target sample at the (x, y) position included in the predetermined area in the current block is P (N / 2, -1).
- the right reference sample of the prediction target sample included in the predetermined area may be generated by copying the value of the reference sample P (N / 2, -1).
- the right reference sample of the predicted sample at the position (x ', y') included in the current block outside the predetermined region is a weighted sum or mean value of P (N / 2, -1) .
- the lower reference sample of the prediction target sample at the (x, y) position included in the predetermined area in the current block is P (-1, N / 2).
- the lower reference sample of the prediction target sample included in the predetermined area may be generated by copying the value of the P (-1, N / 2) reference sample.
- the lower reference sample of the predicted sample at the (x ', y') position included outside the predetermined area in the current block is a weighted sum or mean value of P (N, -1) and P .
- a lower object reference sample of a prediction object included outside a predetermined region is a lower right reference sample P (N, N / 2) that is derived based on P (N, -1) and P ) And the lower left reference sample P (-1, N / 2).
- the prediction target samples included in the predetermined region may generate the first prediction image or the second prediction image based on the weighted sum of the reference samples, and the prediction target samples outside the predetermined region may be the average value of the reference samples,
- the first predictive image or the second predictive image may be generated with a maximum value, or a first predictive image or a second predictive image may be generated using only one of the predefined positions of the reference samples.
- the predicted sample at the (x, y) position included in the predetermined area in the current block is P (N (N / 2, y) or the left reference sample at the position P (-1, y) from the right reference sample P (N / 2, -1).
- the predicted sample at the (x, y) position included in the predetermined area in the current block is P (-1 (X, N / 2) or P (x, -1) derived from the lower reference sample P (x, N / 2).
- the predetermined region may be at least one of the sample lines adjacent to the boundary of the current block or the remaining region excluding the sample lines.
- the boundary of the current block may include at least one of a left boundary, a right boundary, an upper boundary, or a lower boundary.
- the number or position of the boundaries used to define the predetermined area may be set differently depending on the type of the current block.
- the predetermined area may be in the form of a block in contact with one corner of the current block. At this time, the size and shape of the predetermined area may be determined based on at least one of the size or shape of the current block.
- the final predicted image may be derived based on the weighted sum, average, minimum value, or maximum value of the first predicted image and the second predicted image.
- equation (11) shows an example of generating a final predicted image P based on the weighted sum of the first predicted image P h and the second predicted image P v .
- the prediction weight w may be different according to the shape, size, or position of a prediction object sample, and the like.
- the prediction weight w can be derived in consideration of the width of the current block, the height of the current block, or the width-height ratio. If the current block is a non-square block having a width greater than the height, w may be set so that more weight is given to the first prediction image. On the other hand, if the current block is a non-square block whose height is greater than the width, w may be set so that more weight is given to the second predicted image.
- the prediction weight w may have a value of 1/2.
- the prediction weight w is set to 1/4, and the current block is a non- , Nx (N / 2)), the prediction weight w can be set to 3/4.
- Intra prediction can also be performed using reference samples other than the left reference sample and the upper reference sample in the non-planar mode as well as the DC mode or the directional intra prediction mode.
- the left reference sample and the upper reference sample are referred to as a first reference sample
- the reference samples excluding the left reference sample and the upper reference sample are referred to as a second reference sample.
- the second reference sample may include a right reference sample and / or a bottom reference sample of the current block.
- the lower reference sample means reference samples having y-axis coordinates larger than the prediction target sample of the lowermost row in the current block
- the right reference sample has x-axis coordinates larger than the prediction target sample in the rightmost column in the current block Reference samples. ≪ / RTI >
- Whether intraprediction is to be performed using the second reference sample can be determined based on at least one of the size of the current block, the type, the position of the intra prediction mode, or the sample to be predicted. In one example, it may be determined whether intra prediction using the second reference sample is to be performed based on whether the intra prediction mode of the current block is a vertical mode, a horizontal mode, or a diagonal mode. Alternatively, intraprediction is performed using a second reference sample for a prediction target sample included in a predetermined area in a current block, while for a prediction target sample not included in a predetermined area in the current block, a first reference sample is used May be set to perform intra prediction.
- information indicating whether or not the second reference sample is used may be signaled through the bit stream.
- the information may be a flag of 1 bit, an index used to determine the intra prediction mode of the current block, or the like.
- the second reference sample may be generated based on the first reference sample.
- the order of the first reference samples may be altered to construct second reference samples, or a second reference sample may be derived using a first reference sample at a particular location.
- 17 is a diagram for explaining an example of deriving a second reference sample using a first reference sample.
- the lower right reference sample P (W, H) derived based on the upper right reference sample r (W, -1) and the lower left reference sample r (-1, H) of the current block can be derived.
- the lower right reference sample can be derived through a weighted sum or average operation of the upper right reference sample and the lower left reference sample.
- equation (12) shows an example of deriving the lower right reference sample.
- the lower right reference sample can be calculated based on the weighted sum between the upper right reference sample and the lower left reference sample.
- the weights applied to the upper right reference sample and the lower left reference sample can be determined according to the width and height of the current block. For example, if the current block is square, the same weight is applied to the upper right reference sample and the lower left reference sample, whereas different weights may be applied to the upper right reference sample and the lower left reference sample when the current block is non-square.
- the weight setting method shown in Equation (12) is merely an example of the present invention, and the present invention is not limited thereto.
- at least one of the current block size, type, intra prediction mode, availability of reference samples, availability of neighboring blocks, whether neighboring blocks are coded in intra prediction mode, A weight may be determined based on the weight.
- the right reference sample can be derived based on the right top reference sample and the bottom right reference sample.
- the right reference sample can be obtained by interpolating the right top reference sample and the bottom right reference sample.
- the following equation (13) shows an example of deriving the right reference sample.
- the right reference sample r (W, y) (where y is an integer between 0 and the CU height (cu_height)) is the upper right reference sample r Can be obtained by weighted prediction of the reference samples P (W, H).
- the weights applied to the upper right reference sample and the lower right reference sample may be determined based on at least one of the width, height, or position of the right reference sample of the current block.
- the weight of (H-1-y) / H is applied to the upper right reference sample while the weight of (y + 1) / H is applied to the lower right reference sample .
- the weight setting method shown in Equation (13) is only an example of the present invention, and the present invention is not limited thereto.
- at least one of the current block size, type, intra prediction mode, availability of reference samples, availability of neighboring blocks, whether neighboring blocks are coded in intra prediction mode, A weight may be determined based on the weight.
- the lower reference sample can be derived based on the lower left reference sample and the lower right reference sample.
- the lower reference sample can be obtained by interpolating the lower left reference sample and the lower right reference sample. Equation (14) below shows an example of deriving the lower reference sample.
- Equation 14 As it is shown in Equation 14, and the lower reference sample P b (x, H) (wherein, x is an integer between 0 and CU width (cu_width)), see lower-left sample r (-1, H) and lower-right Can be obtained by weighted prediction of the reference samples P (W, H).
- the weights applied to the lower left reference sample and the lower right reference sample may be determined based on at least one of the width, height, or position of the lower reference sample of the current block. For example, as in the example shown in Equation 14, the weight of (W-1-x) / W is applied to the lower left reference sample while the weight of (x + 1) / H is applied to the lower right reference sample .
- the weight setting method shown in Equation (14) is merely an example of the present invention, and the present invention is not limited thereto.
- at least one of the size of the current block, the type, the intra prediction mode, the availability of the reference sample, the availability of neighboring blocks, whether the neighboring blocks are coded in the intra prediction mode, A weight may be determined based on the weight.
- the right reference sample and the bottom reference sample may be derived based on the example described above with reference to Figs. 15 and 16. Fig.
- the first reference samples in a fixed position can be used to derive a second reference sample, such as a right reference sample and a bottom reference sample.
- a second reference sample may be derived using a first reference sample at a different location from the top right reference sample and / or the bottom left reference sample.
- a right reference sample and a bottom reference sample may be derived using a first reference sample, such as a top interrupted reference sample of the current block or a left interrupted sample of the current block.
- a first reference sample may be determined that is used to derive the second reference sample.
- the right reference sample and / or the bottom reference sample may be derived based on the left reference sample and / or the top reference sample specified by the intra prediction mode direction of the current block.
- a plurality of left reference samples and / or a plurality of top reference samples may be used to determine the second reference sample.
- at least one of the right reference sample, the bottom reference sample, or the bottom right reference sample is generated based on a weighted sum, a mean value, a maximum value, or a minimum value of a plurality of left reference samples or a weighted sum of a plurality of upper reference samples, , A maximum value, or a minimum value.
- the first reference sample may be copied to generate a second reference sample.
- the first reference sample used to generate the second reference sample may have a fixed position and may be adaptively determined according to the size, type, intra prediction mode, or position of the second reference sample of the current block.
- the lower reference sample may be derived up to the same vertical line as the uppermost right reference sample r (2W-1, -1), or the right reference sample up to the same horizontal line as the lower left reference sample r (-1, 2H- Lt; / RTI >
- the lower reference sample having x coordinate larger than W is generated by extrapolating the lower left reference sample and the lower right reference sample, or the right lower reference sample P (W, H) and the lower right lower reference sample P (2W- H) < / RTI >
- the rightmost bottom reference sample may be generated by copying the right top reference sample r (2W-1, -1) or may be generated by a weighted sum operation between the right top reference sample and the bottom left reference sample.
- the right reference sample having a y coordinate larger than H is generated by extrapolating the upper right reference sample and the lower right reference sample or the lower right reference sample P (W, H) and the lower right reference sample P (W, 2H-1) Can be generated by interpolation.
- the lowermost right reference sample may be generated by copying the lowermost left reference sample r (-1, 2H-1) or may be generated through a weighted sum operation between the lowermost left reference sample and the upper left reference sample.
- the first reference samples may be arranged in one dimension to generate a first one-dimensional reference sample group, and the second reference samples may be arranged in a one-dimensional manner to generate a second one-dimensional reference sample group.
- 18 is a diagram illustrating reference samples constituting a one-dimensional reference sample group.
- the first one-dimensional reference sample group may be composed of left reference samples and top reference samples of the current block.
- the second one-dimensional reference sample group includes the right reference samples and the bottom reference samples of the current block as well as some left reference samples and some top reference samples . ≪ / RTI >
- left-side reference samples having the y-axis coordinate larger than the left-side reference sample r (-1, H) and the lower-left reference sample among the left reference samples can be both included in the first one-dimensional reference sample group and the second one- have.
- the upper right reference sample r (W, -1) among the upper reference samples and the upper reference samples having larger x axis coordinates than the upper right reference sample can be both included in the first one-dimensional reference sample group and the second one-dimensional reference sample group have.
- the first one-dimensional reference sample group may include only the first first reference samples, or only the second one- .
- the arrangement order of the reference samples constituting the one-dimensional reference sample group as well as the configuration of the one-dimensional reference sample group can be variably determined based on at least one of the size, type, or intra-prediction mode of the current block.
- a reference sample group including a left reference sample and a top reference sample of a current block is referred to as a first reference sample group (e.g., a first one-dimensional reference sample group)
- the reference sample group including the right reference sample and the bottom reference sample of the current block will be referred to as a second reference sample group (e.g., a second one-dimensional reference sample group).
- the first reference sample group and the second reference sample group may be classified according to whether the right reference sample and the lower reference sample are included.
- a reference sample selected from a first reference sample group is referred to as a first basic reference sample
- a reference sample selected from a second reference sample group is referred to as a second fundamental reference sample
- Intra prediction of the current block can be performed using at least one of the first reference sample group or the second reference sample group.
- the predictive value of the current in-block predicted sample may be obtained based on at least one of a first baseline reference sample selected in the first reference sample group or a second baseline reference sample selected in the second reference sample group.
- the first basic reference sample and / or the second basic reference sample may be determined based on at least one of the type, size, or intra prediction mode of the current block.
- the intra prediction mode of the current block is determined, the first basic reference sample for the prediction object sample is specified according to the determined intra prediction mode direction, and the first basic reference sample for the predicted sample is specified according to the determined reverse direction of the intra prediction mode. 2 Basic reference sample can be specified.
- the position of the second baseline reference sample may be determined based on the position of the first baseline reference sample, or the position of the first baseline reference sample may be determined based on the position of the second baseline reference sample.
- the offset may have a fixed value and may be determined adaptively according to the size, type, or intra prediction mode of the current block.
- the position of the first baseline reference sample and / or the second baseline reference sample may be determined based on the position of the predicted sample. For example, a first basic reference sample and / or a second basic reference sample having the same x-coordinate or the same y-coordinate as the prediction target sample and / or a second basic reference sample having a value obtained by adding an offset to the x- 1 < / RTI > baseline reference sample and / or a second baseline reference sample.
- the offset may have a fixed value and may be determined adaptively according to the size, type, or intra prediction mode of the current block.
- the predictive value of the predictive sample may be generated based on at least one of a first predictive image based on the first baseline reference sample or a second predictive image based on the second baseline reference sample.
- the first predicted image can be generated based on the equations (8) to (10) described above.
- the second predicted image may be generated by interpolating or copying a second baseline reference sample specified according to the slope of the intra prediction mode of the current block.
- Equation (15) is an example of deriving a second predicted image by copying a second baseline reference sample.
- Equation (15) P 2 (x, y) denotes a second predicted image, and P_2nd_1D (x + iIdx + 1 + f) denotes a second baseline reference sample.
- a plurality of second basic reference samples may be interpolated to generate a second prediction image.
- a second reference and the second predicted image can be obtained by interpolating the samples.
- equation (16) shows an example of obtaining a second predicted image by interpolating second reference samples.
- the coefficients of the interpolation filter may be determined based on the weighting related parameter i fact . In one example, the coefficients of the interpolation filter may be determined based on the distance between the fractional pel located on the angular line and the integer pel (i.e., the integer position of each reference sample).
- an interpolation filter having a tap number of 2 is illustrated in the expression (16), an interpolation filter having a number of taps greater than 2 may be used.
- the final predicted image of the predicted sample may be obtained based on at least one of the first predicted image and the second predicted image.
- the first predicted image may be determined as the final predicted image of the predicted sample or the second predicted image may be determined as the final predicted image of the predicted sample.
- the final predicted image of the predicted sample may be determined based on the weighted sum or average operation of the first predicted image and the second predicted image. Equation (17) shows an example of obtaining the final predicted sample based on the weighted operation of the first predicted image and the second predicted image.
- Equation 17 P 1 (x, y) represents a first predicted image and P 2 (x, y) represents a second predicted image.
- w (x, y) represents a weight given to the first predicted image.
- the weights assigned to the first predicted image and the second predicted image may be determined based on at least one of a position of a predictive sample, a size of a current block, a shape, or an intra prediction mode.
- Equation (18) shows an example in which a weight is determined according to the size of a current block and the position of a sample to be predicted.
- W and H denote the width and height of the current block, respectively, and (x, y) denotes the coordinates of the predicted sample.
- the weight to be assigned to the first predictive image is set to be larger as the predictive sample is closer to the upper left corner of the current block, and as the predictive sample is closer to the lower right corner of the current block
- the weight value assigned to the second predicted image can be set large.
- weights may be derived from neighboring blocks of the current block.
- the neighboring block of the current block may include at least one of a top neighboring block, a left neighboring block, or a neighboring block adjacent to a corner (e.g., a left upper neighbor block, a right upper neighbor block, or a lower left neighbor block) have.
- information for determining a weight may be signaled via a bitstream.
- the information may represent a weight value applied to the first predicted image or the second predicted image, or may represent a weight difference value between the current block and the neighboring block.
- acquiring the final predicted image through weighted sum calculation between the first predicted image and the second predicted image can be referred to as bi-directional intra prediction.
- Bidirectional intra prediction can be applied only to a partial area within the current block.
- the area to which the bidirectional intra prediction is applied may be predefined in the encoder and the decoder.
- bidirectional intra prediction can be applied to a predetermined size (e.g., 4x4) block adjacent to the lower right corner in the current block.
- an area to which bidirectional intra prediction is adaptively applied may be determined according to the size, type, or intra prediction mode of the current block.
- information for determining a region to which bidirectional intra prediction is applied may be signaled through a bitstream.
- FIG. 19 shows an example of a region to which bi-directional intra prediction is applied.
- the first predicted image and the second predicted image are weighted predicted to obtain the final predicted sample.
- the first prediction image or the second prediction image can be determined as the final prediction sample.
- bi-directional intra prediction is performed using the first basic reference sample selected in the first sample group and the second basic reference sample selected in the second sample group. Unlike the described example, it is also possible to perform a bidirectional intra prediction by selecting a plurality of reference samples in the first sample group, or to perform a bidirectional intra prediction by selecting a plurality of reference samples in the second sample group. For example, when the intra prediction mode of the current block is the right upper diagonal direction or the lower left diagonal direction, a bidirectional intra prediction can be performed by selecting the upper reference sample and the left reference sample among the first sample group. That is, the first reference image obtained based on the upper reference sample and the second reference image acquired based on the lower reference sample may be weighted predicted to obtain the final predicted sample of the current block.
- a right reference sample and a lower reference sample among the second sample groups may be selected to perform bi-directional intra prediction.
- Bidirectional intra prediction can be defined as an independent intra prediction mode.
- a total of 2N + 2 intra prediction modes can be defined by defining N bidirectional intra prediction modes corresponding to N directional prediction modes and N directional prediction modes.
- a bidirectional intra-prediction mode is added to the intra-prediction mode shown in Fig. 8, so that a total of 68 intra-prediction modes (i.e., two non-directional intra-prediction modes, 33 directional intra- ) Can be defined.
- the intra prediction mode of the current block it may be determined whether to use the determined intra prediction mode to switch to the bidirectional prediction mode. For example, if the intra prediction mode of the current block is determined, information on whether to use the determined intra prediction mode in the bidirectional intra prediction mode can be decoded.
- the information may be a 1-bit flag (e.g., bi_intra_flag), but is not limited thereto.
- a value of bi_intra_flag of 0 indicates that directional intra prediction is performed, and a value of bi_intra_flag of 1 indicates that bi-directional intra prediction is performed. That is, when the value of bi_intra_flag is 0, the first predicted image is determined as the final predicted sample of the current block.
- bi_intra_flag is 1, the weighted predictions of the first predicted image and the second predicted image, Lt; / RTI >
- the candidate i.e., MPM candidate
- bi-directional intra prediction may be set to allow only 32x32 or more blocks. Accordingly, when the current block size is smaller than 32x32, bidirectional intra prediction is not applied, whereas when the current block size is 32x32 or more, bidirectional intra prediction can be applied.
- bi-directional intra prediction may be allowed only for square blocks, or bi-directional intra prediction may be allowed for non-regular blocks only.
- bi-directional intra prediction may be applied only in a certain directional intra prediction mode.
- FIG. 20 shows an example in which a directional prediction mode in which bi-directional intra prediction is allowed is identified and displayed.
- bidirectional intra prediction can be set so that only a partial intra prediction mode between the horizontal direction and the vertical direction is allowed.
- bidirectional intra prediction may be performed by default.
- the intra prediction mode within the range is selected, information to be parsed through the bitstream, Directional intra prediction mode based on at least one of the intra prediction modes.
- the intra prediction mode in which bi-directional intra prediction is allowed is not limited to the example shown in Fig.
- the intra prediction mode in which bi-directional intra prediction is allowed may be predefined in the encoder and decoder, and may be adaptively determined according to the size and / or type of the current block. Alternatively, information for determining an intra prediction mode in which bi-directional intra prediction is allowed may be signaled through the bit stream.
- 21 is a flowchart illustrating a method of intra prediction of a current block based on a bi-directional intra prediction mode according to the present invention.
- bi-directional intra prediction is applied to the current block (S2110). Whether bi-directional intra prediction is applied to the current block can be determined based on information to be parsed from the bit stream, the type, size, or intra prediction mode of the current block.
- the bidirectional intra-prediction is applied to the current block based on the size, shape, or information parsed from the bitstream (for example, bi_pred_flag) Can be determined.
- a reference sample of the current block can be derived (S2120).
- first reference samples adjacent to the left and top of the current block are derived, and if bi-directional intra prediction is applied to the current block, second reference samples adjacent to the right and bottom can be additionally derived (S2130).
- a first predicted image may be generated based on at least one basic reference sample among the first reference samples according to the intra prediction mode of the current block (S2140 ). In this case, the first predicted image may be determined as the final predicted sample of the current block.
- a second predicted image may be generated based on at least one of the second reference samples in addition to the first predicted image (S2150).
- the first baseline reference sample and the second baseline reference sample may be determined based on the direction of the intra-prediction mode and may be determined based on the size, shape, or position of another basic reference sample of the current block.
- the first predicted image and the second predicted image may be weighted predicted to obtain a final predicted sample of the current block.
- each of the components (for example, units, modules, etc.) constituting the block diagram may be implemented by a hardware device or software, and a plurality of components may be combined into one hardware device or software .
- the above-described embodiments may be implemented in the form of program instructions that may be executed through various computer components and recorded in a computer-readable recording medium.
- the computer-readable recording medium may include program commands, data files, data structures, and the like, alone or in combination.
- Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tape, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, media, and hardware devices specifically configured to store and execute program instructions such as ROM, RAM, flash memory, and the like.
- the hardware device may be configured to operate as one or more software modules for performing the processing according to the present invention, and vice versa.
- the present invention can be applied to an electronic device capable of encoding / decoding an image.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Physics & Mathematics (AREA)
- Discrete Mathematics (AREA)
- General Physics & Mathematics (AREA)
Abstract
Description
Intra_chroma_pred_mode[xCb][yCb] | IntraPredModeY[xCb][yCb] | ||||
0 | 26 | 10 | 1 | X(0<=X<=34) | |
0 | 34 | 0 | 0 | 0 | 0 |
1 | 26 | 34 | 26 | 26 | 26 |
2 | 10 | 10 | 34 | 10 | 10 |
3 | 1 | 1 | 1 | 34 | 1 |
4 | 0 | 26 | 10 | 1 | X |
8x8 transform | 16x16 transform | 32x32 transform | |
Threshold | 7 | 1 | 0 |
predModeIntra | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
intraPredAng | - | 32 | 26 | 21 | 17 | 13 | 9 | 5 | 2 | 0 | -2 | -5 | -9 | -13 | -17 | -21 |
predModeIntra | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
intraPredAng | -32 | -26 | -21 | -17 | -13 | -9 | -5 | -2 | 0 | 2 | 5 | 9 | 13 | 17 | 21 | 26 |
Claims (15)
- 현재 블록에 양방향 인트라 예측이 적용되는지 여부를 결정하는 단계;상기 현재 블록의 참조 샘플을 유도하는 단계; 및상기 현재 블록에 양방향 인트라 예측이 적용되는 경우, 상기 현재 블록의 인트라 예측 모드에 의해 특정되는 제1 참조 샘플 및 제2 참조 샘플을 기초로, 상기 현재 블록의 예측 샘플을 획득하는 단계를 포함하는, 영상 복호화 방법.
- 제1 항에 있어서,상기 제1 참조 샘플은 상기 현재 블록의 좌측 또는 상단 참조 샘플이고, 상기 제2 참조 샘플은, 상기 현재 블록의 우측 또는 하단 참조 샘플인 것을 특징으로 하는, 영상 복호화 방법.
- 제2 항에 있어서,상기 우측 참조 샘플은, 우측 하단 참조 샘플과 우측 상단 참조 샘플을 보간하여 생성되고, 상기 하단 참조 샘플은, 상기 우측 하단 참조 샘플과 좌측 하단 참조 샘플을 보간하여 생성되는 것을 특징으로 하는, 영상 복호화 방법.
- 제1 항에 있어서,상기 제1 참조 샘플은, 상기 현재 블록의 인트라 예측 모드를 정방향으로 적용함에 따라 선택되고, 상기 제2 참조 샘플은, 상기 현재 블록의 인트라 예측 모드를 역방향으로 적용함에 따라 선택되는 것을 특징으로 하는, 영상 복호화 방법.
- 제1 항에 있어서,상기 예측 샘플은, 상기 제1 참조 샘플을 기초로 획득되는 제1 예측 샘플 및 상기 제2 참조 샘플을 기초로 획득되는 제2 예측 샘플의 가중합 연산을 기초로 획득되는 것을 특징으로 하는, 영상 복호화 방법.
- 제5 항에 있어서,상기 제1 예측 샘플 및 상기 제2 예측 샘플 각각에 적용되는 가중치는, 예측 대상 샘플의 위치, 상기 현재 블록의 크기, 형태 또는 인트라 예측 모드 중 적어도 하나에 기초하여 결정되는 것을 특징으로 하는, 영상 복호화 방법.
- 제1 항에 있어서,상기 양방향 인트라 예측은 상기 현재 블록 내 소정 영역에 한하여 적용되는 것을 특징으로 하는, 영상 복호화 방법.
- 제1 항에 있어서,상기 현재 블록에 양방향 인트라 예측이 적용되는지 여부를 결정하는 단계는,상기 현재 블록의 인트라 예측 모드가 방향성 인트라 예측 모드인지 여부를 결정하는 단계; 및상기 방향성 인트라 예측 모드가 양방향 인트라 예측 모드로 사용되는지 여부를 나타내는 정보를 복호화하는 단계를 포함하는 것을 특징으로 하는, 영상 복호화 방법.
- 제1 항에 있어서,상기 현재 블록에 양방향 인트라 예측이 적용되는지 여부는, 상기 현재 블록에 이웃하는 주변 블록에 양방향 인트라 예측이 적용되는지 여부에 기초하여 결정되는 것을 특징으로 하는, 영상 복호화 방법.
- 제1 항에 있어서,상기 현재 블록의 인트라 예측 모드가 소정 범위 내의 방향성 인트라 예측 모드인 경우, 상기 현재 블록에 양방향 인트라 예측이 적용되는 것으로 결정되는 것을 특징으로 하는, 영상 복호화 방법.
- 현재 블록에 양방향 인트라 예측이 적용되는지 여부를 결정하는 단계;상기 현재 블록의 참조 샘플을 유도하는 단계; 및상기 현재 블록에 양방향 인트라 예측이 적용되는 경우, 상기 현재 블록의 인트라 예측 모드에 의해 특정되는 제1 참조 샘플 및 제2 참조 샘플을 기초로, 상기 현재 블록의 예측 샘플을 획득하는 단계를 포함하는, 영상 부호화 방법.
- 제11 항에 있어서,상기 제1 참조 샘플은, 상기 현재 블록의 인트라 예측 모드를 정방향으로 적용함에 따라 선택되고, 상기 제2 참조 샘플은, 상기 현재 블록의 인트라 예측 모드를 역방향으로 적용함에 따라 선택되는 것을 특징으로 하는, 영상 부호화 방법.
- 제11 항에 있어서,상기 예측 샘플은, 상기 제1 참조 샘플을 기초로 획득되는 제1 예측 샘플 및 상기 제2 참조 샘플을 기초로 획득되는 제2 예측 샘플의 가중합 연산을 기초로 획득되는 것을 특징으로 하는, 영상 부호화 방법.
- 현재 블록에 양방향 인트라 예측이 적용되는지 여부를 결정하고, 상기 현재 블록의 참조 샘플을 유도하고, 상기 현재 블록에 양방향 인트라 예측이 적용되는 경우, 상기 현재 블록의 인트라 예측 모드에 의해 특정되는 제1 참조 샘플 및 제2 참조 샘플을 기초로, 상기 현재 블록의 예측 샘플을 획득하는 인트라 예측부를 포함하는, 영상 복호화 장치.
- 현재 블록에 양방향 인트라 예측이 적용되는지 여부를 결정하고, 상기 현재 블록의 참조 샘플을 유도하고, 상기 현재 블록에 양방향 인트라 예측이 적용되는 경우, 상기 현재 블록의 인트라 예측 모드에 의해 특정되는 제1 참조 샘플 및 제2 참조 샘플을 기초로, 상기 현재 블록의 예측 샘플을 획득하는 인트라 예측부를 포함하는, 영상 부호화 장치.
Priority Applications (8)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310781099.2A CN116600127A (zh) | 2017-09-08 | 2018-09-06 | 视频信号处理方法及装置 |
CN201880035977.3A CN110710216B (zh) | 2017-09-08 | 2018-09-06 | 视频信号处理方法及装置 |
CN202310777156.XA CN116582670A (zh) | 2017-09-08 | 2018-09-06 | 视频信号处理方法及装置 |
CN202011356439.XA CN112399179B (zh) | 2017-09-08 | 2018-09-06 | 对图像进行解码和编码的方法以及计算机可读介质 |
CN202310777322.6A CN116634154A (zh) | 2017-09-08 | 2018-09-06 | 视频信号处理方法及装置 |
US16/619,353 US11089299B2 (en) | 2017-09-08 | 2018-09-06 | Method and device for processing video signal |
US17/103,084 US11388395B2 (en) | 2017-09-08 | 2020-11-24 | Method and device for processing video signal |
US17/836,762 US11743455B2 (en) | 2017-09-08 | 2022-06-09 | Method and device for processing video signal |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR10-2017-0115267 | 2017-09-08 | ||
KR20170115267 | 2017-09-08 | ||
KR10-2017-0115266 | 2017-09-08 | ||
KR20170115266 | 2017-09-08 |
Related Child Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/619,353 A-371-Of-International US11089299B2 (en) | 2017-09-08 | 2018-09-06 | Method and device for processing video signal |
US17/103,084 Division US11388395B2 (en) | 2017-09-08 | 2020-11-24 | Method and device for processing video signal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019050291A1 true WO2019050291A1 (ko) | 2019-03-14 |
Family
ID=65635029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/KR2018/010413 WO2019050291A1 (ko) | 2017-09-08 | 2018-09-06 | 비디오 신호 처리 방법 및 장치 |
Country Status (4)
Country | Link |
---|---|
US (3) | US11089299B2 (ko) |
KR (1) | KR20190028324A (ko) |
CN (5) | CN110710216B (ko) |
WO (1) | WO2019050291A1 (ko) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2595015A (en) * | 2018-06-27 | 2021-11-17 | Kt Corp | Method and apparatus for processing video signal |
US11509889B2 (en) | 2018-06-27 | 2022-11-22 | Kt Corporation | Method and apparatus for processing video signal |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020009400A1 (ko) * | 2018-07-02 | 2020-01-09 | 엘지전자 주식회사 | 인트라 예측을 사용하여 비디오 신호를 처리하기 위한 방법 및 장치 |
US11284075B2 (en) * | 2018-09-12 | 2022-03-22 | Qualcomm Incorporated | Prediction of adaptive loop filter parameters with reduced memory consumption for video coding |
US11438583B2 (en) * | 2018-11-27 | 2022-09-06 | Tencent America LLC | Reference sample filter selection in intra prediction |
US11051017B2 (en) | 2018-12-20 | 2021-06-29 | Qualcomm Incorporated | Adaptive loop filter (ALF) index signaling |
CN109803145B (zh) * | 2018-12-29 | 2022-10-28 | 浙江大华技术股份有限公司 | 帧内预测方法、装置、编码器及存储装置 |
US11019360B2 (en) * | 2019-03-21 | 2021-05-25 | Qualcomm Incorporated | Generalized reference sample derivation methods for intra prediction in video coding |
WO2020256466A1 (ko) * | 2019-06-19 | 2020-12-24 | 한국전자통신연구원 | 화면 내 예측 모드 및 엔트로피 부호화/복호화 방법 및 장치 |
US12120335B2 (en) * | 2021-08-24 | 2024-10-15 | Tencent America LLC | Hardware friendly design for intra mode coding |
WO2023101524A1 (ko) * | 2021-12-02 | 2023-06-08 | 현대자동차주식회사 | 양방향 인트라 예측 모드를 이용하는 비디오 부호화/복호화 방법 및 장치 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120082960A (ko) * | 2011-01-15 | 2012-07-25 | 에스케이 텔레콤주식회사 | 양방향 인트라 예측을 이용한 영상 부호화/복호화 방법 및 장치 |
WO2014010943A1 (ko) * | 2012-07-10 | 2014-01-16 | 한국전자통신연구원 | 영상 부호화/복호화 방법 및 장치 |
WO2017014412A1 (ko) * | 2015-07-20 | 2017-01-26 | 엘지전자 주식회사 | 비디오 코딩 시스템에서 인트라 예측 방법 및 장치 |
WO2017018664A1 (ko) * | 2015-07-28 | 2017-02-02 | 엘지전자(주) | 인트라 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 |
Family Cites Families (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4977094B2 (ja) * | 2008-06-25 | 2012-07-18 | 株式会社東芝 | 画像符号化方法 |
CN101646081A (zh) * | 2009-06-18 | 2010-02-10 | 杭州高特信息技术有限公司 | 一种avs快速帧内预测方法及装置 |
KR101432771B1 (ko) * | 2010-03-05 | 2014-08-26 | 에스케이텔레콤 주식회사 | 영상 부호화 장치, 그 영상 부호화 방법, 영상 복호화 장치 및 그 영상 복호화 방법 |
KR101772459B1 (ko) * | 2010-05-17 | 2017-08-30 | 엘지전자 주식회사 | 신규한 인트라 예측 모드 |
KR20120012385A (ko) * | 2010-07-31 | 2012-02-09 | 오수미 | 인트라 예측 부호화 장치 |
KR102086145B1 (ko) * | 2010-12-13 | 2020-03-09 | 한국전자통신연구원 | 인트라 예측 방법 및 그 장치 |
KR20120140592A (ko) * | 2011-06-21 | 2012-12-31 | 한국전자통신연구원 | 움직임 보상의 계산 복잡도 감소 및 부호화 효율을 증가시키는 방법 및 장치 |
KR101587927B1 (ko) * | 2013-06-24 | 2016-01-22 | 한양대학교 산학협력단 | 인트라 예측을 이용한 비디오 부호화/복호화 방법 및 장치 |
KR20140008503A (ko) * | 2012-07-10 | 2014-01-21 | 한국전자통신연구원 | 영상 부호화/복호화 방법 및 장치 |
KR101534048B1 (ko) * | 2014-06-13 | 2015-07-07 | 에스케이텔레콤 주식회사 | 인트라 예측 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치 |
WO2016066093A1 (en) * | 2014-10-31 | 2016-05-06 | Mediatek Inc. | Method of improved directional intra prediction for video coding |
US11463689B2 (en) * | 2015-06-18 | 2022-10-04 | Qualcomm Incorporated | Intra prediction and intra mode coding |
WO2017069419A1 (ko) * | 2015-10-22 | 2017-04-27 | 엘지전자 주식회사 | 비디오 코딩 시스템에서 인트라 예측 방법 및 장치 |
KR102383104B1 (ko) * | 2016-06-24 | 2022-04-06 | 주식회사 케이티 | 비디오 신호 처리 방법 및 장치 |
US10721479B2 (en) * | 2016-09-30 | 2020-07-21 | Lg Electronics Inc. | Intra prediction method and apparatus in image coding system |
EP3565248A4 (en) * | 2016-12-28 | 2020-12-02 | LG Electronics Inc. -1- | INTERPREDICTION-BASED IMAGE PROCESSING METHOD AND DEVICE FOR IT |
KR102351029B1 (ko) * | 2017-05-16 | 2022-01-13 | 엘지전자 주식회사 | 인트라 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 |
EP3410722A1 (en) * | 2017-05-31 | 2018-12-05 | Thomson Licensing | Method and apparatus for low-complexity bi-directional intra prediction in video encoding and decoding |
KR20210094046A (ko) * | 2018-11-27 | 2021-07-28 | 오피 솔루션즈, 엘엘씨 | 명시적 및 암시적 시그널링을 사용한 이용 불가능한 참조 프레임들의 적응형 블록 업데이트 |
-
2018
- 2018-09-06 CN CN201880035977.3A patent/CN110710216B/zh active Active
- 2018-09-06 CN CN202310777156.XA patent/CN116582670A/zh active Pending
- 2018-09-06 US US16/619,353 patent/US11089299B2/en active Active
- 2018-09-06 CN CN202310777322.6A patent/CN116634154A/zh active Pending
- 2018-09-06 CN CN202011356439.XA patent/CN112399179B/zh active Active
- 2018-09-06 WO PCT/KR2018/010413 patent/WO2019050291A1/ko active Application Filing
- 2018-09-06 CN CN202310781099.2A patent/CN116600127A/zh active Pending
- 2018-09-06 KR KR1020180106390A patent/KR20190028324A/ko not_active Application Discontinuation
-
2020
- 2020-11-24 US US17/103,084 patent/US11388395B2/en active Active
-
2022
- 2022-06-09 US US17/836,762 patent/US11743455B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120082960A (ko) * | 2011-01-15 | 2012-07-25 | 에스케이 텔레콤주식회사 | 양방향 인트라 예측을 이용한 영상 부호화/복호화 방법 및 장치 |
WO2014010943A1 (ko) * | 2012-07-10 | 2014-01-16 | 한국전자통신연구원 | 영상 부호화/복호화 방법 및 장치 |
WO2017014412A1 (ko) * | 2015-07-20 | 2017-01-26 | 엘지전자 주식회사 | 비디오 코딩 시스템에서 인트라 예측 방법 및 장치 |
WO2017018664A1 (ko) * | 2015-07-28 | 2017-02-02 | 엘지전자(주) | 인트라 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 |
Non-Patent Citations (1)
Title |
---|
YE, YANET ET AL.: "Improved H.264 Intra Coding Based on Bi-directional Intra Prediction, Directional Transform, and Adaptive Coefficient Scanning", INTERNATIONAL CONFERENCE ON IMAGE PROCESSING (ICIP) 2008, 15 October 2008 (2008-10-15), San Diego, California, USA, pages 2116 - 2119, XP031374452 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2595015A (en) * | 2018-06-27 | 2021-11-17 | Kt Corp | Method and apparatus for processing video signal |
US11343536B2 (en) | 2018-06-27 | 2022-05-24 | Kt Corporation | Method and apparatus for processing video signal |
GB2595015B (en) * | 2018-06-27 | 2022-07-13 | Kt Corp | Bi-directional intra-prediction involving weighted sum of two reference samples |
US11509889B2 (en) | 2018-06-27 | 2022-11-22 | Kt Corporation | Method and apparatus for processing video signal |
US11930212B2 (en) | 2018-06-27 | 2024-03-12 | Kt Corporation | Method and apparatus for processing video signal |
Also Published As
Publication number | Publication date |
---|---|
CN116582670A (zh) | 2023-08-11 |
CN110710216B (zh) | 2023-07-21 |
US20220311999A1 (en) | 2022-09-29 |
US20200145648A1 (en) | 2020-05-07 |
US11089299B2 (en) | 2021-08-10 |
CN112399179A (zh) | 2021-02-23 |
KR20190028324A (ko) | 2019-03-18 |
US11388395B2 (en) | 2022-07-12 |
CN112399179B (zh) | 2024-08-23 |
US11743455B2 (en) | 2023-08-29 |
CN110710216A (zh) | 2020-01-17 |
CN116634154A (zh) | 2023-08-22 |
US20210084292A1 (en) | 2021-03-18 |
CN116600127A (zh) | 2023-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019050292A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2018026219A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2017222326A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2017171370A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2018106047A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2018155986A2 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2017176030A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2018212577A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2018097626A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2017204532A1 (ko) | 영상 부호화/복호화 방법 및 이를 위한 기록 매체 | |
WO2019050291A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2018212579A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2019225993A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2019190201A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2018124843A1 (ko) | 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체 | |
WO2019039806A1 (ko) | 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체 | |
WO2019182292A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2018056701A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2020050685A1 (ko) | 인트라 예측을 이용한 영상 부호화/복호화 방법 및 장치 | |
WO2018047995A1 (ko) | 인트라 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 | |
WO2019066524A1 (ko) | 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체 | |
WO2018066958A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2019190199A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2019182295A1 (ko) | 비디오 신호 처리 방법 및 장치 | |
WO2018124333A1 (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: 18853311 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: 18853311 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/01/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18853311 Country of ref document: EP Kind code of ref document: A1 |