WO2019117659A1 - Image coding method based on deriving motion vector, and device therefor - Google Patents

Image coding method based on deriving motion vector, and device therefor Download PDF

Info

Publication number
WO2019117659A1
WO2019117659A1 PCT/KR2018/015894 KR2018015894W WO2019117659A1 WO 2019117659 A1 WO2019117659 A1 WO 2019117659A1 KR 2018015894 W KR2018015894 W KR 2018015894W WO 2019117659 A1 WO2019117659 A1 WO 2019117659A1
Authority
WO
WIPO (PCT)
Prior art keywords
current block
motion vector
deriving
prediction
block
Prior art date
Application number
PCT/KR2018/015894
Other languages
French (fr)
Korean (ko)
Inventor
이재호
임재현
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Publication of WO2019117659A1 publication Critical patent/WO2019117659A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/577Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • the present invention relates to an image coding technique, and more particularly, to an image coding method and apparatus based on motion vector derivation.
  • HD high definition
  • UHD ultra high definition
  • the present invention provides a method and apparatus for enhancing video coding efficiency.
  • a control point motion vector based on a control point motion vector predictor (CPMVP) of a control point (CP) and a control point motion vector (CPMV).
  • Another object of the present invention is to provide a method and apparatus for deriving a motion vector of a current block based on CPMVs of CPs for a current block.
  • an image decoding method performed by a decoding apparatus includes deriving a motion vector predictor (MVP) for a current block, calculating a motion vector (MVP) representing a difference between a motion vector of the current block and MVP for the current block from the bitstream, Deriving a motion vector difference (MVD), deriving a control point motion vector predictor (CPMVP) corresponding to each of the control points (CP) for the current block , Deriving control point motion vectors (CPMVs) corresponding to each of the CPs for the current block based on MVP, MVD and CPMVPs for the current block, Deriving a motion vector field (MVF) for the current block from the MVF, Based on the predicted samples for the current block and the step of generating prediction samples to be characterized in that it comprises a step of generating a reconstructed samples of the current block.
  • MVP motion vector predictor
  • MVP motion vector difference
  • CPMVP control point motion vector predictor
  • an image encoding method performed by an encoding apparatus includes deriving a motion vector predictor (MVP) for a current block, calculating a motion vector predictor (MVP) representing a difference between a motion vector of the current block and MVP for the current block, deriving a control point motion vector predictor (CPMVP) corresponding to each control point (CP) for the current block, Deriving control point motion vectors (CPMVs) corresponding to each of the CPs for the current block, based on the MVP for the current block, the MVD, and the CPMVPs, Deriving a motion vector field (MVF) for the current block, based on the MVF for the current block, Generating residual samples for the current block based on the generated prediction samples, and generating residual samples for the predictive information including the derived MVD and residuals for the residual samples based on the generated prediction samples. And encoding the dual information.
  • MVP motion vector predictor
  • MVP motion vector predictor
  • MVP control point motion vector predictor
  • a decoding apparatus for performing image decoding.
  • the decoding apparatus includes a motion vector difference (MVD) representing a difference between a motion vector of the current block and a motion vector predictor (MVP) of the current block from a bitstream, (CPMVP) corresponding to each of the control points (CP) for the current block is derived, and the control point motion vector predictor A control point motion vector (CPMV) corresponding to each of the CPs for the current block is derived based on the MVP for the current block, the MVD, and the CPMVPs, Derives a motion vector field (MVF) for the current block, A predictor for generating prediction samples for the re-block, and an adder for generating reconstruction samples for the current block based on the prediction samples for the current block.
  • MVP motion vector predictor
  • an encoding apparatus for performing image encoding.
  • the overall video / video compression efficiency can be increased.
  • the motion vector can be derived based on the bidirectional linear interpolation motion model, thereby enhancing the image coding efficiency.
  • the CPMVs of the CPs for the current block can be applied to the bidirectional linear interpolation motion model to derive the motion vector of the current block, thereby enhancing the video coding efficiency.
  • FIG. 1 is a schematic view illustrating a configuration of an encoding apparatus to which the present invention can be applied.
  • FIG. 1 is a schematic view illustrating a configuration of an encoding apparatus to which the present invention can be applied.
  • FIG. 2 is a view for schematically explaining a configuration of a decoding apparatus to which the present invention can be applied.
  • FIG. 3 is a diagram illustrating an example of motion represented through an affine motion model according to an embodiment.
  • FIG. 4 is a diagram showing an example of an affine motion model using CPMVs of three CPs for the current block.
  • FIG. 5 is a diagram showing an example of an affine motion model using CPMVs of two CPs for the current block.
  • FIG. 6 is a diagram illustrating an example of deriving a motion vector on a subblock-by-block basis based on an affine motion model.
  • FIG. 7 is a flowchart illustrating a process of performing image coding based on a motion vector according to an embodiment.
  • FIG. 8 is a diagram for explaining a process of deriving a motion vector of a current block based on four CPs for a current block according to an embodiment.
  • FIG. 9 is a flowchart illustrating a process of deriving a motion vector of a current block based on four CPs for a current block according to an embodiment.
  • FIG. 10 is a diagram for explaining a process of deriving a motion vector of a sample included in a current picture based on a bi-directional reference picture according to an embodiment.
  • FIG. 11 is a diagram for explaining a process of deriving an x-axis gradient of a left top CP for a current block according to an embodiment.
  • FIG. 12 is a diagram for explaining a process of deriving a motion vector field (MVF) for a current block based on CPMVs of four CPs for a current block according to an embodiment.
  • MVF motion vector field
  • FIG. 13 is a diagram illustrating an example in which an MVF for a current block is derived according to an embodiment.
  • FIGS. 14 and 15 are flowcharts showing an encoding method of an encoding apparatus and an encoding apparatus according to an embodiment.
  • 16 and 17 are flowcharts showing a decoding method of an image decoding apparatus and a decoding apparatus according to an embodiment.
  • an image decoding method performed by a decoding apparatus includes deriving a motion vector predictor (MVP) for a current block, calculating a motion vector (MVP) representing a difference between a motion vector of the current block and MVP for the current block from the bitstream, Deriving a motion vector difference (MVD), deriving a control point motion vector predictor (CPMVP) corresponding to each of the control points (CP) for the current block , Deriving control point motion vectors (CPMVs) corresponding to each of the CPs for the current block based on MVP, MVD and CPMVPs for the current block, Deriving a motion vector field (MVF) for the current block from the MVF, Based on the predicted samples for the current block and the step of generating prediction samples to be characterized in that it comprises a step of generating a reconstructed samples of the current block.
  • MVP motion vector predictor
  • MVP motion vector difference
  • CPMVP control point motion vector predictor
  • VVC Versatile Video Coding
  • HEVC High Efficiency Video Coding
  • video may mean a set of images according to time.
  • a picture generally refers to a unit that represents one image in a specific time period, 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.
  • 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 schematic view illustrating a configuration of an encoding apparatus to which the present invention can be applied.
  • the encoding device may include a video encoding device and / or a video encoding device.
  • the video encoding apparatus may be used as a concept including a video encoding apparatus.
  • the image encoding apparatus 100 includes a picture partitioning module 105, a prediction module 110, a residual processing module 120, an entropy encoding unit 120, module 130, an adder 140, a filtering module 150, and a memory 160.
  • the residual processing unit 120 includes a subtractor 121, a transform module 122, a quantization module 123, a rearrangement module 124, a dequantization module 125 And an inverse transform module (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, a binary tree structure, and / or a ternary tree structure.
  • the quadtree structure is applied first, and the binary tree structure and the ternary tree structure can be applied later.
  • a binary tree structure / ternary 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 predicts a current block or a residual block and generates a predicted block including prediction samples of the current block can do.
  • 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 4x4 residual array, the residual sample may be transformed using a DST (Discrete Sine Transform) transformation kernel In other cases, the residual samples can be transformed using a DCT (Discrete Cosine Transform) conversion kernel.
  • DST Discrete Sine Transform
  • DCT Discrete Cosine Transform
  • the quantization unit 123 may quantize the transform coefficients to generate quantized transform coefficients.
  • the reordering unit 124 rearranges the quantized transform coefficients.
  • the reordering unit 124 may 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.
  • 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 information necessary for video restoration (e.g., a value of a syntax element, etc.) other than the quantized transform coefficient, either entropy encoding or separately according to a predetermined method.
  • the encoded information may be transmitted or stored in units of NAL (network abstraction layer) units in the form of a bit stream.
  • 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, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu
  • 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 reconstruction module or a reconstruction 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 view schematically illustrating a configuration of a video decoding apparatus to which the present invention can be applied.
  • the image decoding apparatus may include an image decoding apparatus.
  • the image decoding apparatus 200 includes an entropy decoding module 210, a residual processing module 220, a prediction module 230, an adder 240, A filtering module 250, and a memory 260.
  • the residual processing unit 220 may include a rearrangement module 221, a dequantization module 222, and an inverse transform module 223.
  • the video decoding apparatus 200 may include a receiver for receiving a bitstream including video information. The receiving unit may be a separate module or may be included in the entropy decoding unit 210.
  • the image decoding apparatus 200 can restore the video / image / picture corresponding to the process of processing the video / image information in the image 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 divided from the maximum coding unit along a quadtree structure, a binary tree structure, and / or a ternary tree structure.
  • 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 / , Determines a context model, predicts the occurrence probability of a bin according to the determined context model, performs arithmetic decoding of the bean, and generates a symbol corresponding to the value of each syntax element can do.
  • the CABAC entropy decoding method can update the context model using the information of the decoded symbol / bean 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 required 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. When the motion information of temporal neighboring blocks is used in the skip mode and the merge mode, the highest picture on the reference picture list can be used as 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 reconstruction module or a reconstruction 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.
  • prediction is performed in order to enhance the compression efficiency in performing video coding as described above.
  • the predicted block includes predicted samples in the spatial domain (or pixel domain).
  • the predicted block is derived similarly in the encoding apparatus and the decoding apparatus, and the encoding apparatus decodes information (residual information) about the residual between the original block and the predicted block rather than the original sample value of the original block Signaling to the device can improve the image coding efficiency.
  • the decoding apparatus may derive a residual block including residual samples based on the residual information and may generate a restoration block including restoration samples by adding the predicted block to the residual block, The reconstructed picture including the reconstructed picture can be generated.
  • the residual information may be generated through conversion and quantization procedures.
  • the encoding apparatus derives a residual block between the original block and the predicted block, and performs a conversion procedure on the residual samples (residual sample array) included in the residual block to derive the transform coefficients And quantizing the quantized transform coefficients by performing a quantization procedure on the transform coefficients to signal related decoding information (through a bit stream) to the decoding device.
  • the residual information may include information such as the value information of the quantized transform coefficients, the position information, the transform technique, the transform kernel, and the quantization parameter.
  • the decoding apparatus performs an inverse quantization / inverse transformation procedure based on the residual information and can derive residual samples (or residual blocks).
  • the decoding apparatus can generate a reconstructed picture based on the predicted block and the residual block.
  • the encoding apparatus may also derive a residual block by dequantizing / inverse transforming the quantized transform coefficients for a reference for inter prediction of a subsequent picture, and generate a reconstructed picture based on the derived residual block.
  • FIG. 3 is a diagram illustrating an example of motion represented through an affine motion model according to one embodiment.
  • CP is an abbreviation of a control point, and may refer to a reference sample or a reference point in the process of applying an affine motion model to a current block.
  • the motion vector of the CP may be referred to as a " CPMV (Control Point Motion Vector) "and the CPMV may be derived based on a CPMV predictor" CPMVP (Control Point Motion Vector Predictor) ".
  • CPMV Control Point Motion Vector
  • CPMVP Control Point Motion Vector Predictor
  • a motion that may be represented through an affine motion model may include translational motion, scale motion, rotate motion, and shear motion.
  • the affine motion model is based on the translational movement of the image (part of the image) in accordance with the passage of time, the scale movement in which a part of the image is scaled according to the passage of time, And a shear motion in which a part of the image is deformed into an equilibrium quadrilateral shape according to the passage of time.
  • Affine inter prediction may be performed using an affine motion model according to an embodiment.
  • the encoding apparatus / decoding apparatus can predict the distortion of the image based on the motion vectors in the CPs of the current block through affine inter prediction, thereby improving the compression performance of the image by increasing the accuracy of the prediction .
  • a motion vector for at least one CP of the current block can be derived by using a motion vector of a neighboring block of the current block, it is possible to reduce the data amount burden on the added additional information, .
  • affine inter prediction may be performed based on three CPs for the current block, i.e., motion information at three reference points.
  • the motion information at the three CPs for the current block may include the CPMV of each CP.
  • FIG. 4 exemplarily shows a motion model in which the motion vectors for the three CPs are used.
  • CP at the (0, 0) sample position can be represented as CP0, CP at the (w, 0) sample position as CP1, and CP at the (0, h) sample position as CP2.
  • An affine motion model according to an embodiment can be applied using the CPs and the motion vectors for the CPs.
  • the affine motion model can be expressed as Equation 1 below.
  • w represents the width of the current block 400
  • h represents the height of the current block 400
  • v 0x and v 0y denote the x component of the motion vector of CP0
  • y And v 1x and v 1y denote the x and y components of the motion vector of CP1, respectively
  • v 2x and v 2y denote the x and y components of the motion vector of CP2, respectively.
  • X represents the x component of the position of the target sample in the current block 400
  • y represents the y component of the position of the target sample in the current block 400
  • v x represents the current block 400 ) x component of the motion vector of the target within the sample
  • v y represents the y component of the motion vector of the target sample within the current block (400).
  • a motion vector according to a sample position in a current block can be derived based on Equation (1). That is, according to the affine motion model, the motion vectors v0 ( v0x , v0y ) and v1 (v0) in the CPs are calculated based on the distance ratios between the coordinates (x, y) v 1x, v 1y), v2 (v 2x, v 2y) is can be scaled to be derived by the motion vector of the target sample corresponding to the destination sample position.
  • a motion vector of each sample in the current block can be derived based on motion vectors of the CPs.
  • the set of motion vectors of the samples in the current block derived according to the affine motion model may be referred to as an affine motion vector field.
  • Equation (1) The six parameters for Equation (1) can be represented by a, b, c, d, e, and f as shown in the following mathematical formulas, and the mathematical expression for the affine motion model represented by the six parameters is ≪ / RTI >
  • w represents the width of the current block 400
  • h represents the height of the current block 400
  • v 0x and v 0y denote the x component of the motion vector of CP0
  • y And v 1x and v 1y denote the x and y components of the motion vector of CP1, respectively
  • v 2x and v 2y denote the x and y components of the motion vector of CP2, respectively.
  • X represents the x component of the position of the target sample in the current block 400
  • y represents the y component of the position of the target sample in the current block 400
  • v x represents the current block 400 ) x component of the motion vector of the target within the sample
  • v y represents the y component of the motion vector of the target sample within the current block (400).
  • the affine motion model using the six parameters or the affine inter prediction may be referred to as a six-parameter affine motion model or AF6.
  • affine inter prediction may be performed based on three CPs for the current block 400, i.e., motion information at three reference points.
  • the motion information at the three CPs for the current block 400 may include the CPMV of each CP.
  • affine inter prediction may be performed based on two CPs for the current block 400, i.e., motion information at two reference points.
  • the motion information at the two CPs for the current block 400 may include the CPMV of each CP.
  • FIG. 5 illustrates an exemplary motion model in which the motion vectors for two CPs are used.
  • An affine motion model using two CPs can represent three movements including translational motion, scale motion, and rotational motion.
  • the affine motion model representing the three movements may be referred to as a similarity affine motion model or a simplified affine motion model.
  • the width of the current block 500 is w
  • the height is h
  • CPs for the current block 500.
  • the CP at the (0, 0) sample position can be denoted as CP0
  • the CP at the (w, 0) sample position can be denoted as CP1.
  • An affine motion model according to an embodiment can be applied using the CPs and the motion vectors for the CPs.
  • the affine motion model can be expressed as Equation 3 below.
  • w represents the width of the current block 500
  • v 0 x and v 0y denote the x-component and y-component of the motion vector of CP
  • v 1x and v 1y denote the motion vectors of CP 1 , x component
  • y component X is the x component of the location of the object in the current block 500
  • y is the y component of the location of the object in the current block 500
  • v x is the current block 500
  • v y represents the y component of the motion vector of the target sample within the current block (500).
  • Equation (3) The four parameters for Equation (3) can be expressed as a, b, c, and d as shown in the following equation, and the mathematical expression for the affine motion model represented by the four parameters can be expressed as follows .
  • w represents the width of the current block 500
  • v 0 x and v 0y denote the x-component and y-component of the motion vector of CP
  • v 1x and v 1y denote the motion vectors of CP 1 , x component
  • y component X is the x component of the location of the object in the current block 500
  • y is the y component of the location of the object in the current block 500
  • v x is the current block 500
  • v y represents the y component of the motion vector of the target sample within the current block (500).
  • the affine motion model using the two CPs can be represented by four parameters a, b, c, and d as in Equation (4), and the affine motion model using the four parameters
  • the affine inter prediction can be expressed as a motion parameter, which is a 4-parameter affine, or AF4. That is, according to the affine motion model, a motion vector of each sample in the current block can be derived based on motion vectors of the control points. A set of motion vectors of the samples in the current block derived according to the affine motion model may be expressed as an affine motion vector field.
  • the motion vector of a sample unit can be derived through the affine motion model, and the accuracy of the inter prediction can be improved significantly.
  • the complexity in the motion compensation process may be greatly increased.
  • the motion vector of each sub-block in the current block may be limited to be derived.
  • FIG. 6 is a diagram illustrating an example of deriving a motion vector on a subblock-by-block basis based on an affine motion model.
  • FIG. 6 exemplarily illustrates a case where the size of the current block is 16x16 and a motion vector is derived in units of 4x4 sub-blocks.
  • the subblock may be set in various sizes.
  • a motion vector may be derived for each sub-block, and various methods for deriving a motion vector representative of each sub-block may be applied.
  • a motion vector of each sub-block may be derived using a center position or a lower right side sample position of each sub-block as representative coordinates.
  • the lower right position of the center may indicate the sample position located on the lower right side among the four samples located at the center of the sub-block.
  • n is an odd number
  • one sample may be located in the center of a sub-block, in which case a center sample position may be used to derive the motion vector of the sub-block.
  • four samples may be positioned adjacent to the center of a sub-block, and a lower-order sample position may be used for deriving the motion vector.
  • FIG. 6 the lower-order sample position
  • representative coordinates of each sub-block may be derived as (2, 2), (6, 2), (10, 2), ..., (14, 14)
  • the apparatus / decoding apparatus may substitute each of the representative coordinates of the sub-blocks into Equation (1) or (3) to derive a motion vector of each sub-block.
  • the motion vectors of the subblocks in the current block derived through the affine motion model may be denoted as affine MVF.
  • inter prediction using the above affine motion model may have an affine merge mode (AF_MERGE) and an affine inter mode (AF_INTER).
  • AF_MERGE affine merge mode
  • AF_INTER affine inter mode
  • FIGS. 7 to 17 illustrate motion estimation and motion compensation, which may be performed based on Motion Vector Derivation (MVD) or Decoder Side Motion Vector Derivation (DMVD).
  • MVD Motion Vector Derivation
  • DMVD Decoder Side Motion Vector Derivation
  • BIMVD Bilinear Interpolation Motion Model based Motion Vector Derivation
  • a bidirectional linear interpolation motion model may be used in BIMVD.
  • FIG. 7 is a flowchart illustrating a process of performing image coding based on a motion vector according to an embodiment.
  • FIG. 7 may be a flow chart that schematically illustrates a method of operating inter prediction according to one embodiment.
  • the decoding apparatus 200 may estimate motion information of a current block (S700). More specifically, the decoding apparatus 200 according to the embodiment can derive MVP for the current block (S702), decode (or obtain) MVD (from the bit stream) for the current block (S704 , MVP and MVD for the current block are added to obtain the motion vector of the current block (S706).
  • MVP for the current block
  • MVD from the bit stream
  • MVP and MVD for the current block are added to obtain the motion vector of the current block (S706).
  • the decoding apparatus 200 may generate prediction samples for a current block based on motion information estimated in S700 (S710). When the prediction samples for the current block are generated, the decoding apparatus 200 can restore the current block based on the prediction sample and the residual sample for the current block.
  • FIG. 8 is a diagram for explaining a process of deriving a motion vector of a current block based on four CPs for a current block according to an embodiment.
  • the decoding apparatus 200 may perform a motion vector derivation (BIMVD) based on a bidirectional interference motion model.
  • Information about the four CPs CP0, CP1, CP2, and CP3 for the current block 800 may be needed to perform BIMVD on the current block 800, for example, as shown in FIG. 8 .
  • Information about the CP may include information about the CPMVP, CPMV, CP location, the x-axis gradient of the CP, the y-axis gradient of the CP, and the time-base gradient of the CP.
  • the decoding device 200 may perform BIMVD on the current block 800 based on two CPs or three CPs for the current block 800.
  • four CPs used in the process of performing BIMVD on the current block 800 are assumed to be four samples existing at each corner of the current block 800, but the embodiment is limited thereto no.
  • a sample at the center of the current block 800, a sample at a predetermined distance from each edge of the current block 800, and the like may be used as a CP in the process of performing BIMVD on the current block 800 have.
  • the decoding apparatus 200 may derive MVP for the current block 800 and decode (or obtain) the MVD for the current block 800 (from the bitstream).
  • the decoding apparatus 200 may derive the CPMVPs of the CPs for the current block 800, respectively.
  • the decoding apparatus 200 may derive the CPMVPs CPMVP0, CPMVP1, CPMVP2 and CPMVP3 of the four CPs CP0, CP1, CP2 and CP3 for the current block 800, respectively.
  • a more specific method by which the decoding apparatus 200 derives the CPMVPs of the CPs for the current block 800 will be described later with reference to FIG.
  • the decoding apparatus 200 may derive the CPMVs of the CPs for the current block 800 based on the CPMVPs of the CPs for the current block 800, respectively.
  • the decoding apparatus 200 may determine the number of CPs for each of the four CPs for the current block 800 based on CPMVPs (CPMVP0, CPMVP1, CPMVP2, and CPMVP3) of each of the four CPs for the current block 800
  • CPMVPs CPMVP0, CPMVP1, CPMVP2, and CPMVP3
  • the CPMVs CPMV0, CPMV1, CPMV2 and CPMV3 can be derived.
  • the CPMVs of each of the CPs for the current block 800 may be derived, for example, based on Equation (5) below.
  • MVP represents the MVP for the current block 800
  • MVD may represent the difference between the motion vector of the current block 800 and the MVP for the current block 800.
  • the decoding apparatus 200 may derive a motion vector field (MVF) for the current block 800 based on the CPMVs of the CPs for the current block 800 have.
  • the MVF for the current block 800 may be referred to as a BIMVD MVF.
  • the MVF for the current block 800 may be derived in units of subblocks or samples in the current block 800, and the subblock unit may be, for example, a 4x4 block unit or an NxN block unit.
  • the decoding apparatus 200 can derive the MVF for the current block 800 based on the determined unit.
  • CPMVs can be applied to the bidirectional linear interpolation motion model in deriving the MVF for the current block 800 based on the CPMVs of the CPs for the current block 800.
  • a more detailed description of the bidirectional linear interpolation motion model will be described later with reference to FIG.
  • the decoding apparatus 200 can perform prediction on a sub-block unit or a sample basis on the basis of the derived MVF.
  • FIG. 9 is a flowchart illustrating a process of deriving a motion vector of a current block based on four CPs for a current block according to an embodiment.
  • step S910 corresponds to step S710 of FIG. 7
  • step S920 is performed by the transforming unit 122 and the quantizing unit 123 of FIG. 1
  • S930 may be performed by the entropy encoding unit 130 of FIG. 1 and the entropy decoding unit 210 of FIG. Therefore, the detailed description overlapping with the above-described contents in FIG. 1, FIG. 2 or FIG. 8 will be omitted or simplified.
  • the decoding apparatus 200 may estimate motion information of a current block (S900). More specifically, the decoding apparatus 200 according to the embodiment can derive the MVP for the current block (S901), decode the MVD for the current block (S902), and calculate the four CPs It is possible to derive four CPMVPs corresponding to each of the CPMVs of the current block (S903), derive four CPMVs corresponding to each of the four CPs of the current block (S904) (S905).
  • the decoding apparatus 200 decodes CPMVPs using a first reference picture and a second reference picture of a current picture including a current block in the course of deriving CPMVPs according to step S903
  • Time-axix bidirectional prediction (bi-prediction) can be performed.
  • the time base bidirectional prediction used in the process of deriving the CPMVPs will be described in more detail with reference to FIG.
  • the decoding apparatus 200 may use Equation (5) described above in the process of explaining FIG. 8 in the process of deriving CPMVs according to S904.
  • the embodiment is not limited thereto, and the decoding apparatus 200 may derive the CPMVs from Equation (5) based on a formula within a range that can be easily derived by a person skilled in the art.
  • the decoding apparatus 200 can apply the CPMVs to the bidirectional linear interpolation motion model in the process of deriving the MVF for the current block according to S905.
  • the bidirectional linear interpolation motion model can be determined based on the CPMVs, the width of the current block, and the height of the current block.
  • the MVF for the current block derived according to S905 may be derived in units of subblocks or samples, and the subblock unit may be, for example, 4x4 blocks or NxN blocks. A more detailed description of the unit in which the MVF is determined in the current block will be described later with reference to FIG.
  • the decoding apparatus 200 can generate prediction samples for the current block based on the motion information estimated in S900 (S901 to S905) (S910), and quantizes and quantizes the samples of the current block
  • the transform is performed (S920), and entropy coding is performed (S930).
  • FIG. 10 is a diagram for explaining a process of deriving a motion vector of a sample included in a current picture based on a bi-directional reference picture according to an embodiment.
  • the CPMVPs of each of the four CPs for the current block may be derived in accordance with the principles described in FIG. More specifically, the CPMVPs of each of the four CPs for the current block can be derived based on the temporal bidirectional prediction described in FIG.
  • an LO picture indicates a picture before a predetermined time when a current picture is referred to
  • an L1 picture indicates a picture after a predetermined time .
  • the motion vector corresponding to the A position and the motion vector corresponding to the B position may have the same size but opposite directions.
  • the difference between the sample value at the A position and the sample value at the B position can be derived, for example, as shown in Equation (6) below.
  • Equation (6) Represents a sample value at the A position of the LO picture, Represents the sample value of the B position of the L1 picture.
  • the sample values of the A position and the B position of the L0 picture of the L0 picture and the L picture B of the L0 picture can be obtained by using the first order equation of the Taylor series, respectively.
  • Equation (9) Substituting the sample value of the A position of the LO picture according to Equation (7) and the sample value of the B position of the L1 picture according to Equation (8) into Equation (6), the following Equation (9) can be derived.
  • Equation (9) And Represents the x-axis and y-axis partial differential values at the (i, j) position of L0, And Represents the x-axis and y-axis partial differential values at the (i, j) position of L1, respectively.
  • the x-axis and y-axis partial differential values can mean the amount of change in the sample values in the x- and y-axis directions and can be derived through various mathematical methods.
  • (i, j) may be one of the positions of four CPs for the current block, and local (i, j) within a window of (2M + 1) If a locally steady motion is applied, the motion vector at position (i, j) is (i ', j') (where iM ⁇ i' ⁇ i + M, jM ⁇ j' ⁇ j + M) . ≪ / RTI > Accordingly, based on Equations (6) to (9) The following equation (10) is obtained.
  • Equation (11) May represent an x-axis gradient, a y-axis gradient, and a time-base gradient, respectively, of the (i, j) position.
  • Equation (12) the motion vector at the (i, j) And Can be derived as shown in the following Equation (14).
  • CPMVP at each CP for the current block when the positions of each of the four CPs for the current block are substituted into (i, j) in Equations (6) through (14), CPMVP at each CP for the current block can be derived have.
  • the CPMV at each CP when the positions of the four CPs for the current block are substituted into (i, j) in Equations (6) to (14), the CPMV at each CP may be directly derived have.
  • the contents described in Fig. 10 can always be applied when the decoding apparatus 200 performs image decoding.
  • the operations described in FIG. 10 may be performed based on a determination as to whether to perform bi-prediction in the course of deriving the CPMVP of each CP.
  • the temporal bidirectional prediction refers to a prediction using a first reference picture and a second reference picture of a current picture including a current block to derive CPMVPs.
  • the first reference picture and the second reference picture may be located in mutually opposite directions on the time axis with reference to the current picture.
  • TRUE bi-prediction can perform bidirectional prediction, and there are a first reference picture L0 and a second reference picture L1 for the current picture, and the first reference picture L0 and the second reference picture L1 are time- It can be said to be located in the opposite axial direction.
  • the decoding apparatus 200 performs time-base bi-directional prediction and performs BIMVD based on the bi-prediction. If it is not TRUE bi-prediction, BIMVD is not performed, and the decoding apparatus 200 can perform bi-directional prediction (general) instead of time-base bidirectional prediction.
  • (General) bidirectional prediction may mean prediction based on, for example, a first reference picture L0 and a second reference picture L1 existing in the same direction on the time axis with respect to the current picture.
  • the decoding apparatus 200 can determine whether or not to perform time-base bidirectional prediction based on flag information indicating whether or not to perform time-base bidirectional prediction.
  • the decoding apparatus 200 performs time-base bidirectional prediction and performs BIMVD based on the time-base bidirectional prediction.
  • the decoding apparatus 200 may perform bidirectional prediction (general) instead of time-base bidirectional prediction.
  • FIG. 11 is a diagram for explaining a process of deriving an x-axis gradient of a left top CP for a current block according to an embodiment.
  • the window? 1120 of the upper left CP 1130 can be applied and the x-axis gradient of the upper left CP 1130 can be derived based on the window? 1120 of the 5x5 size.
  • the lower left CP 1140, the lower right CP 1150 and the upper right CP 1150 of the current block 1100 in the same manner as the method of deriving the x-axis direction gradient of the upper left CP 1130 of the current block 1100, 1160 can be derived.
  • 11 shows a case where the width and height of the current block are 8 and M is 2.
  • the present embodiment is not limited to this, and the size of the current block and the size of M may vary.
  • FIG. 12 is a diagram for explaining a process of deriving an MVF for a current block based on CPMVs of four CPs for a current block according to an embodiment.
  • the CPMVs for each of the four CPs of the current block 1200 may be derived based on Equation (5).
  • the decoding device 200 may derive the MVF for the current block 1200 based on the CPMVs.
  • the MVF for the current block 1200 may then be derived by applying the CPMVs to a bilinear interpolation motion model.
  • the bidirectional linear interpolation motion model may be based, for example, on the following equation (15).
  • Equation (15) x represents the x-axis coordinate of the sample in the current block 1200, y represents the y-axis coordinate of the sample in the current block 1200, Represents the MVF for the current block 1200, Where W represents the width of the current block 1200, H represents the height of the current block 1200, May represent a weighting factor.
  • the decoding apparatus 200 may perform prediction on the current block 1200 using the MVF for the current block 1200 derived based on Equation (15).
  • the MVF for the current block 1200 may be derived in units of subblocks or samples in the current block 1200, and the subblock unit may be, for example, a 4x4 block unit or an NxN block unit.
  • the MVF unit for the current block 1200 will be described in more detail with reference to FIG. 13 below.
  • FIG. 13 is a diagram illustrating an example in which an MVF for a current block is derived according to an embodiment.
  • the MVF for the current block 1200 may be derived for each sample unit in the current block 1200.
  • the MVF for the current block 1200 may be derived on a 4x4 sub-block basis in the current block 1200.
  • a motion vector derived on a 4x4 sub-block basis may be for a sample in the center position of each 4x4 sub-block or a sample closest to the center position.
  • the present invention is not limited to this example.
  • a motion vector derived in units of 4x4 sub-blocks may be for samples at arbitrary positions such as upper left, lower left, upper right, and lower right of each 4x4 sub-block.
  • the MVF for the current block 1200 may be derived in units of NxN subblocks in the current block 1200.
  • N may be less than the width and height of the current block 1200 and may be determined based on the size of the current block 1200 or the vector magnitude of the CPMVs of the CPs for the current block 1200.
  • a motion vector derived on an NxN subblock basis may be for a sample in the center position of each NxN subblock or a sample closest to the center position.
  • a motion vector derived in units of NxN subblocks may be for samples at arbitrary positions such as upper left, lower left, upper right, and lower right of each NxN subblock.
  • FIGS. 14 and 15 are flowcharts showing an encoding method of an encoding apparatus and an encoding apparatus according to an embodiment.
  • the encoding apparatus may include a predictor 110 and an entropy encoding unit 130.
  • FIG. The encoding apparatus shown in Fig. 15 can perform the operations according to Fig. More specifically, S1400 to S1450 in Fig. 14 can be performed by the predicting unit 110 of the encoding apparatus, S1460 in Fig. 14 can be performed by the residual processing unit 120 of the encoding apparatus, S1470 may be performed by the entropy encoding unit 130 of the encoding apparatus.
  • operations according to S1400 to S1470 are based on some of the contents described above in Figs. Therefore, the detailed description overlapping with the above-described contents in FIG. 1 and FIG. 7 to FIG. 13 will be omitted or simplified.
  • FIG. 15 illustrates some of the arrangements of the encoding apparatus 100 shown in Figure 1 to more briefly describe the operation of the encoding apparatus according to one embodiment And therefore it will be readily understood that the contents described above in Fig. 1 can be applied similarly in Figs. 14 and 15 without reducing the scope of right.
  • the encoding apparatus may derive a motion vector of a current block by performing BIMVD on the current block.
  • the process of performing BIMVD on the current block may be more specific as S1400 to S1470 shown in FIG.
  • the encoding apparatus may derive an MVP for a current block (S1400). More specifically, the prediction unit 110 according to an embodiment can derive the MVP for the current block.
  • An encoding apparatus may derive an MVD indicating a difference between a motion vector of a current block and MVP for a current block (S1410). More specifically, the predicting unit 110 according to an embodiment can derive an MVD indicating a difference between a motion vector of a current block and MVP for a current block.
  • the encoding apparatus may derive CPMVPs corresponding to CPs for the current block (S1420). More specifically, the predicting unit 110 according to an embodiment may derive CPMVPs corresponding to CPs for the current block. For example, the prediction unit 110 may derive four CPMVPs corresponding to each of the four CPs for the current block based on the time base bidirectional prediction.
  • the encoding apparatus may derive CPMVs corresponding to each of the CPs for the current block, based on the MVP, the MVD, and the CPMVPs for the current block (S1430). More specifically, the predicting unit 110 according to an embodiment can derive CPMVs corresponding to CPs for the current block, based on MVP, MVD, and CPMVPs for the current block. For example, the predicting unit 110 may derive four CPMVs corresponding to each of the four CPs for the current block, based on the sum of MVP, MVD, and CPMVP for the current block.
  • the encoding apparatus may derive an MVF for a current block based on the CPMVs (S1440). More specifically, the predicting unit 110 according to an embodiment can derive MVF for a current block based on CPMVs. For example, the prediction unit 110 may derive the MVF for the current block by applying the CPMVs to the bidirectional linear interpolation motion model.
  • the encoding apparatus may generate prediction samples for a current block based on the MVF for the current block (S1450). More specifically, the prediction unit 110 according to an embodiment may generate prediction samples for a current block based on MVF for the current block.
  • the encoding apparatus may derive residual samples for a current block based on the generated prediction samples (S1460). More specifically, the residual prediction unit 120 according to an embodiment can derive residual samples for a current block based on the generated prediction samples.
  • the encoding apparatus may encode prediction information including the derived MVD and residual information about residual samples (S1470). More specifically, the entropy encoding unit 130 according to an exemplary embodiment may encode prediction information including the derived MVD and residual information about residual samples. The entropy encoding unit 130 may output the encoded information in the form of a bitstream. The output bit stream may be transmitted to the decoding apparatus 200 disclosed in FIG.
  • the encoding efficiency of the image information can be increased by deriving the MVF for the current block based on BIMVD.
  • 16 and 17 are flowcharts showing a decoding method of an image decoding apparatus and a decoding apparatus according to an embodiment.
  • the decoding apparatus may include an entropy decoding unit 210, a predicting unit 230, and an adding unit 240.
  • the decoding apparatus shown in Fig. 17 can perform the operations according to Fig. 16 may be performed by the entropy decoding unit 210 of the decoding apparatus, and S1600, S1620 to S1650 may be performed by the predicting unit 230 of the decoding apparatus, and S1660 may be performed by the decoding apparatus
  • the operations according to S1600 to S1660 are based on some of the contents described above in Figs. Therefore, the detailed description overlapping with the above-described contents in FIG. 2 and FIGS. 7 to 17 will be omitted or simplified.
  • FIG. 17 illustrates a portion of the configuration of the decoding apparatus 200 shown in FIG. 2 to further explain the operation of the decoding apparatus according to an embodiment And therefore it will be readily understood that the foregoing contents in Fig. 2 can be applied similarly in Figs. 16 and 17 without reducing the scope of right.
  • the decoding apparatus may derive a motion vector of a current block by performing BIMVD on the current block.
  • the process of performing BIMVD on the current block may be more specifically described as S1600 to S1660 shown in Fig.
  • the decoding apparatus may derive the MVP for the current block (S1600). More specifically, the prediction unit 230 according to an embodiment can derive the MVP for the current block.
  • the decoding apparatus may obtain MVD indicating a difference between a motion vector of a current block and MVP for a current block from a bitstream (S1610). More specifically, the entropy decoding unit 210 according to an exemplary embodiment may obtain MVD representing the difference between the motion vector of the current block and the MVP for the current block from the bitstream.
  • the decoding apparatus may derive the CPMVPs corresponding to each of the CPs for the current block (S1620). More specifically, the predicting unit 230 according to an embodiment can derive CPMVPs corresponding to CPs for the current block. For example, the prediction unit 230 may derive four CPMVPs corresponding to each of the four CPs for the current block based on the time base bidirectional prediction.
  • the decoding apparatus may derive CPMVs corresponding to CPs for the current block, based on MVP, MVD, and CPMVPs for the current block (S1630). More specifically, the predicting unit 230 according to an embodiment can derive CPMVs corresponding to CPs for the current block, based on MVP, MVD, and CPMVPs for the current block. For example, the predicting unit 230 may derive four CPMVs corresponding to each of the four CPs for the current block, based on the sum of MVP, MVD, and CPMVP for the current block.
  • the decoding apparatus may derive an MVF for a current block based on the CPMVs (S1640). More specifically, the predicting unit 230 according to an embodiment can derive the MVF for the current block based on the CPMVs. For example, the prediction unit 230 may derive the MVF for the current block by applying the CPMVs to the bidirectional linear interpolation motion model.
  • the decoding apparatus may generate prediction samples for a current block based on MVF (S1650). More specifically, the prediction unit 230 according to an exemplary embodiment may generate prediction samples for a current block based on MVF.
  • the decoding apparatus may generate restoration samples for a current block based on a prediction sample for the current block (S1660). More specifically, the adder 240 according to an embodiment may generate reconstruction samples for the current block based on the prediction samples for the current block.
  • the decoding efficiency of the video information can be increased by deriving the MVF for the current block based on BIMVD.
  • the internal components of the above-described devices may be processors executing the sequential execution processes stored in the memory, or hardware components configured with other hardware. These can be located inside or outside the unit.
  • modules may be omitted according to the embodiment, or may be replaced by other modules performing similar / same operations.
  • 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 include 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

An image decoding method performed by a decoding device according to the present invention comprises: a step of deriving a motion vector predictor (MVP) for a current block; a step of acquiring, from a bitstream, a motion vector difference (MVD) indicating the difference between a motion vector of the current block and the MVP for the current block; a step of deriving control point motion vector predictors (CPMVP) respectively corresponding to control points (CP) for the current block; a step of deriving control point motion vectors (CPMV) respectively corresponding to the CPs for the current block, on the basis of the MVP for the current block, the MVD and the CPMVPs; a step of deriving a motion vector field (MVF) for the current block on the basis of the CPMVs; a step of generating prediction samples for the current block on the basis of the MVF; and a step of generating reconstruction samples for the current block on the basis of the prediction samples for the current block.

Description

움직임 벡터 도출을 기반으로 하는 영상 코딩 방법 및 그 장치Image coding method based on motion vector derivation and apparatus therefor
본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 움직임 벡터 도출(motion vector derivation)에 기반한 영상 코딩 방법 및 그 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding technique, and more particularly, to an image coding method and apparatus based on motion vector derivation.
최근 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 a method and apparatus for performing image coding based on motion vector derivation.
본 발명의 또 다른 기술적 과제는 양방향 선형 보간 움직임 모델(bilinear interpolation motion model)을 기반으로 움직임 벡터를 도출하는 방법 및 장치를 제공함에 있다.It is another object of the present invention to provide a method and apparatus for deriving a motion vector based on a bilinear interpolation motion model.
본 발명의 또 다른 기술적 과제는 현재 블록에 대한 컨트롤 포인트(control point, 이하 'CP')들의 컨트롤 포인트 움직임 벡터 예측자(control point motion vector predictor, 이하 'CPMVP')들을 기반으로 컨트롤 포인트 움직임 벡터(control point motion vector, 이하 'CPMV')들을 도출하는 방법 및 장치를 제공함에 있다. According to another aspect of the present invention, there is provided a control point motion vector (CPMVP) based on a control point motion vector predictor (CPMVP) of a control point (CP) and a control point motion vector (CPMV).
본 발명의 또 다른 기술적 과제는 현재 블록에 대한 CP들의 CPMV들을 기반으로 현재 블록의 움직임 벡터를 도출하는 방법 및 장치를 제공함에 있다.Another object of the present invention is to provide a method and apparatus for deriving a motion vector of a current block based on CPMVs of CPs for a current block.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은, 현재 블록에 대한 움직임 벡터 예측자(motion vector predictor, MVP)를 도출하는 단계, 비트스트림으로부터 상기 현재 블록의 움직임 벡터(motion vector)와 상기 현재 블록에 대한 MVP간의 차분을 나타내는 움직임 벡터 차분(motion vector difference, MVD)을 획득하는 단계, 상기 현재 블록에 대한 컨트롤 포인트(control point, CP)들 각각과 대응되는 컨트롤 포인트 움직임 벡터 예측자(control point motion vector predictor, CPMVP)들을 도출하는 단계, 상기 현재 블록에 대한 MVP, 상기 MVD 및 상기 CPMVP들을 기반으로, 상기 현재 블록에 대한 상기 CP들 각각과 대응되는 컨트롤 포인트 움직임 벡터(control point motion vector, CPMV)들을 도출하는 단계, 상기 CPMV들을 기반으로 상기 현재 블록에 대한 움직임 벡터 필드(motion vector field, MVF)를 도출하는 단계, 상기 MVF를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 단계 및 상기 현재 블록에 대한 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 한다. According to an embodiment of the present invention, an image decoding method performed by a decoding apparatus is provided. The method includes deriving a motion vector predictor (MVP) for a current block, calculating a motion vector (MVP) representing a difference between a motion vector of the current block and MVP for the current block from the bitstream, Deriving a motion vector difference (MVD), deriving a control point motion vector predictor (CPMVP) corresponding to each of the control points (CP) for the current block , Deriving control point motion vectors (CPMVs) corresponding to each of the CPs for the current block based on MVP, MVD and CPMVPs for the current block, Deriving a motion vector field (MVF) for the current block from the MVF, Based on the predicted samples for the current block and the step of generating prediction samples to be characterized in that it comprises a step of generating a reconstructed samples of the current block.
본 발명의 다른 일 실시예에 따르면, 인코딩 장치에 의하여 수행되는 영상 인코딩 방법이 제공된다. 상기 방법은, 현재 블록에 대한 움직임 벡터 예측자(motion vector predictor, MVP)를 도출하는 단계, 상기 현재 블록의 움직임 벡터(motion vector)와 상기 현재 블록에 대한 MVP간의 차분을 나타내는 움직임 벡터 차분(motion vector difference, MVD)을 도출하는 단계, 상기 현재 블록에 대한 컨트롤 포인트(controp point, CP)들 각각과 대응되는 컨트롤 포인트 움직임 벡터 예측자(control point motion vector predictor, CPMVP)들을 도출하는 단계, 상기 현재 블록에 대한 MVP, 상기 MVD 및 상기 CPMVP들을 기반으로, 상기 현재 블록에 대한 상기 CP들 각각과 대응되는 컨트롤 포인트 움직임 벡터(control point motion vector, CPMV)들을 도출하는 단계, 상기 CPMV들을 기반으로 상기 현재 블록에 대한 움직임 벡터 필드(motion vector field, MVF)를 도출하는 단계, 상기 현재 블록에 대한 MVF를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 단계, 상기 생성된 예측 샘플들을 기반으로 상기 현재 블록에 대한 레지듀얼(residual) 샘플들을 도출하는 단계 및 상기 도출된 MVD를 포함하는 예측 정보 및 상기 레지듀얼 샘플들에 관한 레지듀얼 정보를 인코딩하는 단계를 포함하는 것을 특징으로 한다. According to another embodiment of the present invention, an image encoding method performed by an encoding apparatus is provided. The method includes deriving a motion vector predictor (MVP) for a current block, calculating a motion vector predictor (MVP) representing a difference between a motion vector of the current block and MVP for the current block, deriving a control point motion vector predictor (CPMVP) corresponding to each control point (CP) for the current block, Deriving control point motion vectors (CPMVs) corresponding to each of the CPs for the current block, based on the MVP for the current block, the MVD, and the CPMVPs, Deriving a motion vector field (MVF) for the current block, based on the MVF for the current block, Generating residual samples for the current block based on the generated prediction samples, and generating residual samples for the predictive information including the derived MVD and residuals for the residual samples based on the generated prediction samples. And encoding the dual information.
본 발명의 또 다른 일 실시예에 따르면, 영상 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는, 비트스트림으로부터 상기 현재 블록의 움직임 벡터(motion vector)와 상기 현재 블록에 대한 움직임 벡터 예측자(motion vector predictor, MVP)간의 차분을 나타내는 움직임 벡터 차분(motion vector difference, MVD)을 획득하는 엔트로피 디코딩부, 상기 MVP를 도출하고, 상기 현재 블록에 대한 컨트롤 포인트(controp point, CP)들 각각과 대응되는 컨트롤 포인트 움직임 벡터 예측자(control point motion vector predictor, CPMVP)들을 도출하고, 상기 현재 블록에 대한 MVP, 상기 MVD 및 상기 CPMVP들을 기반으로, 상기 현재 블록에 대한 상기 CP들 각각과 대응되는 컨트롤 포인트 움직임 벡터(control point motion vector, CPMV)들을 도출하고, 상기 CPMV들을 기반으로 상기 현재 블록에 대한 움직임 벡터 필드(motion vector field, MVF)를 도출하고, 상기 현재 블록에 대한 MVF를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 예측부 및 상기 현재 블록에 대한 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 가산부를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, a decoding apparatus for performing image decoding is provided. The decoding apparatus includes a motion vector difference (MVD) representing a difference between a motion vector of the current block and a motion vector predictor (MVP) of the current block from a bitstream, (CPMVP) corresponding to each of the control points (CP) for the current block is derived, and the control point motion vector predictor A control point motion vector (CPMV) corresponding to each of the CPs for the current block is derived based on the MVP for the current block, the MVD, and the CPMVPs, Derives a motion vector field (MVF) for the current block, A predictor for generating prediction samples for the re-block, and an adder for generating reconstruction samples for the current block based on the prediction samples for the current block.
본 발명의 또 다른 일 실시예에 따르면, 영상 인코딩을 수행하는 인코딩 장치가 제공된다. 상기 인코딩 장치는, 현재 블록에 대한 움직임 벡터 예측자(motion vector predictor, MVP)를 도출하고, 상기 현재 블록의 움직임 벡터(motion vector)와 상기 현재 블록에 대한 MVP간의 차분을 나타내는 움직임 벡터 차분(motion vector difference, MVD)을 도출하고, 상기 현재 블록에 대한 컨트롤 포인트(controp point, CP)들 각각과 대응되는 컨트롤 포인트 움직임 벡터 예측자(control point motion vector predictor, CPMVP)들을 도출하고, 상기 현재 블록에 대한 MVP, 상기 MVD 및 상기 CPMVP들을 기반으로, 상기 현재 블록에 대한 상기 CP들 각각과 대응되는 컨트롤 포인트 움직임 벡터(control point motion vector, CPMV)들을 도출하고, 상기 CPMV들을 기반으로 상기 현재 블록에 대한 움직임 벡터 필드(motion vector field, MVF)를 도출하고, 상기 현재 블록에 대한 MVF를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 예측부, 상기 생성된 예측 샘플들을 기반으로 상기 현재 블록에 대한 레지듀얼(residual) 샘플들을 도출하는 레지듀얼 처리부 및 상기 도출된 MVD를 포함하는 예측 정보 및 상기 레지듀얼 샘플들에 관한 레지듀얼 정보를 인코딩하는 엔트로피 인코딩부를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, an encoding apparatus for performing image encoding is provided. The encoding apparatus derives a motion vector predictor (MVP) for a current block and calculates a motion vector difference (MVP) representing a difference between a motion vector of the current block and MVP for the current block, the control point motion vector predictor (CPMVP) corresponding to each of the control points (CP) for the current block is derived, and the current block A control point motion vector (CPMV) corresponding to each of the CPs for the current block is derived based on the MVP, the MVD, and the CPMVPs for the current block, and based on the CPMVs, A motion vector field (MVF) is derived, and based on the MVF for the current block, prediction samples for the current block A residual processing unit for deriving residual samples of the current block based on the generated prediction samples, and a prediction unit for generating predicted information including the derived MVD and residual And an entropy encoding unit for encoding the dual information.
본 발명에 따르면 전반적인 영상/비디오 압축 효율을 높일 수 있다.According to the present invention, the overall video / video compression efficiency can be increased.
본 발명에 따르면 양방향 선형 보간 움직임 모델을 기반으로 움직임 벡터를 도출함으로써 영상 코딩 효율을 높일 수 있다. According to the present invention, the motion vector can be derived based on the bidirectional linear interpolation motion model, thereby enhancing the image coding efficiency.
본 발명에 따르면 현재 블록에 대한 CP들의 CPMV들을 양방향 선형 보간 움직임 모델에 적용하여 현재 블록의 움직임 벡터를 도출함으로써 영상 코딩 효율을 높일 수 있다.According to the present invention, the CPMVs of the CPs for the current block can be applied to the bidirectional linear interpolation motion model to derive the motion vector of the current block, thereby enhancing the video coding efficiency.
도 1은 본 발명이 적용될 수 있는 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a schematic view illustrating a configuration of an encoding apparatus to which the present invention can be applied. FIG.
도 2는 본 발명이 적용될 수 있는 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.FIG. 2 is a view for schematically explaining a configuration of a decoding apparatus to which the present invention can be applied.
도 3은 일 실시예에 따른 어파인 움직임(affine motion) 모델을 통하여 표현되는 움직임의 일 예를 도시하는 도면이다.FIG. 3 is a diagram illustrating an example of motion represented through an affine motion model according to an embodiment.
도 4는 현재 블록에 대한 3개의 CP들의 CPMV들을 이용하는 어파인 움직임 모델의 일 예를 도시하는 도면이다.4 is a diagram showing an example of an affine motion model using CPMVs of three CPs for the current block.
도 5는 현재 블록에 대한 2개의 CP들의 CPMV들을 이용하는 어파인 움직임 모델의 일 예를 도시하는 도면이다.5 is a diagram showing an example of an affine motion model using CPMVs of two CPs for the current block.
도 6은 어파인 움직임 모델을 기반으로 서브 블록 단위로 움직임 벡터를 도출하는 일 예를 도시하는 도면이다.6 is a diagram illustrating an example of deriving a motion vector on a subblock-by-block basis based on an affine motion model.
도 7은 일 실시예에 따라서 움직임 벡터에 기반하여 영상 코딩을 수행하는 과정을 도시하는 흐름도이다.FIG. 7 is a flowchart illustrating a process of performing image coding based on a motion vector according to an embodiment.
도 8은 일 실시예에 따라서 현재 블록에 대한 4개의 CP들을 기반으로 현재 블록의 움직임 벡터를 도출하는 과정을 개략적으로 설명하기 위한 도면이다. 8 is a diagram for explaining a process of deriving a motion vector of a current block based on four CPs for a current block according to an embodiment.
도 9는 일 실시예에 따라서 현재 블록에 대한 4개의 CP들을 기반으로 현재 블록의 움직임 벡터를 도출하는 과정을 도시하는 흐름도이다.FIG. 9 is a flowchart illustrating a process of deriving a motion vector of a current block based on four CPs for a current block according to an embodiment.
도 10은 일 실시예에 따라서 양방향 참조 픽처를 기반으로 현재 픽처에 포함된 샘플의 움직임 벡터를 도출하는 과정을 설명하기 위한 도면이다.FIG. 10 is a diagram for explaining a process of deriving a motion vector of a sample included in a current picture based on a bi-directional reference picture according to an embodiment.
도 11은 일 실시예에 따라서 현재 블록에 대한 좌상단 CP의 x축 그래디언트(gradient)를 도출하는 과정을 설명하기 위한 도면이다.FIG. 11 is a diagram for explaining a process of deriving an x-axis gradient of a left top CP for a current block according to an embodiment.
도 12는 일 실시예에 따라서 현재 블록에 대한 4개의 CP들의 CPMV들을 기반으로 현재 블록에 대한 움직임 벡터 필드(motion vector field, 이하 'MVF')를 도출하는 과정을 설명하기 위한 도면이다.12 is a diagram for explaining a process of deriving a motion vector field (MVF) for a current block based on CPMVs of four CPs for a current block according to an embodiment.
도 13은 일 실시예에 따라서 현재 블록에 대한 MVF가 도출되는 일 예시를 도시하는 도면이다. 13 is a diagram illustrating an example in which an MVF for a current block is derived according to an embodiment.
도 14 및 도 15는 일 실시예에 따른 인코딩 장치 및 인코딩 장치의 영상 인코딩 방법을 도시하는 흐름도이다.FIGS. 14 and 15 are flowcharts showing an encoding method of an encoding apparatus and an encoding apparatus according to an embodiment.
도 16 및 도 17은 일 실시예에 따른 디코딩 장치 및 디코딩 장치의 영상 디코딩 방법을 도시하는 흐롬도이다.16 and 17 are flowcharts showing a decoding method of an image decoding apparatus and a decoding apparatus according to an embodiment.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은, 현재 블록에 대한 움직임 벡터 예측자(motion vector predictor, MVP)를 도출하는 단계, 비트스트림으로부터 상기 현재 블록의 움직임 벡터(motion vector)와 상기 현재 블록에 대한 MVP간의 차분을 나타내는 움직임 벡터 차분(motion vector difference, MVD)을 획득하는 단계, 상기 현재 블록에 대한 컨트롤 포인트(control point, CP)들 각각과 대응되는 컨트롤 포인트 움직임 벡터 예측자(control point motion vector predictor, CPMVP)들을 도출하는 단계, 상기 현재 블록에 대한 MVP, 상기 MVD 및 상기 CPMVP들을 기반으로, 상기 현재 블록에 대한 상기 CP들 각각과 대응되는 컨트롤 포인트 움직임 벡터(control point motion vector, CPMV)들을 도출하는 단계, 상기 CPMV들을 기반으로 상기 현재 블록에 대한 움직임 벡터 필드(motion vector field, MVF)를 도출하는 단계, 상기 MVF를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 단계 및 상기 현재 블록에 대한 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 한다. According to an embodiment of the present invention, an image decoding method performed by a decoding apparatus is provided. The method includes deriving a motion vector predictor (MVP) for a current block, calculating a motion vector (MVP) representing a difference between a motion vector of the current block and MVP for the current block from the bitstream, Deriving a motion vector difference (MVD), deriving a control point motion vector predictor (CPMVP) corresponding to each of the control points (CP) for the current block , Deriving control point motion vectors (CPMVs) corresponding to each of the CPs for the current block based on MVP, MVD and CPMVPs for the current block, Deriving a motion vector field (MVF) for the current block from the MVF, Based on the predicted samples for the current block and the step of generating prediction samples to be characterized in that it comprises a step of generating a reconstructed samples of the current block.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.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.
이하의 설명은 비디오, 이미지 또는 영상에 대해 다루는 기술 분야에서 적용될 수 있다. 예를 들어, 이하의 설명에서 개시된 방법 또는 실시예는 VVC (Versatile Video Coding) 표준 (ITU-T Rec. H.266), VVC 이후의 차세대 비디오/이미지 코딩 표준, 또는 VVC 이전의 표준들(예를 들어, HEVC (High Efficiency Video Coding) 표준 (ITU-T Rec. H.265) 등)의 개시 내용과 관련될 수 있다. The following description can be applied in the technical field dealing with video, image or image. For example, the method or embodiment disclosed in the following description may be applied to various video coding standards such as the Versatile Video Coding (VVC) standard (ITU-T Rec. H.266), the next generation video / image coding standard after VVC, For example, the High Efficiency Video Coding (HEVC) standard (ITU-T Rec. H.265), etc.).
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.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.
본 명세서에서 비디오(video)는 시간의 흐름에 따른 일련의 영상(image)들의 집합을 의미할 수 있다. 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다.In this specification, video may mean a set of images according to time. A picture generally refers to a unit that represents one image in a specific time period, 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은 본 발명이 적용될 수 있는 인코딩 장치(encoding apparatus)의 구성을 개략적으로 설명하는 도면이다. 이하 인코딩 장치는 비디오 인코딩 장치 및/또는 영상 인코딩 장치를 포함할 수 있다. 경우에 따라서, 영상 인코딩 장치는 비디오 인코딩 장치를 포함하는 개념으로 사용될 수도 있다.BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a schematic view illustrating a configuration of an encoding apparatus to which the present invention can be applied. FIG. The encoding device may include a video encoding device and / or a video encoding device. In some cases, the video encoding apparatus may be used as a concept including a video encoding apparatus.
도 1을 참조하면, 영상 인코딩 장치(100)는 픽처 분할부(picture partitioning module, 105), 예측부(prediction module, 110), 레지듀얼 처리부(residual processing module, 120), 엔트로피 인코딩부(entropy encoding module, 130), 가산부(adder, 140), 필터부(filtering module, 150) 및 메모리(memory, 160)을 포함할 수 있다. 레지듀얼 처리부(120)는 감산부(substractor, 121), 변환부(transform module, 122), 양자화부(quantization module, 123), 재정렬부(rearrangement module, 124), 역양자화부(dequantization module, 125) 및 역변환부(inverse transform module, 126)를 포함할 수 있다. 1, the image encoding apparatus 100 includes a picture partitioning module 105, a prediction module 110, a residual processing module 120, an entropy encoding unit 120, module 130, an adder 140, a filtering module 150, and a memory 160. The residual processing unit 120 includes a subtractor 121, a transform module 122, a quantization module 123, a rearrangement module 124, a dequantization module 125 And an inverse transform module (126).
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다. The picture dividing unit 105 may divide the inputted picture into at least one processing unit.
일 예로, 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리(ternary) 트리 구조를 기반으로 하위(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, a binary tree structure, and / or a ternary tree structure. In this case, for example, the quadtree structure is applied first, and the binary tree structure and the ternary tree structure can be applied later. Or a binary tree structure / ternary 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 prediction unit 110 predicts a current block or a residual block and generates a predicted block including prediction samples of the current block can do. The unit of prediction performed in the prediction unit 110 may be a coding block, a transform block, or a prediction block.
예측부(110)는 현재 블록에 인트라 예측이 적용되는지 인터 예측이 적용되는지를 결정할 수 있다. 일 예로, 예측부(110)는 CU 단위로 인트라 예측 또는 인터 예측이 적용되는지를 결정할 수 있다.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.
인트라 예측의 경우에, 예측부(110)는 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 현재 블록 외부의 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 예측부(110)는 (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 인트라 예측에서 예측 모드는 예를 들어 33개의 방향성 예측 모드와 적어도 2개 이상의 비방향성 모드를 가질 수 있다. 비방향성 모드는 DC 예측 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 예측부(110)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.In the case of intra prediction, 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. In the intra prediction, 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.
인터 예측의 경우에, 예측부(110)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 샘플을 기반으로, 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(110)는 스킵(skip) 모드, 머지(merge) 모드, 및 MVP(motion vector prediction) 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 스킵 모드와 머지 모드의 경우에, 예측부(110)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차(레지듀얼)가 전송되지 않는다. MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(Motion Vector Predictor)로 이용하여 현재 블록의 움직임 벡터 예측자로 이용하여 현재 블록의 움직임 벡터를 유도할 수 있다.In the case of inter prediction, 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. In the skip mode and the merge mode, the prediction unit 110 can use motion information of a neighboring block as motion information of a current block. In the skip mode, difference (residual) between the predicted sample and the original sample is not transmitted unlike the merge mode. In the 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.
인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(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 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.
변환부(122)는 변환 블록 단위로 레지듀얼 샘플을 변환하여 변환 계수(transform coefficient)를 생성한다. 변환부(122)는 해당 변환 블록의 사이즈와, 해당 변환 블록과 공간적으로 겹치는 코딩 블록 또는 예측 블록에 적용된 예측 모드에 따라서 변환을 수행할 수 있다. 예컨대, 상기 변환 블록과 겹치는 상기 코딩 블록 또는 상기 예측 블록에 인트라 예측이 적용되었고, 상기 변환 블록이 4x4의 레지듀얼 어레이(array)라면, 레지듀얼 샘플은 DST(Discrete Sine Transform) 변환 커널을 이용하여 변환되고, 그 외의 경우라면 레지듀얼 샘플은 DCT(Discrete Cosine Transform) 변환 커널을 이용하여 변환할 수 있다.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 4x4 residual array, the residual sample may be transformed using a DST (Discrete Sine Transform) transformation kernel In other cases, the residual samples can be transformed using a DCT (Discrete Cosine Transform) conversion kernel.
양자화부(123)는 변환 계수들을 양자화하여, 양자화된 변환 계수를 생성할 수 있다.The quantization unit 123 may quantize the transform coefficients to generate quantized transform coefficients.
재정렬부(124)는 양자화된 변환 계수를 재정렬한다. 재정렬부(124)는 계수들 스캐닝(scanning) 방법을 통해 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있다. 여기서 재정렬부(124)는 별도의 구성으로 설명하였으나, 재정렬부(124)는 양자화부(123)의 일부일 수 있다.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.
엔트로피 인코딩부(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 entropy encoding unit 130 may perform entropy encoding on the quantized transform coefficients. 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) The entropy encoding unit 130 may encode information necessary for video restoration (e.g., a value of a syntax element, etc.) other than the quantized transform coefficient, either entropy encoding or separately according to a predetermined method. The encoded information may be transmitted or stored in units of NAL (network abstraction layer) units in the form of a bit stream. 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, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
역양자화부(125)는 양자화부(123)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(126)는 역양자화부(125)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.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, .
가산부(140)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(140)는 별도의 구성으로 설명하였으나, 가산부(140)는 예측부(110)의 일부일 수 있다. 한편, 가산부(140)는 복원부(reconstruction module) 또는 복원 블록 생성부로 불릴 수도 있다.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. Here, the adding unit 140 may be a part of the predicting unit 110, Meanwhile, the addition unit 140 may be referred to as a reconstruction module or a reconstruction block generation unit.
복원된 픽처(reconstructed picture)에 대하여 필터부(150)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(150)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.For the reconstructed picture, 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.
메모리(160)는 복원 픽처(디코딩된 픽처) 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(150)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.The memory 160 may store restored pictures (decoded pictures) or information necessary for encoding / decoding. Here, 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. For example, 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.
도 2는 본 발명이 적용될 수 있는 비디오/영상 디코딩 장치(video decoding apparatus)의 구성을 개략적으로 설명하는 도면이다. 이하 영상 디코딩 장치라 함은 영상 디코딩 장치를 포함할 수 있다.FIG. 2 is a view schematically illustrating a configuration of a video decoding apparatus to which the present invention can be applied. Hereinafter, the image decoding apparatus may include an image decoding apparatus.
도 2를 참조하면, 영상 디코딩 장치(200)는 엔트로피 디코딩부(entropy decoding module, 210), 레지듀얼 처리부(residual processing module, 220), 예측부(prediction module, 230), 가산부(adder, 240), 필터부(filtering module, 250) 및 메모리(memory, 260)을 포함할 수 있다. 여기서 레지듀얼 처리부(220)는 재정렬부(rearrangement module, 221), 역양자화부(dequantization module, 222), 역변환부(inverse transform module, 223)을 포함할 수 있다. 또한, 비록 도시되지는 않았으나, 영상 디코딩 장치(200)는 비디오 정보를 포함하는 비트스트림을 수신하는 수신부를 포함할 수 있다. 상기 수신부는 별도의 모듈로 구성될 수도 있고 또는 엔트로피 디코딩부(210)에 포함될 수 있다. 2, the image decoding apparatus 200 includes an entropy decoding module 210, a residual processing module 220, a prediction module 230, an adder 240, A filtering module 250, and a memory 260. As shown in FIG. Here, the residual processing unit 220 may include a rearrangement module 221, a dequantization module 222, and an inverse transform module 223. In addition, although not shown, the video decoding apparatus 200 may include a receiver for receiving a bitstream including video information. The receiving unit may be a separate module or may be included in the entropy decoding unit 210.
비디오/영상 정보를 포함하는 비트스트림이 입력되면, 영상 디코딩 장치는(200)는 영상 인코딩 장치에서 비디오/영상 정보가 처리된 프로세스에 대응하여 비디오/영상/픽처를 복원할 수 있다.When the bitstream including the video / image information is input, the image decoding apparatus 200 can restore the video / image / picture corresponding to the process of processing the video / image information in the image encoding apparatus.
예컨대, 영상 디코딩 장치(200)는 영상 인코딩 장치에서 적용된 처리 유닛을 이용하여 비디오 디코딩을 수행할 수 있다. 따라서 비디오 디코딩의 처리 유닛 블록은 일 예로 코딩 유닛일 수 있고, 다른 예로 코딩 유닛, 예측 유닛 또는 변환 유닛일 수 있다. 코딩 유닛은 최대 코딩 유닛으로부터 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리 트리 구조를 따라서 분할될 수 있다. For example, the video decoding apparatus 200 can perform video decoding using a processing unit applied in the video encoding apparatus. Thus, 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 divided from the maximum coding unit along a quadtree structure, a binary tree structure, and / or a ternary tree structure.
예측 유닛 및 변환 유닛이 경우에 따라 더 사용될 수 있으며, 이 경우 예측 블록은 코딩 유닛으로부터 도출 또는 파티셔닝되는 블록으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 또는 변환 계수로부터 레지듀얼 신호를 유도하는 유닛일 수 있다. 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 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 >
보다 상세하게, 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 / , Determines a context model, predicts the occurrence probability of a bin according to the determined context model, performs arithmetic decoding of the bean, and generates a symbol corresponding to the value of each syntax element can do. At this time, the CABAC entropy decoding method can update the context model using the information of the decoded symbol / bean 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 entropy decoding unit 210 is provided to the predicting unit 230. The residual value, i.e., the quantized transform coefficient, which is entropy-decoded in the entropy decoding unit 210, 221).
재정렬부(221)는 양자화되어 있는 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 재정렬부(221)는 인코딩 장치에서 수행된 계수 스캐닝에 대응하여 재정렬을 수행할 수 있다. 여기서 재정렬부(221)는 별도의 구성으로 설명하였으나, 재정렬부(221)는 역양자화부(222)의 일부일 수 있다.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.
역양자화부(222)는 양자화되어 있는 변환 계수들을 (역)양자화 파라미터를 기반으로 역양자화하여 변환 계수를 출력할 수 있다. 이 때, 양자화 파라미터를 유도하기 위한 정보는 인코딩 장치로부터 시그널링될 수 있다.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.
역변환부(223)는 변환 계수들을 역변환하여 레지듀얼 샘플들을 유도할 수 있다. The inverse transform unit 223 may invert the transform coefficients to derive the residual samples.
예측부(230)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(230)에서 수행되는 예측의 단위는 코딩 블록일 수도 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다. 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.
예측부(230)는 상기 예측에 관한 정보를 기반으로 인트라 예측을 적용할 것인지 인터 예측을 적용할 것인지를 결정할 수 있다. 이 때, 인트라 예측과 인터 예측 중 어느 것을 적용할 것인지를 결정하는 단위와 예측 샘플을 생성하는 단위는 상이할 수 있다. 아울러, 인터 예측과 인트라 예측에 있어서 예측 샘플을 생성하는 단위 또한 상이할 수 있다. 예를 들어, 인터 예측과 인트라 예측 중 어느 것을 적용할 것인지는 CU 단위로 결정할 수 있다. 또한 예를 들어, 인터 예측에 있어서 PU 단위로 예측 모드를 결정하고 예측 샘플을 생성할 수 있고, 인트라 예측에 있어서 PU 단위로 예측 모드를 결정하고 TU 단위로 예측 샘플을 생성할 수도 있다. The prediction unit 230 may determine whether intra prediction or inter prediction is to be applied based on the prediction information. In this case, a unit for determining whether to apply intra prediction or inter prediction may differ from a unit for generating a prediction sample. In addition, units for generating prediction samples in inter prediction and intra prediction may also be different. For example, whether inter prediction or intra prediction is to be applied can be determined in units of CU. Also, for example, in the inter prediction, the prediction mode may be determined in units of PU to generate prediction samples. In intra prediction, a prediction mode may be determined in units of PU, and prediction samples may be generated in units of TU.
인트라 예측의 경우에, 예측부(230)는 현재 픽처 내의 주변 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용할 예측 모드가 결정될 수도 있다. In the case of intra prediction, 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. In this case, a prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
인터 예측의 경우에, 예측부(230)는 참조 픽처 상에서 움직임 벡터에 의해 참조 픽처 상에서 특정되는 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 스킵(skip) 모드, 머지(merge) 모드 및 MVP 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이때, 영상 인코딩 장치에서 제공된 현재 블록의 인터 예측에 필요한 움직임 정보, 예컨대 움직임 벡터, 참조 픽처 인덱스 등에 관한 정보는 상기 예측에 관한 정보를 기반으로 획득 또는 유도될 수 있다In the case of inter prediction, 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. At this time, motion information required 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
스킵 모드와 머지 모드의 경우에, 주변 블록의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.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 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. When the motion information of temporal neighboring blocks is used in the skip mode and the merge mode, the highest picture on the reference picture list can be used as a reference picture.
스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차이(레지듀얼)이 전송되지 않는다.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 unit 230 can derive the motion vector of the current block using the merge index.
다른 예로, 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 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. In this case, 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.
가산부(240)는 레지듀얼 샘플과 예측 샘플을 더하여 현재 블록 혹은 현재 픽처를 복원할 수 있다. 가산부(240)는 레지듀얼 샘플과 예측 샘플을 블록 단위로 더하여 현재 픽처를 복원할 수도 있다. 스킵 모드가 적용된 경우에는 레지듀얼이 전송되지 않으므로, 예측 샘플이 복원 샘플이 될 수 있다. 여기서는 가산부(240)를 별도의 구성으로 설명하였으나, 가산부(240)는 예측부(230)의 일부일 수도 있다. 한편, 가산부(240)는 복원부(reconstruction module) 또는 복원 블록 생성부로 불릴 수도 있다. 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. When the skip mode is applied, since the residual is not transmitted, the predicted sample can be the restored sample. Here, the adder 240 has been described as an alternative configuration, but the adder 240 may be a part of the predictor 230. Meanwhile, the addition unit 240 may be referred to as a reconstruction module or a reconstruction block generation unit.
필터부(250)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.The filter unit 250 may apply deblocking filtered sample adaptive offsets, and / or ALFs, to the reconstructed pictures. At this time, 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.
메모리(260)는 복원 픽처(디코딩된 픽처) 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(250)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(260)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(260)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다. The memory 260 may store restored pictures (decoded pictures) or information necessary for decoding. Here, the reconstructed picture may be a reconstructed picture whose filtering procedure has been completed by the filter unit 250. For example, the memory 260 may store pictures used for inter prediction. At this time, 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. In addition, the memory 260 may output the restored picture according to the output order.
한편, 상술한 바와 같이 비디오 코딩을 수행함에 있어 압축 효율을 높이기 위하여 예측을 수행한다. 이를 통하여 코딩 대상 블록인 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록을 생성할 수 있다. 여기서 상기 예측된 블록은 공간 도메인(또는 픽셀 도메인)에서의 예측 샘플들을 포함한다. 상기 예측된 블록은 인코딩 장치 및 디코딩 장치에서 동일하게 도출되며, 상기 인코딩 장치는 원본 블록의 원본 샘플 값 자체가 아닌 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼에 대한 정보(레지듀얼 정보)를 디코딩 장치로 시그널링함으로써 영상 코딩 효율을 높일 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 레지듀얼 샘플들을 포함하는 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록과 상기 예측된 블록을 합하여 복원 샘플들을 포함하는 복원 블록을 생성할 수 있고, 복원 블록들을 포함하는 복원 픽처를 생성할 수 있다. On the other hand, prediction is performed in order to enhance the compression efficiency in performing video coding as described above. Thereby generating a predicted block including predicted samples of the current block as a coding target block. Where the predicted block includes predicted samples in the spatial domain (or pixel domain). The predicted block is derived similarly in the encoding apparatus and the decoding apparatus, and the encoding apparatus decodes information (residual information) about the residual between the original block and the predicted block rather than the original sample value of the original block Signaling to the device can improve the image coding efficiency. The decoding apparatus may derive a residual block including residual samples based on the residual information and may generate a restoration block including restoration samples by adding the predicted block to the residual block, The reconstructed picture including the reconstructed picture can be generated.
상기 레지듀얼 정보는 변환 및 양자화 절차를 통하여 생성될 수 있다. 예를 들어, 인코딩 장치는 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록에 포함된 레지듀얼 샘플들(레지듀얼 샘플 어레이)에 변환 절차를 수행하여 변환 계수들을 도출하고, 상기 변환 계수들에 양자화 절차를 수행하여 양자화된 변환 계수들을 도출하여 관련된 레지듀얼 정보를 (비트스트림을 통하여) 디코딩 장치로 시그널링할 수 있다. 여기서 상기 레지듀얼 정보는 상기 양자화된 변환 계수들의 값 정보, 위치 정보, 변환 기법, 변환 커널, 양자화 파라미터 등의 정보를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 역양자화/역변환 절차를 수행하고 레지듀얼 샘플들(또는 레지듀얼 블록)을 도출할 수 있다. 디코딩 장치는 예측된 블록과 상기 레지듀얼 블록을 기반으로 복원 픽처를 생성할 수 있다. 인코딩 장치는 또한 이후 픽처의 인터 예측을 위한 참조를 위하여 양자화된 변환 계수들을 역양자화/역변환하여 레지듀얼 블록을 도출하고, 이를 기반으로 복원 픽처를 생성할 수 있다.The residual information may be generated through conversion and quantization procedures. For example, the encoding apparatus derives a residual block between the original block and the predicted block, and performs a conversion procedure on the residual samples (residual sample array) included in the residual block to derive the transform coefficients And quantizing the quantized transform coefficients by performing a quantization procedure on the transform coefficients to signal related decoding information (through a bit stream) to the decoding device. Here, the residual information may include information such as the value information of the quantized transform coefficients, the position information, the transform technique, the transform kernel, and the quantization parameter. The decoding apparatus performs an inverse quantization / inverse transformation procedure based on the residual information and can derive residual samples (or residual blocks). The decoding apparatus can generate a reconstructed picture based on the predicted block and the residual block. The encoding apparatus may also derive a residual block by dequantizing / inverse transforming the quantized transform coefficients for a reference for inter prediction of a subsequent picture, and generate a reconstructed picture based on the derived residual block.
도 3은 일 실시예에 따른 어파인 움직임 모델을 통하여 표현되는 움직임의 일 예를 도시하는 도면이다.3 is a diagram illustrating an example of motion represented through an affine motion model according to one embodiment.
본 명세서에서 "CP"는 컨트롤 포인트의 약자로서, 현재 블록에 어파인 움직임 모델을 적용하는 과정에서 기준이 되는 샘플 또는 기준점을 의미할 수 있다. CP의 움직임 벡터는 "CPMV(Control Point Motion Vector)"로 지칭될 수 있고, CPMV는 CPMV 예측자인 "CPMVP(Control Point Motion Vector Predictor)"를 기반으로 도출될 수 있다. In the present specification, "CP" is an abbreviation of a control point, and may refer to a reference sample or a reference point in the process of applying an affine motion model to a current block. The motion vector of the CP may be referred to as a " CPMV (Control Point Motion Vector) "and the CPMV may be derived based on a CPMV predictor" CPMVP (Control Point Motion Vector Predictor) ".
도 3을 참조하면, 일 실시예에 따른 어파인 움직임 모델을 통하여 표현될 수 있는 움직임은 병진(translate) 움직임, 스케일(scale) 움직임, 회전(rotate) 움직임 및 전단(shear) 움직임을 포함할 수 있다. 즉, 어파인 움직임 모델은 시간의 흐름에 따라 영상(의 일부)이 평면 이동하는 병진 움직임, 시간의 흐름에 따라 영상(의 일부)이 스케일(scale)되는 스케일 움직임, 시간의 흐름에 따라 영상(의 일부)이 회전하는 회전 움직임, 시간의 흐름에 따라 영상(의 일부)이 평형 사변형 모양으로 변형되는 전단 움직임 등을 효율적으로 표현할 수 있다.Referring to FIG. 3, a motion that may be represented through an affine motion model according to one embodiment may include translational motion, scale motion, rotate motion, and shear motion. have. In other words, the affine motion model is based on the translational movement of the image (part of the image) in accordance with the passage of time, the scale movement in which a part of the image is scaled according to the passage of time, And a shear motion in which a part of the image is deformed into an equilibrium quadrilateral shape according to the passage of time.
일 실시예에 따른 어파인 움직임 모델을 이용하여 어파인 인터 예측(affine inter prediction)이 수행될 수 있다. 인코딩 장치/디코딩 장치는 어파인 인터 예측을 통하여 현재 블록의 CP들에서의 움직임 벡터들을 기반으로 영상의 왜곡 형태를 예측할 수 있고, 이를 통하여 예측의 정확도를 높임으로서 영상의 압축 성능을 향상시킬 수 있다. 또한, 현재 블록의 주변 블록의 움직임 벡터를 이용하여 상기 현재 블록의 적어도 하나의 CP에 대한 움직임 벡터가 유도될 수 있는바, 추가되는 부가 정보에 대한 데이터량 부담을 줄이고, 인터 예측 효율을 향상시킬 수 있다.Affine inter prediction may be performed using an affine motion model according to an embodiment. The encoding apparatus / decoding apparatus can predict the distortion of the image based on the motion vectors in the CPs of the current block through affine inter prediction, thereby improving the compression performance of the image by increasing the accuracy of the prediction . In addition, since a motion vector for at least one CP of the current block can be derived by using a motion vector of a neighboring block of the current block, it is possible to reduce the data amount burden on the added additional information, .
일 예시에서, 어파인 인터 예측은 현재 블록에 대한 3개의 CP들, 즉 3개의 기준점에서의 움직임 정보를 기반으로 수행될 수 있다. 현재 블록에 대한 3개의 CP들에서의 움직임 정보는, 각 CP의 CPMV를 포함할 수 있다.In one example, affine inter prediction may be performed based on three CPs for the current block, i.e., motion information at three reference points. The motion information at the three CPs for the current block may include the CPMV of each CP.
도 4는 3개의 CP들에 대한 움직임 벡터들이 사용되는 어파인 움직임 모델을 예시적으로 나타낸다. FIG. 4 exemplarily shows a motion model in which the motion vectors for the three CPs are used.
현재 블록(400) 내의 좌상단(top-left) 샘플의 위치(position)가 (0,0)이고, 현재 블록(400)의 폭(width)이 w이고 높이(height)가 h인 경우, 도 4에 도시된 바와 같이 (0,0), (w, 0) 및 (0, h)에 위치한 샘플들을 현재 블록(400)에 대한 CP들로 정할 수 있다. 이하 (0,0) 샘플 위치의 CP는 CP0, (w, 0) 샘플 위치의 CP는 CP1, (0, h) 샘플 위치의 CP는 CP2라고 나타낼 수 있다. When the position of the top-left sample in the current block 400 is (0, 0), the width of the current block 400 is w, and the height is h, The samples located at (0, 0), (w, 0) and (0, h) as CPs for the current block 400 as shown in FIG. CP at the (0, 0) sample position can be represented as CP0, CP at the (w, 0) sample position as CP1, and CP at the (0, h) sample position as CP2.
상술한 각 CP와 해당 CP에 대한 움직임 벡터를 이용하여 일 실시예에 따른 어파인 움직임 모델을 적용할 수 있다. 어파인 움직임 모델은 아래의 수학식 1과 같이 나타날 수 있다.An affine motion model according to an embodiment can be applied using the CPs and the motion vectors for the CPs. The affine motion model can be expressed as Equation 1 below.
[수학식 1][Equation 1]
Figure PCTKR2018015894-appb-I000001
Figure PCTKR2018015894-appb-I000001
여기서, w는 상기 현재 블록(400)의 폭(width)을 나타내고, h는 상기 현재 블록(400)의 높이(height)를 나타내고, v0x, v0y는 각각 CP0의 움직임 벡터의 x성분, y성분을 나타내고, v1x, v1y은 각각 CP1의 움직임 벡터의 x성분, y성분을 나타내고, v2x, v2y는 각각 CP2의 움직임 벡터의 x성분, y성분을 나타낸다. 또한, x는 상기 현재 블록(400) 내 대상 샘플의 위치의 x 성분을 나타내고, y는 상기 현재 블록(400) 내 상기 대상 샘플의 상기 위치의 y 성분을 나타내고, vx는 상기 현재 블록(400) 내 상기 대상 샘플의 움직임 벡터의 x성분, vy는 현재 블록(400) 내 상기 대상 샘플의 상기 움직임 벡터의 y성분을 나타낸다.Here, w represents the width of the current block 400, h represents the height of the current block 400, v 0x and v 0y denote the x component of the motion vector of CP0, y And v 1x and v 1y denote the x and y components of the motion vector of CP1, respectively, and v 2x and v 2y denote the x and y components of the motion vector of CP2, respectively. X represents the x component of the position of the target sample in the current block 400 y represents the y component of the position of the target sample in the current block 400 and v x represents the current block 400 ) x component of the motion vector of the target within the sample, v y represents the y component of the motion vector of the target sample within the current block (400).
상기 CP0의 움직임 벡터, 상기 CP1의 움직임 벡터 및 상기 CP2의 움직임 벡터는 알고 있으므로, 상기 수학식 1을 기반으로 현재 블록 내 샘플 위치에 따른 움직임 벡터가 유도될 수 있다. 즉, 상기 어파인 움직임 모델에 따르면 대상 샘플의 좌표 (x, y)와 3개의 CP들과의 거리 비를 기반으로, 상기 CP들에서의 움직임 벡터들 v0(v0x, v0y), v1(v1x, v1y), v2(v2x, v2y)가 스케일링 되어 상기 대상 샘플 위치에 따른 상기 대상 샘플의 움직임 벡터가 도출될 수 있다. 즉, 상기 어파인 움직임 모델에 따르면 상기 CP들의 움직임 벡터들을 기반으로 상기 현재 블록 내 각 샘플의 움직임 벡터가 도출될 수 있다. 한편, 상기 어파인 움직임 모델에 따라서 도출된 상기 현재 블록 내 샘플들의 움직임 벡터들의 집합은 어파인 움직임 벡터 필드(affine Motion Vector Field)라고 나타낼 수 있다.Since a motion vector of CP0, a motion vector of CP1, and a motion vector of CP2 are known, a motion vector according to a sample position in a current block can be derived based on Equation (1). That is, according to the affine motion model, the motion vectors v0 ( v0x , v0y ) and v1 (v0) in the CPs are calculated based on the distance ratios between the coordinates (x, y) v 1x, v 1y), v2 (v 2x, v 2y) is can be scaled to be derived by the motion vector of the target sample corresponding to the destination sample position. That is, according to the affine motion model, a motion vector of each sample in the current block can be derived based on motion vectors of the CPs. The set of motion vectors of the samples in the current block derived according to the affine motion model may be referred to as an affine motion vector field.
한편, 상기 수학식 1에 대한 6개의 파라미터들은 다음의 수학식과 같이 a, b, c, d, e, f 로 나타낼 수 있고, 상기 6개의 파라미터들로 나타낸 상기 어파인 움직임 모델에 대한 수학식은 다음과 같을 수 있다.The six parameters for Equation (1) can be represented by a, b, c, d, e, and f as shown in the following mathematical formulas, and the mathematical expression for the affine motion model represented by the six parameters is ≪ / RTI >
[수학식 2]&Quot; (2) "
Figure PCTKR2018015894-appb-I000002
Figure PCTKR2018015894-appb-I000002
여기서, w는 상기 현재 블록(400)의 폭(width)을 나타내고, h는 상기 현재 블록(400)의 높이(height)를 나타내고, v0x, v0y는 각각 CP0의 움직임 벡터의 x성분, y성분을 나타내고, v1x, v1y은 각각 CP1의 움직임 벡터의 x성분, y성분을 나타내고, v2x, v2y는 각각 CP2의 움직임 벡터의 x성분, y성분을 나타낸다. 또한, x는 상기 현재 블록(400) 내 대상 샘플의 위치의 x 성분을 나타내고, y는 상기 현재 블록(400) 내 상기 대상 샘플의 상기 위치의 y 성분을 나타내고, vx는 상기 현재 블록(400) 내 상기 대상 샘플의 움직임 벡터의 x성분, vy는 현재 블록(400) 내 상기 대상 샘플의 상기 움직임 벡터의 y성분을 나타낸다.Here, w represents the width of the current block 400, h represents the height of the current block 400, v 0x and v 0y denote the x component of the motion vector of CP0, y And v 1x and v 1y denote the x and y components of the motion vector of CP1, respectively, and v 2x and v 2y denote the x and y components of the motion vector of CP2, respectively. X represents the x component of the position of the target sample in the current block 400 y represents the y component of the position of the target sample in the current block 400 and v x represents the current block 400 ) x component of the motion vector of the target within the sample, v y represents the y component of the motion vector of the target sample within the current block (400).
상기 6개의 파라미터들을 사용하는 상기 어파인 움직임 모델 또는 상기 어파인 인터 예측은 6 파라미터 어파인 움직임 모델 또는 AF6 라고 나타낼 수 있다. The affine motion model using the six parameters or the affine inter prediction may be referred to as a six-parameter affine motion model or AF6.
일 예시에서, 어파인 인터 예측은 현재 블록(400)에 대한 3개의 CP들, 즉 3개의 기준점에서의 움직임 정보를 기반으로 수행될 수 있다. 현재 블록(400)에 대한 3개의 CP들에서의 움직임 정보는, 각 CP의 CPMV를 포함할 수 있다.In one example, affine inter prediction may be performed based on three CPs for the current block 400, i.e., motion information at three reference points. The motion information at the three CPs for the current block 400 may include the CPMV of each CP.
일 예시에서, 어파인 인터 예측은 현재 블록(400)에 대한 2개의 CP들, 즉 2개의 기준점에서의 움직임 정보를 기반으로 수행될 수 있다. 현재 블록(400)에 대한 2개의 CP들에서의 움직임 정보는, 각 CP의 CPMV를 포함할 수 있다.In one example, affine inter prediction may be performed based on two CPs for the current block 400, i.e., motion information at two reference points. The motion information at the two CPs for the current block 400 may include the CPMV of each CP.
도 5는 2개의 CP들에 대한 움직임 벡터들이 사용되는 어파인 움직임 모델을 예시적으로 나타낸다. 5 illustrates an exemplary motion model in which the motion vectors for two CPs are used.
2개의 CP들을 사용하는 어파인 움직임 모델은 병진 움직임, 스케일 움직임, 회전 움직임을 포함하는 3가지 움직임을 표현할 수 있다. 3가지 움직임을 표현하는 어파인 움직임 모델은 시밀러리티 어파인 움직임 모델(similarity affine motion model) 또는 심플리파이드 어파인 움직임 모델(simplified affine motion model)이라고 지칭될 수도 있다.An affine motion model using two CPs can represent three movements including translational motion, scale motion, and rotational motion. The affine motion model representing the three movements may be referred to as a similarity affine motion model or a simplified affine motion model.
현재 블록(500) 내의 좌상단(top-left) 샘플의 위치(position)가 (0,0)이고, 현재 블록(500)의 폭이 w이고 높이가 h인 경우, 도 5에 도시된 바와 같이 (0,0), (w, 0)에 위치한 샘플들을 현재 블록(500)에 대한 CP들로 정할 수 있다. 이하 (0,0) 샘플 위치의 CP는 CP0, (w, 0) 샘플 위치의 CP는 CP1이라고 나타낼 수 있다. When the position of the top-left sample in the current block 500 is (0, 0), the width of the current block 500 is w, and the height is h, as shown in FIG. 5 0, 0) and (w, 0) may be defined as CPs for the current block 500. The CP at the (0, 0) sample position can be denoted as CP0, and the CP at the (w, 0) sample position can be denoted as CP1.
상술한 각 CP와 해당 CP에 대한 움직임 벡터를 이용하여 일 실시예에 따른 어파인 움직임 모델을 적용할 수 있다. 어파인 움직임 모델은 아래의 수학식 3과 같이 나타날 수 있다.An affine motion model according to an embodiment can be applied using the CPs and the motion vectors for the CPs. The affine motion model can be expressed as Equation 3 below.
[수학식 3]&Quot; (3) "
Figure PCTKR2018015894-appb-I000003
Figure PCTKR2018015894-appb-I000003
여기서, w는 상기 현재 블록(500)의 폭(width)을 나타내고, v0x, v0y는 각각 CP0의 움직임 벡터의 x성분, y성분을 나타내고, v1x, v1y은 각각 CP1의 움직임 벡터의 x성분, y성분을 나타낸다. 또한, x는 상기 현재 블록(500) 내 대상 샘플의 위치의 x 성분을 나타내고, y는 상기 현재 블록(500) 내 상기 대상 샘플의 상기 위치의 y 성분을 나타내고, vx는 상기 현재 블록(500) 내 상기 대상 샘플의 움직임 벡터의 x성분, vy는 현재 블록(500) 내 상기 대상 샘플의 상기 움직임 벡터의 y성분을 나타낸다.Here, w represents the width of the current block 500, v 0 x and v 0y denote the x-component and y-component of the motion vector of CP 0, v 1x and v 1y denote the motion vectors of CP 1 , x component, and y component. X is the x component of the location of the object in the current block 500 y is the y component of the location of the object in the current block 500 and v x is the current block 500 ) x component of the motion vector of the target within the sample, v y represents the y component of the motion vector of the target sample within the current block (500).
한편, 상기 수학식 3에 대한 4개의 파라미터들은 다음의 수학식과 같이 a, b, c, d 로 나타낼 수 있고, 상기 4개의 파라미터들로 나타낸 상기 어파인 움직임 모델에 대한 수학식은 다음과 같을 수 있다.The four parameters for Equation (3) can be expressed as a, b, c, and d as shown in the following equation, and the mathematical expression for the affine motion model represented by the four parameters can be expressed as follows .
[수학식 4]&Quot; (4) "
Figure PCTKR2018015894-appb-I000004
Figure PCTKR2018015894-appb-I000004
여기서, w는 상기 현재 블록(500)의 폭(width)을 나타내고, v0x, v0y는 각각 CP0의 움직임 벡터의 x성분, y성분을 나타내고, v1x, v1y은 각각 CP1의 움직임 벡터의 x성분, y성분을 나타낸다. 또한, x는 상기 현재 블록(500) 내 대상 샘플의 위치의 x 성분을 나타내고, y는 상기 현재 블록(500) 내 상기 대상 샘플의 상기 위치의 y 성분을 나타내고, vx는 상기 현재 블록(500) 내 상기 대상 샘플의 움직임 벡터의 x성분, vy는 현재 블록(500) 내 상기 대상 샘플의 상기 움직임 벡터의 y성분을 나타낸다. 상기 2개의 CP들을 사용하는 상기 어파인 움직임 모델은 상기 수학식 4와 같이 4개의 파라미터들 a, b, c, d 로 표현될 수 있는바, 상기 4개의 파라미터들을 사용하는 상기 어파인 움직임 모델 또는 상기 어파인 인터 예측은 4 파라미터 어파인 움직임 모델 또는 AF4 라고 나타낼 수 있다. 즉, 상기 어파인 움직임 모델에 따르면 상기 컨트롤 포인트들의 움직임 벡터들을 기반으로 상기 현재 블록 내 각 샘플의 움직임 벡터가 도출될 수 있다. 한편, 상기 어파인 움직임 모델에 따라서 도출된 상기 현재 블록 내 샘플들의 움직임 벡터들의 집합은 어파인 움직임 벡터 필드라고 나타낼 수 있다.Here, w represents the width of the current block 500, v 0 x and v 0y denote the x-component and y-component of the motion vector of CP 0, v 1x and v 1y denote the motion vectors of CP 1 , x component, and y component. X is the x component of the location of the object in the current block 500 y is the y component of the location of the object in the current block 500 and v x is the current block 500 ) x component of the motion vector of the target within the sample, v y represents the y component of the motion vector of the target sample within the current block (500). The affine motion model using the two CPs can be represented by four parameters a, b, c, and d as in Equation (4), and the affine motion model using the four parameters The affine inter prediction can be expressed as a motion parameter, which is a 4-parameter affine, or AF4. That is, according to the affine motion model, a motion vector of each sample in the current block can be derived based on motion vectors of the control points. A set of motion vectors of the samples in the current block derived according to the affine motion model may be expressed as an affine motion vector field.
한편, 상술한 내용과 같이 상기 어파인 움직임 모델을 통하여 샘플 단위의 움직임 벡터가 도출될 수 있으며, 이를 통하여 인터 예측의 정확도가 상당히 향상될 수 있다. 다만, 이 경우, 움직임 보상(motion compensation) 과정에서의 복잡도가 크게 증가될 수도 있다. On the other hand, as described above, the motion vector of a sample unit can be derived through the affine motion model, and the accuracy of the inter prediction can be improved significantly. However, in this case, the complexity in the motion compensation process may be greatly increased.
다른 일 예시에서는, 샘플 단위의 움직임 벡터가 도출되는 대신 상기 현재 블록 내 서브 블록 단위의 움직임 벡터가 도출되도록 제한될 수 있다. In another example, instead of deriving a motion vector of a sample unit, the motion vector of each sub-block in the current block may be limited to be derived.
도 6은 어파인 움직임 모델을 기반으로 서브 블록 단위로 움직임 벡터를 도출하는 일 예를 도시하는 도면이다.6 is a diagram illustrating an example of deriving a motion vector on a subblock-by-block basis based on an affine motion model.
도 6은 상기 현재 블록의 사이즈가 16x16이고, 4x4 서브 블록 단위로 움직임 벡터가 유도되는 경우를 예시적으로 나타낸다. 상기 서브 블록은 다양한 사이즈로 설정될 수 있으며, 예를 들어, 서브 블록이 nxn 사이즈(n은 양의 정수, ex, n은 4)로 설정된 경우, 상기 어파인 움직임 모델을 기반으로 현재 블록 내 nxn 서브 블록 단위로 움직임 벡터가 도출될 수 있으며, 각 서브 블록을 대표하는 움직임 벡터를 유도하기 위한 다양한 방법이 적용될 수 있다.FIG. 6 exemplarily illustrates a case where the size of the current block is 16x16 and a motion vector is derived in units of 4x4 sub-blocks. For example, if the subblock is set to a size of nxn (n is a positive integer, ex, n is 4), the subblock may be set in various sizes. For example, A motion vector may be derived for each sub-block, and various methods for deriving a motion vector representative of each sub-block may be applied.
예를 들어, 도 6을 참조하면 각 서브 블록의 센터 또는 센터 우하측(lower right side) 샘플 포지션을 대표 좌표로 하여 각 서브 블록의 움직임 벡터가 도출될 수 있다. 여기서 센터 우하측 포지션이라 함은 서브 블록의 센터에 위치하는 4개의 샘플들 중 우하측에 위치하는 샘플 포지션을 나타낼 수 있다. 예를 들어, n이 홀수인 경우, 서브 블록의 정중앙에는 하나의 샘플이 위치할 수 있고, 이 경우 센터 샘플 포지션이 상기 서브 블록의 움직임 벡터의 도출을 위하여 사용될 수 있다. 그러나, n이 짝수인 경우 서브 블록의 중앙에는 4개의 샘플들이 인접하게 위치할 수 있고, 이 경우 우하측 샘플 포지션이 상기 움직임 벡터의 도출을 위하여 사용될 수 있다. 예를 들어, 도 6을 참조하면 각 서브 블록별 대표 좌표는 (2, 2), (6, 2), (10, 2),..., (14, 14)로 도출될 수 있고, 인코딩 장치/디코딩 장치는 상기 서브 블록들의 대표 좌표들 각각을 상술한 수학식 1 또는 3에 대입하여, 각 서브 블록의 움직임 벡터를 도출할 수 있다. 상기 어파인 움직임 모델을 통하여 도출된 현재 블록 내 서브 블록들의 움직임 벡터들은 어파인 MVF 라고 나타낼 수 있다.For example, referring to FIG. 6, a motion vector of each sub-block may be derived using a center position or a lower right side sample position of each sub-block as representative coordinates. Here, the lower right position of the center may indicate the sample position located on the lower right side among the four samples located at the center of the sub-block. For example, if n is an odd number, one sample may be located in the center of a sub-block, in which case a center sample position may be used to derive the motion vector of the sub-block. However, if n is an even number, four samples may be positioned adjacent to the center of a sub-block, and a lower-order sample position may be used for deriving the motion vector. For example, referring to FIG. 6, representative coordinates of each sub-block may be derived as (2, 2), (6, 2), (10, 2), ..., (14, 14) The apparatus / decoding apparatus may substitute each of the representative coordinates of the sub-blocks into Equation (1) or (3) to derive a motion vector of each sub-block. The motion vectors of the subblocks in the current block derived through the affine motion model may be denoted as affine MVF.
한편, 상술한 어파인 움직임 모델을 사용한 인터 예측, 즉, 어파인 움직임 예측은 어파인 머지 모드(affine merge mode, AF_MERGE) 와 어파인 인터 모드(affine inter mode, AF_INTER) 가 존재할 수 있다.Meanwhile, inter prediction using the above affine motion model, that is, affine motion prediction, may have an affine merge mode (AF_MERGE) and an affine inter mode (AF_INTER).
일 실시예에 따른 어파인 머지 모드는 기존의 스킵(skip)/머지(merge) 모드와 유사하게 MVD(motion vector difference)에 대한 코딩없이 상기 현재 블록의 주변 블록으로부터 2개 또는 3개의 CP들 각각에 대한 CPMV를 유도하여 예측을 수행하는 인코딩/디코딩 방법을 나타낼 수 있다.The merge mode according to an exemplary embodiment may include two or three CPs from neighboring blocks of the current block without coding for MVD (motion vector difference) similar to the existing skip / merge mode Lt; RTI ID = 0.0 > CPMV < / RTI >
한편, 도 3 내지 도 6에서 전술된 어파인 움직임 모델에 대한 설명은 도 7 내지 도 17에서 후술될 본 발명의 일 실시예에 따른 인코딩/디코딩 방법의 원리에 대한 이해를 돕기 위한 것이며, 따라서 본 발명의 범위가 도 3 내지 도 6에서 전술된 내용에 의해 제한되는 것이 아님은 당해 기술 분야의 통상의 기술자에게 용이하게 이해될 것이다.3 to 6 are intended to aid understanding of the principles of the encoding / decoding method according to an embodiment of the present invention, which will be described later with reference to FIGS. 7 to 17, It will be readily appreciated by those of ordinary skill in the art that the scope of the invention is not limited by the foregoing description in Figures 3-6.
이하 도 7 내지 도 17에서는 본 발명의 일부 실시예들에 따른 인코딩/디코딩 방법에 대해 개시한다. 보다 구체적으로, 도 7 내지 도 17에서는 움직임 추정 및 움직임 보상에 대해 개시하는데, 움직임 추정은 움직임 벡터 도출(Motion Vector Derivation, MVD) 또는 DMVD(Decoder side Motion Vector Derivation)을 기반으로 수행될 수 있다. 움직임 벡터 도출의 일 실시예로서 BIMVD(Bilinear Interpolation motion model based Motion Vector Derivation)이 적용될 수 있으며, BIMVD에서 양방향 선형 보간 움직임 모델이 이용될 수 있다. 이하의 설명에서는 편의상 일부 실시예에 따른 세부 동작들을 디코딩 장치(200)를 기준으로 설명하기도 하였으나, 해당 세부 동작들은 인코딩 장치(100)에도 마찬가지로 적용될 수 있다.7 to 17, an encoding / decoding method according to some embodiments of the present invention will be described. More specifically, FIGS. 7 to 17 illustrate motion estimation and motion compensation, which may be performed based on Motion Vector Derivation (MVD) or Decoder Side Motion Vector Derivation (DMVD). As an example of motion vector derivation, BIMVD (Bilinear Interpolation Motion Model based Motion Vector Derivation) may be applied, and a bidirectional linear interpolation motion model may be used in BIMVD. In the following description, the detailed operations according to some embodiments have been described with reference to the decoding apparatus 200 for the sake of convenience, but the detailed operations may be applied to the encoding apparatus 100 as well.
도 7은 일 실시예에 따라서 움직임 벡터에 기반하여 영상 코딩을 수행하는 과정을 도시하는 흐름도이다. 일 예시에서, 도 7은 일 실시예에 따른 인터 예측(inter prediction)의 동작 방법을 개략적으로 나타내는 흐름도일 수 있다.FIG. 7 is a flowchart illustrating a process of performing image coding based on a motion vector according to an embodiment. In one example, FIG. 7 may be a flow chart that schematically illustrates a method of operating inter prediction according to one embodiment.
일 실시예에 따른 디코딩 장치(200)는 현재 블록의 움직임 정보를 추정할 수 있다(S700). 보다 구체적으로, 일 실시예에 따른 디코딩 장치(200)는 현재 블록에 대한 MVP를 도출할 수 있고(S702), 현재 블록에 대한 MVD를 (비트스트림으로부터) 디코딩(또는 획득)할 수 있으며(S704), 현재 블록에 대한 MVP와 MVD를 더하여 현재 블록의 움직임 벡터를 획득할 수 있다(S706).The decoding apparatus 200 according to an exemplary embodiment may estimate motion information of a current block (S700). More specifically, the decoding apparatus 200 according to the embodiment can derive MVP for the current block (S702), decode (or obtain) MVD (from the bit stream) for the current block (S704 , MVP and MVD for the current block are added to obtain the motion vector of the current block (S706).
일 실시예에 따른 디코딩 장치(200)는 S700에서 추정된 움직임 정보를 기반으로 현재 블록에 대한 예측 샘플들을 생성할 수 있다(S710). 현재 블록에 대한 예측 샘플들이 생성되면, 디코딩 장치(200)는 현재 블록에 대한 예측 샘플 및 레지듀얼 샘플을 기반으로 현재 블록을 복원할 수 있다. The decoding apparatus 200 may generate prediction samples for a current block based on motion information estimated in S700 (S710). When the prediction samples for the current block are generated, the decoding apparatus 200 can restore the current block based on the prediction sample and the residual sample for the current block.
도 8은 일 실시예에 따라서 현재 블록에 대한 4개의 CP들을 기반으로 현재 블록의 움직임 벡터를 도출하는 과정을 개략적으로 설명하기 위한 도면이다. 8 is a diagram for explaining a process of deriving a motion vector of a current block based on four CPs for a current block according to an embodiment.
일 실시예에 따른 디코딩 장치(200)는 양방향 간섭 움직임 모델에 기반한 움직임 벡터 도출(Bilinear interpolation motion model based Motion Vector Derivation, 이하 'BIMVD')을 수행할 수 있다. 현재 블록(800)에 대해 BIMVD를 수행하기 위해, 예를 들어 도 8에 도시된 바와 같이 현재 블록(800)에 대한 4개의 CP들(CP0, CP1, CP2 및 CP3)에 관한 정보가 필요할 수 있다. CP에 관한 정보는, CPMVP, CPMV, CP의 위치에 대한 정보, CP의 x축 그래디언트(gradient), CP의 y축 그래디언트 및 CP의 시간축 그래디언트를 포함할 수 있다. CPMVi, CPMVPi는 CPi(i=0, 1, 2, 3)에 대한 것을 나타낸다. The decoding apparatus 200 according to an exemplary embodiment may perform a motion vector derivation (BIMVD) based on a bidirectional interference motion model. Information about the four CPs CP0, CP1, CP2, and CP3 for the current block 800 may be needed to perform BIMVD on the current block 800, for example, as shown in FIG. 8 . Information about the CP may include information about the CPMVP, CPMV, CP location, the x-axis gradient of the CP, the y-axis gradient of the CP, and the time-base gradient of the CP. CPMVi and CPMVPi represent CPi (i = 0, 1, 2, 3).
도 8에서는 현재 블록(800)에 대하여 BIMVD를 수행하기 위해 4개의 CP들에 관한 정보가 필요함을 가정하고 있으나, 실시예가 이에 한정되는 것은 아니다. 예를 들어, 디코딩 장치(200)는 현재 블록(800)에 대한 2개의 CP들 또는 3개의 CP들을 기반으로 현재 블록(800)에 대하여 BIMVD를 수행할 수 있다.In FIG. 8, it is assumed that information on four CPs is required to perform BIMVD on the current block 800, but the embodiment is not limited thereto. For example, the decoding device 200 may perform BIMVD on the current block 800 based on two CPs or three CPs for the current block 800.
또한, 도 8에서는 현재 블록(800)에 대하여 BIMVD를 수행하는 과정에서 이용되는 4개의 CP들을 현재 블록(800)의 각 모서리에 존재하는 4개의 샘플들로 가정하고 있으나, 실시예가 이에 한정되는 것은 아니다. 예를 들어, 현재 블록(800)의 중앙 위치의 샘플, 현재 블록(800)의 각 모서리로부터 소정의 거리에 위치하는 샘플 등도 현재 블록(800)에 대하여 BIMVD를 수행하는 과정에서 CP로 이용될 수 있다. In FIG. 8, four CPs used in the process of performing BIMVD on the current block 800 are assumed to be four samples existing at each corner of the current block 800, but the embodiment is limited thereto no. For example, a sample at the center of the current block 800, a sample at a predetermined distance from each edge of the current block 800, and the like may be used as a CP in the process of performing BIMVD on the current block 800 have.
일 실시예에 따른 디코딩 장치(200)는, 현재 블록(800)에 대한 MVP를 도출하고, 현재 블록(800)에 대한 MVD를 (비트스트림으로부터) 디코딩(또는 획득)할 수 있다.The decoding apparatus 200 according to one embodiment may derive MVP for the current block 800 and decode (or obtain) the MVD for the current block 800 (from the bitstream).
또한, 일 실시예에 따른 디코딩 장치(200)는 현재 블록(800)에 대한 CP들 각각의 CPMVP들을 도출할 수 있다. 예를 들어, 디코딩 장치(200)는 현재 블록(800)에 대한 4개의 CP들(CP0, CP1, CP2 및 CP3) 각각의 CPMVP들(CPMVP0, CPMVP1, CPMVP2 및 CPMVP3)을 도출할 수 있다. 디코딩 장치(200)가 현재 블록(800)에 대한 CP들 각각의 CPMVP들을 도출하는 보다 구체적인 방법은 도 10에 대한 설명에서 후술하기로 한다. In addition, the decoding apparatus 200 according to an exemplary embodiment may derive the CPMVPs of the CPs for the current block 800, respectively. For example, the decoding apparatus 200 may derive the CPMVPs CPMVP0, CPMVP1, CPMVP2 and CPMVP3 of the four CPs CP0, CP1, CP2 and CP3 for the current block 800, respectively. A more specific method by which the decoding apparatus 200 derives the CPMVPs of the CPs for the current block 800 will be described later with reference to FIG.
또한, 일 실시예에 따른 디코딩 장치(200)는, 현재 블록(800)에 대한 CP들 각각의 CPMVP들을 기반으로 현재 블록(800)에 대한 CP들 각각의 CPMV들을 도출할 수 있다. 예를 들어, 디코딩 장치(200)는 현재 블록(800)에 대한 4개의 CP들 각각의 CPMVP들(CPMVP0, CPMVP1, CPMVP2 및 CPMVP3)을 기반으로 현재 블록(800)에 대한 4개의 CP들 각각의 CPMV들(CPMV0, CPMV1, CPMV2 및 CPMV3)을 도출할 수 있다. 현재 블록(800)에 대한 CP들 각각의 CPMV들은, 예를 들어 아래의 수학식5를 기반으로 도출될 수 있다.In addition, the decoding apparatus 200 according to an exemplary embodiment may derive the CPMVs of the CPs for the current block 800 based on the CPMVPs of the CPs for the current block 800, respectively. For example, the decoding apparatus 200 may determine the number of CPs for each of the four CPs for the current block 800 based on CPMVPs (CPMVP0, CPMVP1, CPMVP2, and CPMVP3) of each of the four CPs for the current block 800 The CPMVs CPMV0, CPMV1, CPMV2 and CPMV3 can be derived. The CPMVs of each of the CPs for the current block 800 may be derived, for example, based on Equation (5) below.
[수학식 5]&Quot; (5) "
Figure PCTKR2018015894-appb-I000005
Figure PCTKR2018015894-appb-I000005
수학식 5에서, MVP는 현재 블록(800)에 대한 MVP를 나타내고, MVD는 현재 블록(800)의 움직임 벡터와 현재 블록(800)에 대한 MVP 간의 차분을 나타낼 수 있다.In Equation (5), MVP represents the MVP for the current block 800, and MVD may represent the difference between the motion vector of the current block 800 and the MVP for the current block 800.
또한, 일 실시예에 따른 디코딩 장치(200)는, 현재 블록(800)에 대한 CP들 각각의 CPMV들을 기반으로 현재 블록(800)에 대한 움직임 벡터 필드(motion vector field, MVF)를 도출할 수 있다. 이때, 도 8에 따른 실시예는 전술한 BIMVD를 기반으로 하므로, 현재 블록(800)에 대한 MVF는 BIMVD MVF로 지칭될 수도 있다. 현재 블록(800)에 대한 MVF는 현재 블록(800) 내에서 서브 블록 단위 또는 샘플 단위로 도출될 수 있고, 서브 블록 단위는 예를 들어 4x4 블록 단위 또는 NxN 블록 단위일 수 있다. 디코딩 장치(200)는 현재 블록(800)에 대한 MVF를 결정된 단위를 기반으로 도출할 수 있다.In addition, the decoding apparatus 200 may derive a motion vector field (MVF) for the current block 800 based on the CPMVs of the CPs for the current block 800 have. At this time, since the embodiment according to FIG. 8 is based on the BIMVD described above, the MVF for the current block 800 may be referred to as a BIMVD MVF. The MVF for the current block 800 may be derived in units of subblocks or samples in the current block 800, and the subblock unit may be, for example, a 4x4 block unit or an NxN block unit. The decoding apparatus 200 can derive the MVF for the current block 800 based on the determined unit.
이때, 현재 블록(800)에 대한 CP들 각각의 CPMV들을 기반으로 현재 블록(800)에 대한 MVF를 도출하는 과정에서, CPMV들이 양방향 선형 보간 움직임 모델에 적용될 수 있다. 양방향 선형 보간 움직임 모델에 관한 보다 구체적인 설명은 도 12에서 후술하기로 한다. In this case, CPMVs can be applied to the bidirectional linear interpolation motion model in deriving the MVF for the current block 800 based on the CPMVs of the CPs for the current block 800. A more detailed description of the bidirectional linear interpolation motion model will be described later with reference to FIG.
일 실시예에 따른 디코딩 장치(200)는 도출된 MVF에 기초하여 서브 블록 단위 또는 샘플 단위로 예측을 수행할 수 있다. The decoding apparatus 200 according to the embodiment can perform prediction on a sub-block unit or a sample basis on the basis of the derived MVF.
도 9는 일 실시예에 따라서 현재 블록에 대한 4개의 CP들을 기반으로 현재 블록의 움직임 벡터를 도출하는 과정을 도시하는 흐름도이다.FIG. 9 is a flowchart illustrating a process of deriving a motion vector of a current block based on four CPs for a current block according to an embodiment.
도 9에 개시된 각 단계는 도 1에 개시된 인코딩 장치(100) 또는 도 2에 개시된 디코딩 장치(200)에 의하여 수행될 수 있다. 또한, 도 9에 개시된 각 단계와 관련된 설명들 중 일부가 도 8에서 전술된 바 있다. 보다 구체적으로, S910은 도 7의 S710과 대응되고, S920은 도 1의 변환부(122) 및 양자화부(123), 그리고 도 2의 역양자화부(222) 및 역변환부(223)에 의해 수행될 수 있고, S930은 도 1의 엔트로피 인코딩부(130) 및 도 2의 엔트로피 디코딩부(210)에 의해 수행될 수 있다. 따라서, 도 1, 도 2 또는 도 8에서 전술된 내용과 중복되는 구체적인 내용은 설명을 생략하거나 간단히 하기로 한다.Each step disclosed in Fig. 9 can be performed by the encoding apparatus 100 disclosed in Fig. 1 or the decoding apparatus 200 disclosed in Fig. In addition, some of the explanations relating to each step disclosed in Fig. 9 have been described above in Fig. More specifically, step S910 corresponds to step S710 of FIG. 7, step S920 is performed by the transforming unit 122 and the quantizing unit 123 of FIG. 1, and the inverse quantizing unit 222 and the inverse transforming unit 223 of FIG. And S930 may be performed by the entropy encoding unit 130 of FIG. 1 and the entropy decoding unit 210 of FIG. Therefore, the detailed description overlapping with the above-described contents in FIG. 1, FIG. 2 or FIG. 8 will be omitted or simplified.
일 실시예에 따른 디코딩 장치(200)는 현재 블록의 움직임 정보를 추정할 수 있다(S900). 보다 구체적으로, 일 실시예에 따른 디코딩 장치(200)는 현재 블록에 대한 MVP를 도출할 수 있고(S901), 현재 블록에 대한 MVD를 디코딩할 수 있고(S902), 현재 블록에 대한 4개의 CP들 각각과 대응되는 4개의 CPMVP들을 도출할 수 있고(S903), 현재 블록에 대한 4개의 CP들 각각과 대응되는 4개의 CPMV들을 도출할 수 있고(S904), CPMV들을 기반으로 현재 블록에 대한 MVF를 도출할 수 있다(S905).The decoding apparatus 200 according to an exemplary embodiment may estimate motion information of a current block (S900). More specifically, the decoding apparatus 200 according to the embodiment can derive the MVP for the current block (S901), decode the MVD for the current block (S902), and calculate the four CPs It is possible to derive four CPMVPs corresponding to each of the CPMVs of the current block (S903), derive four CPMVs corresponding to each of the four CPs of the current block (S904) (S905).
일 실시예에 따른 디코딩 장치(200)는, S903에 따라 CPMVP들을 도출하는 과정에서 현재 블록을 포함하는 현재 픽처의 제1 참조 픽처(first reference picture) 및 제2 참조 픽처(second reference picture)를 이용하는 시간축(time-axix) 양방향 예측(bi-prediction)을 수행할 수 있다. CPMVP들을 도출하는 과정에서 이용되는 시간축 양방향 예측에 관하여는 도 10에서 보다 구체적으로 설명하기로 한다. The decoding apparatus 200 according to an embodiment of the present invention decodes CPMVPs using a first reference picture and a second reference picture of a current picture including a current block in the course of deriving CPMVPs according to step S903 Time-axix bidirectional prediction (bi-prediction) can be performed. The time base bidirectional prediction used in the process of deriving the CPMVPs will be described in more detail with reference to FIG.
일 실시예에 따른 디코딩 장치(200)는, S904에 따라 CPMV들을 도출하는 과정에서, 도 8을 설명하는 과정에서 전술한 수학식 5를 이용할 수 있다. 다만 실시예는 이에 한정되자 않으며, 디코딩 장치(200)는 수학식 5로부터 당해 기술 분야의 통상의 기술자가 용이하게 도출할 가능한 범위 내의 수식을 기반으로 CPMV들을 도출할 수도 있다.The decoding apparatus 200 according to the embodiment may use Equation (5) described above in the process of explaining FIG. 8 in the process of deriving CPMVs according to S904. However, the embodiment is not limited thereto, and the decoding apparatus 200 may derive the CPMVs from Equation (5) based on a formula within a range that can be easily derived by a person skilled in the art.
일 실시예에 따른 디코딩 장치(200)는, S905에 따라 현재 블록에 대한 MVF를 도출하는 과정에서 CPMV들을 양방향 선형 보간 움직임 모델에 적용할 수 있다. 양방향 선형 보간 움직임 모델은 CPMV들, 현재 블록의 폭(width) 및 현재 블록의 높이(height)를 기반으로 결정될 수 있다. S905에 따라 도출된 현재 블록에 대한 MVF는 서브 블록 단위 또는 샘플 단위로 도출될 수 있고, 서브 블록 단위는 예를 들어 4x4 블록 단위 또는 NxN 블록 단위일 수 있다. 현재 블록 내에서 MVF가 결정되는 단위에 대한 보다 구체적인 설명은 도 13에서 후술하기로 한다. The decoding apparatus 200 according to the embodiment can apply the CPMVs to the bidirectional linear interpolation motion model in the process of deriving the MVF for the current block according to S905. The bidirectional linear interpolation motion model can be determined based on the CPMVs, the width of the current block, and the height of the current block. The MVF for the current block derived according to S905 may be derived in units of subblocks or samples, and the subblock unit may be, for example, 4x4 blocks or NxN blocks. A more detailed description of the unit in which the MVF is determined in the current block will be described later with reference to FIG.
일 실시예에 따른 디코딩 장치(200)는, S900(S901 내지 S905)에서 추정된 움직임 정보를 기반으로 현재 블록에 대한 예측 샘플들을 생성할 수 있고(S910), 현재 블록의 샘플들에 대하여 양자화 및 변환을 수행하고(S920), 엔트로피 코딩을 수행할 수 있다(S930). The decoding apparatus 200 according to the embodiment can generate prediction samples for the current block based on the motion information estimated in S900 (S901 to S905) (S910), and quantizes and quantizes the samples of the current block The transform is performed (S920), and entropy coding is performed (S930).
도 10은 일 실시예에 따라서 양방향 참조 픽처를 기반으로 현재 픽처에 포함된 샘플의 움직임 벡터를 도출하는 과정을 설명하기 위한 도면이다.FIG. 10 is a diagram for explaining a process of deriving a motion vector of a sample included in a current picture based on a bi-directional reference picture according to an embodiment.
일 실시예에서, 도 10에서 설명하는 원리에 따라 현재 블록에 대한 4개의 CP들 각각의 CPMVP들이 도출될 수 있다. 보다 구체적으로, 도 10에서 설명하는 시간축 양방향 예측을 기반으로 현재 블록에 대한 4개의 CP들 각각의 CPMVP들이 도출될 수 있다. In one embodiment, the CPMVPs of each of the four CPs for the current block may be derived in accordance with the principles described in FIG. More specifically, the CPMVPs of each of the four CPs for the current block can be derived based on the temporal bidirectional prediction described in FIG.
도 10을 참조하면, 현재 픽처(current picture)를 기준으로 할 때 LO 픽처(LO picture)는 소정의 시간 이전의 픽처를 나타내고, L1 픽처(L1 picture)는 소정의 시간 이후의 픽처를 나타낼 수 있다. A 위치에 대응하는 움직임 벡터 및 B 위치에 대응하는 움직임 벡터는 상호 크기가 동일하면서 방향이 반대일 수 있다. A위치의 샘플값과 B위치의 샘플값의 차이는, 예를 들어 아래의 수학식 6과 같이 도출될 수 있다.Referring to FIG. 10, an LO picture (LO picture) indicates a picture before a predetermined time when a current picture is referred to, and an L1 picture (L1 picture) indicates a picture after a predetermined time . The motion vector corresponding to the A position and the motion vector corresponding to the B position may have the same size but opposite directions. The difference between the sample value at the A position and the sample value at the B position can be derived, for example, as shown in Equation (6) below.
[수학식 6]&Quot; (6) "
Figure PCTKR2018015894-appb-I000006
Figure PCTKR2018015894-appb-I000006
수학식 6에서
Figure PCTKR2018015894-appb-I000007
는 LO 픽처의 A위치의 샘플값을 나타내고,
Figure PCTKR2018015894-appb-I000008
는 L1 픽처의 B위치의 샘플값을 나타낸다. L0 픽처의 A위치의 샘플값 및 L1 픽처의 B위치의 샘플값은 테일러 시리즈(Taylor series)의 1차 수식을 이용하면 각각 아래의 수학식 7 및 수학식 8가 도출될 수 있다.
In Equation (6)
Figure PCTKR2018015894-appb-I000007
Represents a sample value at the A position of the LO picture,
Figure PCTKR2018015894-appb-I000008
Represents the sample value of the B position of the L1 picture. The sample values of the A position and the B position of the L0 picture of the L0 picture and the L picture B of the L0 picture can be obtained by using the first order equation of the Taylor series, respectively.
[수학식 7]&Quot; (7) "
Figure PCTKR2018015894-appb-I000009
Figure PCTKR2018015894-appb-I000009
[수학식 8]&Quot; (8) "
Figure PCTKR2018015894-appb-I000010
Figure PCTKR2018015894-appb-I000010
수학식 7에 따른 LO 픽처의 A위치의 샘플값 및 수학식 8에 따른 L1 픽처의 B위치의 샘플값을 수학식 6에 대입하면, 아래의 수학식 9가 도출될 수 있다.Substituting the sample value of the A position of the LO picture according to Equation (7) and the sample value of the B position of the L1 picture according to Equation (8) into Equation (6), the following Equation (9) can be derived.
[수학식 9]&Quot; (9) "
Figure PCTKR2018015894-appb-I000011
Figure PCTKR2018015894-appb-I000011
수학식 9에서
Figure PCTKR2018015894-appb-I000012
Figure PCTKR2018015894-appb-I000013
는 L0의 (i, j) 위치에서의 x축 및 y축 편미분값을 각각 나타내고,
Figure PCTKR2018015894-appb-I000014
Figure PCTKR2018015894-appb-I000015
는 L1의 (i, j) 위치에서의 x축 및 y축 편미분값을 각각 나타낸다. x축 및 y축 편미분값은 x축 및 y축 방향의 샘플값 변화량을 의미할 수 있고, 다양한 수학적 방법을 통해 도출될 수 있다.
In Equation (9)
Figure PCTKR2018015894-appb-I000012
And
Figure PCTKR2018015894-appb-I000013
Represents the x-axis and y-axis partial differential values at the (i, j) position of L0,
Figure PCTKR2018015894-appb-I000014
And
Figure PCTKR2018015894-appb-I000015
Represents the x-axis and y-axis partial differential values at the (i, j) position of L1, respectively. The x-axis and y-axis partial differential values can mean the amount of change in the sample values in the x- and y-axis directions and can be derived through various mathematical methods.
수학식 7 및 수학식 8의 (i, j) 위치에서의 움직임 벡터
Figure PCTKR2018015894-appb-I000016
Figure PCTKR2018015894-appb-I000017
는 수학식9의
Figure PCTKR2018015894-appb-I000018
를 최소화하는 값으로 결정될 수 있다. 이때 (i, j)는 현재 블록에 대한 4개의 CP들의 위치들 중 하나일 수 있고, (i, j)를 중심으로 (2M+1)x(2M+1) 크기의 윈도우 Ω 내에서 로컬리 스테디 모션(locally steady motion)이 적용되는 경우 (i, j) 위치의 움직임 벡터는 (i', j')(여기서 i-M ≤ i'≤ i+M, j-M ≤ j' ≤ j+M) 위치를 고려하여 획득될 수 있다. 이에 따라 수학식 6 내지 수학식 9를 기반으로
Figure PCTKR2018015894-appb-I000019
를 도출하면, 아래의 수학식 10과 같다.
(I, j) in Equations (7) and (8)
Figure PCTKR2018015894-appb-I000016
And
Figure PCTKR2018015894-appb-I000017
(9)
Figure PCTKR2018015894-appb-I000018
As shown in FIG. In this case, (i, j) may be one of the positions of four CPs for the current block, and local (i, j) within a window of (2M + 1) If a locally steady motion is applied, the motion vector at position (i, j) is (i ', j') (where iM ≤ i'≤i + M, jM ≤ j'≤j + M) . ≪ / RTI > Accordingly, based on Equations (6) to (9)
Figure PCTKR2018015894-appb-I000019
The following equation (10) is obtained.
[수학식 10]&Quot; (10) "
Figure PCTKR2018015894-appb-I000020
Figure PCTKR2018015894-appb-I000020
Figure PCTKR2018015894-appb-I000021
는 아래의 수학식 11과 같이 나타날 수 있다.
Figure PCTKR2018015894-appb-I000021
Can be expressed by Equation (11) below.
[수학식 11]&Quot; (11) "
Figure PCTKR2018015894-appb-I000022
Figure PCTKR2018015894-appb-I000022
수학식 11에서
Figure PCTKR2018015894-appb-I000023
는 각각 (i, j) 위치의 x축 그래디언트(gradient), y축 그래디언트 및 시간축 그래디언트를 나타낼 수 있다. 수학식 10을
Figure PCTKR2018015894-appb-I000024
로 편미분하면 아래의 수학식 12와 같고,
Figure PCTKR2018015894-appb-I000025
로 편미분하면 아래의 수학식 13과 같다.
In Equation (11)
Figure PCTKR2018015894-appb-I000023
May represent an x-axis gradient, a y-axis gradient, and a time-base gradient, respectively, of the (i, j) position. Equation 10
Figure PCTKR2018015894-appb-I000024
(12), < / RTI >< RTI ID =
Figure PCTKR2018015894-appb-I000025
The following equation (13) is obtained.
[수학식 12]&Quot; (12) "
Figure PCTKR2018015894-appb-I000026
Figure PCTKR2018015894-appb-I000026
[수학식 13]&Quot; (13) "
Figure PCTKR2018015894-appb-I000027
Figure PCTKR2018015894-appb-I000027
수학식 12 및 수학식 13을 기반으로 (i, j) 위치에서의 움직임 벡터
Figure PCTKR2018015894-appb-I000028
Figure PCTKR2018015894-appb-I000029
를 아래의 수학식 14와 같이 도출할 수 있다.
Based on Equations (12) and (13), the motion vector at the (i, j)
Figure PCTKR2018015894-appb-I000028
And
Figure PCTKR2018015894-appb-I000029
Can be derived as shown in the following Equation (14).
[수학식 14]&Quot; (14) "
Figure PCTKR2018015894-appb-I000030
Figure PCTKR2018015894-appb-I000030
따라서, 일 실시예에 따르면 수학식 6 내지 수학식 14의 (i, j)에 현재 블록에 대한 4개의 CP들 각각의 위치를 대입하는 경우, 현재 블록에 대한 각 CP에서의 CPMVP를 도출할 수 있다. 다만, 실시예에 따라서는 수학식 6 내지 수학식 14의 (i, j)에 현재 블록에 대한 4개의 CP들 각각의 위치를 대입하는 경우에 각 CP에서의 CPMV가 바로(directly) 도출될 수도 있다. Therefore, according to an embodiment, when the positions of each of the four CPs for the current block are substituted into (i, j) in Equations (6) through (14), CPMVP at each CP for the current block can be derived have. However, according to the embodiment, when the positions of the four CPs for the current block are substituted into (i, j) in Equations (6) to (14), the CPMV at each CP may be directly derived have.
일 실시예에서, 도 10에서 설명된 내용들은 디코딩 장치(200)가 영상 디코딩을 수행할 때 항상 적용될 수 있다.In one embodiment, the contents described in Fig. 10 can always be applied when the decoding apparatus 200 performs image decoding.
또는, 다른 일 실시예에서, 도 10에서 설명된 동작들은 각 CP의 CPMVP를 도출하는 과정에서 시간축 양방향 예측(bi-prediction)을 수행할지 여부에 대한 결정을 기반으로 수행될 수 있다. 시간축 양방향 예측은 CPMVP들을 도출하기 위해 현재 블록을 포함하는 현재 픽처의 제1 참조 픽쳐(first reference picture) 및 제2 참조 픽처(second reference picture)를 이용하는 예측을 의미한다. 시간축 양방향 예측에서 제1 참조 픽처 및 제2 참조 픽처는 현재 픽처를 기준으로 시간축 상으로 상호 반대 방향에 위치할 수 있다. Alternatively, in another embodiment, the operations described in FIG. 10 may be performed based on a determination as to whether to perform bi-prediction in the course of deriving the CPMVP of each CP. The temporal bidirectional prediction refers to a prediction using a first reference picture and a second reference picture of a current picture including a current block to derive CPMVPs. In the temporal bidirectional prediction, the first reference picture and the second reference picture may be located in mutually opposite directions on the time axis with reference to the current picture.
시간축 양방향 예측을 수행할지 여부에 대한 결정 결과는 TRUE bi-prediction으로 표시될 수 있다. TRUE bi-prediction은 양방향 예측을 수행할 수 있고, 현재 픽처에 대한 제1 참조 픽처 L0 및 제2 참조 픽처 L1이 존재하며, 제1 참조 픽처 L0 및 제2 참조 픽처 L1이 현재 픽처를 기준으로 시간축상 반대 방향에 위치함을 의미할 수 있다. TRUE bi-prediction인 경우, 디코딩 장치(200)는 시간축 양방향 예측을 수행하고, 이를 기반으로 BIMVD를 수행할 수 있다. 만약 TRUE bi-prediction이 아닌 경우에는 BIMVD가 수행되지 않고, 디코딩 장치(200)는 시간축 양방향 예측 대신 (일반적인) 양방향 예측을 수행할 수 있다. (일반적인) 양방향 예측은, 예를 들어 현재 픽처를 기준으로 시간축상 동일한 방향에 존재하는 제1 참조 픽처 L0 및 제2 참조 픽처 L1을 기반으로 수행하는 예측을 의미할 수 있다. The result of the decision as to whether to perform temporal bi-directional prediction may be indicated as TRUE bi-prediction. TRUE bi-prediction can perform bidirectional prediction, and there are a first reference picture L0 and a second reference picture L1 for the current picture, and the first reference picture L0 and the second reference picture L1 are time- It can be said to be located in the opposite axial direction. In the case of TRUE bi-prediction, the decoding apparatus 200 performs time-base bi-directional prediction and performs BIMVD based on the bi-prediction. If it is not TRUE bi-prediction, BIMVD is not performed, and the decoding apparatus 200 can perform bi-directional prediction (general) instead of time-base bidirectional prediction. (General) bidirectional prediction may mean prediction based on, for example, a first reference picture L0 and a second reference picture L1 existing in the same direction on the time axis with respect to the current picture.
또는, 또 다른 일 실시예에서, 디코딩 장치(200)는 시간축 양방향 예측을 수행할지 여부를 나타내는 플래그 정보를 기반으로 시간축 양방향 예측의 수행 여부를 결정할 수 있다. 시간축 양방향 예측을 수행할지 여부를 나타내는 플래그 정보가 시간축 양방향 예측을 수행할 것을 지시하는 경우, 디코딩 장치(200)는 시간축 양방향 예측을 수행하고 이를 기반으로 BIMVD를 수행할 수 있다. 시간축 양방향 예측을 수행할지 여부를 나타내는 플래그 정보가 시간축 양방향 예측을 수행하지 않을 것을 지시하는 경우, 디코딩 장치(200)는 시간축 양방향 예측 대신 (일반적인) 양방향 예측을 수행할 수 있다.Alternatively, in still another embodiment, the decoding apparatus 200 can determine whether or not to perform time-base bidirectional prediction based on flag information indicating whether or not to perform time-base bidirectional prediction. When the flag information indicating whether or not to perform temporal-axis bidirectional prediction indicates that time-base bidirectional prediction is to be performed, the decoding apparatus 200 performs time-base bidirectional prediction and performs BIMVD based on the time-base bidirectional prediction. When the flag information indicating whether or not to perform temporal-axis bidirectional prediction indicates not to perform temporal-axis bidirectional prediction, the decoding apparatus 200 may perform bidirectional prediction (general) instead of time-base bidirectional prediction.
도 11은 일 실시예에 따라서 현재 블록에 대한 좌상단 CP의 x축 그래디언트(gradient)를 도출하는 과정을 설명하기 위한 도면이다.FIG. 11 is a diagram for explaining a process of deriving an x-axis gradient of a left top CP for a current block according to an embodiment.
일 실시예에서, 도 10에서 전술된 로컬리 스테디 모션이 적용되는 윈도우 Ω (1120)의 크기가 5x5((2M+1)x(2M+1), M=2)인 경우, 8x8 사이즈의 현재 블록(1100)에 대한 좌상단 CP(1130)의 x축 그래디언트 Gx(i, j)를 구하는 과정은 도 11과 같을 수 있다. 좌상단 CP(1130)의 좌표 (i, j)의 주변 좌표 (i', j')(여기서, i-M ≤ i'≤ i+M, j-M ≤ j' ≤ j+M, M=2) 범위에 5x5 크기의 윈도우 Ω (1120)가 적용될 수 있고, 5x5 크기의 윈도우 Ω (1120)를 기반으로 좌상단 CP(1130)의 x축 그래디언트가 도출될 수 있다.In one embodiment, when the size of the window? 1120 to which the local reshaded motion described above is applied is 5x5 ((2M + 1) x (2M + 1), M = 2) The process of obtaining the x-axis gradient Gx (i, j) of the upper left CP 1130 with respect to the block 1100 may be as shown in FIG. (I, j) of the coordinates (i, j) of the upper left CP 1130 (where iM? I'? I + M, jM? J '? J + M, M = 2) The window? 1120 of the upper left CP 1130 can be applied and the x-axis gradient of the upper left CP 1130 can be derived based on the window? 1120 of the 5x5 size.
또한, 현재 블록(1100)의 좌상단 CP(1130)의 x축 방향 그래디언트를 도출하는 방법과 마찬가지 방법으로, 현재 블록(1100)의 좌하단 CP(1140), 우하단 CP(1150) 및 우상단 CP(1160)의 x축 방향 그래디언트가 도출될 수 있다. The lower left CP 1140, the lower right CP 1150 and the upper right CP 1150 of the current block 1100 in the same manner as the method of deriving the x-axis direction gradient of the upper left CP 1130 of the current block 1100, 1160 can be derived.
도 11에서, 8x8 사이즈의 현재 블록(1100)을 둘러싸는 (8+2M)x(8+2M)(이때 M=2) 사이즈의 블록은 현재 블록(1100)의 x축 그래디언트 맵(x-axis gradient map, 1110)으로 지칭될 수 있다. 도 11에서는 현재 블록의 폭 및 높이가 8이고 M이 2인 경우에 대해 도시하고 있으나 실시예는 이에 한정되지 않으며, 현재 블록의 사이즈 및 M의 크기는 다양할 수 있다.11, a block of size (8 + 2M) x (8 + 2M) (where M = 2) surrounding the current block 1100 of 8x8 size corresponds to an x-axis gradient map of the current block 1100 gradient map, 1110). 11 shows a case where the width and height of the current block are 8 and M is 2. However, the present embodiment is not limited to this, and the size of the current block and the size of M may vary.
도 12는 일 실시예에 따라서 현재 블록에 대한 4개의 CP들의 CPMV들을 기반으로 현재 블록에 대한 MVF를 도출하는 과정을 설명하기 위한 도면이다.12 is a diagram for explaining a process of deriving an MVF for a current block based on CPMVs of four CPs for a current block according to an embodiment.
도 8에 대한 설명에서 전술된 바와 같이, 현재 블록(1200)의 4개의 CP들 각각에 대한 CPMV들은 수학식 5를 기반으로 도출될 수 있다. CPMV들이 도출되면, 디코딩 장치(200)는 CPMV들은 기반으로 현재 블록(1200)에 대한 MVF를 도출할 수 있다. 이때 현재 블록(1200)에 대한 MVF는, CPMV들을 양방향 선형 보간 움직임 모델(bilinear interpolation motion model)에 적용시킴으로써 도출될 수 있다. 양방향 선형 보간 움직임 모델은, 예를 들어 아래의 수학식 15에 기반할 수 있다.8, the CPMVs for each of the four CPs of the current block 1200 may be derived based on Equation (5). Once the CPMVs are derived, the decoding device 200 may derive the MVF for the current block 1200 based on the CPMVs. The MVF for the current block 1200 may then be derived by applying the CPMVs to a bilinear interpolation motion model. The bidirectional linear interpolation motion model may be based, for example, on the following equation (15).
[수학식 15]&Quot; (15) "
Figure PCTKR2018015894-appb-I000031
Figure PCTKR2018015894-appb-I000031
수학식 15에서, x는 현재 블록(1200) 내 샘플의 x축 좌표를 나타내고, y는 현재 블록(1200) 내 샘플의 y축 좌표를 나타내고,
Figure PCTKR2018015894-appb-I000032
는 현재 블록(1200)에 대한 MVF를 나타내고,
Figure PCTKR2018015894-appb-I000033
는 CPMV들을 나타내고, W는 현재 블록(1200)의 폭(width)을 나타내고, H는 현재 블록(1200)의 높이(height)를 나타내며,
Figure PCTKR2018015894-appb-I000034
는 가중 팩터(weighting factor)를 나타낼 수 있다.
In Equation (15), x represents the x-axis coordinate of the sample in the current block 1200, y represents the y-axis coordinate of the sample in the current block 1200,
Figure PCTKR2018015894-appb-I000032
Represents the MVF for the current block 1200,
Figure PCTKR2018015894-appb-I000033
Where W represents the width of the current block 1200, H represents the height of the current block 1200,
Figure PCTKR2018015894-appb-I000034
May represent a weighting factor.
일 실시예에 따른 디코딩 장치(200)는 수학식 15를 기반으로 도출한 현재 블록(1200)에 대한 MVF를 이용하여 현재 블록(1200)에 대한 예측을 수행할 수 있다. 현재 블록(1200)에 대한 MVF는 현재 블록(1200) 내에서 서브 블록 단위 또는 샘플 단위로 도출될 수 있고, 서브 블록 단위는 예를 들어 4x4 블록 단위 또는 NxN 블록 단위일 수 있다. 현재 블록(1200)에 대한 MVF의 단위에 대하여는 아래의 도 13에서 보다 구체적으로 설명하기로 한다. The decoding apparatus 200 according to an exemplary embodiment may perform prediction on the current block 1200 using the MVF for the current block 1200 derived based on Equation (15). The MVF for the current block 1200 may be derived in units of subblocks or samples in the current block 1200, and the subblock unit may be, for example, a 4x4 block unit or an NxN block unit. The MVF unit for the current block 1200 will be described in more detail with reference to FIG. 13 below.
도 13은 일 실시예에 따라서 현재 블록에 대한 MVF가 도출되는 일 예시를 도시하는 도면이다. 13 is a diagram illustrating an example in which an MVF for a current block is derived according to an embodiment.
일 실시예에서, 현재 블록(1200)에 대한 MVF는 현재 블록(1200) 내의 각 샘플 단위로 도출될 수 있다. In one embodiment, the MVF for the current block 1200 may be derived for each sample unit in the current block 1200.
다른 일 실시예에서, 현재 블록(1200)에 대한 MVF는 현재 블록(1200) 내의 4x4 서브 블록 단위로 도출될 수 있다. 일 예시에서, 4x4 서브 블록 단위로 도출된 움직임 벡터는 각 4x4 서브 블록의 중앙 위치의 샘플 또는 중앙 위치에 가장 근접한 샘플에 대한 것일 수 있다. 다만 예시는 이에 한정되지 않으며, 예를 들어 4x4 서브 블록 단위로 도출된 움직임 벡터는 각 4x4 서브 블록의 좌상단, 좌하단, 우상단, 우하단 등 임의의 위치의 샘플에 대한 것일 수도 있다. In another embodiment, the MVF for the current block 1200 may be derived on a 4x4 sub-block basis in the current block 1200. [ In one example, a motion vector derived on a 4x4 sub-block basis may be for a sample in the center position of each 4x4 sub-block or a sample closest to the center position. However, the present invention is not limited to this example. For example, a motion vector derived in units of 4x4 sub-blocks may be for samples at arbitrary positions such as upper left, lower left, upper right, and lower right of each 4x4 sub-block.
또 다른 일 실시예에서, 현재 블록(1200)에 대한 MVF는 현재 블록(1200)에 내의 NxN 서브 블록 단위로 도출될 수 있다. 이때 N은 현재 블록(1200)의 폭 및 높이보다 작을 수 있고, 현재 블록(1200)의 사이즈 또는 현재 블록(1200)에 대한 CP들의 CPMV들의 벡터 크기를 기반으로 결정될 수 있다. 일 예시에서, NxN 서브 블록 단위로 도출된 움직임 벡터는 각 NxN 서브 블록의 중앙 위치의 샘플 또는 중앙 위치에 가장 근접한 샘플에 대한 것일 수 있다. 다만 예시는 이에 한정되지 않으며, 예를 들어 NxN 서브 블록 단위로 도출된 움직임 벡터는 각 NxN 서브 블록의 좌상단, 좌하단, 우상단, 우하단 등 임의의 위치의 샘플에 대한 것일 수도 있다.In yet another embodiment, the MVF for the current block 1200 may be derived in units of NxN subblocks in the current block 1200. [ Where N may be less than the width and height of the current block 1200 and may be determined based on the size of the current block 1200 or the vector magnitude of the CPMVs of the CPs for the current block 1200. [ In one example, a motion vector derived on an NxN subblock basis may be for a sample in the center position of each NxN subblock or a sample closest to the center position. However, the present invention is not limited to this example. For example, a motion vector derived in units of NxN subblocks may be for samples at arbitrary positions such as upper left, lower left, upper right, and lower right of each NxN subblock.
도 14 및 도 15는 일 실시예에 따른 인코딩 장치 및 인코딩 장치의 영상 인코딩 방법을 도시하는 흐름도이다.FIGS. 14 and 15 are flowcharts showing an encoding method of an encoding apparatus and an encoding apparatus according to an embodiment.
도 15에 도시된 바와 같이, 일 실시예에 따른 인코딩 장치는 예측부(110) 및 엔트로피 인코딩부(130)를 포함할 수 있다. 도 15에 도시된 인코딩 장치는 도 14에 따른 동작들을 수행할 수 있다. 보다 구체적으로, 도 14의 S1400 내지 S1450은 인코딩 장치의 예측부(110)에 의하여 수행될 수 있고, 도 14의 S1460은 인코딩 장치의 레지듀얼 처리부(120)에 의하여 수행될 수 있고, 도 14의 S1470은 인코딩 장치의 엔트로피 인코딩부(130)에 의하여 수행될 수 있다. 더불어, S1400 내지 S1470에 따른 동작들은, 도 7 내지 도 13에서 전술된 내용들 중 일부를 기반으로 한 것이다. 따라서, 도 1 및 도 7 내지 도 13에서 전술된 내용과 중복되는 구체적인 내용은 설명을 생략하거나 간단히 하기로 한다. As shown in FIG. 15, the encoding apparatus according to an embodiment may include a predictor 110 and an entropy encoding unit 130. [0064] FIG. The encoding apparatus shown in Fig. 15 can perform the operations according to Fig. More specifically, S1400 to S1450 in Fig. 14 can be performed by the predicting unit 110 of the encoding apparatus, S1460 in Fig. 14 can be performed by the residual processing unit 120 of the encoding apparatus, S1470 may be performed by the entropy encoding unit 130 of the encoding apparatus. In addition, operations according to S1400 to S1470 are based on some of the contents described above in Figs. Therefore, the detailed description overlapping with the above-described contents in FIG. 1 and FIG. 7 to FIG. 13 will be omitted or simplified.
당해 기술 분야의 통상의 기술자는, 도 15에 도시된 인코딩 장치의 블록도는 도 1에 도시된 인코딩 장치(100)의 일부 구성을 도시하여 일 실시예에 따른 인코딩 장치의 동작을 보다 간략히 설명하기 위한 것에 불과하며, 따라서 도 1에서 전술된 내용들이 권리범위의 감축 없이 도 14 및 도 15에서도 마찬가지로 적용될 수 있음을 용이하게 이해할 수 있을 것이다.One of ordinary skill in the art will recognize that the block diagram of the encoding apparatus shown in Figure 15 illustrates some of the arrangements of the encoding apparatus 100 shown in Figure 1 to more briefly describe the operation of the encoding apparatus according to one embodiment And therefore it will be readily understood that the contents described above in Fig. 1 can be applied similarly in Figs. 14 and 15 without reducing the scope of right.
일 실시예에 따른 인코딩 장치는, 현재 블록에 대해 BIMVD를 수행하여 현재 블록의 움직임 벡터를 도출할 수 있다. 현재 블록에 대해 BIMVD를 수행하는 과정을 보다 구체화하면, 도 14에 도시된 S1400 내지 S1470과 같을 수 있다.The encoding apparatus according to an exemplary embodiment may derive a motion vector of a current block by performing BIMVD on the current block. The process of performing BIMVD on the current block may be more specific as S1400 to S1470 shown in FIG.
일 실시예에 따른 인코딩 장치는 현재 블록에 대한 MVP를 도출할 수 있다(S1400). 보다 구체적으로, 일 실시예에 따른 예측부(110)는 현재 블록에 대한 MVP를 도출할 수 있다.The encoding apparatus according to an exemplary embodiment may derive an MVP for a current block (S1400). More specifically, the prediction unit 110 according to an embodiment can derive the MVP for the current block.
일 실시예에 따른 인코딩 장치는 현재 블록의 움직임 벡터와 현재 블록에 대한 MVP 간의 차분을 나타내는 MVD를 도출할 수 있다(S1410). 보다 구체적으로, 일 실시예에 따른 예측부(110)는 현재 블록의 움직임 벡터와 현재 블록에 대한 MVP 간의 차분을 나타내는 MVD를 도출할 수 있다.An encoding apparatus according to an embodiment may derive an MVD indicating a difference between a motion vector of a current block and MVP for a current block (S1410). More specifically, the predicting unit 110 according to an embodiment can derive an MVD indicating a difference between a motion vector of a current block and MVP for a current block.
일 실시예에 따른 인코딩 장치는 현재 블록에 대한 CP들 각각과 대응되는 CPMVP들을 도출할 수 있다(S1420). 보다 구체적으로, 일 실시예에 따른 예측부(110)는 현재 블록에 대한 CP들 각각과 대응되는 CPMVP들을 도출할 수 있다. 예를 들어, 예측부(110)는 현재 블록에 대한 4개의 CP들 각각과 대응되는 4개의 CPMVP들을 시간축 양방향 예측을 기반으로 도출할 수 있다.The encoding apparatus according to an embodiment may derive CPMVPs corresponding to CPs for the current block (S1420). More specifically, the predicting unit 110 according to an embodiment may derive CPMVPs corresponding to CPs for the current block. For example, the prediction unit 110 may derive four CPMVPs corresponding to each of the four CPs for the current block based on the time base bidirectional prediction.
일 실시예에 따른 인코딩 장치는 현재 블록에 대한 MVP, MVD 및 CPMVP들을 기반으로, 현재 블록에 대한 CP들 각각과 대응되는 CPMV들을 도출할 수 있다(S1430). 보다 구체적으로, 일 실시예에 따른 예측부(110)는 현재 블록에 대한 MVP, MVD 및 CPMVP들을 기반으로, 현재 블록에 대한 CP들 각각과 대응되는 CPMV들을 도출할 수 있다. 예를 들어, 예측부(110)는 현재 블록에 대한 4개의 CP들 각각과 대응되는 4개의 CPMV들을, 현재 블록에 대한 MVP, MVD 및 CPMVP의 합을 기반으로 도출할 수 있다. The encoding apparatus may derive CPMVs corresponding to each of the CPs for the current block, based on the MVP, the MVD, and the CPMVPs for the current block (S1430). More specifically, the predicting unit 110 according to an embodiment can derive CPMVs corresponding to CPs for the current block, based on MVP, MVD, and CPMVPs for the current block. For example, the predicting unit 110 may derive four CPMVs corresponding to each of the four CPs for the current block, based on the sum of MVP, MVD, and CPMVP for the current block.
일 실시예에 따른 인코딩 장치는 CPMV들을 기반으로 현재 블록에 대한 MVF를 도출할 수 있다(S1440). 보다 구체적으로, 일 실시예에 따른 예측부(110)는 CPMV들을 기반으로 현재 블록에 대한 MVF를 도출할 수 있다. 예를 들어, 예측부(110)는 CPMV들을 양방향 선형 보간 움직임 모델에 적용함으로써 현재 블록에 대한 MVF를 도출할 수 있다.The encoding apparatus according to an exemplary embodiment may derive an MVF for a current block based on the CPMVs (S1440). More specifically, the predicting unit 110 according to an embodiment can derive MVF for a current block based on CPMVs. For example, the prediction unit 110 may derive the MVF for the current block by applying the CPMVs to the bidirectional linear interpolation motion model.
일 실시예에 따른 인코딩 장치는 현재 블록에 대한 MVF를 기반으로 현재 블록에 대한 예측 샘플들을 생성할 수 있다(S1450). 보다 구체적으로, 일 실시예에 따른 예측부(110)는 현재 블록에 대한 MVF를 기반으로 현재 블록에 대한 예측 샘플들을 생성할 수 있다.The encoding apparatus according to an exemplary embodiment may generate prediction samples for a current block based on the MVF for the current block (S1450). More specifically, the prediction unit 110 according to an embodiment may generate prediction samples for a current block based on MVF for the current block.
일 실시예에 따른 인코딩 장치는 생성된 예측 샘플들을 기반으로 현재 블록에 대한 레지듀얼 샘플들을 도출할 수 있다(S1460). 보다 구체적으로, 일 실시예에 따른 레지듀얼 예측부(120)는 생성된 예측 샘플들을 기반으로 현재 블록에 대한 레지듀얼 샘플들을 도출할 수 있다.The encoding apparatus according to an embodiment may derive residual samples for a current block based on the generated prediction samples (S1460). More specifically, the residual prediction unit 120 according to an embodiment can derive residual samples for a current block based on the generated prediction samples.
일 실시예에 따른 인코딩 장치는 도출된 MVD를 포함하는 예측 정보 및 레지듀얼 샘플들에 관한 레지듀얼 정보를 인코딩할 수 있다(S1470). 보다 구체적으로, 일 실시예에 따른 엔트로피 인코딩부(130)는 도출된 MVD를 포함하는 예측 정보 및 레지듀얼 샘플들에 관한 레지듀얼 정보를 인코딩할 수 있다. 엔트로피 인코딩부(130)는 인코딩된 정보를 비트스트림의 형태로 출력할 수 있다. 출력된 비트스트림은 도 2에 개시된 디코딩 장치(200)로 전달될 수 있다.The encoding apparatus according to an exemplary embodiment may encode prediction information including the derived MVD and residual information about residual samples (S1470). More specifically, the entropy encoding unit 130 according to an exemplary embodiment may encode prediction information including the derived MVD and residual information about residual samples. The entropy encoding unit 130 may output the encoded information in the form of a bitstream. The output bit stream may be transmitted to the decoding apparatus 200 disclosed in FIG.
도 14 및 도 15에 개시된 인코딩 장치 및 인코딩 장치의 영상 인코딩 방법에 따르면, BIMVD를 기반으로 현재 블록에 대한 MVF를 도출함으로써 영상 정보의 인코딩 효율을 증가시킬 수 있다.According to the encoding apparatus and the image encoding method of the encoding apparatus disclosed in FIGS. 14 and 15, the encoding efficiency of the image information can be increased by deriving the MVF for the current block based on BIMVD.
도 16 및 도 17은 일 실시예에 따른 디코딩 장치 및 디코딩 장치의 영상 디코딩 방법을 도시하는 흐롬도이다.16 and 17 are flowcharts showing a decoding method of an image decoding apparatus and a decoding apparatus according to an embodiment.
도 17에 도시된 바와 같이, 일 실시예에 따른 디코딩 장치는 엔트로피 디코딩부(210), 예측부(230) 및 가산부(240)를 포함할 수 있다. 도 17에 도시된 디코딩 장치는 도 16에 따른 동작들을 수행할 수 있다. 보다 구체적으로, 도 16의 S1610은 디코딩 장치의 엔트로피 디코딩부(210)에 의하여 수행될 수 있고, S1600, S1620 내지 S1650은 디코딩 장치의 예측부(230)에 의하여 수행될 수 있고, S1660은 디코딩 장치의 가산부(240)에 의하여 수행될 수 있다. 더불어, S1600 내지 S1660에 따른 동작들은, 도 7 내지 도 13에서 전술된 내용들 중 일부를 기반으로 한 것이다. 따라서, 도 2 및 도 7 내지 도 17에서 전술된 내용과 중복되는 구체적인 내용은 설명을 생략하거나 간단히 하기로 한다.As shown in FIG. 17, the decoding apparatus according to an embodiment may include an entropy decoding unit 210, a predicting unit 230, and an adding unit 240. The decoding apparatus shown in Fig. 17 can perform the operations according to Fig. 16 may be performed by the entropy decoding unit 210 of the decoding apparatus, and S1600, S1620 to S1650 may be performed by the predicting unit 230 of the decoding apparatus, and S1660 may be performed by the decoding apparatus The adder 240 of FIG. In addition, the operations according to S1600 to S1660 are based on some of the contents described above in Figs. Therefore, the detailed description overlapping with the above-described contents in FIG. 2 and FIGS. 7 to 17 will be omitted or simplified.
당해 기술 분야의 통상의 기술자는, 도 17에 도시된 디코딩 장치의 블록도는 도 2에 도시된 디코딩 장치(200)의 일부 구성을 도시하여 일 실시예에 따른 디코딩 장치의 동작을 보다 간략히 설명하기 위한 것에 불과하며, 따라서 도 2에서 전술된 내용들이 권리범위의 감축 없이 도 16 및 도 17에서도 마찬가지로 적용될 수 있음을 용이하게 이해할 수 있을 것이다. A person skilled in the art will appreciate that the block diagram of the decoding apparatus shown in FIG. 17 illustrates a portion of the configuration of the decoding apparatus 200 shown in FIG. 2 to further explain the operation of the decoding apparatus according to an embodiment And therefore it will be readily understood that the foregoing contents in Fig. 2 can be applied similarly in Figs. 16 and 17 without reducing the scope of right.
일 실시예에 따른 디코딩 장치는, 현재 블록에 대해 BIMVD를 수행하여 현재 블록의 움직임 벡터를 도출할 수 있다. 현재 블록에 대해 BIMVD를 수행하는 과정을 보다 구체화하면, 도 16에 도시된 S1600 내지 S1660과 같을 수 있다.The decoding apparatus according to an exemplary embodiment may derive a motion vector of a current block by performing BIMVD on the current block. The process of performing BIMVD on the current block may be more specifically described as S1600 to S1660 shown in Fig.
일 실시예에 따른 디코딩 장치는 현재 블록에 대한 MVP를 도출할 수 있다(S1600). 보다 구체적으로, 일 실시예에 따른 예측부(230)는 현재 블록에 대한 MVP를 도출할 수 있다.The decoding apparatus according to one embodiment may derive the MVP for the current block (S1600). More specifically, the prediction unit 230 according to an embodiment can derive the MVP for the current block.
일 실시예에 따른 디코딩 장치는 비트스트림으로부터 현재 블록의 움직임 벡터와 현재 블록에 대한 MVP간의 차분을 나타내는 MVD를 획득할 수 있다(S1610). 보다 구체적으로, 일 실시예에 따른 엔트로피 디코딩부(210)는 비트스트림으로부터 현재 블록의 움직임 벡터와 현재 블록에 대한 MVP간의 차분을 나타내는 MVD를 획득할 수 있다.The decoding apparatus according to an exemplary embodiment may obtain MVD indicating a difference between a motion vector of a current block and MVP for a current block from a bitstream (S1610). More specifically, the entropy decoding unit 210 according to an exemplary embodiment may obtain MVD representing the difference between the motion vector of the current block and the MVP for the current block from the bitstream.
일 실시예에 따른 디코딩 장치는 현재 블록에 대한 CP들 각각과 대응되는 CPMVP들을 도출할 수 있다(S1620). 보다 구체적으로, 일 실시예에 따른 예측부(230)는 현재 블록에 대한 CP들 각각과 대응되는 CPMVP들을 도출할 수 있다. 예를 들어, 예측부(230)는 현재 블록에 대한 4개의 CP들 각각과 대응되는 4개의 CPMVP들을 시간축 양방향 예측을 기반으로 도출할 수 있다.The decoding apparatus according to an embodiment may derive the CPMVPs corresponding to each of the CPs for the current block (S1620). More specifically, the predicting unit 230 according to an embodiment can derive CPMVPs corresponding to CPs for the current block. For example, the prediction unit 230 may derive four CPMVPs corresponding to each of the four CPs for the current block based on the time base bidirectional prediction.
일 실시예에 따른 디코딩 장치는 현재 블록에 대한 MVP, MVD 및 CPMVP들을 기반으로, 현재 블록에 대한 CP들 각각과 대응되는 CPMV들을 도출할 수 있다(S1630). 보다 구체적으로, 일 실시예에 따른 예측부(230)는 현재 블록에 대한 MVP, MVD 및 CPMVP들을 기반으로, 현재 블록에 대한 CP들 각각과 대응되는 CPMV들을 도출할 수 있다. 예를 들어, 예측부(230)는 현재 블록에 대한 4개의 CP들 각각과 대응되는 4개의 CPMV들을, 현재 블록에 대한 MVP, MVD 및 CPMVP의 합을 기반으로 도출할 수 있다.The decoding apparatus may derive CPMVs corresponding to CPs for the current block, based on MVP, MVD, and CPMVPs for the current block (S1630). More specifically, the predicting unit 230 according to an embodiment can derive CPMVs corresponding to CPs for the current block, based on MVP, MVD, and CPMVPs for the current block. For example, the predicting unit 230 may derive four CPMVs corresponding to each of the four CPs for the current block, based on the sum of MVP, MVD, and CPMVP for the current block.
일 실시예에 따른 디코딩 장치는 CPMV들을 기반으로 현재 블록에 대한 MVF를 도출할 수 있다(S1640). 보다 구체적으로, 일 실시예에 따른 예측부(230)는 CPMV들을 기반으로 현재 블록에 대한 MVF를 도출할 수 있다. 예를 들어, 예측부(230)는 CPMV들을 양방향 선형 보간 움직임 모델에 적용함으로써 현재 블록에 대한 MVF를 도출할 수 있다.The decoding apparatus according to an exemplary embodiment may derive an MVF for a current block based on the CPMVs (S1640). More specifically, the predicting unit 230 according to an embodiment can derive the MVF for the current block based on the CPMVs. For example, the prediction unit 230 may derive the MVF for the current block by applying the CPMVs to the bidirectional linear interpolation motion model.
일 실시예에 따른 디코딩 장치는 MVF를 기반으로 현재 블록에 대한 예측 샘플들을 생성할 수 있다(S1650). 보다 구체적으로, 일 실시예에 따른 예측부(230)는 MVF를 기반으로 현재 블록에 대한 예측 샘플들을 생성할 수 있다. The decoding apparatus according to an exemplary embodiment may generate prediction samples for a current block based on MVF (S1650). More specifically, the prediction unit 230 according to an exemplary embodiment may generate prediction samples for a current block based on MVF.
일 실시예에 따른 디코딩 장치는 현재 블록에 대한 예측 샘플을 기반으로 현재 블록에 대한 복원 샘플들을 생성할 수 있다(S1660). 보다 구체적으로, 일 실시예에 따른 가산부(240)는 현재 블록에 대한 예측 샘플을 기반으로 현재 블록에 대한 복원 샘플들을 생성할 수 있다.The decoding apparatus according to an exemplary embodiment may generate restoration samples for a current block based on a prediction sample for the current block (S1660). More specifically, the adder 240 according to an embodiment may generate reconstruction samples for the current block based on the prediction samples for the current block.
도 16 및 도 17에 개시된 디코딩 장치 및 디코딩 장치의 영상 디코딩 방법에 따르면, BIMVD를 기반으로 현재 블록에 대한 MVF를 도출함으로써 영상 정보의 디코딩 효율을 증가시킬 수 있다.According to the video decoding method of the decoding apparatus and the decoding apparatus disclosed in FIGS. 16 and 17, the decoding efficiency of the video information can be increased by deriving the MVF for the current block based on BIMVD.
전술한 장치의 내부 컴포넌트들은 메모리에 저장된 연속된 수행과정들을 실행하는 프로세서들이거나, 그 외의 하드웨어로 구성된 하드웨어 컴포넌트들일 수 있다. 이 들은 장치 내/외부에 위치할 수 있다.The internal components of the above-described devices may be processors executing the sequential execution processes stored in the memory, or hardware components configured with other hardware. These can be located inside or outside the unit.
전술한 모듈들은 실시예에 따라 생략되거나, 유사/동일한 동작을 수행하는 다른 모듈에 의해 대체될 수 있다.The above-described modules may be omitted according to the embodiment, or may be replaced by other modules performing similar / same operations.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 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.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.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.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(appICation-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 include 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)

  1. 디코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,An image decoding method performed by a decoding apparatus,
    현재 블록에 대한 움직임 벡터 예측자(motion vector predictor, MVP)를 도출하는 단계;Deriving a motion vector predictor (MVP) for the current block;
    비트스트림으로부터 상기 현재 블록의 움직임 벡터(motion vector)와 상기 현재 블록에 대한 MVP간의 차분을 나타내는 움직임 벡터 차분(motion vector difference, MVD)을 획득하는 단계;Obtaining a motion vector difference (MVD) representing a difference between a motion vector of the current block and a MVP of the current block from a bitstream;
    상기 현재 블록에 대한 컨트롤 포인트(control point, CP)들 각각과 대응되는 컨트롤 포인트 움직임 벡터 예측자(control point motion vector predictor, CPMVP)들을 도출하는 단계;Deriving a control point motion vector predictor (CPMVP) corresponding to each of the control points (CP) for the current block;
    상기 현재 블록에 대한 MVP, 상기 MVD 및 상기 CPMVP들을 기반으로, 상기 현재 블록에 대한 상기 CP들 각각과 대응되는 컨트롤 포인트 움직임 벡터(control point motion vector, CPMV)들을 도출하는 단계;Deriving a control point motion vector (CPMV) corresponding to each of the CPs for the current block, based on the MVP, the MVD, and the CPMVPs for the current block;
    상기 CPMV들을 기반으로 상기 현재 블록에 대한 움직임 벡터 필드(motion vector field, MVF)를 도출하는 단계; Deriving a motion vector field (MVF) for the current block based on the CPMVs;
    상기 MVF를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 단계; 및Generating prediction samples for the current block based on the MVF; And
    상기 현재 블록에 대한 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 하는 영상 디코딩 방법.And generating reconstruction samples for the current block based on prediction samples for the current block.
  2. 제1항에 있어서,The method according to claim 1,
    상기 현재 블록에 대한 상기 CP들의 개수는 4개이고, 상기 현재 블록에 대한 상기 4개의 CP들 각각과 대응되는 상기 CPMV들은 다음의 수학식을 기반으로 도출되며,Wherein the number of CPs for the current block is 4 and the CPMVs corresponding to each of the 4 CPs for the current block are derived based on the following equation,
    Figure PCTKR2018015894-appb-I000035
    Figure PCTKR2018015894-appb-I000035
    여기서 CPMVi는 상기 4개의 CPMV들 각각을 나타내고, MVP는 상기 현재 블록에 대한 MVP를 나타내며, CPMVPi는 상기 현재 블록에 대한 4개의 CP들 각각과 대응되는 상기 CPMVP들을 나타내는 것을 특징으로 하는, 영상 디코딩 방법.Where CPMVi represents each of the four CPMVs, MVP represents MVP for the current block, and CPMVPi represents the CPMVPs corresponding to each of the four CPs for the current block. .
  3. 제2항에 있어서,3. The method of claim 2,
    상기 CPMVP들을 도출하는 단계는,Wherein deriving the CPMVPs comprises:
    상기 CPMVP들을 도출하기 위해 상기 현재 블록을 포함하는 현재 픽처의 제1 참조 픽처 및 제2 참조 픽처를 이용하는 시간축 양방향 예측(bi-prediction)을 수행할지 여부를 결정하는 단계;Determining whether to perform temporal bi-prediction using a first reference picture and a second reference picture of a current picture including the current block to derive the CPMVPs;
    상기 양방향 예측을 수행하기로 결정된 경우, 상기 4개의 CP들 각각의 x축 그래디언트(gradient), y축 그래디언트 및 시간축 그래디언트를 도출하는 단계; 및Deriving an x-axis gradient, a y-axis gradient, and a time axis gradient of each of the four CPs, if it is determined to perform the bidirectional prediction; And
    상기 도출된 4개의 CP들 각각의 x축 그래디언트, y축 그래디언트 및 시간축 그래디언트를 기반으로, 상기 4개의 CP들 각각과 대응되는 상기 CPMVP들을 도출하는 단계를 포함하되,Deriving the CPMVPs corresponding to each of the four CPs based on an x-axis gradient, a y-axis gradient, and a time axis gradient of each of the derived four CPs,
    상기 제1 참조 픽처 및 상기 제2 참조 픽처는 상기 현재 픽처를 기준으로 시간축 상으로 상호 반대 방향에 위치하는 것을 특징으로 하는, 영상 디코딩 방법.Wherein the first reference picture and the second reference picture are located in mutually opposite directions on a time axis with reference to the current picture.
  4. 제3항에 있어서,The method of claim 3,
    상기 시간축 양방향 예측을 수행할지 여부는, 상기 시간축 양방향 예측을 수행할지 여부를 나타내는 플래그 정보를 기반으로 결정되는 것을 특징으로 하는, 영상 디코딩 방법.Wherein whether to perform the time-base bidirectional prediction is determined based on flag information indicating whether to perform the time-base bidirectional prediction.
  5. 제3항에 있어서,The method of claim 3,
    상기 도출된 4개의 CP들 중 하나의 CP와 대응되는 CPMVP는 아래의 수학식을 기반으로 도출되고,CPMVP corresponding to one CP among the derived CPs is derived based on the following equation,
    Figure PCTKR2018015894-appb-I000036
    Figure PCTKR2018015894-appb-I000036
    여기서 vx는 상기 CPMVP의 x축 성분을 나타내고, vy는 상기 CPMVP의 y축 성분을 나타내고, s1 내지 s6은 아래의 수학식을 기반으로 도출되며,Where v x denotes an x-axis component of the CPMVP, v y denotes a y-axis component of the CPMVP, s 1 to s 6 are derived based on the following equation,
    Figure PCTKR2018015894-appb-I000037
    Figure PCTKR2018015894-appb-I000037
    여기서 Gx는 상기 x축 그래디언트를 나타내고, Gy는 상기 y축 그래디언트를 나타내며,
    Figure PCTKR2018015894-appb-I000038
    P는 상기 시간축 그래디언트를 나타내는 것을 특징으로 하는, 영상 디코딩 방법.
    Wherein G x denotes the x-axis gradient, G y denotes the y-axis gradient,
    Figure PCTKR2018015894-appb-I000038
    And P represents the time-base gradient.
  6. 제2항에 있어서,3. The method of claim 2,
    상기 CPMV들을 기반으로 상기 현재 블록에 대한 MVF를 도출하는 단계는,Wherein deriving the MVF for the current block based on the CPMVs comprises:
    상기 CPMV들을 양방향 선형 보간 움직임 모델(bilinear interpolation motion model)에 적용하여 상기 현재 블록에 대한 상기 MVF를 도출하는 단계를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.And applying the CPMVs to a bilinear interpolation motion model to derive the MVF for the current block.
  7. 제6항에 있어서,The method according to claim 6,
    상기 양방향 선형 보간 움직임 모델은 아래의 수학식에 기반하고,The bidirectional linear interpolation motion model is based on the following equation,
    Figure PCTKR2018015894-appb-I000039
    Figure PCTKR2018015894-appb-I000039
    여기서 x는 상기 현재 블록 내 샘플의 x축 좌표를 나타내고, y는 상기 현재 블록 내 샘플의 y축 좌표를 나타내고,
    Figure PCTKR2018015894-appb-I000040
    는 상기 현재 블록에 대한 MVF를 나타내고,
    Figure PCTKR2018015894-appb-I000041
    는 상기 CPMV들을 나타내고, W는 상기 현재 블록의 폭(width)을 나타내고, H는 상기 현재 블록의 높이(height)를 나타내며,
    Figure PCTKR2018015894-appb-I000042
    는 가중 팩터(weighting factor)를 나타내는 것을 특징으로 하는, 영상 디코딩 방법.
    Where x represents the x-axis coordinate of the sample in the current block, y represents the y-axis coordinate of the sample in the current block,
    Figure PCTKR2018015894-appb-I000040
    Represents the MVF for the current block,
    Figure PCTKR2018015894-appb-I000041
    Represents the CPMVs, W represents the width of the current block, H represents the height of the current block,
    Figure PCTKR2018015894-appb-I000042
    Gt; < / RTI > is a weighting factor.
  8. 제1항에 있어서,The method according to claim 1,
    상기 현재 블록에 대한 MVF는 상기 현재 블록 내의 서브 블록 단위의 움직임 벡터를 포함하고,Wherein the MVF for the current block includes a motion vector for each subblock in the current block,
    상기 현재 블록 내의 상기 서브 블록 단위는 4x4 블록 단위 또는 NxN 블록 단위인 것을 특징으로 하는, 영상 디코딩 방법.Wherein the sub-block units in the current block are 4x4 block units or NxN block units.
  9. 제8항에 있어서,9. The method of claim 8,
    상기 현재 블록에 대한 MVF를 도출하는 단계는, 상기 현재 블록 내에서 상기 4x4 블록 단위의 움직임 벡터를 도출하는 단계를 포함하되,Wherein deriving the MVF for the current block includes deriving a motion vector of the 4x4 block unit in the current block,
    상기 도출된 4x4 블록 단위의 움직임 벡터는 상기 4x4 블록 단위의 중앙 위치의 샘플 또는 상기 중앙 위치에 가장 근접한 샘플에 대한 것임을 특징으로 하는, 영상 디코딩 방법.Wherein the derived 4x4 block motion vector is for a sample at a center position of the 4x4 block unit or a sample closest to the center position.
  10. 제8항에 있어서,9. The method of claim 8,
    상기 현재 블록에 대한 MVF를 도출하는 단계는, 상기 현재 블록 내에서 상기 NxN 블록 단위의 움직임 벡터를 도출하는 단계를 포함하되,Wherein deriving the MVF for the current block includes deriving a motion vector for each NxN block in the current block,
    상기 N은 상기 현재 블록의 폭 및 높이보다 작고, 상기 N은 상기 현재 블록의 사이즈 또는 상기 CPMV들의 벡터 크기를 기반으로 결정되며,Wherein N is smaller than the width and height of the current block and N is determined based on a size of the current block or a vector size of the CPMVs,
    상기 도출된 NxN 블록 단위의 움직임 벡터는 상기 NxN 블록 단위의 중앙 위치의 샘플 또는 상기 중앙 위치에 가장 근접한 샘플에 대한 것임을 특징으로 하는, 영상 디코딩 방법.Wherein the derived NxN block-based motion vector is for a sample at a center position in the NxN block unit or a sample closest to the center position.
  11. 인코딩 장치에 의하여 수행되는 영상 인코딩 방법에 있어서,A video encoding method performed by an encoding apparatus,
    현재 블록에 대한 움직임 벡터 예측자(motion vector predictor, MVP)를 도출하는 단계;Deriving a motion vector predictor (MVP) for the current block;
    상기 현재 블록의 움직임 벡터(motion vector)와 상기 현재 블록에 대한 MVP간의 차분을 나타내는 움직임 벡터 차분(motion vector difference, MVD)을 도출하는 단계;Deriving a motion vector difference (MVD) representing a difference between a motion vector of the current block and MVP of the current block;
    상기 현재 블록에 대한 컨트롤 포인트(controp point, CP)들 각각과 대응되는 컨트롤 포인트 움직임 벡터 예측자(control point motion vector predictor, CPMVP)들을 도출하는 단계;Deriving a control point motion vector predictor (CPMVP) corresponding to each of the control points (CP) for the current block;
    상기 현재 블록에 대한 MVP, 상기 MVD 및 상기 CPMVP들을 기반으로, 상기 현재 블록에 대한 상기 CP들 각각과 대응되는 컨트롤 포인트 움직임 벡터(control point motion vector, CPMV)들을 도출하는 단계;Deriving a control point motion vector (CPMV) corresponding to each of the CPs for the current block, based on the MVP, the MVD, and the CPMVPs for the current block;
    상기 CPMV들을 기반으로 상기 현재 블록에 대한 움직임 벡터 필드(motion vector field, MVF)를 도출하는 단계; Deriving a motion vector field (MVF) for the current block based on the CPMVs;
    상기 현재 블록에 대한 MVF를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 단계;Generating prediction samples for the current block based on MVF for the current block;
    상기 생성된 예측 샘플들을 기반으로 상기 현재 블록에 대한 레지듀얼(residual) 샘플들을 도출하는 단계; 및Deriving residual samples for the current block based on the generated prediction samples; And
    상기 도출된 MVD를 포함하는 예측 정보 및 상기 레지듀얼 샘플들에 관한 레지듀얼 정보를 인코딩하는 단계를 포함하는 것을 특징으로 하는 영상 인코딩 방법.And encoding prediction information including the derived MVD and residual information about the residual samples.
  12. 제11항에 있어서,12. The method of claim 11,
    상기 현재 블록에 대한 상기 CP들의 개수는 4개이고, 상기 현재 블록에 대한 상기 4개의 CP들 각각과 대응되는 상기 CPMV들은 다음의 수학식을 기반으로 도출되며,Wherein the number of CPs for the current block is 4 and the CPMVs corresponding to each of the 4 CPs for the current block are derived based on the following equation,
    Figure PCTKR2018015894-appb-I000043
    Figure PCTKR2018015894-appb-I000043
    여기서 CPMVi는 상기 4개의 CPMV들 각각을 나타내고, MVP는 상기 현재 블록에 대한 MVP를 나타내며, CPMVPi는 상기 현재 블록에 대한 4개의 CP들 각각과 대응되는 상기 CPMVP들을 나타내는 것을 특징으로 하는, 영상 인코딩 방법.Wherein CPMVi represents each of the four CPMVs, MVP represents MVP for the current block, and CPMVPi represents the CPMVPs corresponding to each of the four CPs for the current block. .
  13. 제12항에 있어서,13. The method of claim 12,
    상기 CPMVP들을 도출하는 단계는,Wherein deriving the CPMVPs comprises:
    상기 CPMVP들을 도출하기 위해 상기 현재 블록을 포함하는 현재 픽처의 제1 참조 픽처 및 제2 참조 픽처를 이용하는 시간축 양방향 예측(bi-prediction)을 수행할지 여부를 결정하는 단계;Determining whether to perform temporal bi-prediction using a first reference picture and a second reference picture of a current picture including the current block to derive the CPMVPs;
    상기 시간축 양방향 예측을 수행하기로 결정된 경우, 상기 4개의 CP들 각각의 x축 그래디언트(gradient), y축 그래디언트 및 시간축 그래디언트를 도출하는 단계; 및Deriving an x-axis gradient, a y-axis gradient, and a time axis gradient of each of the four CPs, if it is determined to perform the temporal bi-directional prediction; And
    상기 도출된 4개의 CP들 각각의 x축 그래디언트, y축 그래디언트 및 시간축 그래디언트를 기반으로, 상기 4개의 CP들 각각과 대응되는 상기 CPMVP들을 도출하는 단계를 포함하되,Deriving the CPMVPs corresponding to each of the four CPs based on an x-axis gradient, a y-axis gradient, and a time axis gradient of each of the derived four CPs,
    상기 제1 참조 픽처 및 상기 제2 참조 픽처는 상기 현재 픽처를 기준으로 시간축 상으로 상호 반대 방향에 위치하고,Wherein the first reference picture and the second reference picture are located in mutually opposite directions on a time axis with reference to the current picture,
    상기 도출된 4개의 CP들 중 하나의 CP와 대응되는 CPMVP는 아래의 수학식을 기반으로 도출되고,CPMVP corresponding to one CP among the derived CPs is derived based on the following equation,
    Figure PCTKR2018015894-appb-I000044
    Figure PCTKR2018015894-appb-I000044
    여기서 vx는 상기 CPMVP의 x축 성분을 나타내고, vy는 상기 CPMVP의 y축 성분을 나타내고, s1 내지 s6은 아래의 수학식을 기반으로 도출되며,Where v x denotes an x-axis component of the CPMVP, v y denotes a y-axis component of the CPMVP, s 1 to s 6 are derived based on the following equation,
    Figure PCTKR2018015894-appb-I000045
    Figure PCTKR2018015894-appb-I000045
    여기서 Gx는 상기 x축 그래디언트를 나타내고, Gy는 상기 y축 그래디언트를 나타내며,
    Figure PCTKR2018015894-appb-I000046
    P는 상기 시간축 그래디언트를 나타내는 것을 특징으로 하는, 영상 인코딩 방법.
    Wherein G x denotes the x-axis gradient, G y denotes the y-axis gradient,
    Figure PCTKR2018015894-appb-I000046
    And P represents the time base gradient.
  14. 제12항에 있어서,13. The method of claim 12,
    상기 CPMV들을 기반으로 상기 현재 블록 내에서 상기 서브 블록 단위 또는 상기 샘플 단위의 움직임 벡터를 도출하는 단계는,Wherein deriving the motion vector of the sub-block unit or the sample unit in the current block based on the CPMVs comprises:
    상기 CPMV들을 양방향 선형 보간 움직임 모델(bilinear interpolation motion model)에 적용하여 상기 현재 블록 내에서 상기 서브 블록 단위 또는 상기 샘플 단위의 움직임 벡터를 도출하는 단계를 포함하고,Applying the CPMVs to a bilinear interpolation motion model to derive a motion vector of the subblock unit or the sample unit in the current block,
    상기 양방향 선형 보간 움직임 모델은 아래의 수학식에 기반하고,The bidirectional linear interpolation motion model is based on the following equation,
    Figure PCTKR2018015894-appb-I000047
    Figure PCTKR2018015894-appb-I000047
    여기서 x는 상기 현재 블록 내 샘플의 x축 좌표를 나타내고, y는 상기 현재 블록 내 샘플의 y축 좌표를 나타내고,
    Figure PCTKR2018015894-appb-I000048
    는 상기 현재 블록 내의 상기 서브 블록 단위 또는 상기 샘플 단위 움직임 벡터를 나타내고,
    Figure PCTKR2018015894-appb-I000049
    는 상기 CPMV들을 나타내고, W는 상기 현재 블록의 폭(width)을 나타내고, H는 상기 현재 블록의 높이(height)를 나타내며,
    Figure PCTKR2018015894-appb-I000050
    는 가중 팩터(weighting factor)를 나타내는 것을 특징으로 하는, 영상 인코딩 방법.
    Where x represents the x-axis coordinate of the sample in the current block, y represents the y-axis coordinate of the sample in the current block,
    Figure PCTKR2018015894-appb-I000048
    Represents the sub-block unit or the sample unit motion vector in the current block,
    Figure PCTKR2018015894-appb-I000049
    Represents the CPMVs, W represents the width of the current block, H represents the height of the current block,
    Figure PCTKR2018015894-appb-I000050
    Is a weighting factor. ≪ Desc / Clms Page number 20 >
  15. 영상 디코딩을 수행하는 디코딩 장치에 있어서,A decoding apparatus for performing image decoding,
    비트스트림으로부터 상기 현재 블록의 움직임 벡터(motion vector)와 상기 현재 블록에 대한 움직임 벡터 예측자(motion vector predictor, MVP)간의 차분을 나타내는 움직임 벡터 차분(motion vector difference, MVD)을 획득하는 엔트로피 디코딩부;An entropy decoding unit for obtaining a motion vector difference (MVD) representing a difference between a motion vector of the current block and a motion vector predictor (MVP) for the current block from a bitstream, ;
    상기 MVP를 도출하고, 상기 현재 블록에 대한 컨트롤 포인트(controp point, CP)들 각각과 대응되는 컨트롤 포인트 움직임 벡터 예측자(control point motion vector predictor, CPMVP)들을 도출하고, 상기 현재 블록에 대한 MVP, 상기 MVD 및 상기 CPMVP들을 기반으로, 상기 현재 블록에 대한 상기 CP들 각각과 대응되는 컨트롤 포인트 움직임 벡터(control point motion vector, CPMV)들을 도출하고, 상기 CPMV들을 기반으로 상기 현재 블록에 대한 움직임 벡터 필드(motion vector field, MVF)를 도출하고, 상기 현재 블록에 대한 MVF를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 예측부; 및Deriving the MVP, deriving a control point motion vector predictor (CPMVP) corresponding to each control point (CP) for the current block, and calculating MVP, A control point motion vector (CPMV) corresponding to each of the CPs for the current block is derived based on the MVD and the CPMVPs, a motion vector field for the current block a prediction unit for deriving a motion vector field (MVF) and generating prediction samples for the current block based on the MVF for the current block; And
    상기 현재 블록에 대한 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 가산부를 포함하는 것을 특징으로 하는 영상 디코딩 장치.And an adder for generating reconstruction samples for the current block based on prediction samples of the current block.
PCT/KR2018/015894 2017-12-14 2018-12-14 Image coding method based on deriving motion vector, and device therefor WO2019117659A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201762598987P 2017-12-14 2017-12-14
US62/598,987 2017-12-14

Publications (1)

Publication Number Publication Date
WO2019117659A1 true WO2019117659A1 (en) 2019-06-20

Family

ID=66819319

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2018/015894 WO2019117659A1 (en) 2017-12-14 2018-12-14 Image coding method based on deriving motion vector, and device therefor

Country Status (1)

Country Link
WO (1) WO2019117659A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114503558A (en) * 2019-09-30 2022-05-13 华为技术有限公司 Adaptive use of interpolation filters in affine motion compensation
CN115349257A (en) * 2019-09-30 2022-11-15 华为技术有限公司 Use of DCT-based interpolation filters

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140113855A (en) * 2013-03-15 2014-09-25 삼성전자주식회사 Method of stabilizing video image, post-processing device and video encoder including the same
US20170195685A1 (en) * 2014-10-27 2017-07-06 Huawei Technologies Co., Ltd. Picture prediction method and related apparatus
US20170198041A1 (en) * 2014-01-31 2017-07-13 Novartis Ag Antibody molecules to tim-3 and uses thereof
KR20170125086A (en) * 2015-03-10 2017-11-13 후아웨이 테크놀러지 컴퍼니 리미티드 Image prediction method and related apparatus
US20170332095A1 (en) * 2016-05-16 2017-11-16 Qualcomm Incorporated Affine motion prediction for video coding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140113855A (en) * 2013-03-15 2014-09-25 삼성전자주식회사 Method of stabilizing video image, post-processing device and video encoder including the same
US20170198041A1 (en) * 2014-01-31 2017-07-13 Novartis Ag Antibody molecules to tim-3 and uses thereof
US20170195685A1 (en) * 2014-10-27 2017-07-06 Huawei Technologies Co., Ltd. Picture prediction method and related apparatus
KR20170125086A (en) * 2015-03-10 2017-11-13 후아웨이 테크놀러지 컴퍼니 리미티드 Image prediction method and related apparatus
US20170332095A1 (en) * 2016-05-16 2017-11-16 Qualcomm Incorporated Affine motion prediction for video coding

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114503558A (en) * 2019-09-30 2022-05-13 华为技术有限公司 Adaptive use of interpolation filters in affine motion compensation
CN115349257A (en) * 2019-09-30 2022-11-15 华为技术有限公司 Use of DCT-based interpolation filters
CN114503558B (en) * 2019-09-30 2023-10-20 华为技术有限公司 Adaptive use of interpolation filters in affine motion compensation
CN115349257B (en) * 2019-09-30 2024-04-09 华为技术有限公司 Use of DCT-based interpolation filters

Similar Documents

Publication Publication Date Title
WO2017188566A1 (en) Inter-prediction method and apparatus in image coding system
WO2019190211A1 (en) Video signal processing method and device using motion compensation
WO2018105757A1 (en) Method and device for decoding image in image coding system
WO2017052081A1 (en) Inter prediction method and apparatus in image coding system
WO2017065357A1 (en) Filtering method and apparatus for improving prediction in image coding system
WO2017164441A1 (en) Method and apparatus for inter prediction in video coding system
WO2017039256A1 (en) Method and device for processing video signal
WO2019117640A1 (en) Method and device for image decoding according to inter-prediction in image coding system
WO2018236031A1 (en) Intra-prediction mode-based image processing method and apparatus therefor
WO2019117634A1 (en) Image coding method on basis of secondary transform and device therefor
WO2013032073A1 (en) Method for generating prediction block in amvp mode
WO2017082443A1 (en) Method and apparatus for adaptively predicting image using threshold value in image coding system
WO2017065509A2 (en) Image decoding method and apparatus in image coding system
WO2017048008A1 (en) Inter-prediction method and apparatus in video coding system
WO2016085231A1 (en) Video signal processing method and device
WO2018056709A1 (en) Inter-prediction method and device in image coding system
WO2018021585A1 (en) Method and apparatus for intra-prediction in image coding system
WO2021137597A1 (en) Image decoding method and device using dpb parameter for ols
WO2016122253A1 (en) Method and apparatus for processing video signals
WO2020009427A1 (en) Method and apparatus for rearranging template-based candidate list in inter prediction of image coding system
WO2017195914A1 (en) Inter prediction method and apparatus in video coding system
WO2020141831A2 (en) Image coding method and apparatus using intra block copy prediction
WO2019013363A1 (en) Method and apparatus for reducing noise in frequency-domain in image coding system
WO2017195917A1 (en) Intra prediction method and apparatus in video coding system
WO2019117659A1 (en) Image coding method based on deriving motion vector, and device therefor

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

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

Country of ref document: EP

Kind code of ref document: A1