WO2019031703A1 - Method and apparatus for image decoding according to linear model in image coding system - Google Patents
Method and apparatus for image decoding according to linear model in image coding system Download PDFInfo
- Publication number
- WO2019031703A1 WO2019031703A1 PCT/KR2018/007003 KR2018007003W WO2019031703A1 WO 2019031703 A1 WO2019031703 A1 WO 2019031703A1 KR 2018007003 W KR2018007003 W KR 2018007003W WO 2019031703 A1 WO2019031703 A1 WO 2019031703A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sample
- block
- luma
- rec
- offset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/117—Filters, e.g. for pre-processing or post-processing
-
- 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/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- 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/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
Definitions
- the present invention relates to a video coding technique, and more particularly, to a video decoding method and apparatus for predicting chroma components according to a linear model in a video coding system.
- HD high definition
- UHD ultra high definition
- the present invention provides a method and apparatus for enhancing video coding efficiency.
- an image decoding method performed by a decoding apparatus includes deriving linear parameter parameters for the current chroma block based on neighboring samples of the current chroma block and surrounding samples of the luma block, Obtaining offset information for the current chroma block through a bitstream, deriving a corresponding position that is modified based on the corresponding position and the offset information, Deriving a downsampled reconstructed luma sample for the target chroma sample based on the reconstructed luma sample of the corresponding location, and reconstructing the predicted sample of the target chroma sample based on the linear model parameters and the downsampled reconstructed luma sample And a step of generating the generated signal.
- the decoding apparatus includes an entropy decoding unit that obtains prediction information including offset information for a current chroma block through a bitstream, and an entropy decoding unit for decoding the current chroma block based on neighbor samples of the current chroma block and surrounding samples of the luma block.
- a video encoding method performed by an encoding apparatus.
- the method includes deriving linear parameter parameters for the current chroma block based on neighboring samples of the current chroma block and surrounding samples of the luma block, Deriving a corresponding position of the reconstructed luma sample, deriving a modified corresponding position, deriving a downsampled reconstructed luma sample for the target chroma sample based on the reconstructed luma sample of the modified corresponding position, Generating predicted samples of the target chroma samples based on the linear model parameters and the downsampled restored luma samples, and generating, encoding, and outputting prediction information for the current chroma block. do.
- a video encoding apparatus derives linear model parameters for the current chroma block based on neighboring samples of the current chroma block and surrounding samples of the luma block and generates linear model parameters for the current chroma block in the luma block Deriving a corresponding position of the restored luma sample, deriving a corrected corresponding position, deriving a downsampled restoration luma sample for the target chroma sample based on the restored luma sample of the modified corresponding position, And a prediction unit for generating prediction samples of the target chroma samples based on the downsampled restoration luma samples, and an entropy encoding unit for generating, encoding, and outputting prediction information for the current chroma block .
- prediction of the current chroma block is performed using a luma component for a current chroma block, downsampling is performed based on a luma component more suitable for prediction of the current chroma block,
- the prediction accuracy of the current chroma block can be improved and the overall coding efficiency can be improved.
- prediction of a chroma component can be performed based on a plurality of downsampling filters, thereby improving prediction accuracy of the current chroma block, thereby improving overall coding efficiency.
- FIG. 1 is a view for schematically explaining a configuration of a video encoding apparatus to which the present invention can be applied.
- FIG. 2 is a schematic view illustrating a configuration of a video decoding apparatus to which the present invention can be applied.
- FIG. 3 exemplarily shows the left neighbor samples and the upper neighbor samples used for intra prediction of the current block.
- FIG. 4 illustrates exemplary intra-directional modes of 65 prediction directions.
- 5 exemplarily shows neighbor samples of the current chroma block and surrounding samples of the corresponding luma block used to derive the relational expression of the corresponding luma block and the current chroma block.
- FIG. 6 shows an example of adjusting the position of the restored luma sample corresponding to the target chroma sample of the current chroma block.
- FIG. 7 schematically shows a video encoding method by the encoding apparatus according to the present invention.
- FIG. 8 schematically shows a video decoding method by a decoding apparatus according to the present invention.
- a picture generally refers to a unit that represents one image in a specific time zone
- a slice is a unit that constitutes a part of a picture in coding.
- One picture may be composed of a plurality of slices, and pictures and slices may be used in combination if necessary.
- a pixel or a pel may mean a minimum unit of a picture (or image). Also, a 'sample' may be used as a term corresponding to a pixel.
- a sample may generally represent a pixel or pixel value and may only represent a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.
- a unit represents a basic unit of image processing.
- a unit may include at least one of a specific area of a picture and information related to the area.
- the unit may be used in combination with terms such as a block or an area in some cases.
- an MxN block may represent a set of samples or transform coefficients consisting of M columns and N rows.
- FIG. 1 is a view for schematically explaining a configuration of a video encoding apparatus to which the present invention can be applied.
- the video encoding apparatus 100 includes a picture dividing unit 105, a predicting unit 110, a residual processing unit 120, an entropy encoding unit 130, an adding unit 140, a filter unit 150 And a memory 160.
- the residual processing unit 120 may include a subtracting unit 121, a transforming unit 122, a quantizing unit 123, a reordering unit 124, an inverse quantizing unit 125 and an inverse transforming unit 126.
- the picture dividing unit 105 may divide the inputted picture into at least one processing unit.
- the processing unit may be referred to as a coding unit (CU).
- the coding unit may be recursively partitioned according to a quad-tree binary-tree (QTBT) structure from the largest coding unit (LCU).
- QTBT quad-tree binary-tree
- LCU largest coding unit
- one coding unit may be divided into a plurality of coding units of deeper depth based on a quadtree structure and / or a binary tree structure.
- the quadtree structure is applied first and the binary tree structure can be applied later.
- a binary tree structure may be applied first.
- the coding procedure according to the present invention can be performed based on the final coding unit which is not further divided.
- the maximum coding unit may be directly used as the final coding unit based on the coding efficiency or the like depending on the image characteristics, or the coding unit may be recursively divided into lower-depth coding units Lt; / RTI > may be used as the final coding unit.
- the coding procedure may include a procedure such as prediction, conversion, and restoration, which will be described later.
- the processing unit may include a coding unit (CU) prediction unit (PU) or a transform unit (TU).
- the coding unit may be split from the largest coding unit (LCU) into coding units of deeper depth along the quad tree structure.
- LCU largest coding unit
- the maximum coding unit may be directly used as the final coding unit based on the coding efficiency or the like depending on the image characteristics, or the coding unit may be recursively divided into lower-depth coding units Lt; / RTI > may be used as the final coding unit.
- SCU smallest coding unit
- the coding unit can not be divided into smaller coding units than the minimum coding unit.
- the term " final coding unit " means a coding unit on which the prediction unit or the conversion unit is partitioned or divided.
- a prediction unit is a unit that is partitioned from a coding unit, and may be a unit of sample prediction. At this time, the prediction unit may be divided into sub-blocks.
- the conversion unit may be divided along the quad-tree structure from the coding unit, and may be a unit for deriving a conversion coefficient and / or a unit for deriving a residual signal from the conversion factor.
- the coding unit may be referred to as a coding block (CB)
- the prediction unit may be referred to as a prediction block (PB)
- the conversion unit may be referred to as a transform block (TB).
- the prediction block or prediction unit may refer to a specific area in the form of a block in a picture and may include an array of prediction samples.
- a transform block or transform unit may refer to a specific region in the form of a block within a picture, and may include an array of transform coefficients or residual samples.
- the prediction unit 110 may perform a prediction on a current block to be processed (hereinafter, referred to as a current block), and may generate a predicted block including prediction samples for the current block.
- the unit of prediction performed in the prediction unit 110 may be a coding block, a transform block, or a prediction block.
- the prediction unit 110 may determine whether intra prediction or inter prediction is applied to the current block. For example, the prediction unit 110 may determine whether intra prediction or inter prediction is applied in units of CU.
- the prediction unit 110 may derive a prediction sample for a current block based on a reference sample outside the current block in a picture to which the current block belongs (hereinafter referred to as a current picture). At this time, the prediction unit 110 may derive a prediction sample based on (i) an average or interpolation of neighboring reference samples of the current block, (ii) The prediction sample may be derived based on a reference sample existing in a specific (prediction) direction with respect to the prediction sample among the samples. (i) may be referred to as a non-directional mode or a non-angle mode, and (ii) may be referred to as a directional mode or an angular mode.
- the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes.
- the non-directional mode may include a DC prediction mode and a planar mode (Planar mode).
- the prediction unit 110 may determine a prediction mode applied to a current block using a prediction mode applied to a neighboring block.
- the prediction unit 110 may derive a prediction sample for a current block based on a sample specified by a motion vector on a reference picture.
- the prediction unit 110 may derive a prediction sample for a current block by applying one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode.
- the prediction unit 110 can use motion information of a neighboring block as motion information of a current block.
- difference residual between the predicted sample and the original sample is not transmitted unlike the merge mode.
- MVP mode a motion vector of a current block can be derived by using a motion vector of a neighboring block as a motion vector predictor to use as a motion vector predictor of a current block.
- a neighboring block may include a spatial neighboring block existing in a current picture and a temporal neighboring block existing in a reference picture.
- the reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic).
- the motion information may include a motion vector and a reference picture index.
- Information such as prediction mode information and motion information may be (entropy) encoded and output in the form of a bit stream.
- the highest picture on the reference picture list may be used as a reference picture.
- the reference pictures included in the picture order count can be sorted on the basis of the picture order count (POC) difference between the current picture and the corresponding reference picture.
- POC picture order count
- the POC corresponds to the display order of the pictures and can be distinguished from the coding order.
- the subtraction unit 121 generates residual samples that are the difference between the original sample and the predicted sample. When the skip mode is applied, a residual sample may not be generated as described above.
- the transforming unit 122 transforms the residual samples on a transform block basis to generate a transform coefficient.
- the transforming unit 122 can perform the transform according to the size of the transform block and a prediction mode applied to the coding block or the prediction block spatially overlapping the transform block. For example, if intraprediction is applied to the coding block or the prediction block that overlaps the transform block and the transform block is a 4 ⁇ 4 residue array, the residual sample is transformed into a discrete sine transform (DST) In other cases, the residual samples can be converted using a DCT (Discrete Cosine Transform) conversion kernel.
- DST discrete sine transform
- the quantization unit 123 may quantize the transform coefficients to generate quantized transform coefficients.
- the reordering unit 124 rearranges the quantized transform coefficients.
- the reordering unit 124 may rearrange the block-shaped quantized transform coefficients into a one-dimensional vector form through a scanning method of coefficients.
- the reordering unit 124 may be a part of the quantization unit 123, although the reordering unit 124 is described as an alternative configuration.
- the entropy encoding unit 130 may perform entropy encoding on the quantized transform coefficients.
- the entropy encoding unit 130 may derive residual information on the quantized transform coefficients and entropy-encode the residual information.
- Entropy encoding may include, for example, an encoding method such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC)
- CABAC context-adaptive binary arithmetic coding
- the entropy encoding unit 130 may encode the information necessary for video restoration (such as the value of a syntax element) together with the quantized transform coefficient or separately.
- the encoded information may be transmitted or stored in units of NAL (network abstraction layer) units in the form of a bit stream.
- NAL network abstraction layer
- the bitstream may be transmitted over a network or stored in a digital storage medium.
- the network may include a broadcasting network and / or a communication network
- the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
- the inverse quantization unit 125 inversely quantizes the quantized values (quantized transform coefficients) in the quantization unit 123 and the inverse transformation unit 126 inversely quantizes the inversely quantized values in the inverse quantization unit 125, .
- the adder 140 combines the residual sample and the predicted sample to reconstruct the picture.
- the residual samples and the prediction samples are added in units of blocks so that a reconstruction block can be generated.
- the adding unit 140 may be a part of the predicting unit 110, Meanwhile, the addition unit 140 may be referred to as a restoration unit or a restoration block generation unit.
- the filter unit 150 may apply a deblocking filter and / or a sample adaptive offset. Through deblocking filtering and / or sample adaptive offsets, artifacts in the block boundary in the reconstructed picture or distortion in the quantization process can be corrected.
- the sample adaptive offset can be applied on a sample-by-sample basis and can be applied after the process of deblocking filtering is complete.
- the filter unit 150 may apply an ALF (Adaptive Loop Filter) to the restored picture.
- the ALF may be applied to the reconstructed picture after the deblocking filter and / or sample adaptive offset is applied.
- the memory 160 may store restored pictures (decoded pictures) or information necessary for encoding / decoding.
- the reconstructed picture may be a reconstructed picture whose filtering procedure has been completed by the filter unit 150.
- the stored restored picture may be used as a reference picture for (inter) prediction of another picture.
- the memory 160 may store (reference) pictures used for inter prediction. At this time, the pictures used for inter prediction can be designated by a reference picture set or a reference picture list.
- FIG. 2 is a schematic view illustrating a configuration of a video decoding apparatus to which the present invention can be applied.
- the video decoding apparatus 200 includes an entropy decoding unit 210, a residual processing unit 220, a predicting unit 230, an adding unit 240, a filter unit 250, and a memory 260 .
- the residual processing unit 220 may include a rearrangement unit 221, an inverse quantization unit 222, and an inverse transformation unit 223.
- the video decoding apparatus 200 can restore video in response to a process in which video information is processed in the video encoding apparatus.
- the video decoding apparatus 200 can perform video decoding using a processing unit applied in the video encoding apparatus.
- the processing unit block of video decoding may be, for example, a coding unit and, in another example, a coding unit, a prediction unit or a conversion unit.
- the coding unit may be partitioned along the quad tree structure and / or the binary tree structure from the maximum coding unit.
- a prediction unit and a conversion unit may be further used as the case may be, in which case the prediction block is a block derived or partitioned from the coding unit and may be a unit of sample prediction. At this time, the prediction unit may be divided into sub-blocks.
- the conversion unit may be divided along the quad tree structure from the coding unit and may be a unit that derives the conversion factor or a unit that derives the residual signal from the conversion factor.
- the entropy decoding unit 210 may parse the bitstream and output information necessary for video restoration or picture restoration. For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and calculates a value of a syntax element necessary for video restoration, a quantized value Lt; / RTI >
- a coding method such as exponential Golomb coding, CAVLC, or CABAC
- the CABAC entropy decoding method includes receiving a bean corresponding to each syntax element in a bitstream, decoding decoding target information of the decoding target syntax element, decoding information of a surrounding and decoding target block, or information of a symbol / A context model is determined and an occurrence probability of a bin is predicted according to the determined context model to perform arithmetic decoding of the bean to generate a symbol corresponding to the value of each syntax element have.
- the CABAC entropy decoding method can update the context model using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
- the residual value i.e., the quantized transform coefficient, which is entropy-decoded in the entropy decoding unit 210, 221).
- the reordering unit 221 may rearrange the quantized transform coefficients into a two-dimensional block form.
- the reordering unit 221 may perform reordering in response to the coefficient scanning performed in the encoding apparatus.
- the rearrangement unit 221 may be a part of the inverse quantization unit 222, although the rearrangement unit 221 has been described as an alternative configuration.
- the inverse quantization unit 222 may dequantize the quantized transform coefficients based on the (inverse) quantization parameters, and output the transform coefficients. At this time, the information for deriving the quantization parameter may be signaled from the encoding device.
- the inverse transform unit 223 may invert the transform coefficients to derive the residual samples.
- the prediction unit 230 may predict a current block and may generate a predicted block including prediction samples of the current block.
- the unit of prediction performed in the prediction unit 230 may be a coding block, a transform block, or a prediction block.
- the prediction unit 230 may determine whether intra prediction or inter prediction is to be applied based on the prediction information.
- a unit for determining whether to apply intra prediction or inter prediction may differ from a unit for generating a prediction sample.
- units for generating prediction samples in inter prediction and intra prediction may also be different.
- whether inter prediction or intra prediction is to be applied can be determined in units of CU.
- the prediction mode may be determined in units of PU to generate prediction samples.
- a prediction mode may be determined in units of PU, and prediction samples may be generated in units of TU.
- the prediction unit 230 may derive a prediction sample for the current block based on the surrounding reference samples in the current picture.
- the prediction unit 230 may apply a directional mode or a non-directional mode based on the neighbor reference samples of the current block to derive a prediction sample for the current block.
- a prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
- the prediction unit 230 may derive a prediction sample for a current block based on a sample specified on a reference picture by a motion vector on a reference picture.
- the prediction unit 230 may derive a prediction sample for a current block by applying a skip mode, a merge mode, or an MVP mode.
- motion information necessary for inter-prediction of a current block provided in the video encoding apparatus for example, information on a motion vector, a reference picture index, and the like may be acquired or derived based on the prediction information
- motion information of a neighboring block can be used as motion information of the current block.
- the neighboring block may include a spatial neighboring block and a temporal neighboring block.
- the prediction unit 230 may construct a merge candidate list using the motion information of the available neighboring blocks and use the information indicated by the merge index on the merge candidate list as the motion vector of the current block.
- the merge index may be signaled from the encoding device.
- the motion information may include a motion vector and a reference picture.
- the difference between the predicted sample and the original sample is not transmitted.
- a motion vector of a current block can be derived using a motion vector of a neighboring block as a motion vector predictor.
- the neighboring block may include a spatial neighboring block and a temporal neighboring block.
- a merge candidate list may be generated using a motion vector of the reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block that is a temporally neighboring block.
- the motion vector of the candidate block selected in the merge candidate list is used as the motion vector of the current block.
- the prediction information may include a merge index indicating a candidate block having an optimal motion vector selected from the candidate blocks included in the merge candidate list.
- the predicting unit 230 can derive the motion vector of the current block using the merge index.
- a motion vector predictor candidate list is generated by using a motion vector of the reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block which is a temporally neighboring block . That is, the motion vector of the reconstructed spatial neighboring block and / or the motion vector corresponding to the neighboring block Col may be used as a motion vector candidate.
- the information on the prediction may include a predicted motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list.
- the predicting unit 230 can use the motion vector index to select a predictive motion vector of the current block from the motion vector candidates included in the motion vector candidate list.
- the predicting unit of the encoding apparatus can obtain the motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, and can output it as a bit stream. That is, MVD can be obtained by subtracting the motion vector predictor from the motion vector of the current block.
- the predicting unit 230 may obtain the motion vector difference included in the information on the prediction, and derive the motion vector of the current block through addition of the motion vector difference and the motion vector predictor.
- the prediction unit may also acquire or derive a reference picture index or the like indicating the reference picture from the information on the prediction.
- the adder 240 may add a residual sample and a prediction sample to reconstruct a current block or a current picture.
- the adder 240 may add the residual samples and the prediction samples on a block-by-block basis to reconstruct the current picture.
- the adder 240 has been described as an alternative configuration, but the adder 240 may be a part of the predictor 230.
- the addition unit 240 may be referred to as a restoration unit or a restoration block generation unit.
- the filter unit 250 may apply deblocking filtered sample adaptive offsets, and / or ALFs, to the reconstructed pictures.
- the sample adaptive offset may be applied on a sample-by-sample basis and may be applied after deblocking filtering.
- the ALF may be applied after deblocking filtering and / or sample adaptive offsets.
- the memory 260 may store restored pictures (decoded pictures) or information necessary for decoding.
- the reconstructed picture may be a reconstructed picture whose filtering procedure has been completed by the filter unit 250.
- the memory 260 may store pictures used for inter prediction.
- the pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
- the reconstructed picture can be used as a reference picture for another picture.
- the memory 260 may output the restored picture according to the output order.
- the prediction can be performed based on the intra prediction mode.
- the intra prediction may be performed based on a neighboring sample that has already been encoded / decoded at the decoding time of the current block. That is, the prediction sample of the current block may be reconstructed using the left and right neighbor samples of the current block.
- the left peripheral samples and the upper peripheral samples may be expressed as shown in FIG.
- FIG. 3 exemplarily shows the left neighbor samples and the upper neighbor samples used for intra prediction of the current block.
- the intra prediction mode for the current block can be derived when intra prediction is performed on the current block and the intra prediction mode for the current block can be derived using the at least one of the left neighbor samples and the upper neighbor samples, Lt; / RTI > can be generated.
- the intra-prediction mode may include two non-directional intra-prediction modes and 33 directional intra-prediction modes.
- the non-directional intra-prediction modes may include a planar intra-prediction mode and a DC intra-prediction mode, and the directional intra-prediction modes may include intra-prediction modes 2 to 34.
- the planar intra prediction mode may be referred to as a planar mode, and the DC intra prediction mode may be referred to as a DC mode.
- the intra prediction mode 10 indicates a horizontal intra prediction mode or a horizontal mode
- the intra prediction mode 26 indicates a vertical intra prediction mode or a vertical mode
- a directional intra mode angular intra mode can be expressed by an angle.
- the relative angle corresponding to each intra-prediction mode can be expressed with reference to the horizontal reference angle 0 [deg.]
- Corresponding to the intra-prediction mode # 10 and based on the vertical reference angle 0 [ To express a relative angle corresponding to each intra prediction mode.
- the intra-prediction mode may include two non-directional intra-prediction modes and 65 directional intra-prediction modes.
- the non-directional intra-prediction modes may include a planar intra-prediction mode and a DC intra-prediction mode, and the directional intra-prediction modes may include intra-prediction modes 2 to 66.
- FIG. 4 illustrates exemplary intra-directional modes of 65 prediction directions.
- an intra-prediction mode having a horizontal directionality and an intra-prediction mode having a vertical directionality can be distinguished from the intra-prediction mode # 34 having a left-side diagonal prediction direction.
- H and V in Fig. 4 indicate the horizontal direction and the vertical direction, respectively, and the numbers from -32 to 32 indicate displacements in 1/32 unit on the sample grid position.
- the intra-prediction modes 2 to 33 have a horizontal direction, and the intra-prediction modes # 34 to # 66 have a vertical direction.
- the intra prediction mode 18 and the intra prediction mode 50 indicate the horizontal intra prediction mode and the vertical intra prediction mode, respectively, and the intra intra prediction mode and the intra intra prediction mode
- the prediction direction can be expressed by an angle.
- the relative angle corresponding to each intra-prediction mode can be expressed based on the horizontal reference angle 0 corresponding to the intra-prediction mode # 18, and the relative angle corresponding to the intra-prediction mode # To express a relative angle corresponding to each intra prediction mode.
- a luma component of the current block that is already decoded and restored or a chroma component different from the chroma component may be used for intra prediction on the chroma component of the current block have.
- the chroma Cb component and the chroma Cr component are decoded in the following order Encoding / decoding information of the luma component may be used.
- the color format of the input image is a 4: 2: 0 color format
- the luma component has four times as many data as each chroma component, so that the luma component can be down- And the down sampled luma component may be used for intra prediction of each chroma component.
- the chroma component of the current block may be referred to as a current chroma block
- the luma component corresponding to the chroma component may be referred to as a corresponding luma block or a luma block for the current chroma block.
- the method of performing intra prediction of the current chroma block based on the corresponding luma block may be as follows.
- neighboring samples of the corresponding luma block corresponding to neighboring samples of the current chroma block may be derived.
- the neighbor samples of the current chroma block may include left neighbor samples, upper left neighbor samples, and upper neighbor samples of the current chroma block.
- the left neighbor samples are p [-1] [0] -1] to [p-1] [N-1], the upper left neighbor sample is p [-1] 1].
- a linear model of the corresponding luma block and the current chroma block may be derived based on neighbor samples of the corresponding luma block and neighboring samples of the current chroma block,
- the prediction samples of the chroma block can be derived based on the restoration luma samples of the luma block.
- the linear model may be expressed by a relational expression between the corresponding luma block and the current chroma block.
- the intra prediction mode using the correlation between the current chroma block and the corresponding luma block corresponding to the current chroma block may be referred to as an LM (linear model) mode.
- the parameters of the relational expression may be derived based on neighbor samples of the current chroma block and neighbor samples of the corresponding luma block corresponding to neighbor samples of the current chroma block.
- the parameters of the relational expression may include a coefficient and an offset of the relational expression. That is, coefficients and offsets of the relational expression can be derived based on the surrounding samples of the current chroma block and the surrounding samples of the corresponding luma block. The coefficient may be referred to as a scaling factor.
- the relational expression derived based on the neighbor samples of the current chroma block and the surrounding samples of the corresponding luma block can be expressed by the following equation.
- Ref cb is a neighboring sample of the current chroma block
- Ref Y is a neighboring sample of the corresponding luma block
- the parameters ⁇ and ⁇ which are the parameters, calculate a value by which the closest samples of the current chroma block and the neighboring samples of the corresponding luma block become similar to each other using the least squares method.
- the surrounding samples of the corresponding luma block may be down-sampled and used.
- the ⁇ and ⁇ may be derived based on the following equation.
- the parameters a and b represent the coefficient and the offset
- Ref cb represents a (downsampled) neighbor sample of the current chroma block
- Ref Y represents a surrounding sample of the corresponding luma block.
- E error
- Equation (2) Since the parameters ⁇ and ⁇ to be obtained in Equation (2) are values that minimize errors of both sides, the equation for obtaining the parameters can be expressed as follows.
- E ( ⁇ , ⁇ ) represents the ⁇ and ⁇ values minimizing the error
- i is the index of each sample
- ⁇ (lambda) is the control parameter.
- the lambda may be predetermined or may be derived, for example, based on the surrounding samples of the corresponding luma block. For example, And in another example, lambda is set to 0, the latter stage of the above equation (3) may be omitted. This is the same in the following equations.
- N denotes a normalization parameter.
- N may be determined based on the size of the current chroma block.
- the restoration luma samples of the corresponding luma block are applied to the parameters so that a predicted sample of the current chroma block can be derived.
- the relational expression to which the restoration luma samples of the corresponding luma block are applied can be expressed by the following equation.
- Pred cb (i, j) is the predicted sample of the (i, j) coordinate of the current chroma block and rec Y '(i, j) is the restoration luma sample of the (i, j) ? can be the coefficient, and? can represent the offset.
- the rec Y '(i, j) may represent a down-sampled restoration luma sample of the corresponding luma block.
- the parameter ⁇ and the parameter ⁇ of the relational expressions representing the linear model are the same as the neighboring samples used in the intra prediction of the current luma block and the neighbor samples of the current chroma block and the neighbor samples of the luma block
- the intra prediction of the above-described method can be utilized merely by transmitting information indicating whether prediction using the linear model is performed on the current chroma block.
- the method of predicting the chroma Cb component using the correlation between the luma component and the chroma Cb component is shown, it is also possible to perform intra prediction based on the correlation between the luma component and the chroma Cb component as well as other components Can be performed.
- intraprediction can be performed by various modeling techniques that define the relationship between the components as well as the linear model described above.
- the present invention is not limited to the case where the color format of the input image is the YCbCr 4: 2: 0 color format, and the above-described prediction method can be applied if the color format of the input image is a color format capable of conversion between the respective components .
- the color format of the input image is a color format in which the amount of information of all components is the same, such as the RGB color format or the YCbCr 4: 4: 4 color format, down-sampling on the luma component may be omitted have.
- Sampling may be performed to derive a downsampled corresponding luma block of the same size as the current chroma block. Then, a prediction block for the current chroma block may be generated based on the linear model defined as Equation (7). Wherein the downsampled corresponding luma block may be derived based on a restoration luma sample corresponding to a target chroma sample of the current chroma block among the restoration luma samples of the corresponding luma block.
- the reconstructed luma samples corresponding to the target chroma samples may be derived based on a down-sampling filter.
- Various filters may be used as the downsampling filter, and an example of the downsampling filter may be expressed as the following equation.
- Rec ' L [x, y] is a reconstructed luma sample of the (x, y) coordinates in the downsampled corresponding luma block, Rec' L [2x, 2y] ≪ / RTI > (X, y) in the downsampled corresponding luma block based on the restored luma samples of the (2x, 2y) coordinates in the corresponding luma block corresponding to the target chroma samples of the (x, y) )
- Restoration luma samples of the coordinates can be derived.
- a luma component at a position more suitable for the current chroma block there may be a luma component at a position more suitable for the current chroma block than a luma component at a position derived according to the downsampling filter (i.e., a restoration luma sample of the corresponding luma block).
- a restoration luma sample of the corresponding luma block rather than performing the downsampling based on the restored luma samples of the (2x, 2y) coordinates in the corresponding luma block corresponding to the target chroma samples of the (x, y)
- the downsampling based on the sample can improve the prediction accuracy of the target chroma sample of the current chroma block.
- the bit amount of residual information can be reduced and the overall coding efficiency can be improved.
- the offset information for the current chroma block is signaled, the restoration luma samples of the appropriate position in the corresponding luma block are derived based on the offset information, and the downsampling is performed based on the restoration luma sample And performing a prediction of the current chroma block based on the downsampled restoration luma sample.
- 6 shows an example of adjusting the position of the restored luma sample corresponding to the target chroma sample of the current chroma block.
- offset information at the corresponding position is obtained instead of the restoration luma sample of the corresponding position (for example, (2x, 2y) coordinate) in the corresponding luma block corresponding to the target chroma sample of the (x, y)
- a restoration luma sample of the modified position based on the above can be used for downsampling.
- the offset information may include x offset information for the x component and y offset information for the y component.
- the offset information for the modified position can be interpreted based on the search range and the mobile unit promised for the transmitter and the receiver, that is, the encoding apparatus and the decoding apparatus.
- the encoding apparatus and the decoding apparatus can set a search range from which the corrected position is derived, and when the position corresponding to the target chroma sample of the current chroma block is (0, 0), the search range is x Axis can be set from -N / 2 to + N / 2 on the axis, and from -N / 2 to N / 2 on the y-axis. At this time, N can represent the size of the block.
- the moving unit may be set to a half pel unit, that is, a half sample unit. Accordingly, even if the values indicated by the x offset information and the y offset information are parsed as integers, the values can be interpreted in units of half samples. Accordingly, in the corresponding position, the integer value (i.e., x offset) represented by the x offset information is shifted in the x axis by a value obtained by multiplying by the moving unit, and the integer value (i.e., y offset) A position shifted in the y-axis by a value obtained by multiplying the moving unit can be derived to the corrected position.
- the integer value (i.e., x offset) represented by the x offset information is shifted in the x axis by a value obtained by multiplying by the moving unit, and the integer value (i.e., y offset)
- a position shifted in the y-axis by a value obtained by multiplying the moving unit can be derived to the corrected position.
- the modified position may represent a fractional sample position, in which case the restored luma sample of the modified position may be modified Can be derived through interpolation of restoration luma samples of integer sample locations around the location.
- an interpolation filter used in inter prediction, an interpolation filter used in intra prediction, or a new interpolation filter for the present invention may be designed and used.
- the offset information can be derived as shown in the following table.
- pos_offset_x is a syntax for the x offset information
- pos_offset_y is a syntax for the y offset information
- offset_zero_bit is a syntax for flag information indicating whether or not the offset information is transmitted. For example, if the value of the offset_zero_bit is 1, the offset information for the current chroma block including the x offset information and the y offset information may not be signaled. If the offset_zero_bit value is 0, The offset information for the current chroma block, including the x offset information and the y offset information, may be signaled. Meanwhile, the signs of the x offset information and the y offset information may be fixed to negative values.
- the value indicated by the x offset information and the value indicated by the y offset information may indicate the magnitude of the x offset and the y offset, and the sign of the values may be fixed to a negative value. Accordingly, when the x offset information and the y offset information are signaled, the corrected position can be derived as follows.
- X ' is the x component of the modified position
- X is the x component of the corresponding position
- offset X is the x offset
- Y is the y component of the corresponding position
- offset Y is the y offset. Therefore, when the downsampling filter of Equation (8) is applied, the x component X of the corresponding position in the corresponding luma block corresponding to the target chroma sample of the (x, y) coordinate of the current chroma block is 2x,
- the y component Y of the corresponding position in the luma block may be derived as 2y
- the x component X 'of the modified position is 2x - offset X * n
- the y component Y' of the modified position is 2y - offset Y * n Lt; / RTI >
- n may represent a predetermined moving unit.
- the modified position of the corresponding luma block may be derived based on the offset information for the modified position through the method described above and a downsampled restoration luma sample of the corresponding luma block based on the modified position Can be derived. Then, a prediction block of the current chroma block may be generated based on the downsampled restoration luma sample as shown in Equation (7).
- the same downsampling filter can be used for all blocks of the current image.
- the downsampling filter may be defined in advance in the encoding apparatus and the decoding apparatus, or the filter information indicating the downsampling filter for the current image may be defined as a sequence parameter set (SPS) or a video parameter set (VPS) May be included in the header information for controlling the sequence and transmitted. That is, the filter information indicating the downsampling filter can be signaled through a sequence parameter set (SPS) or a video parameter set (VPS), and downsampling of the corresponding luma block based on the filter information indicating the downsampling filter A downsampling filter may be derived.
- SPS sequence parameter set
- VPN video parameter set
- various downsampling filters may be used for the blocks of the current image, and different downsampling filters may be used for each block.
- the type of the downsampling filters may be derived based on the already decoded information, or the downsampling filter of the corresponding block may be selected based on the filter information signaled on a block basis.
- different downsampling filters may be used in slice units.
- the filter information may be transmitted through a slice segment header, and a down-sampling filter for the corresponding slice of the slice segment header including the filter information may be derived based on the filter information.
- different downsampling filters may be used for each picture.
- the filter information may be transmitted via a picture parameter set (PPS), and a downsampling filter for the corresponding picture of the PPS including the filter information may be derived based on the filter information.
- PPS picture parameter set
- Prediction of the chroma component of the current image can be performed based on two or more downsampling filters as described above.
- the two or more multiple downsampling filters may be configured as filter candidates for prediction of the chroma component.
- four down-sampling filters may be composed of filter candidates for down-sampling.
- the downsampling filters may be expressed by the following equations.
- Rec ' L [x, y] is a reconstructed luma sample of the (x, y) coordinates in the downsampled corresponding luma block
- Rec' L [2x, 2y] restoration of the luma samples Rec 'L [2x + 1,2y ] is the corresponding luma blocks within the (2x + 1,2y) coordinates of the restored luma samples
- Rec' L [2x + 1,2y + 1] is the corresponding luma
- the reconstructed luma sample, Rec ' L [2x, 2y + 1], of the (2x, 2y + 1) coordinate in the block represents the reconstructed luma sample of the (2x, 2y + 1) coordinate in the corresponding luma block.
- the downsampling filter of Equation (11) is selected by the downsampling filter for the current chroma block
- the downsampling filter in the corresponding luma block corresponding to the target chroma sample of the (x, y) (X, y) coordinates of the corresponding luma block downsampled based on the restoration luma sample of the 2x + 1, 2y) coordinate and the restoration luma sample of the (2x + 1, 2y + 1) have.
- a value obtained by adding 1 to the sum of the sample value of the restored luma sample of the (2x + 1, 2y) coordinate and the restored luma sample of the (2x + 1, Values derived by arithmetically shifting the values to the right can be derived as reconstructed luma samples of the (x, y) coordinates in the downsampled corresponding luma block.
- the downsampling filter of the current chroma block is selected as the downsampling filter for the current chroma block
- the downsampling filter in the corresponding luma block corresponding to the target chroma sample of the (x, y) (X, y) coordinates in the corresponding luma block downsampled based on the restoration luma samples of the 2x, 2y + 1, 2x, 2y + have.
- Values derived by arithmetically shifting the values to the right can be derived as reconstructed luma samples of the (x, y) coordinates in the downsampled corresponding luma block.
- the downsampling filter of Equation (13) is selected as the downsampling filter for the current chroma block
- the reconstructed luma samples of the (x, y) coordinates in the corresponding luma block that have been downsampled can be derived.
- a sample value of the restoration luma sample of the (2x, 2y) coordinate a sample value of the restoration luma sample of the (2x, 2y + 1) Value obtained by adding 2 to the sum of the sample value of the reconstructed luma sample of the (2x + 1, 2y + 1) coordinate and the value obtained by performing an arithmetic shift of the value to the right, (X, y) coordinates in the corresponding corresponding luma block.
- one of the downsampling filters represented by Equations (10) to (13) is used as a downsampling filter for predicting the current chroma block, i.e., a downsampling filter for downsampling the corresponding luma block
- a restoration luma sample at a position corresponding to the target chroma sample of the (x, y) coordinates of the current chroma block according to the downsampling filter may be used for the downsampling.
- a reconstructed luma sample of the modified position based on the offset information described above at a location corresponding to the target chroma sample according to the downsampling filter may be used for the downsampling.
- the filter candidates may include downsampling filters as described below.
- the downsampling filters may be expressed by the following equations.
- Rec ' L [x, y] is a reconstructed luma sample of the (x, y) coordinates in the downsampled corresponding luma block
- Rec' L [2x, 2y] restoration of the luma samples Rec 'L [2x + 1,2y ] is the corresponding luma blocks within the (2x + 1,2y) coordinates of the restored luma samples
- Rec' L [2x + 1,2y + 1] is the corresponding luma
- the reconstructed luma sample, Rec ' L [2x, 2y + 1], of the (2x, 2y + 1) coordinate in the block represents the reconstructed luma sample of the (2x, 2y + 1) coordinate in the corresponding luma block.
- the downsampling filter of Equation (15) is selected as the downsampling filter for the current chroma block
- the downsampling filter in the corresponding luma block corresponding to the target chroma sample of the (x, y) (X, y) coordinates of the corresponding luma block downsampled based on the restoration luma sample of the 2x + 1, 2y) coordinate and the restoration luma sample of the (2x + 1, 2y + 1) have.
- a value obtained by subtracting 1 from the sum of the sample value of the restored luma sample of the (2x + 1, 2y) coordinate and the restored luma sample of the (2x + 1, (X, y) coordinates in the downsampled corresponding luma block can be derived as a reconstructed luma sample of the downsampled corresponding luma block by arithmetic shifts to the right.
- the downsampling filter in the corresponding luma block corresponding to the target chroma sample of the (x, y) (X, y) coordinates in the corresponding luma block downsampled based on the restoration luma samples of the 2x, 2y + 1, 2x, 2y + have.
- Values derived by arithmetically shifting the values to the right can be derived as reconstructed luma samples of the (x, y) coordinates in the downsampled corresponding luma block.
- the downsampling filter of Equation (17) is selected as the downsampling filter for the current chroma block
- the reconstructed luma samples of the (x, y) coordinates in the corresponding luma block that have been downsampled can be derived.
- a sample value of the restoration luma sample of the (2x, 2y) coordinate a sample value of the restoration luma sample of the (2x, 2y + 1) Value obtained by subtracting 2 from the sum of the sample values of the restored luma samples of the (2x + 1, 2y + 1) coordinates is derived, and a value obtained by performing an arithmetic shift to the right- (X, y) coordinates in the corresponding corresponding luma block.
- one of the downsampling filters represented by Equations (14) to (17) is used as a downsampling filter for predicting the current chroma block, i.e., a downsampling filter for downsampling the corresponding luma block
- a restoration luma sample at a position corresponding to the target chroma sample of the (x, y) coordinates of the current chroma block according to the downsampling filter may be used for the downsampling.
- a reconstructed luma sample of the modified position based on the offset information described above at a location corresponding to the target chroma sample according to the downsampling filter may be used for the downsampling.
- FIG. 7 schematically shows a video encoding method by the encoding apparatus according to the present invention.
- the method disclosed in FIG. 7 can be performed by the encoding apparatus disclosed in FIG. Specifically, for example, S700 to S730 in FIG. 7 may be performed by the predicting unit of the encoding apparatus, and S740 may be performed by the entropy encoding unit of the encoding apparatus.
- the encoding device derives linear model parameters for the current chroma block based on the surrounding samples of the current chroma block and the surrounding samples of the corresponding luma block (S700).
- An encoding device may derive the surrounding samples of the current chroma block and the surrounding samples of the corresponding block.
- the corresponding block may be a corresponding luma block of luma components or a corresponding chroma block of chroma components other than the chroma component of the current chroma block.
- the corresponding block may be the corresponding luma block of the luma component or the corresponding chroma block of the chroma Cr component.
- the corresponding block may be the corresponding chroma block of the corresponding luma block or chroma Cb component of the luma component.
- the corresponding luma block or the corresponding chroma block may be a block already encoded at the encoding time of the current chroma block.
- the neighboring samples of the current chroma block may include left neighbor samples, upper left neighbor sample, and upper neighbor samples of the current chroma block, And may represent the surrounding samples of the corresponding luma block corresponding to neighboring samples. If the size of the current chroma block is MxN and the x component of the top-left sample position of the current chroma block is 0 and the y component is 0, the left neighbor samples are p [-1] [0] -1], p [-1] [N-1], the upper left neighbor sample is p [-1] ].
- the area including the neighboring samples of the current chroma block for deriving the linear model parameters may be referred to as a template of the current chroma block.
- the template of the current chroma block is p [-1 ] [0] to p [-1] [N-1], p [-1] .
- an area including the surrounding samples of the corresponding luma block corresponding to the neighboring samples of the current chroma block may be referred to as a template of the corresponding luma block.
- the encoding device may derive linear model parameters for the current chroma block based on the surrounding samples of the current chroma block and the surrounding samples of the corresponding luma block. That is, the encoding device may derive linear model parameters for the current chroma block based on the template of the current chroma block and the template of the corresponding luma block. Specifically, a relational expression between the current chroma block and the corresponding luma block may be derived based on neighbor samples of the current chroma block and surrounding samples of the corresponding luma block, May be a mathematical expression representing a model between blocks.
- the relational expression may be a mathematical expression representing a linear model of the current chroma block and the corresponding luma block, or a mathematical expression representing a model other than the linear model.
- the linear model parameters may include a coefficient and an offset of the linear model. The parameters may be derived based on Equations (5) and (6) described above.
- the encoding apparatus can generate a flag indicating whether to derive the intra prediction mode of the current chroma block based on the linear model. It may be determined whether to derive the intra prediction mode of the current chroma block among the plurality of candidate intra prediction modes based on the linear model based on the value of the flag. That is, it may be determined whether to derive the parameters based on the flag. For example, if the value of the flag is 1, the linear model parameters may be derived based on the surrounding samples of the current chroma block and the surrounding samples of the corresponding luma block, and the value of the flag is 0 , Then the linear model parameters may not be derived.
- the flag may be transmitted at a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice segment header, or a block level.
- the encoding device derives the corresponding position in the corresponding luma block for the target chroma sample of the current chroma block based on the downsampling filter (S710).
- the encoding device may derive the corresponding location in the corresponding luma block for the target chroma sample according to the downsampling filter.
- the downsampling filter may be derived as Equation (8).
- the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived as (2x, 2y) coordinates.
- the downsampling filter may be derived as shown in Equation (10).
- the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived as (2x, 2y) and (2x + 1, 2y) coordinates.
- the downsampling filter may be derived as shown in Equation (11).
- the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x + 1, 2y) and (2x + 1, 2y + 1) coordinates.
- the downsampling filter may be derived as Equation (12).
- the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived in the (2x, 2y + 1) coordinate and (2x + 1, 2y + 1) coordinate.
- the downsampling filter may be derived as shown in Equation (13).
- the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate is (2x, 2y), (2x, 2y + 1) 2x + 1, 2y + 1) coordinates.
- the downsampling filter may be derived as shown in Equation (14).
- the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived as (2x, 2y) and (2x + 1, 2y) coordinates.
- the downsampling filter may be derived as shown in Equation (15).
- the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x + 1, 2y) and (2x + 1, 2y + 1) coordinates.
- the downsampling filter may be derived as shown in Equation (16).
- the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived in the (2x, 2y + 1) coordinate and (2x + 1, 2y + 1) coordinate.
- the downsampling filter may be derived as Equation (17).
- the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate is (2x, 2y), (2x, 2y + 1) 2x + 1, 2y + 1) coordinates.
- the encoding apparatus may derive a predetermined downsampling filter to the downsampling filter.
- the encoding apparatus may constitute a plurality of downsampling filter candidates, and may derive a downsampling filter candidate of the plurality of downsampling filter candidates to the downsampling filter. That is, the encoding device may derive a downsampled reconstructed luma sample for the target chroma sample based further on downsampling filter candidates of one of the plurality of downsampling filter candidates.
- the encoding apparatus may generate filter information indicating downsampling filter candidates of one of the plurality of downsampling filter candidates.
- the filter information may be signaling through a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a block unit syntax information or a slice segment header.
- SPS sequence parameter set
- VPS video parameter set
- PPS picture parameter set
- block unit syntax information indicating downsampling filter candidates of one of the plurality of downsampling filter candidates.
- the downsampling filter candidates may include at least two downsampling filters among the downsampling filters derived as Equation (8) and Equation (10) to Equation (17) have.
- the downsampling filter candidates may include a first candidate to a fourth candidate, the first candidate being the above-described equation 10, the second candidate being the above-described equation 11, the third candidate being the aforementioned mathematical formula (12), and the fourth candidate can be derived as shown in Equation (13).
- the down-sampling filter candidates may include first to fourth candidates, and the first candidate is the above-described equation 14, the second candidate is the above-described equation 15, the third candidate is the above- The above-described formula (16) and the fourth candidate may be derived as shown in the above-mentioned equation (17).
- the encoding apparatus derives a corrected corresponding position (S720).
- the encoding apparatus may derive a reconstructed luma sample suitable for a predicted sample of the target chroma sample from a restored luma sample of the corresponding position within a search range, Location.
- the search range may be preset.
- the x-component range of the search range may range from -N / 2 to + N / 2 based on the x component of the corresponding position, and the y- N / 2.
- the encoding device may generate offset information indicating the difference between the corresponding position and the modified corresponding position.
- the offset information comprises x offset information indicating an x offset that is a difference between the x component of the corresponding position and the x component of the modified corresponding position, and x offset information indicating the difference between the y component of the corresponding position and the y component of the modified corresponding position and y offset information indicating a y offset.
- the value indicated by the x offset information included in the offset information and the value indicated by the y offset information may indicate the magnitude of the x offset and the y offset, and the sign of the values may be fixed to a negative value.
- the movement unit for the x offset and the y offset may be pre-set.
- the moving unit may be set to 1/2 sample.
- the x component of the modified corresponding position may be derived as the x component of the corresponding position minus the value of the x offset multiplied by the moving unit, and the y component of the modified corresponding position is the corresponding position
- the encoding device derives a downsampled reconstructed luma sample for the target chroma sample based on the downsampling filter and the reconstructed luma sample of the modified corresponding location (S730).
- the encoding device may derive a downsampled reconstructed luma sample for the target chroma sample based on the reconstructed luma sample of the modified corresponding location.
- the encoding device may perform downsampling based on a downsampling filter and a reconstructed luma sample of the modified corresponding location, and derive the downsampled reconstructed luma sample for the targeted chroma sample.
- the downsampling filter is derived as shown in Equation (8)
- the downsampling can be performed as the following equation.
- Rec 'L [x, y ] is a (x, y) down-sampled restored to the destination chroma samples of the coordinate luma samples
- Rec L [2x-offset x , 2y-offset y] is a (x, y)
- the restoration luma sample, offset x , of the modified corresponding location in the luma block for the target chroma sample of the coordinates may be the x offset and offset x may represent the y offset.
- the reconstructed luma sample of the modified corresponding position may be derived through interpolation of reconstructed luma samples of the integer sample position around the modified position.
- an interpolation filter used in inter prediction, an interpolation filter used in intra prediction, or a new interpolation filter for the present invention is used as a restoration luma sample Can be performed.
- the encoding apparatus generates a prediction sample of the target chroma sample based on the linear model parameters and the downsampled restoration luma sample (S740).
- An encoding device may generate the prediction samples of the target chroma samples of the current chroma block based on the linear model parameters and the downsampled reconstructed luma sample.
- the linear model parameters may include a coefficient and an offset.
- the coefficient may be referred to as a scaling factor.
- the encoding apparatus may generate the predicted sample of the target chroma sample, i.e., the prediction block of the current chroma block, by substituting the downsampled restoration luma sample into the relational expression representing the linear model.
- the encoding device may generate the prediction sample of the target chroma sample by adding the offset to the value obtained by multiplying the downsampled restoration luma sample by the coefficient.
- the sample of the prediction block of the current chroma block may be derived by adding the offset to a value obtained by multiplying the downsampled restoration luma sample by the coefficient.
- the prediction sample can be derived based on Equation (7).
- the encoding apparatus generates prediction information for the current chroma block, encodes it, and outputs it (S760).
- the encoding apparatus may encode the prediction information for the current chroma block and output it as a bit stream.
- the prediction information may include a flag indicating whether to derive an intra prediction mode of the current chroma block based on the linear model.
- the flag may be transmitted at a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice segment header, or a block level.
- the prediction information may include the offset information.
- the offset information may include x offset information indicating an x offset and y offset information indicating a y offset, and the offset information may be signaled through block-based syntax information. have.
- the prediction information may include flag information indicating whether the value of the offset information is 0 or not. For example, when the value of the flag information is 0, the flag information may indicate that the value of the offset information is not 0, and when the value of the flag information is 1, The value may be zero.
- the flag information may be signaled through block-based syntax information.
- the encoding apparatus may use the prediction sample as a reconstruction sample of the current chroma block, or may generate a residual sample based on the original sample and the derived prediction sample .
- the encoding apparatus may generate information on the residual based on the residual samples.
- the information on the residual may include transform coefficients relating to the residual sample.
- the encoding apparatus may derive the residual sample (or residual sample array) for the current chroma block based on the residual information.
- the encoding apparatus may derive the reconstructed sample based on the prediction sample and the residual sample. That is, the encoding apparatus may add the prediction sample and the residual sample to derive the reconstructed sample.
- the encoding apparatus may derive a reconstruction block or a reconstructed picture based on the reconstructed sample. It is as described above that the encoding apparatus can apply an in-loop filtering procedure such as deblocking filtering and / or SAO procedures to the restored picture to improve subjective / objective picture quality as needed. Also, the encoding apparatus can encode the information on the residual and output it in the form of a bit stream.
- the bitstream may be transmitted to a decoding device via a network or (digital) storage medium.
- the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
- FIG. 8 schematically shows a video decoding method by a decoding apparatus according to the present invention.
- the method disclosed in Fig. 8 can be performed by the decoding apparatus disclosed in Fig. Specifically, for example, S800 to S810, S830 to S850 in FIG. 8 may be performed by the predicting unit of the decoding apparatus, and S820 may be performed by the entropy decoding unit of the decoding apparatus.
- the decoding apparatus derives linear model parameters for the current chroma block based on neighbor samples of the current chroma block and neighbor samples of the luma block (S800).
- a decoding device may derive the surrounding samples of the current chroma block and the surrounding samples of the luma block.
- the luma block may represent a corresponding luma block of luma components.
- the decoding device may also derive linear model parameters for the current chroma block based on neighbor samples of the current chroma block and surrounding samples of the chroma block that is a different chroma block than the current chroma block.
- the chroma block which is a chroma component different from the current chroma block
- the chroma block may be a chroma block of a chroma Cr component.
- the chroma block when the chroma component of the current chroma block is a chroma Cr component, the chroma block, which is a chroma component different from the current chroma block, may be a chroma block of a chroma Cb component.
- the chroma block which is a chroma component different from the luma block or the current chroma block, may be a block already decoded at the decoding time of the current chroma block.
- a luma block is described in the following embodiments, it may be performed by a method for a chroma block which is a chroma component different from the current chroma block.
- the luma block may be referred to as a corresponding luma block.
- the neighboring samples of the current chroma block may include left neighbor samples, upper left neighbor samples, and upper neighbor samples of the current chroma block, And may represent the surrounding samples of the luma block corresponding to the samples. If the size of the current chroma block is MxN and the x component of the top-left sample position of the current chroma block is 0 and the y component is 0, the left neighbor samples are p [-1] [0] -1], p [-1] [N-1], the upper left neighbor sample is p [-1] ].
- the area including the neighboring samples of the current chroma block for deriving the linear model parameters may be referred to as a template of the current chroma block.
- the template of the current chroma block is p [-1 ] [0] to p [-1] [N-1], p [-1] .
- an area including the surrounding samples of the luma block corresponding to the neighboring samples of the current chroma block may be referred to as a template of the luma block.
- the decoding device may derive linear model parameters for the current chroma block based on the surrounding samples of the current chroma block and the surrounding samples of the luma block.
- the decoding apparatus may derive linear model parameters for the current chroma block based on the template of the current chroma block and the template of the luma block.
- a relational expression between the current chroma block and the luma block may be derived based on neighbor samples of the current chroma block and surrounding samples of the luma block, May be a mathematical expression representing a model.
- the relational expression may be a mathematical expression representing a linear model of the current chroma block and the luma block, or a mathematical expression representing a model other than the linear model.
- the linear model parameters may include a coefficient and an offset of the linear model. The parameters may be derived based on Equations (5) and (6) described above.
- a flag indicating whether to derive the intra prediction mode of the current chroma block based on the linear model can be obtained through the bit stream. It may be determined whether to derive the intra prediction mode of the current chroma block among the plurality of candidate intra prediction modes based on the linear model based on the value of the flag.
- the decoding apparatus may generate the temporary prediction block based on the flag and determine whether to derive an intra prediction mode of the current chroma block among the plurality of candidate intra prediction modes based on the temporary prediction block. That is, the decoding apparatus can determine whether to derive the parameters based on the flag.
- the parameters of the relational expression may be derived based on the neighbor samples of the current chroma block and the neighbor samples of the luma block, and the value of the flag may be 0 , The parameters of the above relation may not be derived.
- the flag may be received at a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice segment header, or a block level.
- the decoding apparatus derives the corresponding position in the luma block for the target chroma sample of the current chroma block (S810).
- the decoding device may derive the corresponding location in the luma block for the target chroma sample according to a downsampling filter.
- the downsampling filter may be derived as Equation (8).
- the corresponding position in the luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x, 2y) coordinates.
- the downsampling filter may be derived as shown in Equation (10).
- the corresponding positions in the luma block for the target chroma samples of the (x, y) coordinates may be derived as (2x, 2y) coordinates and (2x + 1, 2y) coordinates.
- the downsampling filter may be derived as shown in Equation (11).
- the corresponding position in the luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x + 1, 2y) and (2x + 1, 2y + 1) coordinates.
- the downsampling filter may be derived as Equation (12).
- the corresponding positions in the luma block for the target chroma samples of the (x, y) coordinates may be derived as (2x, 2y + 1) coordinates and (2x + 1, 2y + 1) coordinates.
- the downsampling filter may be derived as shown in Equation (13).
- the corresponding position in the luma block for the target chroma sample of the (x, y) coordinate is (2x, 2y), (2x, 2y + 1) + 1, 2y + 1) coordinates.
- the downsampling filter may be derived as shown in Equation (14).
- the corresponding positions in the luma block for the target chroma samples of the (x, y) coordinates may be derived as (2x, 2y) coordinates and (2x + 1, 2y) coordinates.
- the downsampling filter may be derived as shown in Equation (15).
- the corresponding position in the luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x + 1, 2y) and (2x + 1, 2y + 1) coordinates.
- the downsampling filter may be derived as shown in Equation (16).
- the corresponding positions in the luma block for the target chroma samples of the (x, y) coordinates may be derived as (2x, 2y + 1) coordinates and (2x + 1, 2y + 1) coordinates.
- the downsampling filter may be derived as Equation (17).
- the corresponding position in the luma block for the target chroma sample of the (x, y) coordinate is (2x, 2y), (2x, 2y + 1) + 1, 2y + 1) coordinates.
- the decoding apparatus may derive a predetermined downsampling filter by the downsampling filter.
- the decoding apparatus may obtain filter information indicating a downsampling filter candidate of one of a plurality of downsampling filter candidates through a bitstream, and derive the downsampling filter candidate indicated by the filter information to the downsampling filter . That is, the decoding apparatus can obtain filter information indicating a downsampling filter candidate of one of a plurality of downsampling filter candidates through the bitstream, and based on the downsampling filter candidate indicated by the filter information, A downsampled restoration luma sample for the sample can be derived.
- the filter information may be signaling through a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a block unit syntax information or a slice segment header.
- the downsampling filter candidates may include at least two downsampling filters among the downsampling filters derived as Equation (8) and Equation (10) to Equation (17) have.
- the downsampling filter candidates may include a first candidate to a fourth candidate, the first candidate being the above-described equation 10, the second candidate being the above-described equation 11, the third candidate being the aforementioned mathematical formula (12), and the fourth candidate can be derived as shown in Equation (13).
- the down-sampling filter candidates may include first to fourth candidates, and the first candidate is the above-described equation 14, the second candidate is the above-described equation 15, the third candidate is the above- The above-described formula (16) and the fourth candidate may be derived as shown in the above-mentioned equation (17).
- the decoding apparatus obtains offset information for the current chroma block through the bitstream (S820).
- the decoding apparatus can receive the offset information through the bitstream.
- the offset information may include x offset information indicating an x offset and y offset information indicating a y offset.
- the offset information may be signaled through block-based syntax information.
- the decoding apparatus can obtain flag information indicating whether the value of the offset information is 0 through the bit stream. For example, when the value of the flag information is 0, the flag information may indicate that the value of the offset information is not 0, and when the value of the flag information is 1, The value may be zero. If the flag information indicates that the value of the offset information is not 0, the offset information can be obtained through the bitstream, and if the flag information indicates that the value of the offset information is 0, The offset information may not be obtained.
- the decoding apparatus derives a modified corresponding position based on the corresponding position and the offset information (S830).
- the decoding apparatus can derive a position shifted by the offset information at the corresponding position to the corrected corresponding position.
- the modified corresponding position may be derived in a search range based on the corresponding position.
- the range of the x range of the search range is from -N / 2 to + N / 2 based on the x component of the corresponding position
- the range of the y range is from -N / 2 to + N / 2 Can be set beforehand.
- the value indicated by the x offset information included in the offset information and the value indicated by the y offset information may indicate the magnitude of the x offset and the y offset, and the sign of the values may be fixed to a negative value.
- a moving unit for the x offset and the y offset may be preset. For example, the moving unit may be set to 1/2 sample.
- the x component of the modified corresponding location may be derived as the x component of the corresponding location minus the value of the x offset multiplied by the mobile unit and the y component of the modified corresponding location is the y component of the corresponding location Subtracting the value obtained by multiplying the y offset by the reference unit, and the modified corresponding position may be derived based on Equation (9).
- the decoding apparatus derives a downsampled restoration luma sample for the target chroma sample based on the restored luma sample of the modified corresponding position (S840).
- the decoding device may derive a downsampled reconstructed luma sample for the target chroma sample based on the reconstructed luma sample of the modified corresponding location.
- the decoding device may perform downsampling based on a downsampling filter and a reconstructed luma sample of the modified corresponding location, and derive the downsampled reconstructed luma sample for the targeted chroma sample.
- the downsampling filter is derived as shown in Equation (8)
- the downsampling can be performed as the following equation.
- Rec 'L [x, y ] is a (x, y) down-sampled restored to the destination chroma samples of the coordinate luma samples
- Rec L [2x-offset x , 2y-offset y] is a (x, y)
- the restoration luma sample, offset x , of the modified corresponding location in the luma block for the target chroma sample of the coordinates may be the x offset and offset x may represent the y offset.
- the reconstructed luma sample of the modified corresponding position may be derived through interpolation of reconstructed luma samples of the integer sample position around the modified position.
- an interpolation filter used in inter prediction, an interpolation filter used in intra prediction, or a new interpolation filter for the present invention is used as a restoration luma sample Can be performed.
- the decoding apparatus generates a prediction sample of the target chroma sample based on the linear model parameters and the downsampled restoration luma sample (S850).
- the decoding apparatus may generate the prediction samples of the target chroma samples of the current chroma block based on the linear model parameters and the downsampled reconstructed luma samples.
- the linear model parameters may include a coefficient and an offset.
- the coefficient may be referred to as a scaling factor.
- the decoding apparatus may generate the predicted sample of the target chroma sample, i.e., the prediction block of the current chroma block, by substituting the downsampled restoration luma sample into the relational expression representing the linear model.
- the decoding apparatus may generate the prediction sample of the target chroma sample by adding the offset to the value obtained by multiplying the downsampled restoration luma sample by the coefficient.
- the sample of the prediction block of the current chroma block may be derived by adding the offset to a value obtained by multiplying the downsampled restoration luma sample by the coefficient.
- the prediction sample can be derived based on Equation (7).
- the decoding apparatus may use the prediction sample as a reconstruction sample of the current chroma block according to a prediction mode, or may add a residual sample to the prediction sample to generate a reconstruction sample .
- the decoder may receive information about the residual for the current chroma block if the residual sample for the current chroma block is present and information about the residual may be included in the information for the restored sample have.
- the information on the residual may include a transform coefficient relating to the residual sample.
- the decoding apparatus may derive the residual sample (or residual sample array) for the current chroma block based on the residual information.
- the decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample.
- the decoding apparatus can apply an in-loop filtering procedure such as deblocking filtering and / or SAO procedure to the restored picture in order to improve subjective / objective picture quality as necessary.
- the decoding apparatus can receive the prediction information for the current chroma block through the bitstream, and can perform entropy decoding.
- the prediction information may include a flag indicating whether to derive an intra prediction mode of the current chroma block based on a linear model.
- the flag may be received at a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice segment header, or a block level.
- the prediction information may include the offset information.
- the offset information may include x offset information indicating an x offset and y offset information indicating a y offset, and the offset information may be signaled through block-based syntax information. have.
- the prediction information may include flag information indicating whether the value of the offset information is 0 or not. For example, when the value of the flag information is 0, the flag information may indicate that the value of the offset information is not 0, and when the value of the flag information is 1, The value may be zero.
- the flag information may be signaled through block-based syntax information.
- prediction of the current chroma block is performed using a luma component for a current chroma block, downsampling is performed based on a luma component at a position more suitable for prediction of the current chroma block,
- the prediction accuracy of the current chroma block can be improved and the overall coding efficiency can be improved.
- prediction of a chroma component can be performed based on a plurality of downsampling filters, thereby improving prediction accuracy of the current chroma block, thereby improving overall coding efficiency.
- the above-described method according to the present invention can be implemented in software, and the encoding apparatus and / or decoding apparatus according to the present invention can perform image processing of, for example, a TV, a computer, a smart phone, a set- Device.
- the above-described method may be implemented by a module (a process, a function, and the like) that performs the above-described functions.
- the module is stored in memory and can be executed by the processor.
- the memory may be internal or external to the processor and may be coupled to the processor by any of a variety of well known means.
- the processor may comprise an application-specific integrated circuit (ASIC), other chipset, logic circuitry and / or a data processing device.
- the memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory cards, storage media, and / or other storage devices.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 선형 모델에 따른 크로마 성분 예측에 대한 영상 디코딩 방법 및 장치에 관한 것이다.The present invention relates to a video coding technique, and more particularly, to a video decoding method and apparatus for predicting chroma components according to a linear model in a video coding system.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다. 2. Description of the Related Art Demand for high-resolution, high-quality images such as high definition (HD) images and ultra high definition (UHD) images has recently increased in various fields. As the image data has high resolution and high quality, the amount of information or bits to be transmitted increases relative to the existing image data. Therefore, the image data can be transmitted using a medium such as a wired / wireless broadband line, When stored, the transmission cost and the storage cost are increased.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.Accordingly, there is a need for a highly efficient image compression technique for efficiently transmitting, storing, and reproducing information of high resolution and high quality images.
본 발명의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.SUMMARY OF THE INVENTION The present invention provides a method and apparatus for enhancing video coding efficiency.
본 발명의 다른 기술적 과제는 현재 크로마 블록과 다른 성분의 대응 블록을 기반으로 수행하는 인트라 예측 방법 및 장치를 제공함에 있다.It is another object of the present invention to provide an intra prediction method and apparatus for performing an intra prediction based on a corresponding block of a current chroma block and other components.
본 발명의 다른 기술적 과제는 현재 크로마 블록과 다른 성분의 대응 블록을 기반으로 인트라 예측 모드를 도출하는 예측 방법 및 장치를 제공함에 있다.It is another object of the present invention to provide a prediction method and apparatus for deriving an intra prediction mode based on a current block of a chroma block and other components.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은 현재 크로마 블록의 주변 샘플들 및 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록에 대한 선형 모델 파라미터(parameter)들을 도출하는 단계, 상기 현재 크로마 블록의 대상 크로마 샘플에 대한 상기 루마 블록 내 복원 루마 샘플의 대응 위치를 도출하는 단계, 비트스트림을 통하여 상기 현재 크로마 블록에 대한 오프셋 정보를 획득하는 단계, 상기 대응 위치 및 상기 오프셋 정보를 기반으로 수정된 대응 위치를 도출하는 단계, 상기 수정된 대응 위치의 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출하는 단계, 및 상기 선형 모델 파라미터들 및 상기 다운 샘플링된 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플의 예측 샘플을 생성하는 단계를 포함하는 것을 특징으로 한다.According to an embodiment of the present invention, an image decoding method performed by a decoding apparatus is provided. The method includes deriving linear parameter parameters for the current chroma block based on neighboring samples of the current chroma block and surrounding samples of the luma block, Obtaining offset information for the current chroma block through a bitstream, deriving a corresponding position that is modified based on the corresponding position and the offset information, Deriving a downsampled reconstructed luma sample for the target chroma sample based on the reconstructed luma sample of the corresponding location, and reconstructing the predicted sample of the target chroma sample based on the linear model parameters and the downsampled reconstructed luma sample And a step of generating the generated signal.
본 발명의 다른 일 실시예에 따르면, 영상 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는 비트스트림을 통하여 현재 크로마 블록에 대한 오프셋 정보를 포함하는 예측 정보를 획득하는 엔트로피 디코딩부, 및 상기 현재 크로마 블록의 주변 샘플들 및 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록에 대한 선형 모델 파라미터(parameter)들을 도출하고, 상기 현재 크로마 블록의 대상 크로마 샘플에 대한 상기 루마 블록 내 복원 루마 샘플의 대응 위치를 도출하고, 상기 대응 위치 및 상기 오프셋 정보를 기반으로 수정된 대응 위치를 도출하고, 상기 수정된 대응 위치의 복원 샘플을 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출하고, 상기 선형 모델 파라미터들 및 상기 다운 샘플링된 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플의 예측 샘플을 생성하는 예측부를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, there is provided a decoding apparatus for performing image decoding. The decoding apparatus includes an entropy decoding unit that obtains prediction information including offset information for a current chroma block through a bitstream, and an entropy decoding unit for decoding the current chroma block based on neighbor samples of the current chroma block and surrounding samples of the luma block. Deriving a corresponding position of the restoration luma sample in the luma block for the target chroma sample of the current chroma block and determining a corresponding position based on the corresponding position and the offset information Deriving a downsampled reconstructed luma sample for the target chroma sample based on the reconstructed sample of the modified corresponding location, and based on the linear model parameters and the downsampled reconstructed luma sample, And a prediction unit for generating a prediction sample of .
본 발명의 또 다른 일 실시예에 따르면, 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법을 제공한다. 상기 방법은 현재 크로마 블록의 주변 샘플들 및 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록에 대한 선형 모델 파라미터(parameter)들을 도출하는 단계, 상기 현재 크로마 블록의 대상 크로마 샘플에 대한 상기 루마 블록 내 복원 루마 샘플의 대응 위치를 도출하는 단계, 수정된 대응 위치를 도출하는 단계, 상기 수정된 대응 위치의 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출하는 단계, 상기 선형 모델 파라미터들 및 상기 다운 샘플링된 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플의 예측 샘플을 생성하는 단계, 및 상기 현재 크로마 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 단계를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, there is provided a video encoding method performed by an encoding apparatus. The method includes deriving linear parameter parameters for the current chroma block based on neighboring samples of the current chroma block and surrounding samples of the luma block, Deriving a corresponding position of the reconstructed luma sample, deriving a modified corresponding position, deriving a downsampled reconstructed luma sample for the target chroma sample based on the reconstructed luma sample of the modified corresponding position, Generating predicted samples of the target chroma samples based on the linear model parameters and the downsampled restored luma samples, and generating, encoding, and outputting prediction information for the current chroma block. do.
본 발명의 또 다른 일 실시예에 따르면, 비디오 인코딩 장치를 제공한다. 상기 인코딩 장치는 현재 크로마 블록의 주변 샘플들 및 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록에 대한 선형 모델 파라미터(parameter)들을 도출하고, 상기 현재 크로마 블록의 대상 크로마 샘플에 대한 상기 루마 블록 내 복원 루마 샘플의 대응 위치를 도출하고, 수정된 대응 위치를 도출하고, 상기 수정된 대응 위치의 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출하고, 상기 선형 모델 파라미터들 및 상기 다운 샘플링된 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플의 예측 샘플을 생성하는 예측부, 및 상기 현재 크로마 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 엔트로피 인코딩부를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, there is provided a video encoding apparatus. Wherein the encoding device derives linear model parameters for the current chroma block based on neighboring samples of the current chroma block and surrounding samples of the luma block and generates linear model parameters for the current chroma block in the luma block Deriving a corresponding position of the restored luma sample, deriving a corrected corresponding position, deriving a downsampled restoration luma sample for the target chroma sample based on the restored luma sample of the modified corresponding position, And a prediction unit for generating prediction samples of the target chroma samples based on the downsampled restoration luma samples, and an entropy encoding unit for generating, encoding, and outputting prediction information for the current chroma block .
본 발명에 따르면 현재 크로마 블록에 대한 루마 성분을 이용하여 상기 현재 크로마 블록의 예측을 수행하되, 상기 현재 크로마 블록의 예측에 보다 적합한 위치의 루마 성분을 기반으로 다운 샘플링을 수행하고, 다운 샘플링된 루마 성분을 기반으로 예측을 수행할 수 있는바, 상기 현재 크로마 블록의 예측 정확도가 향상시킬 수 있고, 이를 통하여 전반적인 코딩 효율을 향상시킬 수 있다.According to the present invention, prediction of the current chroma block is performed using a luma component for a current chroma block, downsampling is performed based on a luma component more suitable for prediction of the current chroma block, The prediction accuracy of the current chroma block can be improved and the overall coding efficiency can be improved.
본 발명에 따르면 복수의 다운 샘플링 필터들을 기반으로 크로마 성분의 예측을 수행할 수 있고, 이를 통하여 상기 현재 크로마 블록의 예측 정확도가 향상시킬 수 있고, 이를 통하여 전반적인 코딩 효율을 향상시킬 수 있다.According to the present invention, prediction of a chroma component can be performed based on a plurality of downsampling filters, thereby improving prediction accuracy of the current chroma block, thereby improving overall coding efficiency.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. FIG. 1 is a view for schematically explaining a configuration of a video encoding apparatus to which the present invention can be applied.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.2 is a schematic view illustrating a configuration of a video decoding apparatus to which the present invention can be applied.
도 3은 상기 현재 블록의 인트라 예측에 사용되는 상기 좌측 주변 샘플들 및 상측 주변 샘플들을 예시적으로 나타낸다.FIG. 3 exemplarily shows the left neighbor samples and the upper neighbor samples used for intra prediction of the current block.
도 4는 65개의 예측 방향의 인트라 방향성 모드들을 예시적으로 나타낸다.FIG. 4 illustrates exemplary intra-directional modes of 65 prediction directions.
도 5는 상기 대응 루마 블록과 상기 현재 크로마 블록과의 관계식을 도출하는데 사용되는 상기 현재 크로마 블록의 주변 샘플들 및 상기 대응 루마 블록의 주변 샘플들을 예시적으로 나타낸다.5 exemplarily shows neighbor samples of the current chroma block and surrounding samples of the corresponding luma block used to derive the relational expression of the corresponding luma block and the current chroma block.
도 6은 상기 현재 크로마 블록의 대상 크로마 샘플과 대응하는 복원 루마 샘플의 위치를 조정하는 일 예를 나타낸다.6 shows an example of adjusting the position of the restored luma sample corresponding to the target chroma sample of the current chroma block.
도 7은 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다.7 schematically shows a video encoding method by the encoding apparatus according to the present invention.
도 8은 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다.8 schematically shows a video decoding method by a decoding apparatus according to the present invention.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. However, this is not intended to limit the invention to the specific embodiments. It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of the present invention. The singular expressions include plural expressions unless the context clearly dictates otherwise. It is to be understood that the terms "comprises", "having", and the like in the specification are intended to specify the presence of stated features, integers, steps, operations, elements, parts or combinations thereof, It should be understood that they do not preclude the presence or addition of a combination of numbers, steps, operations, components, parts, or combinations thereof.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.In the meantime, the configurations of the drawings described in the present invention are shown independently for convenience of description of different characteristic functions, and do not mean that the configurations are implemented as separate hardware or separate software. For example, two or more of the configurations may combine to form one configuration, or one configuration may be divided into a plurality of configurations. Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention unless they depart from the essence of the present invention.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Hereinafter, the same reference numerals will be used for the same constituent elements in the drawings, and redundant explanations for the same constituent elements will be omitted.
본 명세서에서 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다.In this specification, a picture generally refers to a unit that represents one image in a specific time zone, and a slice is a unit that constitutes a part of a picture in coding. One picture may be composed of a plurality of slices, and pictures and slices may be used in combination if necessary.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. A pixel or a pel may mean a minimum unit of a picture (or image). Also, a 'sample' may be used as a term corresponding to a pixel. A sample may generally represent a pixel or pixel value and may only represent a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.
유닛(unit)은 영상 처리의 기본 단위를 나타낸다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다.A unit represents a basic unit of image processing. A unit may include at least one of a specific area of a picture and information related to the area. The unit may be used in combination with terms such as a block or an area in some cases. In general, an MxN block may represent a set of samples or transform coefficients consisting of M columns and N rows.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. FIG. 1 is a view for schematically explaining a configuration of a video encoding apparatus to which the present invention can be applied.
도 1을 참조하면, 비디오 인코딩 장치(100)는 픽처 분할부(105), 예측부(110), 레지듀얼 처리부(120), 엔트로피 인코딩부(130), 가산부(140), 필터부(150) 및 메모리(160)을 포함할 수 있다. 레지듀얼 처리부(120)는 감산부(121), 변환부(122), 양자화부(123), 재정렬부(124), 역양자화부(125) 및 역변환부(126)를 포함할 수 있다. 1, the
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다. The
일 예로, 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다. In one example, the processing unit may be referred to as a coding unit (CU). In this case, the coding unit may be recursively partitioned according to a quad-tree binary-tree (QTBT) structure from the largest coding unit (LCU). For example, one coding unit may be divided into a plurality of coding units of deeper depth based on a quadtree structure and / or a binary tree structure. In this case, for example, the quadtree structure is applied first and the binary tree structure can be applied later. Or a binary tree structure may be applied first. The coding procedure according to the present invention can be performed based on the final coding unit which is not further divided. In this case, the maximum coding unit may be directly used as the final coding unit based on the coding efficiency or the like depending on the image characteristics, or the coding unit may be recursively divided into lower-depth coding units Lt; / RTI > may be used as the final coding unit. Here, the coding procedure may include a procedure such as prediction, conversion, and restoration, which will be described later.
다른 예로, 처리 유닛은 코딩 유닛(coding unit, CU) 예측 유닛(prediction unit, PU) 또는 변환 유닛(transform unit, TU)을 포함할 수도 있다. 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 쿼드 트리 구조를 따라서 하위(deeper) 뎁스의 코딩 유닛들로 분할(split)될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 최소 코딩 유닛(smallest coding unit, SCU)이 설정된 경우 코딩 유닛은 최소 코딩 유닛보다 더 작은 코딩 유닛으로 분할될 수 없다. 여기서 최종 코딩 유닛이라 함은 예측 유닛 또는 변환 유닛으로 파티셔닝 또는 분할되는 기반이 되는 코딩 유닛을 의미한다. 예측 유닛은 코딩 유닛으로부터 파티셔닝(partitioning)되는 유닛으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록(sub block)으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 유닛일 수 있다. 이하, 코딩 유닛은 코딩 블록(coding block, CB), 예측 유닛은 예측 블록(prediction block, PB), 변환 유닛은 변환 블록(transform block, TB) 으로 불릴 수 있다. 예측 블록 또는 예측 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 예측 샘플의 어레이(array)를 포함할 수 있다. 또한, 변환 블록 또는 변환 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 변환 계수 또는 레지듀얼 샘플의 어레이를 포함할 수 있다.As another example, the processing unit may include a coding unit (CU) prediction unit (PU) or a transform unit (TU). The coding unit may be split from the largest coding unit (LCU) into coding units of deeper depth along the quad tree structure. In this case, the maximum coding unit may be directly used as the final coding unit based on the coding efficiency or the like depending on the image characteristics, or the coding unit may be recursively divided into lower-depth coding units Lt; / RTI > may be used as the final coding unit. When a smallest coding unit (SCU) is set, the coding unit can not be divided into smaller coding units than the minimum coding unit. Herein, the term " final coding unit " means a coding unit on which the prediction unit or the conversion unit is partitioned or divided. A prediction unit is a unit that is partitioned from a coding unit, and may be a unit of sample prediction. At this time, the prediction unit may be divided into sub-blocks. The conversion unit may be divided along the quad-tree structure from the coding unit, and may be a unit for deriving a conversion coefficient and / or a unit for deriving a residual signal from the conversion factor. Hereinafter, the coding unit may be referred to as a coding block (CB), the prediction unit may be referred to as a prediction block (PB), and the conversion unit may be referred to as a transform block (TB). The prediction block or prediction unit may refer to a specific area in the form of a block in a picture and may include an array of prediction samples. Also, a transform block or transform unit may refer to a specific region in the form of a block within a picture, and may include an array of transform coefficients or residual samples.
예측부(110)는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(110)에서 수행되는 예측의 단위는 코딩 블록일 수 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.The
예측부(110)는 현재 블록에 인트라 예측이 적용되는지 인터 예측이 적용되는지를 결정할 수 있다. 일 예로, 예측부(110)는 CU 단위로 인트라 예측 또는 인터 예측이 적용되는지를 결정할 수 있다.The
인트라 예측의 경우에, 예측부(110)는 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 현재 블록 외부의 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 예측부(110)는 (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 인트라 예측에서 예측 모드는 예를 들어 33개의 방향성 예측 모드와 적어도 2개 이상의 비방향성 모드를 가질 수 있다. 비방향성 모드는 DC 예측 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 예측부(110)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.In the case of intra prediction, the
인터 예측의 경우에, 예측부(110)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 샘플을 기반으로, 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(110)는 스킵(skip) 모드, 머지(merge) 모드, 및 MVP(motion vector prediction) 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 스킵 모드와 머지 모드의 경우에, 예측부(110)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차(레지듀얼)가 전송되지 않는다. MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(Motion Vector Predictor)로 이용하여 현재 블록의 움직임 벡터 예측자로 이용하여 현재 블록의 움직임 벡터를 유도할 수 있다.In the case of inter prediction, the
인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처(reference picture)에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 움직임 정보(motion information)는 움직임 벡터와 참조 픽처 인덱스를 포함할 수 있다. 예측 모드 정보와 움직임 정보 등의 정보는 (엔트로피) 인코딩되어 비트스트림 형태로 출력될 수 있다.In the case of inter prediction, a neighboring block may include a spatial neighboring block existing in a current picture and a temporal neighboring block existing in a reference picture. The reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic). The motion information may include a motion vector and a reference picture index. Information such as prediction mode information and motion information may be (entropy) encoded and output in the form of a bit stream.
스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트(reference picture list) 상의 최상위 픽처가 참조 픽처로서 이용될 수도 있다. 참조 픽처 리스트(Picture Order Count)에 포함되는 참조 픽처들은 현재 픽처와 해당 참조 픽처 간의 POC(Picture order count) 차이 기반으로 정렬될 수 있다. POC는 픽처의 디스플레이 순서에 대응하며, 코딩 순서와 구분될 수 있다.When the motion information of the temporal neighboring blocks is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as a reference picture. The reference pictures included in the picture order count can be sorted on the basis of the picture order count (POC) difference between the current picture and the corresponding reference picture. The POC corresponds to the display order of the pictures and can be distinguished from the coding order.
감산부(121)는 원본 샘플과 예측 샘플 간의 차이인 레지듀얼 샘플을 생성한다. 스킵 모드가 적용되는 경우에는, 상술한 바와 같이 레지듀얼 샘플을 생성하지 않을 수 있다.The
변환부(122)는 변환 블록 단위로 레지듀얼 샘플을 변환하여 변환 계수(transform coefficient)를 생성한다. 변환부(122)는 해당 변환 블록의 사이즈와, 해당 변환 블록과 공간적으로 겹치는 코딩 블록 또는 예측 블록에 적용된 예측 모드에 따라서 변환을 수행할 수 있다. 예컨대, 상기 변환 블록과 겹치는 상기 코딩 블록 또는 상기 예측 블록에 인트라 예측이 적용되었고, 상기 변환 블록이 4×4의 레지듀얼 어레이(array)라면, 레지듀얼 샘플은 DST(Discrete Sine Transform) 변환 커널을 이용하여 변환되고, 그 외의 경우라면 레지듀얼 샘플은 DCT(Discrete Cosine Transform) 변환 커널을 이용하여 변환할 수 있다.The transforming
양자화부(123)는 변환 계수들을 양자화하여, 양자화된 변환 계수를 생성할 수 있다.The
재정렬부(124)는 양자화된 변환 계수를 재정렬한다. 재정렬부(124)는 계수들 스캐닝(scanning) 방법을 통해 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있다. 여기서 재정렬부(124)는 별도의 구성으로 설명하였으나, 재정렬부(124)는 양자화부(123)의 일부일 수 있다.The
엔트로피 인코딩부(130)는 양자화된 변환 계수들에 대한 엔트로피 인코딩을 수행할 수 있다. 엔트로피 인코딩부(130)는 양자화된 변환 계수들에 대한 레지듀얼 정보를 도출하고, 이를 엔트로피 인코딩할 수 있다. 엔트로피 인코딩은 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 인코딩 방법을 포함할 수 있다. 엔트로피 인코딩부(130)는 양자화된 변환 계수 외 비디오 복원에 필요한 정보들(예컨대 신택스 요소(syntax element)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 인코딩된 정보들은 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. The
역양자화부(125)는 양자화부(123)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(126)는 역양자화부(125)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.The
가산부(140)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(140)는 별도의 구성으로 설명하였으나, 가산부(140)는 예측부(110)의 일부일 수 있다. 한편, 가산부(140)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다.The
복원된 픽처(reconstructed picture)에 대하여 필터부(150)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(150)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.For the reconstructed picture, the
메모리(160)는 복원 픽처(디코딩된 픽처) 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(150)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.The
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.2 is a schematic view illustrating a configuration of a video decoding apparatus to which the present invention can be applied.
도 2를 참조하면, 비디오 디코딩 장치(200)는 엔트로피 디코딩부(210), 레지듀얼 처리부(220), 예측부(230), 가산부(240), 필터부(250) 및 메모리(260)을 포함할 수 있다. 여기서 레지듀얼 처리부(220)는 재정렬부(221), 역양자화부(222), 역변환부(223)을 포함할 수 있다. 2, the
비디오 정보를 포함하는 비트스트림이 입력되면, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 비디오 정보가 처리된 프로세스에 대응하여 비디오를 복원할 수 있다.When a bitstream including video information is input, the
예컨대, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 적용된 처리 유닛을 이용하여 비디오 디코딩을 수행할 수 있다. 따라서 비디오 디코딩의 처리 유닛 블록은 일 예로 코딩 유닛일 수 있고, 다른 예로 코딩 유닛, 예측 유닛 또는 변환 유닛일 수 있다. 코딩 유닛은 최대 코딩 유닛으로부터 쿼드 트리 구조 및/또는 바이너리 트리 구조를 따라서 분할될 수 있다. For example, the
예측 유닛 및 변환 유닛이 경우에 따라 더 사용될 수 있으며, 이 경우 예측 블록은 코딩 유닛으로부터 도출 또는 파티셔닝되는 블록으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 또는 변환 계수로부터 레지듀얼 신호를 유도하는 유닛일 수 있다. A prediction unit and a conversion unit may be further used as the case may be, in which case the prediction block is a block derived or partitioned from the coding unit and may be a unit of sample prediction. At this time, the prediction unit may be divided into sub-blocks. The conversion unit may be divided along the quad tree structure from the coding unit and may be a unit that derives the conversion factor or a unit that derives the residual signal from the conversion factor.
엔트로피 디코딩부(210)는 비트스트림을 파싱하여 비디오 복원 또는 픽처 복원에 필요한 정보를 출력할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 비디오 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. The
보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다.More specifically, the CABAC entropy decoding method includes receiving a bean corresponding to each syntax element in a bitstream, decoding decoding target information of the decoding target syntax element, decoding information of a surrounding and decoding target block, or information of a symbol / A context model is determined and an occurrence probability of a bin is predicted according to the determined context model to perform arithmetic decoding of the bean to generate a symbol corresponding to the value of each syntax element have. At this time, the CABAC entropy decoding method can update the context model using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(230)로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수는 재정렬부(221)로 입력될 수 있다.Information regarding prediction in the information decoded by the
재정렬부(221)는 양자화되어 있는 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 재정렬부(221)는 인코딩 장치에서 수행된 계수 스캐닝에 대응하여 재정렬을 수행할 수 있다. 여기서 재정렬부(221)는 별도의 구성으로 설명하였으나, 재정렬부(221)는 역양자화부(222)의 일부일 수 있다.The
역양자화부(222)는 양자화되어 있는 변환 계수들을 (역)양자화 파라미터를 기반으로 역양자화하여 변환 계수를 출력할 수 있다. 이 때, 양자화 파라미터를 유도하기 위한 정보는 인코딩 장치로부터 시그널링될 수 있다.The
역변환부(223)는 변환 계수들을 역변환하여 레지듀얼 샘플들을 유도할 수 있다. The
예측부(230)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(230)에서 수행되는 예측의 단위는 코딩 블록일 수도 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다. The
예측부(230)는 상기 예측에 관한 정보를 기반으로 인트라 예측을 적용할 것인지 인터 예측을 적용할 것인지를 결정할 수 있다. 이 때, 인트라 예측과 인터 예측 중 어느 것을 적용할 것인지를 결정하는 단위와 예측 샘플을 생성하는 단위는 상이할 수 있다. 아울러, 인터 예측과 인트라 예측에 있어서 예측 샘플을 생성하는 단위 또한 상이할 수 있다. 예를 들어, 인터 예측과 인트라 예측 중 어느 것을 적용할 것인지는 CU 단위로 결정할 수 있다. 또한 예를 들어, 인터 예측에 있어서 PU 단위로 예측 모드를 결정하고 예측 샘플을 생성할 수 있고, 인트라 예측에 있어서 PU 단위로 예측 모드를 결정하고 TU 단위로 예측 샘플을 생성할 수도 있다. The
인트라 예측의 경우에, 예측부(230)는 현재 픽처 내의 주변 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용할 예측 모드가 결정될 수도 있다. In the case of intra prediction, the
인터 예측의 경우에, 예측부(230)는 참조 픽처 상에서 움직임 벡터에 의해 참조 픽처 상에서 특정되는 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 스킵(skip) 모드, 머지(merge) 모드 및 MVP 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이때, 비디오 인코딩 장치에서 제공된 현재 블록의 인터 예측에 필요한 움직임 정보, 예컨대 움직임 벡터, 참조 픽처 인덱스 등에 관한 정보는 상기 예측에 관한 정보를 기반으로 획득 또는 유도될 수 있다In the case of inter prediction, the
스킵 모드와 머지 모드의 경우에, 주변 블록의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.In the skip mode and the merge mode, motion information of a neighboring block can be used as motion information of the current block. In this case, the neighboring block may include a spatial neighboring block and a temporal neighboring block.
예측부(230)는 가용한 주변 블록의 움직임 정보로 머지 후보 리스트를 구성하고, 머지 인덱스가 머지 후보 리스트 상에서 지시하는 정보를 현재 블록의 움직임 벡터로 사용할 수 있다. 머지 인덱스는 인코딩 장치로부터 시그널링될 수 있다. 움직임 정보는 움직임 벡터와 참조 픽처를 포함할 수 있다. The
스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차이(레지듀얼)이 전송되지 않는다.In the skip mode, unlike the merge mode, the difference between the predicted sample and the original sample (residual) is not transmitted.
MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하여 현재 블록의 움직임 벡터가 유도될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.In the MVP mode, a motion vector of a current block can be derived using a motion vector of a neighboring block as a motion vector predictor. In this case, the neighboring block may include a spatial neighboring block and a temporal neighboring block.
일 예로, 머지 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 머지 후보 리스트가 생성될 수 있다. 머지 모드에서는 머지 후보 리스트에서 선택된 후보 블록의 움직임 벡터가 현재 블록의 움직임 벡터로 사용된다. 상기 예측에 관한 정보는 상기 머지 후보 리스트에 포함된 후보 블록들 중에서 선택된 최적의 움직임 벡터를 갖는 후보 블록을 지시하는 머지 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 머지 인덱스를 이용하여, 현재 블록의 움직임 벡터를 도출할 수 있다.For example, when the merge mode is applied, a merge candidate list may be generated using a motion vector of the reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block that is a temporally neighboring block. In the merge mode, the motion vector of the candidate block selected in the merge candidate list is used as the motion vector of the current block. The prediction information may include a merge index indicating a candidate block having an optimal motion vector selected from the candidate blocks included in the merge candidate list. At this time, the predicting
다른 예로, MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터는 움직임 벡터 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 후보 중에서 선택된 최적의 움직임 벡터를 지시하는 예측 움직임 벡터 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 움직임 벡터 인덱스를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서, 현재 블록의 예측 움직임 벡터를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 예측부(230)는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 예측부는 또한 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다. As another example, when a motion vector prediction mode (MVP) is applied, a motion vector predictor candidate list is generated by using a motion vector of the reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block which is a temporally neighboring block . That is, the motion vector of the reconstructed spatial neighboring block and / or the motion vector corresponding to the neighboring block Col may be used as a motion vector candidate. The information on the prediction may include a predicted motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list. At this time, the predicting
가산부(240)는 레지듀얼 샘플과 예측 샘플을 더하여 현재 블록 혹은 현재 픽처를 복원할 수 있다. 가산부(240)는 레지듀얼 샘플과 예측 샘플을 블록 단위로 더하여 현재 픽처를 복원할 수도 있다. 스킵 모드가 적용된 경우에는 레지듀얼이 전송되지 않으므로, 예측 샘플이 복원 샘플이 될 수 있다. 여기서는 가산부(240)를 별도의 구성으로 설명하였으나, 가산부(240)는 예측부(230)의 일부일 수도 있다. 한편, 가산부(240)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다. The
필터부(250)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.The
메모리(260)는 복원 픽처(디코딩된 픽처) 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(250)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(260)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(260)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다.The
상술한 내용과 같이 현재 블록에 예측이 수행되는 경우, 인트라 예측 모드를 기반으로 상기 예측이 수행될 수 있다. 예를 들어, 상기 현재 블록의 디코딩 시점에 이미 인코딩/디코딩이 수행된 주변 샘플을 기반으로 상기 인트라 예측이 수행될 수 있다. 즉, 상기 현재 블록의 예측 샘플은 이미 복원된 상기 현재 블록의 좌측 주변 샘플들 및 상측 주변 샘플들을 사용하여 복원될 수 있다. 상기 좌측 주변 샘플들 및 상기 상측 주변 샘플들은 다음 도 3과 같이 나타낼 수 있다.If prediction is performed on the current block as described above, the prediction can be performed based on the intra prediction mode. For example, the intra prediction may be performed based on a neighboring sample that has already been encoded / decoded at the decoding time of the current block. That is, the prediction sample of the current block may be reconstructed using the left and right neighbor samples of the current block. The left peripheral samples and the upper peripheral samples may be expressed as shown in FIG.
도 3은 상기 현재 블록의 인트라 예측에 사용되는 상기 좌측 주변 샘플들 및 상측 주변 샘플들을 예시적으로 나타낸다. 상기 현재 블록에 인트라 예측이 수행되는 경우, 상기 현재 블록에 대한 인트라 예측 모드가 도출될 수 있고, 상기 인트라 예측 모드에 따라 상기 좌측 주변 샘플들 및 상측 주변 샘플들 중 적어도 하나를 이용하여 상기 현재 블록에 대한 예측 샘플이 생성될 수 있다. 여기서, 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 33개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 34번 인트라 예측 모드들을 포함할 수 있다. 상기 플래너 인트라 예측 모드는 플래너 모드라고 불릴 수 있고, 상기 DC 인트라 예측 모드는 DC 모드라고 불릴 수 있다. 또한, 10번 인트라 예측 모드는 수평 인트라 예측 모드(horizontal intra prediction mode) 또는 수평 모드, 26번 인트라 예측 모드는 수직 인트라 예측 모드(vertical intra prediction mode) 또는 수직 모드를 나타내며 이를 기준으로 방향성 인트라 모드(angular intra mode)의 예측 방향을 각도로 표현할 수 있다. 다시 말하자면, 10번 인트라 예측 모드에 대응하는 수평기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있고, 26번 인트라 예측 모드에 대응하는 수직기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있다.FIG. 3 exemplarily shows the left neighbor samples and the upper neighbor samples used for intra prediction of the current block. Wherein the intra prediction mode for the current block can be derived when intra prediction is performed on the current block and the intra prediction mode for the current block can be derived using the at least one of the left neighbor samples and the upper neighbor samples, Lt; / RTI > can be generated. Herein, the intra-prediction mode may include two non-directional intra-prediction modes and 33 directional intra-prediction modes. The non-directional intra-prediction modes may include a planar intra-prediction mode and a DC intra-prediction mode, and the directional intra-prediction modes may include
또한, 고화질의 비디오에 대한 수요가 늘어나고 있고, 이에 따른 비디오 코덱의 효율을 높이기 위해 방향성 인트라 예측 방향의 수가 65개로 증가할 수 있다. 즉, 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 66번 인트라 예측 모드들을 포함할 수 있다. In addition, the demand for high-quality video is increasing, and in order to increase the efficiency of the video codec, the number of directional intra prediction directions can be increased to 65. [ That is, the intra-prediction mode may include two non-directional intra-prediction modes and 65 directional intra-prediction modes. The non-directional intra-prediction modes may include a planar intra-prediction mode and a DC intra-prediction mode, and the directional intra-prediction modes may include
도 4는 65개의 예측 방향의 인트라 방향성 모드들을 예시적으로 나타낸다.FIG. 4 illustrates exemplary intra-directional modes of 65 prediction directions.
도 4를 참조하면, 좌상 대각 예측 방향을 갖는 34번 인트라 예측 모드를 중심으로 수평 방향성(horizontal directionality)을 갖는 인트라 예측 모드와 수직 방향성(vertical directionality)을 갖는 인트라 예측 모드를 구분할 수 있다. 도 4의 H와 V는 각각 수평 방향성과 수직 방향성을 의미하며, -32 ~ 32의 숫자는 샘플 그리드 포지션(sample grid position) 상에서 1/32 단위의 변위를 나타낸다. 2번 내지 33번 인트라 예측 모드는 수평 방향성, 34번 내지 66번 인트라 예측 모드는 수직 방향성을 갖는다. 18번 인트라 예측 모드와 50번 인트라 예측 모드는 각각 수평 인트라 예측 모드(horizontal intra prediction mode), 수직 인트라 예측 모드(vertical intra prediction mode)를 나타내며 이를 기준으로 방향성 인트라 예측 모드(angular intra prediction mode)의 예측 방향을 각도로 표현할 수 있다. 다시 말하자면, 18번 인트라 예측 모드에 대응하는 수평기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있고, 50번 인트라 예측 모드에 대응하는 수직기준각도 0˚를 기준으로 하여 각 인트라 예측 모드에 대응하는 상대적 각도를 표현할 수 있다.Referring to FIG. 4, an intra-prediction mode having a horizontal directionality and an intra-prediction mode having a vertical directionality can be distinguished from the intra-prediction mode # 34 having a left-side diagonal prediction direction. H and V in Fig. 4 indicate the horizontal direction and the vertical direction, respectively, and the numbers from -32 to 32 indicate displacements in 1/32 unit on the sample grid position. The
한편, 상기 현재 블록의 크로마 성분에 대하여 인트라 예측이 수행되는 경우, 이미 디코딩되어 복원된 상기 현재 블록의 루마 성분 또는 상기 크로마 성분과 다른 크로마 성분이 상기 현재 블록의 크로마 성분에 대한 인트라 예측에 사용될 수 있다. If intraprediction is performed on the chroma component of the current block, a luma component of the current block that is already decoded and restored or a chroma component different from the chroma component may be used for intra prediction on the chroma component of the current block have.
예를 들어, 입력 영상의 컬러 포맷(colour format)이 YCbCr 4:2:0 컬러 포맷이고, 루마 성분에 대한 인코딩/디코딩 과정이 완료된 경우, 다음 순서로 크로마 Cb 성분, 크로마 Cr 성분이 디코딩 되는 과정에서 상기 루마 성분의 인코딩/디코딩 정보가 사용될 수 있다. 상기 입력 영상의 컬러 포맷이 4:2:0 컬러 포맷인 경우, 상기 루마 성분이 각 크로마 성분보다 4배 많은 데이터를 가지고 있으므로, 상기 루마 성분은 각 크로마 성분에 맞춰 다운 샘플링(down sampling)될 수 있고, 상기 다운 샘플링된 루마 성분이 상기 각 크로마 성분의 인트라 예측에 사용될 수 있다. 여기서, 상기 현재 블록의 상기 크로마 성분은 현재 크로마 블록이라고 나타낼 수 있고, 상기 크로마 성분에 대응하는 루마 성분은 대응 루마 블록 또는 상기 현재 크로마 블록에 대한 루마 블록이라고 나타낼 수 있다. For example, when the color format of the input image is a YCbCr 4: 2: 0 color format and the encoding / decoding process for the luma component is completed, the chroma Cb component and the chroma Cr component are decoded in the following order Encoding / decoding information of the luma component may be used. If the color format of the input image is a 4: 2: 0 color format, the luma component has four times as many data as each chroma component, so that the luma component can be down- And the down sampled luma component may be used for intra prediction of each chroma component. Here, the chroma component of the current block may be referred to as a current chroma block, and the luma component corresponding to the chroma component may be referred to as a corresponding luma block or a luma block for the current chroma block.
구체적으로, 상기 대응 루마 블록을 기반으로 상기 현재 크로마 블록의 인트라 예측을 수행하는 방법은 후술하는 바와 같을 수 있다.In detail, the method of performing intra prediction of the current chroma block based on the corresponding luma block may be as follows.
도 5는 상기 대응 루마 블록과 상기 현재 크로마 블록과의 관계식을 도출하는데 사용되는 상기 현재 크로마 블록의 주변 샘플들 및 상기 대응 루마 블록의 주변 샘플들을 예시적으로 나타낸다. 도 5를 참조하면 상기 현재 크로마 블록의 주변 샘플들과 대응하는 상기 대응 루마 블록의 주변 샘플들이 도출될 수 있다. 상기 현재 크로마 블록의 주변 샘플들은 상기 현재 크로마 블록의 좌측 주변 샘플들, 좌상측 주변 샘플 및 상측 주변 샘플들을 포함할 수 있다. 여기서, 상기 현재 크로마 블록의 사이즈가 MxN이고, 상기 현재 크로마 블록의 좌상단(top-left) 샘플의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][0] 내지 p[-1][N-1], 상기 좌상측 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[M-1][-1] 일 수 있다. 5 exemplarily shows neighbor samples of the current chroma block and surrounding samples of the corresponding luma block used to derive the relational expression of the corresponding luma block and the current chroma block. Referring to FIG. 5, neighboring samples of the corresponding luma block corresponding to neighboring samples of the current chroma block may be derived. The neighbor samples of the current chroma block may include left neighbor samples, upper left neighbor samples, and upper neighbor samples of the current chroma block. If the size of the current chroma block is MxN and the x component of the top-left sample of the current chroma block is 0 and the y component is 0, the left neighbor samples are p [-1] [0] -1] to [p-1] [N-1], the upper left neighbor sample is p [-1] 1].
이 경우, 상기 대응 루마 블록의 주변 샘플들 및 상기 현재 크로마 블록의 주변 샘플들을 기반으로 상기 대응 루마 블록과 상기 현재 크로마 블록과의 선형 모델(linear model)이 도출될 수 있고, 상기 선형 모델 및 상기 루마 블록의 복원 루마 샘플들을 기반으로 상기 크로마 블록의 예측 샘플들이 도출될 수 있다. 상기 선형 모델은 상기 대응 루마 블록과 상기 현재 크로마 블록과의 관계식으로 나타낼 수 있다. 다시 말해, 상기 대응 루마 블록의 주변 샘플들 및 상기 현재 크로마 블록의 주변 샘플들을 기반으로 상기 관계식을 도출하고, 상기 관계식 및 상기 루마 블록의 복원 루마 샘플들을 기반으로 상기 현재 크로마 블록의 예측 샘플들이 도출될 수 있는바, 상술한 바와 같이 상기 현재 크로마 블록과 상기 현재 크로마 블록에 대응하는 상기 대응 루마 블록과의 상관성(correlation)을 이용한 인트라 예측 모드는 LM(linear model) 모드라고 나타낼 수 있다. 구체적으로, 상기 현재 크로마 블록의 주변 샘플들 및 상기 현재 크로마 블록의 주변 샘플들에 대응하는 상기 대응 루마 블록의 주변 샘플들을 기반으로 상기 관계식의 파라미터들이 도출될 수 있다. 상기 관계식의 파라미터들은 상기 관계식의 계수(coefficient)와 오프셋(offset)을 포함할 수 있다. 즉, 상기 현재 크로마 블록의 주변 샘플들 및 상기 대응 루마 블록의 주변 샘플들을 기반으로 상기 관계식의 계수 및 오프셋이 도출될 수 있다. 상기 계수는 스케일링 펙터(scaling factor)라고 불릴 수도 있다. 상기 현재 크로마 블록의 주변 샘플들 및 상기 대응 루마 블록의 주변 샘플들을 기반으로 도출되는 상기 관계식은 다음의 수학식과 같이 나타낼 수 있다.In this case, a linear model of the corresponding luma block and the current chroma block may be derived based on neighbor samples of the corresponding luma block and neighboring samples of the current chroma block, The prediction samples of the chroma block can be derived based on the restoration luma samples of the luma block. The linear model may be expressed by a relational expression between the corresponding luma block and the current chroma block. In other words, deriving the relational expression based on the surrounding samples of the corresponding luma block and the surrounding samples of the current chroma block, and deriving the prediction samples of the current chroma block based on the relational expression and restoration luma samples of the luma block As described above, the intra prediction mode using the correlation between the current chroma block and the corresponding luma block corresponding to the current chroma block may be referred to as an LM (linear model) mode. Specifically, the parameters of the relational expression may be derived based on neighbor samples of the current chroma block and neighbor samples of the corresponding luma block corresponding to neighbor samples of the current chroma block. The parameters of the relational expression may include a coefficient and an offset of the relational expression. That is, coefficients and offsets of the relational expression can be derived based on the surrounding samples of the current chroma block and the surrounding samples of the corresponding luma block. The coefficient may be referred to as a scaling factor. The relational expression derived based on the neighbor samples of the current chroma block and the surrounding samples of the corresponding luma block can be expressed by the following equation.
여기서, Refcb 는 상기 현재 크로마 블록의 주변 샘플, RefY 는 상기 대응 루마 블록의 주변 샘플, α는 상기 관계식의 계수, β는 상기 관계식의 오프셋을 나타낼 수 있다. Ref cb is a neighboring sample of the current chroma block, Ref Y is a neighboring sample of the corresponding luma block,? Is a coefficient of the relational expression, and? Is an offset of the relational expression.
구체적으로, 상기 파라미터인 상기 α 및 β는 현재 크로마 블록의 주변 샘플들과 상기 대응 루마 블록의 주변 샘플들이 가장 유사해지는 값을 최소자승법을 이용하여 계산한다. 이 경우 상기 대응 루마 블록의 주변 샘플들은 다운샘플링되어 사용될 수 있다.Specifically, the parameters α and β, which are the parameters, calculate a value by which the closest samples of the current chroma block and the neighboring samples of the corresponding luma block become similar to each other using the least squares method. In this case, the surrounding samples of the corresponding luma block may be down-sampled and used.
예를 들어, 상기 α 및 상기 β는 다음과 같은 수학식을 기반으로 도출될 수 있다. For example, the α and β may be derived based on the following equation.
여기서, 상기 파라미터들인 α 및 β는 각각 상기 계수 및 상기 오프셋을 나타내며, Refcb 는 상기 현재 크로마 블록의 (다운샘플링된) 주변 샘플, RefY 는 상기 대응 루마 블록의 주변 샘플을 나타낸다. 상기 파라미터 도출 과정에서는 상기 수학식 2의 양 변의 차이를 에러(E)로 볼 수 있으며, 코딩 장치는 상기 에러를 최소화 시켜주는 조건을 만족하는 파라미터들 α 및 β를 구할 수 있다.Here, the parameters a and b represent the coefficient and the offset, Ref cb represents a (downsampled) neighbor sample of the current chroma block, and Ref Y represents a surrounding sample of the corresponding luma block. In the parameter derivation process, the difference between the two sides of Equation (2) can be regarded as an error (E), and the coding apparatus can obtain the parameters? And? Satisfying the condition for minimizing the error.
상기 수학식 2에서 구하고자 하는 파라미터들 α 및 β는 결국 양변의 에러를 최소화 하는 값이므로, 상기 파라미터들을 구하기 위한 수학식은 다음과 같이 나타내어질 수 있다.Since the parameters α and β to be obtained in Equation (2) are values that minimize errors of both sides, the equation for obtaining the parameters can be expressed as follows.
여기서, E(α, β)는 에러를 최소화하는 α 및 β값을 나타내며, 여기서 i는 각 샘플의 인덱싱, λ(람다)는 제어 파라미터(control parameter)를 나타낸다. 상기 λ는 미리 정해질 수 있고, 또는 예를 들어, 상기 대응 루마 블록의 주변 샘플을 기반으로 도출될 수 있다. 일 예로, 와 같이 도출될 수 있고, 다른 예로 λ가 0으로 설정되어 상기 수학식 3의 후단은 생략될 수도 있다. 이는 후술하는 수학식들에서도 마찬가지이다. Where E (α, β) represents the α and β values minimizing the error, where i is the index of each sample and λ (lambda) is the control parameter. The lambda may be predetermined or may be derived, for example, based on the surrounding samples of the corresponding luma block. For example, And in another example, lambda is set to 0, the latter stage of the above equation (3) may be omitted. This is the same in the following equations.
상기 수학식 3를 정리하면 다음과 같이 나타낼 수 있다.The above equation (3) can be summarized as follows.
상기 수학식 4를 기반으로 상기 파라미터들 α 및 β는 다음과 같이 도출될 수 있다.Based on Equation (4), the parameters? And? Can be derived as follows.
상기 수학식 5에서 N은 정규화 파라미터(normalization parameter)를 나타낸다. 여기서 N은 상기 수학식 4의 부분으로부터 도출될 수 있다. 예를 들어, N은 상기 현재 크로마 블록의 사이즈를 기반으로 결정될 수 있다. In Equation (5), N denotes a normalization parameter. In this case, Lt; / RTI > For example, N may be determined based on the size of the current chroma block.
상술한 내용과 같이 상기 계수 α 및 상기 오프셋 β 가 도출된 경우, 상기 파라미터들이 상기 대응 루마 블록의 복원 루마 샘플이 적용되어 상기 현재 크로마 블록의 예측 샘플이 도출될 수 있다. 상기 대응 루마 블록의 복원 루마 샘플들이 적용된 상기 관계식은 다음의 수학식과 같이 나타낼 수 있다.When the coefficient alpha and the offset beta are derived as described above, the restoration luma samples of the corresponding luma block are applied to the parameters so that a predicted sample of the current chroma block can be derived. The relational expression to which the restoration luma samples of the corresponding luma block are applied can be expressed by the following equation.
여기서, predcb(i,j)는 상기 현재 크로마 블록의 (i,j) 좌표의 예측 샘플, recY'(i,j)는 상기 대응 루마 블록의 (i,j) 좌표의 복원 루마 샘플, α는 상기 계수, β는 상기 오프셋을 나타낼 수 있다. 한편, 상기 recY'(i,j)는 상기 대응 루마 블록의 다운 샘플링(down-sampled)된 복원 루마 샘플을 나타낼 수 있다.Pred cb (i, j) is the predicted sample of the (i, j) coordinate of the current chroma block and rec Y '(i, j) is the restoration luma sample of the (i, j) ? can be the coefficient, and? can represent the offset. On the other hand, the rec Y '(i, j) may represent a down-sampled restoration luma sample of the corresponding luma block.
한편, 상술한 내용과 같이 상기 선형 모델을 나타내는 관계식의 파라미터 α 및 파라미터 β 는 상기 현재 루마 블록의 인트라 예측에 사용되는 주변 샘플들 및 상기 현재 크로마 블록의 주변 샘플들 및 상기 루마 블록의 주변 샘플들로부터 도출될 수 있는바, 상기 현재 크로마 블록에 선형 모델을 사용한 예측이 수행되는지 여부를 나타내는 정보가 전송되는 것만으로 상술한 방법의 인트라 예측이 활용될 수 있다. In the meantime, as described above, the parameter α and the parameter β of the relational expressions representing the linear model are the same as the neighboring samples used in the intra prediction of the current luma block and the neighbor samples of the current chroma block and the neighbor samples of the luma block The intra prediction of the above-described method can be utilized merely by transmitting information indicating whether prediction using the linear model is performed on the current chroma block.
한편, 실시예에서는 루마 성분과 크로마 Cb 성분과의 상관성을 이용하여 상기 크로마 Cb 성분의 예측을 수행하는 방법을 나타내고 있으나, 상기 루마 성분과 크로마 Cb 성분뿐만 아니라 다른 성분들 간의 상관성을 기반으로 인트라 예측이 수행될 수 있다. 또한, 상술한 선형 모델뿐만 아니라 성분들 간의 관계를 정의하는 다양한 모델링 기법에 의해 인트라 예측이 수행될 수 있다. 또한, 입력 영상의 컬러 포맷이 YCbCr 4:2:0 컬러 포맷인 경우에 국한되지 않고, 상기 입력 영상의 컬러 포맷이 각 성분간의 변환(conversion)이 가능한 컬러 포맷이면 상술한 예측 방법이 적용될 수 있다. 특히, 입력 영상의 컬러 포맷이 RGB 컬러 포맷이나 YCbCr 4:4:4 컬러 포맷과 같이 모든 성분의 정보의 양이 동일한 컬러 포맷인 경우, 루마 성분에 대한 다운 샘플링(Down-sampling)은 생략될 수 있다. Meanwhile, in the embodiment, although the method of predicting the chroma Cb component using the correlation between the luma component and the chroma Cb component is shown, it is also possible to perform intra prediction based on the correlation between the luma component and the chroma Cb component as well as other components Can be performed. In addition, intraprediction can be performed by various modeling techniques that define the relationship between the components as well as the linear model described above. In addition, the present invention is not limited to the case where the color format of the input image is the YCbCr 4: 2: 0 color format, and the above-described prediction method can be applied if the color format of the input image is a color format capable of conversion between the respective components . In particular, if the color format of the input image is a color format in which the amount of information of all components is the same, such as the RGB color format or the YCbCr 4: 4: 4 color format, down-sampling on the luma component may be omitted have.
상술한 내용과 같이 입력 영상의 컬러 포맷이 RGB 컬러 포맷이나 YCbCr 4:4:4 컬러 포맷과 같이 모든 성분의 정보의 양이 동일한 컬러 포맷이 아닌 경우, 상기 현재 크로마 블록에 대응 루마 블록에 대한 다운 샘플링이 수행되어 상기 현재 크로마 블록과 같은 사이즈의 다운 샘플링된 대응 루마 블록이 도출될 수 있다. 이후, 상술한 수학식 7과 같이 정의된 선형 모델을 기반으로 상기 현재 크로마 블록에 대한 예측 블록이 생성될 수 있다. 여기서, 상기 다운 샘플링된 대응 루마 블록은 상기 대응 루마 블록의 복원 루마 샘플들 중 상기 현재 크로마 블록의 대상 크로마 샘플과 대응하는 복원 루마 샘플을 기반으로 도출될 수 있다. 상기 대상 크로마 샘플과 대응하는 복원 루마 샘플은 다운 샘플링 필터(down-sampling filter)를 기반으로 도출될 수 있다. 다운 샘플링 필터로 여러 필터들이 사용될 수 있는바, 상기 다운 샘플링 필터의 일 예는 다음의 수학식과 같이 나타낼 수 있다. If the color format of the input image is not the same color format as the RGB color format or the YCbCr 4: 4: 4 color format as in the above description, Sampling may be performed to derive a downsampled corresponding luma block of the same size as the current chroma block. Then, a prediction block for the current chroma block may be generated based on the linear model defined as Equation (7). Wherein the downsampled corresponding luma block may be derived based on a restoration luma sample corresponding to a target chroma sample of the current chroma block among the restoration luma samples of the corresponding luma block. The reconstructed luma samples corresponding to the target chroma samples may be derived based on a down-sampling filter. Various filters may be used as the downsampling filter, and an example of the downsampling filter may be expressed as the following equation.
여기서, Rec'L[x,y] 는 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플, Rec'L[2x,2y] 는 상기 대응 루마 블록 내 (2x,2y) 좌표의 복원 루마 샘플을 나타낸다. 즉, 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x,2y) 좌표의 복원 루마 샘플을 기반으로 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플이 도출될 수 있다. Here, Rec ' L [x, y] is a reconstructed luma sample of the (x, y) coordinates in the downsampled corresponding luma block, Rec' L [2x, 2y] ≪ / RTI > (X, y) in the downsampled corresponding luma block based on the restored luma samples of the (2x, 2y) coordinates in the corresponding luma block corresponding to the target chroma samples of the (x, y) ) Restoration luma samples of the coordinates can be derived.
한편, 상기 현재 크로마 블록에 대하여 상기 다운 샘플링 필터에 따라 도출되는 위치의 루마 성분(즉, 상기 대응 루마 블록의 복원 루마 샘플)보다 적합한 위치의 루마 성분이 존재할 수 있다. 이 경우, 상기 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x,2y) 좌표의 복원 루마 샘플을 기반으로 상기 다운 샘플링이 수행되는 것보다, 상기 적합한 위치의 복원 루마 샘플을 기반으로 상기 다운 샘플링이 수행되는 것이 상기 현재 크로마 블록의 상기 대상 크로마 샘플에 대한 예측 정확도를 향상시킬 수 있는바, 이에, 레지듀얼 정보의 비트량을 줄이고 전반적인 코딩 효율을 향상시킬 수 있다. On the other hand, there may be a luma component at a position more suitable for the current chroma block than a luma component at a position derived according to the downsampling filter (i.e., a restoration luma sample of the corresponding luma block). In this case, rather than performing the downsampling based on the restored luma samples of the (2x, 2y) coordinates in the corresponding luma block corresponding to the target chroma samples of the (x, y) The downsampling based on the sample can improve the prediction accuracy of the target chroma sample of the current chroma block. Thus, the bit amount of residual information can be reduced and the overall coding efficiency can be improved.
따라서, 본 발명에서는 상기 현재 크로마 블록에 대한 오프셋 정보를 시그널링하고, 상기 오프셋 정보를 기반으로 상기 대응 루마 블록 내 상기 적합한 위치의 복원 루마 샘플을 도출하고, 상기 복원 루마 샘플을 기반으로 다운 샘플링을 수행하여 다운 샘플링된 복원 루마 샘플을 기반을 상기 현재 크로마 블록의 예측을 수행하는 방안을 제안한다. Accordingly, in the present invention, the offset information for the current chroma block is signaled, the restoration luma samples of the appropriate position in the corresponding luma block are derived based on the offset information, and the downsampling is performed based on the restoration luma sample And performing a prediction of the current chroma block based on the downsampled restoration luma sample.
도 6은 상기 현재 크로마 블록의 대상 크로마 샘플과 대응하는 복원 루마 샘플의 위치를 조정하는 일 예를 나타낸다. 도 6을 참조하면 상기 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 대응 위치(예를 들어, (2x,2y) 좌표)의 복원 루마 샘플대신 상기 대응 위치에서 오프셋 정보를 기반으로 수정된 위치의 복원 루마 샘플이 다운 샘플링에 사용될 수 있다. 6 shows an example of adjusting the position of the restored luma sample corresponding to the target chroma sample of the current chroma block. 6, offset information at the corresponding position is obtained instead of the restoration luma sample of the corresponding position (for example, (2x, 2y) coordinate) in the corresponding luma block corresponding to the target chroma sample of the (x, y) A restoration luma sample of the modified position based on the above can be used for downsampling.
상기 오프셋 정보는 x 성분에 대한 x 오프셋 정보와 y 성분에 대한 y 오프셋 정보를 포함할 수 있다. 또한, 수정된 위치에 대한 상기 오프셋 정보는 송신부와 수신부, 즉, 인코딩 장치와 디코딩 장치에 대하여 약속된 서치 레인지(Search range) 및 이동 단위를 기반으로 해석될 수 있다. 예를 들어, 인코딩 장치 및 디코딩 장치는 상기 수정된 위치가 도출되는 서치 레인지를 설정할 수 있고, 상기 현재 크로마 블록의 대상 크로마 샘플에 대응되는 위치가 (0,0) 인 경우, 상기 서치 레인지는 x축으로 -N/2~+N/2, y축으로 -N/2~N/2으로 설정될 수 있다. 이 때, N은 블록의 사이즈를 나타낼 수 있다. 또한, 상기 이동 단위는 1/2 펠(pel) 단위, 즉, 1/2 샘플 단위로 설정될 수 있다. 이에, 상기 x 오프셋 정보 및 상기 y 오프셋 정보가 나타내는 값이 정수로 파싱(parsing)되더라도, 상기 값은 1/2 샘플 단위로 해석될 수 있다. 따라서, 상기 대응 위치에서 상기 x 오프셋 정보가 나타내는 정수값(즉, x 오프셋)에 상기 이동 단위를 곱한 값만큼 x 축으로 이동하고, 상기 y 오프셋 정보가 나타내는 정수값(즉, y 오프셋)에 상기 이동 단위를 곱한 값만큼 y 축으로 이동한 위치가 상기 수정된 위치로 도출될 수 있다. The offset information may include x offset information for the x component and y offset information for the y component. Also, the offset information for the modified position can be interpreted based on the search range and the mobile unit promised for the transmitter and the receiver, that is, the encoding apparatus and the decoding apparatus. For example, the encoding apparatus and the decoding apparatus can set a search range from which the corrected position is derived, and when the position corresponding to the target chroma sample of the current chroma block is (0, 0), the search range is x Axis can be set from -N / 2 to + N / 2 on the axis, and from -N / 2 to N / 2 on the y-axis. At this time, N can represent the size of the block. In addition, the moving unit may be set to a half pel unit, that is, a half sample unit. Accordingly, even if the values indicated by the x offset information and the y offset information are parsed as integers, the values can be interpreted in units of half samples. Accordingly, in the corresponding position, the integer value (i.e., x offset) represented by the x offset information is shifted in the x axis by a value obtained by multiplying by the moving unit, and the integer value (i.e., y offset) A position shifted in the y-axis by a value obtained by multiplying the moving unit can be derived to the corrected position.
한편, 상기 이동 단위가 부화소 단위, 즉, 분수 샘플(fractional sample) 단위인 경우, 상기 수정된 위치가 분수 샘플 위치를 나타낼 수 있고, 이 경우, 상기 수정된 위치의 복원 루마 샘플은 상기 수정된 위치 주변의 정수 샘플 위치의 복원 루마 샘플들의 보간(interpolation)을 통하여 도출될 수 있다. 상기 보간이 수행되는 경우, 인터 예측(inter prediction)에서 사용되는 보간 필터(interpolation filter), 인트라 예측에서 사용되는 보간 필터, 또는 본 발명을 위한 새로운 보간 필터가 설계되어 사용될 수도 있다. On the other hand, if the moving unit is a sub-pixel unit, i.e., a fractional sample unit, then the modified position may represent a fractional sample position, in which case the restored luma sample of the modified position may be modified Can be derived through interpolation of restoration luma samples of integer sample locations around the location. When the interpolation is performed, an interpolation filter used in inter prediction, an interpolation filter used in intra prediction, or a new interpolation filter for the present invention may be designed and used.
한편, 상기 오프셋 정보는 다음의 표와 같이 도출될 수 있다.On the other hand, the offset information can be derived as shown in the following table.
여기서, pos_offset_x 는 상기 x 오프셋 정보에 대한 신텍스, pos_offset_y 는 상기 y 오프셋 정보에 대한 신텍스, offset_zero_bit 는 상기 오프셋 정보의 전송 여부를 가리키는 플래그 정보에 대한 신텍스를 나타낸다. 예를 들어, 상기 offset_zero_bit 의 값이 1인 경우, 상기 x 오프셋 정보 및 상기 y 오프셋 정보를 포함하는 상기 현재 크로마 블록에 대한 오프셋 정보는 시그널링되지 않을 수 있고, 상기 offset_zero_bit 의 값이 0인 경우, 상기 x 오프셋 정보 및 상기 y 오프셋 정보를 포함하는 상기 현재 크로마 블록에 대한 오프셋 정보는 시그널링될 수 있다. 한편, 상기 x 오프셋 정보 및 상기 y 오프셋 정보의 부호는 음수로 고정될 수 있다. 다시 말해, 상기 x 오프셋 정보가 나타내는 값 및 상기 y 오프셋 정보가 나타내는 값은 x 오프셋 및 y 오프셋의 크기를 나타낼 수 있고, 상기 값들의 부호는 음수로 고정될 수 있다. 따라서, 상기 x 오프셋 정보 및 상기 y 오프셋 정보가 시그널링된 경우, 상기 수정된 위치는 다음과 같이 도출될 수 있다. Here, pos_offset_x is a syntax for the x offset information, pos_offset_y is a syntax for the y offset information, and offset_zero_bit is a syntax for flag information indicating whether or not the offset information is transmitted. For example, if the value of the offset_zero_bit is 1, the offset information for the current chroma block including the x offset information and the y offset information may not be signaled. If the offset_zero_bit value is 0, The offset information for the current chroma block, including the x offset information and the y offset information, may be signaled. Meanwhile, the signs of the x offset information and the y offset information may be fixed to negative values. In other words, the value indicated by the x offset information and the value indicated by the y offset information may indicate the magnitude of the x offset and the y offset, and the sign of the values may be fixed to a negative value. Accordingly, when the x offset information and the y offset information are signaled, the corrected position can be derived as follows.
여기서, X'는 상기 수정된 위치의 x성분, X는 상기 대응 위치의 x성분, offsetX 는 상기 x 오프셋, Y는 상기 대응 위치의 y성분, offsetY 는 상기 y 오프셋을 나타낸다. 따라서, 상술한 수학식 8의 다운 샘플링 필터가 적용되는 경우, 상기 현재 크로마 블록의 (x, y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 대응 위치의 x 성분 X는 2x, 상기 대응 루마 블록 내 대응 위치의 y 성분 Y는 2y 로 도출될 수 있고, 상기 수정된 위치의 x 성분 X'는 2x - offsetX*n, 상기 수정된 위치의 y 성분 Y'는 2y - offsetY*n 으로 도출될 수 있다. 여기서, n은 기설정된 이동 단위를 나타낼 수 있다. Where X 'is the x component of the modified position, X is the x component of the corresponding position, offset X is the x offset, Y is the y component of the corresponding position, and offset Y is the y offset. Therefore, when the downsampling filter of Equation (8) is applied, the x component X of the corresponding position in the corresponding luma block corresponding to the target chroma sample of the (x, y) coordinate of the current chroma block is 2x, The y component Y of the corresponding position in the luma block may be derived as 2y, the x component X 'of the modified position is 2x - offset X * n, the y component Y' of the modified position is 2y - offset Y * n Lt; / RTI > Here, n may represent a predetermined moving unit.
상술한 방법을 통하여 상기 수정된 위치에 대한 상기 오프셋 정보를 기반으로 상기 대응 루마 블록의 수정된 위치가 도출될 수 있고, 상기 수정된 위치를 기반으로 상기 대응 루마 블록의 다운 샘플링된 복원 루마 샘플이 도출될 수 있다. 이후, 상술한 수학식 7 과 같이 다운 샘플링된 복원 루마 샘플을 기반으로 상기 현재 크로마 블록의 예측 블록이 생성될 수 있다. The modified position of the corresponding luma block may be derived based on the offset information for the modified position through the method described above and a downsampled restoration luma sample of the corresponding luma block based on the modified position Can be derived. Then, a prediction block of the current chroma block may be generated based on the downsampled restoration luma sample as shown in Equation (7).
한편, 현재 영상의 모든 블록들에 대하여 동일한 다운 샘플링 필터가 사용될 수 있다. 이 경우, 상기 다운 샘플링 필터가 인코딩 장치 및 디코딩 장치에 미리 정의될 수 있고, 또는, 상기 현재 영상에 대한 다운 샘플링 필터를 나타내는 필터 정보가 SPS(sequence parameter set) 또는 VPS(video parameter set) 등 전체 시퀀스를 제어하는 헤더 정보에 포함되어 전송될 수 있다. 즉, 상기 다운 샘플링 필터를 나타내는 필터 정보는 SPS(sequence parameter set) 또는 VPS(video parameter set) 를 통하여 시그널링될 수 있고, 상기 다운 샘플링 필터를 나타내는 필터 정보를 기반으로 상기 대응 루마 블록의 다운 샘플링에 대한 다운 샘플링 필터가 도출될 수 있다. On the other hand, the same downsampling filter can be used for all blocks of the current image. In this case, the downsampling filter may be defined in advance in the encoding apparatus and the decoding apparatus, or the filter information indicating the downsampling filter for the current image may be defined as a sequence parameter set (SPS) or a video parameter set (VPS) May be included in the header information for controlling the sequence and transmitted. That is, the filter information indicating the downsampling filter can be signaled through a sequence parameter set (SPS) or a video parameter set (VPS), and downsampling of the corresponding luma block based on the filter information indicating the downsampling filter A downsampling filter may be derived.
또는, 상기 현재 영상의 블록들에 대하여 여러 다운 샘플링 필터들이 사용될 수 있는바, 블록 단위로 서로 다른 다운 샘플링 필터가 사용될 수 있다. 이 경우, 상기 다운 샘플링 필터들의 종류는 이미 디코딩된 정보를 기반으로 도출될 수 있고, 또는 블록 단위로 시그널링되는 필터 정보를 기반으로 해당 블록의 다운 샘플링 필터가 선택될 수 있다. 또는, 슬라이스 단위로 서로 다른 다운 샘플링 필터가 사용될 수 있다. 이 경우, 필터 정보는 슬라이스 세그먼트 헤더(slice segment header) 를 통하여 전송될 수 있고, 상기 필터 정보를 기반으로 상기 필터 정보가 포함된 슬라이스 세그먼트 헤더의 해당 슬라이스에 대한 다운 샘플링 필터가 도출될 수 있다. 또는, 픽처 단위로 서로 다른 다운 샘플링 필터가 사용될 수 있다. 이 경우, 필터 정보는 PPS(picture parameter set)를 통하여 전송될 수 있고, 상기 필터 정보를 기반으로 상기 필터 정보가 포함된 PPS의 해당 픽처에 대한 다운 샘플링 필터가 도출될 수 있다.Alternatively, various downsampling filters may be used for the blocks of the current image, and different downsampling filters may be used for each block. In this case, the type of the downsampling filters may be derived based on the already decoded information, or the downsampling filter of the corresponding block may be selected based on the filter information signaled on a block basis. Alternatively, different downsampling filters may be used in slice units. In this case, the filter information may be transmitted through a slice segment header, and a down-sampling filter for the corresponding slice of the slice segment header including the filter information may be derived based on the filter information. Alternatively, different downsampling filters may be used for each picture. In this case, the filter information may be transmitted via a picture parameter set (PPS), and a downsampling filter for the corresponding picture of the PPS including the filter information may be derived based on the filter information.
상술한 내용과 같이 2개 이상의 다운 샘플링 필터들을 기반으로 현재 영상의 크로마 성분에 대한 예측이 수행될 수 있다. 이 경우, 상기 2개 이상의 다수의 다운 샘플링 필터들이 크로마 성분에 대한 예측을 위한 필터 후보로 구성될 수 있다. 예를 들어, 4개의 다운 샘플링 필터들이 다운 샘플링을 위한 필터 후보들로 구성될 수 있다. 상기 다운 샘플링 필터들은 다음의 수학식들과 같이 나타낼 수 있다. Prediction of the chroma component of the current image can be performed based on two or more downsampling filters as described above. In this case, the two or more multiple downsampling filters may be configured as filter candidates for prediction of the chroma component. For example, four down-sampling filters may be composed of filter candidates for down-sampling. The downsampling filters may be expressed by the following equations.
여기서, Rec'L[x,y] 는 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플, Rec'L[2x,2y] 는 상기 대응 루마 블록 내 (2x,2y) 좌표의 복원 루마 샘플, Rec'L[2x+1,2y] 는 상기 대응 루마 블록 내 (2x+1,2y) 좌표의 복원 루마 샘플, Rec'L[2x+1,2y+1] 는 상기 대응 루마 블록 내 (2x+1,2y+1) 좌표의 복원 루마 샘플, Rec'L[2x,2y+1] 는 상기 대응 루마 블록 내 (2x,2y+1) 좌표의 복원 루마 샘플을 나타낸다. Here, Rec ' L [x, y] is a reconstructed luma sample of the (x, y) coordinates in the downsampled corresponding luma block, Rec' L [2x, 2y] restoration of the luma samples, Rec 'L [2x + 1,2y ] is the corresponding luma blocks within the (2x + 1,2y) coordinates of the restored luma samples, Rec' L [2x + 1,2y + 1] is the corresponding luma The reconstructed luma sample, Rec ' L [2x, 2y + 1], of the (2x, 2y + 1) coordinate in the block represents the reconstructed luma sample of the (2x, 2y + 1) coordinate in the corresponding luma block.
상기 현재 크로마 블록에 대한 상기 다운 샘플링 필터로 상기 수학식 10의 다운 샘플링 필터가 선택되는 경우, 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x,2y) 좌표의 복원 루마 샘플 및 (2x+1,2y) 좌표의 복원 루마 샘플을 기반으로 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플이 도출될 수 있다. 구체적으로, 상기 (2x,2y) 좌표의 복원 루마 샘플의 샘플값과 상기 (2x+1,2y) 좌표의 복원 루마 샘플의 샘플값의 합에 1을 더한 값이 도출되고, 상기 값을 우측으로 산술 쉬프트(Arithmetic shift)하여 도출된 값이 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플로 도출될 수 있다.(2x, y) in the corresponding luma block corresponding to the target chroma sample of the (x, y) coordinate of the current chroma block, when the downsampling filter of Equation (10) is selected by the downsampling filter for the current chroma block, (X, y) coordinates in the corresponding luma block downsampled based on the reconstructed luma samples of the 2x, 2y) coordinates and the reconstructed luma samples of the (2x + 1,2y) Specifically, a value obtained by adding 1 to the sum of the sample value of the restored luma sample of the (2x, 2y) coordinate and the restored luma sample of the (2x + 1, 2y) coordinate is derived, A value derived from an arithmetic shift can be derived as a reconstructed luma sample of the (x, y) coordinates in the downsampled corresponding luma block.
또한, 상기 현재 크로마 블록에 대한 상기 다운 샘플링 필터로 상기 수학식 11의 다운 샘플링 필터가 선택되는 경우, 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x+1,2y) 좌표의 복원 루마 샘플 및 (2x+1,2y+1) 좌표의 복원 루마 샘플을 기반으로 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플이 도출될 수 있다. 구체적으로, 상기 (2x+1,2y) 좌표의 복원 루마 샘플의 샘플값과 상기 (2x+1,2y+1) 좌표의 복원 루마 샘플의 샘플값의 합에 1을 더한 값이 도출되고, 상기 값을 우측으로 산술 쉬프트(Arithmetic shift)하여 도출된 값이 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플로 도출될 수 있다.In the case where the downsampling filter of Equation (11) is selected by the downsampling filter for the current chroma block, the downsampling filter in the corresponding luma block corresponding to the target chroma sample of the (x, y) (X, y) coordinates of the corresponding luma block downsampled based on the restoration luma sample of the 2x + 1, 2y) coordinate and the restoration luma sample of the (2x + 1, 2y + 1) have. Specifically, a value obtained by adding 1 to the sum of the sample value of the restored luma sample of the (2x + 1, 2y) coordinate and the restored luma sample of the (2x + 1, Values derived by arithmetically shifting the values to the right can be derived as reconstructed luma samples of the (x, y) coordinates in the downsampled corresponding luma block.
또한, 상기 현재 크로마 블록에 대한 상기 다운 샘플링 필터로 상기 수학식 12의 다운 샘플링 필터가 선택되는 경우, 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x,2y+1) 좌표의 복원 루마 샘플 및 (2x+1,2y+1) 좌표의 복원 루마 샘플을 기반으로 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플이 도출될 수 있다. 구체적으로, 상기 (2x,2y+1) 좌표의 복원 루마 샘플의 샘플값과 상기 (2x+1,2y+1) 좌표의 복원 루마 샘플의 샘플값의 합에 1을 더한 값이 도출되고, 상기 값을 우측으로 산술 쉬프트(Arithmetic shift)하여 도출된 값이 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플로 도출될 수 있다.In addition, if the downsampling filter of the current chroma block is selected as the downsampling filter for the current chroma block, the downsampling filter in the corresponding luma block corresponding to the target chroma sample of the (x, y) (X, y) coordinates in the corresponding luma block downsampled based on the restoration luma samples of the 2x, 2y + 1, 2x, 2y + have. Specifically, a value obtained by adding 1 to the sum of the sample value of the restored luma sample of the (2x, 2y + 1) coordinate and the restored luma sample of the (2x + 1, 2y + 1) Values derived by arithmetically shifting the values to the right can be derived as reconstructed luma samples of the (x, y) coordinates in the downsampled corresponding luma block.
또한, 상기 현재 크로마 블록에 대한 상기 다운 샘플링 필터로 상기 수학식 13의 다운 샘플링 필터가 선택되는 경우, 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x,2y) 좌표의 복원 루마 샘플, (2x,2y+1) 좌표의 복원 루마 샘플, (2x+1,2y) 좌표의 복원 루마 샘플 및 (2x+1,2y+1) 좌표의 복원 루마 샘플을 기반으로 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플이 도출될 수 있다. 구체적으로, 상기 (2x,2y) 좌표의 복원 루마 샘플의 샘플값, 상기 (2x,2y+1) 좌표의 복원 루마 샘플의 샘플값, 상기 (2x+1,2y) 좌표의 복원 루마 샘플의 샘플값 및 상기 (2x+1,2y+1) 좌표의 복원 루마 샘플의 샘플값의 합에 2를 더한 값이 도출되고, 상기 값을 우측으로 산술 쉬프트(Arithmetic shift)하여 도출된 값이 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플로 도출될 수 있다. 한편, 상술한 수학식 10 내지 수학식 13 으로 나타낸 다운 샘플링 필터들 중 하나가 상기 현재 크로마 블록의 예측을 위한 다운 샘플링 필터, 즉, 상기 대응 루마 블록의 다운 샘플링을 위한 다운 샘플링 필터로 사용되는 경우, 상기 다운 샘플링 필터에 따른 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 위치의 복원 루마 샘플이 상기 다운 샘플링에 사용될 수 있다. 또는, 상기 다운 샘플링 필터에 따른 상기 대상 크로마 샘플에 대응하는 위치에서 상술한 오프셋 정보를 기반으로 수정된 위치의 복원 루마 샘플이 상기 다운 샘플링에 사용될 수도 있다.If the downsampling filter of Equation (13) is selected as the downsampling filter for the current chroma block, the downsampling filter in the corresponding luma block corresponding to the target chroma sample of the (x, y) 2x, 2y) coordinate restoration luma samples, (2x + 2y + 1) restoration luma samples, (2x + The reconstructed luma samples of the (x, y) coordinates in the corresponding luma block that have been downsampled can be derived. Specifically, a sample value of the restoration luma sample of the (2x, 2y) coordinate, a sample value of the restoration luma sample of the (2x, 2y + 1) Value obtained by adding 2 to the sum of the sample value of the reconstructed luma sample of the (2x + 1, 2y + 1) coordinate and the value obtained by performing an arithmetic shift of the value to the right, (X, y) coordinates in the corresponding corresponding luma block. On the other hand, when one of the downsampling filters represented by Equations (10) to (13) is used as a downsampling filter for predicting the current chroma block, i.e., a downsampling filter for downsampling the corresponding luma block , A restoration luma sample at a position corresponding to the target chroma sample of the (x, y) coordinates of the current chroma block according to the downsampling filter may be used for the downsampling. Alternatively, a reconstructed luma sample of the modified position based on the offset information described above at a location corresponding to the target chroma sample according to the downsampling filter may be used for the downsampling.
또한, 상기 필터 후보들은 후술하는 바와 같은 다운 샘플링 필터들을 포함할 수 있다. 상기 다운 샘플링 필터들은 다음의 수학식들과 같이 나타낼 수 있다. In addition, the filter candidates may include downsampling filters as described below. The downsampling filters may be expressed by the following equations.
여기서, Rec'L[x,y] 는 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플, Rec'L[2x,2y] 는 상기 대응 루마 블록 내 (2x,2y) 좌표의 복원 루마 샘플, Rec'L[2x+1,2y] 는 상기 대응 루마 블록 내 (2x+1,2y) 좌표의 복원 루마 샘플, Rec'L[2x+1,2y+1] 는 상기 대응 루마 블록 내 (2x+1,2y+1) 좌표의 복원 루마 샘플, Rec'L[2x,2y+1] 는 상기 대응 루마 블록 내 (2x,2y+1) 좌표의 복원 루마 샘플을 나타낸다. Here, Rec ' L [x, y] is a reconstructed luma sample of the (x, y) coordinates in the downsampled corresponding luma block, Rec' L [2x, 2y] restoration of the luma samples, Rec 'L [2x + 1,2y ] is the corresponding luma blocks within the (2x + 1,2y) coordinates of the restored luma samples, Rec' L [2x + 1,2y + 1] is the corresponding luma The reconstructed luma sample, Rec ' L [2x, 2y + 1], of the (2x, 2y + 1) coordinate in the block represents the reconstructed luma sample of the (2x, 2y + 1) coordinate in the corresponding luma block.
상기 현재 크로마 블록에 대한 상기 다운 샘플링 필터로 상기 수학식 14의 다운 샘플링 필터가 선택되는 경우, 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x,2y) 좌표의 복원 루마 샘플 및 (2x+1,2y) 좌표의 복원 루마 샘플을 기반으로 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플이 도출될 수 있다. 구체적으로, 상기 (2x,2y) 좌표의 복원 루마 샘플의 샘플값과 상기 (2x+1,2y) 좌표의 복원 루마 샘플의 샘플값의 합에 1을 뺀 값이 도출되고, 상기 값을 우측으로 산술 쉬프트(Arithmetic shift)하여 도출된 값이 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플로 도출될 수 있다.(2x, y) in the corresponding luma block corresponding to the target chroma sample of the (x, y) coordinates of the current chroma block, when the downsampling filter of Equation (14) is selected by the downsampling filter for the current chroma block, (X, y) coordinates in the corresponding luma block downsampled based on the reconstructed luma samples of the 2x, 2y) coordinates and the reconstructed luma samples of the (2x + 1,2y) Specifically, a value obtained by subtracting 1 from the sum of the sample value of the restored luma sample of the (2x, 2y) coordinate and the restored luma sample of the (2x + 1, 2y) coordinate is derived, A value derived from an arithmetic shift can be derived as a reconstructed luma sample of the (x, y) coordinates in the downsampled corresponding luma block.
또한, 상기 현재 크로마 블록에 대한 상기 다운 샘플링 필터로 상기 수학식 15의 다운 샘플링 필터가 선택되는 경우, 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x+1,2y) 좌표의 복원 루마 샘플 및 (2x+1,2y+1) 좌표의 복원 루마 샘플을 기반으로 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플이 도출될 수 있다. 구체적으로, 상기 (2x+1,2y) 좌표의 복원 루마 샘플의 샘플값과 (2x+1,2y+1) 좌표의 복원 루마 샘플의 샘플값의 합에 1을 뺀 값이 도출되고, 상기 값을 우측으로 산술 쉬프트(Arithmetic shift)하여 도출된 값이 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플로 도출될 수 있다.If the downsampling filter of Equation (15) is selected as the downsampling filter for the current chroma block, the downsampling filter in the corresponding luma block corresponding to the target chroma sample of the (x, y) (X, y) coordinates of the corresponding luma block downsampled based on the restoration luma sample of the 2x + 1, 2y) coordinate and the restoration luma sample of the (2x + 1, 2y + 1) have. More specifically, a value obtained by subtracting 1 from the sum of the sample value of the restored luma sample of the (2x + 1, 2y) coordinate and the restored luma sample of the (2x + 1, (X, y) coordinates in the downsampled corresponding luma block can be derived as a reconstructed luma sample of the downsampled corresponding luma block by arithmetic shifts to the right.
또한, 상기 현재 크로마 블록에 대한 상기 다운 샘플링 필터로 상기 수학식 16의 다운 샘플링 필터가 선택되는 경우, 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x,2y+1) 좌표의 복원 루마 샘플 및 (2x+1,2y+1) 좌표의 복원 루마 샘플을 기반으로 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플이 도출될 수 있다. 구체적으로, 상기 (2x,2y+1) 좌표의 복원 루마 샘플의 샘플값과 상기 (2x+1,2y+1) 좌표의 복원 루마 샘플의 샘플값의 합에 1을 뺀 값이 도출되고, 상기 값을 우측으로 산술 쉬프트(Arithmetic shift)하여 도출된 값이 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플로 도출될 수 있다.In addition, when the downsampling filter of the current chroma block is selected by the downsampling filter for the current chroma block, the downsampling filter in the corresponding luma block corresponding to the target chroma sample of the (x, y) (X, y) coordinates in the corresponding luma block downsampled based on the restoration luma samples of the 2x, 2y + 1, 2x, 2y + have. Specifically, a value obtained by subtracting 1 from the sum of the sample value of the restored luma sample of the (2x, 2y + 1) coordinate and the restored luma sample of the (2x + 1, 2y + 1) Values derived by arithmetically shifting the values to the right can be derived as reconstructed luma samples of the (x, y) coordinates in the downsampled corresponding luma block.
또한, 상기 현재 크로마 블록에 대한 상기 다운 샘플링 필터로 상기 수학식 17의 다운 샘플링 필터가 선택되는 경우, 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 상기 대응 루마 블록 내 (2x,2y) 좌표의 복원 루마 샘플, (2x,2y+1) 좌표의 복원 루마 샘플, (2x+1,2y) 좌표의 복원 루마 샘플 및 (2x+1,2y+1) 좌표의 복원 루마 샘플을 기반으로 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플이 도출될 수 있다. 구체적으로, 상기 (2x,2y) 좌표의 복원 루마 샘플의 샘플값, 상기 (2x,2y+1) 좌표의 복원 루마 샘플의 샘플값, 상기 (2x+1,2y) 좌표의 복원 루마 샘플의 샘플값 및 상기 (2x+1,2y+1) 좌표의 복원 루마 샘플의 샘플값의 합에 2를 뺀 값이 도출되고, 상기 값을 우측으로 산술 쉬프트(Arithmetic shift)하여 도출된 값이 상기 다운 샘플링된 대응 루마 블록 내 (x,y) 좌표의 복원 루마 샘플로 도출될 수 있다. 한편, 상술한 수학식 14 내지 수학식 17 로 나타낸 다운 샘플링 필터들 중 하나가 상기 현재 크로마 블록의 예측을 위한 다운 샘플링 필터, 즉, 상기 대응 루마 블록의 다운 샘플링을 위한 다운 샘플링 필터로 사용되는 경우, 상기 다운 샘플링 필터에 따른 상기 현재 크로마 블록의 (x,y) 좌표의 대상 크로마 샘플에 대응하는 위치의 복원 루마 샘플이 상기 다운 샘플링에 사용될 수 있다. 또는, 상기 다운 샘플링 필터에 따른 상기 대상 크로마 샘플에 대응하는 위치에서 상술한 오프셋 정보를 기반으로 수정된 위치의 복원 루마 샘플이 상기 다운 샘플링에 사용될 수도 있다.If the downsampling filter of Equation (17) is selected as the downsampling filter for the current chroma block, the corresponding chroma block in the corresponding luma block corresponding to the target chroma sample of the (x, y) 2x, 2y) coordinate restoration luma samples, (2x + 2y + 1) restoration luma samples, (2x + The reconstructed luma samples of the (x, y) coordinates in the corresponding luma block that have been downsampled can be derived. Specifically, a sample value of the restoration luma sample of the (2x, 2y) coordinate, a sample value of the restoration luma sample of the (2x, 2y + 1) Value obtained by subtracting 2 from the sum of the sample values of the restored luma samples of the (2x + 1, 2y + 1) coordinates is derived, and a value obtained by performing an arithmetic shift to the right- (X, y) coordinates in the corresponding corresponding luma block. On the other hand, when one of the downsampling filters represented by Equations (14) to (17) is used as a downsampling filter for predicting the current chroma block, i.e., a downsampling filter for downsampling the corresponding luma block , A restoration luma sample at a position corresponding to the target chroma sample of the (x, y) coordinates of the current chroma block according to the downsampling filter may be used for the downsampling. Alternatively, a reconstructed luma sample of the modified position based on the offset information described above at a location corresponding to the target chroma sample according to the downsampling filter may be used for the downsampling.
도 7은 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다. 도 7에서 개시된 방법은 도 1에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 7의 S700 내지 S730은 상기 인코딩 장치의 예측부에 의하여 수행될 수 있고, S740은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.7 schematically shows a video encoding method by the encoding apparatus according to the present invention. The method disclosed in FIG. 7 can be performed by the encoding apparatus disclosed in FIG. Specifically, for example, S700 to S730 in FIG. 7 may be performed by the predicting unit of the encoding apparatus, and S740 may be performed by the entropy encoding unit of the encoding apparatus.
인코딩 장치는 현재 크로마 블록의 주변 샘플들 및 대응 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록에 대한 선형 모델 파라미터들을 도출한다(S700). 인코딩 장치는 상기 현재 크로마 블록의 상기 주변 샘플들 및 상기 대응 블록의 상기 주변 샘플들을 도출할 수 있다. 상기 대응 블록은 루마 성분의 대응 루마 블록 또는 상기 현재 크로마 블록의 크로마 성분 이외의 크로마 성분의 대응 크로마 블록일 수 있다. 예를 들어, 상기 현재 크로마 블록의 크로마 성분이 크로마 Cb 성분인 경우, 상기 대응 블록은 루마 성분의 대응 루마 블록 또는 크로마 Cr 성분의 대응 크로마 블록일 수 있다. 또는, 상기 현재 크로마 블록의 크로마 성분이 크로마 Cr 성분인 경우, 상기 대응 블록은 루마 성분의 대응 루마 블록 또는 크로마 Cb 성분의 대응 크로마 블록일 수 있다. 이 경우, 상기 대응 루마 블록 또는 상기 대응 크로마 블록은 상기 현재 크로마 블록의 인코딩 시점에 이미 인코딩된 블록일 수 있다. 후술하는 실시예에서는 대응 루마 블록에 대하여 설명하고 있으나, 상기 대응 크로마 블록에 대한 방법으로 수행될 수도 있다. The encoding device derives linear model parameters for the current chroma block based on the surrounding samples of the current chroma block and the surrounding samples of the corresponding luma block (S700). An encoding device may derive the surrounding samples of the current chroma block and the surrounding samples of the corresponding block. The corresponding block may be a corresponding luma block of luma components or a corresponding chroma block of chroma components other than the chroma component of the current chroma block. For example, if the chroma component of the current chroma block is a chroma Cb component, then the corresponding block may be the corresponding luma block of the luma component or the corresponding chroma block of the chroma Cr component. Alternatively, if the chroma component of the current chroma block is a chroma Cr component, then the corresponding block may be the corresponding chroma block of the corresponding luma block or chroma Cb component of the luma component. In this case, the corresponding luma block or the corresponding chroma block may be a block already encoded at the encoding time of the current chroma block. Although a corresponding luma block is described in the following embodiments, it may be performed by the method for the corresponding chroma block.
또한, 상기 현재 크로마 블록의 상기 주변 샘플들은 상기 현재 크로마 블록의 좌측 주변 샘플들, 좌상측 주변 샘플 및 상측 주변 샘플들을 포함할 수 있고, 상기 대응 루마 블록의 상기 주변 샘플들은 상기 현재 크로마 블록의 상기 주변 샘플들과 대응하는 상기 대응 루마 블록의 상기 주변 샘플들을 나타낼 수 있다. 상기 현재 크로마 블록의 사이즈가 MxN이고, 상기 현재 크로마 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][0] 내지 p[-1][N-1], 상기 좌상측 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[M-1][-1] 일 수 있다. 한편, 상기 선형 모델 파라미터들을 도출하기 위한 상기 현재 크로마 블록의 상기 주변 샘플들을 포함하는 영역은 상기 현재 크로마 블록의 템플릿(template)이라고 나타낼 수 있다. 다시 말해, 상기 현재 크로마 블록의 사이즈가 MxN이고, 상기 현재 크로마 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 현재 크로마 블록의 템플릿은 p[-1][0] 내지 p[-1][N-1], p[-1][-1], p[0][-1] 내지 p[M-1][-1] 을 포함하는 영역으로 나타낼 수 있다. 또한, 상기 현재 크로마 블록의 상기 주변 샘플들과 대응하는 상기 대응 루마 블록의 상기 주변 샘플들을 포함하는 영역은 상기 대응 루마 블록의 템플릿(template)이라고 나타낼 수 있다. The neighboring samples of the current chroma block may include left neighbor samples, upper left neighbor sample, and upper neighbor samples of the current chroma block, And may represent the surrounding samples of the corresponding luma block corresponding to neighboring samples. If the size of the current chroma block is MxN and the x component of the top-left sample position of the current chroma block is 0 and the y component is 0, the left neighbor samples are p [-1] [0] -1], p [-1] [N-1], the upper left neighbor sample is p [-1] ]. The area including the neighboring samples of the current chroma block for deriving the linear model parameters may be referred to as a template of the current chroma block. In other words, when the size of the current chroma block is MxN, and the x component of the top-left sample position of the current chroma block is 0 and the y component is 0, the template of the current chroma block is p [-1 ] [0] to p [-1] [N-1], p [-1] . In addition, an area including the surrounding samples of the corresponding luma block corresponding to the neighboring samples of the current chroma block may be referred to as a template of the corresponding luma block.
인코딩 장치는 상기 현재 크로마 블록의 상기 주변 샘플들 및 상기 대응 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록에 대한 선형 모델 파라미터들을 도출할 수 있다. 즉, 인코딩 장치는 상기 현재 크로마 블록의 템플릿 및 상기 대응 루마 블록의 템플릿을 기반으로 상기 현재 크로마 블록에 대한 선형 모델 파라미터들을 도출할 수 있다. 구체적으로, 상기 현재 크로마 블록의 주변 샘플들 및 대응 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록과 상기 대응 루마 블록 간 관계식이 도출될 수 있는바, 상기 관계식은 상기 현재 크로마 블록과 상기 대응 루마 블록 사이의 모델을 나타내는 수학식일 수 있다. 예를 들어, 상기 관계식은 상기 현재 크로마 블록과 상기 대응 루마 블록과의 선형 모델(linear model)을 나타내는 수학식일 수 있고, 상기 선형 모델 이외의 모델을 나타내는 수학식일 수도 있다. 상기 선형 모델 파라미터들은 상기 선형 모델의 계수(coefficient) 및 오프셋(offset)을 포함할 수 있다. 상기 파라미터들은 상술한 수학식 5 및 수학식 6을 기반으로 도출될 수 있다. The encoding device may derive linear model parameters for the current chroma block based on the surrounding samples of the current chroma block and the surrounding samples of the corresponding luma block. That is, the encoding device may derive linear model parameters for the current chroma block based on the template of the current chroma block and the template of the corresponding luma block. Specifically, a relational expression between the current chroma block and the corresponding luma block may be derived based on neighbor samples of the current chroma block and surrounding samples of the corresponding luma block, May be a mathematical expression representing a model between blocks. For example, the relational expression may be a mathematical expression representing a linear model of the current chroma block and the corresponding luma block, or a mathematical expression representing a model other than the linear model. The linear model parameters may include a coefficient and an offset of the linear model. The parameters may be derived based on Equations (5) and (6) described above.
한편, 인코딩 장치는 선형 모델을 기반으로 상기 현재 크로마 블록의 인트라 예측 모드를 도출하는지 여부를 나타내는 플래그를 생성할 수 있다. 상기 플래그의 값에 따라 선형 모델을 기반으로 상기 복수의 후보 인트라 예측 모드들 중 상기 현재 크로마 블록의 인트라 예측 모드를 도출하는지 여부가 판단될 수 있다. 즉, 상기 플래그를 기반으로 상기 파라미터들을 도출하는지 여부가 판단될 수 있다. 예를 들어, 상기 플래그의 값이 1인 경우, 상기 현재 크로마 블록의 주변 샘플들 및 상기 대응 루마 블록의 상기 주변 샘플들을 기반으로 상기 선형 모델 파라미터들이 도출될 수 있고, 상기 플래그의 값이 0인 경우, 상기 선형 모델 파라미터들이 도출되지 않을 수 있다. 상기 플래그는 VPS(video parameter set), SPS(sequence parameter set), PPS(picture parameter set), 슬라이스 세그먼트 헤더(slice segment header), 또는 블록 레벨에서 전송될 수 있다.On the other hand, the encoding apparatus can generate a flag indicating whether to derive the intra prediction mode of the current chroma block based on the linear model. It may be determined whether to derive the intra prediction mode of the current chroma block among the plurality of candidate intra prediction modes based on the linear model based on the value of the flag. That is, it may be determined whether to derive the parameters based on the flag. For example, if the value of the flag is 1, the linear model parameters may be derived based on the surrounding samples of the current chroma block and the surrounding samples of the corresponding luma block, and the value of the flag is 0 , Then the linear model parameters may not be derived. The flag may be transmitted at a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice segment header, or a block level.
인코딩 장치는 다운 샘플링 필터를 기반으로 상기 현재 크로마 블록의 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치를 도출한다(S710). 인코딩 장치는 상기 다운 샘플링 필터에 따른 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 상기 대응 위치를 도출할 수 있다. The encoding device derives the corresponding position in the corresponding luma block for the target chroma sample of the current chroma block based on the downsampling filter (S710). The encoding device may derive the corresponding location in the corresponding luma block for the target chroma sample according to the downsampling filter.
예를 들어, 상기 다운 샘플링 필터는 상술한 수학식 8과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치는 (2x,2y) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 10과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치는 (2x,2y) 좌표 및 (2x+1,2y) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 11과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치는 (2x+1,2y) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 12와 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치는 (2x,2y+1) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 13과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치는 (2x,2y) 좌표, (2x,2y+1) 좌표, (2x+1,2y) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 14와 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치는 (2x,2y) 좌표 및 (2x+1,2y) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 15와 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치는 (2x+1,2y) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 16과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치는 (2x,2y+1) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 17과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 대응 루마 블록 내 대응 위치는 (2x,2y) 좌표, (2x,2y+1) 좌표, (2x+1,2y) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다.For example, the downsampling filter may be derived as Equation (8). In this case, the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived as (2x, 2y) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (10). In this case, the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived as (2x, 2y) and (2x + 1, 2y) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (11). In this case, the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x + 1, 2y) and (2x + 1, 2y + 1) coordinates. Further, as another example, the downsampling filter may be derived as Equation (12). In this case, the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived in the (2x, 2y + 1) coordinate and (2x + 1, 2y + 1) coordinate. Further, as another example, the downsampling filter may be derived as shown in Equation (13). In this case, the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate is (2x, 2y), (2x, 2y + 1) 2x + 1, 2y + 1) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (14). In this case, the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived as (2x, 2y) and (2x + 1, 2y) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (15). In this case, the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x + 1, 2y) and (2x + 1, 2y + 1) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (16). In this case, the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate may be derived in the (2x, 2y + 1) coordinate and (2x + 1, 2y + 1) coordinate. Further, as another example, the downsampling filter may be derived as Equation (17). In this case, the corresponding position in the corresponding luma block for the target chroma sample of the (x, y) coordinate is (2x, 2y), (2x, 2y + 1) 2x + 1, 2y + 1) coordinates.
한편, 인코딩 장치는 기설정된 특정의 다운 샘플링 필터를 상기 다운 샘플링 필터로 도출할 수 있다. 또는, 인코딩 장치는 복수의 다운 샘플링 필터 후보들을 구성할 수 있고, 상기 복수의 다운 샘플링 필터 후보들 중 하나의 다운 샘플링 필터 후보를 상기 다운 샘플링 필터로 도출할 수 있다. 즉, 인코딩 장치는 상기 복수의 다운 샘플링 필터 후보들 중 하나의 다운 샘플링 필터 후보를 더 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출할 수 있다.On the other hand, the encoding apparatus may derive a predetermined downsampling filter to the downsampling filter. Alternatively, the encoding apparatus may constitute a plurality of downsampling filter candidates, and may derive a downsampling filter candidate of the plurality of downsampling filter candidates to the downsampling filter. That is, the encoding device may derive a downsampled reconstructed luma sample for the target chroma sample based further on downsampling filter candidates of one of the plurality of downsampling filter candidates.
이 경우, 인코딩 장치는 상기 복수의 다운 샘플링 필터 후보들 중 하나의 다운 샘플링 필터 후보를 가리키는 필터 정보를 생성할 수 있다. 이 경우, 상기 필터 정보는 SPS(Sequence Parameter Set), VPS(Video Parameter Set), PPS(Picture Parameter Set), 블록 단위 신텍스(syntax) 정보 또는 슬라이스 세그먼트 헤더(slice segment header)를 통하여 시그널링(signaling)될 수 있다. In this case, the encoding apparatus may generate filter information indicating downsampling filter candidates of one of the plurality of downsampling filter candidates. In this case, the filter information may be signaling through a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a block unit syntax information or a slice segment header. .
한편, 예를 들어, 상기 다운 샘플링 필터 후보들은 상술한 수학식 8 및 수학식 10 내지 수학식 17과 같이 도출된 다운 샘플링 필터들 중 적어도 2개 이상의 다운 샘플링 필터들을 다운 샘플링 필터 후보로 포함할 수 있다. 일 예로, 상기 다운 샘플링 필터 후보들은 제1 후보 내지 제4 후보를 포함할 수 있고, 상기 제1 후보는 상술한 수학식 10, 제2 후보는 상술한 수학식 11, 제3 후보는 상술한 수학식 12, 상기 제4 후보는 상술한 수학식 13과 같이 도출될 수 있다. 또는, 다른 일 예로, 상기 다운 샘플링 필터 후보들은 제1 후보 내지 제4 후보를 포함할 수 있고, 상기 제1 후보는 상술한 수학식 14, 제2 후보는 상술한 수학식 15, 제3 후보는 상술한 수학식 16, 상기 제4 후보는 상술한 수학식 17과 같이 도출될 수 있다.For example, the downsampling filter candidates may include at least two downsampling filters among the downsampling filters derived as Equation (8) and Equation (10) to Equation (17) have. For example, the downsampling filter candidates may include a first candidate to a fourth candidate, the first candidate being the above-described equation 10, the second candidate being the above-described equation 11, the third candidate being the aforementioned mathematical formula (12), and the fourth candidate can be derived as shown in Equation (13). Alternatively, the down-sampling filter candidates may include first to fourth candidates, and the first candidate is the above-described
인코딩 장치는 수정된 대응 위치를 도출한다(S720). 인코딩 장치는 서치 레인지(search range) 내에서 상기 대응 위치의 복원 루마 샘플보다 상기 대상 크로마 샘플의 예측 샘플에 적합한 복원 루마 샘플을 도출할 수 있고, 상기 도출된 복원 루마 샘플의 위치를 상기 수정된 대응 위치로 도출할 수 있다. 상기 서치 레인지는 기설정될 수 있다. 예를 들어, 상기 서치 레인지의 x 성분 범위는 상기 대응 위치의 x 성분을 기준으로 -N/2 내지 +N/2, y 성분 범위는 상기 대응 위치의 y 성분을 기준으로 -N/2 내지 +N/2으로 기설정될 수 있다. The encoding apparatus derives a corrected corresponding position (S720). The encoding apparatus may derive a reconstructed luma sample suitable for a predicted sample of the target chroma sample from a restored luma sample of the corresponding position within a search range, Location. The search range may be preset. For example, the x-component range of the search range may range from -N / 2 to + N / 2 based on the x component of the corresponding position, and the y- N / 2.
또한, 인코딩 장치는 상기 대응 위치와 상기 수정된 대응 위치와의 차이를 나타내는 오프셋 정보를 생성할 수 있다. 상기 오프셋 정보는 상기 대응 위치의 x성분과 상기 수정된 대응 위치의 x성분과의 차이인 x 오프셋을 나타내는 x 오프셋 정보 및 상기 대응 위치의 y성분과 상기 수정된 대응 위치의 y성분과의 차이인 y 오프셋을 나타내는 y 오프셋 정보를 포함할 수 있다. 상기 오프셋 정보에 포함된 상기 x 오프셋 정보가 나타내는 값 및 상기 y 오프셋 정보가 나타내는 값은 x 오프셋 및 y 오프셋의 크기를 나타낼 수 있고, 상기 값들의 부호는 음수로 고정될 수 있다. 또한, 상기 x 오프셋 및 상기 y 오프셋에 대한 이동 단위는 기설정될 수 있다. 예를 들어, 상기 이동 단위는 1/2 샘플로 설정될 수 있다. 이 경우, 상기 수정된 대응 위치의 x 성분은 상기 대응 위치의 x 성분에서 상기 x 오프셋과 상기 이동 단위를 곱한 값을 뺀 값으로 도출될 수 있고, 상기 수정된 대응 위치의 y 성분은 상기 대응 위치의 y 성분에서 상기 y 오프셋과 상기 기준 단위를 곱한 값을 뺀 값으로 도출될 수 있다, 또한, 상기 수정된 대응 위치는 상술한 수학식 9를 기반으로 도출될 수 있다.In addition, the encoding device may generate offset information indicating the difference between the corresponding position and the modified corresponding position. Wherein the offset information comprises x offset information indicating an x offset that is a difference between the x component of the corresponding position and the x component of the modified corresponding position, and x offset information indicating the difference between the y component of the corresponding position and the y component of the modified corresponding position and y offset information indicating a y offset. The value indicated by the x offset information included in the offset information and the value indicated by the y offset information may indicate the magnitude of the x offset and the y offset, and the sign of the values may be fixed to a negative value. In addition, the movement unit for the x offset and the y offset may be pre-set. For example, the moving unit may be set to 1/2 sample. In this case, the x component of the modified corresponding position may be derived as the x component of the corresponding position minus the value of the x offset multiplied by the moving unit, and the y component of the modified corresponding position is the corresponding position And the corrected offset value may be derived based on the above-mentioned Equation (9). ≪ EMI ID = 9.0 >
인코딩 장치는 상기 다운 샘플링 필터 및 상기 수정된 대응 위치의 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출한다(S730). 인코딩 장치는 상기 수정된 대응 위치의 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출할 수 있다. 예를 들어, 인코딩 장치는 다운 샘플링 필터 및 상기 수정된 대응 위치의 복원 루마 샘플을 기반으로 다운 샘플링을 수행할 수 있고, 상기 대상 크로마 샘플에 대한 상기 다운 샘플링된 복원 루마 샘플을 도출할 수 있다. 일 예로, 상기 다운 샘플링 필터가 상술한 수학식 8과 같이 도출되는 경우, 상기 다운 샘플링은 다음의 수학식과 같이 수행될 수 있다. The encoding device derives a downsampled reconstructed luma sample for the target chroma sample based on the downsampling filter and the reconstructed luma sample of the modified corresponding location (S730). The encoding device may derive a downsampled reconstructed luma sample for the target chroma sample based on the reconstructed luma sample of the modified corresponding location. For example, the encoding device may perform downsampling based on a downsampling filter and a reconstructed luma sample of the modified corresponding location, and derive the downsampled reconstructed luma sample for the targeted chroma sample. For example, when the downsampling filter is derived as shown in Equation (8), the downsampling can be performed as the following equation.
여기서, Rec'L[x,y] 는 (x,y) 좌표의 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플, RecL[2x-offsetx,2y-offsety] 는 (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 상기 수정된 대응 위치의 상기 복원 루마 샘플, offsetx 은 상기 x 오프셋, offsetx 은 상기 y 오프셋을 나타낼 수 있다. Wherein, Rec 'L [x, y ] is a (x, y) down-sampled restored to the destination chroma samples of the coordinate luma samples, Rec L [2x-offset x , 2y-offset y] is a (x, y) The restoration luma sample, offset x , of the modified corresponding location in the luma block for the target chroma sample of the coordinates may be the x offset and offset x may represent the y offset.
한편, 상기 수정된 대응 위치가 분수 샘플 위치인 경우, 상기 수정된 대응 위치의 복원 루마 샘플은 상기 수정된 위치 주변의 정수 샘플 위치의 복원 루마 샘플들의 보간(interpolation)을 통하여 도출될 수 있다. 상기 보간이 수행되는 경우, 인터 예측(inter prediction)에서 사용되는 보간 필터(interpolation filter), 인트라 예측에서 사용되는 보간 필터, 또는 본 발명을 위한 새로운 보간 필터를 상기 주변의 정수 샘플 위치의 복원 루마 샘플들의 보간(interpolation)이 수행될 수 있다. On the other hand, if the modified corresponding position is a fractional sample position, the reconstructed luma sample of the modified corresponding position may be derived through interpolation of reconstructed luma samples of the integer sample position around the modified position. When the interpolation is performed, an interpolation filter used in inter prediction, an interpolation filter used in intra prediction, or a new interpolation filter for the present invention is used as a restoration luma sample Can be performed.
인코딩 장치는 상기 선형 모델 파라미터들 및 상기 다운 샘플링된 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플의 예측 샘플을 생성한다(S740). 인코딩 장치는 상기 선형 모델 파라미터들 및 상기 다운 샘플링된 복원 루마 샘플을 기반으로 상기 현재 크로마 블록의 상기 대상 크로마 샘플의 상기 예측 샘플을 생성할 수 있다. 상기 선형 모델 파라미터들은 계수(coefficient)와 오프셋(offset)을 포함할 수 있다. 상기 계수는 스케일링 펙터(scaling factor)라고 불릴 수도 있다. 예를 들어, 인코딩 장치는 상기 다운 샘플링된 복원 루마 샘플을 상기 선형 모델을 나타내는 관계식에 대입하여 상기 대상 크로마 샘플의 예측 샘플, 즉, 상기 현재 크로마 블록의 예측 블록을 생성할 수 있다. 즉, 인코딩 장치는 상기 다운 샘플링된 복원 루마 샘플에 상기 계수를 곱한 값에 상기 오프셋을 더하여 상기 대상 크로마 샘플의 상기 예측 샘플을 생성할 수 있다. 상기 현재 크로마 블록의 상기 예측 블록의 샘플은 상기 다운 샘플링된 복원 루마 샘플에 상기 계수를 곱한 값에 상기 오프셋을 더하여 도출될 수 있다. 상기 예측 샘플은 상술한 수학식 7을 기반으로 도출될 수 있다. The encoding apparatus generates a prediction sample of the target chroma sample based on the linear model parameters and the downsampled restoration luma sample (S740). An encoding device may generate the prediction samples of the target chroma samples of the current chroma block based on the linear model parameters and the downsampled reconstructed luma sample. The linear model parameters may include a coefficient and an offset. The coefficient may be referred to as a scaling factor. For example, the encoding apparatus may generate the predicted sample of the target chroma sample, i.e., the prediction block of the current chroma block, by substituting the downsampled restoration luma sample into the relational expression representing the linear model. That is, the encoding device may generate the prediction sample of the target chroma sample by adding the offset to the value obtained by multiplying the downsampled restoration luma sample by the coefficient. The sample of the prediction block of the current chroma block may be derived by adding the offset to a value obtained by multiplying the downsampled restoration luma sample by the coefficient. The prediction sample can be derived based on Equation (7).
인코딩 장치는 상기 현재 크로마 블록에 대한 예측 정보를 생성하고 인코딩하여 출력한다(S760). 인코딩 장치는 상기 현재 크로마 블록에 대한 예측 정보를 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 예측 정보는 상기 선형 모델을 기반으로 상기 현재 크로마 블록의 인트라 예측 모드를 도출하는지 여부를 나타내는 플래그를 포함할 수 있다. 상기 플래그는 VPS(video parameter set), SPS(sequence parameter set), PPS(picture parameter set), 슬라이스 세그먼트 헤더(slice segment header), 또는 블록 레벨에서 전송될 수도 있다.The encoding apparatus generates prediction information for the current chroma block, encodes it, and outputs it (S760). The encoding apparatus may encode the prediction information for the current chroma block and output it as a bit stream. The prediction information may include a flag indicating whether to derive an intra prediction mode of the current chroma block based on the linear model. The flag may be transmitted at a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice segment header, or a block level.
또한, 상기 예측 정보는 상기 오프셋 정보를 포함할 수 있다. 상기 오프셋 정보는 x 오프셋(offset)을 나타내는 x 오프셋 정보 및 y 오프셋(offset)을 나타내는 y 오프셋 정보를 포함할 수 있고, 상기 오프셋 정보는 블록 단위 신텍스(syntax) 정보를 통하여 시그널링(signaling)될 수 있다. In addition, the prediction information may include the offset information. The offset information may include x offset information indicating an x offset and y offset information indicating a y offset, and the offset information may be signaled through block-based syntax information. have.
또한, 상기 예측 정보는 상기 오프셋 정보의 값이 0인지 여부를 나타내는 플래그 정보를 포함할 수 있다. 예를 들어, 상기 플래그 정보의 값이 0인 경우, 상기 플래그 정보는 상기 오프셋 정보의 값이 0이 아님을 나타낼 수 있고, 상기 플래그 정보의 값이 1인 경우, 상기 플래그 정보는 상기 오프셋 정보의 값이 0임을 나타낼 수 있다. 상기 플래그 정보는 블록 단위 신텍스(syntax) 정보를 통하여 시그널링(signaling)될 수 있다. The prediction information may include flag information indicating whether the value of the offset information is 0 or not. For example, when the value of the flag information is 0, the flag information may indicate that the value of the offset information is not 0, and when the value of the flag information is 1, The value may be zero. The flag information may be signaled through block-based syntax information.
한편, 비록 도면에서 도시되지는 않았으나 인코딩 장치는 상기 예측 샘플을 바로 상기 현재 크로마 블록의 복원 샘플로 이용할 수도 있고, 또는 원본 샘플과 상기 도출된 예측 샘플을 기반으로 레지듀얼(residual) 샘플을 생성할 수 있다. 인코딩 장치는 상기 레지듀얼 샘플을 기반으로 상기 레지듀얼에 관한 정보를 생성할 수 있다. 상기 레지듀얼에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다. 인코딩 장치는 상기 레지듀얼 정보를 기반으로 상기 현재 크로마 블록에 대한 상기 레지듀얼 샘플(또는 레지듀얼 샘플 어레이)을 도출할 수 있다. 또한, 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 상기 복원 샘플을 도출할 수 있다. 즉, 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 더하여 상기 복원 샘플을 도출할 수 있다. 인코딩 장치는 상기 복원 샘플을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 인코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다. 또한, 인코딩 장치는 상기 레지듀얼에 관한 정보를 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 비트스트림은 네트워크 또는 (디지털) 저장매체를 통하여 디코딩 장치로 전송될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. On the other hand, although not shown in the drawing, the encoding apparatus may use the prediction sample as a reconstruction sample of the current chroma block, or may generate a residual sample based on the original sample and the derived prediction sample . The encoding apparatus may generate information on the residual based on the residual samples. The information on the residual may include transform coefficients relating to the residual sample. The encoding apparatus may derive the residual sample (or residual sample array) for the current chroma block based on the residual information. Also, the encoding apparatus may derive the reconstructed sample based on the prediction sample and the residual sample. That is, the encoding apparatus may add the prediction sample and the residual sample to derive the reconstructed sample. The encoding apparatus may derive a reconstruction block or a reconstructed picture based on the reconstructed sample. It is as described above that the encoding apparatus can apply an in-loop filtering procedure such as deblocking filtering and / or SAO procedures to the restored picture to improve subjective / objective picture quality as needed. Also, the encoding apparatus can encode the information on the residual and output it in the form of a bit stream. The bitstream may be transmitted to a decoding device via a network or (digital) storage medium. The network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
도 8은 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다. 도 8에서 개시된 방법은 도 2에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 8의 S800 내지 S810, S830 내지 S850은 상기 디코딩 장치의 예측부에 의하여 수행될 수 있고, S820은 상기 디코딩 장치의 엔트로피 디코딩부에 의하여 수행될 수 있다.8 schematically shows a video decoding method by a decoding apparatus according to the present invention. The method disclosed in Fig. 8 can be performed by the decoding apparatus disclosed in Fig. Specifically, for example, S800 to S810, S830 to S850 in FIG. 8 may be performed by the predicting unit of the decoding apparatus, and S820 may be performed by the entropy decoding unit of the decoding apparatus.
디코딩 장치는 현재 크로마 블록의 주변 샘플들 및 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록에 대한 선형 모델(linear model) 파라미터들을 도출한다(S800). 디코딩 장치는 상기 현재 크로마 블록의 상기 주변 샘플들 및 상기 루마 블록의 상기 주변 샘플들을 도출할 수 있다. 상기 루마 블록은 루마 성분의 대응 루마 블록을 나타낼 수 있다. 또한, 디코딩 장치는 현재 크로마 블록의 주변 샘플들 및 상기 현재 크로마 블록과 다른 크로마 성분인 크로마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록에 대한 선형 모델(linear model) 파라미터들을 도출할 수도 수 있다. 예를 들어, 상기 현재 크로마 블록의 크로마 성분이 크로마 Cb 성분인 경우, 상기 현재 크로마 블록과 다른 크로마 성분인 크로마 블록은 크로마 Cr 성분의 크로마 블록일 수 있다. 또는, 상기 현재 크로마 블록의 크로마 성분이 크로마 Cr 성분인 경우, 상기 현재 크로마 블록과 다른 크로마 성분인 크로마 블록은 크로마 Cb 성분의 크로마 블록일 수 있다. 이 경우, 상기 루마 블록 또는 상기 현재 크로마 블록과 다른 크로마 성분인 크로마 블록은 상기 현재 크로마 블록의 디코딩 시점에 이미 디코딩된 블록일 수 있다. 후술하는 실시예에서는 루마 블록에 대하여 설명하고 있으나, 상기 현재 크로마 블록과 다른 크로마 성분인 크로마 블록에 대한 방법으로 수행될 수도 있다. 한편, 상기 루마 블록은 대응 루마 블록이라고 나타낼 수도 있다. The decoding apparatus derives linear model parameters for the current chroma block based on neighbor samples of the current chroma block and neighbor samples of the luma block (S800). A decoding device may derive the surrounding samples of the current chroma block and the surrounding samples of the luma block. The luma block may represent a corresponding luma block of luma components. The decoding device may also derive linear model parameters for the current chroma block based on neighbor samples of the current chroma block and surrounding samples of the chroma block that is a different chroma block than the current chroma block. For example, if the chroma component of the current chroma block is a chroma Cb component, the chroma block, which is a chroma component different from the current chroma block, may be a chroma block of a chroma Cr component. Alternatively, when the chroma component of the current chroma block is a chroma Cr component, the chroma block, which is a chroma component different from the current chroma block, may be a chroma block of a chroma Cb component. In this case, the chroma block, which is a chroma component different from the luma block or the current chroma block, may be a block already decoded at the decoding time of the current chroma block. Although a luma block is described in the following embodiments, it may be performed by a method for a chroma block which is a chroma component different from the current chroma block. On the other hand, the luma block may be referred to as a corresponding luma block.
또한, 상기 현재 크로마 블록의 상기 주변 샘플들은 상기 현재 크로마 블록의 좌측 주변 샘플들, 좌상측 주변 샘플 및 상측 주변 샘플들을 포함할 수 있고, 상기 루마 블록의 상기 주변 샘플들은 상기 현재 크로마 블록의 상기 주변 샘플들과 대응하는 상기 루마 블록의 상기 주변 샘플들을 나타낼 수 있다. 상기 현재 크로마 블록의 사이즈가 MxN이고, 상기 현재 크로마 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 샘플들은 p[-1][0] 내지 p[-1][N-1], 상기 좌상측 주변 샘플은 p[-1][-1], 상기 상측 주변 샘플들은 p[0][-1] 내지 p[M-1][-1] 일 수 있다. 한편, 상기 선형 모델 파라미터들을 도출하기 위한 상기 현재 크로마 블록의 상기 주변 샘플들을 포함하는 영역은 상기 현재 크로마 블록의 템플릿(template)이라고 나타낼 수 있다. 다시 말해, 상기 현재 크로마 블록의 사이즈가 MxN이고, 상기 현재 크로마 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 현재 크로마 블록의 템플릿은 p[-1][0] 내지 p[-1][N-1], p[-1][-1], p[0][-1] 내지 p[M-1][-1] 을 포함하는 영역으로 나타낼 수 있다. 또한, 상기 현재 크로마 블록의 상기 주변 샘플들과 대응하는 상기 루마 블록의 상기 주변 샘플들을 포함하는 영역은 상기 루마 블록의 템플릿(template)이라고 나타낼 수 있다. 디코딩 장치는 상기 현재 크로마 블록의 주변 샘플들 및 상기 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록에 대한 선형 모델 파라미터들을 도출할 수 있다. 즉, 디코딩 장치는 상기 현재 크로마 블록의 템플릿 및 상기 루마 블록의 템플릿을 기반으로 상기 현재 크로마 블록에 대한 선형 모델 파라미터들을 도출할 수 있다. 구체적으로, 상기 현재 크로마 블록의 주변 샘플들 및 루마 블록의 주변 샘플들을 기반으로 상기 현재 크로마 블록과 상기 루마 블록 간 관계식이 도출될 수 있는바, 상기 관계식은 상기 현재 크로마 블록과 상기 루마 블록 사이의 모델을 나타내는 수학식일 수 있다. 예를 들어, 상기 관계식은 상기 현재 크로마 블록과 상기 루마 블록과의 선형 모델(linear model)을 나타내는 수학식일 수 있고, 상기 선형 모델 이외의 모델을 나타내는 수학식일 수도 있다. 상기 선형 모델 파라미터들은 상기 선형 모델의 계수(coefficient) 및 오프셋(offset)을 포함할 수 있다. 상기 파라미터들은 상술한 수학식 5 및 수학식 6을 기반으로 도출될 수 있다. The neighboring samples of the current chroma block may include left neighbor samples, upper left neighbor samples, and upper neighbor samples of the current chroma block, And may represent the surrounding samples of the luma block corresponding to the samples. If the size of the current chroma block is MxN and the x component of the top-left sample position of the current chroma block is 0 and the y component is 0, the left neighbor samples are p [-1] [0] -1], p [-1] [N-1], the upper left neighbor sample is p [-1] ]. The area including the neighboring samples of the current chroma block for deriving the linear model parameters may be referred to as a template of the current chroma block. In other words, when the size of the current chroma block is MxN, and the x component of the top-left sample position of the current chroma block is 0 and the y component is 0, the template of the current chroma block is p [-1 ] [0] to p [-1] [N-1], p [-1] . In addition, an area including the surrounding samples of the luma block corresponding to the neighboring samples of the current chroma block may be referred to as a template of the luma block. The decoding device may derive linear model parameters for the current chroma block based on the surrounding samples of the current chroma block and the surrounding samples of the luma block. That is, the decoding apparatus may derive linear model parameters for the current chroma block based on the template of the current chroma block and the template of the luma block. Specifically, a relational expression between the current chroma block and the luma block may be derived based on neighbor samples of the current chroma block and surrounding samples of the luma block, May be a mathematical expression representing a model. For example, the relational expression may be a mathematical expression representing a linear model of the current chroma block and the luma block, or a mathematical expression representing a model other than the linear model. The linear model parameters may include a coefficient and an offset of the linear model. The parameters may be derived based on Equations (5) and (6) described above.
한편, 비트스트림을 통하여 선형 모델을 기반으로 상기 현재 크로마 블록의 인트라 예측 모드를 도출하는지 여부를 나타내는 플래그가 획득될 수 있다. 상기 플래그의 값에 따라 선형 모델을 기반으로 상기 복수의 후보 인트라 예측 모드들 중 상기 현재 크로마 블록의 인트라 예측 모드를 도출하는지 여부가 판단될 수 있다. 디코딩 장치는 상기 플래그를 기반으로 상기 임시 예측 블록을 생성하고, 상기 임시 예측 블록을 기반으로 상기 복수의 후보 인트라 예측 모드들 중 상기 현재 크로마 블록의 인트라 예측 모드를 도출하는지 여부를 판단할 수 있다. 즉, 디코딩 장치는 상기 플래그를 기반으로 상기 파라미터들을 도출하는지 여부를 판단할 수 있다. 예를 들어, 상기 플래그의 값이 1인 경우, 상기 현재 크로마 블록의 주변 샘플들 및 상기 루마 블록의 상기 주변 샘플들을 기반으로 상기 관계식의 상기 파라미터들이 도출될 수 있고, 상기 플래그의 값이 0인 경우, 상기 관계식의 상기 파라미터들이 도출되지 않을 수 있다. 상기 플래그는 VPS(video parameter set), SPS(sequence parameter set), PPS(picture parameter set), 슬라이스 세그먼트 헤더(slice segment header), 또는 블록 레벨에서 수신될 수 있다.On the other hand, a flag indicating whether to derive the intra prediction mode of the current chroma block based on the linear model can be obtained through the bit stream. It may be determined whether to derive the intra prediction mode of the current chroma block among the plurality of candidate intra prediction modes based on the linear model based on the value of the flag. The decoding apparatus may generate the temporary prediction block based on the flag and determine whether to derive an intra prediction mode of the current chroma block among the plurality of candidate intra prediction modes based on the temporary prediction block. That is, the decoding apparatus can determine whether to derive the parameters based on the flag. For example, if the value of the flag is 1, the parameters of the relational expression may be derived based on the neighbor samples of the current chroma block and the neighbor samples of the luma block, and the value of the flag may be 0 , The parameters of the above relation may not be derived. The flag may be received at a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice segment header, or a block level.
디코딩 장치는 상기 현재 크로마 블록의 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치를 도출한다(S810). 디코딩 장치는 다운 샘플링 필터에 따른 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 상기 대응 위치를 도출할 수 있다. The decoding apparatus derives the corresponding position in the luma block for the target chroma sample of the current chroma block (S810). The decoding device may derive the corresponding location in the luma block for the target chroma sample according to a downsampling filter.
예를 들어, 상기 다운 샘플링 필터는 상술한 수학식 8과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치는 (2x,2y) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 10과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치는 (2x,2y) 좌표 및 (2x+1,2y) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 11과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치는 (2x+1,2y) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 12와 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치는 (2x,2y+1) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 13과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치는 (2x,2y) 좌표, (2x,2y+1) 좌표, (2x+1,2y) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 14와 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치는 (2x,2y) 좌표 및 (2x+1,2y) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 15와 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치는 (2x+1,2y) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 16과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치는 (2x,2y+1) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다. 또한, 다른 예로, 상기 다운 샘플링 필터는 상술한 수학식 17과 같이 도출될 수 있다. 이 경우, (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 대응 위치는 (2x,2y) 좌표, (2x,2y+1) 좌표, (2x+1,2y) 좌표 및 (2x+1,2y+1) 좌표로 도출될 수 있다.For example, the downsampling filter may be derived as Equation (8). In this case, the corresponding position in the luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x, 2y) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (10). In this case, the corresponding positions in the luma block for the target chroma samples of the (x, y) coordinates may be derived as (2x, 2y) coordinates and (2x + 1, 2y) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (11). In this case, the corresponding position in the luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x + 1, 2y) and (2x + 1, 2y + 1) coordinates. Further, as another example, the downsampling filter may be derived as Equation (12). In this case, the corresponding positions in the luma block for the target chroma samples of the (x, y) coordinates may be derived as (2x, 2y + 1) coordinates and (2x + 1, 2y + 1) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (13). In this case, the corresponding position in the luma block for the target chroma sample of the (x, y) coordinate is (2x, 2y), (2x, 2y + 1) + 1, 2y + 1) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (14). In this case, the corresponding positions in the luma block for the target chroma samples of the (x, y) coordinates may be derived as (2x, 2y) coordinates and (2x + 1, 2y) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (15). In this case, the corresponding position in the luma block for the target chroma sample of the (x, y) coordinates may be derived as (2x + 1, 2y) and (2x + 1, 2y + 1) coordinates. Further, as another example, the downsampling filter may be derived as shown in Equation (16). In this case, the corresponding positions in the luma block for the target chroma samples of the (x, y) coordinates may be derived as (2x, 2y + 1) coordinates and (2x + 1, 2y + 1) coordinates. Further, as another example, the downsampling filter may be derived as Equation (17). In this case, the corresponding position in the luma block for the target chroma sample of the (x, y) coordinate is (2x, 2y), (2x, 2y + 1) + 1, 2y + 1) coordinates.
한편, 디코딩 장치는 기설정된 특정의 다운 샘플링 필터를 상기 다운 샘플링 필터로 도출할 수 있다. 또는, 디코딩 장치는 비트스트림을 통하여 복수의 다운 샘플링 필터 후보들 중 하나의 다운 샘플링 필터 후보를 가리키는 필터 정보를 획득할 수 있고, 상기 필터 정보가 나타내는 상기 다운 샘플링 필터 후보를 상기 다운 샘플링 필터로 도출할 수 있다. 즉, 디코딩 장치는 상기 비트스트림을 통하여 복수의 다운 샘플링 필터 후보들 중 하나의 다운 샘플링 필터 후보를 가리키는 필터 정보를 획득할 수 있고, 상기 필터 정보가 나타내는 상기 다운 샘플링 필터 후보를 더 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출할 수 있다. On the other hand, the decoding apparatus may derive a predetermined downsampling filter by the downsampling filter. Alternatively, the decoding apparatus may obtain filter information indicating a downsampling filter candidate of one of a plurality of downsampling filter candidates through a bitstream, and derive the downsampling filter candidate indicated by the filter information to the downsampling filter . That is, the decoding apparatus can obtain filter information indicating a downsampling filter candidate of one of a plurality of downsampling filter candidates through the bitstream, and based on the downsampling filter candidate indicated by the filter information, A downsampled restoration luma sample for the sample can be derived.
이 경우, 상기 필터 정보는 SPS(Sequence Parameter Set), VPS(Video Parameter Set), PPS(Picture Parameter Set), 블록 단위 신텍스(syntax) 정보 또는 슬라이스 세그먼트 헤더(slice segment header)를 통하여 시그널링(signaling)될 수 있다. 한편, 예를 들어, 상기 다운 샘플링 필터 후보들은 상술한 수학식 8 및 수학식 10 내지 수학식 17과 같이 도출된 다운 샘플링 필터들 중 적어도 2개 이상의 다운 샘플링 필터들을 다운 샘플링 필터 후보로 포함할 수 있다. 일 예로, 상기 다운 샘플링 필터 후보들은 제1 후보 내지 제4 후보를 포함할 수 있고, 상기 제1 후보는 상술한 수학식 10, 제2 후보는 상술한 수학식 11, 제3 후보는 상술한 수학식 12, 상기 제4 후보는 상술한 수학식 13과 같이 도출될 수 있다. 또는, 다른 일 예로, 상기 다운 샘플링 필터 후보들은 제1 후보 내지 제4 후보를 포함할 수 있고, 상기 제1 후보는 상술한 수학식 14, 제2 후보는 상술한 수학식 15, 제3 후보는 상술한 수학식 16, 상기 제4 후보는 상술한 수학식 17과 같이 도출될 수 있다.In this case, the filter information may be signaling through a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a block unit syntax information or a slice segment header. . For example, the downsampling filter candidates may include at least two downsampling filters among the downsampling filters derived as Equation (8) and Equation (10) to Equation (17) have. For example, the downsampling filter candidates may include a first candidate to a fourth candidate, the first candidate being the above-described equation 10, the second candidate being the above-described equation 11, the third candidate being the aforementioned mathematical formula (12), and the fourth candidate can be derived as shown in Equation (13). Alternatively, the down-sampling filter candidates may include first to fourth candidates, and the first candidate is the above-described
디코딩 장치는 상기 비트스트림을 통하여 상기 현재 크로마 블록에 대한 오프셋 정보를 획득한다(S820). 디코딩 장치는 상기 비트스트림을 통하여 상기 오프셋 정보를 수신할 수 있다. 상기 오프셋 정보는 x 오프셋(offset)을 나타내는 x 오프셋 정보 및 y 오프셋(offset)을 나타내는 y 오프셋 정보를 포함할 수 있다. 또한, 상기 오프셋 정보는 블록 단위 신텍스(syntax) 정보를 통하여 시그널링(signaling)될 수 있다. The decoding apparatus obtains offset information for the current chroma block through the bitstream (S820). The decoding apparatus can receive the offset information through the bitstream. The offset information may include x offset information indicating an x offset and y offset information indicating a y offset. In addition, the offset information may be signaled through block-based syntax information.
한편, 디코딩 장치는 상기 비트스트림을 통하여 상기 오프셋 정보의 값이 0인지 여부를 나타내는 플래그 정보를 획득할 수 있다. 예를 들어, 상기 플래그 정보의 값이 0인 경우, 상기 플래그 정보는 상기 오프셋 정보의 값이 0이 아님을 나타낼 수 있고, 상기 플래그 정보의 값이 1인 경우, 상기 플래그 정보는 상기 오프셋 정보의 값이 0임을 나타낼 수 있다. 상기 플래그 정보가 상기 오프셋 정보의 값이 0이 아님을 나타내는 경우, 상기 비트스트림을 통하여 상기 오프셋 정보가 획득될 수 있고, 상기 플래그 정보가 상기 오프셋 정보의 값이 0임을 나타내는 경우, 상기 비트스트림을 통하여 상기 오프셋 정보가 획득되지 않을 수 있다.On the other hand, the decoding apparatus can obtain flag information indicating whether the value of the offset information is 0 through the bit stream. For example, when the value of the flag information is 0, the flag information may indicate that the value of the offset information is not 0, and when the value of the flag information is 1, The value may be zero. If the flag information indicates that the value of the offset information is not 0, the offset information can be obtained through the bitstream, and if the flag information indicates that the value of the offset information is 0, The offset information may not be obtained.
디코딩 장치는 상기 대응 위치 및 상기 오프셋 정보를 기반으로 수정된(modified) 대응 위치를 도출한다(S830). 디코딩 장치는 상기 대응 위치에서 상기 오프셋 정보만큼 이동된 위치를 상기 수정된 대응 위치로 도출할 수 있다. 또한, 상기 수정된 대응 위치는 상기 대응 위치를 기준으로 하는 서치 레인지(search range) 내에서 도출될 수 있다. 상기 서치 레인지의 x 성분 범위는 상기 대응 위치의 x 성분을 기준으로 -N/2 내지 +N/2, y 성분 범위는 상기 대응 위치의 y 성분을 기준으로 -N/2 내지 +N/2 으로 기설정될 수 있다. The decoding apparatus derives a modified corresponding position based on the corresponding position and the offset information (S830). The decoding apparatus can derive a position shifted by the offset information at the corresponding position to the corrected corresponding position. In addition, the modified corresponding position may be derived in a search range based on the corresponding position. The range of the x range of the search range is from -N / 2 to + N / 2 based on the x component of the corresponding position, and the range of the y range is from -N / 2 to + N / 2 Can be set beforehand.
또한, 상기 오프셋 정보에 포함된 상기 x 오프셋 정보가 나타내는 값 및 상기 y 오프셋 정보가 나타내는 값은 x 오프셋 및 y 오프셋의 크기를 나타낼 수 있고, 상기 값들의 부호는 음수로 고정될 수 있다. 또한, 상기 x 오프셋 및 상기 y 오프셋에 대한 이동 단위가 기설정될 수 있다. 예를 들어, 상기 이동 단위는 1/2 샘플로 설정될 수 있다. 상기 수정된 대응 위치의 x 성분은 상기 대응 위치의 x 성분에서 상기 x 오프셋과 상기 이동 단위를 곱한 값을 뺀 값으로 도출될 수 있고, 상기 수정된 대응 위치의 y 성분은 상기 대응 위치의 y 성분에서 상기 y 오프셋과 상기 기준 단위를 곱한 값을 뺀 값으로 도출될 수 있다, 또한, 상기 수정된 대응 위치는 상술한 수학식 9를 기반으로 도출될 수 있다.In addition, the value indicated by the x offset information included in the offset information and the value indicated by the y offset information may indicate the magnitude of the x offset and the y offset, and the sign of the values may be fixed to a negative value. In addition, a moving unit for the x offset and the y offset may be preset. For example, the moving unit may be set to 1/2 sample. The x component of the modified corresponding location may be derived as the x component of the corresponding location minus the value of the x offset multiplied by the mobile unit and the y component of the modified corresponding location is the y component of the corresponding location Subtracting the value obtained by multiplying the y offset by the reference unit, and the modified corresponding position may be derived based on Equation (9).
디코딩 장치는 상기 수정된 대응 위치의 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출한다(S840). 디코딩 장치는 상기 수정된 대응 위치의 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플을 도출할 수 있다. 예를 들어, 디코딩 장치는 다운 샘플링 필터 및 상기 수정된 대응 위치의 복원 루마 샘플을 기반으로 다운 샘플링을 수행할 수 있고, 상기 대상 크로마 샘플에 대한 상기 다운 샘플링된 복원 루마 샘플을 도출할 수 있다. 일 예로, 상기 다운 샘플링 필터가 상술한 수학식 8과 같이 도출되는 경우, 상기 다운 샘플링은 다음의 수학식과 같이 수행될 수 있다. The decoding apparatus derives a downsampled restoration luma sample for the target chroma sample based on the restored luma sample of the modified corresponding position (S840). The decoding device may derive a downsampled reconstructed luma sample for the target chroma sample based on the reconstructed luma sample of the modified corresponding location. For example, the decoding device may perform downsampling based on a downsampling filter and a reconstructed luma sample of the modified corresponding location, and derive the downsampled reconstructed luma sample for the targeted chroma sample. For example, when the downsampling filter is derived as shown in Equation (8), the downsampling can be performed as the following equation.
여기서, Rec'L[x,y] 는 (x,y) 좌표의 상기 대상 크로마 샘플에 대한 다운 샘플링된 복원 루마 샘플, RecL[2x-offsetx,2y-offsety] 는 (x,y) 좌표의 상기 대상 크로마 샘플에 대한 상기 루마 블록 내 상기 수정된 대응 위치의 상기 복원 루마 샘플, offsetx 은 상기 x 오프셋, offsetx 은 상기 y 오프셋을 나타낼 수 있다. Wherein, Rec 'L [x, y ] is a (x, y) down-sampled restored to the destination chroma samples of the coordinate luma samples, Rec L [2x-offset x , 2y-offset y] is a (x, y) The restoration luma sample, offset x , of the modified corresponding location in the luma block for the target chroma sample of the coordinates may be the x offset and offset x may represent the y offset.
한편, 상기 수정된 대응 위치가 분수 샘플 위치인 경우, 상기 수정된 대응 위치의 복원 루마 샘플은 상기 수정된 위치 주변의 정수 샘플 위치의 복원 루마 샘플들의 보간(interpolation)을 통하여 도출될 수 있다. 상기 보간이 수행되는 경우, 인터 예측(inter prediction)에서 사용되는 보간 필터(interpolation filter), 인트라 예측에서 사용되는 보간 필터, 또는 본 발명을 위한 새로운 보간 필터를 상기 주변의 정수 샘플 위치의 복원 루마 샘플들의 보간(interpolation)이 수행될 수 있다. On the other hand, if the modified corresponding position is a fractional sample position, the reconstructed luma sample of the modified corresponding position may be derived through interpolation of reconstructed luma samples of the integer sample position around the modified position. When the interpolation is performed, an interpolation filter used in inter prediction, an interpolation filter used in intra prediction, or a new interpolation filter for the present invention is used as a restoration luma sample Can be performed.
디코딩 장치는 상기 선형 모델 파라미터들 및 상기 다운 샘플링된 복원 루마 샘플을 기반으로 상기 대상 크로마 샘플의 예측 샘플을 생성한다(S850). 디코딩 장치는 상기 선형 모델 파라미터들 및 상기 다운 샘플링된 복원 루마 샘플을 기반으로 상기 현재 크로마 블록의 상기 대상 크로마 샘플의 상기 예측 샘플을 생성할 수 있다. 상기 선형 모델 파라미터들은 계수(coefficient)와 오프셋(offset)을 포함할 수 있다. 상기 계수는 스케일링 펙터(scaling factor)라고 불릴 수도 있다. 예를 들어, 디코딩 장치는 상기 다운 샘플링된 복원 루마 샘플을 상기 선형 모델을 나타내는 관계식에 대입하여 상기 대상 크로마 샘플의 예측 샘플, 즉, 상기 현재 크로마 블록의 예측 블록을 생성할 수 있다. 즉, 디코딩 장치는 상기 다운 샘플링된 복원 루마 샘플에 상기 계수를 곱한 값에 상기 오프셋을 더하여 상기 대상 크로마 샘플의 상기 예측 샘플을 생성할 수 있다. 상기 현재 크로마 블록의 상기 예측 블록의 샘플은 상기 다운 샘플링된 복원 루마 샘플에 상기 계수를 곱한 값에 상기 오프셋을 더하여 도출될 수 있다. 상기 예측 샘플은 상술한 수학식 7을 기반으로 도출될 수 있다. The decoding apparatus generates a prediction sample of the target chroma sample based on the linear model parameters and the downsampled restoration luma sample (S850). The decoding apparatus may generate the prediction samples of the target chroma samples of the current chroma block based on the linear model parameters and the downsampled reconstructed luma samples. The linear model parameters may include a coefficient and an offset. The coefficient may be referred to as a scaling factor. For example, the decoding apparatus may generate the predicted sample of the target chroma sample, i.e., the prediction block of the current chroma block, by substituting the downsampled restoration luma sample into the relational expression representing the linear model. That is, the decoding apparatus may generate the prediction sample of the target chroma sample by adding the offset to the value obtained by multiplying the downsampled restoration luma sample by the coefficient. The sample of the prediction block of the current chroma block may be derived by adding the offset to a value obtained by multiplying the downsampled restoration luma sample by the coefficient. The prediction sample can be derived based on Equation (7).
한편, 비록 도면에서 도시되지는 않았으나 디코딩 장치는 예측 모드에 따라 상기 예측 샘플을 바로 상기 현재 크로마 블록의 복원 샘플로 이용할 수도 있고, 또는 상기 예측 샘플에 레지듀얼 샘플을 더하여 복원 샘플을 생성할 수도 있다. 디코딩 장치는 상기 현재 크로마 블록에 대한 레지듀얼 샘플이 존재하는 경우, 상기 현재 크로마 블록에 대한 레지듀얼에 관한 정보를 수신할 수 있고, 상기 레지듀얼에 관한 정보는 상기 복원 샘플에 대한 정보에 포함될 수 있다. 상기 레지듀얼에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 상기 현재 크로마 블록에 대한 상기 레지듀얼 샘플(또는 레지듀얼 샘플 어레이)을 도출할 수 있다. 디코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 샘플을 생성할 수 있고, 상기 복원 샘플을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 디코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다.On the other hand, although not shown in the drawing, the decoding apparatus may use the prediction sample as a reconstruction sample of the current chroma block according to a prediction mode, or may add a residual sample to the prediction sample to generate a reconstruction sample . The decoder may receive information about the residual for the current chroma block if the residual sample for the current chroma block is present and information about the residual may be included in the information for the restored sample have. The information on the residual may include a transform coefficient relating to the residual sample. The decoding apparatus may derive the residual sample (or residual sample array) for the current chroma block based on the residual information. The decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Hereinafter, it is described that the decoding apparatus can apply an in-loop filtering procedure such as deblocking filtering and / or SAO procedure to the restored picture in order to improve subjective / objective picture quality as necessary.
또한, 디코딩 장치는 비트스트림을 통하여 상기 현재 크로마 블록에 대한 예측 정보를 수신할 수 있고, 엔트로피 디코딩할 수 있다. 상기 예측 정보는 선형 모델을 기반으로 상기 현재 크로마 블록의 인트라 예측 모드를 도출하는지 여부를 나타내는 플래그를 포함할 수 있다. 상기 플래그는 VPS(video parameter set), SPS(sequence parameter set), PPS(picture parameter set), 슬라이스 세그먼트 헤더(slice segment header), 또는 블록 레벨에서 수신될 수 있다.In addition, the decoding apparatus can receive the prediction information for the current chroma block through the bitstream, and can perform entropy decoding. The prediction information may include a flag indicating whether to derive an intra prediction mode of the current chroma block based on a linear model. The flag may be received at a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice segment header, or a block level.
또한, 상기 예측 정보는 상기 오프셋 정보를 포함할 수 있다. 상기 오프셋 정보는 x 오프셋(offset)을 나타내는 x 오프셋 정보 및 y 오프셋(offset)을 나타내는 y 오프셋 정보를 포함할 수 있고, 상기 오프셋 정보는 블록 단위 신텍스(syntax) 정보를 통하여 시그널링(signaling)될 수 있다. In addition, the prediction information may include the offset information. The offset information may include x offset information indicating an x offset and y offset information indicating a y offset, and the offset information may be signaled through block-based syntax information. have.
또한, 상기 예측 정보는 상기 오프셋 정보의 값이 0인지 여부를 나타내는 플래그 정보를 포함할 수 있다. 예를 들어, 상기 플래그 정보의 값이 0인 경우, 상기 플래그 정보는 상기 오프셋 정보의 값이 0이 아님을 나타낼 수 있고, 상기 플래그 정보의 값이 1인 경우, 상기 플래그 정보는 상기 오프셋 정보의 값이 0임을 나타낼 수 있다. 상기 플래그 정보는 블록 단위 신텍스(syntax) 정보를 통하여 시그널링(signaling)될 수 있다. The prediction information may include flag information indicating whether the value of the offset information is 0 or not. For example, when the value of the flag information is 0, the flag information may indicate that the value of the offset information is not 0, and when the value of the flag information is 1, The value may be zero. The flag information may be signaled through block-based syntax information.
상술한 본 발명에 따르면 현재 크로마 블록에 대한 루마 성분을 이용하여 상기 현재 크로마 블록의 예측을 수행하되, 상기 현재 크로마 블록의 예측에 보다 적합한 위치의 루마 성분을 기반으로 다운 샘플링을 수행하고, 다운 샘플링된 루마 성분을 기반으로 예측을 수행할 수 있는바, 상기 현재 크로마 블록의 예측 정확도가 향상시킬 수 있고, 이를 통하여 전반적인 코딩 효율을 향상시킬 수 있다.According to the present invention described above, prediction of the current chroma block is performed using a luma component for a current chroma block, downsampling is performed based on a luma component at a position more suitable for prediction of the current chroma block, The prediction accuracy of the current chroma block can be improved and the overall coding efficiency can be improved.
또한, 본 발명에 따르면 복수의 다운 샘플링 필터들을 기반으로 크로마 성분의 예측을 수행할 수 있고, 이를 통하여 상기 현재 크로마 블록의 예측 정확도가 향상시킬 수 있고, 이를 통하여 전반적인 코딩 효율을 향상시킬 수 있다.In addition, according to the present invention, prediction of a chroma component can be performed based on a plurality of downsampling filters, thereby improving prediction accuracy of the current chroma block, thereby improving overall coding efficiency.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.In the above-described embodiments, while the methods are described on the basis of a flowchart as a series of steps or blocks, the present invention is not limited to the order of steps, and some steps may occur in different orders or in a different order than the steps described above have. It will also be appreciated by those skilled in the art that the steps depicted in the flowchart are not exclusive and that other steps may be included or that one or more steps in the flowchart may be deleted without affecting the scope of the invention.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.The above-described method according to the present invention can be implemented in software, and the encoding apparatus and / or decoding apparatus according to the present invention can perform image processing of, for example, a TV, a computer, a smart phone, a set- Device.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다.When the embodiments of the present invention are implemented in software, the above-described method may be implemented by a module (a process, a function, and the like) that performs the above-described functions. The module is stored in memory and can be executed by the processor. The memory may be internal or external to the processor and may be coupled to the processor by any of a variety of well known means. The processor may comprise an application-specific integrated circuit (ASIC), other chipset, logic circuitry and / or a data processing device. The memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory cards, storage media, and / or other storage devices.
Claims (15)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US201762543317P | 2017-08-09 | 2017-08-09 | |
| US62/543,317 | 2017-08-09 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019031703A1 true WO2019031703A1 (en) | 2019-02-14 |
Family
ID=65271657
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/KR2018/007003 Ceased WO2019031703A1 (en) | 2017-08-09 | 2018-06-21 | Method and apparatus for image decoding according to linear model in image coding system |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2019031703A1 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113099221A (en) * | 2021-02-22 | 2021-07-09 | 浙江大华技术股份有限公司 | Cross-component sample point self-adaptive compensation method, coding method and related device |
| WO2023125771A1 (en) * | 2021-12-29 | 2023-07-06 | Mediatek Inc. | Cross-component linear model prediction |
| WO2024061136A1 (en) * | 2022-09-19 | 2024-03-28 | Douyin Vision Co., Ltd. | Method, apparatus, and medium for video processing |
| WO2024186135A1 (en) * | 2023-03-08 | 2024-09-12 | 엘지전자 주식회사 | Image encoding/decoding method and device, and recording medium storing bitstream |
| US12439055B2 (en) | 2021-02-22 | 2025-10-07 | Zhejiang Dahua Technology Co., Ltd. | Methods and systems for video coding |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015137786A1 (en) * | 2014-03-14 | 2015-09-17 | 삼성전자 주식회사 | Scalable video encoding/decoding method and apparatus |
| US9288500B2 (en) * | 2011-05-12 | 2016-03-15 | Texas Instruments Incorporated | Luma-based chroma intra-prediction for video coding |
-
2018
- 2018-06-21 WO PCT/KR2018/007003 patent/WO2019031703A1/en not_active Ceased
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9288500B2 (en) * | 2011-05-12 | 2016-03-15 | Texas Instruments Incorporated | Luma-based chroma intra-prediction for video coding |
| WO2015137786A1 (en) * | 2014-03-14 | 2015-09-17 | 삼성전자 주식회사 | Scalable video encoding/decoding method and apparatus |
Non-Patent Citations (3)
| Title |
|---|
| CHEN, JIANLE ET AL.: "On Phase Alignment of Up-sampling Process in SHVC", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11, JCTVC-00215, 15TH MEETING, 1 November 2013 (2013-11-01), Geneva, CH, XP030115264 * |
| CHEN, JIANLE ET AL.: "SHVC Test Model 11 (SHM 11) Introduction and Encoder Description", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG 16 WP 3 AND ISO/EEC JTC 1/SC 29/WG 11, JCTYC-Y1007, 22ND MEETING, 21 October 2015 (2015-10-21), Geneva, CH, XP030117648 * |
| FRANCOIS, EDOUARD ET AL.: "Use of Chroma Phase in LM Mode", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11, JCTVC-10188, 9TH MEETING, 7 May 2012 (2012-05-07), Geneva, CH, XP030052772 * |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113099221A (en) * | 2021-02-22 | 2021-07-09 | 浙江大华技术股份有限公司 | Cross-component sample point self-adaptive compensation method, coding method and related device |
| CN113099221B (en) * | 2021-02-22 | 2023-06-02 | 浙江大华技术股份有限公司 | Cross-component sample point self-adaptive compensation method, coding method and related device |
| US12439055B2 (en) | 2021-02-22 | 2025-10-07 | Zhejiang Dahua Technology Co., Ltd. | Methods and systems for video coding |
| WO2023125771A1 (en) * | 2021-12-29 | 2023-07-06 | Mediatek Inc. | Cross-component linear model prediction |
| WO2024061136A1 (en) * | 2022-09-19 | 2024-03-28 | Douyin Vision Co., Ltd. | Method, apparatus, and medium for video processing |
| WO2024186135A1 (en) * | 2023-03-08 | 2024-09-12 | 엘지전자 주식회사 | Image encoding/decoding method and device, and recording medium storing bitstream |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017034331A1 (en) | Method and device for chroma sample intra prediction in video coding system | |
| WO2017052081A1 (en) | Inter prediction method and apparatus in image coding system | |
| WO2017188566A1 (en) | Inter-prediction method and apparatus in image coding system | |
| WO2018236051A1 (en) | METHOD AND DEVICE FOR IMAGE DECODING ACCORDING TO INTRA PREDICTION IN AN IMAGE ENCODING SYSTEM | |
| WO2017022973A1 (en) | Inter prediction method and device in video coding system | |
| WO2017069590A1 (en) | Modeling-based image decoding method and device in image coding system | |
| WO2017043786A1 (en) | Intra prediction method and device in video coding system | |
| WO2012081879A1 (en) | Method for decoding inter predictive encoded motion pictures | |
| WO2017014412A1 (en) | Intra prediction method and device in video coding system | |
| WO2018070632A1 (en) | Video decoding method and device in video coding system | |
| WO2018021585A1 (en) | Method and apparatus for intra-prediction in image coding system | |
| WO2017188565A1 (en) | Image decoding method and device in image coding system | |
| WO2018056709A1 (en) | Inter-prediction method and device in image coding system | |
| WO2019112071A1 (en) | Image decoding method and apparatus based on efficient transformation of chroma component in image coding system | |
| WO2018216862A1 (en) | Method and device for decoding image according to intra prediction in image coding system | |
| WO2019194507A1 (en) | Image coding method based on affine motion prediction, and device for same | |
| WO2017195914A1 (en) | Inter prediction method and apparatus in video coding system | |
| WO2017048008A1 (en) | Inter-prediction method and apparatus in video coding system | |
| WO2018174357A1 (en) | Method and device for image decoding in image coding system | |
| WO2017061671A1 (en) | Method and device for coding image on basis of adaptive transformation in image coding system | |
| WO2019031703A1 (en) | Method and apparatus for image decoding according to linear model in image coding system | |
| WO2017052272A1 (en) | Method and apparatus for intra prediction in video coding system | |
| WO2018128223A1 (en) | Inter-prediction method and apparatus in image coding system | |
| WO2019117659A1 (en) | Image coding method based on deriving motion vector, and device therefor | |
| WO2019066175A1 (en) | Image decoding method and device in accordance with block split structure in image coding system |
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: 18844793 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: 18844793 Country of ref document: EP Kind code of ref document: A1 |