WO2020017841A1 - 머지 모드에 기반하여 인터 예측을 수행하는 방법 및 장치 - Google Patents

머지 모드에 기반하여 인터 예측을 수행하는 방법 및 장치 Download PDF

Info

Publication number
WO2020017841A1
WO2020017841A1 PCT/KR2019/008693 KR2019008693W WO2020017841A1 WO 2020017841 A1 WO2020017841 A1 WO 2020017841A1 KR 2019008693 W KR2019008693 W KR 2019008693W WO 2020017841 A1 WO2020017841 A1 WO 2020017841A1
Authority
WO
WIPO (PCT)
Prior art keywords
refinement
motion vector
merge
offset
block
Prior art date
Application number
PCT/KR2019/008693
Other languages
English (en)
French (fr)
Inventor
박내리
남정학
장형문
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Publication of WO2020017841A1 publication Critical patent/WO2020017841A1/ko

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/109Selection of coding mode or of prediction mode among a plurality of temporal predictive coding modes
    • 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/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
    • 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 a still image or video encoding / decoding method, and more particularly, to a method and an apparatus for performing inter prediction based on a merge mode.
  • the demand for high resolution and high quality images such as high definition (HD) and ultra high definition (UHD) images is increasing in various fields.
  • the higher the resolution and the higher quality of the image data the more information or bit amount is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost are increased.
  • a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
  • An object of the present invention is to provide a method and apparatus for improving image coding efficiency.
  • Another object of the present invention is to provide a method and apparatus for performing inter prediction.
  • Another technical problem of the present invention is to provide a method and apparatus for performing inter prediction based on a merge mode.
  • Another technical problem of the present invention is to provide a method and apparatus for deriving a refined motion vector based on a motion vector and a signaled refinement offset of a neighbor merge candidate block when a merge mode is applied to a current block.
  • a picture decoding method performed by a decoding apparatus.
  • the method selects a neighbor merge candidate block of one of neighboring merge candidate blocks of the current block based on a merge index.
  • Deriving when refinement is performed on the derived motion vector of the neighbor merge candidate block, based on the information about the motion vector and refinement offset of the derived neighbor merge candidate block Deriving a refined motion vector of the derived neighbor merge candidate block, deriving predictive samples for the current block based on the refined motion vector, and applying the predicted samples to the current block based on the predicted samples. Generating reconstructed samples for the data.
  • a decoding device for performing picture decoding.
  • the decoding apparatus derives a neighbor merge candidate block of one of the neighbor merge candidate blocks of the current block based on a merge index, and decodes the motion vector of the derived neighbor merge candidate block.
  • a refined motion vector of the derived neighbor merge candidate block is derived based on the information on the motion vector and refinement offset of the derived neighbor merge candidate block, and based on the refine motion vector.
  • a picture encoding method by an encoding device may include deriving a neighbor merge candidate block of one of neighbor merge candidate blocks of the current block when refinement mode is applied to the current block, and performing refinement on the derived motion vector of the neighbor merge candidate block.
  • the refinement flag information and the Characterized in that it comprises the step of encoding the merge mode related information includes at least one of information about fine garment offset.
  • an encoding apparatus for performing picture encoding.
  • the encoding apparatus derives a neighbor merge candidate block of one of the neighbor merge candidate blocks of the current block, and refines the motion vector of the derived neighbor merge candidate block.
  • a refined motion vector of the derived neighbor merge candidate block is derived based on the motion vector, merge flag information indicating whether the merge mode is applied to the current block, and a merge index indicating the derived neighbor merge candidate block.
  • it comprises the garment offset entropy encoding for encoding the remaining mode related information includes at least one of information about the call characterized.
  • the overall video / video compression efficiency can be improved.
  • inter prediction can be efficiently performed.
  • inter prediction may be efficiently performed based on a merge mode.
  • decoder complexity can be improved based on DMVR.
  • the memory usage can be reduced when the DMVR is applied in the merge mode.
  • a method and apparatus for deriving a refined motion vector based on a motion vector and a signaled refinement offset of a neighbor merge candidate block in a merge mode there is provided a method and apparatus for deriving a refined motion vector based on a motion vector and a signaled refinement offset of a neighbor merge candidate block in a merge mode.
  • FIG. 1 is a diagram schematically illustrating a configuration of an encoding apparatus according to an embodiment.
  • FIG. 2 is a diagram schematically illustrating a configuration of a decoding apparatus according to an embodiment.
  • FIG. 3 is a diagram for explaining an example of a process of performing a DMVR in bidirectional prediction.
  • FIG. 4 is a diagram for explaining another example of a process of performing a DMVR in bidirectional prediction.
  • FIG. 5 is a diagram for describing an example of refinement offset in each direction in bidirectional prediction.
  • FIG. 6 is a diagram illustrating examples of blocks checked when deriving a neighboring block to which bidirectional prediction is applied.
  • FIGS. 7A and 7B are diagrams illustrating examples in which a refinement offset index for a refinement offset is determined based on the shape of a block.
  • FIG. 8 is a flowchart illustrating an operation of an encoding apparatus according to an embodiment.
  • FIG. 9 is a block diagram illustrating a configuration of an encoding apparatus according to an embodiment.
  • FIG. 10 is a flowchart illustrating an operation of a decoding apparatus according to an embodiment.
  • FIG. 11 is a block diagram illustrating a configuration of a decoding apparatus according to an embodiment.
  • FIG. 12 is a diagram illustrating a structure of a content streaming system according to an embodiment.
  • a picture decoding method performed by a decoding apparatus.
  • the method selects a neighbor merge candidate block of one of neighboring merge candidate blocks of the current block based on a merge index.
  • Deriving when refinement is performed on the derived motion vector of the neighbor merge candidate block, based on the information about the motion vector and refinement offset of the derived neighbor merge candidate block Deriving a refined motion vector of the derived neighbor merge candidate block, deriving predictive samples for the current block based on the refined motion vector, and applying the predicted samples to the current block based on the predicted samples. Generating reconstructed samples for the data.
  • each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented in separate hardware or separate software.
  • two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations.
  • Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.
  • the methods / embodiments disclosed in this document may include a versatile video coding (VVC) standard, an essential video coding (EVC) standard, an AOMedia Video 1 (AV1) standard, a second generation of audio video coding standard (AVS2), or next-generation video / It can be applied to the method disclosed in the image coding standard (ex. H.267, H.268, etc.).
  • VVC versatile video coding
  • EVC essential video coding
  • AV1 AOMedia Video 1
  • AVS2 second generation of audio video coding standard
  • next-generation video / It can be applied to the method disclosed in the image coding standard (ex. H.267, H.268, etc.).
  • a video may mean a set of a series of images over time.
  • a picture generally refers to a unit representing one image in a specific time zone, and a slice is a unit constituting part of a picture in coding.
  • One picture may be composed of a plurality of slices, and if necessary, the picture and the slice may be used interchangeably.
  • a pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel.
  • a sample may generally represent a pixel or a value of a pixel, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.
  • a unit represents the basic unit of image processing.
  • the unit may include at least one of a specific region of the picture and information related to the region.
  • the unit may be used interchangeably with terms such as block or area in some cases.
  • an M ⁇ N block may represent a set of samples or transform coefficients composed of M columns and N rows.
  • the encoding / decoding apparatus may include a video encoding / decoding apparatus and / or an image encoding / decoding apparatus, and the video encoding / decoding apparatus is used as a concept including the image encoding / decoding apparatus, or the image encoding / decoding apparatus is used. It may be used in a concept including a video encoding / decoding device.
  • the (video) encoding apparatus 100 may include a picture partitioning module 105, a prediction module 110, a residual processing module 120, and an entropy encoding unit (
  • the entropy encoding module 130 may include an adder 140, a filtering module 150, and a memory 160.
  • the residual processor 120 may include a substractor 121, a transform module 122, a quantization module 123, a rearrangement module 124, and a dequantization module 125. ) And an inverse transform module 126.
  • the picture dividing unit 105 may divide the input picture into at least one processing unit.
  • the processing unit may be called a coding unit (CU).
  • the coding unit may be recursively split from the largest coding unit (LCU) according to a quad-tree binary-tree (QTBT) structure.
  • QTBT quad-tree binary-tree
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure, a binary tree structure, and / or a ternary tree structure.
  • the quad tree structure may be applied first, and the binary tree structure and the ternary tree structure may be applied later.
  • the binary tree structure / tunary tree structure may be applied first.
  • the coding procedure according to the present invention may be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
  • a coding unit of size may be used as the final coding unit.
  • the coding procedure may include a procedure of prediction, transform, and reconstruction, which will be described later.
  • the processing unit may include a coding unit (CU) prediction unit (PU) or a transform unit (TU).
  • the coding unit may be split from the largest coding unit (LCU) into coding units of a deeper depth along the quad tree structure.
  • LCU largest coding unit
  • the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
  • a coding unit of size may be used as the final coding unit. If a smallest coding unit (SCU) is set, the coding unit cannot be split into smaller coding units than the minimum coding unit.
  • the final coding unit refers to a coding unit that is a base partitioned or partitioned into a prediction unit or a transform unit.
  • the prediction unit is a unit partitioning from the coding unit and may be a unit of sample prediction. In this case, the prediction unit may be divided into sub blocks.
  • the transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
  • a coding unit may be called a coding block (CB)
  • a prediction unit is a prediction block (PB)
  • a transform unit may be called a transform block (TB).
  • the prediction block or prediction unit may mean a specific area in the form of a block within a picture, and may include an array of prediction samples.
  • a transform block or a transform unit may mean a specific area in a block form within a picture, and may include an array of transform coefficients or residual samples.
  • the prediction unit 110 performs prediction on a block to be processed (hereinafter, may mean a current block or a residual block) and generates a predicted block including prediction samples for the current block. can do.
  • the unit of prediction performed by the prediction unit 110 may be a coding block, may be a transform block, or may be 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 on a CU basis.
  • the prediction unit 110 may derive a prediction sample for the current block based on reference samples outside the current block in a picture to which the current block belongs (hereinafter, referred to as the current picture). In this case, the prediction unit 110 may (i) derive the prediction sample based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighbor reference of the current block.
  • the prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample among the samples. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode.
  • the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes.
  • the non-directional mode may include a DC prediction mode and a planner mode (Planar mode).
  • the prediction unit 110 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the prediction unit 110 may derive the prediction sample for the current block based on the sample specified by the motion vector on the reference picture.
  • the prediction unit 110 may apply any one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode to derive a prediction sample for the current block.
  • the prediction unit 110 may use the motion information of the neighboring block as the motion information of the current block.
  • the skip mode unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted.
  • the MVP mode the motion vector of the current block can be derived using the motion vector of the neighboring block as a motion vector predictor.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • a reference picture including the temporal neighboring block may be called a collocated picture (colPic).
  • the motion information may include a motion vector and a reference picture index.
  • Information such as prediction mode information and motion information may be encoded (entropy) and output in the form of a bitstream.
  • the highest picture on the reference picture list may be used as the reference picture.
  • Reference pictures included in a reference picture list may be sorted based on a difference in a picture order count (POC) between a current picture and a corresponding reference picture.
  • POC picture order count
  • the subtraction unit 121 generates a residual sample which is a difference between the original sample and the prediction sample.
  • residual samples may not be generated as described above.
  • the transformer 122 generates a transform coefficient by transforming the residual sample in units of transform blocks.
  • the transform unit 122 may perform the transform according to the size of the transform block and the prediction mode applied to the coding block or the prediction block that spatially overlaps the transform block. For example, if intra prediction is applied to the coding block or the prediction block that overlaps the transform block, and the transform block is a 4 ⁇ 4 residual array, the residual sample is configured to use a discrete sine transform (DST) transform kernel.
  • DST discrete sine transform
  • the residual sample may be transformed using a discrete cosine transform (DCT) transform kernel.
  • the quantization unit 123 may quantize the transform coefficients to generate quantized transform coefficients.
  • the reordering unit 124 rearranges the quantized transform coefficients.
  • the reordering unit 124 may reorder the quantized transform coefficients in the form of a block into a one-dimensional vector through a coefficient scanning method. Although the reordering unit 124 has been described in a separate configuration, the reordering unit 124 may be part of the quantization unit 123.
  • the entropy encoding unit 130 may perform entropy encoding on the quantized transform coefficients.
  • Entropy encoding may include, for example, encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like.
  • the entropy encoding unit 130 may encode information necessary for video reconstruction other than the quantized transform coefficients (for example, a value of a syntax element) together or separately according to entropy encoding or a predetermined method.
  • the encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
  • the bitstream may be transmitted over a network or may be 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, SSD, and the like.
  • the inverse quantization unit 125 inverse quantizes the quantized values (quantized transform coefficients) in the quantization unit 123, and the inverse transformer 126 inverse transforms the inverse quantized values in the inverse quantization unit 125 to generate a residual sample.
  • the adder 140 reconstructs the picture by combining the residual sample and the predictive sample.
  • the residual sample and the predictive sample may be added in units of blocks to generate a reconstructed block.
  • the adder 140 may be part of the predictor 110.
  • the adder 140 may also be called a reconstruction module or a restore block generator.
  • the filter unit 150 may apply a deblocking filter and / or a sample adaptive offset to the reconstructed picture. Through deblocking filtering and / or sample adaptive offset, artifacts at the block boundary within the reconstructed picture or distortion in the quantization process can be corrected.
  • the sample adaptive offset may be applied on a sample basis and may be applied after the process of deblocking filtering is completed.
  • the filter unit 150 may apply an adaptive loop filter (ALF) to the reconstructed picture. ALF may be applied to the reconstructed picture after the deblocking filter and / or sample adaptive offset is applied.
  • ALF adaptive loop filter
  • the memory 160 may store reconstructed pictures (decoded pictures) or information necessary for encoding / decoding.
  • the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 150.
  • the stored reconstructed picture may be used as a reference picture for (inter) prediction of another picture.
  • the memory 160 may store (reference) pictures used for inter prediction.
  • pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
  • FIG. 2 is a diagram schematically illustrating a configuration of a video / video decoding apparatus to which the present invention can be applied.
  • the video decoding apparatus may include an image decoding apparatus.
  • the video decoding apparatus 200 may include an entropy decoding module 210, a residual processing module 220, a prediction module 230, and an adder 240. ), A filtering module 250, and a memory 260.
  • the residual processor 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 that receives a bitstream including video information. The receiver may be configured as a separate module or may be included in the entropy decoding unit 210.
  • the video decoding apparatus 200 may reconstruct a video / image / picture in response to a process in which video / image information is processed in the video encoding apparatus.
  • the video decoding apparatus 200 may perform video decoding using a processing unit applied in the video encoding apparatus.
  • the processing unit block of video decoding may be, for example, a coding unit, and in another example, may be a coding unit, a prediction unit, or a transform unit.
  • the coding unit may be split along the quad tree structure, binary tree structure and / or ternary tree structure from the largest coding unit.
  • the prediction unit and the transform unit may be further used in some cases, in which case the prediction block is a block derived or partitioned from the coding unit and may be a unit of sample prediction. At this time, the prediction unit may be divided into sub blocks.
  • the transform unit may be split along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient or a unit for deriving a residual signal from the transform coefficient.
  • the entropy decoding unit 210 may parse the bitstream and output information necessary for video reconstruction or picture reconstruction. For example, the entropy decoding unit 210 decodes information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for video reconstruction, and transform coefficients for residuals. Can be output.
  • a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for video reconstruction, and transform coefficients for residuals. Can be output.
  • the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step.
  • the context model is determined using the context model, the probability of occurrence of a bin is predicted according to the determined context model, and arithmetic decoding of the bin is performed to generate a symbol corresponding to the value of each syntax element. can do.
  • the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model.
  • the information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the prediction unit 230, and the residual value on which the entropy decoding has been performed by the entropy decoding unit 210, that is, the quantized transform coefficient, is used as a reordering unit ( 221 may be input.
  • the reordering unit 221 may rearrange the quantized transform coefficients in the form of a two-dimensional block.
  • the reordering unit 221 may perform reordering in response to coefficient scanning performed by the encoding apparatus. Although the rearrangement unit 221 has been described in a separate configuration, the rearrangement unit 221 may be part of the inverse quantization unit 222.
  • the inverse quantization unit 222 may dequantize the quantized transform coefficients based on the (inverse) quantization parameter and output the transform coefficients.
  • information for deriving a quantization parameter may be signaled from the encoding apparatus.
  • the inverse transform unit 223 may inversely transform transform coefficients to derive residual samples.
  • the prediction unit 230 may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the unit of prediction performed by the prediction unit 230 may be a coding block, a transform block, or a prediction block.
  • the prediction unit 230 may determine whether to apply intra prediction or inter prediction based on the information about the prediction.
  • a unit for determining which of intra prediction and inter prediction is to be applied and a unit for generating a prediction sample may be different.
  • the unit for generating a prediction sample in inter prediction and intra prediction may also be different.
  • whether to apply inter prediction or intra prediction may be determined in units of CUs.
  • a prediction mode may be determined and a prediction sample may be generated in PU units
  • intra prediction a prediction mode may be determined in PU units and a prediction sample may be generated in TU units.
  • the prediction unit 230 may derive the prediction sample for the current block based on the neighbor reference samples in the current picture.
  • the prediction unit 230 may derive the prediction sample for the current block by applying the directional mode or the non-directional mode based on the neighbor reference samples of the current block.
  • the prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
  • the prediction unit 230 may derive the prediction sample for the current block based on the sample specified on the reference picture by the motion vector on the reference picture.
  • the prediction unit 230 may apply one of a skip mode, a merge mode, and an MVP mode to derive a prediction sample for the current block.
  • motion information required for inter prediction of the current block provided by the video encoding apparatus for example, information about a motion vector, a reference picture index, and the like may be obtained or derived based on the prediction information.
  • the motion information of the neighboring block may be used as the motion information of the current block.
  • the neighboring block may include a spatial neighboring block and a temporal neighboring block.
  • the predictor 230 may construct a merge candidate list using motion information of available neighboring blocks, and may use information indicated by the merge index on the merge candidate list as a motion vector of the current block.
  • the merge index may be signaled from the encoding device.
  • the motion information may include a motion vector and a reference picture. When motion information of 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 the reference picture.
  • the difference (residual) between the predicted sample and the original sample is not transmitted.
  • the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
  • the neighboring block may include a spatial neighboring block and a temporal neighboring block.
  • a merge candidate list may be generated by using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block.
  • the motion vector of the candidate block selected from the merge candidate list is used as the motion vector of the current block.
  • the information about the prediction may include a merge index indicating a candidate block having an optimal motion vector selected from candidate blocks included in the merge candidate list.
  • the prediction unit 230 may derive the motion vector of the current block by using the merge index.
  • a motion vector predictor candidate list may be generated using a motion vector corresponding to a reconstructed spatial neighboring block and / or a Col block, which is a temporal neighboring block.
  • the information about the prediction may include a prediction motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list.
  • the prediction unit 230 may select the predicted motion vector of the current block from the motion vector candidates included in the motion vector candidate list by using the motion vector index.
  • the prediction unit of the encoding apparatus may obtain a motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, and may encode the output vector in a bitstream form. That is, MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block.
  • the prediction unit 230 may obtain a motion vector difference included in the prediction information, and derive the motion vector of the current block by adding the motion vector difference and the motion vector predictor.
  • the prediction unit may also obtain or derive a reference picture index or the like indicating a reference picture from the information about the prediction.
  • the adder 240 may reconstruct the current block or the current picture by adding the residual sample and the predictive sample.
  • the adder 240 may reconstruct the current picture by adding the residual sample and the predictive sample in block units. Since the residual is not transmitted when the skip mode is applied, the prediction sample may be a reconstruction sample.
  • the adder 240 has been described in a separate configuration, the adder 240 may be part of the predictor 230.
  • the adder 240 may also be called a reconstruction module or a restore block generator.
  • the filter unit 250 may apply the deblocking filtering sample adaptive offset, and / or ALF to the reconstructed picture.
  • the sample adaptive offset may be applied in units of samples and may be applied after deblocking filtering.
  • ALF may be applied after deblocking filtering and / or sample adaptive offset.
  • the memory 260 may store reconstructed pictures (decoded pictures) or information necessary for decoding.
  • the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 250.
  • the memory 260 may store pictures used for inter prediction.
  • pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
  • the reconstructed picture can be used as a reference picture for another picture.
  • the memory 260 may output the reconstructed picture in the output order.
  • a predicted block including prediction samples for the current block which is a coding target block
  • the predicted block comprises prediction samples in the spatial domain (or pixel domain).
  • the predicted block is derived identically 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, not the original sample value itself of the original block. Signaling to an apparatus may increase image coding efficiency.
  • the decoding apparatus may derive a residual block including residual samples based on the residual information, generate the reconstructed block including reconstructed samples by adding the residual block and the predicted block, and generate reconstructed blocks. A reconstructed picture may be generated.
  • the residual information may be generated through a transform and quantization procedure.
  • the encoding apparatus derives a residual block between the original block and the predicted block, and performs transform procedure on residual samples (residual sample array) included in the residual block to derive transform coefficients.
  • the quantized transform coefficients may be derived by performing a quantization procedure on the transform coefficients, and related residual information may be signaled to the decoding apparatus (via a bitstream).
  • the residual information may include information such as value information of the quantized transform coefficients, position information, a transform scheme, a transform kernel, and a quantization parameter.
  • the decoding apparatus may perform an inverse quantization / inverse transformation procedure and derive residual samples (or residual blocks) based on the residual information.
  • the decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block.
  • the encoding apparatus may then dequantize / inverse transform the quantized transform coefficients for reference for inter prediction of the picture to derive a residual block, and generate a reconstructed picture based thereon.
  • FIG. 3 is a diagram for describing an example of a process of performing DMVR in bidirectional prediction (or bidirectional prediction and pair prediction).
  • bidirectional prediction an inter prediction that represents a reference picture in the reference picture list L0 for the current picture as a “LO reference picture” and performs based on reference pictures existing in different directions with respect to the current picture.
  • L0 reference picture may be replaced with various terms such as a first reference picture, List 0 reference picture, reference picture L0, LO picture, etc.
  • bidirectional prediction means bidirectional prediction, positive prediction, pair prediction, bi -Prediction, bi-directional prediction, etc. can be replaced by a variety of terms, such as used throughout this specification to interpret a specific term or sentence used to define a specific information or concept should not be limited to its name. Therefore, it is necessary to pay attention to and interpret various operations, functions, and effects depending on the contents of the term.
  • FIG. 3 schematically illustrates a DMVR process, which may be referred to as a DMVR based on bidirectional prediction or a DMVR based on bidirectional matching method.
  • the DMVR process shown in FIG. 3 may be used when bidirectional prediction (or bi-prediction) is applied to the current block.
  • the bi-prediction motion information may include L0 motion information (or first motion information) and L1 motion information (or second motion information).
  • the L0 motion information is an L0 reference picture index (or a first reference picture index) indicating an L0 reference picture (or a first reference picture) included in a reference picture list L0 (or a first reference picture list) for the current block.
  • an L0 motion vector also referred to as MVL0 or a first motion vector
  • the L1 motion information refers to L1 included in a reference picture list L1 (or a second reference picture list) for the current block. It may include an L1 reference picture index (or a second reference picture index) and a L1 motion vector (also referred to as an MVL1 or a second motion vector) indicating a picture (or a second reference picture).
  • the motion information including only the L0 motion information or the L1 motion information may be referred to as unidirectional motion information.
  • LO prediction when inter prediction is performed based on L0 motion information, it may be called LO prediction.
  • L1 prediction when performing inter prediction based on L1 motion information, it may be called L1 prediction.
  • bi-prediction when inter prediction is performed based on the motion information and the L1 motion information, it may be called bi-prediction.
  • an encoding device and / or a decoding device may include an L0 reference block (or a first reference block) indicated by L0 motion information included in motion information and an L1 reference block (or second reference block) indicated by L1 motion information. ) Can be derived, and a target block can be derived based on the L0 reference block and the L1 reference block.
  • the encoding apparatus and / or the decoding apparatus may derive the target block by averaging the L0 reference block and the L1 reference block. That is, the decoding apparatus may configure the target block by deriving an average between the L0 reference block and the corresponding samples of the L1 reference block as samples of the target block.
  • the target block may be referred to as a template.
  • the encoding apparatus and / or the decoding apparatus may be a refined L0 reference block (or first) having the smallest SAD with the target block among the L0 reference blocks included in the peripheral region of the L0 reference block (or the first reference block).
  • a refined L1 reference block (or a second refined reference block) having the smallest SAD with the target block among the L1 reference blocks included in the peripheral region of the L1 reference block.
  • L0 motion information also represented as refine L0 motion vector, L0 refine motion vector, L0 refinement motion vector, or first refinement motion information
  • the information (also represented as refined L1 motion vector, L1 refined motion vector, L1 refinement motion vector, or second refinement motion information) may be derived as refined motion information. That is, the refined motion information may include the refined L0 motion information and the refined L1 motion information.
  • the peripheral region of the L0 reference block may be derived based on a search range for the L0 reference picture, and the peripheral region of the L1 reference block may be derived based on the search range for the L1 reference picture.
  • the size of the search range for the L0 reference picture and the size of the search range for the L1 reference picture may be the same in 2-pixel size.
  • a search range for the L0 reference picture and a search range for the L1 reference picture represent the same search range, and the 'L0 reference picture (or the first reference picture) and the L1 reference picture (or the second reference).
  • a search range for a picture A search range for a picture).
  • the 2-pixel size which is the size of the search range described above, corresponds to an example, and the example of the size of the search range is not limited to the 2-pixel size.
  • the DMVR may be applied to motion information (ie, selected motion information) of the current block or merge candidate or MVP candidate of the current block.
  • motion information ie, selected motion information
  • a refine merge candidate or a refined MVP candidate including the refinement motion information may be derived, and the derived refine merge candidate or the refined MVP candidate may be derived from the current candidate. It may be added to the motion information candidate list (ie, the merge candidate list or the MVP candidate list) of the block.
  • FIG. 4 is a diagram for explaining another example of a process of performing a DMVR in bidirectional prediction.
  • decoder side motion vector refinement based on bilateral-matching may be applied.
  • the refined motion vector may be searched around the first motion vector that indicates the L0 reference picture or the L1 reference picture.
  • the refined L0 reference block is derived from the LO reference block such that the SAD between the refined LO reference block and the refined L1 reference block is smaller than the SAD between the L0 reference block and the L1 reference block, and the L1 reference block is derived. From the refined L1 reference block can be derived.
  • the template-free DMVR may be determined whether the SAD between the L0 reference block and the L1 reference block is smaller than a threshold in an integer sample search. If the SAD between the L0 reference block and the L1 reference block is smaller than a threshold, the integer sample search may be terminated. If the SAD between the L0 reference block and the L1 reference block is larger than a threshold, the SADs of other points are specified in a specific order. (E.g., raster scanning order) can be calculated and checked to derive the point with the minimum SAD. After the integer sample search, a fractional sample search may be performed based on a parametric error surface equation. A refined reference block may be derived based on the integer sample search and the fractional sample search.
  • FIG. 5 is a diagram for describing an example of refinement offset in each direction in bidirectional prediction.
  • a process of refining motion information such as DMVR may be added.
  • decoding complexity can be increased due to the refined vector derivation process, and a search range is required for the refined vector derivation, so an additional memory of the search range is required.
  • a signaling method for bringing refinement effect while reducing decoder complexity may be proposed.
  • Refinement flag (eg, refinement_flag) and refinement offset (eg, refinement_offset) information may be included for refinement, and Table 1 below shows an example of a syntax including refinement_flag information and refinement_offset information.
  • merge_flag If (merge_flag) ⁇ merge_index refinement_flag If (refinement_flag) refinement_offset ⁇
  • refinement_flag may be signaled when merge mode is applied to a current block (eg, CU), and indicates whether refinement is performed.
  • refinement_offset may be signaled when refinement_flag is TRUE (or the value of refinement_flag is 1).
  • refinement_offset may represent a refinement offset vector based on the motion vector of the neighboring block derived based on merge_index.
  • the motion vector of the neighboring block may correspond to a motion vector predictor (MVP), and the refinement offset vector may correspond to a motion vector difference (MVD).
  • MVP motion vector predictor
  • mmvd_cand_flag indicating merge with motion vector differences (MMVD) candidate flag information may be signaled instead of merge_index described in Table 1 above.
  • the first merge candidate or the second merge candidate of the merge candidate list may be selected based on mmvd_cand_flag.
  • the refinement_flag described in Table 1 may be replaced with sps_mmvd_enabled_flag indicating whether the MMVD is applied, and the refinement_offset may be replaced with mmvd_distance_idx and mmvd_direction_idx which are indexes indicating the size and direction of the MVD used in the MMVD.
  • some syntax elements may be replaced as in this embodiment for signaling based on MMVD.
  • a mirroring scheme may be applied to the MVD for the L0 reference picture and the MVD for the L1 reference picture.
  • a mirroring scheme may be applied to determine the MVD for the L1 reference picture as a vector having the same size and opposite direction as the MVD for the L0 reference picture.
  • refinement_offset may be defined, for example, as shown in Table 2 below. Table 2 shows an example of a refinement offset list including an index of refinement_offset, a refinement offset vector indicated by the index of refinement_offset, and a codeword.
  • an example of a refinement offset vector an example of each codeword, an order between quadwords, an encoding method, and an index number may be changed.
  • codeword 00 when codeword 00 is signaled, it can be seen that (1, 0) corresponding to refinement offset index 0 may be determined as a refinement offset vector.
  • the decoding apparatus may derive a refinement offset vector based on a codeword acquired (or decoded) from the bitstream.
  • Tables 3 to 6 show other examples of a refinement offset list including mapping relationships of refinement offset indexes, refinement offset vectors, and codewords.
  • Tables 2 to 6 merely list examples of the refinement offset list, but examples of the refinement offset list are not limited thereto.
  • the encoding device and / or the decoding device may display a refinement offset vector (also referred to as MVD) derived based on the refinement offset list. Based on the refinement of the motion vector (which may be referred to as an MVP) of the reference block in the reference picture, a refinement motion vector may be derived.
  • MVD refinement offset vector
  • the refinement offset vector derived based on the refinement offset list may be determined as the LO MVD for the L0 reference picture.
  • the L1 MVD for the L1 reference picture may be determined as -L0 MVD. That is, the L0 MVD and the L1 MVD may have the same size and opposite directions.
  • the L0 refined motion vector for the L0 reference picture is derived as L0 MVP + L0 MVD (refinement offset vector)
  • the L0 refine motion vector is an L0 motion vector.
  • the refinement offset vector is derived by adding the refinement offset vector to the L1 refinement motion vector.
  • the refinement offset vector may be derived by subtracting the refinement offset vector.
  • the L1 refined motion vector is derived by adding the refinement offset vector to the L1 motion vector.
  • the L0 refined motion vector may be derived by subtracting the refinement offset vector from the L0 motion vector.
  • the L0 refined motion vector is derived by adding the refinement offset vector to the L0 motion vector
  • the L1 refined motion vector is the L1 motion vector. Can be derived by subtracting the refinement offset vector.
  • the L0 refine motion vector is an L0 motion.
  • the refinement offset vector is added to a vector, and the L1 refinement motion vector may be derived by subtracting the scaled vector of the refinement offset vector from the L1 motion vector.
  • the scaling may be based on a distance between a current picture and the L0 reference picture and a ratio between a distance between the current picture and the L1 reference picture. That is, the L0 refined motion vector may be derived as L0 MVP + MVD (or refinement offset vector), and the L1 refined motion vector may be derived as L1 MVP-Scale MVD.
  • the refinement offset vector derived based on the refinement offset list is scaled to obtain an L0 reference picture.
  • a scaled LO MVD can be derived for.
  • the L0 refined motion vector may be derived as L0 MVP + Scaled MVD
  • the L1 refined motion vector may be derived as L1 MVP-Scaled MVD.
  • the scaling may be based on a ratio of the distance between the closest picture and the current picture among the pictures that can become the reference picture of the current picture, and the ratio of the distance between the current picture and the (real) reference picture with respect to the current picture.
  • FIG. 6 is a diagram illustrating examples of blocks checked when deriving a neighboring block to which bidirectional prediction is applied.
  • the L0 reference picture for refinement and the refinement offset of L1 may be symmetric with respect to the x and y axes, thereby increasing efficiency based on the symmetry of the pair prediction. can do.
  • the efficiency may be increased. Therefore, for example, a syntax as shown in Table 7 may be considered so that the refinement flag may be signaled in the pair prediction condition.
  • merge_flag If (merge_flag) ⁇ merge_index If (if there are N candidates to which Bi-prediction is applied among the blocks adjacent to the current block) ⁇ refinement_flag If (refinement_flag) refinement_offset ⁇ ⁇
  • refinement_flag may be transmitted when there are N or more candidates to which pair prediction is applied among spatially adjacent candidates of the current block.
  • refinement_flag may be transmitted when at least one candidate to which pair prediction is applied among spatially adjacent candidates in the current block may be transmitted, and only candidates of a specific position among adjacent candidates may be checked. For example, only a block adjacent to the left side and an upper side of the current block may be targeted, or only a block adjacent to the left side of the current block.
  • refinement_flag may be transmitted when there is one adjacent block to which pair prediction is applied when a block adjacent to the left side and a block adjacent to the current block is checked, and a neighboring block to which pair prediction is applied among adjacent blocks is applied. If there is more than one, refinement_flag may be sent. In addition, the positions of the block L adjacent to the left side of the current block and the block A adjacent to the upper side may be changed and applied as shown in FIG. 6.
  • refinement_offset may be defined such that the content of the refinement_flag is included in the refinement_offset without transmitting the refinement_flag. That is, refinement_offset may be defined as shown in Table 8 below, even when refinement is not applied.
  • the effect of joint coding the refinement_flag and refinement_offset may occur.
  • the refinement offset vector, codeword value, codeword order, index, etc. may be changed.
  • FIGS. 7A and 7B are diagrams illustrating examples in which a refinement offset index for a refinement offset is determined based on the shape of a block.
  • the methods proposed in the embodiments according to FIGS. 4 to 6 may be applied differently according to the shape of a block. That is, the reference_offset value may be changed or the order may be changed according to the shape of the block.
  • the shape of the block may mean the shape of the current block, the shape of the reference block in the L0 reference picture for the current block, or the shape of the reference block in the L1 reference picture for the current block.
  • the index of reference_offset may be determined by giving priority to the horizontal motion as shown in FIG. 7A.
  • the horizontal refinement offsets having a relatively high probability of movement movement are indexed into a first rank and a second rank, and the vertical refinement offsets having a relatively low probability of movement movement have a third index. You can see that it is indexed by rank and fourth rank.
  • the index of reference_offset may be determined by giving priority to the vertical movement.
  • the vertical refinement offsets having a relatively high probability of movement movement are indexed into a first rank and a second rank, and the horizontal refinement offsets having a relatively low probability of movement movement have a third index. You can see that it is indexed by rank and fourth rank.
  • Tables 9 and 10 below show examples of refinement offset vectors and codewords when applying the embodiments according to FIGS. 7A and 7B, respectively.
  • the priority indexes index 0 and index 1
  • the horizontal refinement offsets ((1,0), (-1,0) You can see that) is mapped.
  • the refinement offset vector, codeword value, codeword order, encoding method, number of indexes, etc. illustrated in Tables 9 and 10 may be changed.
  • refinement to reduce signaling overhead May not apply.
  • the syntax when applying this embodiment may be, for example, as shown in Table 11 below.
  • merge_flag If (merge_flag) ⁇ merge_index If (width x heigh> 64) ⁇ refinement_flag If (refinement_flag) refinement_offset (index: 0 ⁇ 3) ⁇ ⁇
  • the block when the size of the block is small (e.g., less than or equal to 8x8, the product of the width and height of the block is less than or equal to 64), the block is relatively large compared to the large size.
  • a small number of refinement offset indices can be used.
  • the syntax when applying this embodiment may be, for example, as shown in Table 12 below.
  • merge_flag If (merge_flag) ⁇ merge_index refinement_flag If (refinement_flag) refinement_offset (if wxh> 64, index: 0 ⁇ 3, else index: 0 ⁇ 1) ⁇ ⁇
  • the refinement offset list may be constructed based on relatively small refinement offset vectors.
  • the unit of the refinement offset vector may be an integer pixel unit
  • the resolution of the refinement offset may be determined according to whether the neighboring block is AMVR. For example, when reference_flag of the current block is TRUE (or the value of reference_flag is 1) and AMVR is applied to the selected candidate, the resolution of the refinement offset may vary according to the resolution of the candidate.
  • the refinement offset may be signaled in each direction to increase the accuracy of the refinement offset in the merge mode.
  • An example of syntax for directional signaling may be shown in Table 13 below.
  • bipred_flag is a pair prediction flag indicating whether pair prediction or only prediction is applied to the current block in merge mode. However, if prediction is applied, the flag is FALSE (that is, the value of the flag is 0). ), And if a pair prediction is applied, this flag indicates TRUE.
  • pair prediction whether to perform refinement may be determined for both the L0 reference picture and the L1 reference picture, and refinement_offset may be applied for each L0 reference picture and the L1 reference picture.
  • refinement_offset_0 may indicate a refinement offset with respect to the L0 reference picture
  • refinement_offset_1 may indicate a refinement offset with respect to the L1 reference picture.
  • whether a mirroring scheme is applied to the MVD may be signaled to increase the accuracy of the refinement offset in the merge mode.
  • An example of syntax using the proposed method may be as shown in Table 14 below.
  • merge_flag If (merge_flag) ⁇ merge_index refinement_flag If (refinement_flag) ⁇ refinement_offset refinement_offset_derivation ⁇ ⁇
  • refinement_offset_derivation represents a refiner offset derivation index for indicating a relationship between an L0 refined offset vector for deriving a refined motion vector for the L0 reference picture and an L1 refined offset vector for deriving a refined motion vector for an L1 reference picture.
  • An example of deriving the refinement offset for the L0 reference picture and the refinement offset for the L1 reference picture based on the refinement_offset_derivation may be shown in Table 15 below.
  • Index meaning codewords 0 Apply mirroring method 0 One Same as Refinement_offset 10 2 Refinement_offset and x-axis symmetry 110 3 Refinement_offset and y-axis symmetry 1110
  • L1 MVD is L0 may indicate a position symmetrical with the MVD and the y-axis.
  • the index for the refinement_offset_derivation, the codeword order, the encoding method, the L0 MVD and L1 MVD determination methods, the number of indexes, and the like may be changed.
  • FIG. 8 is a flowchart illustrating an operation of an encoding apparatus according to an embodiment
  • FIG. 9 is a block diagram illustrating a configuration of an encoding apparatus according to an embodiment.
  • the encoding apparatus according to FIGS. 8 and 9 may perform operations corresponding to the decoding apparatus according to FIGS. 10 and 11. Accordingly, operations of the decoding apparatus to be described later with reference to FIGS. 10 and 11 may be similarly applied to the encoding apparatus according to FIGS. 8 and 9.
  • Each step disclosed in FIG. 8 may be performed by the encoding apparatus 100 disclosed in FIG. 1. More specifically, S800 to S820 may be performed by the prediction unit 110 disclosed in FIG. 1, and S830 may be performed by the entropy encoding unit 130 illustrated in FIG. 1. In addition, operations according to S800 to S830 are based on some of the contents described above with reference to FIGS. 3 to 7B. Therefore, specific details overlapping with the above-described contents in FIGS. 1 and 3 to 7b will be omitted or simply described.
  • an encoding apparatus may include a prediction unit 110 and an entropy encoding unit 130.
  • a prediction unit 110 may be included in an encoding apparatus.
  • an encoding apparatus may be implemented by more or fewer components than those illustrated in FIG. 9.
  • the predictor 110 and the entropy encoder 130 may be implemented as separate chips, or at least two or more components may be implemented through one chip.
  • the encoding apparatus may derive one neighbor merge candidate block among neighbor merge candidate blocks of the current block (S800). More specifically, when the merge mode is applied to the current block, the prediction unit 110 of the encoding apparatus may derive one neighbor merge candidate block among neighbor merge candidate blocks of the current block.
  • the encoding apparatus may derive a refined motion vector of the derived neighbor merge candidate block based on the motion vector ( S810). More specifically, when refinement is performed on the derived motion vector of the neighbor merge candidate block, the prediction unit 110 of the encoding apparatus derives the refined motion vector of the derived neighbor merge candidate block based on the motion vector. can do.
  • the encoding apparatus may include merge flag information indicating whether the merge mode is applied to the current block, a merge index indicating the derived neighbor merge candidate block, and a refinement flag indicating whether the refinement is performed.
  • Information and a refinement offset indicating a difference between the refined motion vector and the motion vector may be derived (S820). More specifically, the prediction unit 110 of the encoding apparatus determines whether merge flag information indicating whether the merge mode is applied to the current block, merge index indicating the derived neighbor merge candidate block, or whether refinement is performed.
  • Refinement flag information indicating and refinement offset information indicating a difference between the refined motion vector and the motion vector may be derived.
  • the encoding apparatus may encode merge mode related information including at least one of the merge flag information, the merge index, the refinement flag information, and the refinement offset (S830). More specifically, the entropy encoding unit 130 of the encoding apparatus may encode merge mode related information including at least one of the merge flag information, the merge index, the refinement flag information, and the refinement offset. have.
  • the encoding apparatus when the merge mode is applied to the current block, derives the neighbor merge candidate block of one of the neighbor merge candidate blocks of the current block ( If refinement is performed on the derived motion vector of the neighboring merge candidate block, the refined motion vector of the derived neighboring merge candidate block is derived based on the motion vector (S810), and the current block is Merge flag information indicating whether a merge mode is applied, a merge index indicating the derived neighbor merge candidate block, refinement flag information indicating whether the refinement is performed, and a difference between the refined motion vector and the motion vector Deriving information on a refinement offset (S820) and the merge flag Beams, may be the remaining indices, the refinement treatment flag information and encoding mode, the merge-related information includes at least one of information for the refined garment offset (S830). That is, according to the present invention, memory usage may be reduced by deriving refined motion vectors based on the
  • FIG. 10 is a flowchart illustrating an operation of a decoding apparatus according to an embodiment
  • FIG. 11 is a block diagram illustrating a configuration of a decoding apparatus according to an embodiment.
  • Each step disclosed in FIG. 10 may be performed by the decoding apparatus 200 disclosed in FIG. 2. More specifically, S1000 to S1020 may be performed by the predictor 230 shown in FIG. 2, and S1030 may be performed by the adder 240 shown in FIG. 2. In addition, operations according to S1000 to S1030 are based on some of the contents described above with reference to FIGS. 3 to 7B. Therefore, detailed descriptions overlapping with the above descriptions will be omitted or simply described with reference to FIGS. 2 to 7B.
  • a decoding apparatus may include a predictor 230 and an adder 240.
  • all of the components shown in FIG. 11 may not be essential components of the decoding apparatus, and the decoding apparatus may be implemented by more or fewer components than those illustrated in FIG.
  • the predictor 230 and the adder 240 may be implemented as separate chips, or at least two or more components may be implemented through one chip.
  • the decoding apparatus may determine one of neighboring merge candidate blocks of the current block based on a merge index.
  • the neighbor merge candidate block may be derived (S1000). More specifically, when a merge mode is applied to the current block, the prediction unit 230 of the decoding apparatus may derive one neighbor merge candidate block among neighbor merge candidate blocks of the current block based on a merge index.
  • the merge index may be represented as merge_index.
  • the decoding apparatus when refinement is performed on the derived motion vector of the neighbor merge candidate block, the decoding apparatus may be configured to perform a refinement offset on the motion vector and refinement offset of the derived neighbor merge candidate block.
  • a refine motion vector of the derived neighbor merge candidate block may be derived based on the information (S1010). More specifically, when the refinement is performed on the motion vector of the derived neighbor merge candidate block, the prediction unit 230 of the decoding apparatus may obtain information on the motion vector and refinement offset of the derived neighbor merge candidate block.
  • a refined motion vector of the derived neighbor merge candidate block may be derived based on the derived.
  • the motion vector of the derived neighbor merge candidate block may be represented by a motion vector predictor (MVP), and the information about the refinement offset may be represented by refinement_offset.
  • MVP motion vector predictor
  • the decoding apparatus may derive the prediction samples for the current block based on the refined motion vector (S1020). More specifically, the prediction unit 230 of the decoding apparatus may derive the prediction samples for the current block based on the refined motion vector.
  • the decoding apparatus may generate reconstruction samples for the current block based on the prediction samples (S1030). More specifically, the adder 240 of the decoding apparatus may generate reconstruction samples for the current block based on the prediction samples.
  • the decoding apparatus may obtain (or decode) merge mode related information including merge flag information indicating whether the merge mode is applied from a bitstream.
  • merge flag information indicating whether the merge mode is applied from a bitstream.
  • the merge mode related information may further include refinement flag information indicating whether the refinement is performed.
  • the refinement flag information is 1, the refinement is performed on the motion vector of the derived neighbor merge candidate block, and the merge mode related information may further include information about the refinement offset. .
  • the refinement flag information may be represented by refinement_flag.
  • the information on the refinement offset may include a codeword indicating a refinement offset index, and the refinement offset index may indicate a refinement offset vector.
  • the refinement offset vector may be variously referred to as a refinement offset vector, a refinement offset, a refinement offset, or the like.
  • the refined motion vector of the derived neighbor merge candidate block is added to the motion vector of the derived neighbor merge candidate block. It can be derived by adding the refinement offset vector.
  • the motion vector of the derived neighbor merge candidate block is an L0 motion vector or an L1 reference picture indicating an L0 reference picture.
  • the L1 motion vector indicating the L1 motion vector may indicate an L0 refinement motion vector indicating the L0 reference picture or an L1 refinement motion vector indicating the L1 reference picture.
  • the L0 (L1) refined motion vector may be variously referred to as a refined L0 (L1) motion vector, a refinement LO (L1) motion vector, a L0 (L1) refinement motion vector, and the like.
  • the L0 refined motion vector is derived by adding the refinement offset vector to the L0 motion vector
  • the L1 refined motion vector is derived by subtracting the refinement offset vector from the L1 motion vector. Can be.
  • the L0 refine motion vector is offset to the refinement offset to the L0 motion vector.
  • the L1 refined motion vector is derived by subtracting the refinement offset vector from the L1 motion vector, and the distance between the L1 reference picture and the current picture is equal to the distance between the L0 reference picture and the current picture.
  • the L1 refinement motion vector may be derived by adding the refinement offset vector to the L1 motion vector, and the L0 refinement motion vector may be derived by subtracting the refinement offset vector from the L0 motion vector.
  • the merge mode related information when the value of the merge flag information is 1 and pair prediction is applied to at least one neighbor merge candidate block among the neighbor merge candidate blocks, the merge mode related information further includes the refinement flag. can do.
  • the decoding apparatus may obtain merge mode related information including merge flag information indicating whether the merge mode is applied from a bitstream.
  • merge flag information When the merge flag information has a value of 1, the merge mode is applied to the current block, the merge mode related information further includes information on the refinement offset, and the information on the refinement offset is a zero vector. and a refinement offset index for indicating a (zero vector) (for example, (0, 0)).
  • the refinement offset index is one of a plurality of indices included in a refinement offset list
  • the refinement offset vector is one of a plurality of refinement offset vector candidates included in the refinement offset list.
  • Each of the plurality of indices and the plurality of refinement offset vector candidates may be mapped based on the width and height of the current block.
  • the decoding apparatus may obtain merge mode related information including merge flag information indicating whether the merge mode is applied from a bitstream.
  • merge flag information indicating whether the merge mode is applied from a bitstream.
  • the merge mode related information may further include a refinement flag indicating whether the refinement is performed.
  • the decoding apparatus may obtain merge mode related information including merge flag information indicating whether the merge mode is applied from a bitstream.
  • merge flag information When the merge flag information has a value of 1, the merge mode related information may further include a pair prediction flag indicating whether pair prediction is applied to the current block.
  • the merge mode related information When the value of the pair prediction flag is 1 and the refinement is applied to the motion vector of the derived neighbor merge candidate block, the merge mode related information may include information about an L0 refinement offset and an information about an L1 refinement offset. It may further include information.
  • the merge mode related information may include a fine offset derivation index for indicating a relationship between an L0 refine offset vector for deriving the L0 refined motion vector and an L1 refine offset vector for deriving the L1 refined motion vector ( refinement offset derivation index).
  • the refined offset derivation index may be represented by refinement_offset_derivation, and examples of codewords for the refined offset derivation index are described above in Table 15.
  • the neighbor merge candidate of one of the neighbor merge candidate blocks of the current block based on the merge index.
  • a block is derived (S1000) and refinement is performed on the derived motion vector of the neighbor merge candidate block, the derived based on the information about the motion vector and refinement offset of the derived neighbor merge candidate block.
  • Embodiments described in the present invention may be implemented and performed on a processor, a microprocessor, a controller, or a chip.
  • the functional units shown in each drawing may be implemented and performed on a computer, processor, microprocessor, controller, or chip.
  • the decoder and encoder to which the embodiments of the present invention are applied include a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, and a real time communication device such as video communication.
  • Streaming devices, storage media, camcorders, video on demand (VoD) service providers, over the top video (OTT) devices, internet streaming service providers, three-dimensional (3D) video devices, video telephony video devices, and medical video devices Etc. and may be used to process video signals or data signals.
  • the OTT video device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), and the like.
  • the processing method to which the embodiments of the present invention are applied may be produced in the form of a program executed by a computer, and may be stored in a computer-readable recording medium.
  • Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium.
  • the computer readable recording medium includes all types of storage devices and distributed storage devices for storing computer readable data.
  • the computer-readable recording medium may be, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical disc. It may include a data storage device.
  • the computer-readable recording medium also includes media embodied in the form of a carrier wave (for example, transmission over the Internet).
  • the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
  • embodiments of the present invention may be implemented as a computer program product by a program code, the program code may be performed on a computer by an embodiment of the present invention.
  • the program code may be stored on a carrier readable by a computer.
  • FIG. 12 is a diagram illustrating a structure of a content streaming system according to an embodiment.
  • the content streaming system to which the present invention is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
  • the encoding server compresses content input from multimedia input devices such as a smartphone, a camera, a camcorder, etc. into digital data to generate a bitstream and transmit the bitstream to the streaming server.
  • multimedia input devices such as smart phones, cameras, camcorders, etc. directly generate a bitstream
  • the encoding server may be omitted.
  • the bitstream may be generated by an encoding method or a bitstream generation method to which the present invention is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
  • the streaming server transmits the multimedia data to the user device based on the user's request through the web server, and the web server serves as an intermediary for informing the user of what service there is.
  • the web server transmits it to a streaming server, and the streaming server transmits multimedia data to the user.
  • the content streaming system may include a separate control server.
  • the control server plays a role of controlling a command / response between devices in the content streaming system.
  • the streaming server may receive content from a media store and / or an encoding server. For example, when the content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
  • Examples of the user device include a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, glass glasses, head mounted displays), digital TVs, desktops Computer, digital signage, and the like.
  • PDA personal digital assistant
  • PMP portable multimedia player
  • slate PC slate PC
  • Tablet PCs ultrabooks
  • wearable devices e.g., smartwatches, glass glasses, head mounted displays
  • digital TVs desktops Computer
  • digital signage digital signage
  • Each server in the content streaming system may operate as a distributed server, in which case data received from each server may be distributed.
  • the above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.
  • Each part, module, or unit described above may be a processor or hardware part that executes successive procedures stored in a memory (or storage unit). Each step described in the above embodiments may be performed by a processor or hardware parts. Each module / block / unit described in the above embodiments can operate as a hardware / processor.
  • the methods proposed by the present invention can be executed as code. This code can be written to a processor readable storage medium, and thus can be read by a processor provided by an apparatus.
  • the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function.
  • the module may be stored in memory and executed by a processor.
  • the memory may be internal or external to the processor and may be coupled to the processor by a variety of known means.
  • the processor may include an application-specific integrated circuit (ASIC), other chipset, logic circuit, and / or data processing device.
  • the memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

본 발명의 일 실시예에 따른 디코딩 장치에 의하여 수행되는 픽처 디코딩 방법은, 현재 블록에 머지 모드가 적용되는 경우, 머지 인덱스를 기반으로 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출하는 단계, 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터 및 리파인먼트 오프셋에 대한 정보를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출하는 단계, 상기 리파인 움직임 벡터를 기반으로 상기 현재 블록에 대한 예측 샘플들을 도출하는 단계 및 상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 한다.

Description

머지 모드에 기반하여 인터 예측을 수행하는 방법 및 장치
본 발명은 정지 영상 또는 동영상 인코딩/디코딩 방법에 관한 것으로서, 보다 상세하게는 머지 모드(merge mode)에 기반하여 인터 예측을 수행하는 방법 및 장치에 관한 것이다.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.
본 발명의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.
본 발명의 다른 기술적 과제는 인터 예측을 수행하는 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 머지 모드에 기반하여 인터 예측을 수행하는 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 현재 블록에 머지 모드가 적용되는 경우, 주변 머지 후보 블록의 움직임 벡터 및 시그널링 된 리파인먼트 오프셋을 기반으로 리파인 움직임 벡터를 도출하는 방법 및 장치를 제공함에 있다.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 픽처 디코딩 방법이 제공된다. 상기 방법은, 현재 블록에 머지 모드(merge mode)가 적용되는 경우, 머지 인덱스(merge index)를 기반으로 상기 현재 블록의 주변 머지 후보 블록들(neighboring merge candidate blocks) 중 하나의 주변 머지 후보 블록을 도출하는 단계, 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트(refinement)가 수행되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터 및 리파인먼트 오프셋(refinement offset)에 대한 정보를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터(refine motion vector)를 도출하는 단계, 상기 리파인 움직임 벡터를 기반으로 상기 현재 블록에 대한 예측 샘플들을 도출하는 단계 및 상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 한다.
본 발명의 다른 일 실시예에 따르면, 픽처 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는, 현재 블록에 머지 모드가 적용되는 경우 머지 인덱스를 기반으로 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출하고, 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터 및 리파인먼트 오프셋에 대한 정보를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출하고, 상기 리파인 움직임 벡터를 기반으로 상기 현재 블록에 대한 예측 샘플들을 도출하는 예측부 및 상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 가산부를 포함하는 것을 특징으로 한다.
본 발명의 또 다른 일 실시예에 따르면, 인코딩 장치에 의한 픽처 인코딩 방법이 제공된다. 상기 방법은, 현재 블록에 머지 모드가 적용되는 경우, 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출하는 단계, 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우, 상기 움직임 벡터를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출하는 단계, 상기 현재 블록에 상기 머지 모드가 적용되는지 여부를 나타내는 머지 플래그 정보, 상기 도출된 주변 머지 후보 블록을 나타내는 머지 인덱스, 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그 정보 및 상기 리파인 움직임 벡터와 상기 움직임 벡터의 차분을 나타내는 리파인먼트 오프셋에 대한 정보를 도출하는 단계 및 상기 머지 플래그 정보, 상기 머지 인덱스, 상기 리파인먼트 플래그 정보 및 상기 리파인먼트 오프셋에 대한 정보 중 적어도 하나를 포함하는 머지 모드 관련 정보를 인코딩하는 단계를 포함하는 것을 특징으로 한다.
본 발명의 또 다른 일 실시예에 따르면, 픽처 인코딩을 수행하는 인코딩 장치가 제공된다. 상기 인코딩 장치는, 현재 블록에 머지 모드가 적용되는 경우 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출하고, 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우 상기 움직임 벡터를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출하고, 상기 현재 블록에 상기 머지 모드가 적용되는지 여부를 나타내는 머지 플래그 정보, 상기 도출된 주변 머지 후보 블록을 나타내는 머지 인덱스, 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그 정보 및 상기 리파인 움직임 벡터와 상기 움직임 벡터의 차분을 나타내는 리파인먼트 오프셋에 대한 정보를 도출하는 예측부 및 상기 머지 플래그 정보, 상기 머지 인덱스, 상기 리파인먼트 플래그 정보 및 상기 리파인먼트 오프셋에 대한 정보 중 적어도 하나를 포함하는 머지 모드 관련 정보를 인코딩하는 엔트로피 인코딩부를 포함하는 것을 특징으로 한다.
본 발명에 따르면 전반적인 영상/비디오 압축 효율을 높일 수 있다.
본 발명에 따르면 인터 예측을 효율적으로 수행할 수 있다.
본 발명에 따르면 머지 모드를 기반으로 인터 예측을 효율적으로 수행할 수 있다.
본 발명에 따르면 DMVR을 기반으로 디코더 복잡도를 개선할 수 있다.
본 발명에 따르면 머지 모드에서 DMVR을 적용할 시 메모리 사용량을 감소시킬 수 있다.
본 발명에 따르면 머지 모드에서 주변 머지 후보 블록의 움직임 벡터 및 시그널링 된 리파인먼트 오프셋을 기반으로 리파인 움직임 벡터를 도출하는 방법 및 장치를 제공함에 있다.
도 1은 일 실시예에 따른 인코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 2는 일 실시예에 따른 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 3은 양 방향 예측에서 DMVR을 수행하는 과정의 일 예시를 설명하기 위한 도면이다.
도 4는 양 방향 예측에서 DMVR을 수행하는 과정의 다른 일 예시를 설명하기 위한 도면이다.
도 5는 양 방향 예측에서 각 방향의 리파인먼트 오프셋의 일 예시를 설명하기 위한 도면이다.
도 6은 양 방향 예측이 적용되는 주변 블록을 도출할 때 체크되는 블록들의 예시들을 도시하는 도면이다.
도 7a 및 도 7b는 블록의 모양을 기반으로 리파인먼트 오프셋에 대한 리파인먼트 오프셋 인덱스가 결정되는 예시들을 도시하는 도면이다.
도 8은 일 실시예에 따른 인코딩 장치의 동작을 도시하는 흐름도이다.
도 9는 일 실시예에 따른 인코딩 장치의 구성을 도시하는 블록도이다.
도 10은 일 실시예에 따른 디코딩 장치의 동작을 도시하는 흐름도이다.
도 11은 일 실시예에 따른 디코딩 장치의 구성을 도시하는 블록도이다.
도 12는 일 실시예에 따른 컨텐츠 스트리밍 시스템 구조도를 도시하는 도면이다.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 픽처 디코딩 방법이 제공된다. 상기 방법은, 현재 블록에 머지 모드(merge mode)가 적용되는 경우, 머지 인덱스(merge index)를 기반으로 상기 현재 블록의 주변 머지 후보 블록들(neighboring merge candidate blocks) 중 하나의 주변 머지 후보 블록을 도출하는 단계, 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트(refinement)가 수행되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터 및 리파인먼트 오프셋(refinement offset)에 대한 정보를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터(refine motion vector)를 도출하는 단계, 상기 리파인 움직임 벡터를 기반으로 상기 현재 블록에 대한 예측 샘플들을 도출하는 단계 및 상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 한다.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
이하의 설명은 비디오/영상 코딩에 관한 것이다. 예를 들어 이 문서에서 개시된 방법/실시예는 VVC (versatile video coding) 표준, EVC (essential video coding) 표준, AV1 (AOMedia Video 1) 표준, AVS2 (2nd generation of audio video coding standard) 또는 차세대 비디오/영상 코딩 표준(ex. H.267, H.268 등)에 개시되는 방법에 적용될 수 있다.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.
본 명세서에서 비디오(video)는 시간의 흐름에 따른 일련의 영상(image)들의 집합을 의미할 수 있다. 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다.
유닛(unit)은 영상 처리의 기본 단위를 나타낸다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다.
도 1은 본 발명이 적용될 수 있는 인코딩 장치(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)를 포함할 수 있다.
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다.
일 예로, 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리(ternary) 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조 및 터너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조/터너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다.
다른 예로, 처리 유닛은 코딩 유닛(coding unit, CU) 예측 유닛(prediction unit, PU) 또는 변환 유닛(transform unit, TU)을 포함할 수도 있다. 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 쿼드 트리 구조를 따라서 하위(deeper) 뎁스의 코딩 유닛들로 분할(split)될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 최소 코딩 유닛(smallest coding unit, SCU)이 설정된 경우 코딩 유닛은 최소 코딩 유닛보다 더 작은 코딩 유닛으로 분할될 수 없다. 여기서 최종 코딩 유닛이라 함은 예측 유닛 또는 변환 유닛으로 파티셔닝 또는 분할되는 기반이 되는 코딩 유닛을 의미한다. 예측 유닛은 코딩 유닛으로부터 파티셔닝(partitioning)되는 유닛으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록(sub block)으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 유닛일 수 있다. 이하, 코딩 유닛은 코딩 블록(coding block, CB), 예측 유닛은 예측 블록(prediction block, PB), 변환 유닛은 변환 블록(transform block, TB) 으로 불릴 수 있다. 예측 블록 또는 예측 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 예측 샘플의 어레이(array)를 포함할 수 있다. 또한, 변환 블록 또는 변환 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 변환 계수 또는 레지듀얼 샘플의 어레이를 포함할 수 있다.
예측부(110)는 처리 대상 블록(이하, 현재 블록 또는 레지듀얼 블록을 의미할 수도 있다)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(110)에서 수행되는 예측의 단위는 코딩 블록일 수 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.
예측부(110)는 현재 블록에 인트라 예측이 적용되는지 인터 예측이 적용되는지를 결정할 수 있다. 일 예로, 예측부(110)는 CU 단위로 인트라 예측 또는 인터 예측이 적용되는지를 결정할 수 있다.
인트라 예측의 경우에, 예측부(110)는 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 현재 블록 외부의 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 예측부(110)는 (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 인트라 예측에서 예측 모드는 예를 들어 33개의 방향성 예측 모드와 적어도 2개 이상의 비방향성 모드를 가질 수 있다. 비방향성 모드는 DC 예측 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 예측부(110)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측의 경우에, 예측부(110)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 샘플을 기반으로, 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(110)는 스킵(skip) 모드, 머지(merge) 모드, 및 MVP(motion vector prediction) 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 스킵 모드와 머지 모드의 경우에, 예측부(110)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차(레지듀얼)가 전송되지 않는다. MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(Motion Vector Predictor)로 이용하여 현재 블록의 움직임 벡터 예측자로 이용하여 현재 블록의 움직임 벡터를 유도할 수 있다.
인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처(reference picture)에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 움직임 정보(motion information)는 움직임 벡터와 참조 픽처 인덱스를 포함할 수 있다. 예측 모드 정보와 움직임 정보 등의 정보는 (엔트로피) 인코딩되어 비트스트림 형태로 출력될 수 있다.
스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트(reference picture list) 상의 최상위 픽처가 참조 픽처로서 이용될 수도 있다. 참조 픽처 리스트(Picture Order Count)에 포함되는 참조 픽처들은 현재 픽처와 해당 참조 픽처 간의 POC(Picture order count) 차이 기반으로 정렬될 수 있다. POC는 픽처의 디스플레이 순서에 대응하며, 코딩 순서와 구분될 수 있다.
감산부(121)는 원본 샘플과 예측 샘플 간의 차이인 레지듀얼 샘플을 생성한다. 스킵 모드가 적용되는 경우에는, 상술한 바와 같이 레지듀얼 샘플을 생성하지 않을 수 있다.
변환부(122)는 변환 블록 단위로 레지듀얼 샘플을 변환하여 변환 계수(transform coefficient)를 생성한다. 변환부(122)는 해당 변환 블록의 사이즈와, 해당 변환 블록과 공간적으로 겹치는 코딩 블록 또는 예측 블록에 적용된 예측 모드에 따라서 변환을 수행할 수 있다. 예컨대, 상기 변환 블록과 겹치는 상기 코딩 블록 또는 상기 예측 블록에 인트라 예측이 적용되었고, 상기 변환 블록이 4×4의 레지듀얼 어레이(array)라면, 레지듀얼 샘플은 DST(Discrete Sine Transform) 변환 커널을 이용하여 변환되고, 그 외의 경우라면 레지듀얼 샘플은 DCT(Discrete Cosine Transform) 변환 커널을 이용하여 변환할 수 있다.
양자화부(123)는 변환 계수들을 양자화하여, 양자화된 변환 계수를 생성할 수 있다.
재정렬부(124)는 양자화된 변환 계수를 재정렬한다. 재정렬부(124)는 계수들 스캐닝(scanning) 방법을 통해 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있다. 여기서 재정렬부(124)는 별도의 구성으로 설명하였으나, 재정렬부(124)는 양자화부(123)의 일부일 수 있다.
엔트로피 인코딩부(130)는 양자화된 변환 계수들에 대한 엔트로피 인코딩을 수행할 수 있다. 엔트로피 인코딩은 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 인코딩 방법을 포함할 수 있다. 엔트로피 인코딩부(130)는 양자화된 변환 계수 외 비디오 복원에 필요한 정보들(예컨대 신택스 요소(syntax element)의 값 등)을 함께 또는 별도로 엔트로피 인코딩 또는 기 설정된 방법에 따라 인코딩할 수도 있다. 인코딩된 정보들은 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다.
역양자화부(125)는 양자화부(123)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(126)는 역양자화부(125)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.
가산부(140)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(140)는 별도의 구성으로 설명하였으나, 가산부(140)는 예측부(110)의 일부일 수 있다. 한편, 가산부(140)는 복원부(reconstruction module) 또는 복원 블록 생성부로 불릴 수도 있다.
복원된 픽처(reconstructed picture)에 대하여 필터부(150)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(150)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.
메모리(160)는 복원 픽처(디코딩된 픽처) 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(150)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.
도 2는 본 발명이 적용될 수 있는 비디오/영상 디코딩 장치(video 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)에 포함될 수 있다.
비디오/영상 정보를 포함하는 비트스트림이 입력되면, 비디오 디코딩 장치는(200)는 비디오 인코딩 장치에서 비디오/영상 정보가 처리된 프로세스에 대응하여 비디오/영상/픽처를 복원할 수 있다.
예컨대, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 적용된 처리 유닛을 이용하여 비디오 디코딩을 수행할 수 있다. 따라서 비디오 디코딩의 처리 유닛 블록은 일 예로 코딩 유닛일 수 있고, 다른 예로 코딩 유닛, 예측 유닛 또는 변환 유닛일 수 있다. 코딩 유닛은 최대 코딩 유닛으로부터 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리 트리 구조를 따라서 분할될 수 있다.
예측 유닛 및 변환 유닛이 경우에 따라 더 사용될 수 있으며, 이 경우 예측 블록은 코딩 유닛으로부터 도출 또는 파티셔닝되는 블록으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 또는 변환 계수로부터 레지듀얼 신호를 유도하는 유닛일 수 있다.
엔트로피 디코딩부(210)는 비트스트림을 파싱하여 비디오 복원 또는 픽처 복원에 필요한 정보를 출력할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 비디오 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다.
보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 컨택스트(context) 모델을 결정하고, 결정된 컨택스트 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 컨택스트 모델 결정 후 다음 심볼/빈의 컨택스트 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 컨택스트 모델을 업데이트할 수 있다.
엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(230)로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수는 재정렬부(221)로 입력될 수 있다.
재정렬부(221)는 양자화되어 있는 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 재정렬부(221)는 인코딩 장치에서 수행된 계수 스캐닝에 대응하여 재정렬을 수행할 수 있다. 여기서 재정렬부(221)는 별도의 구성으로 설명하였으나, 재정렬부(221)는 역양자화부(222)의 일부일 수 있다.
역양자화부(222)는 양자화되어 있는 변환 계수들을 (역)양자화 파라미터를 기반으로 역양자화하여 변환 계수를 출력할 수 있다. 이 때, 양자화 파라미터를 유도하기 위한 정보는 인코딩 장치로부터 시그널링될 수 있다.
역변환부(223)는 변환 계수들을 역변환하여 레지듀얼 샘플들을 유도할 수 있다.
예측부(230)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(230)에서 수행되는 예측의 단위는 코딩 블록일 수도 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.
예측부(230)는 상기 예측에 관한 정보를 기반으로 인트라 예측을 적용할 것인지 인터 예측을 적용할 것인지를 결정할 수 있다. 이 때, 인트라 예측과 인터 예측 중 어느 것을 적용할 것인지를 결정하는 단위와 예측 샘플을 생성하는 단위는 상이할 수 있다. 아울러, 인터 예측과 인트라 예측에 있어서 예측 샘플을 생성하는 단위 또한 상이할 수 있다. 예를 들어, 인터 예측과 인트라 예측 중 어느 것을 적용할 것인지는 CU 단위로 결정할 수 있다. 또한 예를 들어, 인터 예측에 있어서 PU 단위로 예측 모드를 결정하고 예측 샘플을 생성할 수 있고, 인트라 예측에 있어서 PU 단위로 예측 모드를 결정하고 TU 단위로 예측 샘플을 생성할 수도 있다.
인트라 예측의 경우에, 예측부(230)는 현재 픽처 내의 주변 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용할 예측 모드가 결정될 수도 있다.
인터 예측의 경우에, 예측부(230)는 참조 픽처 상에서 움직임 벡터에 의해 참조 픽처 상에서 특정되는 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 스킵(skip) 모드, 머지(merge) 모드 및 MVP 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이때, 비디오 인코딩 장치에서 제공된 현재 블록의 인터 예측에 필요한 움직임 정보, 예컨대 움직임 벡터, 참조 픽처 인덱스 등에 관한 정보는 상기 예측에 관한 정보를 기반으로 획득 또는 유도될 수 있다
스킵 모드와 머지 모드의 경우에, 주변 블록의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.
예측부(230)는 가용한 주변 블록의 움직임 정보로 머지 후보 리스트를 구성하고, 머지 인덱스가 머지 후보 리스트 상에서 지시하는 정보를 현재 블록의 움직임 벡터로 사용할 수 있다. 머지 인덱스는 인코딩 장치로부터 시그널링될 수 있다. 움직임 정보는 움직임 벡터와 참조 픽처를 포함할 수 있다. 스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트 상의 최상위 픽처가 참조 픽처로서 이용될 수 있다.
스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차이(레지듀얼)이 전송되지 않는다.
MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하여 현재 블록의 움직임 벡터가 유도될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.
일 예로, 머지 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 머지 후보 리스트가 생성될 수 있다. 머지 모드에서는 머지 후보 리스트에서 선택된 후보 블록의 움직임 벡터가 현재 블록의 움직임 벡터로 사용된다. 상기 예측에 관한 정보는 상기 머지 후보 리스트에 포함된 후보 블록들 중에서 선택된 최적의 움직임 벡터를 갖는 후보 블록을 지시하는 머지 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 머지 인덱스를 이용하여, 현재 블록의 움직임 벡터를 도출할 수 있다.
다른 예로, MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터는 움직임 벡터 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 후보 중에서 선택된 최적의 움직임 벡터를 지시하는 예측 움직임 벡터 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 움직임 벡터 인덱스를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서, 현재 블록의 예측 움직임 벡터를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 예측부(230)는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 예측부는 또한 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다.
가산부(240)는 레지듀얼 샘플과 예측 샘플을 더하여 현재 블록 혹은 현재 픽처를 복원할 수 있다. 가산부(240)는 레지듀얼 샘플과 예측 샘플을 블록 단위로 더하여 현재 픽처를 복원할 수도 있다. 스킵 모드가 적용된 경우에는 레지듀얼이 전송되지 않으므로, 예측 샘플이 복원 샘플이 될 수 있다. 여기서는 가산부(240)를 별도의 구성으로 설명하였으나, 가산부(240)는 예측부(230)의 일부일 수도 있다. 한편, 가산부(240)는 복원부(reconstruction module) 또는 복원 블록 생성부로 불릴 수도 있다.
필터부(250)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.
메모리(260)는 복원 픽처(디코딩된 픽처) 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(250)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(260)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(260)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다.
한편, 상술한 바와 같이 비디오 코딩을 수행함에 있어 압축 효율을 높이기 위하여 예측을 수행한다. 이를 통하여 코딩 대상 블록인 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록을 생성할 수 있다. 여기서 상기 예측된 블록은 공간 도메인(또는 픽셀 도메인)에서의 예측 샘플들을 포함한다. 상기 예측된 블록은 인코딩 장치 및 디코딩 장치에서 동일하게 도출되며, 상기 인코딩 장치는 원본 블록의 원본 샘플 값 자체가 아닌 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼에 대한 정보(레지듀얼 정보)를 디코딩 장치로 시그널링함으로써 영상 코딩 효율을 높일 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 레지듀얼 샘플들을 포함하는 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록과 상기 예측된 블록을 합하여 복원 샘플들을 포함하는 복원 블록을 생성할 수 있고, 복원 블록들을 포함하는 복원 픽처를 생성할 수 있다.
상기 레지듀얼 정보는 변환 및 양자화 절차를 통하여 생성될 수 있다. 예를 들어, 인코딩 장치는 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록에 포함된 레지듀얼 샘플들(레지듀얼 샘플 어레이)에 변환 절차를 수행하여 변환 계수들을 도출하고, 상기 변환 계수들에 양자화 절차를 수행하여 양자화된 변환 계수들을 도출하여 관련된 레지듀얼 정보를 (비트스트림을 통하여) 디코딩 장치로 시그널링할 수 있다. 여기서 상기 레지듀얼 정보는 상기 양자화된 변환 계수들의 값 정보, 위치 정보, 변환 기법, 변환 커널, 양자화 파라미터 등의 정보를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 역양자화/역변환 절차를 수행하고 레지듀얼 샘플들(또는 레지듀얼 블록)을 도출할 수 있다. 디코딩 장치는 예측된 블록과 상기 레지듀얼 블록을 기반으로 복원 픽처를 생성할 수 있다. 인코딩 장치는 또한 이후 픽처의 인터 예측을 위한 참조를 위하여 양자화된 변환 계수들을 역양자화/역변환하여 레지듀얼 블록을 도출하고, 이를 기반으로 복원 픽처를 생성할 수 있다.
도 3은 양 방향 예측(또는 쌍 방향 예측, 쌍 예측)에서 DMVR을 수행하는 과정의 일 예시를 설명하기 위한 도면이다.
본 명세서에서는 특정 정보 또는 개념을 정의하기 위한 특정 용어 또는 문장을 사용하고 있다. 예를 들어, 현재 픽처에 대한 참조 픽처 리스트 L0 내의 참조 픽처를"LO 참조 픽처"로 나타내고 있고, 현재 픽처를 기준으로 서로 다른 방향에 존재하는 참조 픽처들을 기반으로 수행하는 인터 예측을 "양 방향 예측"이라고 나타내고 있다. 그러나, "L0 참조 픽처"는 제1 참조 픽처, List 0 참조 픽처, 참조 픽처 L0, LO 픽처 등 다양한 용어로 대체될 수 있고, "양 방향 예측"은 쌍 방향 예측, 양 예측, 쌍 예측, bi-prediction, bi-directional prediction 등 다양한 용어로 대체될 수 있는 바, 본 명세서에서 특정 정보 또는 개념을 정의하기 위해 사용된 특정 용어 또는 문장을 명세서 전반에서 해석함에 있어서 그 명칭에 국한된 해석을 하여서는 안 되고, 상기 용어가 나타내고자 하는 내용에 따른 다양한 동작, 기능 및 효과에 주목하여 해석할 필요가 있다.
스킵 모드 및/또는 머지 모드는 MVD(Motion Vector Difference) 없이 주변 블록의 움직임 벡터를 기반으로 현재 블록의 움직임을 예측하므로, 움직임 예측에 있어서 한계를 나타낸다. 스킵 모드 및/또는 머지 모드의 한계를 개선하기 위해, 디코더 장치에서 움직임 벡터를 리파인(refine) 하는 DMVR(Decoder-side Motion Vector Refinement)을 적용할 수 있다. 도 3은 DMVR 과정을 개략적으로 나타내는데, 도 3에 도시된 DMVR은 양 방향 예측에 기반한 DMVR 또는 양 방향 정합 방법 기반 DMVR이라고 지칭될 수 있다. 도 3에 도시된 DMVR 과정은 현재 블록에 양 방향 예측(또는 쌍예측)이 적용될 때 이용될 수 있다.
다시 말해, 도출된 상기 현재 블록의 움직임 정보가 쌍예측 움직임 정보인 경우에 상기 양 방향 정합 방법 기반 DMVR이 적용될 수 있다. 여기서, 쌍예측 움직임 정보는 L0 움직임 정보(또는 제1 움직임 정보) 및 L1 움직임 정보(또는 제2 움직임 정보)를 포함할 수 있다. 상기 L0 움직임 정보는, 상기 현재 블록에 대한 참조 픽처 리스트 L0(또는 제1 참조 픽처 리스트)에 포함된 L0 참조 픽처(또는 제1 참조 픽처)를 가리키는 L0 참조 픽처 인덱스(또는 제1 참조 픽처 인덱스) 및 L0 움직임 벡터 (MVL0 또는 제1 움직임 벡터로도 나타낼 수 있다)를 포함할 수 있고, 상기 L1 움직임 정보는 상기 현재 블록에 대한 참조 픽처 리스트 L1(또는 제2 참조 픽처 리스트)에 포함된 L1 참조 픽처(또는 제2 참조 픽처)를 가리키는 L1 참조 픽처 인덱스(또는 제2 참조 픽처 인덱스) 및 L1 움직임 벡터(MVL1 또는 제2 움직임 벡터로도 나타낼 수 있다)를 포함할 수 있다.
L0 움직임 정보 또는 L1 움직임 정보만을 포함하는 움직임 정보는 단예측 움직임 정보라고 나타낼 수 있다. 현재 블록에 대한 예측을 수행함에 있어서, L0 움직임 정보를 기반으로 인터 예측을 수행하는 경우 LO 예측이라고 불릴 수 있고, L1 움직임 정보를 기반으로 인터 예측을 수행하는 경우 L1 예측이라고 불릴 수 있으며, 상기 L0 움직임 정보 및 L1 움직임 정보를 기반으로 인터 예측을 수행하는 경우 쌍예측(bi-prediction)이라고 불릴 수 있다.
도 3을 참조하면, 인코딩 장치 및/또는 디코딩 장치는 움직임 정보에 포함된 L0 움직임 정보가 지시하는 L0 참조 블록(또는 제1 참조 블록)과 L1 움직임 정보가 가리키는 L1 참조 블록(또는 제2 참조 블록)을 도출할 수 있고, 상기 L0 참조 블록과 상기 L1 참조 블록을 기반으로 타겟 블록(target block)을 도출할 수 있다. 예를 들어, 인코딩 장치 및/또는 디코딩 장치는 상기 L0 참조 블록과 상기 L1 참조 블록을 평균하여 상기 타겟 블록을 도출할 수 있다. 즉, 상기 디코딩 장치는 상기 L0 참조 블록과 상기 L1 참조 블록의 대응하는 샘플들 간의 평균을 상기 타겟 블록의 샘플로 도출하여 상기 타겟 블록을 구성할 수 있다. 상기 타겟 블록은 템플릿(template)이라고 지칭될 수도 있다.
이후, 인코딩 장치 및/또는 디코딩 장치는, 상기 L0 참조 블록(또는 제1 참조 블록)의 주변 영역에 포함된 L0 참조 블록들 중 상기 타겟 블록과 가장 작은 SAD를 갖는 리파인 L0 참조 블록(또는 제1 리파인 참조 블록)을 도출할 수 있고, 상기 L1 참조 블록의 주변 영역에 포함된 L1 참조 블록들 중 상기 타겟 블록과 가장 작은 SAD 를 갖는 리파인 L1 참조 블록(또는 제2 리파인 참조 블록)을 도출할 수 있다. 상기 리파인 L0 참조 블록을 가리키는 리파인 L0 움직임 정보(리파인 L0 움직임 벡터, L0 리파인 움직임 벡터, L0 리파인먼트 움직임 벡터 또는 제1 리파인 움직임 정보로도 나타낼 수 있다) 및 상기 리파인 L1 참조 블록을 가리키는 리파인 L1 움직임 정보(리파인 L1 움직임 벡터, L1 리파인 움직임 벡터, L1 리파인먼트 움직임 벡터 또는 제2 리파인 움직임 정보로도 나타낼 수 있다)는 리파인 움직임 정보로 도출될 수 있다. 즉, 상기 리파인 움직임 정보는 상기 리파인 L0 움직임 정보 및 상기 리파인 L1 움직임 정보를 포함할 수 있다.
상기 L0 참조 블록의 주변 영역은 L0 참조 픽처에 대한 서치 레인지(search range)에 기반하여 도출될 수 있고, 상기 L1 참조 블록의 주변 영역은 L1 참조 픽처에 대한 서치 레인지에 기반하여 도출될 수 있다. 일 예시에서, 상기 L0 참조 픽처에 대한 서치 레인지의 크기 및 상기 L1 참조 픽처에 대한 서치 레인지의 크기는 2-픽셀 사이즈로 동일할 수 있다. 경우에 따라서, 상기 L0 참조 픽처에 대한 서치 레인지와 상기 L1 참조 픽처에 대한 서치 레인지는 동일한 서치 레인지를 나타내며, '상기 L0 참조 픽처(또는 제1 참조 픽처) 및 상기 L1 참조 픽처(또는 제2 참조 픽처)에 대한 서치 레인지'로 지칭될 수 있다. 한편, 상기된 서치 레인지의 크기인 2-픽셀 사이즈는 일 예시에 해당할 뿐, 서치 레인지의 크기의 예시는 상기 2-픽셀 사이즈에 한정되지 않는다.
상기 DMVR은 현재 블록의 움직임 정보(즉, 선택된 움직임 정보), 또는 현재 블록의 머지 후보 또는 MVP 후보에 대해서 적용될 수 있다. 상기 현재 블록의 머지 후보 또는 MVP 후보에 DMVR 이 적용되는 경우, 상기 리파인 움직임 정보를 포함하는 리파인 머지 후보 또는 리파인 MVP 후보가 도출될 수 있고, 상기 도출된 리파인 머지 후보 또는 상기 리파인 MVP 후보는 상기 현재 블록의 움직임 정보 후보 리스트(즉, 머지 후보 리스트 또는 MVP 후보 리스트)에 추가될 수 있다.
도 4는 양 방향 예측에서 DMVR을 수행하는 과정의 다른 일 예시를 설명하기 위한 도면이다.
머지 모드에서 움직임 벡터의 정확성을 향상시키기 위해, 양 방향 매칭(bilateral-matching)에 기반한 디코더 측 움직임 벡터 리파인먼트가 적용될 수 있다. 양 방향 예측에서, 리파인 된 움직임 벡터는 L0 참조 픽처 또는 L1 참조 픽처를 지시하는 최초의 움직임 벡터의 주변에서 서치될 수 있다.
일 실시예에 따른 양 방향 예측에서는, 리파인 LO 참조 블록과 리파인 L1 참조 블록 간의 SAD가 L0 참조 블록과 L1 참조 블록 간의 SAD 보다 작게 되도록, LO 참조 블록으로부터 리파인 L0 참조 블록이 도출되고, L1 참조 블록으로부터 리파인 L1 참조 블록이 도출될 수 있다.
다른 일 실시예에 따른 템플릿-프리 DMVR에서는, 우선 정수 샘플 서치(integer sample search)에서 L0 참조 블록과 L1 참조 블록 간의 SAD가 임계치(threshold) 보다 작은지 여부를 판단할 수 있다. 만약 상기 L0 참조 블록과 L1 참조 블록 간의 SAD가 임계치보다 작은 경우 상기 정수 샘플 서치는 종료될 수 있고, 만약 상기 L0 참조 블록과 L1 참조 블록 간의 SAD가 임계치보다 큰 경우에는 다른 포인트들의 SAD들을 특정 순서(예를 들어, 래스터 스캐닝 오더)로 산출 및 체크하여 최소 SAD를 갖는 포인트를 도출할 수 있다. 상기 정수 샘플 서치 이후, 파라메트릭 에러 서페이스 공식(parametric error surface equation)을 기반으로 소수 샘플 서치가 수행될 수 있다. 상기 정수 샘플 서치 및 소수 샘플 서치를 기반으로 리파인 참조 블록이 도출될 수 있다.
도 5는 양 방향 예측에서 각 방향의 리파인먼트 오프셋의 일 예시를 설명하기 위한 도면이다.
머지 모드의 경우, 주변 블록의 움직임 벡터를 그대로 사용하므로 현재 블록을 위한 최적의 움직임 정보를 도출하기 어려울 수 있다. 따라서 머지 모드의 경우에, DMVR과 같이 움직임 정보를 리파인하는 과정이 추가될 수 있다. 그러나, DMVR을 적용할 때 리파인 벡터 도출(derivation) 과정으로 인해 디코딩 복잡도(complexity)가 증가할 수 있고, 리파인 벡터 도출 시 서치 레인지(search range)가 필요하기 때문에 서치 레인지 만큼의 메모리가 추가로 요구될 수 있다. 따라서 일 실시예에서는 디코더 복잡도를 줄이면서 리파인먼트 효과를 가져오기 위한 시그널링 방법이 제안될 수 있다. 리파인먼트를 위해 리파인먼트 플래그 (예를 들어, refinement_flag) 및 리파인먼트 오프셋(예를 들어, refinement_offset) 정보가 포함될 수 있으며, 아래의 표 1은 refinement_flag 정보와 refinement_offset 정보를 포함하는 신택스의 예시를 나타낸다.
merge_flag
If (merge_flag) {
merge_index
refinement_flag
If( refinement_flag)
refinement_offset
}
표 1에서, refinement_flag는 현재 블록(예를 들어, CU)에 머지 모드가 적용되는 경우 시그널링 될수 있으며, 리파인먼트의 수행 여부를 나타낸다. refinement_flag가 TRUE(또는 refinement_flag의 값이 1)일 때 refinement_offset이 시그널링 될 수 있다. 이때 refinement_offset은 merge_index를 기반으로 도출된 주변 블록의 움직임 벡터를 기준으로 하는 리파인먼트 오프셋 벡터를 나타낼 수 있다. 일 예시에서, 상기 주변 블록의 움직임 벡터는 MVP(Motion Vector Predictor)와 대응될 수 있고, 상기 리파인먼트 오프셋 벡터는 MVD(Motion Vector Difference)와 대응될 수 있다.
일 실시예에서, 상기 표 1에 기재된 merge_index 대신 MMVD(merge with motion vector differences) 후보 플래그 정보를 나타내는 mmvd_cand_flag가 시그널링 될 수 있다. mmvd_cand_flag를 기반으로 머지 후보 리스트의 첫 번째 머지 후보 또는 두 번째 머지 후보가 선택될 수 있다. 또한, 표 1에 기재된 refinement_flag는 MMVD의 적용 여부를 나타내는 sps_mmvd_enabled_flag와 대체될 수 있고, refinement_offset은 MMVD에 이용되는 MVD의 크기 및 방향을 나타내는 인덱스인 mmvd_distance_idx 및 mmvd_direction_idx와 대체될 수 있다. 본 명세서에 기재된 나머지 실시예들에서도, 비록 명시되어 있지 않더라도 MMVD에 기반한 시그널링을 위해 일부 신택스 요소가 본 실시예와 같이 대체될 수 있다.
일 실시예에서는, 도 5에 도시된 바와 같이 L0 참조 픽처에 대한 MVD와 L1 참조 픽처에 대한 MVD에 미러링 스킴(mirroring scheme)이 적용될 수 있다. 예를 들어, 미러링 스킴이 적용되어 L1 참조 픽처에 대한 MVD는 L0 참조 픽처에 대한 MVD와 크기가 같고 방향이 반대인 벡터로 결정될 수 있다. 이 때 refinement_offset은, 예를 들어 아래의 표 2와 같이 정의 될 수 있다. 표 2는 refinement_offset의 index, refinement_offset의 index가 지시하는 리파인먼트 오프셋 벡터 및 코드워드(codeword)를 포함하는 리파인먼트 오프셋 리스트의 일 예시를 나타낼 수 있다.
Index (x , y) offset codewords
0 (1, 0) 00
1 (0, 1) 01
2 (-1, 0) 10
3 (0, -1) 11
상기 표 2에서, 리파인먼트 오프셋 벡터의 예시, 각 코드워드들의 예시, 쿼드워드들 간의 순서, 부호화 방법, 인덱스 개수 등은 변경될 수 있다. 표 2를 참조하면, 코드워드 00이 시그널링 되는 경우 리파인먼트 오프셋 인덱스 0과 대응되는 (1, 0)이 리파인먼트 오프셋 벡터로 결정될 수 있음을 확인할 수 있다. 일 실시예에 따른 디코딩 장치는 비트스트림으로부터 획득(또는 디코딩)한 코드워드를 기반으로 리파인먼트 오프셋 벡터를 도출할 수 있다.
아래의 표 3 내지 표 6은 리파인먼트 오프셋 리스트의 다른 예시들을 나타낸다.
Index (x , y) offset codewords
0 (1, 0) 0
1 (0, 1) 10
2 (-1, 0) 110
3 (0, -1) 111
Index (x , y) offset codewords
0 (1, 1) 00
1 (-1, 1) 01
2 (-1, -1) 10
3 (1, -1) 11
Index (x , y) offset codewords
0 (1, 1) 0
1 (-1, 1) 10
2 (-1, -1) 110
3 (1, -1) 111
Index (x , y) offset codewords
0 (1, 0) 0
1 (0, 1) 10
2 (-1, 0) 110
3 (0, -1) 1110
4 (1, 1) 11110
5 (-1, 1) 111110
6 (-1, -1) 1111110
7 (1, -1) 1111111
상기 표 3 내지 표 6은 리파인먼트 오프셋 인덱스, 리파인먼트 오프셋 벡터 및 코드워드(codeword)의 매핑(mapping) 관계를 포함하는 리파인먼트 오프셋 리스트의 다른 예시들을 나타낸다. 표 2 내지 표 6은 리파인먼트 오프셋 리스트의 예시를 나열한 것에 불과할 뿐, 리파인먼트 오프셋 리스트의 예시는 이에 한정되지 않는다.
일 실시예에서, 현재 블록에 단 예측(bi-prediction)이 적용되는 경우, 인코딩 장치 및/또는 디코딩 장치는 상기 리파인먼트 오프셋 리스트를 기반으로 도출된 리파인먼트 오프셋 벡터(MVD라고 나타낼 수도 있다)를 기반으로 참조 픽처 내 참조 블록의 움직임 벡터(MVP라고 나타낼 수도 있다)를 리파인하여 리파인먼트 움직임 벡터를 도출할 수 있다.
현재 블록에 쌍 예측이 적용되는 일 실시예에서, 리파인먼트 오프셋 리스트를 기반으로 도출된 리파인먼트 오프셋 벡터는 L0 참조 픽처에 대한 LO MVD로 결정될 수 있다. 이때 L1 참조 픽처에 대한 L1 MVD는 -L0 MVD로 결정될 수 있다. 즉, L0 MVD와 L1 MVD는 크기가 같고 방향이 반대일 수 있다. 따라서, L0 참조 픽처에 대한 L0 리파인 움직임 벡터는 L0 MVP + L0 MVD (리파인먼트 오프셋 벡터)로 도출되고, L1 참조 픽처에 대한 L1 리파인 움직임 벡터는 L1 MVP + L1 MVD = L1 MVP - L0 MVD로 도출될 수 있다.
현재 블록에 쌍 예측이 적용되는 다른 일 실시예에서, L0 참조 픽처와 상기 현재 블록을 포함하는 현재 픽처 간의 거리가 L1 참조 픽처와 상기 현재 픽처 간의 거리보다 짧은 경우, L0 리파인 움직임 벡터는 L0 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, L1 리파인 움직임 벡터는 L1 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 차감하여 도출될 수 있다. 또는, 상기 L1 참조 픽처와 상기 현재 픽처 간의 거리가 상기 L0 참조 픽처와 상기 현재 픽처 간의 거리보다 짧은 경우, 상기 L1 리파인 움직임 벡터는 상기 L1 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, 상기 L0 리파인 움직임 벡터는 상기 L0 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 차감하여 도출될 수 있다. 한편 L0 참조 픽처와 현재 픽처 간의 거리가 L1 참조 픽처와 현재 픽처 간의 거리와 같은 경우, L0 리파인 움직임 벡터는 L0 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, L1 리파인 움직임 벡터는 L1 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 차감하여 도출될 수 있다.
현재 블록에 쌍 예측이 적용되는 또 다른 일 실시예에서, L0 참조 픽처와 상기 현재 블록을 포함하는 현재 픽처 간의 거리가 L1 참조 픽처와 상기 현재 픽처 간의 거리보다 짧은 경우, L0 리파인 움직임 벡터는 L0 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, L1 리파인 움직임 벡터는 L1 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 스케일링한 벡터를 차감하여 도출될 수 있다. 이때 스케일링은 현재 픽처와 상기 L0 참조 픽처와의 거리 및 현재 픽처와 상기 L1 참조 픽처와의 거리 간의 비율에 기반할 수 있다. 즉, L0 리파인 움직임 벡터는 L0 MVP + MVD(또는, 리파인먼트 오프셋 벡터)로 도출되고, L1 리파인 움직임 벡터는 L1 MVP - Scale MVD로 도출될 수 있다.
현재 블록에 쌍 예측이 적용되는 또 다른 일 실시예에서, 현재 픽처와 참조 픽처 간의 거리가 임계치(threshold)보다 큰 경우, 리파인먼트 오프셋 리스트를 기반으로 도출된 리파인먼트 오프셋 벡터는 스케일링 되어 L0 참조 픽처에 대한 스케일링 된 LO MVD가 도출될 수 있다. L0 리파인 움직임 벡터는 L0 MVP + Scaled MVD로 도출되고, L1 리파인 움직임 벡터는 L1 MVP - Scaled MVD로 도출될 수 있다. 이때 스케일링은 현재 픽처의 참조 픽처가 될 수 있는 픽처 중 가장 가까운 픽처와 현재 픽처 간의 거리와, 현재 픽처와 상기 현재 픽처에 대한 (실제) 참조 픽처의 거리의 비에 기반할 수 있다.
도 6은 양 방향 예측이 적용되는 주변 블록을 도출할 때 체크되는 블록들의 예시들을 도시하는 도면이다.
일 실시예에서, 현재 블록에 쌍 예측이 적용될 때 리파인먼트를 위한 L0 참조 픽처 및 L1의 리파인먼트 오프셋이 x축 및 y축을 기준으로 서로 대칭될 수 있으므로, 쌍 예측의 대칭성을 기반으로 효율이 증가할 수 있다. 특히 L0 참조 픽처와 L1 참조 픽처가 현재 픽처를 기준으로 대칭되는 위치에 있는 True Bi-prediction의 경우에 특히 상기 효율이 증가할 수 있다. 따라서 쌍 예측 조건에서 리파인먼트 플래그를 시그널링 할 수 있도록, 예를 들어 표 7과 같은 신택스가 고려될 수 있다.
merge_flag
If (merge_flag) {
merge_index
If( 현재 블록에 공간적으로 인접한 블록들 중 Bi-prediction이 적용되는 후보가 N개 존재하는 경우 ) {
refinement_flag
If( refinement_flag)
refinement_offset
}
}
표 7과 같이 파싱(parsing) 과정에서 refinement_flag 및 refinement_offset의 시그널링 여부를 결정하기 위한 조건이 추가될 수 있다. 즉, 현재 블록의 공간적으로 인접한 후보들 중 쌍 예측이 적용되는 후보가 N개 이상 존재하는 경우에 refinement_flag가 전송될 수 있다. 일 예시에서는 현재 블록에 공간적으로 인접한 후보들 중 쌍 예측이 적용되는 후보가 하나라도 존재하는 경우에 refinement_flag가 전송될 수 있으며, 인접한 후보들 중 특정 위치의 후보만을 체크할 수도 있다. 예를 들어, 현재 블록의 좌측 및 상측에 인접한 블록만을 대상으로 하거나, 현재 블록의 좌측에 인접한 블록만을 대상으로 할 수도 있다. 또한, 현재 블록의 좌측에 인접한 블록 및 상측에 인접한 블록을 체크했을 때 쌍 예측이 적용되는 인접 블록이 하나가 존재하는 경우에 refinement_flag가 전송될 수 있고, 인접 블록들 중 쌍 예측이 적용되는 인접 블록이 하나 이상 존재하는 경우에 refinement_flag가 전송될 수도 있다. 또한, 현재 블록의 좌측에 인접한 블록(L) 및 상측에 인접한 블록(A)의 위치가 도 6과 같이 변경되어 적용될 수도 있다.
한편, 일 실시예에서는 refinement_flag를 전송하지 않고, refinement_offset에 refinement_flag의 내용이 포함되도록 refinement_offset을 정의할 수 있다. 즉, refinement_offset은 리파인먼트가 적용되지 않는 경우까지 포함하여 아래의 표 8과 같이 정의될 수 있다.
Index (x , y) offset codewords
0 (0, 0) 0
1 (1, 0) 100
2 (0, 1) 101
3 (-1, 0) 110
4 (0, -1) 111
상기 표 8에 따를 경우, refinement_flag와 refinement_offset이 조인트 코딩(joint coding)되는 효과가 발생할 수 있다. 표 8의 예시에서 리파인먼트 오프셋 벡터, 코드워드 값, 코드워드 순서, 인덱스 등은 변경될 수 있다.
도 7a 및 도 7b는 블록의 모양을 기반으로 리파인먼트 오프셋에 대한 리파인먼트 오프셋 인덱스가 결정되는 예시들을 도시하는 도면이다.
도 4 내지 도 6에 따른 실시예들에서 제안한 방법들은 블록의 모양에 따라 다르게 적용될 수 있다. 즉, 블록의 모양에 따라 reference_offset의 값이 변경되거나, 순서가 달라질 수 있다. 여기서 블록의 모양은 현재 블록의 모양, 현재 블록에 대한 L0 참조 픽처 내 참조 블록의 모양 또는 현재 블록에 대한 L1 참조 픽처 내 참조 블록의 모양을 의미할 수 있다.
일 예시에서, 블록의 폭이 높이보다 크거나 같은 경우, 블록이 가로축으로 길기 때문에 가로 방향의 움직임 이동 가능성이 높으므로, 도 7a와 같이 가로 방향의 움직임을 우선하여 reference_offset의 인덱스가 정해질 수 있다. 다시 말해, 도 7a를 참조하면, 움직임 이동 가능성이 상대적으로 높은 가로 방향의 리파인먼트 오프셋들이 제1 순위와 제2 순위로 인덱싱되고, 움직임 이동 가능성이 상대적으로 낮은 세로 방향의 리파인먼트 오프셋들이 제3 순위와 제4 순위로 인덱싱 되는 것을 확인할 수 있다.
다른 일 예시에서, 블록의 폭이 높이보다 작은 경우, 블록이 세로축으로 길기 때문에 세로 방향의 움직임 이동 가능성이 높으므로, 도 7b와 같이 세로 방향의 움직임을 우선하여 reference_offset의 인덱스가 정해질 수 있다. 다시 말해, 도 7b를 참조하면, 움직임 이동 가능성이 상대적으로 높은 세로 방향의 리파인먼트 오프셋들이 제1 순위와 제2 순위로 인덱싱되고, 움직임 이동 가능성이 상대적으로 낮은 가로 방향의 리파인먼트 오프셋들이 제3 순위와 제4 순위로 인덱싱 되는 것을 확인할 수 있다.
아래의 표 9 및 표 10은 각각 도 7a 및 도 7b에 따른 실시예들을 적용할 때의 리파인먼트 오프셋 벡터와 코드워드의 예시를 나타낸다.
Index (x , y) offset codewords
0 (1, 0) 0
1 (-1, 0) 10
2 (0, 1) 110
3 (0, -1) 1110
표 9를 참조하면, 블록의 폭이 높이보다 크거나 같은 경우, 우선 순위의 인덱스들(인덱스 0 및 인덱스 1)과 가로 방향의 리파인먼트 오프셋들((1,0), (-1,0))이 매핑되는 것을 확인할 수 있다.
Index (x , y) offset codewords
0 (0, 1) 0
1 (0, -1) 10
2 (-1, 0) 110
3 (1, 0) 1110
표 10을 참조하면, 블록의 폭이 높이보다 작은 경우, 우선 순위의 인덱스들(인덱스 0 및 인덱스 1)과 세로 방향의 리파인먼트 오프셋들((0,1), (0,-1))이 매핑되는 것을 확인할 수 있다.
표 9 및 표 10에 예시된 리파인먼트 오프셋 벡터, 코드워드 값, 코드워드 순서, 부호화 방법, 인덱스 개수 등은 변경될 수 있다.
일 실시예에서는, 블록의 크기가 작은 경우 (예를 들어, 8x8과 같거나 작은 경우, 블록의 폭과 높이의 곱이 64와 같거나 작은 경우), 시그널링 오버헤드(signaling overhead)를 줄이기 위해 리파인먼트를 적용하지 않을 수 있다. 본 실시예를 적용할 때의 신택스는, 예를 들어 아래의 표 11과 같을 수 있다.
merge_flag
If (merge_flag) {
merge_index
If( width x heigh > 64) {
refinement_flag
If( refinement_flag)
refinement_offset (index : 0~3)
}
}
다른 일 실시예에서는, 블록의 크기가 작은 경우(예를 들어, 8x8과 같거나 작은 경우, 블록의 폭과 높이의 곱이 64와 같거나 작은 경우), 블록의 크기가 큰 경우와 비교하여 상대적으로 적은 수의 리파인먼트 오프셋 인덱스를 이용할 수 있다. 본 실시예를 적용할 때의 신택스는, 예를 들어 아래의 표 12와 같을 수 있다.
merge_flag
If (merge_flag) {
merge_index
refinement_flag
If( refinement_flag)
refinement_offset (if wxh > 64, index : 0~3, else index : 0~1)
}
}
또 다른 일 실시예에서는, 블록의 크기가 작은 경우(예를 들어, 8x8과 같거나 작은 경우, 블록의 폭과 높이의 곱이 64와 같거나 작은 경우), 블록의 크기가 큰 경우와 비교하여, 리파인먼트 오프셋 리스트를 상대적으로 작은 리파인먼트 오프셋 벡터들을 기반으로 구성할 수 있다. 예를 들어, 블록의 크기가 큰 경우에 리파인먼트 오프셋 벡터의 단위는 정수 화소 단위일 수 있고, 블록의 크기가 작은 경우에 리파인먼트 오프셋 벡터의 단위는 반화소 단위일 수 있다. 블록의 크기가 큰지 또는 작은지 여부를 결정하기 위한 임계값은 다양할 수 있으며, 상기 정소 화소 단위 및 상기 반화소 단위 뿐만 아니라 4펠(4-pel), 1펠(1-pel), 1/4펠(1/4-pel) 등 다양한 단위가 이용될 수 있다.
또 다른 일 실시예에서, AMVR(Adaptive Motion Vector Resolution) 툴이 적용되었을 때, 주변 블록의 AMVR 여부에 따라 리파인먼트 오프셋의 레졸루션(resolution)이 결정될 수 있다. 예를 들어, 현재 블록의 reference_flag가 TRUE(또는 reference_flag의 값이 1)이고 선택된 후보에 AMVR이 적용되는 경우, 후보의 레졸루션에 따라 리파인먼트 오프셋의 레졸루션이 달라질 수 있다.
또 다른 일 실시예에서, 머지 모드에서의 리파인먼트 오프셋의 정확도를 높이기 위해 각 방향 별로 리파인먼트 오프셋을 시그널링 할 수 있다. 방향 별 시그널링을 위한 신택스의 예시는 아래의 표 13과 같을 수 있다.
merge_flag
If (merge_flag) {
merge_index
bipred_flag
If(bipred_flag == 0) { //UNI-PREDICTION
refinement_flag
If( refinement_flag)
refinement_offset
}
Else { //BI-PREDICTION
refinement_flag
If( refinement_flag) {
refinement_offset_0
refinement_offset_1
}
}
}
상기 표 13에서 bipred_flag는 머지모드에서 현재 블록에 쌍 예측이 적용되는지 또는 단 예측이 적용되는지 여부를 나타내는 쌍 예측 플래그이며, 단 예측이 적용되는 경우 해당 플래그는 FALSE(즉, 해당 플래그의 값은 0)를 나타내고, 쌍 예측이 적용되는 경우 해당 플래그는 TRUE를 나타낸다. 쌍 예측이 적용되는 경우, 리파인먼트를 수행할지 여부는 L0 참조 픽처 및 L1 참조 픽처 모두에 대하여 판단될 수 있고, refinement_offset은 각 L0 참조 픽처 및 L1 참조 픽처에 대해 적용될 수 있다. 상기 표 13에서 refinement_offset_0는 L0 참조 픽처에 대한 리파인먼트 오프셋을 나타내고, refinement_offset_1은 L1 참조 픽처에 대한 리파인먼트 오프셋을 나타낼 수 있다.
또 다른 일 실시예에서, 머지 모드에서의 리파인먼트 오프셋의 정확도를 높이기 위해 MVD에 대한 미러링 스킴(Mirroring scheme)의 적용 여부를 시그널링 할 수 있다. 제안하는 방법을 적용한 신택스의 예시는 아래의 표 14와 같을 수 있다.
merge_flag
If (merge_flag) {
merge_index
refinement_flag
If( refinement_flag ) {
refinement_offset
refinement_offset_derivation
}
}
리파인먼트를 수행할 경우, refinement_offset을 통해 리파인먼트 오프셋을 시그널링 하는 것이 가능하며, 추가적으로 refinement_offset_derivation을 통해 MVD 미러링 스킴(MVD mirroring scheme)의 적용 여부가 결정될 수 있다. 여기서 상기 refinement_offset_derivation은 상기 L0 참조 픽처에 대한 리파인 움직임 벡터를 도출하기 위한 L0 리파인 오프셋 벡터와 L1 참조 픽처에 대한 리파인 움직임 벡터를 도출하기 위한 L1 리파인 오프셋 벡터의 관계를 지시하기 위한 리파인 오프셋 도출 인덱스를 나타낼 수 있다. refinement_offset_derivation를 기반으로 L0 참조 픽처에 대한 리파인먼트 오프셋과 L1 참조 픽처에 대한 리파인먼트 오프셋을 도출하는 예시는 아래의 표 15와 같을 수 있다.
Index meaning codewords
0 Mirroring 방법 적용 0
1 Refinement_offset 과 동일 10
2 Refinement_offset과 x축 대칭 110
3 Refinement_offset과 y축 대칭 1110
상기 표 15와 같이, refinement_offset_derivation이 0인 경우, 미러링을 통해 L0, L1의 MVD를 결정할 수 있다. 즉, refinement_offset_derivation이 0인 경우, L0 MVD는 리파인먼트 오프셋 벡터로 결정되고, L1 MVD는 L1 MVD = - L0 MVD의 관계를 기반으로 도출될 수 있다. refinemet_offset_derivation이 1인 경우 L1의 MVD는 L0의 MVD와 동일하게 적용될 수 있고, refinemet_offset_derivation이 2인 경우 L1 MVD는 L0 MVD와 x축으로 대칭된 위치를 지시할 수 있으며, refinemet_offset_derivation이 3인 경우 L1 MVD는 L0 MVD와 y축으로 대칭된 위치를 지시할 수 있다. 이 때, refinement_offset_derivation에 대한 인덱스, 코드워드 순서, 부호화 방법, L0 MVD 및 L1 MVD 결정 방법, 인덱스 개수 등이 변경될 수 있음은 당해 기술 분야의 통상의 기술자에게 용이하게 이해될 것이다.
도 8은 일 실시예에 따른 인코딩 장치의 동작을 도시하는 흐름도이고, 도 9는 일 실시예에 따른 인코딩 장치의 구성을 도시하는 블록도이다.
도 8 및 도 9에 따른 인코딩 장치는 도 10 및 도 11에 따른 디코딩 장치와 대응되는 동작들을 수행할 수 있다. 따라서, 도 10 및 도 11에서 후술될 디코딩 장치의 동작들은 도 8 및 도 9에 따른 인코딩 장치에도 마찬가지로 적용될 수 있다.
도 8에 개시된 각 단계는 도 1에 개시된 인코딩 장치(100)에 의하여 수행될 수 있다. 보다 구체적으로, S800 내지 S820은 도 1에 개시된 예측부(110)에 의하여 수행될 수 있고, S830은 도 1에 개시된 엔트로피 인코딩부(130) 의하여 수행될 수 있다. 더불어 S800 내지 S830에 따른 동작들은, 도 3 내지 도 7b에서 전술된 내용들 중 일부를 기반으로 한 것이다. 따라서, 도 1 및 도 3 내지 도 7b에서 전술된 내용과 중복되는 구체적인 내용은 설명을 생략하거나 간단히 하기로 한다.
도 9에 도시된 바와 같이, 일 실시예에 따른 인코딩 장치는 예측부(110) 및 엔트로피 인코딩부(130)를 포함할 수 있다. 그러나, 경우에 따라서는 도 9에 도시된 구성 요소 모두가 인코딩 장치의 필수 구성 요소가 아닐 수 있고, 인코딩 장치는 도 9에 도시된 구성 요소보다 많거나 적은 구성 요소에 의해 구현될 수 있다.
일 실시예에 따른 인코딩 장치에서 예측부(110) 및 엔트로피 인코딩부(130)는 각각 별도의 칩(chip)으로 구현되거나, 적어도 둘 이상의 구성 요소가 하나의 칩을 통해 구현될 수도 있다.
일 실시예에 따른 인코딩 장치는, 현재 블록에 머지 모드가 적용되는 경우, 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출할 수 있다(S800). 보다 구체적으로, 인코딩 장치의 예측부(110)는 현재 블록에 머지 모드가 적용되는 경우, 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출할 수 있다.
일 실시예에 따른 인코딩 장치는, 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우, 상기 움직임 벡터를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출할 수 있다(S810). 보다 구체적으로, 인코딩 장치의 예측부(110)는 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우, 상기 움직임 벡터를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출할 수 있다.
일 실시예에 따른 인코딩 장치는, 상기 현재 블록에 상기 머지 모드가 적용되는지 여부를 나타내는 머지 플래그 정보, 상기 도출된 주변 머지 후보 블록을 나타내는 머지 인덱스, 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그 정보 및 상기 리파인 움직임 벡터와 상기 움직임 벡터의 차분을 나타내는 리파인먼트 오프셋에 대한 정보를 도출할 수 있다(S820). 보다 구체적으로, 인코딩 장치의 예측부(110)는 상기 현재 블록에 상기 머지 모드가 적용되는지 여부를 나타내는 머지 플래그 정보, 상기 도출된 주변 머지 후보 블록을 나타내는 머지 인덱스, 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그 정보 및 상기 리파인 움직임 벡터와 상기 움직임 벡터의 차분을 나타내는 리파인먼트 오프셋에 대한 정보를 도출할 수 있다.
일 실시예에 따른 인코딩 장치는, 상기 머지 플래그 정보, 상기 머지 인덱스, 상기 리파인먼트 플래그 정보 및 상기 리파인먼트 오프셋에 대한 정보 중 적어도 하나를 포함하는 머지 모드 관련 정보를 인코딩 할 수 있다(S830). 보다 구체적으로, 인코딩 장치의 엔트로피 인코딩부(130)는 상기 머지 플래그 정보, 상기 머지 인덱스, 상기 리파인먼트 플래그 정보 및 상기 리파인먼트 오프셋에 대한 정보 중 적어도 하나를 포함하는 머지 모드 관련 정보를 인코딩 할 수 있다.
도 8 및 도 9의 인코딩 장치 및 인코딩 장치의 동작 방법에 따르면, 인코딩 장치는 현재 블록에 머지 모드가 적용되는 경우, 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출하고(S800), 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우, 상기 움직임 벡터를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출하고(S810), 상기 현재 블록에 상기 머지 모드가 적용되는지 여부를 나타내는 머지 플래그 정보, 상기 도출된 주변 머지 후보 블록을 나타내는 머지 인덱스, 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그 정보 및 상기 리파인 움직임 벡터와 상기 움직임 벡터의 차분을 나타내는 리파인먼트 오프셋에 대한 정보를 도출하고(S820), 상기 머지 플래그 정보, 상기 머지 인덱스, 상기 리파인먼트 플래그 정보 및 상기 리파인먼트 오프셋에 대한 정보 중 적어도 하나를 포함하는 머지 모드 관련 정보를 인코딩(S830) 할 수 있다. 즉, 본 발명에 따르면 머지 모드에서 주변 머지 후보 블록의 움직임 벡터 및 시그널링 된 리파인먼트 오프셋을 기반으로 리파인 움직임 벡터를 도출함으로써 메모리 사용량을 감소시킬 수 있다.
도 10는 일 실시예에 따른 디코딩 장치의 동작을 도시하는 흐름도이고, 도 11은 일 실시예에 따른 디코딩 장치의 구성을 도시하는 블록도이다.
도 10에 개시된 각 단계는 도 2에 개시된 디코딩 장치(200)에 의하여 수행될 수 있다. 보다 구체적으로, S1000 내지 S1020은 도 2에 개시된 예측부(230)에 의하여 수행될 수 있고, S1030은 도 2에 개시된 가산부(240)에 의하여 수행될 수 있다. 더불어 S1000 내지 S1030에 따른 동작들은, 도 3 내지 도 7b에서 전술된 내용들 중 일부를 기반으로 한 것이다. 따라서, 도 2 내지 도 7b에서 전술된 내용과 중복되는 구체적인 내용은 설명을 생략하거나 간단히 하기로 한다.
도 11에 도시된 바와 같이, 일 실시예에 따른 디코딩 장치는 예측부(230) 및 가산부(240)를 포함할 수 있다. 그러나, 경우에 따라서는 도 11에 도시된 구성 요소 모두가 디코딩 장치의 필수 구성 요소가 아닐 수 있고, 디코딩 장치는 도 11에 도시된 구성 요소보다 많거나 적은 구성 요소에 의해 구현될 수 있다.
일 실시예에 따른 디코딩 장치에서 예측부(230) 및 가산부(240)는 각각 별도의 칩(chip)으로 구현되거나, 적어도 둘 이상의 구성 요소가 하나의 칩을 통해 구현될 수도 있다.
일 실시예에 따른 디코딩 장치는, 현재 블록에 머지 모드(merge mode)가 적용되는 경우, 머지 인덱스(merge index)를 기반으로 상기 현재 블록의 주변 머지 후보 블록들(neighboring merge candidate blocks) 중 하나의 주변 머지 후보 블록을 도출할 수 있다(S1000). 보다 구체적으로, 디코딩 장치의 예측부(230)는 현재 블록에 머지 모드가 적용되는 경우, 머지 인덱스를 기반으로 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출할 수 있다.
일 예시에서, 머지 인덱스는 merge_index로 나타날 수 있다.
일 실시예에 다른 디코딩 장치는, 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트(refinement)가 수행되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터 및 리파인먼트 오프셋(refinement offset)에 대한 정보를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터(refine motion vector)를 도출할 수 있다(S1010). 보다 구체적으로, 디코딩 장치의 예측부(230)는 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터 및 리파인먼트 오프셋에 대한 정보를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출할 수 있다.
일 예시에서, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터는 MVP(Motion Vector Predictor)로 표현될 수 있고, 상기 리파인먼트 오프셋에 대한 정보는 refinement_offset으로 표현될 수 있다.
일 실시예에 따른 디코딩 장치는, 상기 리파인 움직임 벡터를 기반으로 상기 현재 블록에 대한 예측 샘플들을 도출할 수 있다(S1020). 보다 구체적으로, 디코딩 장치의 예측부(230)는 상기 리파인 움직임 벡터를 기반으로 상기 현재 블록에 대한 예측 샘플들을 도출할 수 있다.
일 실시예에 따른 디코딩 장치는, 상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성할 수 있다(S1030). 보다 구체적으로, 디코딩 장치의 가산부(240)는 상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성할 수 있다.
일 실시예에서, 디코딩 장치는 비트스트림으로부터 상기 머지 모드의 적용 여부를 나타내는 머지 플래그 정보를 포함하는 머지 모드 관련 정보를 획득(또는 디코딩)할 수 있다. 상기 머지 플래그 정보의 값이 1인 경우, 상기 현재 블록에 상기 머지 모드가 적용되고, 상기 머지 모드 관련 정보는 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그 정보를 더 포함할 수 있다. 상기 리파인먼트 플래그 정보의 값이 1인 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터에 상기 리파인먼트가 수행되고, 상기 머지 모드 관련 정보는 상기 리파인먼트 오프셋에 대한 정보를 더 포함할 수 있다.
일 예시에서, 상기 리파인먼트 플래그 정보는 refinement_flag로 표현될 수 있다.
일 실시예에서, 상기 리파인먼트 오프셋에 대한 정보는 리파인먼트 오프셋 인덱스를 지시하는 코드워드를 포함할 수 있고, 상기 리파인먼트 오프셋 인덱스는 리파인먼트 오프셋 벡터를 지시할 수 있다. 상기 리파인먼트 오프셋 벡터는, 리파인 오프셋 벡터, 리파인 오프셋, 리파인먼트 오프셋 등으로 다양하게 지칭될 수 있다.
일 실시예에서, 상기 도출된 주변 머지 후보 블록에 단일 예측(uni-prediction)이 적용되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 리파인 움직임 벡터는 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산(add)하여 도출될 수 있다.
일 실시예에서, 상기 도출된 주변 머지 후보 블록에 쌍 예측(bi-prediction)이 적용되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터는 L0 참조 픽처를 지시하는 L0 움직임 벡터 또는 L1 참조 픽처를 지시하는 L1 움직임 벡터를 나타내고, 상기 도출된 주변 머지 후보 블록의 상기 리파인 움직임 벡터는 상기 L0 참조 픽처를 지시하는 L0 리파인 움직임 벡터 또는 상기 L1 참조 픽처를 지시하는 L1 리파인 움직임 벡터를 나타낼 수 있다. 상기 L0(L1) 리파인 움직임 벡터는, 리파인 L0(L1) 움직임 벡터, 리파인먼트 LO(L1) 움직임 벡터, L0(L1) 리파인먼트 움직임 벡터 등으로 다양하게 지칭될 수 있다.
일 실시예에서, 상기 L0 리파인 움직임 벡터는 상기 L0 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, 상기 L1 리파인 움직임 벡터는 상기 L1 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 차감(subtract)하여 도출될 수 있다.
일 실시예에서, 상기 L0 참조 픽처와 상기 현재 블록을 포함하는 현재 픽처 간의 거리가 상기 L1 참조 픽처와 상기 현재 픽처 간의 거리보다 짧은 경우, 상기 L0 리파인 움직임 벡터는 상기 L0 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, 상기 L1 리파인 움직임 벡터는 상기 L1 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 차감하여 도출되며, 상기 L1 참조 픽처와 상기 현재 픽처 간의 거리가 상기 L0 참조 픽처와 상기 현재 픽처 간의 거리보다 짧은 경우, 상기 L1 리파인 움직임 벡터는 상기 L1 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, 상기 L0 리파인 움직임 벡터는 상기 L0 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 차감하여 도출될 수 있다.
일 실시예에서, 상기 머지 플래그 정보의 값이 1이고, 상기 주변 머지 후보 블록들 중 적어도 하나의 주변 머지 후보 블록에 쌍 예측이 적용되는 경우, 상기 머지 모드 관련 정보는 상기 리파인먼트 플래그를 더 포함할 수 있다.
일 실시예에서, 디코딩 장치는 비트스트림으로부터 상기 머지 모드의 적용 여부를 나타내는 머지 플래그 정보를 포함하는 머지 모드 관련 정보를 획득할 수 있다. 상기 머지 플래그 정보의 값이 1인 경우, 상기 현재 블록에 상기 머지 모드가 적용되고, 상기 머지 모드 관련 정보는 상기 리파인먼트 오프셋에 대한 정보를 더 포함하며, 상기 리파인먼트 오프셋에 대한 정보는 제로 벡터(zero vector)(예를 들어, (0, 0))를 지시하기 위한 리파인먼트 오프셋 인덱스에 대한 정보를 포함하는 것을 특징으로 할 수 있다.
일 실시예에서, 상기 리파인먼트 오프셋 인덱스는 리파인먼트 오프셋 리스트에 포함된 복수의 인덱스들 중 하나이고, 상기 리파인먼트 오프셋 벡터는 상기 리파인먼트 오프셋 리스트에 포함된 복수의 리파인먼트 오프셋 벡터 후보들 중 하나이며, 상기 현재 블록의 폭 및 높이를 기반으로 상기 복수의 인덱스들 각각과 상기 복수의 리파인먼트 오프셋 벡터 후보들 각각이 매핑(mapping)될 수 있다.
일 실시예에서, 디코딩 장치는 비트스트림으로부터 상기 머지 모드의 적용 여부를 나타내는 머지 플래그 정보를 포함하는 머지 모드 관련 정보를 획득할 수 있다. 상기 머지 플래그 정보의 값이 1이고, 상기 현재 블록의 폭과 높이의 곱이 64보다 큰 경우, 상기 머지 모드 관련 정보는 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그를 더 포함할 수 있다.
일 실시예에서, 디코딩 장치는 비트스트림으로부터 상기 머지 모드의 적용 여부를 나타내는 머지 플래그 정보를 포함하는 머지 모드 관련 정보를 획득할 수 있다. 상기 머지 플래그 정보의 값이 1인 경우, 상기 머지 모드 관련 정보는 상기 현재 블록에 쌍 예측이 적용되는지 여부를 나타내는 쌍 예측 플래그를 더 포함할 수 있다. 상기 쌍 예측 플래그의 값이 1이고, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터에 상기 리파인먼트가 적용되는 경우, 상기 머지 모드 관련 정보는 L0 리파인먼트 오프셋에 대한 정보 및 L1 리파인먼트 오프셋에 대한 정보를 더 포함할 수 있다.
일 실시예에서, 상기 머지 모드 관련 정보는, 상기 L0 리파인 움직임 벡터를 도출하기 위한 L0 리파인 오프셋 벡터와 상기 L1 리파인 움직임 벡터를 도출하기 위한 L1 리파인 오프셋 벡터의 관계를 지시하기 위한 리파인 오프셋 도출 인덱스(refine offset derivation index)에 대한 코드워드를 포함할 수 있다. 일 예시에서, 상기 리파인 오프셋 도출 인덱스는 refinement_offset_derivation으로 나타낼 수 있고, 상기 리파인 오프셋 도출 인덱스에 대한 코드워드의 예시는 표 15에 전술된 바 있다.
도 10 및 도 11의 디코딩 장치 및 디코딩 장치의 동작 방법에 따르면, 디코딩 장치는 현재 블록에 머지 모드가 적용되는 경우, 머지 인덱스를 기반으로 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출하고(S1000), 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터 및 리파인먼트 오프셋에 대한 정보를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출하고(S1010), 상기 리파인 움직임 벡터를 기반으로 상기 현재 블록에 대한 예측 샘플들을 도출하고(S1020), 상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성(S1030) 할 수 있다. 즉, 본 발명에 따르면 머지 모드에서 주변 머지 후보 블록의 움직임 벡터 및 시그널링 된 리파인먼트 오프셋을 기반으로 리파인 움직임 벡터를 도출함으로써 메모리 사용량을 감소시킬 수 있다.
본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.
또한, 본 발명의 실시예들이 적용되는 디코더 및 인코더는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recoder) 등을 포함할 수 있다.
또한, 본 발명의 실시예들이 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 발명에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다.
또한, 본 발명의 실시예들은 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 발명의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독가능한 캐리어 상에 저장될 수 있다.
도 12는 일 실시예에 따른 컨텐츠 스트리밍 시스템 구조도를 도시하는 도면이다.
본 발명이 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.
상기 인코딩 서버는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 상기 스트리밍 서버로 전송하는 역할을 한다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들이 비트스트림을 직접 생성하는 경우, 상기 인코딩 서버는 생략될 수 있다.
상기 비트스트림은 본 발명이 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 상기 스트리밍 서버는 상기 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 상기 비트스트림을 저장할 수 있다.
상기 스트리밍 서버는 웹 서버를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치에 전송하고, 상기 웹 서버는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 상기 웹 서버에 원하는 서비스를 요청하면, 상기 웹 서버는 이를 스트리밍 서버에 전달하고, 상기 스트리밍 서버는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 상기 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 상기 제어 서버는 상기 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.
상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하게 되는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.
상기 사용자 장치의 예로는, 휴대폰, 스마트 폰(smart phone), 노트북 컴퓨터(laptop computer), 디지털방송용 단말기, PDA(personal digital assistants), PMP(portable multimedia player), 네비게이션, 슬레이트 PC(slate PC), 태블릿 PC(tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(wearable device, 예를 들어, 워치형 단말기 (smartwatch), 글래스형 단말기 (smart glass), HMD(head mounted display)), 디지털 TV, 데스크탑 컴퓨터, 디지털 사이니지 등이 있을 수 있다.
상기 컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.
전술한 각각의 파트, 모듈 또는 유닛은 메모리(또는 저장 유닛)에 저장된 연속된 수행과정들을 실행하는 프로세서이거나 하드웨어 파트일 수 있다. 전술한 실시예에 기술된 각 단계들은 프로세서 또는 하드웨어 파트들에 의해 수행될 수 있다. 전술한 실시예에 기술된 각 모듈/블록/유닛들은 하드웨어/프로세서로서 동작할 수 있다. 또한, 본 발명이 제시하는 방법들은 코드로서 실행될 수 있다. 이 코드는 프로세서가 읽을 수 있는 저장매체에 쓰여질 수 있고, 따라서 장치(apparatus)가 제공하는 프로세서에 의해 읽혀질 수 있다.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(appICation-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다.

Claims (15)

  1. 디코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,
    현재 블록에 머지 모드(merge mode)가 적용되는 경우, 머지 인덱스(merge index)를 기반으로 상기 현재 블록의 주변 머지 후보 블록들(neighboring merge candidate blocks) 중 하나의 주변 머지 후보 블록을 도출하는 단계;
    상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트(refinement)가 수행되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터 및 리파인먼트 오프셋(refinement offset)에 대한 정보를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터(refine motion vector)를 도출하는 단계;
    상기 리파인 움직임 벡터를 기반으로 상기 현재 블록에 대한 예측 샘플들을 도출하는 단계; 및
    상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 단계를 포함하는 것을 특징으로 하는 영상 디코딩 방법.
  2. 제1항에 있어서,
    비트스트림으로부터 상기 머지 모드의 적용 여부를 나타내는 머지 플래그 정보를 포함하는 머지 모드 관련 정보를 획득하는 단계를 포함하되,
    상기 머지 플래그 정보의 값이 1인 경우, 상기 현재 블록에 상기 머지 모드가 적용되고, 상기 머지 모드 관련 정보는 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그 정보를 더 포함하며,
    상기 리파인먼트 플래그 정보의 값이 1인 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터에 상기 리파인먼트가 수행되고, 상기 머지 모드 관련 정보는 상기 리파인먼트 오프셋에 대한 정보를 더 포함하는 것을 특징으로 하는, 영상 디코딩 방법.
  3. 제2항에 있어서,
    상기 리파인먼트 오프셋에 대한 정보는 리파인먼트 오프셋 인덱스를 지시하는 코드워드를 포함하고, 상기 리파인먼트 오프셋 인덱스는 리파인먼트 오프셋 벡터를 지시하는 것을 특징으로 하는, 영상 디코딩 방법.
  4. 제3항에 있어서,
    상기 도출된 주변 머지 후보 블록에 단일 예측(uni-prediction)이 적용되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 리파인 움직임 벡터는 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산(add)하여 도출되는 것을 특징으로 하는, 영상 디코딩 방법.
  5. 제3항에 있어서,
    상기 도출된 주변 머지 후보 블록에 쌍 예측(bi-prediction)이 적용되는 경우, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터는 L0 참조 픽처를 지시하는 L0 움직임 벡터 또는 L1 참조 픽처를 지시하는 L1 움직임 벡터를 나타내고, 상기 도출된 주변 머지 후보 블록의 상기 리파인 움직임 벡터는 상기 L0 참조 픽처를 지시하는 L0 리파인 움직임 벡터 또는 상기 L1 참조 픽처를 지시하는 L1 리파인 움직임 벡터를 나타내는 것을 특징으로 하는, 영상 디코딩 방법.
  6. 제5항에 있어서,
    상기 L0 리파인 움직임 벡터는 상기 L0 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, 상기 L1 리파인 움직임 벡터는 상기 L1 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 차감(subtract)하여 도출되는 것을 특징으로 하는, 영상 디코딩 방법.
  7. 제5항에 있어서,
    상기 L0 참조 픽처와 상기 현재 블록을 포함하는 현재 픽처 간의 거리가 상기 L1 참조 픽처와 상기 현재 픽처 간의 거리보다 짧은 경우, 상기 L0 리파인 움직임 벡터는 상기 L0 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, 상기 L1 리파인 움직임 벡터는 상기 L1 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 차감하여 도출되며,
    상기 L1 참조 픽처와 상기 현재 픽처 간의 거리가 상기 L0 참조 픽처와 상기 현재 픽처 간의 거리보다 짧은 경우, 상기 L1 리파인 움직임 벡터는 상기 L1 움직임 벡터에 상기 리파인먼트 오프셋 벡터를 가산하여 도출되고, 상기 L0 리파인 움직임 벡터는 상기 L0 움직임 벡터에서 상기 리파인먼트 오프셋 벡터를 차감하여 도출되는 것을 특징으로 하는, 영상 디코딩 방법.
  8. 제2항에 있어서,
    상기 머지 플래그 정보의 값이 1이고, 상기 주변 머지 후보 블록들 중 적어도 하나의 주변 머지 후보 블록에 쌍 예측이 적용되는 경우, 상기 머지 모드 관련 정보는 상기 리파인먼트 플래그를 더 포함하는 것을 특징으로 하는, 영상 디코딩 방법.
  9. 제1항에 있어서,
    비트스트림으로부터 상기 머지 모드의 적용 여부를 나타내는 머지 플래그 정보를 포함하는 머지 모드 관련 정보를 획득하는 단계를 포함하되,
    상기 머지 플래그 정보의 값이 1인 경우, 상기 현재 블록에 상기 머지 모드가 적용되고, 상기 머지 모드 관련 정보는 상기 리파인먼트 오프셋에 대한 정보를 더 포함하며,
    상기 리파인먼트 오프셋에 대한 정보는 제로 벡터(zero vector)를 지시하기 위한 리파인먼트 오프셋 인덱스에 대한 정보를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.
  10. 제3항에 있어서,
    상기 리파인먼트 오프셋 인덱스는 리파인먼트 오프셋 리스트에 포함된 복수의 인덱스들 중 하나이고, 상기 리파인먼트 오프셋 벡터는 상기 리파인먼트 오프셋 리스트에 포함된 복수의 리파인먼트 오프셋 벡터 후보들 중 하나이며,
    상기 현재 블록의 폭 및 높이를 기반으로 상기 복수의 인덱스들 각각과 상기 복수의 리파인먼트 오프셋 벡터 후보들 각각이 매핑(mapping)되는 것을 특징으로 하는, 영상 디코딩 방법.
  11. 제1항에 있어서,
    비트스트림으로부터 상기 머지 모드의 적용 여부를 나타내는 머지 플래그 정보를 포함하는 머지 모드 관련 정보를 획득하는 단계를 포함하되,
    상기 머지 플래그 정보의 값이 1이고, 상기 현재 블록의 폭과 높이의 곱이 64보다 큰 경우, 상기 머지 모드 관련 정보는 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그를 더 포함하는 것을 특징으로 하는, 영상 디코딩 방법.
  12. 제1항에 있어서,
    비트스트림으로부터 상기 머지 모드의 적용 여부를 나타내는 머지 플래그 정보를 포함하는 머지 모드 관련 정보를 획득하는 단계를 포함하되,
    상기 머지 플래그 정보의 값이 1인 경우, 상기 머지 모드 관련 정보는 상기 현재 블록에 쌍 예측이 적용되는지 여부를 나타내는 쌍 예측 플래그를 더 포함하고,
    상기 쌍 예측 플래그의 값이 1이고, 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터에 상기 리파인먼트가 적용되는 경우, 상기 머지 모드 관련 정보는 L0 리파인먼트 오프셋에 대한 정보 및 L1 리파인먼트 오프셋에 대한 정보를 더 포함하는 것을 특징으로 하는, 영상 디코딩 방법.
  13. 제5항에 있어서,
    상기 머지 모드 관련 정보는, 상기 L0 리파인 움직임 벡터를 도출하기 위한 L0 리파인 오프셋 벡터와 상기 L1 리파인 움직임 벡터를 도출하기 위한 L1 리파인 오프셋 벡터의 관계를 지시하기 위한 리파인 오프셋 도출 인덱스(refine offset derivation index)에 대한 코드워드를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.
  14. 영상 디코딩을 수행하는 디코딩 장치에 있어서,
    현재 블록에 머지 모드가 적용되는 경우 머지 인덱스를 기반으로 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출하고, 상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우 상기 도출된 주변 머지 후보 블록의 상기 움직임 벡터 및 리파인먼트 오프셋에 대한 정보를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출하고, 상기 리파인 움직임 벡터를 기반으로 상기 현재 블록에 대한 예측 샘플들을 도출하는 예측부; 및
    상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 가산부를 포함하는 것을 특징으로 하는 디코딩 장치.
  15. 인코딩 장치에 의하여 수행되는 영상 인코딩 방법에 있어서,
    현재 블록에 머지 모드가 적용되는 경우, 상기 현재 블록의 주변 머지 후보 블록들 중 하나의 주변 머지 후보 블록을 도출하는 단계;
    상기 도출된 주변 머지 후보 블록의 움직임 벡터에 리파인먼트가 수행되는 경우, 상기 움직임 벡터를 기반으로 상기 도출된 주변 머지 후보 블록의 리파인 움직임 벡터를 도출하는 단계;
    상기 현재 블록에 상기 머지 모드가 적용되는지 여부를 나타내는 머지 플래그 정보, 상기 도출된 주변 머지 후보 블록을 나타내는 머지 인덱스, 상기 리파인먼트가 수행되는지 여부를 나타내는 리파인먼트 플래그 정보 및 상기 리파인 움직임 벡터와 상기 움직임 벡터의 차분을 나타내는 리파인먼트 오프셋에 대한 정보를 도출하는 단계; 및
    상기 머지 플래그 정보, 상기 머지 인덱스, 상기 리파인먼트 플래그 정보 및 상기 리파인먼트 오프셋에 대한 정보 중 적어도 하나를 포함하는 머지 모드 관련 정보를 인코딩하는 단계를 포함하는 것을 특징으로 하는 영상 인코딩 방법.
PCT/KR2019/008693 2018-07-15 2019-07-15 머지 모드에 기반하여 인터 예측을 수행하는 방법 및 장치 WO2020017841A1 (ko)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201862698224P 2018-07-15 2018-07-15
US62/698,224 2018-07-15

Publications (1)

Publication Number Publication Date
WO2020017841A1 true WO2020017841A1 (ko) 2020-01-23

Family

ID=69164076

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/008693 WO2020017841A1 (ko) 2018-07-15 2019-07-15 머지 모드에 기반하여 인터 예측을 수행하는 방법 및 장치

Country Status (1)

Country Link
WO (1) WO2020017841A1 (ko)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113966614A (zh) * 2020-03-16 2022-01-21 北京达佳互联信息技术有限公司 具有运动矢量差的合并模式的改进

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170134196A (ko) * 2016-05-28 2017-12-06 세종대학교산학협력단 예측 모션 벡터 리스트를 구성하는 방법 및 이의 장치
WO2018121506A1 (en) * 2016-12-27 2018-07-05 Mediatek Inc. Method and apparatus of bilateral template mv refinement for video coding

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170134196A (ko) * 2016-05-28 2017-12-06 세종대학교산학협력단 예측 모션 벡터 리스트를 구성하는 방법 및 이의 장치
WO2018121506A1 (en) * 2016-12-27 2018-07-05 Mediatek Inc. Method and apparatus of bilateral template mv refinement for video coding

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BROSS, BENJAMIN ET AL.: "Algorithm description for Versatile Video Coding and Test Model 5 (VTM 5", JOINT VIDEO EXPERTS TEAM (JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11. JVET-N1002 _V2. 14TH MEETING, 27 March 2019 (2019-03-27), Geneva, CH, pages 1 - 76, Retrieved from the Internet <URL:http://ptettix.im-evty.fr/jvet> [retrieved on 20191001] *
LI, HAO ET AL.: "A Motion Aided Merge Mode for HEVC", 2018 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP, 20 April 2018 (2018-04-20), pages 1773 - 1776, XP033404071, Retrieved from the Internet <URL:https://ieeexplore.ieee.org/abstract/docuinent/8461506> [retrieved on 20190930], DOI: 10.1109/ICASSP.2018.8461506 *
ROSEWARNE, C. ET AL.: "High Efficiency Video Coding (HEVC) Test Model 16 (HM 16) Improved Encoder Description Update 9", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG 16 WP3 AND ISO/IEC JTC1/SC29/WG11. JCTVC-AB1002. 28TH MEETING, 21 July 2017 (2017-07-21), Torino, IT, pages 1 - 63, Retrieved from the Internet <URL:http://phemx.it-sudparis.eu/jct> [retrieved on 20190927] *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113966614A (zh) * 2020-03-16 2022-01-21 北京达佳互联信息技术有限公司 具有运动矢量差的合并模式的改进

Similar Documents

Publication Publication Date Title
WO2020017840A1 (ko) Dmvr에 기반하여 인터 예측을 수행하는 방법 및 장치
WO2019194440A1 (ko) 인트라 예측 모드에 대한 룩업 테이블을 이용한 영상 코딩 방법 및 그 장치
WO2018070632A1 (ko) 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
WO2020091213A1 (ko) 영상 코딩 시스템에서 인트라 예측 방법 및 장치
WO2017048008A1 (ko) 영상 코딩 시스템에서 인터 예측 방법 및 장치
WO2020017861A1 (ko) 서브블록 단위의 시간적 움직임 정보 예측을 위한 인터 예측 방법 및 그 장치
WO2020189960A1 (ko) 크로마 포맷에 대한 정보를 시그널링 하는 방법 및 장치
WO2020009390A1 (ko) 영상 코딩 시스템에서 인터 예측에 따른 영상 처리 방법 및 장치
WO2019194507A1 (ko) 어파인 움직임 예측에 기반한 영상 코딩 방법 및 그 장치
WO2020141928A1 (ko) 영상 코딩 시스템에서 mmvd 에 따른 예측에 기반한 영상 디코딩 방법 및 장치
WO2020005002A1 (ko) 영상 코딩 시스템에서 인터 예측에 따른 템플릿 영역 도출 방법 및 장치
WO2017052272A1 (ko) 비디오 코딩 시스템에서 인트라 예측 방법 및 장치
WO2020013480A1 (ko) 인트라 예측 모드를 코딩하는 방법 및 그 장치
WO2020141932A1 (ko) Cpr 기반 mmvd를 이용하는 인터 예측 방법 및 장치
WO2020180100A1 (ko) 인트라 블록 코딩 기반 비디오 또는 영상 코딩
WO2017195914A1 (ko) 비디오 코딩 시스템에서 인터 예측 방법 및 장치
WO2019209026A1 (ko) 비디오 코딩 시스템에서 인터 예측 방법 및 장치
WO2020251338A1 (ko) 비디오 또는 영상 코딩 시스템에서의 인터 예측
WO2020145656A1 (ko) Tmvp 후보의 가용 여부를 시그널링하는 방법 및 장치
WO2020251340A1 (ko) 움직임 벡터 예측 기반 영상/비디오 코딩 방법 및 장치
WO2020141884A1 (ko) Cpr 기반 mmvd를 사용하는 영상 코딩 방법 및 장치
WO2019225932A1 (ko) 영상 코딩 시스템에서 dmvr을 사용하는 영상 디코딩 방법 및 그 장치
WO2020004879A1 (ko) 영상 코딩 시스템에서 복수의 주변 블록들을 사용하는 인터 예측에 따른 영상 디코딩 방법 및 장치
WO2019203533A1 (ko) 다중 움직임 모델을 고려한 인터 예측 방법 및 그 장치
WO2019199071A1 (ko) 영상 코딩 시스템에서 인터 예측에 따른 영상 디코딩 방법 및 장치

Legal Events

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

Ref document number: 19837845

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

Country of ref document: EP

Kind code of ref document: A1