WO2020004990A1 - 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 - Google Patents

인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 Download PDF

Info

Publication number
WO2020004990A1
WO2020004990A1 PCT/KR2019/007837 KR2019007837W WO2020004990A1 WO 2020004990 A1 WO2020004990 A1 WO 2020004990A1 KR 2019007837 W KR2019007837 W KR 2019007837W WO 2020004990 A1 WO2020004990 A1 WO 2020004990A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
current block
motion vector
prediction
merge candidate
Prior art date
Application number
PCT/KR2019/007837
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
Priority to CN201980024218.1A priority Critical patent/CN111971960B/zh
Priority to EP19824904.7A priority patent/EP3737091A4/en
Priority to CN202311016404.5A priority patent/CN116781896A/zh
Priority to JP2020547121A priority patent/JP7141463B2/ja
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020237030124A priority patent/KR20230131962A/ko
Priority to CN202311013940.XA priority patent/CN116800961A/zh
Priority to CN202311015983.1A priority patent/CN116828174A/zh
Priority to KR1020207016708A priority patent/KR102420839B1/ko
Priority to KR1020227023732A priority patent/KR102576194B1/ko
Publication of WO2020004990A1 publication Critical patent/WO2020004990A1/ko
Priority to US16/943,908 priority patent/US11089309B2/en
Priority to US17/360,734 priority patent/US11653004B2/en
Priority to JP2022143392A priority patent/JP7395683B2/ja
Priority to US18/134,808 priority patent/US20230308660A1/en
Priority to JP2023201648A priority patent/JP2024020576A/ja

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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/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/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/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • 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/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • 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/172Methods 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 picture, frame or field
    • 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/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/18Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • 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 moving image processing method, and more particularly, to a method for encoding / decoding a still image or moving image based on an inter prediction mode and an apparatus supporting the same.
  • the generating of the merge candidate list may include: checking whether a width and a height of the current block are smaller than a predefined minimum size; And when the width and height of the current block are greater than or equal to a predefined minimum size, as a result of the checking, the motion vector specified by the motion vector of the spatial neighboring block within a collocated picture of the current block. And adding the temporal neighboring block of the current block to the merge candidate list.
  • a merge candidate list generator configured to generate a merge candidate list using a temporal merge candidate;
  • a merge index acquisition unit for obtaining a merge index indicating a merge candidate used for inter prediction of the current block in the merge candidate list;
  • a subblock motion vector derivation unit for deriving motion vectors of each of a plurality of subblocks included in the current block based on a motion vector of a merge candidate used for inter prediction of the current block;
  • a prediction block generator for generating a prediction block of the current block by using the motion vector of each of the sub-blocks, wherein the size of the sub-block may be set to a fixed specific size greater than or equal to 8x8.
  • the merge candidate list generator may add, to the merge candidate list, a temporal neighboring block of the current block specified by a motion vector of the spatial neighboring block in a collocated picture of the current block. can do.
  • the merge candidate list generation unit is specified by a motion vector of a first spatial neighboring block in a predefined order among spatial neighboring blocks of the current block within a collocated picture of the current block.
  • the temporal neighboring block of the current block may be added to the merge candidate list.
  • the merge candidate list generator determines whether a width and a height of the current block are smaller than a predefined minimum size, and as a result of the checking, the width and height of the current block is smaller than a predefined minimum size. If greater than or equal to, the temporal neighboring block of the current block specified by the motion vector of the spatial neighboring block in the collocated picture of the current block may be added to the merge candidate list.
  • the predefined minimum size may be set to the size of the sub block.
  • a hardware gate count may be reduced and a loss of compression performance accompanying it may be minimized.
  • FIG. 1 is a schematic block diagram of an encoding apparatus in which an encoding of a video / image signal is performed, according to an embodiment to which the present invention is applied.
  • FIG. 3 is a diagram illustrating an example of a multi-type tree structure as an embodiment to which the present invention can be applied.
  • FIG. 4 is a diagram illustrating a signaling mechanism of partition partition information of a quadtree with nested multi-type tree structure according to an embodiment to which the present invention may be applied.
  • FIG. 5 is a diagram illustrating a method of dividing a CTU into multiple CUs based on a quadtree and accompanying multi-type tree structure as an embodiment to which the present invention may be applied.
  • FIG. 13 is a flowchart illustrating a merge candidate list construction method according to an embodiment to which the present invention is applied.
  • ATMVP Advanced Temporal Motion Vector Prediction
  • FIG. 17 is a diagram illustrating a method of deriving an Advanced Temporal Motion Vector Prediction (ATMVP) candidate according to an embodiment to which the present invention is applied.
  • ATMVP Advanced Temporal Motion Vector Prediction
  • 20 is a flowchart illustrating a method of generating an inter predicted block based on a candidate list according to an embodiment to which the present invention is applied.
  • FIG. 22 shows an example of a neighboring block used for inter prediction according to an embodiment to which the present invention is applied.
  • FIG. 23 is a diagram illustrating a method of deriving an extended Advanced Temporal Motion Vector Prediction (ATMVP) candidate according to an embodiment to which the present invention is applied.
  • ATMVP Advanced Temporal Motion Vector Prediction
  • 24 and 25 illustrate a fetching process of fetching a motion vector of a temporal neighboring block in a reference picture according to an embodiment to which the present invention is applied.
  • FIG. 27 is a flowchart illustrating a method of generating a candidate list according to an embodiment to which the present invention is applied.
  • 29 is a diagram illustrating an inter prediction apparatus according to an embodiment to which the present invention is applied.
  • FIG. 30 shows a video coding system to which the present invention is applied.
  • the 'processing unit' refers to a unit in which a process of encoding / decoding such as prediction, transformation, and / or quantization is performed.
  • the processing unit may be referred to as a 'processing block' or 'block'.
  • the processing unit may be interpreted to include a unit for the luma component and a unit for the chroma component.
  • the processing unit may correspond to a Coding Tree Unit (CTU), a Coding Unit (CU), a Prediction Unit (PU), or a Transform Unit (TU).
  • CTU Coding Tree Unit
  • CU Coding Unit
  • PU Prediction Unit
  • TU Transform Unit
  • the processing unit may be interpreted as a unit for a luma component or a unit for a chroma component.
  • the processing unit may be a coding tree block (CTB), a coding block (CB), a prediction block (PU), or a transform block (TB) for a luma component. May correspond to. Or, it may correspond to a coding tree block (CTB), a coding block (CB), a prediction block (PU), or a transform block (TB) for a chroma component.
  • CTB coding tree block
  • CB coding block
  • PU prediction block
  • TB transform block
  • the present invention is not limited thereto, and the processing unit may be interpreted to include a unit for a luma component and a unit for a chroma component.
  • a pixel, a pixel, and the like are referred to collectively as samples.
  • using a sample may mean using a pixel value or a pixel value.
  • FIG. 1 is a schematic block diagram of an encoding apparatus in which an encoding of a video / image signal is performed, according to an embodiment to which the present invention is applied.
  • the encoding apparatus 100 may include an image splitter 110, a subtractor 115, a transformer 120, a quantizer 130, an inverse quantizer 140, an inverse transformer 150,
  • the adder 155, the filter 160, the memory 170, the inter predictor 180, the intra predictor 185, and the entropy encoder 190 may be configured.
  • the inter predictor 180 and the intra predictor 185 may be collectively referred to as a predictor.
  • the predictor may include an inter predictor 180 and an intra predictor 185.
  • the transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in the residual processing unit.
  • the residual processing unit may further include a subtracting unit 115.
  • the image divider 110, the subtractor 115, the transformer 120, the quantizer 130, the inverse quantizer 140, the inverse transformer 150, and the adder 155 may be described.
  • the filtering unit 160, the inter prediction unit 180, the intra prediction unit 185, and the entropy encoding unit 190 may be configured by one hardware component (eg, an encoder or a processor).
  • the memory 170 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium.
  • DPB decoded picture buffer
  • the image divider 110 may divide the input image (or picture or frame) input to the encoding apparatus 100 into one or more processing units.
  • the processing unit may be called a coding unit (CU).
  • the coding unit may be recursively divided according to a quad-tree binary-tree (QTBT) structure from a coding tree unit (CTU) or a largest coding unit (LCU).
  • QTBT quad-tree binary-tree
  • CTU coding tree unit
  • LCU largest coding unit
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and / or a binary tree structure.
  • the quad tree structure may be applied first and the binary tree structure may be applied later.
  • the binary tree structure may be applied first.
  • the coding procedure according to the present invention may be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
  • a coding unit of size may be used as the final coding unit.
  • the coding procedure may include a procedure of prediction, transform, and reconstruction, which will be described later.
  • the processing unit may further include a prediction unit (PU) or a transform unit (TU).
  • the prediction unit and the transform unit may be partitioned or partitioned from the aforementioned final coding unit, respectively.
  • the prediction unit may be a unit of sample prediction
  • the transformation unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
  • an M ⁇ N block may represent a set of samples or transform coefficients composed of M columns and N rows.
  • a sample may generally represent a pixel or a value of a pixel, and may only represent pixel / pixel values of the luma component, or only pixel / pixel values of the chroma component.
  • a sample may be used as a term corresponding to one picture (or image) for a pixel or a pel.
  • the encoding apparatus 100 subtracts the prediction signal (predicted block, prediction sample array) output from the inter prediction unit 180 or the intra prediction unit 185 from the input image signal (original block, original sample array).
  • a signal may be generated (residual signal, residual block, residual sample array), and the generated residual signal is transmitted to the converter 120.
  • a unit that subtracts a prediction signal (prediction block, prediction sample array) from an input image signal (original block, original sample array) in the encoder 100 may be called a subtraction unit 115.
  • the prediction unit may perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied on a current block or CU basis. As described later in the description of each prediction mode, the prediction unit may generate various information related to prediction, such as prediction mode information, and transmit the generated information to the entropy encoding unit 190. The information about the prediction may be encoded in the entropy encoding unit 190 and output in the form of a bitstream.
  • the intra predictor 185 may predict the current block by referring to the samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • Non-directional mode may include, for example, DC mode and planner mode (Planar mode).
  • the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes according to the degree of detail of the prediction direction. However, as an example, more or less directional prediction modes may be used depending on the setting.
  • the intra predictor 185 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the inter predictor 180 may derive the predicted block with respect to the current block based on the reference block (reference sample array) specified by the motion vector on the reference picture.
  • the motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of the motion information between the neighboring block and the current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different.
  • the temporal neighboring block may be referred to as a collocated reference block, a collocated CU (colCU), and the like, and a reference picture including the temporal neighboring block is called a collocated picture (colPic). It may be.
  • the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks and provides information indicating which candidates are used to derive a motion vector and / or a reference picture index of the current block. Can be generated. Inter prediction may be performed based on various prediction modes.
  • the inter prediction unit 180 may use motion information of a neighboring block as motion information of a current block.
  • the residual signal may not be transmitted.
  • the motion vector of the neighboring block is used as a motion vector predictor and the motion vector difference is signaled by signaling a motion vector difference. Can be directed.
  • the prediction signal generated by the inter predictor 180 or the intra predictor 185 may be used to generate a reconstruction signal or to generate a residual signal.
  • the transformer 120 may apply transform techniques to the residual signal to generate transform coefficients.
  • the transformation technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a karhunen-loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT).
  • DCT discrete cosine transform
  • DST discrete sine transform
  • KLT karhunen-loeve transform
  • GBT graph-based transform
  • CNT conditionally non-linear transform
  • GBT means a conversion obtained from this graph when the relationship information between pixels is represented by a graph.
  • CNT refers to a transform that is generated based on and generates a prediction signal using all previously reconstructed pixels.
  • the conversion process may be applied to pixel blocks having the same size as the square, or may be applied to blocks of variable size rather than square.
  • the entropy encoding unit 190 may perform various encoding methods such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like.
  • the entropy encoding unit 190 may encode information necessary for video / image reconstruction other than quantized transform coefficients (for example, values of syntax elements) together or separately.
  • Encoded information eg, encoded video / image information
  • NALs network abstraction layer
  • the network may include a broadcasting network and / or a communication network
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like.
  • the signal output from the entropy encoding unit 190 may include a transmitting unit (not shown) for transmitting and / or a storing unit (not shown) for storing as an internal / external element of the encoding apparatus 100, or the transmitting unit It may be a component of the entropy encoding unit 190.
  • the quantized transform coefficients output from the quantization unit 130 may be used to generate a prediction signal.
  • the quantized transform coefficients may be reconstructed in the residual signal by applying inverse quantization and inverse transform through inverse quantization unit 140 and inverse transform unit 150 in a loop.
  • the adder 155 adds the reconstructed residual signal to the predicted signal output from the inter predictor 180 or the intra predictor 185 so that a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) is added. Can be generated. If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as the reconstructed block.
  • the adder 155 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstruction signal may be used for intra prediction of a next processing target block in a current picture, and may be used for inter prediction of a next picture through filtering as described below.
  • the filtering unit 160 may improve subjective / objective image quality by applying filtering to the reconstruction signal.
  • the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture is stored in the memory 170, specifically, the DPB of the memory 170.
  • the various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.
  • the filtering unit 160 may generate various information about the filtering and transmit the generated information to the entropy encoding unit 190.
  • the filtering information may be encoded in the entropy encoding unit 190 and output in the form of a bitstream.
  • the modified reconstructed picture transmitted to the memory 170 may be used as the reference picture in the inter predictor 180.
  • the encoding apparatus may avoid prediction mismatch between the encoding apparatus 100 and the decoding apparatus, and may improve encoding efficiency.
  • the memory 170 DPB may store the modified reconstructed picture for use as a reference picture in the inter predictor 180.
  • the memory 170 may store the motion information of the block from which the motion information in the current picture is derived (or encoded) and / or the motion information of the blocks in the picture that have already been reconstructed.
  • the stored motion information may be transmitted to the inter predictor 180 to use the motion information of the spatial neighboring block or the motion information of the temporal neighboring block.
  • the memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and transfer the reconstructed samples to the intra predictor 185.
  • FIG. 2 is a schematic block diagram of a decoding apparatus in which an embodiment of the present invention is applied and decoding of a video / image signal is performed.
  • the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantizer 220, an inverse transform unit 230, an adder 235, a filter 240, a memory 250, and an inter
  • the prediction unit 260 and the intra prediction unit 265 may be configured.
  • the inter predictor 260 and the intra predictor 265 may be collectively called a predictor. That is, the predictor may include an inter predictor 180 and an intra predictor 185.
  • the inverse quantization unit 220 and the inverse transform unit 230 may be collectively called a residual processing unit. That is, the residual processing unit may include an inverse quantization unit 220 and an inverse transformation unit 230.
  • the entropy decoder 210, the inverse quantizer 220, the inverse transformer 230, the adder 235, the filter 240, the inter predictor 260, and the intra predictor 265 are described in the embodiment. Can be configured by one hardware component (eg, decoder or processor).
  • the memory 170 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium.
  • DPB decoded picture buffer
  • the decoding apparatus 200 may reconstruct an image corresponding to a process in which video / image information is processed in the encoding apparatus of FIG. 1.
  • the decoding apparatus 200 may perform decoding using a processing unit applied in the encoding apparatus.
  • the processing unit of decoding may be a coding unit, for example, which may be split along a quad tree structure and / or a binary tree structure from a coding tree unit or a maximum coding unit.
  • the reconstructed video signal decoded and output through the decoding apparatus 200 may be reproduced through the reproducing apparatus.
  • the decoding apparatus 200 may receive a signal output from the encoding apparatus of FIG. 1 in the form of a bitstream, and the received signal may be decoded through the entropy decoding unit 210.
  • the entropy decoding unit 210 may parse the bitstream to derive information (eg, video / image information) necessary for image reconstruction (or picture reconstruction).
  • the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for image 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 may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have.
  • the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
  • the inverse quantization unit 220 may dequantize the quantized transform coefficients and output the transform coefficients.
  • the inverse quantization unit 220 may rearrange the quantized transform coefficients in the form of a two-dimensional block. In this case, the reordering may be performed based on the coefficient scan order performed by the encoding apparatus.
  • the inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients using a quantization parameter (for example, quantization step size information), and may obtain transform coefficients.
  • a quantization parameter for example, quantization step size information
  • the inverse transformer 230 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
  • the prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on the information about the prediction output from the entropy decoding unit 210, and may determine a specific intra / inter prediction mode.
  • the intra predictor 265 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the intra predictor 265 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the inter prediction unit 260 may derive the predicted block for the current block based on the reference block (reference sample array) specified by the motion vector on the reference picture.
  • the motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of the motion information between the neighboring block and the current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks and derive a motion vector and / or a reference picture index of the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information about the prediction may include information indicating a mode of inter prediction for the current block.
  • the adder 235 adds the obtained residual signal to the predictive signal (predicted block, predictive sample array) output from the inter predictor 260 or the intra predictor 265 to restore the reconstructed signal (reconstructed picture, reconstructed block). , Restore sample array). If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as the reconstructed block.
  • the adder 235 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstruction signal may be used for intra prediction of a next processing target block in a current picture, and may be used for inter prediction of a next picture through filtering as described below.
  • the filtering unit 240 may improve subjective / objective image quality by applying filtering to the reconstruction signal.
  • the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be stored in the memory 250, specifically, the DPB of the memory 250. Can be sent to.
  • the various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.
  • the (modified) reconstructed picture stored in the DPB of the memory 250 may be used as the reference picture in the inter predictor 260.
  • the memory 250 may store the motion information of the block from which the motion information in the current picture is derived (or decoded) and / or the motion information of the blocks in the picture that have already been reconstructed.
  • the stored motion information may be transmitted to the inter predictor 260 to use the motion information of the spatial neighboring block or the motion information of the temporal neighboring block.
  • the memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and transfer the reconstructed samples to the intra predictor 265.
  • the embodiments described by the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding apparatus 100 are respectively the filtering unit 240 and the inter prediction of the decoding apparatus 200. The same may also apply to the unit 260 and the intra predictor 265.
  • the video / image coding method according to this document may be performed based on various detailed techniques, and each detailed technique will be described as follows. Techniques described below include prediction, residual processing ((inverse) transformation, (inverse) quantization, etc.), syntax element coding, filtering, partitioning / division, etc. in the video / image encoding / decoding procedures described above and / or described below. It will be apparent to those skilled in the art that they may be involved in related procedures.
  • the block partitioning procedure according to this document may be performed by the image splitter 110 of the encoding apparatus described above, and the partitioning related information may be processed (encoded) by the entropy encoding unit 190 and transmitted to the decoding apparatus in the form of a bitstream. .
  • the entropy decoding unit 210 of the decoding apparatus derives a block partitioning structure of the current picture based on the partitioning related information obtained from the bitstream, and based on this, a series of procedures (eg, prediction and residual) for image decoding. Processing, block reconstruction, in-loop filtering, etc.).
  • the encoding apparatus constructs a (A) MVP candidate list to be described later, and among the mvp (motion vector predictor) candidates included in the (A) MVP candidate list.
  • the motion vector of the selected mvp candidate may be used as mvp of the current block.
  • a motion vector indicating a reference block derived by the above-described motion estimation may be used as the motion vector of the current block, and the difference with the motion vector of the current block is smallest among the mvp candidates.
  • An mvp candidate with a motion vector may be the selected mvp candidate.
  • the inter prediction procedure may include determining an inter prediction mode, deriving motion information according to the determined prediction mode, and performing prediction based on the derived motion information (prediction sample generation).
  • inter prediction modes may be used for prediction of the current block in the picture.
  • various modes such as merge mode, skip mode, MVP mode, and affine mode
  • DMVR Decoder side motion vector refinement
  • AMVR adaptive motion vector resolution
  • the affine mode may be called an affine motion prediction mode.
  • MVP mode may be referred to as advanced motion vector prediction (AMVP) mode.
  • the motion information of the current prediction block is not directly transmitted, and the motion information of the current prediction block is derived using the motion information of the neighboring prediction block. Accordingly, the motion information of the current prediction block can be indicated by transmitting flag information indicating that the merge mode is used and a merge index indicating which neighboring prediction blocks are used.
  • the coding apparatus inserts spatial merge candidates derived by searching for spatial neighboring blocks of the current block to the merge candidate list (S1301).
  • the spatial neighboring blocks may include a lower left corner peripheral block, a left peripheral block, a right upper corner peripheral block, an upper peripheral block, and an upper left corner peripheral block of the current block.
  • additional peripheral blocks such as a right peripheral block, a lower peripheral block, and a lower right peripheral block may be further used as the spatial peripheral blocks.
  • the coding apparatus may search for the spatial neighboring blocks based on priority, detect available blocks, and derive motion information of the detected blocks as the spatial merge candidates.
  • the encoder and the decoder may search the five blocks shown in FIG. 12 in the order of A1, B1, B0, A0, and B2, and index the available candidates sequentially to form a merge candidate list.
  • the modified position is ((xTnb >> 4) ⁇ 4), ( The motion information of the prediction block located at yTnb >> 4) ⁇ 4)) may be used for the temporal merge candidate.
  • the constant storage unit is an 8x8 sample unit, if the coordinates of the temporal neighboring block are (xTnb, yTnb), the modified position is ((xTnb >> 3) ⁇ 3), (yTnb> The motion information of the prediction block located at > 3) ⁇ 3) can be used for the temporal merge candidate.
  • the motion information of the selected merge candidate may be used as the motion information of the current block, and the prediction samples of the current block may be derived based on the motion information of the current block.
  • An encoder may derive residual samples of the current block based on the prediction samples, and may signal residual information about the residual samples to a decoder.
  • the decoder may generate reconstructed samples based on the residual samples derived from the residual information and the prediction samples, and generate a reconstructed picture based on the same.
  • the motion information of the current block may be derived in the same manner as when the merge mode is applied. However, when the skip mode is applied, the residual signal for the corresponding block is omitted, and thus prediction samples may be used as reconstructed samples.
  • ATMVP Advanced Temporal Motion Vector Prediction
  • an ATMVP is a method of deriving motion information for subblocks of a coding unit based on motion information of collocated blocks of a neighboring picture in time. This can improve the performance of Temporal Motion Vector Prediction (TMVP) and reduce the complexity of common or worst case.
  • TMVP Temporal Motion Vector Prediction
  • ATMVP may also be referred to as a subblock-based temporal merging candidate, SbTMVP.
  • the encoder / decoder may find the motion vector of the first available spatial neighbor block while checking the merge candidate configuration order shown in FIG. 17.
  • the position indicated by the motion vector in the reference picture may be derived as col-PB (ie, an ATMVP candidate).
  • the encoder / decoder may check whether the upper left block TL is inter predicted. If the upper left block TL is inter predicted, the encoder / decoder may set the motion vector of the upper left block TL as a default for motion vector prediction.
  • the encoder / decoder may check whether the lower left block BL is inter predicted. If the lower left block BL is inter predicted, the encoder / decoder may set the motion vector of the lower left block BL as a default for motion vector prediction.
  • the encoder / decoder may check whether the lower right block BR is inter predicted. If the lower right block BR is inter predicted, the encoder / decoder may set the motion vector of the lower right block BR as a default for motion vector prediction.
  • the encoder / decoder may set the intra mode to default.
  • the encoder / decoder may compress a default motion vector into motion information.
  • a method for performing ATMVP based on an adaptive subblock size is proposed.
  • the sub block size used for ATMVP derivation may be adaptively applied at the slice level.
  • the encoder can signal one default sub-block size used for ATMVP motion derivation to the decoder at the sequence level.
  • a flag may be signaled at the picture or slice level. If the flag is false, the ATMVP subblock size may be additionally signaled in the slice header.
  • the region of the collocated block for ATMVP may include an NxN block of one column in the current CTU and collocated picture.
  • the NxN block may be a 4x4 block, but the present invention is not limited thereto.
  • the ATMVP collocated block identified by the motion vector of the merge candidate may be moved to be located within the restricted area. For example, it may be moved to be located at the nearest boundary within the restricted area.
  • motion information of a spatially neighboring block may be referred to as a temporal motion vector.
  • the encoder / decoder may derive a sub block based time merge candidate when the width and height of the current coding block are greater than or equal to a predetermined specific size.
  • the predetermined specific size may be eight.
  • the encoder / decoder may set the motion information of the first spatial candidate among the available spatial candidates as a temporal motion vector.
  • the encoder / decoder may search for available spatial candidates in the order of A1, B1, B0, A0.
  • the encoder / decoder may set a spatial candidate whose reference picture is the same as the collocated picture among the available spatial candidates as a temporal motion vector.
  • the encoder / decoder may check whether a spatial candidate of one fixed position is available and, if available, set the motion vector of the spatial candidate as a temporal motion vector. For example, the spatial candidate at one fixed position may be set to a block at position A1.
  • the encoder / decoder may specify the position of a collocated block in a collocated picture using the temporal motion vector. For example, the following Equation 1 may be used.
  • (xColCtrCb, yColCtrCb) represents the top-left sample position of the collocated coding block including the right bottom sample of the central position
  • tempMv represents the time motion vector
  • the encoder / decoder may determine a position for deriving motion information of each subblock in the current coding block on a subblock basis.
  • the location of the collocated subblock in the collocated picture may be derived using Equation 2 below.
  • (xSb, ySb) represents the position of the current subblock.
  • the encoder / decoder may use the motion information of the collocated block specified using a temporal motion vector.
  • 20 is a flowchart illustrating a method of generating an inter predicted block based on a candidate list according to an embodiment to which the present invention is applied.
  • FIG. 20 an inter prediction process performed by the inter prediction units 180 and 260 described above with reference to FIGS. 1 and 2 is illustrated.
  • a merge mode and an inter mode that is, (A) MVP mode
  • PMI predicted motion information
  • the present invention is not limited thereto, and various other modes may be applied for inter prediction.
  • the merge mode and the inter mode may further include motion information differences (MVDs), reference lists (or, in addition to candidate indexes) to derive the final PMI used for predictive block generation.
  • MVDs motion information differences
  • reference lists or, in addition to candidate indexes
  • At least one of a reference picture list) and / or a reference picture index may be distinguished according to whether a bitstream is transmitted.
  • the encoder / decoder checks whether a merge mode is applied to the current block (S2001).
  • the encoder / decoder When merge mode is applied to the current block, the encoder / decoder generates a merge candidate (or merge candidate list) and selects a PMI used for inter prediction of the current block (S2002, 2003). When the merge mode is applied, the encoder may transmit the selected PMI information as a merge index to the decoder.
  • the merge index may indicate a specific merge candidate among merge candidates.
  • the encoder / decoder may use the motion information of the specific merge candidate as a motion vector for inter prediction of the current block.
  • the encoder / decoder If merge mode is not applied to the current block (i.e., inter mode is applied), the encoder / decoder generates an inter candidate (or inter candidate list), and the initial PMI (or motion) used for inter prediction of the current block.
  • a motion vector predictor is selected (S2004, S2005).
  • the encoder may transmit the selected PMI information to the decoder as a motion vector predictor flag (or index).
  • the motion vector predictor flag may indicate a specific inter candidate among inter candidates.
  • the inter candidate may be referred to as a motion vector predictor candidate.
  • the encoder / decoder derives the motion vector used for prediction by adding the motion vector difference to the initial PMI (S2006).
  • the encoder / decoder generates a prediction block of the current block by using the derived motion vector (S2007).
  • the encoder / decoder does not use additional syntax (or syntax elements) other than signaling of the candidate index (i.e., merge index) to derive the final PMI, and moves the selected candidate through the candidate index.
  • the prediction block of the current block is generated using the information.
  • the candidate generation process is performed in step S2002 (or block).
  • the candidate generation process is performed in step S2004 in a manner similar to the merge mode.
  • the encoder / decoder receives additional motion information based on the motion information of the selected candidate to derive the final PMI, and generates a prediction block of the current block using the same.
  • 21 is a flowchart illustrating a method of generating a candidate list according to an embodiment to which the present invention is applied.
  • the decoder will be mainly described. However, the method for generating a candidate list according to the present embodiment may be performed in the encoder as well. In an embodiment, the method described above with reference to FIGS. 12 to 17 may be applied, and redundant description thereof will be omitted.
  • the candidate configuration order shown in FIG. 21 is one example, and the present invention is not limited thereto, and the order may be changed or some steps may be omitted or added.
  • the candidates added in FIG. 21 are just examples, and various other candidates may be added, and some of the candidates shown in FIG. 21 may not be used.
  • the decoder adds a temporal neighboring block (or temporal candidate) to the candidate list (S2102).
  • the decoder adds the combined motion information (or the combined motion vector) to the candidate list, and adds the zero motion vector to the candidate list (S2103 and S2104).
  • FIG. 22 shows an example of a neighboring block used for inter prediction according to an embodiment to which the present invention is applied.
  • the encoder / decoder may construct a candidate list using motion information of spatial neighboring blocks based on spatial similarity and motion information of temporal neighboring blocks based on temporal similarity.
  • the motion information of the spatial neighboring block may be referred to as spatial neighboring information
  • the motion information of the temporal neighboring block may be referred to as temporal neighboring information and corresponding time information.
  • the encoder / decoder may construct a candidate list using spatial candidates (or spatial neighbor information) as shown in FIG. 22.
  • the encoder / decoder may construct a candidate list using time candidates (or corresponding time information) as shown in FIG. 22.
  • ATMVP is a method of deriving motion information for sub-blocks based on motion information of a collocated block of temporally neighboring pictures. Through this, it is possible to improve the performance and complexity of Temporal Motion Vector Prediction (TMVP).
  • TMVP Temporal Motion Vector Prediction
  • ATMVP may be referred to as a subblock-based temporal merging candidate, SbTMVP and the like.
  • TMVP using the motion vector of the collocated block in the right-bottom or center position of the current block does not reflect the movement in the picture, so that the motion vector of the neighboring block
  • the motion vector of the collocated block can be used as a motion vector predictor.
  • the encoder / decoder may find the motion vector of the first available spatial neighbor block while checking in a preset merge candidate configuration order. . Subsequently, the encoder / decoder may determine a location indicated by a corresponding motion vector (ie, a temporal motion vector) as a collocated block within a reference picture. Through this, the accuracy of the corresponding block (or time motion vector) can be increased.
  • the reference picture may be defined as a collocated picture.
  • the encoder / decoder may derive the motion vector of the corresponding block specified by the temporal motion vector in sub-block units within the current coding block. In one embodiment, if there is no motion vector corresponding to a particular subblock (or not available), the encoder / decoder sets the motion vector of the block located in the center of the collocated block as the representative motion vector ( Or stored), and used as a motion vector for the specific subblock.
  • the encoder / decoder may increase the number of merge candidates. And, additional syntax (or syntax element) may not be used for this.
  • the syntax indicating the maximum number of merge candidates may be transmitted from the encoder to the decoder via higher level syntax.
  • the higher level syntax may be, for example, a sequence parameter set (SPS), a picture parameter set (PPS), and a slice header.
  • SPS sequence parameter set
  • PPS picture parameter set
  • slice header For example, the maximum number of merge candidates may be six.
  • an ATMVP-ext candidate representing an extended ATMVP candidate may be added to the candidate list.
  • ATMVP-ext is a method for improving the existing TMVP, similar to the above-described ATMVP, it is possible to derive the motion vector of the sub-block unit by combining the spatial neighboring block and the temporal neighboring block.
  • FIG. 23 is a diagram illustrating a method of deriving an extended Advanced Temporal Motion Vector Prediction (ATMVP) candidate according to an embodiment to which the present invention is applied.
  • ATMVP Advanced Temporal Motion Vector Prediction
  • the encoder / decoder is a motion vector of a spatial neighboring block in the left horizontal direction and an upper vertical position, and a temporal neighboring block in the right horizontal and lower vertical position to derive the motion vector of each sub-block in the current block 2301.
  • the motion vector of can be used.
  • the encoder / decoder derives the motion vector of the spatial neighboring blocks at positions L-0 and A-0 and derives the motion vector for the subblock at position 0 in the current block 2301, and the current block.
  • a motion vector of the temporal neighboring blocks of the subblocks at positions 1 and 4 in 2301 may be derived, and an average value of the four motion vectors may be calculated.
  • the encoder / decoder may determine the average of the four motion vectors as the motion vector of the sub-block at position 0 in the current block 2301.
  • the encoder / decoder may calculate a motion vector average value of the available blocks.
  • the reference index may be preset (eg, reference index 0 or 1, collocated picture).
  • the encoder / decoder may increase the number of merge candidates to apply the extended ATMVP mode. And, additional syntax (or syntax element) may not be used for this.
  • 24 and 25 illustrate a fetching process of fetching a motion vector of a temporal neighboring block in a reference picture according to an embodiment to which the present invention is applied.
  • the encoder / decoder stores a memory (170 of FIG. 1 and 250 of FIG. 2) (specifically, in order to derive a motion vector (hereinafter, referred to as a temporal motion vector)) of a temporal neighboring block of the current block.
  • a motion vector hereinafter, referred to as a temporal motion vector
  • the motion information stored in the corresponding position in the reference picture (or collocated picture) of the DPB of the memory may be patched (or derived, acquired).
  • the memory includes various storage media such as DRAM, USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. can do.
  • the corresponding position in the reference picture may be a right-bottom block of the current block or a center position (ie, TMVP) of the current block. It may be a location (ie, ATMVP) specified by the motion vector of the spatial neighboring block of the block.
  • the encoder / decoder patches one motion vector stored in the corresponding position block 2502 of the current block in the DRAM 2501 as a time motion vector.
  • FIG. 26 is a diagram illustrating a fetching process of fetching a motion vector of a temporal neighboring block on a sub-block basis according to an embodiment to which the present invention is applied.
  • the memory may include DRAM 2601, USB, SD, CD, DVD. It may include a variety of storage media, such as Blu-ray, HDD, SSD.
  • the encoder / decoder blocks the corresponding position block 2602 of the current block in the reference picture (or collocated picture) stored in the DRAM 2601.
  • Four pieces of motion information corresponding to each sub block are patched within the frame. That is, when patching motion information in units of four sub-blocks, the encoder / decoder should patch about four times as much data from the DRAM 2601 as described above with reference to FIG. 25.
  • the size of the sub block has a decisive influence on the amount of data patched from the DRAM 2601.
  • FIG. Therefore, the size of the subblock may have a big influence on the decoder and encoder pipeline configuration and throughput depending on the hardware patch performance.
  • subblock-based motion compensation methods such as affine motion prediction
  • motion vectors are derived in sub-block units based on the derived control point motion vectors, but ATMVP, that is, sub-block-based time merge candidates (or predictors).
  • ATMVP sub-block-based time merge candidates (or predictors).
  • Burden is a big difference between Affine motion prediction and ATMVP.
  • the present invention proposes a method of setting (or determining and defining) a fixed minimum subblock size and performing a patch process for time motion information in units of set subblocks in order to solve such a problem.
  • patch and motion compensation are performed by dividing the current block in units of 4x4 subblocks.
  • the memory for which the patch is required may be excessively large according to the above and the size of the current block.
  • the hardware burden can be very large and compression performance can be degraded.
  • an embodiment of the present invention proposes a method of dividing a fixed 8x8 subblock or a fixed 16x16 subblock.
  • the method proposed in this embodiment has proved less loss of compression performance compared to the hardware complexity improvement through the experimental results, the experimental results are shown in Tables 2 to 5 below.
  • Table 2 shows the compression performance of performing ATMVP in units of 4 ⁇ 4 subblocks.
  • Table 3 below shows the compression performance of ATMVP in units of 8x8 subblocks.
  • Table 4 below shows the compression performance of ATMVP in units of 16 ⁇ 16 subblocks.
  • the encoder / decoder may perform sub-block based motion compensation (ie, ATMVP, ATMVP-ext) in units larger than 4x4, that is, 8x8, 16x16, or 32x32, and subblocks of the corresponding size.
  • Sub-block based time motion information may be patched in units.
  • the encoder / decoder uses a sub-block based time motion information derivation method (ie, ATMVP, ATMVP-ext). May not be performed.
  • a sub-block based time motion information derivation method ie, ATMVP, ATMVP-ext
  • the size of the coding block (coding unit or prediction unit) may be divided into blocks of 4x4 or small size such as 4x8 and 8x4.
  • the size of the current block is smaller than the minimum sub-block size for patching time motion information (or time motion vector) may occur.
  • the patch may be performed with the minimum coding block size instead of the minimum sub block size in terms of hardware.
  • the present invention may not use a sub-block time motion vector candidate when the size of the current processing block (or the width and / or height of the current block) is smaller than a predefined minimum size.
  • the encoder / decoder is a sub-block based time motion vector only if the size of the current processing block (or the width and / or height of the current block) is greater than or equal to a predefined minimum size.
  • Candidates can be added to the candidate list.
  • Equation 3 below may be used as a condition for using a sub-block time motion vector candidate.
  • FIG. 27 is a flowchart illustrating a method of generating a candidate list according to an embodiment to which the present invention is applied.
  • the decoder will be mainly described.
  • the method of generating a candidate list according to the present embodiment may be performed in the same manner in the encoder.
  • the method described above with reference to FIGS. 12 to 17 and 21 to 26 may be applied, and a redundant description thereof will be omitted.
  • the candidate configuration order illustrated in FIG. 27 is one example, and the present invention is not limited thereto, and the order may be changed or some steps may be omitted or added.
  • the candidates added in FIG. 27 are merely examples, and various other candidates may be added, and some of the candidates shown in FIG. 27 may not be used.
  • the decoder adds a spatial neighboring block (or spatial candidate) to the candidate list (S2701). For example, the decoder may add the neighbor candidate blocks of FIG. 16 described above to the candidate list.
  • the decoder checks whether the width and height of the current block are greater than or equal to a predefined minimum size (S2702).
  • the decoder adds a temporal neighboring block (or temporal candidate) to the candidate list (S2703). If the width or height of the current block is smaller than the predefined minimum size, the decoder may not add a temporal neighboring block (or temporal candidate) to the candidate list.
  • the decoder adds the combined motion information (or the combined motion vector) to the candidate list, and adds the zero motion vector to the candidate list (S2704 and S2705).
  • FIG. 28 is a flowchart illustrating a method of generating an inter prediction block according to an embodiment to which the present invention is applied.
  • a decoder is mainly described for convenience of description, but the present invention is not limited thereto, and the method of generating an inter prediction block based on inter prediction may be substantially applied to the encoder.
  • the decoder When the merge mode is applied to the current block, the decoder generates a merge candidate list using a spatial neighboring block and a temporal neighboring block of the current block. (S2801).
  • the decoder obtains a merge index indicating a candidate used for inter prediction of the current block in the merge candidate list (S2802).
  • the decoder derives a motion vector of each of the plurality of subblocks included in the current block based on the motion vector of the candidate used for inter prediction of the current block (S2803).
  • the decoder generates a predictive sample of the current block by using the motion vector of each of the subblocks (S2804).
  • the size of the sub-block may be set to a fixed specific size greater than or equal to 8x8.
  • the generating of the merge candidate list may include: merging candidate the temporal neighboring block of the current block specified by the motion vector of the spatial neighboring block in a collocated picture of the current block; It may include adding to the list.
  • the predefined minimum size may be set to the size of the sub block.
  • 29 is a diagram illustrating an inter prediction apparatus according to an embodiment to which the present invention is applied.
  • the inter prediction unit is illustrated as one block for convenience of description, but the inter prediction unit may be implemented as a configuration included in the encoder and / or the decoder.
  • the inter prediction unit implements the functions, processes, and / or methods proposed in FIGS. 8 to 32.
  • the inter prediction unit may include a merge candidate list generator 2901, a merge index obtainer 2902, a sub block motion vector derivator 2904, and a predicted block generator 2904.
  • the merge candidate list generator 2901 may merge the merge candidate list using a spatial neighboring block and a temporal neighboring block of the current block. Create a merge candidate list.
  • a merge index obtainer 2902 obtains a merge index indicating a candidate used for inter prediction of the current block in the merge candidate list.
  • the sub block motion vector derivation unit 2907 derives motion vectors of each of the plurality of sub blocks included in the current block based on the motion vector of the candidate used for inter prediction of the current block.
  • the predictive block generator 2904 generates a predictive sample of the current block by using the motion vector of each of the subblocks.
  • the size of the sub-block may be set to a fixed specific size greater than or equal to 8x8.
  • the merge candidate list generation unit 2901 may merge the temporal neighboring block of the current block specified by the motion vector of the spatial neighboring block in a collocated picture of the current block. Can be added to the candidate list.
  • the merge candidate list generator 2901 may include a motion vector of a first spatial neighboring block in a predefined order among the spatial neighboring blocks of the current block within a collocated picture of the current block.
  • the temporal neighboring block of the current block specified by may be added to the merge candidate list.
  • the merge candidate list generator 2901 determines whether the width and height of the current block are smaller than a predefined minimum size, and as a result of the checking, the width and height of the current block are predefined. If greater than or equal to the minimum size, the temporal neighboring block of the current block specified by the motion vector of the spatial neighboring block in the collocated picture of the current block may be added to the merge candidate list. have.
  • the predefined minimum size may be set to the size of the sub block.
  • FIG. 30 shows a video coding system to which the present invention is applied.
  • the video coding system can include a source device and a receiving device.
  • the source device may deliver the encoded video / image information or data to a receiving device through a digital storage medium or network in a file or streaming form.
  • the source device may include a video source, an encoding apparatus, and a transmitter.
  • the receiving device may include a receiver, a decoding apparatus, and a renderer.
  • the encoding device may be called a video / image encoding device, and the decoding device may be called a video / image decoding device.
  • the transmitter may be included in the encoding device.
  • the receiver may be included in the decoding device.
  • the renderer may include a display unit, and the display unit may be configured as a separate device or an external component.
  • the video source may acquire the video / image through a process of capturing, synthesizing, or generating the video / image.
  • the video source may comprise a video / image capture device and / or a video / image generation device.
  • the video / image capture device may include, for example, one or more cameras, video / image archives including previously captured video / images, and the like.
  • Video / image generation devices may include, for example, computers, tablets and smartphones, and may (electronically) generate video / images.
  • a virtual video / image may be generated through a computer or the like. In this case, the video / image capturing process may be replaced by a process of generating related data.
  • the encoding device may encode the input video / image.
  • the encoding apparatus may perform a series of procedures such as prediction, transform, and quantization for compression and coding efficiency.
  • the encoded data (encoded video / image information) may be output in the form of a bitstream.
  • the transmitter may transmit the encoded video / video information or data output in the form of a bitstream to the receiver of the receiving device through a digital storage medium or a network in the form of a file or streaming.
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like.
  • the transmission unit may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast / communication network.
  • the receiver may extract the bitstream and transmit the extracted bitstream to the decoding apparatus.
  • the decoding apparatus may decode the video / image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding apparatus.
  • FIG. 31 is a diagram illustrating a structure of a content streaming system according to an embodiment to which the present invention is applied.
  • the encoding server compresses content input from multimedia input devices such as a smart phone, 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 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 a medium for informing the user of what service.
  • the web server delivers 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, such as 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 such as smartwatches, glass glasses, head mounted displays, digital TVs, desktops Computer, digital signage, and the like.
  • Each server in the content streaming system may be operated as a distributed server, in which case data received from each server may be distributed.
  • the embodiments described herein may be implemented and performed on a processor, microprocessor, controller, or 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 present invention is 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, a real time communication device such as video communication, a mobile streaming device, Storage media, camcorders, video on demand (VoD) service providing devices, OTT video (Over the top video) devices, Internet streaming service providing devices, three-dimensional (3D) video devices, video telephony video devices, and medical video devices. It can be used to process video signals or data signals.
  • the OTT video device may include a game console, a Blu-ray player, an internet access TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), and the like.
  • the processing method to which the present invention is applied can be produced in the form of a program executed by a computer, and can 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 kinds of storage devices and distributed storage devices in which computer readable data is stored.
  • 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.
  • an embodiment of the present invention may be implemented as a computer program product by program code, which 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.
  • an embodiment of the present invention may be implemented in the form of a module, procedure, function, etc. that performs the functions or operations described above.
  • the software code may be stored in memory and driven by the processor.
  • the memory may be located inside or outside the processor, and may exchange data with the processor by various known means.

Abstract

본 발명에서는 비디오 신호를 디코딩을 수행하는 방법 및 이를 위한 장치가 개시된다. 구체적으로, 인터 예측 모드 기반으로 영상을 복호화하는 방법에 있어서, 현재 블록에 머지 모드(merge mode)가 적용되는 경우, 상기 현재 블록의 공간 이웃 블록(spatial neighboring block) 및 시간 머지 후보(temporal neighboring block)를 이용하여 머지 후보 리스트(merge candidate list)를 생성하는 단계; 상기 머지 후보 리스트 내에서 상기 현재 블록의 인터 예측에 이용되는 후보를 지시하는 머지 인덱스(merge index)를 획득하는 단계; 상기 현재 블록의 인터 예측에 이용되는 후보의 움직임 벡터에 기초하여 상기 현재 블록에 포함된 복수의 서브 블록들 각각의 움직임 벡터를 유도하는 단계; 및 상기 서브 블록들 각각의 움직임 벡터를 이용하여 상기 현재 블록의 예측 샘플을 생성하는 단계를 포함할 수 있다.

Description

인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
본 발명은 정지 영상 또는 동영상 처리 방법에 관한 것으로서, 보다 상세하게 인터 예측 모드(inter prediction mode) 기반으로 정지 영상 또는 동영상을 인코딩/디코딩하는 방법 및 이를 지원하는 장치에 관한 것이다.
압축 부호화란 디지털화한 정보를 통신 회선을 통해 전송하거나, 저장 매체에 적합한 형태로 저장하기 위한 일련의 신호 처리 기술을 의미한다. 영상, 이미지, 음성 등의 미디어가 압축 부호화의 대상이 될 수 있으며, 특히 영상을 대상으로 압축 부호화를 수행하는 기술을 비디오 영상 압축이라고 일컫는다.
차세대 비디오 컨텐츠는 고해상도(high spatial resolution), 고프레임율(high frame rate) 및 영상 표현의 고차원화(high dimensionality of scene representation)라는 특징을 갖게 될 것이다. 그러한 컨텐츠를 처리하기 위해서는 메모리 저장(memory storage), 메모리 액세스율(memory access rate) 및 처리 전력(processing power) 측면에서 엄청난 증가를 가져올 것이다.
따라서, 차세대 비디오 컨텐츠를 보다 효율적으로 처리하기 위한 코딩 툴을 디자인할 필요가 있다.
본 발명의 목적은, 시간적(temporal) 움직임 정보의 유사성을 기반으로 인터 예측(또는 화면 간 예측)을 수행함에 있어서 이미 디코딩된 픽쳐의 움직임 정보를 이용하기 위한 하드웨어 친화적인 알고리즘을 제안한다.
본 발명에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.
본 발명의 일 양상은, 인터 예측 모드 기반으로 영상을 복호화하는 방법에 있어서, 현재 블록에 머지 모드(merge mode)가 적용되는 경우, 상기 현재 블록의 공간 이웃 블록(spatial neighboring block) 및 시간 머지 후보(temporal neighboring block)를 이용하여 머지 후보 리스트(merge candidate list)를 생성하는 단계; 상기 머지 후보 리스트 내에서 상기 현재 블록의 인터 예측에 이용되는 후보를 지시하는 머지 인덱스(merge index)를 획득하는 단계; 상기 현재 블록의 인터 예측에 이용되는 후보의 움직임 벡터에 기초하여 상기 현재 블록에 포함된 복수의 서브 블록들 각각의 움직임 벡터를 유도하는 단계; 및 상기 서브 블록들 각각의 움직임 벡터를 이용하여 상기 현재 블록의 예측 샘플을 생성하는 단계를 포함하되, 상기 서브 블록의 크기는 8x8 보다 크거나 같은 고정된 특정 크기로 설정될 수 있다.
실시예로서, 상기 머지 후보 리스트를 생성하는 단계는, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는 단계를 포함할 수 있다.
실시예로서, 상기 머지 후보 리스트를 생성하는 단계는, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 현재 블록의 공간 이웃 블록 중 미리 정의된 순서 상 첫 번째 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는 단계를 포함할 수 있다.
실시예로서, 상기 머지 후보 리스트를 생성하는 단계는, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 작은지 여부를 확인하는 단계; 및 상기 확인 결과, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 크거나 같은 경우, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는 단계를 포함할 수 있다.
실시예로서, 상기 미리 정의된 최소 크기는 상기 서브 블록의 크기로 설정될 수 있다.
본 발명의 다른 일 양상은, 인터 예측 모드 기반으로 영상을 복호화하는 장치에 있어서, 현재 블록에 머지 모드(merge mode)가 적용되는 경우, 상기 현재 블록의 공간 머지 후보(spatial merge candidate) 및 시간 머지 후보(temporal merge candidate)를 이용하여 머지 후보 리스트(merge candidate list)를 생성하는 머지 후보 리스트 생성부; 상기 머지 후보 리스트 내에서 상기 현재 블록의 인터 예측에 이용되는 머지 후보를 지시하는 머지 인덱스(merge index)를 획득하는 머지 인덱스 획득부; 상기 현재 블록의 인터 예측에 이용되는 머지 후보의 움직임 벡터에 기초하여 상기 현재 블록에 포함된 복수의 서브 블록들 각각의 움직임 벡터를 유도하는 서브 블록 움직임 벡터 유도부; 및 상기 서브 블록들 각각의 움직임 벡터를 이용하여 상기 현재 블록의 예측 블록을 생성하는 예측 블록 생성부를 포함하되, 상기 서브 블록의 크기는 8x8 보다 크거나 같은 고정된 특정 크기로 설정될 수 있다.
실시예로서, 상기 머지 후보 리스트 생성부는, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가할 수 있다.
실시예로서, 상기 머지 후보 리스트 생성부는, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 현재 블록의 공간 이웃 블록 중 미리 정의된 순서 상 첫 번째 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가할 수 있다.
실시예로서, 상기 머지 후보 리스트 생성부는, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 작은지 여부를 확인하고, 상기 확인 결과, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 크거나 같은 경우, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가할 수 있다.
실시예로서, 상기 미리 정의된 최소 크기는 상기 서브 블록의 크기로 설정될 수 있다.
본 발명의 실시예에 따르면, 이미 디코딩된 픽쳐의 움직임 정보를 이용하여 예측 블록을 생성함에 있어서 하드웨어 게이트 카운트(gate count)를 효과적으로 줄일 수 있다.
또한, 본 발명의 실시예에 따르면, 이미 디코딩된 픽쳐의 움직임 정보를 이용하여 인터 예측을 수행함에 있어서 하드웨어 게이트 카운트(gate count)를 줄임과 동시에, 이에 따라 수반되는 압축 성능의 손실을 최소화할 수 있다.
본 발명에서 얻을 수 있는 효과는 이상에서 언급한 효과로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.
본 발명에 관한 이해를 돕기 위해 상세한 설명의 일부로 포함되는, 첨부 도면은 본 발명에 대한 실시예를 제공하고, 상세한 설명과 함께 본 발명의 기술적 특징을 설명한다.
도 1은 본 발명이 적용되는 실시예로서, 비디오/이미지 신호의 인코딩이 수행되는 인코딩 장치의 개략적인 블록도를 나타낸다.
도 2는 본 발명이 적용되는 실시예로서, 비디오/이미지 신호의 디코딩이 수행되는 디코딩 장치의 개략적인 블록도를 나타낸다.
도 3은 본 발명이 적용될 수 있는 실시예로서, 멀티타입 트리 구조의 일 예를 나타내는 도면이다.
도 4는 본 발명이 적용될 수 있는 실시예로서, 멀티타입 트리를 수반하는 쿼드트리(quadtree with nested multi-type tree) 구조의 파티션 분할 정보의 시그널링 메커니즘을 예시하는 도면이다.
도 5는 본 발명이 적용될 수 있는 실시예로서, 쿼드트리 및 수반되는 멀티타입 트리(quadtree and nested multi-type tree) 구조를 기반으로 CTU를 다중 CU들로 분할하는 방법을 예시하는 도면이다.
도 6은 본 발명이 적용될 수 있는 실시예로서, 터너리 트리(ternary-tree) 분할을 제한하는 방법을 예시하는 도면이다.
도 7은 본 발명이 적용될 수 있는 실시예로서, 바이너리 트리 분할 및 터너리 트리 분할에서 발생할 수 있는 리던던트 분할 패턴들을 예시하는 도면이다.
도 8 및 도 9는 본 발명의 실시예에 따른 인터 예측 기반 비디오/영상 인코딩 방법 및 본 발명의 실시예에 따른 인코딩 장치 내 인터 예측부를 예시하는 도면이다.
도 10 및 도 11은 본 발명의 실시예에 따른 인터 예측 기반 비디오/영상 디코딩 방법 및 본 발명의 실시예에 따른 디코딩 장치 내 인터 예측부를 예시하는 도면이다.
도 12는 본 발명이 적용되는 실시예로서, 머지 모드 또는 스킵 모드에서 이용되는 주변 블록을 설명하기 위한 도면이다.
도 13은 본 발명이 적용되는 일 실시예에 따른 머지 후보 리스트 구성 방법을 예시하는 흐름도이다.
도 14는 본 발명이 적용되는 일 실시예에 따른 머지 후보 리스트 구성 방법을 예시하는 흐름도이다.
도 15 및 도 16은 본 발명이 적용되는 일 실시예로서, ATMVP(Advanced Temporal Motion Vector Prediction) 후보를 유도하는 방법을 설명하기 위한 도면이다.
도 17은 본 발명이 적용되는 일 실시예로서, ATMVP(Advanced Temporal Motion Vector Prediction) 후보를 유도하는 방법을 예시하는 도면이다.
도 18 및 도 19는 본 발명이 적용되는 일 실시예에 따른, 시간 움직임 벡터 데이터(Temporal motion vector data)를 압축하는 방법 및 이에 이용되는 공간 후보들의 위치를 예시하는 도면이다.
도 20은 본 발명이 적용되는 실시예에 따른 후보 리스트(candidate list)를 기반으로 인터 예측된 블록(inter predicted block)을 생성하는 방법을 나타내는 흐름도이다.
도 21은 본 발명이 적용되는 실시예에 따른 후보 리스트(candidate list) 생성 방법을 나타내는 흐름도이다.
도 22는 본 발명이 적용되는 실시예에 따른 인터 예측에 이용되는 주변 블록의 일 예를 나타낸다.
도 23은 본 발명이 적용되는 실시예에 따른 확장된 ATMVP(Advanced Temporal Motion Vector Prediction) 후보를 유도하는 방법을 예시하는 도면이다.
도 24 및 도 25는 본 발명이 적용되는 실시예에 따른 참조 픽쳐 내에서 시간 이웃 블록의 움직임 벡터를 패치하는 프로세스(fetching process)를 예시하는 도면이다.
도 26은 본 발명이 적용되는 실시예에 따른 서브 블록 단위로 시간 이웃 블록의 움직임 벡터를 패치하는 프로세스(fetching process)를 나타내는 도면이다.
도 27은 본 발명이 적용되는 실시예에 따른 후보 리스트(candidate list) 생성 방법을 나타내는 흐름도이다.
도 28는 본 발명이 적용되는 실시예에 따른 인터 예측 블록을 생성하는 방법을 예시하는 흐름도이다.
도 29는 본 발명이 적용되는 실시예에 따른 인터 예측 장치를 예시하는 도면이다.
도 30는 본 발명이 적용되는 비디오 코딩 시스템을 나타낸다.
도 31는 본 발명이 적용되는 실시예로서, 컨텐츠 스트리밍 시스템 구조도를 나타낸다.
이하, 본 발명에 따른 바람직한 실시 형태를 첨부된 도면을 참조하여 상세하게 설명한다. 첨부된 도면과 함께 이하에 개시될 상세한 설명은 본 발명의 예시적인 실시형태를 설명하고자 하는 것이며, 본 발명이 실시될 수 있는 유일한 실시형태를 나타내고자 하는 것이 아니다. 이하의 상세한 설명은 본 발명의 완전한 이해를 제공하기 위해서 구체적 세부사항을 포함한다. 그러나, 당업자는 본 발명이 이러한 구체적 세부사항 없이도 실시될 수 있음을 안다.
몇몇 경우, 본 발명의 개념이 모호해지는 것을 피하기 위하여 공지의 구조 및 장치는 생략되거나, 각 구조 및 장치의 핵심기능을 중심으로 한 블록도 형식으로 도시될 수 있다.
아울러, 본 발명에서 사용되는 용어는 가능한 한 현재 널리 사용되는 일반적인 용어를 선택하였으나, 특정한 경우는 출원인이 임의로 선정한 용어를 사용하여 설명한다. 그러한 경우에는 해당 부분의 상세 설명에서 그 의미를 명확히 기재하므로, 본 발명의 설명에서 사용된 용어의 명칭만으로 단순 해석되어서는 안 될 것이며 그 해당 용어의 의미까지 파악하여 해석되어야 함을 밝혀두고자 한다.
이하의 설명에서 사용되는 특정 용어들은 본 발명의 이해를 돕기 위해서 제공된 것이며, 이러한 특정 용어의 사용은 본 발명의 기술적 사상을 벗어나지 않는 범위에서 다른 형태로 변경될 수 있다. 예를 들어, 신호, 데이터, 샘플, 픽쳐, 프레임, 블록 등의 경우 각 코딩 과정에서 적절하게 대체되어 해석될 수 있을 것이다.
이하 본 명세서에서 '처리 유닛'은 예측, 변환 및/또는 양자화 등과 같은 인코딩/디코딩의 처리 과정이 수행되는 단위를 의미한다. 이하, 설명의 편의를 위해 처리 유닛은 '처리 블록' 또는 '블록'으로 지칭될 수도 있다.
처리 유닛은 휘도(luma) 성분에 대한 단위와 색차(chroma) 성분에 대한 단위를 포함하는 의미로 해석될 수 있다. 예를 들어, 처리 유닛은 코딩 트리 유닛(CTU: Coding Tree Unit), 코딩 유닛(CU: Coding Unit), 예측 유닛(PU: Prediction Unit) 또는 변환 유닛(TU: Transform Unit)에 해당될 수 있다.
또한, 처리 유닛은 휘도(luma) 성분에 대한 단위 또는 색차(chroma) 성분에 대한 단위로 해석될 수 있다. 예를 들어, 처리 유닛은 휘도(luma) 성분에 대한 코딩 트리 블록(CTB: Coding Tree Block), 코딩 블록(CB: Coding Block), 예측 블록(PU: Prediction Block) 또는 변환 블록(TB: Transform Block)에 해당될 수 있다. 또는, 색차(chroma) 성분에 대한 코딩 트리 블록(CTB), 코딩 블록(CB), 예측 블록(PU) 또는 변환 블록(TB)에 해당될 수 있다. 또한, 이에 한정되는 것은 아니며 처리 유닛은 휘도(luma) 성분에 대한 단위와 색차(chroma) 성분에 대한 단위를 포함하는 의미로 해석될 수도 있다.
또한, 처리 유닛은 반드시 정사각형의 블록으로 한정되는 것은 아니며, 3개 이상의 꼭지점을 가지는 다각형 형태로 구성될 수도 있다.
또한, 이하 본 명세서에서 픽셀 또는 화소 등을 샘플로 통칭한다. 그리고, 샘플을 이용한다는 것은 픽셀 값 또는 화소 값 등을 이용한다는 것을 의미할 수 있다.
도 1은 본 발명이 적용되는 실시예로서, 비디오/이미지 신호의 인코딩이 수행되는 인코딩 장치의 개략적인 블록도를 나타낸다.
도 1을 참조하면, 인코딩 장치(100)는 영상 분할부(110), 감산부(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 가산부(155), 필터링부(160), 메모리(170), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)를 포함하여 구성될 수 있다. 인터 예측부(180) 및 인트라 예측부(185)는 예측부로 통칭될 수 있다. 다시 말해, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150)는 레지듀얼(residual) 처리부에 포함될 수 있다. 레지듀얼 처리부는 감산부(115)를 더 포함할 수도 있다. 일 실시예로서, 상술한 영상 분할부(110), 감산부(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 가산부(155), 필터링부(160), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)는 하나의 하드웨어 컴포넌트(예를 들어, 인코더 또는 프로세서)에 의하여 구성될 수 있다. 또한, 메모리(170)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다.
영상 분할부(110)는 인코딩 장치(100)에 입력된 입력 영상(또는, 픽쳐, 프레임)를 하나 이상의 처리 유닛(processing unit)으로 분할할 수 있다. 일 예로, 상기 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 코딩 트리 유닛(coding tree unit, CTU) 또는 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다. 다른 예로, 상기 처리 유닛은 예측 유닛(PU: Prediction Unit) 또는 변환 유닛(TU: Transform Unit)을 더 포함할 수 있다. 이 경우 상기 예측 유닛 및 상기 변환 유닛은 각각 상술한 최종 코딩 유닛으로부터 분할 또는 파티셔닝될 수 있다. 상기 예측 유닛은 샘플 예측의 단위일 수 있고, 상기 변환 유닛은 변환 계수를 유도하는 단위 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 단위일 수 있다.
유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. 샘플은 하나의 픽처(또는 영상)을 픽셀(pixel) 또는 펠(pel)에 대응하는 용어로서 사용될 수 있다.
인코딩 장치(100)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)를 감산하여 레지듀얼 신호(residual signal, 잔여 블록, 잔여 샘플 어레이)를 생성할 수 있고, 생성된 레지듀얼 신호는 변환부(120)로 전송된다. 이 경우 도시된 바와 같이 인코더(100) 내에서 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 예측 신호(예측 블록, 예측 샘플 어레이)를 감산하는 유닛은 감산부(115)라고 불릴 수 있다. 예측부는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 현재 블록 또는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부는 각 예측모드에 대한 설명에서 후술하는 바와 같이 예측 모드 정보 등 예측에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다.
인트라 예측부(185)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는 예를 들어 DC 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라 예를 들어 33개의 방향성 예측 모드 또는 65개의 방향성 예측 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 예측 모드들이 사용될 수 있다. 인트라 예측부(185)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측부(180)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 참조 블록을 포함하는 참조 픽처와 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 다를 수도 있다. 상기 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있으며, 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 예를 들어, 인터 예측부(180)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 사용되는지를 지시하는 정보를 생성할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드의 경우에, 인터 예측부(180)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(motion vector prediction, MVP) 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference)을 시그널링함으로써 현재 블록의 움직임 벡터를 지시할 수 있다.
상기 인터 예측부(180) 또는 상기 인트라 예측부(185)를 통해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다.
변환부(120)는 레지듀얼 신호에 변환 기법을 적용하여 변환 계수들(transform coefficients)를 생성할 수 있다. 예를 들어, 변환 기법은 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), KLT(Karhunen-Loeve Transform), GBT(Graph-Based Transform), 또는 CNT(Conditionally Non-linear Transform) 중 적어도 하나를 포함할 수 있다. 여기서, GBT는 픽셀 간의 관계 정보를 그래프로 표현한다고 할 때 이 그래프로부터 얻어진 변환을 의미한다. CNT는 이전에 복원된 모든 픽셀(all previously reconstructed pixel)를 이용하여 예측 신호를 생성하고 그에 기초하여 획득되는 변환을 의미한다. 또한, 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아닌 가변 크기의 블록에도 적용될 수 있다.
양자화부(130)는 변환 계수들을 양자화하여 엔트로피 인코딩부(190)로 전송되고, 엔트로피 인코딩부(190)는 양자화된 신호(양자화된 변환 계수들에 관한 정보)를 인코딩하여 비트스트림으로 출력할 수 있다. 상기 양자화된 변환 계수들에 관한 정보는 레지듀얼 정보라고 불릴 수 있다. 양자화부(130)는 계수 스캔 순서(scan order)를 기반으로 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있고, 상기 1차원 벡터 형태의 양자화된 변환 계수들을 기반으로 상기 양자화된 변환 계수들에 관한 정보를 생성할 수도 있다. 엔트로피 인코딩부(190)는 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 다양한 인코딩 방법을 수행할 수 있다. 엔트로피 인코딩부(190)는 양자화된 변환 계수들 외 비디오/이미지 복원에 필요한 정보들(예컨대 신택스 요소들(syntax elements)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 인코딩된 정보(ex. 인코딩된 비디오/영상 정보)는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. 엔트로피 인코딩부(190)로부터 출력된 신호는 전송하는 전송부(미도시) 및/또는 저장하는 저장부(미도시)가 인코딩 장치(100)의 내/외부 엘리먼트로서 구성될 수 있고, 또는 전송부는 엔트로피 인코딩부(190)의 구성요소일 수도 있다.
양자화부(130)로부터 출력된 양자화된 변환 계수들은 예측 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들은에 루프 내의 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호를 복원할 수 있다. 가산부(155)는 복원된 레지듀얼 신호를 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호에 더함으로써 복원(reconstructed) 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)가 생성될 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(155)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다.
필터링부(160)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(160)은 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(170), 구체적으로 메모리(170)의 DPB에 저장할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다. 필터링부(160)은 각 필터링 방법에 대한 설명에서 후술하는 바와 같이 필터링에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 필터링 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다.
메모리(170)에 전송된 수정된 복원 픽처는 인터 예측부(180)에서 참조 픽처로 사용될 수 있다. 인코딩 장치는 이를 통하여 인터 예측이 적용되는 경우, 인코딩 장치(100)와 디코딩 장치에서의 예측 미스매치를 피할 수 있고, 부호화 효율도 향상시킬 수 있다.
메모리(170) DPB는 수정된 복원 픽처를 인터 예측부(180)에서의 참조 픽처로 사용하기 위해 저장할 수 있다. 메모리(170)는 현재 픽처 내 움직임 정보가 도출된(또는 인코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(180)에 전달할 수 있다. 메모리(170)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(185)에 전달할 수 있다.
도 2는 본 발명이 적용되는 실시예로서, 비디오/이미지 신호의 디코딩이 수행되는 디코딩 장치의 개략적인 블록도를 나타낸다.
도 2를 참조하면, 디코딩 장치(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265)를 포함하여 구성될 수 있다. 인터 예측부(260) 및 인트라 예측부(265)를 합쳐서 예측부라고 불릴 수 있다. 즉, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 역양자화부(220), 역변환부(230)를 합쳐서 레지듀얼 처리부라고 불릴 수 있다. 즉, 레지듀얼 처리부는 역양자화부(220), 역변환부(230)을 포함할 수 있다. 상술한 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코더 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(170)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다.
비디오/이미지 정보를 포함하는 비트스트림이 입력되면, 디코딩 장치(200)는 도 1의 인코딩 장치에서 비디오/이미지 정보가 처리된 프로세스에 대응하여 영상을 복원할 수 있다. 예를 들어, 디코딩 장치(200)는 인코딩 장치에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서 디코딩의 처리 유닛은 예를 들어 코딩 유닛일 수 있고, 코딩 유닛은 코딩 트리 유닛 또는 최대 코딩 유닛으로부터 쿼드 트리 구조 및/또는 바이너리 트리 구조를 따라서 분할될 수 있다. 그리고, 디코딩 장치(200)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치를 통해 재생될 수 있다.
디코딩 장치(200)는 도 1의 인코딩 장치로부터 출력된 신호를 비트스트림 형태로 수신할 수 있고, 수신된 신호는 엔트로피 디코딩부(210)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(210)는 상기 비트스트림을 파싱하여 영상 복원(또는 픽처 복원)에 필요한 정보(ex. 비디오/영상 정보)를 도출할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 영상 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다. 엔트로피 디코딩부(2110)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(260) 및 인트라 예측부(265))로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 역양자화부(220)로 입력될 수 있다. 또한, 엔트로피 디코딩부(210)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(240)으로 제공될 수 있다. 한편, 인코딩 장치로부터 출력된 신호를 수신하는 수신부(미도시)가 디코딩 장치(200)의 내/외부 엘리먼트로서 더 구성될 수 있고, 또는 수신부는 엔트로피 디코딩부(210)의 구성요소일 수도 있다.
역양자화부(220)에서는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 출력할 수 있다. 역양자화부(220)는 양자화된 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 이 경우 상기 재정렬은 인코딩 장치에서 수행된 계수 스캔 순서를 기반하여 재정렬을 수행할 수 있다. 역양자화부(220)는 양자화 파라미터(예를 들어 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수들(transform coefficient)를 획득할 수 있다.
역변환부(230)에서는 변환 계수들를 역변환하여 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 획득하게 된다.
예측부는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 엔트로피 디코딩부(210)로부터 출력된 상기 예측에 관한 정보를 기반으로 상기 현재 블록에 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있고, 구체적인 인트라/인터 예측 모드를 결정할 수 있다.
인트라 예측부(265)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 인트라 예측부(265)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측부(260)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(260)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신한 후보 선택 정보를 기반으로 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 상기 예측에 관한 정보는 상기 현재 블록에 대한 인터 예측의 모드를 지시하는 정보를 포함할 수 있다.
가산부(235)는 획득된 레지듀얼 신호를 인터 예측부(260) 또는 인트라 예측부(265)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다.
가산부(235)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다.
*필터링부(240)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(240)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(250), 구체적으로 메모리(250)의 DPB에 전송할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다.
메모리(250)의 DPB에 저장된 (수정된) 복원 픽처는 인터 예측부(260)에서 참조 픽쳐로 사용될 수 있다. 메모리(250)는 현재 픽처 내 움직임 정보가 도출된(또는 디코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(260)에 전달할 수 있다. 메모리(170)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(265)에 전달할 수 있다.
본 명세서에서, 인코딩 장치(100)의 필터링부(160), 인터 예측부(180) 및 인트라 예측부(185)에서 설명된 실시예들은 각각 디코딩 장치(200)의 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)에도 동일 또는 대응되도록 적용될 수 있다.
Block Partitioning
본 문서에 따른 비디오/영상 코딩 방법은 다양한 세부 기술들에 기반하여 수행될 수 있으며, 각각의 세부 기술들을 개략적으로 설명하면 다음과 같다. 이하 설명되는 기술들은 상술한 및/또는 후술되는 비디오/영상 인코딩/디코딩 절차에서의 예측, 레지듀얼 처리((역)변환, (역)양자화 등), 신텍스 요소 코딩, 필터링, 파티셔닝/분할 등의 관련 절차에 연관될 수 있음은 당업자에게 자명하다.
본 문서에 따른 블록 파티셔닝 절차는 상술한 인코딩 장치의 영상 분할부(110)에서 수행되어, 파티셔닝 관련 정보가 엔트로피 인코딩부(190)에서 (인코딩) 처리되어 비트스트림 형태로 디코딩 장치로 전달될 수 있다. 디코딩 장치의 엔트로피 디코딩부(210)는 상기 비트스트림으로부터 획득한 상기 파티셔닝 관련 정보를 기반으로 현재 픽처의 블록 파티셔닝 구조를 도출하고, 이를 기반으로 영상 디코딩을 위한 일련의 절차(ex. 예측, 레지듀얼 처리, 블록 복원, 인루프 필터링 등)을 수행할 수 있다.
Partitioning of picture into CTUs
픽처들은 코딩 트리 유닛들 (CTUs)의 시퀀스로 분할될(divided into a sequence) 수 있다. CTU는 코딩 트리 블록(CTB)에 대응될 수 있다. 혹은 CTU는 루마 샘플들의 코딩 트리 블록과, 대응하는 크로마 샘플들의 두개의 코딩 트리 블록들을 포함할 수 있다. 다시 말하면, 세가지 샘플 어레이를 포함하는 픽처에 대하여, CTU는 루마 샘플들의 NxN 블록과 크로마 샘플들의 두개의 대응 블록들을 포함할 수 있다.
코딩 및 예측 등을 위한 CTU의 최대 허용 사이즈는 변환을 위한 CTU의 최대 허용 사이즈와 다를 수 있다. 예를 들어, CTU 내 루마 블록의 최대 허용 사이즈는 128x128일 수 있다.
Partitionig of the CTUs using a tree structure
CTU는 쿼드트리(quad-tree, QT) 구조를 기반으로 CU들로 분할될 수 있다. 쿼드트리 구조는 쿼터너리(quaternary) 트리 구조라고 불릴 수 있다. 이는 다양한 국지적 특징(local characteristic)을 반영하기 위함이다. 한편, 본 문서에서는 CTU는 쿼드트리 뿐 아니라 바이너리 트리(binary-tree, BT) 및 터너리 트리(ternary-tree, TT)을 포함하는 멀티타입 트리 구조 분할을 기반하여 분할될 수 있다. 이하, QTBT 구조라 함은 쿼드트리 및 바이너리 트리 기반 분할 구조를 포함할 수 있고, QTBTTT라 함은 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수 있다. 또는, QTBT 구조는 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수도 있다. 코딩 트리 구조에서, CU는 정사각형 또는 직사각형 모양을 가질 수 있다. CTU는 먼저 쿼드트리 구조로 분할될 수 있다. 이후 쿼드트리 구조의 리프 노드들은 멀티타입 트리 구조에 의하여 추가적으로 분할될 수 있다.
도 3은 본 발명이 적용될 수 있는 실시예로서, 멀티타입 트리 구조의 일 예를 나타내는 도면이다.
본 발명의 일 실시예에서, 멀티타입 트리 구조는 도 3에 도시된 바와 같은 4개의 분할 타입을 포함할 수 있다. 상기 4개의 분할 타입은 수직 바이너리 분할(vertical binary splitting, SPLIT_BT_VER), 수평 바이너리 분할(horizontal binary splitting, SPLIT_BT_HOR), 수직 터너리 분할(vertical ternary splitting, SPLIT_TT_VER), 수평 터너리 분할(horizontal ternary splitting, SPLIT_TT_HOR)을 포함할 수 있다. 상기 멀티타입 트리 구조의 리프 노드들은 CU들이라고 불리 수 있다. 이러한 CU들은 예측 및 변환 절차를 위하여 사용될 수 있다. 본 문서에서 일반적으로 CU, PU, TU는 동일한 블록 사이즈를 가질 수 있다. 다만, 최대 허용 변환 길이(maximum supported transform length )가 CU의 컬러 성분(colour component)의 너비 도는 높이보다 작은 경우에는 CU와 TU가 서로 다른 블록 사이즈를 가질 수 있다.
도 4는 본 발명이 적용될 수 있는 실시예로서, 멀티타입 트리를 수반하는 쿼드트리(quadtree with nested multi-type tree) 구조의 파티션 분할 정보의 시그널링 메커니즘을 예시하는 도면이다.
여기서, CTU는 쿼드트리의 루트(root)로 취급되며, 쿼드트리 구조로 처음으로 파티셔닝된다. 각 쿼드트리 리프 노드는 이후 멀티타입 트리 구조로 더 파티셔닝될 수 있다. 멀티타입 트리 구조에서, 제1 플래그(a first flag, ex. mtt_split_cu_flag)가 해당 노드가 추가적으로 파티셔닝되는지를 지시하기 위하여 시그널링된다. 만약 해당 노드가 추가적으로 파티셔닝되는 경우, 제2 플래그(a second flag, ex. mtt_split_cu_verticla_flag)가 분할 방향(splitting direction)을 지시하기 위하여 시그널링될 수 있다. 그 후 제3 플래그(a third flag, ex. mtt_split_cu_binary_flag)가 분할 타입이 바이너리 분할인지 터너리 분할인지 여부를 지시하기 위하여 시그널링될 수 있다. 예를 들어, 상기 mtt_split_cu_vertical_flag 및 상기 mtt_split_cu_binary_flag를 기반으로, CU의 멀티타입 트리 분할 모드(multi-type tree splitting mode, MttSplitMode)가 다음 표 1과 같이 도출될 수 있다.
Figure PCTKR2019007837-appb-img-000001
도 5는 본 발명이 적용될 수 있는 실시예로서, 쿼드트리 및 수반되는 멀티타입 트리(quadtree and nested multi-type tree) 구조를 기반으로 CTU를 다중 CU들로 분할하는 방법을 예시하는 도면이다.
여기서, 볼드 블록 엣지들(bold block edges)는 쿼드트리 파티셔닝을, 나머지 엣지들은 멀티타입 트리 파티셔닝을 나타낸다. 멀티타입 트리를 수반한 쿼드트리 파티션은 컨텐츠-어댑티드 코딩 트리 구조를 제공할 수 있다. CU는 코딩 블록(CB)에 대응될 수 있다. 혹은 CU는 루마 샘플들의 코딩 블록과, 대응하는 크로마 샘플들의 두개의 코딩 블록들을 포함할 수 있다. CU의 사이즈는 CTU만큼 클 수도 있고, 또는 루마 샘플 단위에서 4x4 만큼 잘을 수도 있다. 예를 들어, 4:2:0 컬러 포멧(or 크로마 포멧)인 경우, 최대 크로마 CB 사이즈는 64x64이고 최소 크로마 CB 사이즈는 2x2일 수 있다.
본 문서에서 예를 들어, 최대 허용 루마 TB 사이즈는 64x64이고, 최대 허용 크로마 TB 사이즈는 32x32일 수 있다. 만약 상기 트리 구조에 따라 분할된 CB의 너비 또는 높이가 최대 변환 너비 또는 높이보다 큰 경우, 해당 CB는 자동적으로(또는 묵시적으로) 수평 및 수직 방향의 TB 사이즈 제한을 만족할 때까지 분할될 수 있다.
한편, 멀티타입 트리를 수반한 쿼드트리 코딩 트리 스킴을 위하여, 다음 파라미터들이 SPS 신텍스 요소로 정의 및 식별될 수 있다.
- CTU size: the root node size of a quaternary tree
- MinQTSize: the minimum allowed quaternary tree leaf node size
- MaxBtSize: the maximum allowed binary tree root node size
- MaxTtSize: the maximum allowed ternary tree root node size
- MaxMttDepth: the maximum allowed hierarchy depth of multi-type tree splitting from a quadtree leaf
- MinBtSize: the minimum allowed binary tree leaf node size
- MinTtSize: the minimum allowed ternary tree leaf node size
멀티타입 트리를 수반한 쿼드트리 코딩 트리 구조의 일 예로, CTU 사이즈는 128x128 루마 샘플들 및 두개의 대응하는 크로마 샘플들의 64x64 블록들로 설정될 수 있다(4:2:0 크로마 포멧에서). 이 경우, MinOTSize는 16x16으로 설정되고, MaxBtSize는 128x128로 설정되고, MaxTtSzie는 64x64로 설정되고, MinBtSize 및 MinTtSize (for both width and height)는 4x4로, 그리고 MaxMttDepth는 4로 설정될 수 있다. 쿼트트리 파티셔닝은 CTU에 적용되어 쿼드트리 리프 노드들을 생성할 수 있다. 쿼드트리 리프 노드는 리프 QT 노드라고 불릴 수 있다. 쿼드트리 리프 노드들은 16x16 사이즈 (i.e. the MinOTSize)로부터 128x128 사이즈(i.e. the CTU size)를 가질 수 있다. 만약 리프 QT 노드가 128x128인 경우, 추가적으로 바이너리 트리/터너리 트리로 분할되지 않을 수 있다. 이는 이 경우 분할되더라도 MaxBtsize 및 MaxTtszie (i.e. 64x64)를 초과하기 때문이다. 이 외의 경우, 리프 QT 노드는 멀티타입 트리로 추가적으로 분할될 수 있다. 그러므로, 리프 QT 노드는 멀티타입 트리에 대한 루트 노드(root node)이고, 리프 QT 노드는 멀티타입 트리 뎁스(mttDepth) 0 값을 가질 수 있다. 만약, 멀티타입 트리 뎁스가 MaxMttdepth (ex. 4)에 도달한 경우, 더 이상 추가 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 너비가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수평 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 높이가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수직 분할은 고려되지 않을 수 있다.
도 6은 본 발명이 적용될 수 있는 실시예로서, 터너리 트리(ternary-tree) 분할을 제한하는 방법을 예시하는 도면이다.
도 6을 참조하면, 하드웨어 디코더에서의 64x64 루마 블록 및 32x32 크로마 파이프라인 디자인을 허용하기 위하여, TT 분할은 특정 경우 제한될 수 있다. 예를 들어, 루마 코딩 블록의 너비 또는 높이가 기 설정된 특정 값(예컨대, 32, 64)보다 큰 경우, 도 6에 도시된 바와 같이, TT 분할이 제한될 수 있다.
본 문서에서, 코딩 트리 스킴은 루마 및 크로마 블록이 개별적(separate) 블록 트리 구조를 가지는 것을 지원할 수 있다. P 및 B 슬라이스들에 대하여, 하나의 CTU 내 루마 및 크로마 CTB들은 동일한 코딩 트리 구조를 갖도록 제한될 수 있다. 그러나, I 슬라이스들에 대하여, 루마 및 크로마 블록들은 서로 개별적 블록 트리 구조를 가질 수 있다. 만약 개별적 블록 트리 모드가 적용되는 경우, 루마 CTB는 특정 코딩 트리 구조를 기반으로 CU들로 분할되고, 크로마 CTB는 다른 코딩 트리 구조를 기반으로 크로마 CU들로 분할될 수 있다. 이는, I 슬라이스 내 CU는 루마 성분의 코딩 블록 또는 두 크로마 성분들의 코딩 블록들로 구성되고, P 또는 B 슬라이스의 CU는 세가지 컬러 성분의 블록들로 구성될 수 있음을 의미할 수 있다.
상술한 “Partitionig of the CTUs using a tree structure”에서 멀티타입 트리를 수반한 쿼드트리 코딩 트리 구조에 대하여 설명하였으나, CU가 분할되는 구조는 이에 한정되지 않는다. 예를 들어, BT 구조 및 TT 구조는 다수 분할 트리 (Multiple Partitioning Tree, MPT) 구조에 포함되는 개념으로 해석될 수 있고, CU는 QT 구조 및 MPT 구조를 통해 분할된다고 해석할 수 있다. QT 구조 및 MPT 구조를 통해 CU가 분할되는 일 예에서, QT 구조의 리프 노드가 몇 개의 블록으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예를 들어, MPT_split_type) 및 QT 구조의 리프 노드가 수직과 수평 중 어느 방향으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예를 들어, MPT_split_mode)가 시그널링 됨으로써 분할 구조가 결정될 수 있다.
또 다른 예에서, CU는 QT 구조, BT 구조 또는 TT 구조와 다른 방법으로 분할될 수 있다. 즉, QT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 크기로 분할되거나, BT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/2 크기로 분할되거나, TT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 또는 1/2 크기로 분할되는 것과 달리, 하위 뎁스의 CU는 경우에 따라 상위 뎁스의 CU의 1/5, 1/3, 3/8, 3/5, 2/3 또는 5/8 크기로 분할될 수 있으며, CU가 분할되는 방법은 이에 한정되지 않는다.
만약 트리 노드 블록의 부분(a portion)이 하단(bottom) 또는 오른쪽(right) 픽처 바운더리를 초과하는(exceeds) 경우, 해당 트리 노드 블록은 모든 코딩된 CU의 모든 샘플들이 상기 픽처 바운더리들 내에 위치하도록 제한될 수 있다. 이 경우 예를 들어 다음과 같은 분할 규칙이 적용될 수 있다.
- If a portion of a tree node block exceeds both the bottom and the right picture boundaries,
- If the block is a QT node and the size of the block is larger than the minimum QT size, the block is forced to be split with QT split mode.
- Otherwise, the block is forced to be split with SPLIT_BT_HOR mode
- Otherwise if a portion of a tree node block exceeds the bottom picture boundaries,
- If the block is a QT node, and the size of the block is larger than the minimum QT size, and the size of the block is larger than the maximum BT size, the block is forced to be split with QT split mode.
- Otherwise, if the block is a QT node, and the size of the block is larger than the minimum QT size and the size of the block is smaller than or equal to the maximum BT size, the block is forced to be split with QT split mode or SPLIT_BT_HOR mode.
- Otherwise (the block is a BTT node or the size of the block is smaller than or equal to the minimum QT size), the block is forced to be split with SPLIT_BT_HOR mode.
- Otherwise if a portion of a tree node block exceeds the right picture boundaries,
- If the block is a QT node, and the size of the block is larger than the minimum QT size, and the size of the block is larger than the maximum BT size, the block is forced to be split with QT split mode.
- Otherwise, if the block is a QT node, and the size of the block is larger than the minimum QT size and the size of the block is smaller than or equal to the maximum BT size, the block is forced to be split with QT split mode or SPLIT_BT_VER mode.
- Otherwise (the block is a BTT node or the size of the block is smaller than or equal to the minimum QT size), the block is forced to be split with SPLIT_BT_VER mode.
한편, 상술한 멀티타입 트리를 수반한 쿼드트리 코딩 블록 구조는 매우 유연한 블록 파티셔닝 구조를 제공할 수 있다. 멀티타입 트리에 지원되는 분할 타입들 때문에, 다른 분할 패턴들이 경우에 따라서 잠재적으로 동일한 코딩 블록 구조 결과를 가져올 수 잇다. 이러한 리던던트(redundant)한 분할 패턴들의 발생을 제한함으로써 파티셔닝 정보의 데이터량을 줄일 수 있다. 아래의 도면을 참조하여 설명한다.
도 7은 본 발명이 적용될 수 있는 실시예로서, 바이너리 트리 분할 및 터너리 트리 분할에서 발생할 수 있는 리던던트 분할 패턴들을 예시하는 도면이다.
도 7에 도시된 바와 같이, 2단계 레벨의 한 방향에 대한 연속적인 바이너리 분할(two levels of consecutive binary splits in one direction)은, 터너리 분할 이후 센터 파티션에 대한 바이너리 분할과 동일한 코딩 블록 구조를 갖는다. 이러한 경우, 터너리 트리 분할의 센터 파티션에 대한 바이너리 트리 분할 (in the given direction)은 제한될 수 있다. 이러한 제한는 모든 픽처들의 CU들에 대하여 적용될 수 있다. 이러한 특정 분할이 제한되는 경우, 대응하는 신택스 요소들의 시그널링은 이러한 제한되는 경우를 반영하여 수정될 수 있고, 이를 통하여 파티셔닝을 위하여 시그널링되는 비트수를 줄일 수 있다. 예를 들어, 도 7에 도시된 예와 같이, CU의 센터 파티션에 대한 바이너리 트리 분할이 제한되는 경우, 분할이 바이너리 분할인지 테너리 분할인지 여부를 가리키는 mtt_split_cu_binary_flag 신택스 요소는 시그널링되지 않고, 그 값은 0으로 디코더에 의하여 추론될 수 있다.
예측(prediction)
디코딩이 수행되는 현재 처리 유닛을 복원하기 위해서 현재 처리 유닛이 포함된 현재 픽쳐 또는 다른 픽쳐들의 디코딩된 부분을 이용할 수 있다.
복원에 현재 픽쳐만을 이용하는, 즉 화면내 예측만을 수행하는 픽쳐(슬라이스)를 인트라 픽쳐 또는 I 픽쳐(슬라이스), 각 유닛을 예측하기 위하여 최대 하나의 움직임 벡터 및 레퍼런스 인덱스를 이용하는 픽쳐(슬라이스)를 예측 픽쳐(predictive picture) 또는 P 픽쳐(슬라이스), 최대 두 개의 움직임 벡터 및 레퍼런스 인덱스를 이용하는 픽쳐(슬라이스)를 쌍예측 픽쳐(Bi-predictive picture) 또는 B 픽쳐(슬라이스)라고 지칭할 수 있다.
인트라 예측은 동일한 디코딩된 픽쳐(또는 슬라이스)의 데이터 요소(예를 들어, 샘플 값 등)으로부터 현재 처리 블록을 도출하는 예측 방법을 의미한다. 즉, 현재 픽쳐 내의 복원된 영역들을 참조하여 현재 처리 블록의 픽셀값을 예측하는 방법을 의미한다.
이하, 인터 예측에 대하여 보다 상세히 살펴본다.
인터 예측(Inter prediction)(또는 화면 간 예측)
인터 예측은 현재 픽쳐 이외의 픽쳐의 데이터 요소(예를 들어, 샘플 값 또는 움직임 벡터 등)의 기반하여 현재 처리 블록을 도출하는 예측 방법을 의미한다. 즉, 현재 픽쳐 이외의 복원된 다른 픽쳐 내의 복원된 영역들을 참조하여 현재 처리 블록의 픽셀값을 예측하는 방법을 의미한다.
인터 예측(또는 픽처간 예측)은 픽처들 사이에 존재하는 중복성을 제거하는 기술로 대부분 움직임 추정(motion estimation) 및 움직임 보상(motion compensation)을 통해 이루어진다.
본 발명은 앞서 도 1 및 도 2에서 설명한 인터 예측 방법의 세부 기술을 설명하는 것으로 디코더의 경우 후술하는 도 10의 인터 예측 기반 비디오/영상 디코딩 방법 및 도 11의 디코딩 장치 내 인터 예측부로 나타낼 수 있다. 더불어 인코더의 경우, 후술하는 도 8의 인터 예측 기반 비디오/영상 인코딩 방법 및 도 9의 인코딩 장치 내 인터 예측부로 나타낼 수 있다. 더하여, 도 8 및 도 9에 의해 인코딩된 데이터는 비트스트림의 형태로 저장될 수 있다.
인코딩 장치/디코딩 장치의 예측부는 블록 단위로 인터 예측을 수행하여 예측 샘플을 도출할 수 있다. 인터 예측은 현재 픽처 이외의 픽처(들)의 데이터 요소들(e.g. 샘플값들, 또는 움직임 정보 등)에 의존적인 방법으로 도출되는 예측을 나타낼 수 있다. 현재 블록에 인터 예측이 적용되는 경우, 참조 픽처 인덱스가 가리키는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록(예측 샘플 어레이)을 유도할 수 있다.
이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 현재 블록의 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 타입(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다.
인터 예측이 적용되는 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 참조 블록을 포함하는 참조 픽처와 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 다를 수도 있다. 상기 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있으며, 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 예를 들어, 현재 블록의 주변 블록들을 기반으로 움직임 정보 후보 리스트가 구성될 수 있고, 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 선택(사용)되는지를 지시하는 플래그 또는 인덱스 정보가 시그널링될 수 있다.
다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드의 경우에, 현재 블록의 움직임 정보는 선택된 주변 블록의 움직임 정보와 같을 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(motion vector prediction, MVP) 모드의 경우, 선택된 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference)은 시그널링될 수 있다. 이 경우 상기 움직임 벡터 예측자 및 움직임 벡터 차분의 합을 이용하여 상기 현재 블록의 움직임 벡터를 도출할 수 있다.
도 8 및 도 9는 본 발명의 실시예에 따른 인터 예측 기반 비디오/영상 인코딩 방법 및 본 발명의 실시예에 따른 인코딩 장치 내 인터 예측부를 예시하는 도면이다.
도 8 및 도 9를 참조하면, S801은 인코딩 장치의 인터 예측부(180)에 의하여 수행될 수 있고, S802는 인코딩 장치의 레지듀얼 처리부에 의하여 수행될 수 있다. 구체적으로, S802은 인코딩 장치의 감산부(115)에 의하여 수행될 수 있다. S803에서 예측 정보는 인터 예측부(180)에 의하여 도출되고, 엔트로피 인코딩부(190)에 의하여 인코딩될 수 있다. S803에서 레지듀얼 정보는 레지듀얼 처리부에 의하여 도출되고, 엔트로피 인코딩부(190)에 의하여 인코딩될 수 있다. 상기 레지듀얼 정보는 상기 레지듀얼 샘플들에 관한 정보이다. 상기 레지듀얼 정보는 상기 레지듀얼 샘플들에 대한 양자화된 변환 계수들에 관한 정보를 포함할 수 있다.
상술한 바와 같이 상기 레지듀얼 샘플들은 인코딩 장치의 변환부(120)를 통하여 변환 계수들로 도출되고, 상기 변환 계수들은 양자화부(130)를 통하여 양자화된 변환 계수들로 도출될 수 있다. 상기 양자화된 변환 계수들에 관한 정보가 레지듀얼 코딩 절차를 통하여 엔트로피 인코딩부(190)에서 인코딩될 수 있다.
인코딩 장치는 현재 블록에 대한 인터 예측을 수행한다(S801). 인코딩 장치는 현재 블록의 인터 예측 모드 및 움직임 정보를 도출하고, 상기 현재 블록의 예측 샘플들을 생성할 수 있다. 여기서 인터 예측 모드 결정, 움직임 정보 도출 및 예측 샘플들 생성 절차는 동시에 수행될 수도 있고, 어느 한 절차가 다른 절차보다 먼저 수행될 수도 있다. 예를 들어, 인코딩 장치의 인터 예측부(180)는 예측 모드 결정부(181), 움직임 정보 도출부(182), 예측 샘플 도출부(183)를 포함할 수 있으며, 예측 모드 결정부(181)에서 상기 현재 블록에 대한 예측 모드를 결정하고, 움직임 정보 도출부(182)에서 상기 현재 블록의 움직임 정보를 도출하고, 예측 샘플 도출부(183)에서 상기 현재 블록의 움직임 샘플들을 도출할 수 있다.
예를 들어, 인코딩 장치의 인터 예측부(180)는 움직임 추정(motion estimation)을 통하여 참조 픽처들의 일정 영역(서치 영역) 내에서 상기 현재 블록과 유사한 블록을 서치하고, 상기 현재 블록과의 차이가 최소 또는 일정 기준 이하인 참조 블록을 도출할 수 있다. 이를 기반으로 상기 참조 블록이 위치하는 참조 픽처를 가리키는 참조 픽처 인덱스를 도출하고, 상기 참조 블록과 상기 현재 블록의 위치 차이를 기반으로 움직임 벡터를 도출할 수 있다. 인코딩 장치는 다양한 예측 모드들 중 상기 현재 블록에 대하여 적용되는 모드를 결정할 수 있다. 인코딩 장치는 상기 다양한 예측 모드들에 대한 RD cost를 비교하고 상기 현재 블록에 대한 최적의 예측 모드를 결정할 수 있다.
예를 들어, 인코딩 장치는 상기 현재 블록에 스킵 모드 또는 머지 모드가 적용되는 경우, 후술하는 머지 후보 리스트를 구성하고, 상기 머지 후보 리스트에 포함된 머지 후보들이 가리키는 참조 블록들 중 상기 현재 블록과 중 상기 현재 블록과의 차이가 최소 또는 일정 기준 이하인 참조 블록을 도출할 수 있다. 이 경우 상기 도출된 참조 블록과 연관된 머지 후보가 선택되며, 상기 선택된 머지 후보를 가리키는 머지 인덱스 정보가 생성되어 디코딩 장치로 시그널링될 수 있다. 상기 선택된 머지 후보의 움직임 정보를 이용하여 상기 현재 블록의 움직임 정보가 도출할 수 있다.
다른 예로, 인코딩 장치는 상기 현재 블록에 (A)MVP 모드가 적용되는 경우, 후술하는 (A)MVP 후보 리스트를 구성하고, 상기 (A)MVP 후보 리스트에 포함된 mvp (motion vector predictor) 후보들 중 선택된 mvp 후보의 움직임 벡터를 상기 현재 블록의 mvp로 이용할 수 있다. 이 경우, 예를 들어, 상술한 움직임 추정에 의하여 도출된 참조 블록을 가리키는 움직임 벡터가 상기 현재 블록의 움직임 벡터로 이용될 수 있으며, 상기 mvp 후보들 중 상기 현재 블록의 움직임 벡터와의 차이가 가장 작은 움직임 벡터를 갖는 mvp 후보가 상기 선택된 mvp 후보가 될 있다. 상기 현재 블록의 움직임 벡터에서 상기 mvp를 뺀 차분인 MVD(motion vector difference)가 도출될 수 있다. 이 경우 상기 MVD에 관한 정보가 디코딩 장치로 시그널링될 수 있다. 또한, (A)MVP 모드가 적용되는 경우, 상기 참조 픽처 인덱스의 값은 참조 픽처 인덱스 정보 구성되어 별도로 상기 디코딩 장치로 시그널링될 수 있다.
인코딩 장치는 상기 예측 샘플들을 기반으로 레지듀얼 샘플들을 도출할 수 있다(S802). 인코딩 장치는 상기 현재 블록의 원본 샘플들과 상기 예측 샘플들의 비교를 통하여 상기 레지듀얼 샘플들을 도출할 수 있다.
인코딩 장치는 예측 정보 및 레지듀얼 정보를 포함하는 영상 정보를 인코딩한다(S803). 인코딩 장치는 인코딩된 영상 정보를 비트스트림 형태로 출력할 수 있다. 상기 예측 정보는 상기 예측 절차에 관련된 정보들로 예측 모드 정보(ex. skip flag, merge flag or mode index 등) 및 움직임 정보에 관한 정보를 포함할 수 있다. 상기 움직임 정보에 관한 정보는 움직임 벡터를 도출하기 위한 정보인 후보 선택 정보(ex. merge index, mvp flag or mvp index)를 포함할 수 있다. 또한 상기 움직임 정보에 관한 정보는 상술한 MVD에 관한 정보 및/또는 참조 픽처 인덱스 정보를 포함할 수 있다.
또한, 상기 움직임 정보에 관한 정보는 L0 예측, L1 예측, 또는 쌍(bi) 예측이 적용되는지 여부를 나타내는 정보를 포함할 수 있다. 상기 레지듀얼 정보는 상기 레지듀얼 샘플들에 관한 정보이다. 상기 레지듀얼 정보는 상기 레지듀얼 샘플들에 대한 양자화된 변환 계수들에 관한 정보를 포함할 수 있다.
출력된 비트스트림은 (디지털) 저장매체에 저장되어 디코딩 장치로 전달될 수 있고, 또는 네트워크를 통하여 디코딩 장치로 전달될 수도 있다.
한편, 상술한 바와 같이 인코딩 장치는 상기 참조 샘플들 및 상기 레지듀얼 샘플들을 기반으로 복원 픽처(복원 샘플들 및 복원 블록 포함)를 생성할 수 있다. 이는 디코딩 장치에서 수행되는 것과 동일한 예측 결과를 인코딩 장치에서 도출하기 위함이며, 이를 통하여 코딩 효율을 높일 수 있기 때문이다. 따라서, 인코딩 장치는 복원 픽처(또는 복원 샘플들, 복원 블록)을 메모리에 저장하고, 인터 예측을 위한 참조 픽처로 활용할 수 있다. 상기 복원 픽처에 인루프 필터링 절차 등이 더 적용될 수 있음은 상술한 바와 같다.
도 10 및 도 11은 본 발명의 실시예에 따른 인터 예측 기반 비디오/영상 디코딩 방법 및 본 발명의 실시예에 따른 디코딩 장치 내 인터 예측부를 예시하는 도면이다.
도 10 및 도 11을 참조하면, 디코딩 장치는 상기 인코딩 장치에서 수행된 동작과 대응되는 동작을 수행할 수 있다. 디코딩 장치는 수신된 예측 정보를 기반으로 현재 블록에 예측을 수행하고 예측 샘플들을 도출할 수 있다.
S1001 내지 S1003은 디코딩 장치의 인터 예측부(260)에 의하여 수행될 수 있고, S1004의 레지듀얼 정보는 디코딩 장치의 엔트로피 디코딩부(210)에 의하여 비트스트림으로부터 획득될 수 있다. 디코딩 장치의 레지듀얼 처리부는 상기 레지듀얼 정보를 기반으로 현재 블록에 대한 레지듀얼 샘플들을 도출할 수 있다. 구체적으로 상기 레지듀얼 처리부의 역양자화부(220)는 상기 레지듀얼 정보를 기반으로 도출된 양자화된 변환 계수들을 기반으로, 역양자화를 수행하여 변환 계수들을 도출하고, 상기 레지듀얼 처리부의 역변환부(230)은 상기 변환 계수들에 대한 역변환을 수행하여 상기 현재 블록에 대한 레지듀얼 샘플들을 도출할 수 있다. S1005은 디코딩 장치의 가산부(235) 또는 복원부에 의하여 수행될 수 있다.
구체적으로 디코딩 장치는 수신된 예측 정보를 기반으로 상기 현재 블록에 대한 예측 모드를 결정할 수 있다(S1001). 디코딩 장치는 상기 예측 정보 내의 예측 모드 정보를 기반으로 상기 현재 블록에 어떤 인터 예측 모드가 적용되는지 결정할 수 있다.
예를 들어, 상기 merge flag를 기반으로 상기 현재 블록에 상기 머지 모드가 적용되지 또는 (A)MVP 모드가 결정되는지 여부를 결정할 수 있다. 또는 상기 mode index를 기반으로 다양한 인터 예측 모드 후보들 중 하나를 선택할 수 있다. 상기 인터 예측 모드 후보들은 스킵 모드, 머지 모드 및/또는 (A)MVP 모드를 포함할 수 있고, 또는 후술하는 다양한 인터 예측 모드들을 포함할 수 있다.
디코딩 장치는 상기 결정된 인터 예측 모드를 기반으로 상기 현재 블록의 움직임 정보를 도출한다(S1002). 예를 들어, 디코딩 장치는 상기 현재 블록에 스킵 모드 또는 머지 모드가 적용되는 경우, 후술하는 머지 후보 리스트를 구성하고, 상기 머지 후보 리스트에 포함된 머지 후보들이 중 하나의 머지 후보를 선택할 수 있다. 상기 선택은 상술한 선택 정보(merge index)를 기반으로 수행될 수 있다. 상기 선택된 머지 후보의 움직임 정보를 이용하여 상기 현재 블록의 움직임 정보가 도출할 수 있다. 상기 선택된 머지 후보의 움직임 정보가 상기 현재 블록의 움직임 정보로 이용될 수 있다.
다른 예로, 디코딩 장치는 상기 현재 블록에 (A)MVP 모드가 적용되는 경우, 후술하는 (A)MVP 후보 리스트를 구성하고, 상기 (A)MVP 후보 리스트에 포함된 mvp (motion vector predictor) 후보들 중 선택된 mvp 후보의 움직임 벡터를 상기 현재 블록의 mvp로 이용할 수 있다. 상기 선택은 상술한 선택 정보(mvp flag or mvp index)를 기반으로 수행될 수 있다. 이 경우 상기 MVD에 관한 정보를 기반으로 상기 현재 블록의 MVD를 도출할 수 있으며, 상기 현재 블록의 mvp와 상기 MVD를 기반으로 상기 현재 블록의 움직임 벡터를 도출할 수 있다. 또한, 상기 참조 픽처 인덱스 정보를 기반으로 상기 현재 블록의 참조 픽처 인덱스를 도출할 수 있다. 상기 현재 블록에 관한 참조 픽처 리스트 내에서 상기 참조 픽처 인덱스가 가리키는 픽처가 상기 현재 블록의 인터 예측을 위하여 참조되는 참조 픽처로 도출될 수 있다.
한편, 후술하는 바와 같이 후보 리스트 구성 없이 상기 현재 블록의 움직임 정보가 도출될 수 있으며, 이 경우 후술하는 예측 모드에서 개시된 절차에 따라 상기 현재 블록의 움직임 정보가 도출될 수 있다. 이 경우 상술한 바와 같은 후보 리스트 구성은 생략될 수 있다.
디코딩 장치는 상기 현재 블록의 움직임 정보를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성할 수 있다(S1003). 이 경우 상기 현재 블록의 참조 픽처 인덱스를 기반으로 상기 참조 픽처를 도출하고, 상기 현재 블록의 움직임 벡터가 상기 참조 픽처 상에서 가리키는 참조 블록의 샘플들을 이용하여 상기 현재 블록의 예측 샘플들을 도출할 수 있다. 이 경우 후술하는 바와 같이 경우에 따라 상기 현재 블록의 예측 샘플들 중 전부 또는 일부에 대한 예측 샘플 필터링 절차가 더 수행될 수 있다.
예를 들어, 디코딩 장치의 인터 예측부(260)는 예측 모드 결정부(261), 움직임 정보 도출부(262), 예측 샘플 도출부(263)를 포함할 수 있으며, 예측 모드 결정부(261)에서 수신된 예측 모드 정보를 기반으로 상기 현재 블록에 대한 예측 모드를 결정하고, 움직임 정보 도출부(262)에서 수신된 움직임 정보에 관한 정보를 기반으로 상기 현재 블록의 움직임 정보(움직임 벡터 및/또는 참조 픽처 인덱스 등)를 도출하고, 예측 샘플 도출부(263)에서 상기 현재 블록의 예측 샘플들을 도출할 수 있다.
디코딩 장치는 수신된 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 레지듀얼 샘플들을 생성한다(S1004). 디코딩 장치는 상기 예측 샘플들 및 상기 레지듀얼 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하고, 이를 기반으로 복원 픽처를 생성할 수 있다(S1005). 이후 상기 복원 픽처에 인루프 필터링 절차 등이 더 적용될 수 있음은 상술한 바와 같다.
상술한 바와 같이 인터 예측 절차는 인터 예측 모드 결정 단계, 결정된 예측 모드에 따른 움직임 정보 도출 단계, 도출된 움직임 정보에 기반한 예측 수행(예측 샘플 생성) 단계를 포함할 수 있다.
인터 예측 모드 결정 (Determination of inter prediction mode)
픽처 내 현재 블록의 예측을 위하여 다양한 인터 예측 모드가 사용될 수 있다. 예를 들어, 머지 모드, 스킵 모드, MVP 모드, 어파인(Affine) 모드 등 다양한 모드가 사용될 수 있다. DMVR (Decoder side motion vector refinement) 모드, AMVR(adaptive motion vector resolution) 모드 등이 부수적인 모드로 더 사용될 수 있다. 어파인 모드는 어파인 움직임 예측(affine motion prediction) 모드라고 불릴 수도 있다. MVP 모드는 AMVP(advanced motion vector prediction) 모드라고 불릴 수도 있다.
현재 블록의 인터 예측 모드를 가리키는 예측 모드 정보가 인코딩 장치로부터 디코딩 장치로 시그널링될 수 있다. 상기 예측 모드 정보는 비트스트림에 포함되어 디코딩 장치에 수신될 수 있다. 상기 예측 모드 정보는 다수의 후보 모드들 중 하나를 지시하는 인덱스 정보를 포함할 수 있다. 또는, 플래그 정보의 계층적 시그널링을 통하여 인터 예측 모드를 지시할 수도 있다. 이 경우 상기 예측 모드 정보는 하나 이상의 플래그들을 포함할 수 있다.
예를 들어, 스킵 플래그를 시그널링하여 스킵 모드 적용 여부를 지시하고, 스킵 모드가 적용 안되는 경우에 머지 플래그를 시그널링하여 머지 모드 적용 여부를 지시하고, 머지 모드가 적용 안되는 경우에 MVP 모드 적용되는 것으로 지시하거나 추가적인 구분을 위한 플래그를 더 시그널링할 수도 있다. 어파인 모드는 독립적인 모드로 시그널링될 수도 있고, 또는 머지 모드 또는 MVP 모드 등에 종속적인 모드로 시그널링될 수도 있다. 예를 들어, 어파인 모드는 후술하는 바와 같이 머지 후보 리스트 또는 MVP 후보 리스트의 하나의 후보로 구성될 수도 있다.
움직임 정보 도출 (Derivation of motion information according to inter prediction mode)
현재 블록의 움직임 정보를 이용하여 인터 예측을 수행할 수 있다. 인코딩 장치는 움직임 추정(motion estimation) 절차를 통하여 현재 블록에 대한 최적의 움직임 정보를 도출할 수 있다. 예를 들어, 인코딩 장치는 현재 블록에 대한 원본 픽처 내 원본 블록을 이용하여 상관성이 높은 유사한 참조 블록을 참조 픽처 내의 정해진 탐색 범위 내에서 분수 픽셀 단위로 탐색할 수 있고, 이를 통하여 움직임 정보를 도출할 수 있다. 블록의 유사성은 위상(phase) 기반 샘플 값들의 차를 기반으로 도출할 수 있다. 예를 들어, 블록의 유사성은 현재 블록(또는 현재 블록의 템플릿)과 참조 블록(또는 참조 블록의 템플릿) 간 SAD를 기반으로 계산될 수 있다. 이 경우 탐색 영역 내 SAD가 가장 작은 참조 블록을 기반으로 움직임 정보를 도출할 수 있다. 도출된 움직임 정보는 인터 예측 모드 기반으로 여러 방법에 따라 디코딩 장치로 시그널링될 수 있다.
머지 모드 및 스킵 모드
도 12는 본 발명이 적용되는 실시예로서, 머지 모드 또는 스킵 모드에서 이용되는 주변 블록을 설명하기 위한 도면이다.
머지 모드(merge mode)가 적용되는 경우, 현재 예측 블록의 움직임 정보가 직접적으로 전송되지 않고, 주변 예측 블록의 움직임 정보를 이용하여 상기 현재 예측 블록의 움직임 정보를 유도하게 된다. 따라서, 머지 모드를 이용하였음을 알려주는 플래그 정보 및 주변의 어떤 예측 블록을 이용하였는지를 알려주는 머지 인덱스를 전송함으로써 현재 예측 블록의 움직임 정보를 지시할 수 있다.
인코더는 머지 모드를 수행하기 위해서 현재 예측 블록의 움직임 정보를 유도하기 위해 이용되는 머지 후보 블록(merge candidate block)을 탐색할 수 있다. 예를 들어, 상기 머지 후보 블록은 최대 5개까지 이용될 수 있으나, 본 발명은 이에 한정되지 않는다. 그리고, 상기 머지 후보 블록의 최대 개수는 슬라이스 헤더(또는 타일 그룹 헤더)에서 전송될 수 있으며, 본 발명은 이에 한정되지 않는다. 상기 머지 후보 블록들을 찾은 후, 인코더는 머지 후보 리스트를 생성할 수 있고, 이들 중 가장 작은 비용을 갖는 머지 후보 블록을 최종 머지 후보 블록으로 선택할 수 있다.
본 발명은 상기 머지 후보 리스트를 구성하는 머지 후보 블록에 대한 다양한 실시예를 제공한다.
상기 머지 후보 리스트는 예를 들어 5개의 머지 후보 블록을 이용할 수 있다. 예를 들어, 4개의 공간적 머지 후보(spatial merge candidate)와 1개의 시간적 머지 후보(temporal merge candidate)를 이용할 수 있다. 구체적 예로, 공간적 머지 후보의 경우 도 12에 도시된 블록들을 공간적 머지 후보로 이용할 수 있다.
도 13은 본 발명이 적용되는 일 실시예에 따른 머지 후보 리스트 구성 방법을 예시하는 흐름도이다.
도 13을 참조하면, 코딩 장치(인코더/디코더)는 현재 블록의 공간적 주변 블록들을 탐색하여 도출된 공간적 머지 후보들을 머지 후보 리스트에 삽입한다(S1301). 예를 들어, 상기 공간적 주변 블록들은 상기 현재 블록의 좌하측 코너 주변 블록, 좌측 주변 블록, 우상측 코너 주변 블록, 상측 주변 블록, 좌상측 코너 주변 블록들을 포함할 수 있다. 다만, 이는 예시로서 상술한 공간적 주변 블록들 이외에도 우측 주변 블록, 하측 주변 블록, 우하측 주변 블록 등 추가적인 주변 블록들이 더 상기 공간적 주변 블록들로 사용될 수 있다. 코딩 장치는 상기 공간적 주변 블록들을 우선순위를 기반으로 탐색하여 가용한 블록들을 검출하고, 검출된 블록들의 움직임 정보를 상기 공간적 머지 후보들로 도출할 수 있다. 예를 들어, 인코더 및 디코더는 도 12에 도시된 5개의 블록들을 A1, B1, B0, A0, B2의 순서대로 탐색하여, 가용한 후보들을 순차적으로 인덱싱하여 머지 후보 리스트로 구성할 수 있다.
코딩 장치는 상기 현재 블록의 시간적 주변 블록을 탐색하여 도출된 시간적 머지 후보를 상기 머지 후보 리스트에 삽입한다(S1302). 상기 시간적 주변 블록은 상기 현재 블록이 위치하는 현재 픽처와 다른 픽처인 참조 픽처 상에 위치할 수 있다. 상기 시간적 주변 블록이 위치하는 참조 픽처는 collocated 픽처 또는 col 픽처라고 불릴 수 있다. 상기 시간적 주변 블록은 상기 col 픽처 상에서의 상기 현재 블록에 대한 동일 위치 블록(co-located block)의 우하측 코너 주변 블록 및 우하측 센터 블록의 순서로 탐색될 수 있다.
한편, motion data compression이 적용되는 경우, 상기 col 픽처에 일정 저장 단위마다 특정 움직임 정보를 대표 움직임 정보로 저장할 수 있다. 이 경우 상기 일정 저장 단위 내의 모든 블록에 대한 움직임 정보를 저장할 필요가 없으며 이를 통하여 motion data compression 효과를 얻을 수 있다. 이 경우, 일정 저장 단위는 예를 들어 16x16 샘플 단위, 또는 8x8 샘플 단위 등으로 미리 정해질 수도 있고, 또는 인코더에서 디코더로 상기 일정 저장 단위에 대한 사이즈 정보가 시그널링될 수도 있다. 상기 motion data compression이 적용되는 경우 상기 시간적 주변 블록의 움직임 정보는 상기 시간적 주변 블록이 위치하는 상기 일정 저장 단위의 대표 움직임 정보로 대체될 수 있다.
즉, 이 경우 구현 측면에서 보면, 상기 시간적 주변 블록의 좌표에 위치하는 예측 블록이 아닌, 상기 시간적 주변 블록의 좌표(좌상단 샘플 포지션)를 기반으로 일정 값만큼 산술적 오른쪽 쉬프트 후 산술적 왼쪽 쉬프트 한 위치를 커버하는 예측 블록의 움직임 정보를 기반으로 상기 시간적 머지 후보가 도출될 수 있다. 예를 들어, 상기 일정 저장 단위가 2nx2n 샘플 단위인 경우, 상기 시간적 주변 블록의 좌표가 (xTnb, yTnb)라 하면, 수정된 위치인 ((xTnb>>n)<<n), (yTnb>>n)<<n))에 위치하는 예측 블록의 움직임 정보가 상기 시간적 머지 후보를 위하여 사용될 수 있다.
구체적으로, 예를 들어, 상기 일정 저장 단위가 16x16 샘플 단위인 경우, 상기 시간적 주변 블록의 좌표가 (xTnb, yTnb)라 하면, 수정된 위치인 ((xTnb>>4)<<4), (yTnb>>4)<<4))에 위치하는 예측 블록의 움직임 정보가 상기 시간적 머지 후보를 위하여 사용될 수 있다. 또는 예를 들어, 상기 일정 저장 단위가 8x8 샘플 단위인 경우, 상기 시간적 주변 블록의 좌표가 (xTnb, yTnb)라 하면, 수정된 위치인 ((xTnb>>3)<<3), (yTnb>>3)<<3))에 위치하는 예측 블록의 움직임 정보가 상기 시간적 머지 후보를 위하여 사용될 수 있다.
코딩 장치는 현재 머지 후보들의 개수가 최대 머지 후보들의 개수보다 작은지 여부를 확인할 수 있다(S1303). 상기 최대 머지 후보들의 개수는 미리 정의되거나 인코더에서 디코더로 시그널링될 수 있다. 예를 들어, 인코더는 상기 최대 머지 후보들의 개수에 관한 정보를 생성하고, 인코딩하여 비트스트림 형태로 상기 디코더로 전달할 수 있다. 상기 최대 머지 후보들의 개수가 다 채워지면 이후의 후보 추가 과정은 진행하지 않을 수 있다.
상기 확인 결과 상기 현재 머지 후보들의 개수가 상기 최대 머지 후보들의 개수보다 작은 경우, 코딩 장치는 추가 머지 후보를 상기 머지 후보 리스트에 삽입한다(S1304). 상기 추가 머지 후보는 예를 들어 ATMVP, combined bi-predictive 머지 후보 (현재 슬라이스의 슬라이스 타입이 B 타입인 경우) 및/또는 영벡터 머지 후보를 포함할 수 있다.
상기 확인 결과 상기 현재 머지 후보들의 개수가 상기 최대 머지 후보들의 개수보다 작지 않은 경우, 코딩 장치는 상기 머지 후보 리스트의 구성을 종료할 수 있다. 이 경우 인코더는 RD(rate-distortion) cost 기반으로 상기 머지 후보 리스트를 구성하는 머지 후보들 중 최적의 머지 후보를 선택할 수 있으며, 상기 선택된 머지 후보를 가리키는 선택 정보(ex. merge index)를 디코더로 시그널링할 수 있다. 디코더는 상기 머지 후보 리스트 및 상기 선택 정보를 기반으로 상기 최적의 머지 후보를 선택할 수 있다.
상기 선택된 머지 후보의 움직임 정보가 상기 현재 블록의 움직임 정보로 사용될 수 있으며, 상기 현재 블록의 움직임 정보를 기반으로 상기 현재 블록의 예측 샘플들을 도출할 수 있음을 상술한 바와 같다. 인코더는 상기 예측 샘플들을 기반으로 상기 현재 블록의 레지듀얼 샘플들을 도출할 수 있으며, 상기 레지듀얼 샘플들에 관한 레지듀얼 정보를 디코더로 시그널링할 수 있다. 디코더는 상기 제지듀얼 정보를 기반으로 도출된 레지듀얼 샘플들 및 상기 예측 샘플들을 기반으로 복원 샘플들을 생성하고, 이를 기반으로 복원 픽처를 생성할 수 있음은 상술한 바와 같다.
스킵 모드(skip mode)가 적용되는 경우, 앞에서 머지 모드가 적용되는 경우와 동일한 방법으로 상기 현재 블록의 움직임 정보를 도출할 수 있다. 다만, 스킵 모드가 적용되는 경우 해당 블록에 대한 레지듀얼 신호가 생략되며 따라서 예측 샘플들이 바로 복원 샘플들로 이용될 수 있다.
MVP 모드
도 14는 본 발명이 적용되는 일 실시예에 따른 머지 후보 리스트 구성 방법을 예시하는 흐름도이다.
MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록(예를 들어, 앞서 도 12에서 설명한 주변 블록일 수 있다)의 움직임 벡터 및/또는 시간적 주변 블록(또는 Col 블록)에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자(motion vector predictor, mvp) 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록에 대응하는 움직임 벡터는 움직임 벡터 예측자 후보로 사용될 수 있다.
상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 예측자 후보들 중에서 선택된 최적의 움직임 벡터 예측자 후보를 지시하는 선택 정보(ex. MVP 플래그 또는 MVP 인덱스)를 포함할 수 있다. 이 때, 예측부는 상기 선택 정보를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 예측자 후보들 중에서, 현재 블록의 움직임 벡터 예측자를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 디코딩 장치의 예측부는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 디코딩 장치의 예측부는 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다. 예를 들어, 움직임 벡터 예측자 후보 리스트는 도 14에 도시된 바와 같이 구성될 수 있다.
ATMVP(Advanced Temporal Motion Vector Prediction)
도 15 및 도 16은 본 발명이 적용되는 일 실시예로서, ATMVP(Advanced Temporal Motion Vector Prediction) 후보를 유도하는 방법을 설명하기 위한 도면이다.
도 15를 참조하면, ATMVP는 시간적으로 이웃하는 픽쳐의 collocated blocks의 움직임 정보에 기초하여 코딩 유닛의 서브 블록들에 대한 움직임 정보를 유도하는 방법이다. 이를 통해, 시간적 움직임 벡터 예측(Temporal Motion Vector Prediction, TMVP)의 성능을 향상시킬 수 있으며, 일반적인 또는 worst case의 복잡도를 낮출 수 있다. 본 발명에서, ATMVP는 서브 블록 기반 시간 머지 후보(subblock-based temporal merging candidate), SbTMVP로 지칭될 수도 있다.
본 발명의 일 실시예에서, ATMVP는 다음과 같은 과정에 의해 유도될 수 있다.
먼저, 인코더/디코더는 이웃하는 코딩 유닛이 이용 가능하고, 이용 가능한 코딩 유닛의 움직임 벡터가 현재 후보 리스트 내의 움직임 벡터와 다르면, 공간적 이웃 코딩 유닛들로부터 움직임 벡터를 추가할 수 있다. 일 예로, 도 16을 참조하면, 상술한 과정은 A1, B1, B0, A0, B2 의 순서에 따라 수행될 수 있다. 다른 일 예로, 복잡도 개선을 위하여, 상술한 과정은 고정된 위치(예를 들어, A1 위치) 블록의 움직임 벡터만을 이용하여 ATMVP를 유도할 수도 있다.
상기 인코더/디코더는, 이용 가능한 No개의 공간 후보들 중 첫 번째 움직임 벡터 후보는 collocated picture 및 각 서브 블록의 움직임 정보를 유도할 위치를 결정하기 위해 이용될 수 있다. 여기서, No는 이용가능한 공간 후보자들의 개수를 나타낸다. 만약, No가 0이면, collocated picture 및 움직임 0인 collocated position은 각 서브 블록의 움직임 정보를 유도하기 위해 이용될 수 있다.
다수의 참조 픽쳐들이 이용되는 경우, ATMVP에 있어서 서로 다른 코딩 유닛들의 collocated picture 는 같지 않을 수 있다. 현재 픽쳐 내의 서로 다른 코딩 유닛들에 대해, ATMVP 유도를 위해 서로 다른 collocated picture를 갖는다는 것은 다수의 참조 픽쳐들의 움직임 정보 필드들이 유도되어야만 한다는 것을 의미하고 이는 메모리 대역폭(bandwidth)을 증가시키기 때문에 바람직하지 않다.
따라서, 본 발명은, ATMVP를 유도할 때 동일한 collocated picture를 사용하는, 보다 단순화된 디자인을 제공한다. 예를 들어, 동일한 collocated picture 를 사용하는 방법은 슬라이스(또는 타일 그룹) 헤더에서 정의될 수 있으나, 본 발명은 이에 한정되지 않는다. 일 예로, 블록 레벨에서, 이웃 블록 A의 참조 픽쳐가 collocated picture와 다르면, 이웃 블록 A의 움직임 벡터는 시간적 움직임 벡터 스케일링 방법에 기초하여 스케일링 될 수 있다. 그리고, 상기 이웃 블록 A의 스케일된 움직임 벡터는 ATMVP에서 이용될 수 있다.
도 17은 본 발명이 적용되는 일 실시예로서, ATMVP(Advanced Temporal Motion Vector Prediction) 후보를 유도하는 방법을 예시하는 도면이다.
도 17을 참조하면, 본 발명의 일 실시예에서, 현재 블록의 우하단(right-bottom) 블록 또는 현재 블록의 중앙(center) 위치의 시간 이웃 블록(또는 colPB)의 움직임 벡터를 사용하는 TMVP는 화면 내 움직임을 반영하지 못하므로, 인코더/디코더는 주변 블록의 움직임 벡터가 가리키는 위치의 colPB의 움직임 벡터를 MVP로 사용할 수 있다.
예를 들어, 인코더/디코더는 도 17에 도시된 머지 후보자 구성 순서와 같이 체크하면서 가장 먼저 이용 가능한 공간 이웃 블록(spatial neighbor block)의 움직임 벡터를 찾을 수 있다. 그리고, 참조 픽쳐에서 상기 움직임 벡터가 가리키는 위치를 col-PB(즉, ATMVP 후보)로 도출할 수 있다.
또한, 상기 움직임 벡터를 각 서브 블록 단위로 대응 블록(corresponding block)의 움직임 벡터로서 사용할 수 있다. 이때, 특정 서브 블록에 움직임 벡터가 존재하지 않는 경우, 상기 대응 블록의 센터(center)에 위치한 센터 블록의 움직임 벡터를 이용 가능하지 않은 서브 블록을 위한 움직임 벡터로 사용할 수 있으며, 이를 대표 움직임 벡터로 저장할 수 있다.
Temporal motion vector data Storage reduction
본 발명의 일 실시예에서, 시간 움직임 벡터 데이터(Temporal motion vector data) 압축을 위해, 공간 후보들의 움직임 벡터 데이터에 기초하여 시간 움직임 벡터 저장(Temporal motion vector storage)을 감소시키는 방법을 제안한다.
도 18 및 도 19는 본 발명이 적용되는 일 실시예에 따른, 시간 움직임 벡터 데이터(Temporal motion vector data)를 압축하는 방법 및 이에 이용되는 공간 후보들의 위치를 예시하는 도면이다.
도 18을 참조하면, 본 발명의 실시예에서, 공간 후보(spatial candidate)가 인터 예측에 의해 예측되면, 공간 후보의 움직임 벡터는 압축을 위한 기본 움직임 벡터로 설정될 수 있다. 예를 들어, 최대 5개의 공간 후보가 기본 시간 움직임 벡터를 유도하기 위한 참조 시간 움직임 정보로 이용될 수 있다. 일 실시예로, 상기 5개의 공간 후보는 도 19에 도시된 바와 같이 설정될 수 있다.
또한, 시간 움직임 벡터 데이터는 공간 후보들의 움직임 벡터에 기초하여 압축될 수 있다. 공간 후보를 서치하는 순서는 도 18에 도시된 바와 같을 수 있다. 공간 후보들은 센터 블록(C), 좌상측 블록(TL), 우상측 블록(TR), 좌하측 블록(BL), 우하측 블록(BR)의 순서에 따라 확인될 수 있다. 이는 일실시예일 뿐이며, 본 발명은 이에 한정되지 않으며, 다른 조합 가능한 순서가 적용될 수 있다.
먼저, 인코더/디코더는 센터 블록(C)이 인터 예측 되었는지 확인할 수 있다. 상기 센터 블록(C)이 인터 예측 되었다면, 인코더/디코더는 상기 센터 블록(C)의 움직임 벡터를 움직임 벡터 예측을 위한 기본값(default)으로 설정할 수 있다.
상기 센터 블록(C)이 인터 예측 되지 않았다면, 인코더/디코더는 좌상측 블록(TL)이 인터 예측 되었는지 확인할 수 있다. 좌상측 블록(TL)이 인터 예측 되었다면, 인코더/디코더는 인코더는 상기 좌상측 블록(TL)의 움직임 벡터를 움직임 벡터 예측을 위한 기본값(default)로 설정할 수 있다.
상기 좌상측 블록(TL)이 인터 예측 되지 않았다면, 인코더/디코더는 우상측 블록(TR)이 인터 예측 되었는지 확인할 수 있다. 상기 우상측 블록(TR)이 인터 예측 되었다면, 인코더/디코더는 상기 우상측 블록(TR)의 움직임 벡터를 움직임 벡터 예측을 위한 기본값(default)로 설정할 수 있다.
상기 우상측 블록(TR)이 인터 예측 되지 않았다면, 인코더/디코더는 좌하측 블록(BL)이 인터 예측 되었는지 확인할 수 있다. 상기 좌하측 블록(BL)이 인터 예측 되었다면, 인코더/디코더는 상기 좌하측 블록(BL)의 움직임 벡터를 움직임 벡터 예측을 위한 기본값(default)로 설정할 수 있다.
상기 좌하측 블록(BL)이 인터 예측 되지 않았다면, 인코더/디코더는 우하측 블록(BR)이 인터 예측 되었는지 확인할 수 있다. 상기 우하측 블록(BR)이 인터 예측 되었다면, 인코더/디코더는 상기 우하측 블록(BR)의 움직임 벡터를 움직임 벡터 예측을 위한 기본값(default)로 설정할 수 있다.
상기 우하측 블록(BR)이 인터 예측 되지 않았다면, 인코더/디코더는 인트라 모드를 기본(default)으로 설정할 수 있다.
위와 같은 과정을 통해, 인코더/디코더는 기본 움직임 벡터(default motion vector)를 움직임 정보로 압축할 수 있다.
적응적인 서브 블록 사이즈에 기초하여 ATMVP 를 수행하는 실시예
본 발명의 일실시예에서, 적응적인 서브 블록 사이즈에 기초하여 ATMVP를 수행하는 방법을 제안한다. 예를 들어, ATMVP 유도를 위해 이용되는 서브 블록 사이즈는 슬라이스 레벨에서 적응적으로 적용될 수 있다.
한편, 4x4 블록 단위로 ATMVP 움직임 정보가 유도된다면, 하나의 ATMVP 코딩 유닛 내에서 매 4x4 서브 블록 단위로 움직임 유도 및 움직임 보상을 수행하게 되는 문제점이 생길 수 있다.
이를 해결하기 위해, 인코더는 ATMVP 움직임 유도를 위해 이용되는 하나의 기본 서브 블록 사이즈(default sub-block size)를 시퀀스 레벨에서 디코더로 시그널링할 수 있다.
다른 일 예로, 기본 서브 블록 사이즈(default sub-block size)가 현재 슬라이스에서 이용되는 경우, 픽쳐 또는 슬라이스 레벨에서 플래그가 시그널링될 수 있다. 상기 플래그가 false 이면, ATMVP 서브 블록 사이즈는 슬라이스 헤더에서 추가적으로 시그널링 될 수 있다.
Collocated block 유도를 위한 영역을 제한하는 실시예
본 발명에 있어서, ATMVP 를 위한 Collocated block 의 영역은 현재 CTU 및 collocated picture 내 한 열(one column)의 NxN 블록을 포함할 수 있다. 예를 들어, 상기 NxN 블록은 4x4 블록일 수 있으나, 본 발명은 이에 한정되지 않는다.
만약, 머지 후보의 움직임 벡터에 의해 식별된 ATMVP Collocated block이 상기 제한된 영역의 밖에 위치하는 경우, 상기 제한된 영역 내에 위치하도록 이동될 수 있다. 예를 들어, 상기 제한된 영역 내의 가장 가까운 경계에 위치하도록 이동될 수 있다.
Subblock-based temporal merging candidate를 유도하는 실시예
본 발명의 일 실시예에서, 인코더/디코더는 공간적으로 이웃하는 블록의 움직임 정보에 기초하여 특정되는 collocated picture 내 collocated block(또는 collocated subblock)의 움직임 정보를 서브 블록 기반 시간 머지 후보(subblock-based temporal merging candidate)로서 서브 블록 머지 후보 리스트(subblock merging candidate list)에 추가할 수 있다.
본 발명에서, 공간적으로 이웃하는 블록의 움직임 정보는 시간 움직임 벡터(temporal motion vector)로 지칭될 수 있다. 실시예로서, 인코더/디코더는 현재 코딩 블록의 너비와 높이가 미리 정해진 특정 크기보다 크거나 같은 경우, 서브 블록 기반 시간 머지 후보를 유도할 수 있다. 예를 들어, 상기 미리 정해진 특정 크기는 8일 수 있다.
실시예로서, 인코더/디코더는 이용 가능한 공간 후보들 중 첫 번째 공간 후보의 움직임 정보를 시간 움직임 벡터로 설정할 수 있다. 일 예로, 인코더/디코더는 A1, B1, B0, A0의 순서로 이용 가능한 공간 후보를 탐색할 수 있다. 이때, 인코더/디코더는 이용 가능한 공간 후보들 중에서 참조 픽쳐가 collocated picture와 동일한 공간 후보를 시간 움직임 벡터로 설정할 수 있다. 다른 일 예로, 인코더/디코더는 하나의 고정된 위치의 공간 후보가 이용 가능한지 확인하고, 이용 가능한 경우 해당 공간 후보의 움직임 벡터를 시간 움직임 벡터로 설정할 수 있다. 예를 들어, 상기 하나의 고정된 위치의 공간 후보는 A1 위치의 블록으로 설정될 수 있다.
또한, 인코더/디코더는 상기 시간 움직임 벡터를 이용하여 collocated picture 내 collocated block의 위치를 특정할 수 있다. 일 예로, 다음의 수학식 1이 이용될 수 있다.
Figure PCTKR2019007837-appb-img-000002
여기서, ( xColCtrCb, yColCtrCb ) 는 중앙 위치의 우하측 샘플을 포함하는 collocated coding block의 top-left sample 위치를 나타내고, tempMv는 상기 시간 움직임 벡터를 나타낸다.
또한, 인코더/디코더는 서브 블록 단위로 현재 코딩 블록 내 각 서브 블록의 움직임 정보를 유도할 위치를 결정할 수 있다. 일 실시예에서, 다음의 수학식 2를 이용하여 collocated picture 내 collocated subblock의 위치가 유도될 수 있다.
Figure PCTKR2019007837-appb-img-000003
여기서, ( xSb, ySb )는 현재 서브 블록의 위치를 나타낸다.
일 실시예에서, 인코더/디코더는 현재 collocated subblock이 이용 가능하지 않은 경우, 시간 움직임 벡터를 이용하여 특정되는 collocated block의 움직임 정보를 이용할 수 있다.
도 20은 본 발명이 적용되는 실시예에 따른 후보 리스트(candidate list)를 기반으로 인터 예측된 블록(inter predicted block)을 생성하는 방법을 나타내는 흐름도이다.
도 20을 참조하면, 앞서 도 1 및 도 2에서 설명한 인터 예측부(180, 260)에 의해 수행되는 인터 예측 프로세스를 예시한다. 도 20에서는, 인터 예측을 통해 예측된 움직임 정보(PMI, Predicted Motion Information)를 유도하여 예측을 수행하는 방법으로서 머지 모드 및 인터 모드(즉, (A)MVP 모드)가 이용되는 경우를 가정한다. 다만, 본 발명이 이에 제한되는 것은 아니며, 이외에 여러 다양한 모드가 인터 예측을 위해 적용될 수 있다.
전술한 바와 같이, 머지 모드 및 인터 모드는 예측 블록 생성에 이용되는 최종 PMI를 유도하기 위하여 후보 인덱스(candidate index) 이외에 추가적으로 움직임 정보 차분(MVD, Motion Vector Difference), 참조 리스트(reference list)(또는 참조 픽쳐 리스트) 및/또는 참조 픽쳐 인덱스(reference picture index) 중 적어도 하나를 비트스트림을 통해 전송받는지 여부에 따라 구분될 수 있다
구체적으로, 인코더/디코더는 현재 블록에 머지 모드가 적용되는지 여부를 확인한다(S2001).
현재 블록에 머지 모드가 적용되는 경우, 인코더/디코더는 머지 후보(또는 머지 후보 리스트)를 생성하고, 현재 블록의 인터 예측에 이용된 PMI를 선택한다(S2002, 2003). 머지 모드가 적용되는 경우, 인코더는 상기 선택된 PMI 정보를 머지 인덱스로서 디코더로 전송할 수 있다. 상기 머지 인덱스는 머지 후보 중에서 특정 머지 후보를 지시할 수 있다. 인코더/디코더는 상기 특정 머지 후보의 움직임 정보를 현재 블록의 인터 예측을 위한 움직임 벡터로서 이용할 수 있다.
현재 블록에 머지 모드가 적용되지 않는 경우(즉, 인터 모드가 적용되는 경우), 인코더/디코더는 인터 후보(또는 인터 후보 리스트)를 생성하고, 현재 블록의 인터 예측에 이용된 초기 PMI(또는 움직임 벡터 예측자(motion vector predictor))를 선택한다(S2004, S2005). 인터 모드가 적용되는 경우, 인코더는 상기 선택된 PMI 정보를 움직임 벡터 예측자 플래그(또는 인덱스)로서 디코더로 전송할 수 있다. 상기 움직임 벡터 예측자 플래그는 인터 후보 중에서 특정 인터 후보를 지시할 수 있다. 그리고, 상기 인터 후보는 움직임 벡터 예측자 후보로 지칭될 수 있다. 인코더/디코더는 상기 초기 PMI에 움직임 벡터 차분을 가산함으로써 예측에 이용된 움직임 벡터를 유도한다(S2006).
인코더/디코더는 유도된 움직임 벡터를 이용하여 현재 블록의 예측 블록을 생성한다(S2007).
즉, 머지 모드가 적용되는 경우, 인코더/디코더는 최종 PMI를 유도하기 위하여 후보 인덱스(즉, 머지 인덱스)의 시그널링 이외에 추가적인 신택스(또는 신택스 요소)를 이용하지 않으며, 후보 인덱스를 통해 선택된 후보의 움직임 정보를 이용하여 현재 블록의 예측 블록을 생성한다. 이때, 후보 생성 프로세스는 S2002 단계(또는 블록)에서 수행된다.
인터 모드가 적용되는 경우에도 머지 모드와 유사한 방법으로 S2004 단계에서 후보 생성 프로세스가 수행된다. 인터 모드가 적용되는 경우, 인코더/디코더는 선택된 후보의 움직임 정보에 기초하여 추가적인 움직임 정보를 받아 최종 PMI를 유도하고, 이를 이용하여 현재 블록의 예측 블록을 생성한다.
이하에서, 이웃 블록의 움직임 정보를 이용하여 후보(또는 후보 리스트)를 생성하는 방법을 설명한다.
도 21은 본 발명이 적용되는 실시예에 따른 후보 리스트(candidate list) 생성 방법을 나타내는 흐름도이다.
도 21을 참조하면, 설명의 편의를 위해 디코더를 위주로 설명하나, 본 실시예의 후보 리스트 생성 방법은 인코더에서도 동일하게 수행될 수 있다. 일 실시예에서, 앞서 도 12 내지 도 17에서 설명한 방법이 적용될 수 있으며, 이에 관한 중복된 설명은 생략한다.
도 21에 도시된 후보 구성 순서는 하나의 예시로서, 본 발명이 이에 한정되는 것은 아니고, 순서가 변경되거나 일부 단계가 생략 또는 추가될 수 있다. 또한, 도 21에서 추가되는 후보들은 하나의 예시로서, 이외에 다른 다양한 여러 후보가 추가될 수도 있고, 도 21에 도시된 후보들 중 일부 후보가 사용되지 않을 수 있다.
디코더는 공간 이웃 블록(spatial neighboring block)(또는 공간 후보(spatial candidate))을 후보 리스트에 추가한다(S2101). 예를 들어, 디코더는 앞서 설명한 도 16의 주변 후보 블록들을 후보 리스트에 추가할 수 있다.
디코더는 시간 이웃 블록(temporal neighboring block)(또는 시간 후보(temporal candidate))을 후보 리스트에 추가한다(S2102).
디코더는 조합된 움직임 정보(또는 조합된 움직임 벡터)를 후보 리스트에 추가하고, 제로 움직임 벡터를 후보 리스트에 추가한다(S2103, S2104).
도 22는 본 발명이 적용되는 실시예에 따른 인터 예측에 이용되는 주변 블록의 일 예를 나타낸다.
도 22를 참조하면, 인코더/디코더는 공간적 유사성을 기반으로 하는 공간 이웃 블록의 움직임 정보 및 시간적 유사성을 기반으로 하는 시간 이웃 블록의 움직임 정보를 이용하여 후보 리스트를 구성할 수 있다. 본 발명에서, 공간 이웃 블록의 움직임 정보는 공간 이웃 정보로 지칭될 수 있고, 시간 이웃 블록의 움직임 정보는 시간 이웃 정보, 대응(corresponded) 시간 정보로 지칭될 수 있다.
실시예로서, 인코더/디코더는 도 22에 도시된 바와 같은 공간 후보(또는 공간 이웃 정보)를 이용하여 후보 리스트를 구성할 수 있다. 그리고, 인코더/디코더는 도 22에 도시된 바와 같은 시간 후보(또는 대응 시간 정보)를 이용하여 후보 리스트를 구성할 수 있다.
전술한 바와 같이, 공간적 유사성을 고려한 시간적 유사성 정보를 보정하기 위하여, 적응적인 시간 움직임 벡터 예측자(ATMVP, Adaptive Temporal Motion Vector Prediction)가 이용될 수 있다. ATMVP는 시간적으로 이웃하는 픽쳐의 콜로케이티드 블록(collocated block)의 움직임 정보에 기초하여 서브 블록들에 대한 움직임 정보를 유도하는 방법이다. 이를 통해, 시간적 움직임 벡터 예측(Temporal Motion Vector Prediction, TMVP)의 성능을 향상시키고 복잡도를 개선할 수 있다. 본 발명에서, ATMVP는 서브 블록 기반 시간 머지 후보(subblock-based temporal merging candidate), SbTMVP 등으로 지칭될 수 있다.
즉, 현재 블록의 우하측(right-bottom) 또는 중앙(center) 위치의 콜로케이티드 블록의 움직임 벡터를 사용하는 TMVP는 픽쳐 내에서의 움직임을 반영하지 못하므로 주변 블록의 움직임 벡터가 가리키는 위치의 콜로케이티드 블록의 움직임 벡터를 움직임 벡터 예측자로 이용할 수 있다.
앞서 설명한 도 17을 다시 참조하면, 일 실시예에서, 인코더/디코더는 미리 설정된 머지 후보(Merge candidate) 구성 순서대로 체크하면서 가장 먼저 이용 가능한 공간 이웃 블록(spatial neighbor block)의 움직임 벡터를 찾을 수 있다. 이후, 인코더/디코더는 참조 픽쳐(reference picture) 내에서 해당 움직임 벡터(즉, 시간 움직임 벡터(temporal motion vector))가 가리키는 위치를 콜로케이티드 블록으로 결정할 수 있다. 이를 통해, 대응 블록(corresponding block)(또는 시간 움직임 벡터)의 정확도를 높일 수 있다. 일 실시예로서, 상기 참조 픽쳐는 콜로케이티드 픽쳐(collocated picture)로 정의될 수 있다.
인코더/디코더는 현재 코딩 블록 내에서 서브 블록 단위로 시간 움직임 벡터에 의해 특정되는 대응 블록의 움직임 벡터를 유도할 수 있다. 일 실시예로서, 특정 서브 블록에 대응되는 움직임 벡터가 존재하지 않는 경우(또는 이용 가능하지 않은 경우), 인코더/디코더는 콜로케이티드 블록의 중앙에 위치한 블록의 움직임 벡터를 대표 움직임 벡터로 설정(또는 저장)하고, 상기 특정 서브 블록을 위한 움직임 벡터로 사용할 수 있다.
일 실시예에서, ATMVP 모드를 사용하기 위하여 인코더/디코더는 머지 후보(merge candidate) 개수를 늘려 적용할 수 있다. 그리고, 이를 위해 추가적인 신택스(또는 신택스 요소)는 이용되지 않을 수 있다. 머지 후보의 최대 개수를 지시하는 신택스는 상위 레벨 신택스를 통해 인코더로부터 디코더로 전송될 수 있다. 상기 상위 레벨 신택스는, 예를 들어, 시퀀스 파라미터 셋(SPS, sequence parameter set), 픽쳐 파라미터 셋(PPS, picture parameter set), 슬라이스 헤더(slice header)일 수 있다. 일 예로, 머지 후보의 최대 개수는 6개일 수 있다.
또한, 일 실시예에서, 확장된 ATMVP 후보를 나타내는 ATMVP-ext 후보가 후보 리스트에 추가될 수도 있다. ATMVP-ext은 상술한 ATMVP와 마찬가지로 기존의 TMVP를 개선하기 위한 방법이며, 공간 이웃 블록과 시간 이웃 블록을 조합하여 서브 블록 단위의 움직임 벡터를 유도할 수 있다.
도 23은 본 발명이 적용되는 실시예에 따른 확장된 ATMVP(Advanced Temporal Motion Vector Prediction) 후보를 유도하는 방법을 예시하는 도면이다.
도 23을 참조하면, 현재 블록(2301)의 크기가 16x16인 경우를 가정한다. 또한, 도 23에서, 서브 블록 단위로 움직임 벡터를 유도함에 있어서, 서브 블록의 크기가 4x4 인 경우를 가정하나, 본 발명이 이에 제한되는 것은 아니며 후술하는 8x8 이상의 고정된 크기로 상기 서브 블록 크기가 정의될 수 있다.
인코더/디코더는 현재 블록(2301) 내 각각의 서브 블록의 움직임 벡터를 유도하기 위하여 좌측 수평 방향 및 상측 수직 방향 위치의 공간 이웃 블록의 움직임 벡터, 그리고 우측 수평 방향 및 하측 수직 방향 위치의 시간 이웃 블록의 움직임 벡터를 이용할 수 있다.
예를 들어, 인코더/디코더는 현재 블록(2301) 내 0번 위치의 서브 블록을 위한 움직임 벡터를 유도하기 위하여, L-0 및 A-0 위치의 공간 이웃 블록의 움직임 벡터를 유도하고, 현재 블록(2301) 내 1 및 4 위치의 서브 블록의 시간 이웃 블록의 움직임 벡터를 유도하고, 4개의 움직임 벡터의 평균값을 계산할 수 있다. 인코더/디코더는 상기 4개의 움직임 벡터의 평균값을 현재 블록(2301) 내 0번 위치의 서브 블록의 움직임 벡터로 결정할 수 있다. 일 실시예로서, 4개의 블록 중 일부만 이용 가능한 경우, 인코더/디코더는 이용 가능한 블록의 움직임 벡터 평균값을 계산할 수 있다. 또한, 일 실시예로서, 참조 인덱스는 미리 설정(예컨대, 참조 인덱스 0 또는 1, 콜로케이티드 픽쳐)될 수 있다.
일 실시예에서, ATMVP 모드와 마찬가지로, 확장된 ATMVP 모드를 사용하기 위하여 인코더/디코더는 머지 후보(merge candidate) 개수를 늘려 적용할 수 있다. 그리고, 이를 위해 추가적인 신택스(또는 신택스 요소)는 이용되지 않을 수 있다.
도 24 및 도 25는 본 발명이 적용되는 실시예에 따른 참조 픽쳐 내에서 시간 이웃 블록의 움직임 벡터를 패치하는 프로세스(fetching process)를 예시하는 도면이다.
도 24를 참조하면, 인코더/디코더는 현재 블록의 시간 이웃 블록의 움직임 벡터(이하, 시간 움직임 벡터로 지칭될 수 있음)를 유도하기 위하여 메모리(앞서 도 1의 170, 도 2의 250)(구체적으로는 메모리의 DPB)의 참조 픽쳐(또는 콜로케이티드 픽쳐) 내에서 대응 위치(corresponding position)에 저장된 움직임 정보를 패치(또는 유도, 획득)할 수 있다.
본 발명에서는 설명의 편의를 위해 상기 메모리가 DRAM인 경우를 위주로 설명하나, 이에 제한되는 것은 아니며, 상기 메모리는 DRAM, USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다.
실시예로서, 상기 참조 픽쳐(또는 콜로케이티드 픽쳐) 내 상기 대응 위치는 현재 블록의 우하단(right-bottom) 블록 또는 현재 블록의 중앙(center) 위치(즉, TMVP)일 수도 있고, 상기 현재 블록의 공간 이웃 블록의 움직임 벡터에 의해 특정되는 위치(즉, ATMVP)일 수도 있다.
도 25를 참조하면, 현재 블록 단위로 DRAM(2501)로부터 시간 움직임 벡터를 패치하는 경우를 가정한다. 이 경우, 도 25에 도시된 바와 같이, 인코더/디코더는 DRAM(2501) 내에서 현재 블록의 대응 위치 블록(2502)에 저장된 하나의 움직임 벡터를 시간 움직임 벡터로서 패치한다.
한편, 본 발명의 실시예에 따른 ATMVP(즉, 서브 블록 기반 시간 머지 후보) 또는 확장된 ATMVP가 적용되는 경우, 서브 블록 단위로 움직임 정보를 패치하기 때문에, 도 25에 도시된 바와 같이 현재 블록 단위로 1개의 움직임 정보를 패치할 수 없다. 즉, ATMVP 또는 확장된 ATMVP가 적용되는 경우, 더 많은 양의 데이터가 DRAM(2501)으로부터 패치되어야 한다. 아래의 도면을 참조하여 설명한다.
도 26은 본 발명이 적용되는 실시예에 따른 서브 블록 단위로 시간 이웃 블록의 움직임 벡터를 패치하는 프로세스(fetching process)를 나타내는 도면이다.
도 26을 참조하면, 현재 블록이 4개의 서브 블록으로 분할되어 움직임 보상이 수행되는 경우를 가정한다. 또한, 전술한 바와 같이, 본 발명에서는 설명의 편의를 위해 상기 메모리가 DRAM(2601)인 경우를 위주로 설명하나, 이에 제한되는 것은 아니며, 상기 메모리는 DRAM(2601), USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다.
도 26에 도시된 바와 같이 4개의 서브 블록 단위로 움직임 정보를 패치하는 경우, 인코더/디코더는 DRAM(2601)에 저장된 참조 픽쳐(또는 콜로케이티드 픽쳐) 내에서 현재 블록의 대응 위치 블록(2602) 내에서 각각의 서브 블록에 대응되는 4개의 움직임 정보를 패치한다. 즉, 4개의 서브 블록 단위로 움직임 정보를 패치하는 경우, 인코더/디코더는 앞서 도 25에서 설명한 경우 대비 DRAM(2601)으로부터 약 4배의 데이터를 패치하여야 한다.
도 25 및 도 26을 비교하면, 서브 블록의 크기는 DRAM(2601)으로부터 패치하는 데이터의 양에 결정적인 영향을 미친다는 것을 알 수 있다. 따라서, 서브 블록의 크기는 하드웨어 패치 성능에 따라 디코더 및 인코더 파이프 라인 구성 및 스루풋(throughput)에 큰 영향을 미칠 수 있다.
어파인 움직임 예측(affine motion prediction)과 같은 서브 블록 기반 움직임 보상 방법은 유도된 제어점 움직임 벡터에 기초하여 서브 블록 단위로 움직임 벡터가 유도되나, ATMVP, 즉, 서브 블록 기반 시간 머지 후보(또는 예측자)의 경우에는, 참조 픽쳐(또는 콜로케이티드 픽쳐)의 대응 블록 내에서 서브 블록 단위로 메모리에 저장된 움직임 벡터를 가져오는 것이기 때문에, 유사한 서브 블록 기반 움직임 보상이라 할지라도 서브 블록의 크기에 따른 하드웨어 부담은 어파인 움직임 예측과 ATMVP는 커다란 차이를 갖는다.
만약, 현재 블록을 복수의 서브 블록으로 과도하게 분할한다면, 패치를 수행하는 메모리 버스(memory bus)의 크기에 따라 여러 횟수 패치를 수행하여야 하는 문제가 발생할 수 있다.
따라서, 본 발명에서는 이와 같은 문제점을 해결하기 위하여 고정된 최소 서브 블록의 크기를 설정(또는 결정, 정의)하고, 설정된 서브 블록 단위로 시간 움직임 정보에 대한 패치 프로세스를 수행하는 방법을 제안한다.
종래의 ATMVP 또는 ATVMP-ext의 경우, 4x4 크기의 서브 블록 단위로 현재 블록을 분할하여 패치 및 움직임 보상을 수행한다. 이 경우에는, 상술한 바와 현재 블록의 크기에 따라 패치가 요구되는 메모리가 지나치게 커질 수 있다. 하드웨어 부담이 매우 커질 수 있고, 압축 성능이 저하될 수 있다.
따라서, 본 발명의 실시예에서는 고정된 8x8 크기의 서브 블록 또는 고정된 16x16 크기의 서브 블록 단위로 분할하는 방법을 제안한다. 본 실시예에서 제안하는 방법은 실험 결과를 통해 하드웨어 복잡도 향상 대비 압축 성능의 손실이 적음이 증명되었으며, 상기 실험 결과는 아래의 표 2 내지 5와 같다.
먼저, 다음의 표 2는 4x4 서브 블록 단위로 ATMVP를 수행한 압축 성능을 나타낸다.
Figure PCTKR2019007837-appb-img-000004
다음의 표 3은 8x8 서브 블록 단위로 ATMVP를 수행한 압축 성능을 나타낸다.
Figure PCTKR2019007837-appb-img-000005
다음의 표 4는 16x16 서브 블록 단위로 ATMVP를 수행한 압축 성능을 나타낸다.
Figure PCTKR2019007837-appb-img-000006
다음의 표 5는 32x32 서브 블록 단위로 ATMVP를 수행한 압축 성능을 나타낸다.
Figure PCTKR2019007837-appb-img-000007
상기 표 2 내지 5의 실험 결과를 참조하면, 서브 블록의 크기에 따라 압축 효율과 디코딩 속도간 차이가 트레이드 오프 결과를 갖지만, 하드웨어 복잡도 개선 대비 압축 성능의 손실이 매우 적음을 확인할 수 있다.
본 발명의 실시예에서, 인코더/디코더는 4x4 보다 큰 단위, 즉, 8x8, 16x16 또는 32x32 단위로 서브 블록 기반 움직임 보상(즉, ATMVP, ATMVP-ext)을 수행할 수 있고, 해당 크기의 서브 블록 단위로 서브 블록 기반 시간 움직임 정보를 패치할 수 있다.
본 발명의 실시예에 따르면, 서브 블록 기반 움직임 보상을 수행함에 있어서 상대적으로 적은 압축 손실 대비 높은 하드웨어 복잡도 개선 효과를 얻을 수 있다.
이하에서는, 하드웨어 복잡도를 향상시키기 위하여, 본 발명에서 제안하는 서브 블록 기반 시간 움직임 정보 유도 방법(즉, ATMVP, ATMVP-ext)의 적용을 코딩 블록의 크기에 따라 제한하는 방법을 제안한다.
본 발명의 실시예에서, 인코더/디코더는 현재 블록(또는 현재 코딩 블록)의 너비 또는 높이가 미리 정의된 크기 보다 작은 경우, 서브 블록 기반 시간 움직임 정보 유도 방법(즉, ATMVP, ATMVP-ext)을 수행하지 않을 수 있다.
앞서 도 24 내지 도 26에서 설명한 방법은 동일 면적 단위에서 움직임 정보의 데이터 패치 양을 줄임으로써 하드웨어 복잡도를 개선한 반면에 본 실시예에서는 추가적으로 워스트 케이스(worst case) 복잡도를 개선할 수 있다. 종래의 비디오 압축 기술은 픽쳐 또는 블록를 다양한 형태로 분할하여 예측 및 변환 기타 코딩을 수행한다.
이로 인해, 코딩 블록(코딩 유닛 또는 예측 유닛)의 크기는 4x4 또는 4x8, 8x4 등 작은 크기의 블록으로 분할될 수 있다. 이러한 경우, 현재 블록의 크기가 시간 움직임 정보(또는 시간 움직임 벡터)를 패치하는 최소 서브 블록 크기 보다 작은 경우가 발생할 수 있다. 이 경우, 하드웨어 측면에서는 최소 서브 블록 사이즈가 아닌 최소 코딩 블록 크기로 패치를 수행할 수 있다.
따라서, 본 발명에서는 이러한 문제를 개선하기 위하여, 현재 처리 블록의 크기(또는 현재 블록의 너비 및/또는 높이)가 미리 정의된 최소 크기보다 작은 경우, 서브 블록 단위 시간 움직임 벡터 후보를 이용하지 않을 수 있다. 다시 말해, 본 발명의 실시예에서, 인코더/디코더는 현재 처리 블록의 크기(또는 현재 블록의 너비 및/또는 높이)가 미리 정의된 최소 크기보다 크거나 같은 경우에 한하여, 서브 블록 기반 시간 움직임 벡터 후보를 후보 리스트에 추가할 수 있다. 일 실시예로서, 다음의 수학식 3이 서브 블록 단위 시간 움직임 벡터 후보를 이용하기 위한 조건으로 이용될 수 있다.
Figure PCTKR2019007837-appb-img-000008
도 27은 본 발명이 적용되는 실시예에 따른 후보 리스트(candidate list) 생성 방법을 나타내는 흐름도이다.
도 27을 참조하면, 설명의 편의를 위해 디코더를 위주로 설명하나, 본 실시예의 후보 리스트 생성 방법은 인코더에서도 동일하게 수행될 수 있다. 일 실시예에서, 앞서 도 12 내지 도 17, 도 21 내지 도 26에서 설명한 방법이 적용될 수 있으며, 이에 관한 중복된 설명은 생략한다.
도 27에 도시된 후보 구성 순서는 하나의 예시로서, 본 발명이 이에 한정되는 것은 아니고, 순서가 변경되거나 일부 단계가 생략 또는 추가될 수 있다. 또한, 도 27에서 추가되는 후보들은 하나의 예시로서, 이외에 다른 다양한 여러 후보가 추가될 수도 있고, 도 27에 도시된 후보들 중 일부 후보가 사용되지 않을 수 있다.
디코더는 공간 이웃 블록(spatial neighboring block)(또는 공간 후보(spatial candidate))을 후보 리스트에 추가한다(S2701). 예를 들어, 디코더는 앞서 설명한 도 16의 주변 후보 블록들을 후보 리스트에 추가할 수 있다.
디코더는 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 크거나 같은지 여부를 확인한다(S2702).
디코더는 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 크거나 같은 경우, 시간 이웃 블록(temporal neighboring block)(또는 시간 후보(temporal candidate))을 후보 리스트에 추가한다(S2703). 만약, 현재 블록의 너비 또는 높이가 미리 정의된 최소 크기보다 작은 경우, 디코더는 시간 이웃 블록(temporal neighboring block)(또는 시간 후보(temporal candidate))을 후보 리스트에 추가하지 않을 수 있다.
디코더는 조합된 움직임 정보(또는 조합된 움직임 벡터)를 후보 리스트에 추가하고, 제로 움직임 벡터를 후보 리스트에 추가한다(S2704, S2705).
이상에서 설명한 본 발명의 실시예들은 설명의 편의상 각각의 실시예들을 구분하여 설명하였으나, 본 발명이 이에 제한되는 것은 아니다. 즉, 앞서 설명한 실시예들은 각각 독립적으로 수행될 수도 있고, 하나 이상의 여러 실시예가 조합되어 수행될 수도 있다.
도 28는 본 발명이 적용되는 실시예에 따른 인터 예측 블록을 생성하는 방법을 예시하는 흐름도이다.
도 28을 참조하면, 설명의 편의를 위해 디코더를 위주로 설명하나, 본 발명이 이에 제한되는 것은 아니고, 인터 예측을 기반으로 인터 예측 블록을 생성하는 방법은 인코더에서도 실질적으로 동일하게 적용될 수 있다.
디코더는 현재 블록에 머지 모드(merge mode)가 적용되는 경우, 상기 현재 블록의 공간 이웃 블록(spatial neighboring block) 및 시간 머지 후보(temporal neighboring block)를 이용하여 머지 후보 리스트(merge candidate list)를 생성한다(S2801).
디코더는 상기 머지 후보 리스트 내에서 상기 현재 블록의 인터 예측에 이용되는 후보를 지시하는 머지 인덱스(merge index)를 획득한다(S2802).
디코더는 상기 현재 블록의 인터 예측에 이용되는 후보의 움직임 벡터에 기초하여 상기 현재 블록에 포함된 복수의 서브 블록들 각각의 움직임 벡터를 유도한다(S2803).
디코더는 상기 서브 블록들 각각의 움직임 벡터를 이용하여 상기 현재 블록의 예측 샘플을 생성한다(S2804).
실시예로서, 상기 서브 블록의 크기는 8x8 보다 크거나 같은 고정된 특정 크기로 설정될 수 있다.
실시예로서, 상기 머지 후보 리스트를 생성하는 단계는, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는 단계를 포함할 수 있다.
실시예로서, 상기 머지 후보 리스트를 생성하는 단계는, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 현재 블록의 공간 이웃 블록 중 미리 정의된 순서 상 첫 번째 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는 단계를 포함할 수 있다.
실시예로서, 상기 머지 후보 리스트를 생성하는 단계는, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 작은지 여부를 확인하는 단계; 및 상기 확인 결과, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 크거나 같은 경우, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는 단계를 포함할 수 있다.
실시예로서, 상기 미리 정의된 최소 크기는 상기 서브 블록의 크기로 설정될 수 있다.
도 29는 본 발명이 적용되는 실시예에 따른 인터 예측 장치를 예시하는 도면이다.
도 29에서는 설명의 편의를 위해 인터 예측부를 하나의 블록으로 도시하였으나, 인터 예측부는 인코더 및/또는 디코더에 포함되는 구성으로 구현될 수 있다.
도 29을 참조하면, 인터 예측부는 앞서 도 8내지 도 32에서 제안된 기능, 과정 및/또는 방법을 구현한다. 구체적으로, 인터 예측부는 머지 후보 리스트 생성부(2901), 머지 인덱스 획득부(2902), 서브 블록 모션 벡터 유도부(2903) 및 예측 블록 생성부(2904)를 포함하여 구성될 수 있다.
머지 후보 리스트 생성부(2901)는 현재 블록에 머지 모드(merge mode)가 적용되는 경우, 상기 현재 블록의 공간 이웃 블록(spatial neighboring block) 및 시간 머지 후보(temporal neighboring block)를 이용하여 머지 후보 리스트(merge candidate list)를 생성한다.
머지 인덱스 획득부(2902)는 상기 머지 후보 리스트 내에서 상기 현재 블록의 인터 예측에 이용되는 후보를 지시하는 머지 인덱스(merge index)를 획득한다.
서브 블록 모션 벡터 유도부(2903)는 상기 현재 블록의 인터 예측에 이용되는 후보의 움직임 벡터에 기초하여 상기 현재 블록에 포함된 복수의 서브 블록들 각각의 움직임 벡터를 유도한다.
예측 블록 생성부(2904)는 상기 서브 블록들 각각의 움직임 벡터를 이용하여 상기 현재 블록의 예측 샘플을 생성한다.
실시예로서, 상기 서브 블록의 크기는 8x8 보다 크거나 같은 고정된 특정 크기로 설정될 수 있다.
실시예로서, 상기 머지 후보 리스트 생성부(2901)는, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가할 수 있다.
실시예로서, 상기 머지 후보 리스트 생성부(2901)는, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 현재 블록의 공간 이웃 블록 중 미리 정의된 순서 상 첫 번째 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가할 수 있다.
실시예로서, 상기 머지 후보 리스트 생성부(2901)는, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 작은지 여부를 확인하고, 상기 확인 결과, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 크거나 같은 경우, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가할 수 있다.
실시예로서, 상기 미리 정의된 최소 크기는 상기 서브 블록의 크기로 설정될 수 있다.
도 30은 본 발명이 적용되는 비디오 코딩 시스템을 나타낸다.
비디오 코딩 시스템은 소스 디바이스(source device) 및 수신 디바이스(receiving device)를 포함할 수 있다. 소스 디바이스는 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스로 전달할 수 있다.
상기 소스 디바이스는 비디오 소스(video source), 인코딩 장치(encoding apparatus), 전송부(transmitter)를 포함할 수 있다. 상기 수신 디바이스는 수신부(receiver), 디코딩 장치(decoding apparatus) 및 렌더러(renderer)를 포함할 수 있다. 상기 인코딩 장치는 비디오/영상 인코딩 장치라고 불릴 수 있고, 상기 디코딩 장치는 비디오/영상 디코딩 장치라고 불릴 수 있다. 송신기는 인코딩 장치에 포함될 수 있다. 수신기는 디코딩 장치에 포함될 수 있다. 렌더러는 디스플레이부를 포함할 수도 있고, 디스플레이부는 별개의 디바이스 또는 외부 컴포넌트로 구성될 수도 있다.
비디오 소스는 비디오/영상의 캡쳐, 합성 또는 생성 과정 등을 통하여 비디오/영상을 획득할 수 있다. 비디오 소스는 비디오/영상 캡쳐 디바이스 및/또는 비디오/영상 생성 디바이스를 포함할 수 있다. 비디오/영상 캡쳐 디바이스는 예를 들어, 하나 이상의 카메라, 이전에 캡쳐된 비디오/영상을 포함하는 비디오/영상 아카이브 등을 포함할 수 있다. 비디오/영상 생성 디바이스는 예를 들어 컴퓨터, 타블렛 및 스마트폰 등을 포함할 수 있으며 (전자적으로) 비디오/영상을 생성할 수 있다. 예를 들어, 컴퓨터 등을 통하여 가상의 비디오/영상이 생성될 수 있으며, 이 경우 관련 데이터가 생성되는 과정으로 비디오/영상 캡쳐 과정이 갈음될 수 있다.
인코딩 장치는 입력 비디오/영상을 인코딩할 수 있다. 인코딩 장치는 압축 및 코딩 효율을 위하여 예측, 변환, 양자화 등 일련의 절차를 수행할 수 있다. 인코딩된 데이터(인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다.
전송부는 비트스트림 형태로 출력된 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스의 수신부로 전달할 수 있다. 디지털 저장 매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장 매체를 포함할 수 있다. 전송부는 미리 정해진 파일 포멧을 통하여 미디어 파일을 생성하기 위한 엘리먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘레멘트를 포함할 수 있다. 수신부는 상기 비트스트림을 추출하여 디코딩 장치로 전달할 수 있다.
디코딩 장치는 인코딩 장치의 동작에 대응하는 역양자화, 역변환, 예측 등 일련의 절차를 수행하여 비디오/영상을 디코딩할 수 있다.
렌더러는 디코딩된 비디오/영상을 렌더링할 수 있다. 렌더링된 비디오/영상은 디스플레이부를 통하여 디스플레이될 수 있다.
도 31은 본 발명이 적용되는 실시예로서, 컨텐츠 스트리밍 시스템 구조도를 나타낸다.
도 31을 참조하면, 본 발명이 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.
상기 인코딩 서버는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 상기 스트리밍 서버로 전송하는 역할을 한다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들이 비트스트림을 직접 생성하는 경우, 상기 인코딩 서버는 생략될 수 있다.
상기 비트스트림은 본 발명이 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 상기 스트리밍 서버는 상기 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 상기 비트스트림을 저장할 수 있다.
상기 스트리밍 서버는 웹 서버를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치에 전송하고, 상기 웹 서버는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 상기 웹 서버에 원하는 서비스를 요청하면, 상기 웹 서버는 이를 스트리밍 서버에 전달하고, 상기 스트리밍 서버는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 상기 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 상기 제어 서버는 상기 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.
상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하게 되는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.
상기 사용자 장치의 예로는, 휴대폰, 스마트 폰(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, 데스크탑 컴퓨터, 디지털 사이니지 등이 있을 수 있다.
상기 컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.
상기 기술된 것과 같이, 본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.
또한, 본 발명이 적용되는 디코더 및 인코더는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(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, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다.
또한, 본 발명의 실시예는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 발명의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독가능한 캐리어 상에 저장될 수 있다.
이상에서 설명된 실시예들은 본 발명의 구성요소들과 특징들이 소정 형태로 결합된 것들이다. 각 구성요소 또는 특징은 별도의 명시적 언급이 없는 한 선택적인 것으로 고려되어야 한다. 각 구성요소 또는 특징은 다른 구성요소나 특징과 결합되지 않은 형태로 실시될 수 있다. 또한, 일부 구성요소들 및/또는 특징들을 결합하여 본 발명의 실시예를 구성하는 것도 가능하다. 본 발명의 실시예들에서 설명되는 동작들의 순서는 변경될 수 있다. 어느 실시예의 일부 구성이나 특징은 다른 실시예에 포함될 수 있고, 또는 다른 실시예의 대응하는 구성 또는 특징과 교체될 수 있다. 특허청구범위에서 명시적인 인용 관계가 있지 않은 청구항들을 결합하여 실시예를 구성하거나 출원 후의 보정에 의해 새로운 청구항으로 포함시킬 수 있음은 자명하다.
본 발명에 따른 실시예는 다양한 수단, 예를 들어, 하드웨어, 펌웨어(firmware), 소프트웨어 또는 그것들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 본 발명의 일 실시예는 하나 또는 그 이상의 ASICs(application specific integrated circuits), DSPs(digital signal processors), DSPDs(digital signal processing devices), PLDs(programmable logic devices), FPGAs(field programmable gate arrays), 프로세서, 콘트롤러, 마이크로 콘트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다.
펌웨어나 소프트웨어에 의한 구현의 경우, 본 발명의 일 실시예는 이상에서 설명된 기능 또는 동작들을 수행하는 모듈, 절차, 함수 등의 형태로 구현될 수 있다. 소프트웨어 코드는 메모리에 저장되어 프로세서에 의해 구동될 수 있다. 상기 메모리는 상기 프로세서 내부 또는 외부에 위치하여, 이미 공지된 다양한 수단에 의해 상기 프로세서와 데이터를 주고 받을 수 있다.
본 발명은 본 발명의 필수적 특징을 벗어나지 않는 범위에서 다른 특정한 형태로 구체화될 수 있음은 당업자에게 자명하다. 따라서, 상술한 상세한 설명은 모든 면에서 제한적으로 해석되어서는 아니 되고 예시적인 것으로 고려되어야 한다. 본 발명의 범위는 첨부된 청구항의 합리적 해석에 의해 결정되어야 하고, 본 발명의 등가적 범위 내에서의 모든 변경은 본 발명의 범위에 포함된다.
이상, 전술한 본 발명의 바람직한 실시예는, 예시의 목적을 위해 개시된 것으로, 당업자라면 이하 첨부된 특허청구범위에 개시된 본 발명의 기술적 사상과 그 기술적 범위 내에서, 다양한 다른 실시예들을 개량, 변경, 대체 또는 부가 등이 가능할 것이다.

Claims (10)

  1. 인터 예측 모드 기반으로 영상을 복호화하는 방법에 있어서,
    현재 블록에 머지 모드(merge mode)가 적용되는 경우, 상기 현재 블록의 공간 이웃 블록(spatial neighboring block) 및 시간 머지 후보(temporal neighboring block)를 이용하여 머지 후보 리스트(merge candidate list)를 생성하는 단계;
    상기 머지 후보 리스트 내에서 상기 현재 블록의 인터 예측에 이용되는 후보를 지시하는 머지 인덱스(merge index)를 획득하는 단계;
    상기 현재 블록의 인터 예측에 이용되는 후보의 움직임 벡터에 기초하여 상기 현재 블록에 포함된 복수의 서브 블록들 각각의 움직임 벡터를 유도하는 단계; 및
    상기 서브 블록들 각각의 움직임 벡터를 이용하여 상기 현재 블록의 예측 샘플을 생성하는 단계를 포함하되,
    상기 서브 블록의 크기는 8x8 보다 크거나 같은 고정된 특정 크기로 설정되는, 영상의 복호화 방법.
  2. 제1항에 있어서,
    상기 머지 후보 리스트를 생성하는 단계는,
    상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는 단계를 포함하는, 영상의 복호화 방법.
  3. 제1항에 있어서,
    상기 머지 후보 리스트를 생성하는 단계는,
    상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 현재 블록의 공간 이웃 블록 중 미리 정의된 순서 상 첫 번째 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는 단계를 포함하는, 영상의 복호화 방법.
  4. 제1항에 있어서,
    상기 머지 후보 리스트를 생성하는 단계는,
    상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 작은지 여부를 확인하는 단계; 및
    상기 확인 결과, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 크거나 같은 경우, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는 단계를 포함하는, 영상의 복호화 방법.
  5. 제4항에 있어서,
    상기 미리 정의된 최소 크기는 상기 서브 블록의 크기로 설정되는, 영상의 복호화 방법.
  6. 인터 예측 모드 기반으로 영상을 복호화하는 장치에 있어서,
    현재 블록에 머지 모드(merge mode)가 적용되는 경우, 상기 현재 블록의 공간 머지 후보(spatial merge candidate) 및 시간 머지 후보(temporal merge candidate)를 이용하여 머지 후보 리스트(merge candidate list)를 생성하는 머지 후보 리스트 생성부;
    상기 머지 후보 리스트 내에서 상기 현재 블록의 인터 예측에 이용되는 머지 후보를 지시하는 머지 인덱스(merge index)를 획득하는 머지 인덱스 획득부;
    상기 현재 블록의 인터 예측에 이용되는 머지 후보의 움직임 벡터에 기초하여 상기 현재 블록에 포함된 복수의 서브 블록들 각각의 움직임 벡터를 유도하는 서브 블록 움직임 벡터 유도부; 및
    상기 서브 블록들 각각의 움직임 벡터를 이용하여 상기 현재 블록의 예측 블록을 생성하는 예측 블록 생성부를 포함하되,
    상기 서브 블록의 크기는 8x8 보다 크거나 같은 고정된 특정 크기로 설정되는, 영상의 복호화 장치.
  7. 제6항에 있어서,
    상기 머지 후보 리스트 생성부는,
    상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는, 영상의 복호화 장치.
  8. 제6항에 있어서,
    상기 머지 후보 리스트 생성부는,
    상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 현재 블록의 공간 이웃 블록 중 미리 정의된 순서 상 첫 번째 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는, 영상의 복호화 장치.
  9. 제6항에 있어서,
    상기 머지 후보 리스트 생성부는,
    상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 작은지 여부를 확인하고,
    상기 확인 결과, 상기 현재 블록의 너비 및 높이가 미리 정의된 최소 크기보다 크거나 같은 경우, 상기 현재 블록의 콜로케이티드 픽쳐(collocated picture) 내에서 상기 공간 이웃 블록의 움직임 벡터에 의해 특정되는 상기 현재 블록의 시간 이웃 블록을 상기 머지 후보 리스트에 추가하는, 영상의 복호화 장치.
  10. 제9항에 있어서,
    상기 미리 정의된 최소 크기는 상기 서브 블록의 크기로 설정되는, 영상의 복호화 장치.
PCT/KR2019/007837 2018-06-27 2019-06-27 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 WO2020004990A1 (ko)

Priority Applications (14)

Application Number Priority Date Filing Date Title
CN202311013940.XA CN116800961A (zh) 2018-06-27 2019-06-27 对视频信号进行编解码的设备和发送图像的数据的设备
CN202311016404.5A CN116781896A (zh) 2018-06-27 2019-06-27 对视频信号进行编解码的方法和发送方法
JP2020547121A JP7141463B2 (ja) 2018-06-27 2019-06-27 インター予測モードに基づいた映像処理方法およびそのための装置
KR1020207016708A KR102420839B1 (ko) 2018-06-27 2019-06-27 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
KR1020237030124A KR20230131962A (ko) 2018-06-27 2019-06-27 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
EP19824904.7A EP3737091A4 (en) 2018-06-27 2019-06-27 METHOD OF IMAGE PROCESSING BASED ON AN INTER PREDICTION MODE AND DEVICE FOR IT
CN202311015983.1A CN116828174A (zh) 2018-06-27 2019-06-27 对视频信号进行编解码的方法和发送方法
CN201980024218.1A CN111971960B (zh) 2018-06-27 2019-06-27 用于基于帧间预测模式处理图像的方法及其装置
KR1020227023732A KR102576194B1 (ko) 2018-06-27 2019-06-27 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
US16/943,908 US11089309B2 (en) 2018-06-27 2020-07-30 Method for processing image on basis of inter-prediction mode and device therefor
US17/360,734 US11653004B2 (en) 2018-06-27 2021-06-28 Method for processing image on basis of inter-prediction mode and device therefor
JP2022143392A JP7395683B2 (ja) 2018-06-27 2022-09-09 インター予測モードに基づいた映像処理方法およびそのための装置
US18/134,808 US20230308660A1 (en) 2018-06-27 2023-04-14 Method for processing image on basis of inter-prediction mode and device therefor
JP2023201648A JP2024020576A (ja) 2018-06-27 2023-11-29 インター予測モードに基づいた映像処理方法およびそのための装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20180074069 2018-06-27
KR10-2018-0074069 2018-06-27

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/943,908 Continuation US11089309B2 (en) 2018-06-27 2020-07-30 Method for processing image on basis of inter-prediction mode and device therefor

Publications (1)

Publication Number Publication Date
WO2020004990A1 true WO2020004990A1 (ko) 2020-01-02

Family

ID=68987461

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/007837 WO2020004990A1 (ko) 2018-06-27 2019-06-27 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치

Country Status (6)

Country Link
US (3) US11089309B2 (ko)
EP (1) EP3737091A4 (ko)
JP (3) JP7141463B2 (ko)
KR (3) KR20230131962A (ko)
CN (4) CN116828174A (ko)
WO (1) WO2020004990A1 (ko)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453005A (zh) * 2020-03-26 2021-09-28 杭州海康威视数字技术股份有限公司 解码方法、编码方法、装置及设备
WO2021254379A1 (en) * 2020-06-20 2021-12-23 Beijing Bytedance Network Technology Co., Ltd. Inter layer prediction with different coding block size
JP2022515995A (ja) * 2019-01-03 2022-02-24 エスゼット ディージェイアイ テクノロジー カンパニー リミテッド 映像処理方法、装置、不揮発性記憶媒体、コンピュータプログラム
US11917208B2 (en) 2020-03-21 2024-02-27 Beijing Bytedance Network Technology Co., Ltd. Reference picture resampling

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020004990A1 (ko) * 2018-06-27 2020-01-02 엘지전자 주식회사 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
CN112703731A (zh) * 2018-07-27 2021-04-23 三星电子株式会社 基于子块对图像进行编码的方法和装置以及对图像进行解码的方法和装置
GB2577318B (en) * 2018-09-21 2021-03-10 Canon Kk Video coding and decoding
WO2024043628A1 (ko) * 2022-08-23 2024-02-29 삼성전자 주식회사 영상 복호화 방법 및 장치, 영상 부호화 방법 및 장치
CN116708934B (zh) * 2023-05-16 2024-03-22 深圳东方凤鸣科技有限公司 一种视频编码处理方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150105264A (ko) * 2014-03-06 2015-09-16 삼성전자주식회사 서브 블록 기반 예측을 수행하는 인터 레이어 비디오 복호화 방법 및 그 장치 및 서브 블록 기반 예측을 수행하는 인터 레이어 비디오 부호화 방법 및 그 장치
US20150281708A1 (en) * 2012-03-22 2015-10-01 Mediatek Inc. a corporation Method and apparatus of scalable video coding
US20160381382A1 (en) * 2010-12-14 2016-12-29 M&K Holdings Inc. Apparatus for encoding a moving picture
JP2017163584A (ja) * 2011-11-07 2017-09-14 インフォブリッジ ピーティーイー. エルティーディー. マージリスト構築方法
KR20180038371A (ko) * 2016-10-06 2018-04-16 세종대학교산학협력단 비디오 신호의 복호화 방법 및 이의 장치

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
PL409214A1 (pl) * 2011-11-08 2015-07-20 Kt Corporation Sposób i urządzenie do skanowania współczynników na podstawie trybu podziału jednostki predykcji
EP3059970B1 (en) * 2013-10-18 2020-01-08 LG Electronics Inc. Method predicting view synthesis in multi-view video coding and method for constituting merge candidate list by using same
KR102071581B1 (ko) * 2014-03-31 2020-04-01 삼성전자주식회사 서브블록 기반 예측을 수행하는 인터 레이어 비디오 복호화 방법 및 그 장치 및 서브블록 기반 예측을 수행하는 인터 레이어 비디오 부호화 방법 및 그 장치
KR102149827B1 (ko) * 2015-01-21 2020-08-31 삼성전자주식회사 인터 레이어 비디오 복호화 방법 및 그 장치 및 인터 레이어 비디오 부호화 방법 및 그 장치
US10250904B2 (en) * 2015-05-05 2019-04-02 Avago Technologies International Sales Pte. Limited Apparatus and method for overlapped motion compensation for video coding
US10187653B2 (en) * 2015-05-18 2019-01-22 Avago Technologies International Sales Pte. Limited Motor vector prediction using co-located prediction units
US10368083B2 (en) * 2016-02-15 2019-07-30 Qualcomm Incorporated Picture order count based motion vector pruning
US10560718B2 (en) 2016-05-13 2020-02-11 Qualcomm Incorporated Merge candidates for motion vector prediction for video coding
CN116016910A (zh) * 2016-08-01 2023-04-25 韩国电子通信研究院 图像编码/解码方法
KR20190029748A (ko) * 2016-09-22 2019-03-20 엘지전자 주식회사 영상 코딩 시스템에서 인터 예측 방법 및 장치
WO2018066874A1 (ko) 2016-10-06 2018-04-12 세종대학교 산학협력단 비디오 신호의 복호화 방법 및 이의 장치
CN110024384A (zh) * 2016-10-06 2019-07-16 Lg电子株式会社 基于帧间预测模式处理视频的方法和用于该方法的设备
CN116866593A (zh) * 2016-11-28 2023-10-10 韩国电子通信研究院 对图像编码/解码的方法和设备及存储比特流的记录介质
US10757412B2 (en) * 2017-01-03 2020-08-25 Avago Technologies International Sales Pte. Limited Architecture flexible binary arithmetic coding system
US10484703B2 (en) * 2017-02-07 2019-11-19 Mediatek Inc. Adapting merge candidate positions and numbers according to size and/or shape of prediction block
KR102438181B1 (ko) * 2017-06-09 2022-08-30 한국전자통신연구원 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
KR102411661B1 (ko) * 2017-07-31 2022-06-21 삼성전자주식회사 영상 처리 방법 및 디바이스
US20200221077A1 (en) * 2017-09-05 2020-07-09 Lg Electronics Inc. Inter prediction mode-based image processing method and apparatus therefor
EP3457695A1 (en) * 2017-09-18 2019-03-20 Thomson Licensing Method and apparatus for motion vector predictor adaptation for omnidirectional video
US10469869B1 (en) * 2018-06-01 2019-11-05 Tencent America LLC Method and apparatus for video coding
WO2020004990A1 (ko) * 2018-06-27 2020-01-02 엘지전자 주식회사 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
DK3700216T3 (da) * 2018-09-10 2022-09-12 Lg Electronics Inc Billeddekodning, baseret på affin bevægelses-forudsigelse under anvendelse af affin MVP-kandidatliste
US11206396B2 (en) * 2019-01-16 2021-12-21 Qualcomm Incorporated Local illumination compensation in video coding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160381382A1 (en) * 2010-12-14 2016-12-29 M&K Holdings Inc. Apparatus for encoding a moving picture
JP2017163584A (ja) * 2011-11-07 2017-09-14 インフォブリッジ ピーティーイー. エルティーディー. マージリスト構築方法
US20150281708A1 (en) * 2012-03-22 2015-10-01 Mediatek Inc. a corporation Method and apparatus of scalable video coding
KR20150105264A (ko) * 2014-03-06 2015-09-16 삼성전자주식회사 서브 블록 기반 예측을 수행하는 인터 레이어 비디오 복호화 방법 및 그 장치 및 서브 블록 기반 예측을 수행하는 인터 레이어 비디오 부호화 방법 및 그 장치
KR20180038371A (ko) * 2016-10-06 2018-04-16 세종대학교산학협력단 비디오 신호의 복호화 방법 및 이의 장치

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022515995A (ja) * 2019-01-03 2022-02-24 エスゼット ディージェイアイ テクノロジー カンパニー リミテッド 映像処理方法、装置、不揮発性記憶媒体、コンピュータプログラム
JP7224005B2 (ja) 2019-01-03 2023-02-17 エスゼット ディージェイアイ テクノロジー カンパニー リミテッド 映像処理方法、装置、不揮発性記憶媒体、コンピュータプログラム
US11689736B2 (en) 2019-01-03 2023-06-27 SZ DJI Technology Co., Ltd. Video image processing method and device
US11743482B2 (en) 2019-01-03 2023-08-29 SZ DJI Technology Co., Ltd. Video image processing method and device
JP7393061B2 (ja) 2019-01-03 2023-12-06 エスゼット ディージェイアイ テクノロジー カンパニー リミテッド 映像処理方法及び符号化器
US11917208B2 (en) 2020-03-21 2024-02-27 Beijing Bytedance Network Technology Co., Ltd. Reference picture resampling
US11930220B2 (en) 2020-03-21 2024-03-12 Beijing Bytedance Network Technology Co., Ltd. Combination of subpictures and scalability
CN113453005A (zh) * 2020-03-26 2021-09-28 杭州海康威视数字技术股份有限公司 解码方法、编码方法、装置及设备
CN113453005B (zh) * 2020-03-26 2022-11-01 杭州海康威视数字技术股份有限公司 解码方法、编码方法、装置及设备
WO2021254379A1 (en) * 2020-06-20 2021-12-23 Beijing Bytedance Network Technology Co., Ltd. Inter layer prediction with different coding block size
US11882271B2 (en) 2020-06-20 2024-01-23 Beijing Bytedance Network Technology Co., Ltd. Inter layer prediction with different coding block size

Also Published As

Publication number Publication date
US20230308660A1 (en) 2023-09-28
KR20230131962A (ko) 2023-09-14
US20210006798A1 (en) 2021-01-07
JP2021516502A (ja) 2021-07-01
US20210344932A1 (en) 2021-11-04
EP3737091A1 (en) 2020-11-11
EP3737091A4 (en) 2021-03-03
JP2024020576A (ja) 2024-02-14
US11089309B2 (en) 2021-08-10
KR20220104065A (ko) 2022-07-25
US11653004B2 (en) 2023-05-16
KR102576194B1 (ko) 2023-09-08
CN116781896A (zh) 2023-09-19
KR20200078646A (ko) 2020-07-01
CN116800961A (zh) 2023-09-22
JP7141463B2 (ja) 2022-09-22
CN111971960B (zh) 2023-08-29
CN111971960A (zh) 2020-11-20
KR102420839B1 (ko) 2022-07-15
JP7395683B2 (ja) 2023-12-11
JP2022168139A (ja) 2022-11-04
CN116828174A (zh) 2023-09-29

Similar Documents

Publication Publication Date Title
WO2020004990A1 (ko) 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2020180155A1 (ko) 비디오 신호를 처리하기 위한 방법 및 장치
WO2019194514A1 (ko) 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2021040480A1 (ko) 인루프 필터링 기반 영상 코딩 장치 및 방법
WO2020055107A1 (ko) 영상 코딩 시스템에서 어파인 mvp 후보 리스트를 사용하는 어파인 움직임 예측에 기반한 영상 디코딩 방법 및 장치
WO2021054676A1 (ko) Prof를 수행하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법
WO2019216714A1 (ko) 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2020180129A1 (ko) 인터 예측을 위한 비디오 신호의 처리 방법 및 장치
WO2020262931A1 (ko) 비디오/영상 코딩 시스템에서 머지 데이터 신택스의 시그널링 방법 및 장치
WO2019235822A1 (ko) 어파인 움직임 예측을 이용하여 비디오 신호를 처리하는 방법 및 장치
WO2019194463A1 (ko) 영상의 처리 방법 및 이를 위한 장치
WO2021040410A1 (ko) 레지듀얼 코딩에 대한 영상 디코딩 방법 및 그 장치
WO2021006579A1 (ko) 머지 후보의 양방향 예측을 위한 가중치 인덱스를 유도하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법
WO2020251257A1 (ko) 예측 샘플을 생성하기 위한 가중치 인덱스 정보를 도출하는 영상 디코딩 방법 및 그 장치
WO2020251258A1 (ko) 쌍 예측이 적용되는 경우 가중 평균을 위한 가중치 인덱스 정보를 도출하는 영상 디코딩 방법 및 그 장치
WO2020009447A1 (ko) 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2020262962A1 (ko) 크로마 변환 블록의 최대 크기 제한을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법
WO2020262930A1 (ko) 머지 데이터 신택스에서 중복적인 신택스의 제거 방법 및 장치
WO2021040482A1 (ko) 적응적 루프 필터링 기반 영상 코딩 장치 및 방법
WO2020262902A1 (ko) 쌍 예측을 적용하는 영상 디코딩 방법 및 그 장치
WO2020256454A1 (ko) 현재 블록에 대하여 최종적으로 예측 모드를 선택하지 못하는 경우 인터 예측을 수행하는 영상 디코딩 방법 및 그 장치
WO2019216736A1 (ko) 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2019245228A1 (ko) 어파인 모션 예측을 사용하여 비디오 신호를 처리하기 위한 방법 및 장치
WO2020185045A1 (ko) 크로마 블록에 대한 분할 제한을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법
WO2020262960A1 (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: 19824904

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20207016708

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2019824904

Country of ref document: EP

Effective date: 20200803

ENP Entry into the national phase

Ref document number: 2020547121

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE