WO2020130520A1 - Method and apparatus for processing video signal by using inter prediction - Google Patents

Method and apparatus for processing video signal by using inter prediction Download PDF

Info

Publication number
WO2020130520A1
WO2020130520A1 PCT/KR2019/017779 KR2019017779W WO2020130520A1 WO 2020130520 A1 WO2020130520 A1 WO 2020130520A1 KR 2019017779 W KR2019017779 W KR 2019017779W WO 2020130520 A1 WO2020130520 A1 WO 2020130520A1
Authority
WO
WIPO (PCT)
Prior art keywords
mmvd
index
motion vector
amvr
prediction
Prior art date
Application number
PCT/KR2019/017779
Other languages
French (fr)
Korean (ko)
Inventor
박내리
남정학
장형문
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Publication of WO2020130520A1 publication Critical patent/WO2020130520A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • 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/53Multi-resolution motion estimation; Hierarchical motion estimation
    • 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

  • An embodiment of the present disclosure relates to a method and apparatus for processing a video signal using inter prediction, and more specifically, performs inter-screen prediction using merge mode to which merge with motion vector difference (MMVD) is applied. It relates to a method and apparatus for.
  • MMVD motion vector difference
  • Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing it in a form suitable for a storage medium.
  • Media such as video, image, and audio may be the subject of compression encoding, and a technique for performing compression encoding on an image is referred to as video image compression.
  • Next-generation video content will have the characteristics of high spatial resolution, high frame rate and high dimensionality of scene representation. In order to process such content, it will bring a huge increase in terms of memory storage, memory access rate and processing power.
  • the video codec standard after the high efficiency video coding (HEVC) standard requires a prediction technique capable of generating prediction samples accurately while using resources more efficiently.
  • Embodiments of the present specification provide a video signal processing method and apparatus capable of improving the accuracy of a motion vector when applying merge mode.
  • an embodiment of the present specification provides a video signal processing method and apparatus capable of reducing signaling overhead in the process of applying a merge with motion vector difference (MMVD) technique.
  • MMVD merge with motion vector difference
  • a method for processing a video signal includes obtaining a motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index, and AMVR (determining an MMVD offset applied to the motion vector based on an adaptive motion vector resolution (MMVD) index and a merge with motion vector difference (MMVD) length index; and a reference picture related to the motion vector and the merge index to which the MMVD offset is applied.
  • MMVD adaptive motion vector resolution
  • MMVD merge with motion vector difference
  • the MMVD offset value to be applied to the motion vector may be indicated in a set of MMVD candidates associated with.
  • generating the prediction sample of the current block includes: obtaining an MMVD direction index indicating the sign of the MMVD offset, and applying a code corresponding to the MMVD direction index to the MMVD offset. And adding the MMVD offset to which the sign is applied to the motion vector.
  • the AMVR index may be determined based on a resolution of a motion vector difference (MVD) applied to a motion vector of a neighboring block associated with the merge index.
  • VMD motion vector difference
  • the AMVR index may be updated based on the size of the MMVD offset indicated by the MMVD length index, and the updated AMVR index may be reused as the AMVR index of a block processed after the current block. Can. For example, if the MMVD offset is greater than or equal to a reference value, the AMVR index is determined to indicate the first set of MMVDs. If the size of the MMVD offset is less than the reference value, the AMVR index sets the second MMVD set index. It is determined to indicate, and the first MMVD set may have a value greater than the MMVD offset of the second MMVD set for the same MMVD length index.
  • a range of the MMVD offset applied to the motion vector may be determined based on the resolution of the AMVR index and the position coordinate indicated by the motion vector.
  • accuracy of a motion vector may be improved by performing prediction using a merge mode to which a merge with motion vector difference (MMVD) technique is applied.
  • MMVD merge with motion vector difference
  • FIG. 1 shows an example of a video coding system according to an embodiment of the present specification.
  • FIG. 2 shows a schematic block diagram of an encoding apparatus for encoding a video/image signal according to an embodiment of the present specification.
  • FIG. 4 shows an example of a structural diagram of a content streaming system according to an embodiment of the present specification.
  • FIG. 5 shows an example of a block diagram of an apparatus for processing a video signal according to an embodiment of the present specification.
  • FIG. 6 is an example of a block partitioning structure according to an embodiment of the present disclosure
  • FIG. 6A is a quad tree (QT)
  • FIG. 3B is a binary tree (BT)
  • FIG. 3C is a ternary tree (TT)
  • FIG. 3D is an asymmetric tree (AT) ).
  • 9 and 10 illustrate a video/video decoding procedure based on inter prediction and an inter prediction unit in a decoding device.
  • FIG. 13 shows an example of a flowchart for constructing a prediction candidate list (MVP candidate list).
  • FIG 14 shows an example of an MMVD discovery process according to an embodiment of the present specification.
  • FIG. 15 shows an example of a flowchart for performing prediction using a merge mode to which a merge with motion vector difference (MMVD) technique according to an embodiment of the present disclosure is applied.
  • MMVD motion vector difference
  • FIG 16 shows an example of triangular prediction units according to an embodiment of the present specification.
  • signals, data, samples, pictures, slices, tiles, frames, and blocks may be interpreted by being appropriately substituted in each coding process.
  • the term'processing unit' means a unit in which encoding/decoding processing processes such as prediction, transformation, and/or quantization are performed.
  • the processing unit may be interpreted as meaning including a unit for a luminance component and a unit for a chroma component.
  • the processing unit may correspond to a block, a coding unit (CU), a prediction unit (PU), or a transform unit (TU).
  • the processing unit may be interpreted as a unit for a luminance component or a unit for a color difference component.
  • the processing unit may correspond to a coding tree block (CTB), a coding block (CB), a PU or a transform block (TB) for the luminance component.
  • the processing unit may correspond to CTB, CB, PU or TB for the color difference component.
  • the present invention is not limited thereto, and the processing unit may be interpreted to include a unit for a luminance component and a unit for a color difference component.
  • processing unit is not necessarily limited to a square block, and may be configured in a polygonal shape having three or more vertices.
  • pixels, pixels, or coefficients transformation coefficients or transformation coefficients that have undergone first-order transformation
  • samples are hereinafter collectively referred to as samples.
  • using a sample may mean using a pixel value, a pixel value, or a coefficient (a transform coefficient or a transform coefficient that has undergone first-order transformation).
  • FIG. 1 shows an example of a video coding system according to an embodiment of the present specification.
  • the video coding system can include a source device 10 and a receiving device 20.
  • the source device 10 may transmit the encoded video/video information or data to the receiving device 20 through a digital storage medium or a network in a file or streaming form.
  • the source device 10 may include a video source 11, an encoding device 12, and a transmitter 13.
  • the receiving device 20 may include a receiver 21, a decoding device 22 and a renderer 23.
  • the encoding device 10 may be called a video/video encoding device, and the decoding device 20 may be called a video/video decoding device.
  • the transmitter 13 may be included in the encoding device 12.
  • the receiver 21 may be included in the decoding device 22.
  • the renderer 23 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 a video/image through a capture, synthesis, or generation process of the video/image.
  • the video source may include 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, a video/image archive including previously captured video/images, and the like.
  • the video/image generating device may include, for example, a computer, a tablet and a smartphone, and may (electronically) generate a video/image.
  • a virtual video/image may be generated through a computer or the like, and in this case, a video/image capture process may be replaced by a process of generating related data.
  • the encoding device 12 may encode an input video/image.
  • the encoding apparatus 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency.
  • the encoded data (encoded video/image information) may be output in the form of a bitstream.
  • the transmitting unit 13 may transmit the encoded video/video information or data output in the form of a bitstream to a receiving unit of a receiving device through a digital storage medium or a network in a file or streaming format.
  • Digital storage media include universal serial bus (USB), secure digital (SD), compact disk (CD), digital video disk (DVD), bluray, hard disk drive (HDD), and solid state drive (SSD). It may include various storage media.
  • the transmission unit 13 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 21 may extract the bitstream and transmit it to the decoding device 22.
  • the decoding apparatus 22 may decode a video/image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding apparatus 12.
  • the renderer 23 may render the decoded video/image.
  • the rendered video/image may be displayed through the display unit.
  • FIG. 2 shows a schematic block diagram of an encoding apparatus for encoding a video/image signal according to an embodiment of the present specification.
  • the encoding apparatus 100 includes an image segmentation unit 110, a subtraction unit 115, a conversion unit 120, a quantization unit 130, an inverse quantization unit 140, and an inverse conversion unit 150, It may include an adder 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190.
  • the inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185.
  • the transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit.
  • the residual processing unit may further include a subtraction unit 115.
  • the above-described image segmentation unit 110, subtraction unit 115, conversion unit 120, quantization unit 130, inverse quantization unit 140, inverse conversion unit 150, addition unit 155, 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 (for example, an encoder or processor) according to an embodiment.
  • the memory 170 may be configured by one hardware component (for example, a memory or digital storage medium) according to an embodiment, and the memory 170 may include a decoded picture buffer (DPB) 175. .
  • DPB decoded picture buffer
  • the image division unit 110 may divide the input image (or picture, frame) input to the encoding apparatus 100 into one or more processing units.
  • the processing unit may be referred to as 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.
  • a quad tree structure may be applied first, and a binary tree structure may be applied later.
  • a binary tree structure may be applied first.
  • the coding procedure according to the present specification may be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be directly used as a final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units having a lower depth than optimal, if necessary.
  • the coding unit of the size of can be used as the final coding unit.
  • the coding procedure may include procedures such as prediction, transformation, and reconstruction, which will be described later.
  • the processing unit may further include a prediction unit (PU) or a transformation unit (TU).
  • the prediction unit and transform unit may be partitioned or partitioned from the above-described 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.
  • the unit may be used interchangeably with terms such as a block or area depending on the case.
  • the MxN block may represent samples of M columns and N rows or a set of transform coefficients.
  • the sample may generally represent a pixel or a pixel value, and may indicate only a pixel/pixel value of a luma component or only a pixel/pixel value of a saturation component.
  • the sample may be used as a term for one picture (or image) corresponding to a pixel or pel.
  • the encoding apparatus 100 subtracts a prediction signal (a predicted block, a 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 (remaining block, residual sample array) may be generated, and the generated residual signal is transmitted to the converter 120.
  • a unit that subtracts a prediction signal (a prediction block, a prediction sample array) from an input video signal (original block, original sample array) in the encoding apparatus 100 may be referred to as a subtraction unit 115.
  • the prediction unit may perform 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 is applied or inter prediction is applied in units of blocks or CUs.
  • the prediction unit may generate various pieces of information about prediction, such as prediction mode information, as described later in the description of each prediction mode, and transmit them to the entropy encoding unit 190.
  • the prediction information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the intra prediction unit 185 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 depending on a prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the non-directional mode may include, for example, a DC mode and a planar 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, this is an example, and more or less directional prediction modes may be used depending on the setting.
  • the intra prediction unit 185 may determine a prediction mode applied to the current block by using a prediction mode applied to neighboring blocks.
  • the inter prediction unit 180 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
  • motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a 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 by a name such as a collocated reference block or a colCU, and a reference picture including a temporal neighboring block may also be called a collocated picture (colPic).
  • the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and generates information indicating which candidates are used to derive the motion vector and/or reference picture index of the current block. can do. Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, the inter prediction unit 180 may use motion information of neighboring blocks as motion information of the current block.
  • the residual signal may not be transmitted.
  • the motion vector of the current block is obtained by using the motion vector of the neighboring block as a motion vector predictor and signaling a motion vector difference. I can order.
  • the prediction signal generated by the inter prediction unit 180 or the intra prediction unit 185 may be used to generate a reconstructed signal or may be used to generate a residual signal.
  • the transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal.
  • 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 refers to a transformation obtained from this graph when it is said to graphically represent relationship information between pixels.
  • CNT means a transform obtained by generating a prediction signal using all previously reconstructed pixels and based on it.
  • the transform process may be applied to pixel blocks having the same size of a square, or may be applied to blocks of variable sizes other than squares.
  • the quantization unit 130 quantizes the transform coefficients and transmits them to the entropy encoding unit 190, and the entropy encoding unit 190 encodes the quantized signal (information about quantized transform coefficients) and outputs it as a bitstream. have. Information about the quantized transform coefficients may be called residual information.
  • the quantization unit 130 may rearrange block-type quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and the quantized transform based on the one-dimensional vector form quantized transform coefficients Information about coefficients may be generated.
  • the entropy encoding unit 190 may perform various encoding methods such as exponential Golomb (CAVLC), context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).
  • the entropy encoding unit 190 may encode information necessary for video/image reconstruction (eg, values of syntax elements, etc.) together with the quantized transform coefficients together or separately.
  • the encoded information (eg, video/video information) may be transmitted or stored in the unit of a network abstraction layer (NAL) unit in the form of a bitstream.
  • NAL network abstraction layer
  • the bitstream can be transmitted over a network or stored on a digital storage medium.
  • the network may include a broadcasting network and/or a communication network
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD.
  • the signal output from the entropy encoding unit 190 may be configured as an internal/external element of the encoding apparatus 100 by a transmitting unit (not shown) and/or a storing unit (not shown) for storing, 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 residual signal may be reconstructed by applying inverse quantization and inverse transform through the inverse quantization unit 140 and the inverse transform unit 150 in the loop to the quantized transform coefficients.
  • 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 the reconstructed signal (restored picture, reconstructed block, reconstructed sample array) 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 a reconstructed block.
  • the adding unit 155 may be referred to as a restoration unit or a restoration block generation unit.
  • the reconstructed signal may be used for intra prediction of a next processing target block in a current picture, or 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 reconstructed signal. For example, the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and may transmit the modified reconstructed picture to the decoded picture buffer 170.
  • Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter.
  • the filtering unit 160 may generate various pieces of information regarding filtering as described later in the description of each filtering method and transmit them to the entropy encoding unit 190.
  • the filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the modified reconstructed picture transmitted to the decoded picture buffer 170 may be used as a reference picture in the inter prediction unit 180.
  • inter prediction When the inter prediction is applied through the encoding apparatus 100, prediction mismatches in the encoding apparatus 100 and the decoding apparatus 200 may be avoided, and encoding efficiency may be improved.
  • the decoded picture buffer 170 may store the modified reconstructed picture for use as a reference picture in the inter prediction unit 180.
  • the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse conversion unit 230, an addition unit 235, a filtering unit 240, a memory 250, and an inter It may be configured to include a prediction unit 260 and the intra prediction unit 265.
  • the inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185.
  • the inverse quantization unit 220 and the inverse conversion unit 230 may be collectively referred to as a residual processing unit. That is, the residual processing unit may include an inverse quantization unit 220 and an inverse conversion unit 230.
  • the decoded picture buffer 250 may be implemented by one hardware component (eg, a memory or digital storage medium) according to an embodiment.
  • the memory 250 may include the DPB 175 and may be configured by a digital storage medium.
  • the decoding apparatus 200 may restore an image in response to a process in which the video/image information is processed by the encoding apparatus 100 of FIG. 2.
  • the decoding apparatus 200 may perform decoding using a processing unit applied by the encoding apparatus 100.
  • the processing unit may be, for example, a coding unit, and the coding unit may be divided according to a quad tree structure and/or a binary tree structure from a coding tree unit or a largest coding unit. Then, the decoded video signal decoded and output through the decoding apparatus 200 may be reproduced through the reproduction apparatus.
  • the decoding apparatus 200 may receive the signal output from the encoding apparatus 100 of FIG. 2 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, and quantizes a value of a syntax element necessary for image reconstruction and a transform coefficient for residual.
  • the CABAC entropy decoding method receives bins corresponding to each syntax element in a bitstream, and decodes syntax information of the target syntax element and surrounding and decoded blocks, or the symbol/bin decoded in the previous step.
  • the context model is determined using the information of, and the probability of occurrence of the bin is predicted according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element. have.
  • the CABAC entropy decoding method may update the context model using the decoded symbol/bin information for the next symbol/bin context model after determining the context model.
  • a prediction unit inter prediction unit 260 and intra prediction unit 265
  • the entropy decoding unit 210 performs entropy decoding.
  • the dual value that is, quantized transform coefficients and related parameter information, may be input to the inverse quantization unit 220.
  • information related to filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240.
  • a receiving unit (not shown) receiving a signal output from the encoding apparatus 100 may be further configured as an internal/external element of the decoding apparatus 200, or the receiving unit may be a component of the entropy decoding unit 210. It might be.
  • the inverse quantization unit 220 may output transform coefficients by inverse quantizing the quantized transform coefficients.
  • the inverse quantization unit 220 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, reordering may be performed based on the coefficient scan order performed by the encoding apparatus 100.
  • the inverse quantization unit 220 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (for example, quantization step size information), and obtain a transform coefficient.
  • a quantization parameter for example, quantization step size information
  • the inverse transform unit 230 may output a residual signal (residual block, residual sample array) by applying an inverse transform to the transform coefficient.
  • 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 information about prediction output from the entropy decoding unit 210, and may determine a specific intra/inter prediction mode.
  • the intra prediction unit 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 spaced apart according to the prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the intra prediction unit 265 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
  • the inter prediction unit 260 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
  • motion information may be predicted on a block, subblock, or sample basis based on the correlation of motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.).
  • 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 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 information on prediction may include information indicating a mode of inter prediction for a current block.
  • the adding unit 235 adds the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the inter prediction unit 260 or the intra prediction unit 265, thereby restoring a signal (restored picture, reconstructed block). , A reconstructed 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 a reconstructed block.
  • the adding unit 235 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of a next processing target block in a current picture, or 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 reconstructed signal. For example, the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and may transmit the modified reconstructed picture to the decoded picture buffer 250.
  • Various filtering methods may include, for example, deblocking filtering, sample adaptive offset (SAO), adaptive loop filter (ALF), bilateral filter, and the like.
  • the corrected reconstructed picture transmitted to the decoded picture buffer 250 may be used as a reference picture by the inter prediction unit 260.
  • the embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding device 100 are respectively the filtering unit 240 and the inter prediction unit 260 of the decoding device.
  • the intra prediction unit 265 may be applied to the same or corresponding.
  • FIG. 4 shows an example of a structural diagram of a content streaming system according to an embodiment of the present specification.
  • the content streaming system to which the present specification is applied may largely include an encoding server 410, a streaming server 420, a web server 430, a media storage 440, a user device 450, and a multimedia input device 460. have.
  • the encoding server 410 may compress the content input from multimedia input devices such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmit it to the streaming server 420.
  • multimedia input devices 460 such as a smartphone, camera, and camcorder directly generate a bitstream
  • the encoding server 410 may be omitted.
  • the bitstream may be generated by an encoding method or a bitstream generation method to which the present specification is applied, and the streaming server 420 may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
  • the streaming server 420 transmits multimedia data to the user device 450 based on a user request through the web server 430, and the web server 430 serves as an intermediary to inform the user of the service.
  • the web server 430 delivers it to the streaming server 420, and the streaming server 420 transmits multimedia data to the user.
  • the content streaming system may include a separate control server, in which case the control server serves to control commands/responses between devices in the content streaming system.
  • Streaming server 420 may receive content from media storage 440 and/or encoding server 410.
  • the streaming server 420 may receive content in real time from the encoding server 410.
  • the streaming server 420 may store the bitstream for a predetermined time.
  • the user device 450 includes a mobile phone, a smart phone, a laptop computer, a terminal for digital broadcasting, a personal digital assistants (PDA), a portable multimedia player (PMP), navigation, a slate PC ( slate PC), tablet PC (tablet PC), ultrabook (ultrabook), wearable device (wearable device, for example, a smart watch (smartwatch), glass type (smart glass), HMD (head mounted display), digital TVs, desktop computers, and digital signage.
  • PDA personal digital assistants
  • PMP portable multimedia player
  • slate PC slate PC
  • tablet PC tablet PC
  • ultrabook ultrabook
  • wearable device wearable device
  • wearable device for example, a smart watch (smartwatch), glass type (smart glass), HMD (head mounted display), digital TVs, desktop computers, and digital signage.
  • Each server in the content streaming system can be operated as a distributed server, and in this case, data received from each server can be distributed.
  • the video signal processing apparatus 500 may include a memory 520 for storing a video signal, and a processor 510 for processing a video signal while being combined with the memory.
  • the processor 510 may be configured with at least one processing circuit for processing a video signal, and may process a video signal by executing instructions for encoding or decoding the video signal. That is, the processor 510 may encode the original video signal or decode the encoded video signal by executing the encoding or decoding methods described below.
  • FIG. 6 is an example of a block division structure according to an embodiment of the present disclosure
  • FIG. 6A is a QT (quad tree, hereinafter referred to as'QT')
  • FIG. 3B is a BT (binary tree, hereinafter referred to as'BT')
  • FIG. 3C shows an example of block division structures by an TT (ternary tree, hereinafter referred to as'TT')
  • FIG. 3D an AT (asymmetric tree, hereinafter referred to as'TT').
  • one block can be divided based on QT. Also, one sub-block divided by QT may be further divided recursively using QT.
  • a leaf block that is no longer QT split may be split by at least one of BT, TT, or AT.
  • BT may have two types of splitting: horizontal BT (2NxN, 2NxN) and vertical BT (Nx2N, Nx2N).
  • the TT may have two types of splitting: horizontal TT (2Nx1/2N, 2NxN, 2Nx1/2N) and vertical TT (1/2Nx2N, Nx2N, 1/2Nx2N).
  • AT is horizontal-up AT (2Nx1/2N, 2Nx3/2N), horizontal-down AT (2Nx3/2N, 2Nx1/2N), vertical-left AT (1/2Nx2N, 3/2Nx2N), vertical-right AT (3 /2Nx2N, 1/2Nx2N).
  • Each BT, TT, AT can be further divided recursively using BT, TT, AT.
  • Block B3 which is no longer divided by QT, may be divided into vertical BT (C0, C1) or horizontal BT (D0, D1). As in the block C0, each sub-block may be further recursively divided in the form of horizontal BT (E0, E1) or vertical BT (F0, F1).
  • Block B3 which is no longer divided by QT, may be divided into vertical TT (C0, C1, C2) or horizontal TT (D0, D1, D2). As in block C1, each sub-block may be further recursively divided in the form of horizontal TT (E0, E1, E2) or vertical TT (F0, F1, F2).
  • Block B3 which is no longer divided by QT, may be divided into vertical AT (C0, C1) or horizontal AT (D0, D1). As in block C1, each sub-block may be further recursively divided in the form of horizontal AT (E0, E1) or vertical TT (F0, F1).
  • BT, TT, AT partitioning can be combined.
  • a sub-block divided by BT can be divided by TT or AT.
  • the sub-block divided by TT can be divided by BT or AT.
  • the sub-block divided by AT can be divided by BT or TT.
  • each sub-block may be divided into vertical BT, or after vertical BT division, each sub-block may be divided into horizontal BT.
  • the two types of division methods have different division order, but the shape of the final division is the same.
  • the order in which blocks are searched can be variously defined.
  • a search is performed from left to right, from top to bottom, and searching for blocks means an order of determining whether to divide additional blocks of each divided sub-block, or when a block is no longer divided, each sub It may mean a coding order of blocks, or a search order when sub-blocks refer to information of other neighboring blocks.
  • FIG. 7 and 8 illustrate a video/video encoding procedure based on inter prediction and an inter prediction unit in an encoding device.
  • the encoding apparatus 100 performs inter prediction on the current block (S710).
  • the encoding apparatus 100 may derive the inter prediction mode and motion information of the current block, and generate prediction samples of the current block.
  • the procedure for determining the inter prediction mode, deriving motion information, and generating prediction samples may be performed simultaneously, or one procedure may be performed before the other procedure.
  • the inter prediction unit 180 of the encoding apparatus 100 may include a prediction mode determination unit 181, a motion information derivation unit 182, and a prediction sample derivation unit 183, and the prediction mode determination unit
  • the prediction mode for the current block may be determined at 181, motion information of the current block may be derived from the motion information derivation unit 182, and prediction samples of the current block may be derived from the prediction sample derivation unit 183.
  • the inter prediction unit 180 of the encoding apparatus 100 searches a block similar to the current block in a certain area (search area) of reference pictures through motion estimation, and It is possible to derive a reference block with a difference of less than or equal to a certain standard.
  • a reference picture index indicating a reference picture in which the reference block is located may be derived, and a motion vector may be derived based on a position difference between the reference block and the current block.
  • the encoding apparatus 100 may determine a mode applied to a current block among various prediction modes.
  • the encoding apparatus 100 may compare the RD cost for various prediction modes and determine the optimal prediction mode for the current block.
  • the encoding apparatus 100 configures a merge candidate list, which will be described later, and the current block among the reference blocks indicated by the merge candidates included in the merge candidate list.
  • a reference block in which the difference from the current block is less than or equal to a certain criterion can be derived.
  • a merge candidate associated with the derived reference block is selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding apparatus 200.
  • Motion information of the current block may be derived using the motion information of the selected merge candidate.
  • the encoding apparatus 100 configures the (A)MVP candidate list, which will be described later, and (A) the motion vector predictor (MVP) candidates included in the MVP candidate list.
  • the motion vector of the selected MVP candidate can be used as the MVP of the current block.
  • a motion vector indicating a reference block derived by the above-described motion estimation may be used as a motion vector of the current block, and among the MVP candidates, a motion vector having the smallest difference from the motion vector of the current block may be used.
  • the MVP candidate to have may be the selected MVP candidate.
  • a motion vector difference which is a difference obtained by subtracting MVP from the motion vector of the current block, may be derived.
  • information about the MVD may be signaled to the decoding device 200.
  • the value of the reference picture index may be configured and reference signal index information may be separately signaled to the decoding apparatus 200.
  • the encoding apparatus 100 may derive residual samples based on the predicted samples (S720 ).
  • the encoding apparatus 100 may derive residual samples through comparison of original samples and prediction samples of the current block.
  • the output bitstream may be stored in a (digital) storage medium and transmitted to a decoding device, or may be delivered to a decoding device through a network.
  • the encoding apparatus may generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is because the encoding apparatus 100 derives the same prediction results as those performed by the decoding apparatus 200, and thus, it is possible to increase coding efficiency. Accordingly, the encoding apparatus 100 may store a reconstructed picture (or reconstructed samples, reconstructed block) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure may be further applied to the reconstructed picture.
  • 9 and 10 illustrate a video/video decoding procedure based on inter prediction and an inter prediction unit in a decoding device.
  • the decoding apparatus 200 may perform an operation corresponding to an operation performed by the encoding apparatus 100.
  • the decoding apparatus 200 may perform prediction on the current block and derive prediction samples based on the received prediction information.
  • the decoding apparatus 200 may determine a prediction mode for the current block based on the received prediction information (S910). The decoding apparatus 200 may determine which inter prediction mode is applied to the current block based on the prediction mode information in the prediction information.
  • the decoding apparatus 200 may determine whether a merge mode is applied to the current block or (A)MVP mode is determined based on a merge flag. Alternatively, the decoding apparatus 200 may select one of various inter prediction mode candidates based on the mode index.
  • the inter prediction mode candidates may include skip mode, merge mode and/or (A) MVP mode, or various inter prediction modes described below.
  • the decoding apparatus 200 derives motion information of the current block based on the determined inter prediction mode (S920). For example, when the skip mode or the merge mode is applied to the current block, the decoding apparatus 200 may configure a merge candidate list, which will be described later, and select one of the merge candidates included in the merge candidate list. . The selection of the merge candidate may be performed based on a merge index. Motion information of a current block may be derived from motion information of a selected merge candidate. Motion information of the selected merge candidate may be used as motion information of the current block.
  • the decoding apparatus 200 configures (A)MVP candidate list to be described later, and (A) an MVP candidate selected from among MVP candidates included in the MVP candidate list
  • the motion vector of can be used as the MVP of the current block.
  • the selection of the MVP may be performed based on the selection information (MVP flag or MVP index) described above.
  • the decoding apparatus 200 may derive the MVD of the current block based on information about the MVD, and may derive a motion vector of the current block based on the MVP and MVD of the current block.
  • the decoding apparatus 200 may derive the reference picture index of the current block based on the reference picture index information.
  • the picture indicated by the reference picture index in the reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.
  • motion information of the current block may be derived without configuring a candidate list, and in this case, motion information of the current block may be derived according to a procedure disclosed in the prediction mode described below.
  • the candidate list configuration as described above may be omitted.
  • the decoding apparatus 200 may generate prediction samples for the current block based on the motion information of the current block (S930). In this case, the decoding apparatus 200 may derive a reference picture based on the reference picture index of the current block, and derive predictive samples of the current block using samples of the reference block indicated by the motion vector of the current block on the reference picture. . In this case, as described later, a prediction sample filtering procedure for all or part of the prediction samples of the current block may be further performed depending on the case.
  • the inter prediction unit 260 of the decoding apparatus 200 may include a prediction mode determination unit 261, a motion information derivation unit 262, and a prediction sample derivation unit 263, and the prediction mode determination unit
  • the prediction mode for the current block is determined based on the prediction mode information received at (181), and the motion information (motion vector) of the current block is based on the motion information received from the motion information derivation unit 182. And/or a reference picture index), and predicted samples of the current block may be derived from the predicted sample deriving unit 183.
  • the decoding apparatus 200 generates residual samples for the current block based on the received residual information (S940).
  • the decoding apparatus 200 may generate reconstructed samples for the current block based on the predicted samples and residual samples, and generate a reconstructed picture based on the reconstructed samples. (S950). As described above, an in-loop filtering procedure may be further applied to the reconstructed picture.
  • the inter prediction procedure may include a step of determining an inter prediction mode, a step of deriving motion information according to the determined prediction mode, and performing a prediction (generating a predictive sample) based on the derived motion information.
  • inter prediction modes may be used for prediction of a current block in a picture.
  • various modes such as merge mode, skip mode, MVP mode, and affine mode may be used.
  • Decoder side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, and the like may be further used as ancillary modes.
  • the affine mode may also be called aaffine motion prediction mode.
  • the MVP mode may also be called AMVP (advanced motion vector prediction) mode.
  • Prediction mode information indicating the inter prediction mode of the current block may be signaled from the encoding device to the decoding device 200.
  • the prediction mode information may be included in the bitstream and received by the decoding apparatus 200.
  • the prediction mode information may include index information indicating one of a plurality of candidate modes.
  • the inter prediction mode may be indicated through hierarchical signaling of flag information.
  • the prediction mode information may include one or more flags.
  • the encoding apparatus 100 signals whether a skip mode is applied by signaling a skip flag, and indicates whether a merge mode is applied by signaling a merge flag when a skip mode is not applied, and when a merge mode is not applied. It may be indicated that the MVP mode is applied or may further signal a flag for additional classification.
  • the affine mode may be signaled as an independent mode, or may be signaled as a mode dependent on a merge mode or an MVP mode.
  • the affine mode may be configured as one candidate of the merge candidate list or the MVP candidate list, as described later.
  • the encoding apparatus 100 or the decoding apparatus 200 may perform inter prediction using motion information of a current block.
  • the encoding apparatus 100 may derive optimal motion information for the current block through a motion estimation procedure.
  • the encoding apparatus 100 may search for a similar reference block having a high correlation within a predetermined search range in a reference picture by a fractional pixel unit using the original block in the original picture for the current block, through which motion information Can be derived.
  • the similarity of the block can be derived based on the difference of phase-based sample values.
  • the similarity of a block may be calculated based on a sum of absolute difference (SAD) between a current block (or a template of a current block) and a reference block (or a template of a reference block).
  • SAD sum of absolute difference
  • motion information may be derived based on a reference block having the smallest SAD in the search area.
  • the derived motion information may be signaled to the decoding apparatus according to various methods based on the inter
  • the encoding apparatus 100 may indicate motion information of the current prediction block by transmitting flag information indicating that the merge mode is used and a merge index indicating which prediction blocks are used.
  • the encoding apparatus 100 must search a merge candidate block used to derive motion information of a current prediction block in order to perform a merge mode. For example, up to five merge candidate blocks may be used, but the present specification is not limited thereto. In addition, the maximum number of merge candidate blocks may be transmitted in the slice header, and the present specification is not limited thereto. After finding the merge candidate blocks, the encoding apparatus 100 may generate a merge candidate list, and may select a merge candidate block having the smallest cost as a final merge candidate block.
  • This specification provides various embodiments of a merge candidate block constituting a merge candidate list.
  • the merge candidate list may use 5 merge candidate blocks, for example. For example, four spatial merge candidates and one temporal merge candidate can be used.
  • FIG. 11 shows an example of a spatial merge candidate configuration for the current block.
  • a left neighboring block (A1), a bottom-left neighboring block (A2), a top-right neighboring block (B0), and an upper neighboring block (B1) ), at least one of a top-left neighboring block B2 may be used.
  • the merge candidate list for the current block may be configured based on the procedure shown in FIG. 12.
  • FIG. 12 shows an example of a flowchart for configuring a merge candidate list according to an embodiment of the present specification.
  • the coding apparatus searches for spatial neighboring blocks of the current block and inserts the derived spatial merge candidates into the merge candidate list (S1210).
  • the spatial peripheral blocks may include blocks around the lower left corner of the current block, blocks around the left corner, blocks around the upper right corner, blocks around the upper corner, and blocks around the upper left corner.
  • 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 detect available blocks by searching for spatial neighboring blocks based on priority, and derive motion information of the detected blocks as spatial merge candidates.
  • the encoding apparatus 100 or the decoding apparatus 200 searches the five blocks shown in FIG. 11 in the order of A1, B1, B0, A0, B2, sequentially indexes available candidates, and merges candidates It can be configured as a list.
  • the coding apparatus searches for temporal neighboring blocks of the current block and inserts the derived temporal merge candidate into the merge candidate list (S1220).
  • the temporal peripheral block may be located on a reference picture that is a different picture from the current picture in which the current block is located.
  • the reference picture in which the temporal neighboring block is located may be referred to as a collocated picture or a coll picture.
  • the temporal neighboring blocks may be searched in the order of the lower right corner peripheral block and the lower right center block of the co-located block for the current block on the call picture. Meanwhile, when motion data compression is applied, specific motion information may be stored as representative motion information for each predetermined storage unit in a call picture.
  • the predetermined storage unit may be predetermined in units of 16x16 sample units, 8x8 sample units, or the like, or size information for a predetermined storage unit may be signaled from the encoding device 100 to the decoding device 200. have.
  • motion information of a temporal peripheral block may be replaced with representative motion information of a certain storage unit in which the temporal peripheral block is located.
  • a temporal merge candidate may be derived based on the motion information of the prediction block. For example, if the constant storage unit is 2nx2n sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> n) ⁇ n), (yTnb >> n) The motion information of the prediction block located at ⁇ n)) can be used for temporal merge candidates.
  • the constant storage unit is 16x16 sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> 4) ⁇ 4), (yTnb >> 4) Motion information of the prediction block located at ⁇ 4)) can be used for temporal merge candidates.
  • the constant storage unit is 8x8 sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> 3) ⁇ 3), (yTnb >> 3 ) ⁇ 3)) motion information of the prediction block located at may be used for temporal merge candidate.
  • the coding apparatus may check whether the number of current merge candidates is smaller than the maximum number of merge candidates (S1230).
  • the maximum number of merge candidates may be predefined or signaled from the encoding device 100 to the decoding device 200.
  • the encoding apparatus 100 may generate information on the number of maximum merge candidates, encode, and transmit the encoded information to the decoding apparatus 200 in the form of a bitstream.
  • the subsequent candidate addition process may not proceed.
  • the coding apparatus inserts an additional merge candidate into the merge candidate list (S1240).
  • Additional merge candidates are, for example, adaptive temporal motion vector prediction (ATMVP), combined bi-predictive merge candidates (if the slice type of the current slice is of type B) and/or zero vector merge. Candidates may be included.
  • ATMVP adaptive temporal motion vector prediction
  • FIG. 13 shows an example of a flowchart for constructing a prediction candidate list (MVP candidate list).
  • a motion vector of a reconstructed spatial neighboring block eg, the neighboring block of FIG. 11
  • a motion vector corresponding to a temporal neighboring block or Col block
  • a motion vector predictor (MVP) candidate list may be generated. That is, the motion vector of the reconstructed spatial neighboring block and/or the motion vector corresponding to the temporal neighboring block may be used as a motion vector predictor candidate.
  • the prediction information may include selection information (eg, an MVP flag or an MVP index) indicating an optimal motion vector predictor candidate selected from among motion vector predictor candidates included in the list.
  • the prediction unit may select a motion vector predictor of the current block from among motion vector predictor candidates included in the motion vector candidate list using the selection information.
  • the prediction unit of the encoding apparatus 100 may obtain a motion vector difference (MVD) between a motion vector of a current block and a motion vector predictor, encode it, and output it in the form of a bitstream. That is, the MVD can be obtained by subtracting the motion vector predictor from the motion vector of the current block.
  • the prediction unit of the decoding apparatus may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block through addition of the motion vector difference and the motion vector predictor.
  • the prediction unit of the decoding apparatus may obtain or derive a reference picture index indicating the reference picture from the information on the prediction.
  • the motion vector predictor candidate list may be configured as shown in FIG. 13.
  • the coding apparatus searches for a spatial candidate block for motion vector prediction and inserts it into a prediction candidate list (S1310).
  • the coding apparatus may search for neighboring blocks according to a predetermined search order, and add information of neighboring blocks satisfying the condition for the spatial candidate block to the prediction candidate list (MVP candidate list).
  • the coding apparatus After constructing the spatial candidate block list, the coding apparatus compares the number of spatial candidate lists included in the prediction candidate list with a preset reference number (eg, 2) (S1320). If the number of spatial candidate lists included in the prediction candidate list is greater than or equal to the reference number (eg, 2), the coding apparatus may end the construction of the prediction candidate list.
  • a preset reference number eg, 2
  • the coding device searches for the temporal candidate block and inserts it into the prediction candidate list (S1330), and the temporal candidate block is used If it is not possible, the zero motion vector is added to the prediction candidate list (S1340).
  • the predicted block for the current block may be derived based on the motion information derived according to the prediction mode.
  • the predicted block may include predictive samples (predictive sample array) of the current block.
  • an interpolation procedure may be performed, and through this, prediction samples of the current block may be derived based on reference samples in a fractional sample unit in a reference picture. .
  • prediction samples may be generated based on a motion vector per sample/subblock.
  • prediction samples derived based on first direction prediction eg, L0 prediction
  • prediction samples derived based on second direction prediction eg, L1 prediction
  • the final prediction samples can be derived through weighted sum (per phase).
  • reconstruction samples and reconstruction pictures may be generated based on the derived prediction samples, and then procedures such as in-loop filtering may be performed.
  • MVP may be applied.
  • the merge with MVD (MMVD) technique can increase accuracy by adjusting the size and direction of a motion vector with respect to a selected candidate among candidates configured with a merge candidate list construction method.
  • the coding apparatus may determine a specific candidate from the merge candidate list as a base candidate. When the number of available base candidates is two, the first candidate and the second candidate in the list can be used as base candidates.
  • the encoding apparatus 100 may transmit information on the selected base candidate by signaling a base candidate index.
  • the number of base candidates may be variously set, and if the number of base candidates is 1, the base candidate index may not be used. Table 1 below shows an example of the base candidate index.
  • the motion vector corresponding to the first candidate is determined as the base candidate in the currently configured merge candidate list (or MVP candidate list), and if the base candidate index is 1, the currently configured merge candidate list ( Alternatively, a motion vector corresponding to the second candidate in the MVP candidate list) may be determined as a base candidate.
  • a motion search method in MMVD may be expressed as shown in FIG. 14.
  • a motion vector in the L1 direction may be derived using a mirroring scheme for the L0 motion vector.
  • the embodiments herein provide a method and apparatus for efficiently applying the MMVD technique.
  • AMVR adaptive motion vector resolution
  • FIG. 15 shows an example of a flowchart for performing prediction using a merge mode to which a merge with motion vector difference (MMVD) technique according to an embodiment of the present disclosure is applied.
  • the operations illustrated in FIG. 15 may be performed by the decoding apparatus 200 or the video signal processing apparatus 500.
  • the decoding apparatus 200 may determine the MMVD offset applied to the motion vector based on the AMVR index (imv_idx or imv_idc) and the MMVD length index (Distance IDX or mmvd_distance_idx).
  • the AMVR index is associated with one of the predetermined MMVD candidate sets (eg, Cases 1 to 3 in Table 4D) based on the resolution of the MMVD offset values, and the MMVD length index moves in the MMVD candidate set associated with the AMVR index.
  • the MMVD offset value to be applied to the vector can be indicated.
  • the decoding apparatus 200 may generate a prediction sample of the current block based on the motion vector to which the MMVD offset is applied and the reference picture associated with the merge index. That is, the decoding apparatus 200 determines the final motion vector by adding the MMVD offset determined in step S1520 to the motion vector derived from the merge index in step S1510, and the current block from the sample indicated by the final motion vector in the reference picture. Can generate predictive samples.
  • the MMVD length index indicates an MVMD offset value within a range defined by the AMVR index (for example, 4), all ranges are based only on the MMVD length index as shown in Table 2. In comparison with indicating the MMVD offset value, the bit amount required to transmit the MMVD length index can be reduced.
  • the decoding apparatus 200 obtains an MMVD direction index (eg, Direction IDX or MMVD_direction_idx in Table 2) indicating the sign of the MMVD offset, applies a sign corresponding to the MMVD direction index to the MMVD offset,
  • MMVD direction index eg, Direction IDX or MMVD_direction_idx in Table 2
  • a predicted sample may be generated by adding a signed MMVD offset corresponding to a MMVD direction index to a motion vector and using a final motion vector to which a signed MMVD offset is added.
  • Table 4 shows a table of MMVD offset values for the MMVD length index according to this embodiment.
  • different MMVD offsets are allocated for each MMVD length index according to imv_idx. That is, in case 1, imv_idx is 0, the base motion vector may be adjusted by a distance of 1/4-pel to 2-pel. In addition, in case 2, when imv_idx is 1, the base motion vector may be adjusted by a distance of 1/2-pel to 4-pel. Finally, in case 3, imv_idx is 2, and the base motion vector may be adjusted by a distance of 1-pel to 8-pel.
  • the number of candidates and candidate values in the distance table described in this specification are only examples, and other numbers or different values may be used.
  • the AMVR index may be determined based on the resolution of a motion vector difference (MVD) applied to a motion vector of a neighboring block associated with the merge index.
  • the AMVR index may be determined based on AMVR information (AMVR index) of spatial or temporal neighboring blocks used in the process of generating a merge or MVP candidate list of the current block.
  • AMVR mode is applied in AMVP and is not used in merge/skip mode. Therefore, in order to determine the above-mentioned AMVR mode-based length table determination method, the AMVR index can be separately set in the merge/skip mode. That is, when the current block is in the merge/skip mode, the AMVR index (imv_idx) of the neighboring block is set and stored so that the AMVR can be applied when constructing candidates for the MMVD.
  • the coding device performs context modeling using imv_idx of the left or upper neighboring block in the parsing process, MMVD in order to prevent imv_idx of the stored neighboring block from being applied to the parsing process in the decoding process of the block to which merge/skip mode is applied.
  • the AMVR index of the block to which the is applied is distinguished from the AVMR index of the block to which the AMVP is applied by naming it as a separate syntax element (eg, imv_idc).
  • the following embodiment provides a method of storing an AMVR index (imv_idc) in the process of constructing an MVP candidate list for a block to which merge/skip mode is applied. This is because according to MMVD, a base motion vector corresponding to a selected candidate among MVP candidates configured in a decoding process of a block to which merge/skip mode is applied is adjusted.
  • the AMVR index may be set as follows according to the characteristics of the adjacent block (resolution of the MVD or AMVR index).
  • the AMVR index of the adjacent blocks is used.
  • a default value (eg 0) is used.
  • an AMVR index matching candidates stored in the HMVP buffer is used, or a default value (for example, 0) is always used for an HMVP candidate.
  • the corresponding AMVR index is used, and in other cases, the larger AMVR index value is used.
  • the AMVR index value of adjacent blocks can be stored to propagate the merge/skip mode afterwards.
  • one CU coding unit
  • PUs triangular shaped prediction units
  • each PU can be predicted by uni-prediction.
  • a candidate list for unidirectional prediction may be constructed in a manner similar to a general merge/skip mode.
  • one CU is composed of two PUs (Cand0, Cand1), so the AMVR index of the corresponding block (CU) can be determined by considering all of the AMVR indexes of the two blocks (PU). Can.
  • the AMVR index of adjacent blocks can be stored so that the AMVR index value is propagated to the merge/skip mode later.
  • the M/H mode is a technique in which intra prediction and inter prediction are combined in the merge/skip mode, and signals both indexes for the intra mode and the merge mode.
  • the candidate list is constructed in a similar manner to the normal merge/skip mode, and when the M/H mode is applied, the AMVR index can be set for the corresponding block as follows.
  • the default value (eg 0) is used.
  • HMVP candidates i) use the AMVR index matching the candidates stored in the HMVP buffer, or ii) always use the default value (eg 0).
  • L0 candidate (L0 block) and L1 candidate (L1 block) use the common AMVR index when they have the same AMVR index; otherwise, use the default value (eg 0) Or, ii) When the L0 candidate (L0 block) and the L1 candidate (L1 block) have the same AMVR index, a common AMVR index is used, and in other cases, a larger AMVR index is used.
  • the MMVD length is determined to be 4-pel or 8-pel, it is similar to the AMVR index (imv_idc) 2, so even if the AMVR index of the base motion vector is 0, it can be updated to 2.
  • the MMVD distance is determined to be 1-pel or more, it can be updated to 1 because it is similar to the AMVR index (imv_idc) 1.
  • the AMVR index is determined to indicate the first MMVD set
  • the MMVD range index is determined to indicate the second MMVD set index.
  • the first MMVD set has a value greater than the MMVD offset of the second MMVD set for the same MMVD length index.
  • the magnitude of the x and y values of the base motion vector of the MMVD may have an effect similar to that of the AMVR of the block in deriving the distance for refinement.
  • the present embodiment provides a method of determining the MMVD length table according to the value of the base motion vector.
  • Table 6 below is another example of a table showing the relationship between the MMVD length index and the MMVD offset values, and shows a method of determining the MMVD length table according to the value of the base motion vector.
  • Case 1 has the following conditions.
  • the distance may be adjusted to a distance of 1/4-pel to 2-pel corresponding to Case 3.
  • the number of candidates and candidate values in the distance table described in this specification are only examples, and it is natural that other numbers or different values may be applied.
  • Case 1 to Case 3 described above may be modified and applied as follows. That is, even if one of the candidates to which bi-directional prediction is applied has a motion vector in units of 4-pel or 1-pel as shown in the following conditions, it may be determined that the condition is satisfied.
  • Case 1 may be as follows.
  • This embodiment may be applied when AMVR is not used, or may be used regardless of whether AMVR is applied.
  • the MMVD length table is determined according to the AMVR index
  • the MMVD is based on the pixel unit of the motion vector as in this embodiment.
  • the length table can be determined.
  • the range of the MMVD offset applied to the motion vector may be determined based on the resolution of the position coordinates indicated by the AMVR index and the base motion vector. For example, when the AMVR index is 0, the range of the MMVD offset applied to the motion vector for prediction of the current block may be determined based on the position coordinates indicated by the motion vector.
  • the position coordinates may include a horizontal position (x coordinate) and/or a vertical position (y coordinate) from an arbitrary position in the picture or block (eg, the position of the upper left pixel).
  • the size of the current block may be considered in the process of applying the MMVD by reflecting the characteristics of the current block.
  • the table for the MMVD offset value may be determined in consideration of at least one of the size of the x, y values of the AMVR mode, the base motion vector, or the size of the current block.
  • the range of the MMVD offset applied to the motion vector may be determined based on the AMVR index and the size of the current block. For example, the following method may be considered.
  • AMVR index (imv_idc) is 0 and wxh> 256 (hereinafter, w corresponds to the width of the current block, h corresponds to the height of the current block), the MMVD length table of ⁇ 2, 4, 8, 16 ⁇ is used, and Table 4 or Table 6 is used otherwise.
  • the MMVD method may be implemented by the video signal processing apparatus 500 of FIG. 5 using the MMVD index within the MMVD offset range determined in consideration of the above-described AMVR index.
  • the AMVR index may be determined based on the resolution of the MVD applied to the motion vector of the neighboring block associated with the merge index.
  • the AMVR index may be updated based on the size of the MMVD offset indicated by the MMVD length index, and the updated AMVR index may be reused as the AMVR index of the block processed after the current block. For example, if the MMVD offset is greater than or equal to the reference value, the AMVR index is determined to indicate the first MMVD set, and if the size of the MMVD offset is less than the reference value, the AMVR index indicates the second MMVD set index. It is determined, and the first MMVD set may have a value greater than the MMVD offset of the second MMVD set for the same MMVD length index.
  • a range of the MMVD offset applied to the motion vector may be determined based on the AMVR index and the pixel unit of the motion vector.
  • the range of the MMVD offset applied to the motion vector may be determined based on the AMVR index and the size of the current block.
  • the encoded information (ex. encoded video/video information) derived by the encoding device may be output in the form of a bitstream.
  • the encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of a bitstream.
  • NAL network abstraction layer
  • the bitstream may be transmitted over a network or may be stored in a (non-transitory) digital storage medium.
  • the bitstream is not directly transmitted from the encoding device to the decoding device, and may be streamed/downloaded through an external server (ex. content streaming server).
  • 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.
  • Embodiments described in the present invention may be implemented and implemented on a processor, microprocessor, controller, or chip.
  • the functional units shown in each figure may be implemented and implemented on a computer, processor, microprocessor, controller, or chip.
  • the processing method to which the present invention is applied may be produced in the form of a program executed by a computer, and may be stored in a computer readable recording medium.
  • Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium.
  • the computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored.
  • the computer-readable recording medium includes, for example, Blu-ray Disc (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk and optical. It may include a data storage device.
  • the computer-readable recording medium includes media implemented in the form of a carrier wave (for example, transmission via the Internet).
  • the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
  • an embodiment of the present invention may be implemented as a computer program product by program code, and the program code may be executed on a computer by an embodiment of the present invention.
  • the program code can be stored on a computer readable carrier.
  • the AMVR index is associated with one of the predetermined MMVD candidate sets based on the resolution of the MMVD offset values
  • the MMVD length index indicates an MMVD offset value to be applied to the motion vector among candidate offset values associated with the AMVR index.
  • the decoding apparatus 200 and the encoding apparatus 100 to which the present invention is applied may be included in a digital device.
  • digital device includes, for example, all digital devices capable of performing at least one of transmission, reception, processing, and output of data, content, and services.
  • the processing of the data, content, service, etc. by the digital device includes an operation of encoding and/or decoding data, content, service, and the like.
  • These digital devices are paired or connected (hereinafter referred to as'pairing') with other digital devices, external servers, etc. through a wire/wireless network to transmit and receive data. Convert it accordingly.
  • Digital devices include, for example, fixed devices such as network TV, network broadcast broadband TV (HBBTV), smart TV, Internet protocol television (IPTV), personal computer (PC), and the like.
  • PDA personal digital assistant
  • smart phone smart phone
  • tablet PC tablet PC
  • mobile device mobile device or handheld device
  • a laptop such as a laptop.
  • an embodiment of the present specification may be implemented in the form of a module, procedure, function, etc. that performs the functions or operations described above.
  • the software code can be stored in memory and driven by a processor.
  • the memory is located inside or outside the processor, and can exchange data with the processor by various known means.

Landscapes

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

Abstract

An embodiment of the present specification provides a method and an apparatus for processing video data. A method for processing a video signal, according to an embodiment of the present specification, comprises the steps of: obtaining, on the basis of a merge index, a motion vector for inter prediction, of the current block, from at least one neighboring block adjacent to the current block; determining, on the basis of an adaptive motion vector resolution (AMVR) index and a merge motion vector difference (MMVD) distance index, an MMVD offset to be applied to the motion vector; and generating a prediction sample of the current block on the basis of the motion vector, to which the MMVD offset is applied, and a reference picture related with the merge index, wherein the AMVR index is related to one of predetermined MMVD candidate sets on the basis of the resolution of MMVD offset values, and the MMVD distance index indicates a MMVD offset value to be applied to the motion vector in the MMVD candidate sets related to the AMVR index. The MMVD offset value is determined to be within a range set by the AMVR index, so that the amount of bits required to transmit the MMVD distance index can be reduced.

Description

화면간 예측을 사용하여 비디오 신호를 처리하기 위한 방법 및 장치Method and apparatus for processing video signal using inter prediction
본 명세서의 실시예는 화면간 예측(inter prediction)을 사용하여 비디오 신호를 처리하는 방법 및 장치에 관한 것으로서, 보다 구체적으로 MMVD(merge with motion vector difference)가 적용된 머지 모드를 사용한 화면간 예측을 수행하기 위한 방법 및 장치에 관한 것이다.An embodiment of the present disclosure relates to a method and apparatus for processing a video signal using inter prediction, and more specifically, performs inter-screen prediction using merge mode to which merge with motion vector difference (MMVD) is applied. It relates to a method and apparatus for.
압축 부호화란 디지털화한 정보를 통신 회선을 통해 전송하거나, 저장 매체에 적합한 형태로 저장하기 위한 일련의 신호 처리 기술을 의미한다. 영상, 이미지, 음성 등의 미디어가 압축 부호화의 대상이 될 수 있으며, 특히 영상을 대상으로 압축 부호화를 수행하는 기술을 비디오 영상 압축이라고 일컫는다.Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing it in a form suitable for a storage medium. Media such as video, image, and audio may be the subject of compression encoding, and a technique for performing compression encoding on an image is referred to as video image compression.
차세대 비디오 컨텐츠는 고해상도(high spatial resolution), 고프레임율(high frame rate) 및 영상 표현의 고차원화(high dimensionality of scene representation)라는 특징을 갖게 될 것이다. 그러한 컨텐츠를 처리하기 위해서는 메모리 저장(memory storage), 메모리 액세스율(memory access rate) 및 처리 전력(processing power) 측면에서 엄청난 증가를 가져올 것이다.Next-generation video content will have the characteristics of high spatial resolution, high frame rate and high dimensionality of scene representation. In order to process such content, it will bring a huge increase in terms of memory storage, memory access rate and processing power.
따라서, 차세대 영상 컨텐츠를 보다 효율적으로 처리하기 위한 코딩 툴을 디자인할 필요가 있다. 특히, HEVC(high efficiency video coding) 표준 이후의 비디오 코덱 표준은 보다 자원을 효율적으로 사용하면서 정확하게 예측 샘플을 생성할 수 있는 예측 기술을 요구한다.Therefore, it is necessary to design a coding tool to process next-generation video content more efficiently. In particular, the video codec standard after the high efficiency video coding (HEVC) standard requires a prediction technique capable of generating prediction samples accurately while using resources more efficiently.
본 명세서의 실시예는 머지 모드의 적용시 움직임 벡터의 정확도를 향상시킬 수 있는 비디오 신호 처리 방법 및 장치를 제공한다.Embodiments of the present specification provide a video signal processing method and apparatus capable of improving the accuracy of a motion vector when applying merge mode.
또한, 본 명세서의 실시예는 MMVD(merge with motion vector difference) 기법을 적용하는 과정에서 시그널링 오버헤드(signaling overhead)를 감소시킬 수 있는 비디오 신호 처리 방법 및 장치를 제공한다.In addition, an embodiment of the present specification provides a video signal processing method and apparatus capable of reducing signaling overhead in the process of applying a merge with motion vector difference (MMVD) technique.
본 명세서에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 명세서가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in the present specification are not limited to the technical problems mentioned above, and other technical problems that are not mentioned will be clearly understood by those skilled in the art from the description below. Will be able to.
본 명세서의 실시예에 따른 비디오 신호를 처리하기 위한 방법은, 머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 움직임 벡터를 획득하는 단계와, AMVR(adaptive motion vector resolution) 인덱스 및 MMVD(merge with motion vector difference) 길이 인덱스에 기반하여, 상기 움직임 벡터에 적용되는 MMVD 오프셋을 결정하는 단계와, 상기 MMVD 오프셋이 적용된 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성하는 단계를 포함하며, 상기 AMVR 인덱스는 MMVD 오프셋 값들의 해상도에 기반하여 사전에 결정된 MMVD 후보 집합들 중 하나와 관련되고, 상기 MMVD 길이 인덱스, 상기 AMVR 인덱스와 관련된 MMVD 후보 집합에서 상기 움직임 벡터에 적용될 MMVD 오프셋 값을 지시할 수 있다.A method for processing a video signal according to an embodiment of the present disclosure includes obtaining a motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index, and AMVR ( determining an MMVD offset applied to the motion vector based on an adaptive motion vector resolution (MMVD) index and a merge with motion vector difference (MMVD) length index; and a reference picture related to the motion vector and the merge index to which the MMVD offset is applied. Generating a prediction sample of the current block based on the AMVR index being associated with one of a predetermined set of MMVD candidates based on the resolution of MMVD offset values, the MMVD length index, and the AMVR index. The MMVD offset value to be applied to the motion vector may be indicated in a set of MMVD candidates associated with.
일 실시예에서, 상기 현재 블록의 예측 샘플을 생성하는 단계는, 상기 MMVD 오프셋의 부호를 지시하는 MMVD 방향 인덱스를 획득하는 단계와, 상기 MMVD 오프셋에 상기 MMVD 방향 인덱스에 대응하는 부호를 적용하는 단계와, 상기 부호가 적용된 MMVD 오프셋을 상기 움직임 벡터에 더하는 단계를 포함할 수 있다.In one embodiment, generating the prediction sample of the current block includes: obtaining an MMVD direction index indicating the sign of the MMVD offset, and applying a code corresponding to the MMVD direction index to the MMVD offset. And adding the MMVD offset to which the sign is applied to the motion vector.
일 실시예에서, 상기 AMVR 인덱스는 상기 머지 인덱스와 관련된 주변 블록의 움직임 벡터에 적용되는 MVD(motion vector difference)의 해상도(resolution)에 기반하여 결정될 수 있다.In one embodiment, the AMVR index may be determined based on a resolution of a motion vector difference (MVD) applied to a motion vector of a neighboring block associated with the merge index.
일 실시예에서, 상기 AMVR 인덱스는 상기 MMVD 길이 인덱스에 의해 지시되는 MMVD 오프셋의 크기에 기반하여 업데이트될 수 있으며, 상기 업데이트된 AMVR 인덱스는, 상기 현재 블록 이후에 처리되는 블록의 AMVR 인덱스로서 재사용될 수 있다. 예를 들어, 상기 MMVD 오프셋이 기준 값보다 크거나 같으면 상기 AMVR 인덱스는 제1 MMVD 집합을 지시하도록 결정되고, 상기 MMVD 오프셋의 크기가 기준 값보다 작으면, 상기 AMVR 인덱스는 제2 MMVD 집합 인덱스를 지시하도록 결정되며, 상기 제1 MMVD 집합은 동일한 MMVD 길이 인덱스에 대하여 상기 제2 MMVD 집합의 MMVD 오프셋보다 큰 값을 가질 수 있다.In one embodiment, the AMVR index may be updated based on the size of the MMVD offset indicated by the MMVD length index, and the updated AMVR index may be reused as the AMVR index of a block processed after the current block. Can. For example, if the MMVD offset is greater than or equal to a reference value, the AMVR index is determined to indicate the first set of MMVDs. If the size of the MMVD offset is less than the reference value, the AMVR index sets the second MMVD set index. It is determined to indicate, and the first MMVD set may have a value greater than the MMVD offset of the second MMVD set for the same MMVD length index.
일 실시예에서, 상기 AMVR 인덱스 및 상기 움직임 벡터에 의해 지시되는 위치 좌표의 해상도에 기반하여 상기 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정될 수 있다.In one embodiment, a range of the MMVD offset applied to the motion vector may be determined based on the resolution of the AMVR index and the position coordinate indicated by the motion vector.
일 실시예에서, 상기 AMVR 인덱스 및 상기 현재 블록의 사이즈에 기반하여 상기 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정될 수 있다.In one embodiment, a range of the MMVD offset applied to the motion vector may be determined based on the AMVR index and the size of the current block.
본 명세서의 실시예에 따르면, MMVD(merge with motion vector difference) 기법이 적용된 머지 모드를 사용하여 예측을 수행함으로써 움직임 벡터의 정확도를 향상시킬 수 있다.According to an embodiment of the present specification, accuracy of a motion vector may be improved by performing prediction using a merge mode to which a merge with motion vector difference (MMVD) technique is applied.
또한, 본 명세서의 실시예에 따르면, MMVD 기법을 적용하는 과정에서 일정 MMVD 길이 범위를 지시하는 MMVD 범위 인덱스를 사용함으로써 시그널링 오버헤드(signaling overhead)를 감소시킬 수 있는 비디오 신호 처리 방법 및 장치를 제공한다.In addition, according to an embodiment of the present disclosure, in the course of applying the MMVD technique, a video signal processing method and apparatus capable of reducing signaling overhead by using an MMVD range index indicating a certain MMVD length range is provided. do.
본 명세서에서 얻을 수 있는 효과는 이상에서 언급한 효과로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 명세서가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects obtained in the present specification are not limited to the above-mentioned effects, and other effects not mentioned may be clearly understood by those skilled in the art from the following description. .
본 명세서에 관한 이해를 돕기 위해 상세한 설명의 일부로 포함되는, 첨부 도면은 본 명세서에 대한 실시예를 제공하고, 상세한 설명과 함께 본 명세서의 기술적 특징을 설명한다.BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are included as part of the detailed description to aid understanding of the present specification, provide embodiments of the present specification and describe the technical features of the present specification together with the detailed description.
도 1은 본 명세서의 실시예에 따른 비디오 코딩 시스템의 예를 도시한다.1 shows an example of a video coding system according to an embodiment of the present specification.
도 2는 본 명세서의 실시예에 따른 비디오/이미지 신호의 인코딩을 위한 인코딩 장치의 개략적인 블록도를 나타낸다. 2 shows a schematic block diagram of an encoding apparatus for encoding a video/image signal according to an embodiment of the present specification.
도 3은 본 명세서의 실시예로서, 영상 신호의 디코딩을 위한 디코딩 장치의 개략적인 블록도를 나타낸다. 3 is an embodiment of the present specification, and shows a schematic block diagram of a decoding apparatus for decoding a video signal.
도 4는 본 명세서의 실시예에 따른 컨텐츠 스트리밍 시스템의 구조도의 예를 도시한다. 4 shows an example of a structural diagram of a content streaming system according to an embodiment of the present specification.
도 5는 본 명세서의 실시예에 따른 비디오 신호를 처리하기 위한 장치의 블록도의 예를 도시한다.5 shows an example of a block diagram of an apparatus for processing a video signal according to an embodiment of the present specification.
도 6은 본 명세서의 실시예에 따른 블록 분할 구조의 예로서, 도 6a는 QT(quad tree), 도 3b는 BT(binary tree), 도 3c는 TT(ternary tree) 도 3d는 AT(asymmetric tree)에 의한 블록 분할 구조들의 예를 도시한다.6 is an example of a block partitioning structure according to an embodiment of the present disclosure, FIG. 6A is a quad tree (QT), FIG. 3B is a binary tree (BT), FIG. 3C is a ternary tree (TT), and FIG. 3D is an asymmetric tree (AT) ).
도 7 및 도 8은 인터 예측에 기반한 비디오/영상 인코딩 절차 및 인코딩 장치 내 인터 예측부를 도시한다.7 and 8 illustrate a video/video encoding procedure based on inter prediction and an inter prediction unit in an encoding device.
도 9 및 도 10은 인터 예측에 기반한 비디오/영상 디코딩 절차 및 디코딩 장치 내 인터 예측부를 도시한다.9 and 10 illustrate a video/video decoding procedure based on inter prediction and an inter prediction unit in a decoding device.
도 11은 현재 블록에 대한 공간적 머지 후보 구성의 예를 도시한다.11 shows an example of a spatial merge candidate configuration for the current block.
도 12는 본 명세서의 실시예에 따른 머지 후보 리스트 구성을 위한 흐름도의 예를 도시한다.12 shows an example of a flowchart for configuring a merge candidate list according to an embodiment of the present specification.
도 13은 예측 후보 리스트(MVP 후보 리스트)를 구성하기 위한 흐름도의 예를 도시한다. 13 shows an example of a flowchart for constructing a prediction candidate list (MVP candidate list).
도 14는 본 명세서의 실시예에 따른 MMVD 탐색 프로세스의 예를 도시한다.14 shows an example of an MMVD discovery process according to an embodiment of the present specification.
도 15는 본 명세서의 실시예에 따른 MMVD(merge with motion vector difference) 기법이 적용된 머지 모드를 사용하여 예측을 수행하기 위한 흐름도의 예를 도시한다.15 shows an example of a flowchart for performing prediction using a merge mode to which a merge with motion vector difference (MMVD) technique according to an embodiment of the present disclosure is applied.
도 16은 본 명세서의 실시예에 따른 삼각 예측 유닛들(triangular prediction units)의 예를 도시한다.16 shows an example of triangular prediction units according to an embodiment of the present specification.
이하, 본 명세서에 따른 바람직한 실시 형태를 첨부된 도면을 참조하여 상세하게 설명한다. 첨부된 도면과 함께 이하에 개시될 상세한 설명은 본 명세서의 예시적인 실시형태를 설명하고자 하는 것이며, 본 명세서가 실시될 수 있는 유일한 실시형태를 나타내고자 하는 것이 아니다. 이하의 상세한 설명은 본 명세서의 완전한 이해를 제공하기 위해서 구체적 세부사항을 포함한다. 그러나, 당업자는 본 명세서가 이러한 구체적 세부사항 없이도 실시될 수 있음을 안다. Hereinafter, preferred embodiments according to the present specification will be described in detail with reference to the accompanying drawings. DETAILED DESCRIPTION The following detailed description, together with the accompanying drawings, is intended to describe exemplary embodiments of the present specification and is not intended to represent the only embodiments in which the present specification may be practiced. The following detailed description includes specific details to provide a thorough understanding of the specification. However, one of ordinary skill in the art knows that the present specification can be practiced without these specific details.
몇몇 경우, 본 명세서의 개념이 모호해지는 것을 피하기 위하여 공지의 구조 및 장치는 생략되거나, 각 구조 및 장치의 핵심기능을 중심으로 한 블록도 형식으로 도시될 수 있다. In some cases, in order to avoid obscuring the concept of the present specification, well-known structures and devices may be omitted, or block diagrams centering on core functions of each structure and device may be illustrated.
아울러, 본 명세서에서 사용되는 용어는 가능한 한 현재 널리 사용되는 일반적인 용어를 선택하였으나, 특정한 경우는 출원인이 임의로 선정한 용어를 사용하여 설명한다. 그러한 경우에는 해당 부분의 상세 설명에서 그 의미를 명확히 기재하므로, 본 명세서의 설명에서 사용된 용어의 명칭만으로 단순 해석되어서는 안 될 것이며 그 해당 용어의 의미까지 파악하여 해석되어야 함을 밝혀두고자 한다.In addition, the terms used in the present specification have been selected as general terms that are currently widely used as much as possible, but in specific cases, the terms are arbitrarily selected by the applicant. In such a case, since the meaning is clearly described in the detailed description of the relevant part, it should not be interpreted simply by the name of the term used in the description of this specification, and it is to be clarified that the meaning of the term should be understood and interpreted. .
이하의 설명에서 사용되는 특정 용어들은 본 명세서의 이해를 돕기 위해서 제공된 것이며, 이러한 특정 용어의 사용은 본 명세서의 기술적 사상을 벗어나지 않는 범위에서 다른 형태로 변경될 수 있다. 예를 들어, 신호, 데이터, 샘플, 픽처, 슬라이스, 타일, 프레임, 블록의 경우 각 코딩 과정에서 적절하게 대체되어 해석될 수 있을 것이다.Specific terms used in the following description are provided to help understanding of the present specification, and the use of these specific terms may be changed to other forms without departing from the technical spirit of the present specification. For example, signals, data, samples, pictures, slices, tiles, frames, and blocks may be interpreted by being appropriately substituted in each coding process.
이하 본 명세서에서 '처리 유닛'은 예측, 변환 및/또는 양자화 등과 같은 인코딩/디코딩의 처리 과정이 수행되는 단위를 의미한다. 또한, 처리 유닛은 휘도(luma) 성분에 대한 단위와 색차(chroma) 성분에 대한 단위를 포함하는 의미로 해석될 수 있다. 예를 들어, 처리 유닛은 블록(block), 코딩 유닛(coding unit, CU), 예측 유닛(prediction unit, PU) 또는 변환 블록(transform unit, TU)에 해당될 수 있다. Hereinafter, in the present specification, the term'processing unit' means a unit in which encoding/decoding processing processes such as prediction, transformation, and/or quantization are performed. Also, the processing unit may be interpreted as meaning including a unit for a luminance component and a unit for a chroma component. For example, the processing unit may correspond to a block, a coding unit (CU), a prediction unit (PU), or a transform unit (TU).
또한, 처리 유닛은 휘도 성분에 대한 단위 또는 색차 성분에 대한 단위로 해석될 수 있다. 예를 들어, 처리 유닛은 휘도 성분에 대한 CTB(coding tree block), CB(coding block), PU 또는 TB(transform block)에 해당될 수 있다. 또는, 처리 유닛은 색차 성분에 대한 CTB, CB, PU 또는 TB에 해당할 수 있다. 또한, 이에 한정되는 것은 아니며 처리 유닛은 휘도 성분에 대한 단위와 색차 성분에 대한 단위를 포함하는 의미로 해석될 수도 있다. Further, the processing unit may be interpreted as a unit for a luminance component or a unit for a color difference component. For example, the processing unit may correspond to a coding tree block (CTB), a coding block (CB), a PU or a transform block (TB) for the luminance component. Alternatively, the processing unit may correspond to CTB, CB, PU or TB for the color difference component. In addition, the present invention is not limited thereto, and the processing unit may be interpreted to include a unit for a luminance component and a unit for a color difference component.
또한, 처리 유닛은 반드시 정사각형의 블록으로 한정되는 것은 아니며, 3개 이상의 꼭지점을 가지는 다각형 형태로 구성될 수도 있다. In addition, the processing unit is not necessarily limited to a square block, and may be configured in a polygonal shape having three or more vertices.
또한, 이하 본 명세서에서 픽셀, 화소, 또는 계수(변환 계수 또는 1차 변환을 거친 변환 계수)는 샘플로 통칭된다. 그리고, 샘플을 이용한다는 것은 픽셀 값, 화소 값, 또는 계수(변환 계수 또는 1차 변환을 거친 변환 계수) 등을 이용한다는 것을 의미할 수 있다. In addition, in the present specification, pixels, pixels, or coefficients (transformation coefficients or transformation coefficients that have undergone first-order transformation) are hereinafter collectively referred to as samples. And, using a sample may mean using a pixel value, a pixel value, or a coefficient (a transform coefficient or a transform coefficient that has undergone first-order transformation).
도 1은 본 명세서의 실시예에 따른 비디오 코딩 시스템의 예를 도시한다.1 shows an example of a video coding system according to an embodiment of the present specification.
비디오 코딩 시스템은 소스 디바이스(10) 및 수신 디바이스(20)를 포함할 수 있다. 소스 디바이스(10)는 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스(20)로 전달할 수 있다. The video coding system can include a source device 10 and a receiving device 20. The source device 10 may transmit the encoded video/video information or data to the receiving device 20 through a digital storage medium or a network in a file or streaming form.
소스 디바이스(10)는 비디오 소스(11), 인코딩 장치(12), 송신기(13)를 포함할 수 있다. 수신 디바이스(20)는 수신기(21), 디코딩 장치(22) 및 렌더러(23)를 포함할 수 있다. 인코딩 장치(10)는 비디오/영상 인코딩 장치라고 불릴 수 있고, 디코딩 장치(20)는 비디오/영상 디코딩 장치라고 불릴 수 있다. 송신기(13)는 인코딩 장치(12)에 포함될 수 있다. 수신기(21)는 디코딩 장치(22)에 포함될 수 있다. 렌더러(23)는 디스플레이부를 포함할 수도 있고, 디스플레이부는 별개의 디바이스 또는 외부 컴포넌트로 구성될 수도 있다. The source device 10 may include a video source 11, an encoding device 12, and a transmitter 13. The receiving device 20 may include a receiver 21, a decoding device 22 and a renderer 23. The encoding device 10 may be called a video/video encoding device, and the decoding device 20 may be called a video/video decoding device. The transmitter 13 may be included in the encoding device 12. The receiver 21 may be included in the decoding device 22. The renderer 23 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 a video/image through a capture, synthesis, or generation process of the video/image. The video source may include 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, a video/image archive including previously captured video/images, and the like. The video/image generating device may include, for example, a computer, a tablet and a smartphone, and may (electronically) generate a video/image. For example, a virtual video/image may be generated through a computer or the like, and in this case, a video/image capture process may be replaced by a process of generating related data.
인코딩 장치(12)는 입력 비디오/영상을 인코딩할 수 있다. 인코딩 장치(12)는 압축 및 코딩 효율을 위하여 예측, 변환, 양자화 등 일련의 절차를 수행할 수 있다. 인코딩된 데이터(인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다.The encoding device 12 may encode an input video/image. The encoding apparatus 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency. The encoded data (encoded video/image information) may be output in the form of a bitstream.
전송부(13)는 비트스트림 형태로 출력된 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스의 수신부로 전달할 수 있다. 디지털 저장 매체는 USB(universal serial bus), SD(secure digital), CD(compact disk), DVD(digital video disk), 블루레이(bluray), HDD(hard disk drive), SSD(solid state drive)와 같은 다양한 저장 매체를 포함할 수 있다. 전송부(13)는 미리 정해진 파일 포멧을 통하여 미디어 파일을 생성하기 위한 엘레먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘레멘트를 포함할 수 있다. 수신기(21)는 비트스트림을 추출하여 디코딩 장치(22)로 전달할 수 있다.The transmitting unit 13 may transmit the encoded video/video information or data output in the form of a bitstream to a receiving unit of a receiving device through a digital storage medium or a network in a file or streaming format. Digital storage media include universal serial bus (USB), secure digital (SD), compact disk (CD), digital video disk (DVD), bluray, hard disk drive (HDD), and solid state drive (SSD). It may include various storage media. The transmission unit 13 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 21 may extract the bitstream and transmit it to the decoding device 22.
디코딩 장치(22)는 인코딩 장치(12)의 동작에 대응하는 역양자화, 역변환, 예측 등 일련의 절차를 수행하여 비디오/영상을 디코딩할 수 있다. The decoding apparatus 22 may decode a video/image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding apparatus 12.
렌더러(23)는 디코딩된 비디오/영상을 렌더링할 수 있다. 렌더링된 비디오/영상은 디스플레이부를 통하여 디스플레이될 수 있다.The renderer 23 may render the decoded video/image. The rendered video/image may be displayed through the display unit.
도 2는 본 명세서의 실시예에 따른 비디오/이미지 신호의 인코딩을 위한 인코딩 장치의 개략적인 블록도를 나타낸다. 2 shows a schematic block diagram of an encoding apparatus for encoding a video/image signal according to an embodiment of the present specification.
도 2를 참조하면, 인코딩 장치(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)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 메모리 또는 디지털 저장 매체)에 의하여 구성될 수 있고, 메모리(170)는 DPB(decoded picture buffer)(175)를 포함할 수 있다.Referring to FIG. 2, the encoding apparatus 100 includes an image segmentation unit 110, a subtraction unit 115, a conversion unit 120, a quantization unit 130, an inverse quantization unit 140, and an inverse conversion unit 150, It may include an adder 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190. The inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185. The transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit. The residual processing unit may further include a subtraction unit 115. The above-described image segmentation unit 110, subtraction unit 115, conversion unit 120, quantization unit 130, inverse quantization unit 140, inverse conversion unit 150, addition unit 155, 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 (for example, an encoder or processor) according to an embodiment. Also, the memory 170 may be configured by one hardware component (for example, a memory or digital storage medium) according to an embodiment, and the memory 170 may include a decoded picture buffer (DPB) 175. .
영상 분할부(110)는 인코딩 장치(100)에 입력된 입력 영상(또는, 픽쳐, 프레임)를 하나 이상의 처리 유닛(processing unit)으로 분할할 수 있다. 일 예로, 처리 유닛은 코딩 유닛(CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 코딩 트리 유닛(coding tree unit, CTU) 또는 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT(Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 명세서에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다. 다른 예로, 처리 유닛은 예측 유닛(PU) 또는 변환 유닛(TU)을 더 포함할 수 있다. 이 경우 예측 유닛 및 변환 유닛은 각각 상술한 최종 코딩 유닛으로부터 분할 또는 파티셔닝될 수 있다. 상기 예측 유닛은 샘플 예측의 단위일 수 있고, 상기 변환 유닛은 변환 계수를 유도하는 단위 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 단위일 수 있다. The image division unit 110 may divide the input image (or picture, frame) input to the encoding apparatus 100 into one or more processing units. As an example, the processing unit may be referred to as a coding unit (CU). In this case, 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). For example, 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. In this case, for example, a quad tree structure may be applied first, and a binary tree structure may be applied later. Alternatively, a binary tree structure may be applied first. The coding procedure according to the present specification may be performed based on the final coding unit that is no longer split. In this case, the maximum coding unit may be directly used as a final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units having a lower depth than optimal, if necessary. The coding unit of the size of can be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and reconstruction, which will be described later. As another example, the processing unit may further include a prediction unit (PU) or a transformation unit (TU). In this case, the prediction unit and transform unit may be partitioned or partitioned from the above-described final coding unit, respectively. The prediction unit may be a unit of sample prediction, and 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.
유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. 샘플은 하나의 픽처(또는 영상)을 픽셀(pixel) 또는 펠(pel)에 대응하는 용어로서 사용될 수 있다.The unit may be used interchangeably with terms such as a block or area depending on the case. In a general case, the MxN block may represent samples of M columns and N rows or a set of transform coefficients. The sample may generally represent a pixel or a pixel value, and may indicate only a pixel/pixel value of a luma component or only a pixel/pixel value of a saturation component. The sample may be used as a term for one picture (or image) corresponding to a pixel or pel.
인코딩 장치(100)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)를 감산하여 레지듀얼 신호(잔여 블록, 잔여 샘플 어레이)를 생성할 수 있고, 생성된 레지듀얼 신호는 변환부(120)로 전송된다. 이 경우 도시된 바와 같이 인코딩 장치(100) 내에서 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 예측 신호(예측 블록, 예측 샘플 어레이)를 감산하는 유닛은 감산부(115)라고 불릴 수 있다. 예측부는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 블록 또는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부는 각 예측 모드에 대한 설명에서 후술하는 바와 같이 예측 모드 정보와 같이 예측에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The encoding apparatus 100 subtracts a prediction signal (a predicted block, a 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 (remaining block, residual sample array) may be generated, and the generated residual signal is transmitted to the converter 120. In this case, as illustrated, a unit that subtracts a prediction signal (a prediction block, a prediction sample array) from an input video signal (original block, original sample array) in the encoding apparatus 100 may be referred to as a subtraction unit 115. The prediction unit may perform 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 is applied or inter prediction is applied in units of blocks or CUs. The prediction unit may generate various pieces of information about prediction, such as prediction mode information, as described later in the description of each prediction mode, and transmit them to the entropy encoding unit 190. The prediction information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
인트라 예측부(185)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는 예를 들어 DC 모드 및 플래너 모드(planar 모드)를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라 예를 들어 33개의 방향성 예측 모드 또는 65개의 방향성 예측 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 예측 모드들이 사용될 수 있다. 인트라 예측부(185)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra prediction unit 185 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 depending on a prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC mode and a planar 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, this is an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 185 may determine a prediction mode applied to the current block by using a prediction mode applied to neighboring blocks.
인터 예측부(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)을 시그널링함으로써 현재 블록의 움직임 벡터를 지시할 수 있다.The inter prediction unit 180 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. At this time, to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a 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. In the case of inter prediction, 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 by a name such as a collocated reference block or a colCU, and a reference picture including a temporal neighboring block may also be called a collocated picture (colPic). . For example, the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and generates information indicating which candidates are used to derive the motion vector and/or reference picture index of the current block. can do. Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, the inter prediction unit 180 may use motion information of neighboring blocks as motion information of the current block. In the skip mode, unlike the merge mode, the residual signal may not be transmitted. In the motion vector prediction (MVP) mode, the motion vector of the current block is obtained by using the motion vector of the neighboring block as a motion vector predictor and signaling a motion vector difference. I can order.
인터 예측부(180) 또는 인트라 예측부(185)를 통해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다. The prediction signal generated by the inter prediction unit 180 or the intra prediction unit 185 may be used to generate a reconstructed signal or may be used to generate a residual signal.
변환부(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)를 이용하여 예측 신호를 생성하고 그에 기초하여 획득되는 변환을 의미한다. 또한, 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아닌 가변 크기의 블록에도 적용될 수 있다.The transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal. For example, 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). It can contain. Here, GBT refers to a transformation obtained from this graph when it is said to graphically represent relationship information between pixels. CNT means a transform obtained by generating a prediction signal using all previously reconstructed pixels and based on it. Further, the transform process may be applied to pixel blocks having the same size of a square, or may be applied to blocks of variable sizes other than squares.
양자화부(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)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 인코딩된 정보(예: 비디오/영상 정보)는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. 엔트로피 인코딩부(190)로부터 출력된 신호는 전송하는 전송부(미도시) 및/또는 저장하는 저장부(미도시)가 인코딩 장치(100)의 내/외부 엘리먼트로서 구성될 수 있고, 또는 전송부는 엔트로피 인코딩부(190)의 구성요소일 수도 있다.The quantization unit 130 quantizes the transform coefficients and transmits them to the entropy encoding unit 190, and the entropy encoding unit 190 encodes the quantized signal (information about quantized transform coefficients) and outputs it as a bitstream. have. Information about the quantized transform coefficients may be called residual information. The quantization unit 130 may rearrange block-type quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and the quantized transform based on the one-dimensional vector form quantized transform coefficients Information about coefficients may be generated. The entropy encoding unit 190 may perform various encoding methods such as exponential Golomb (CAVLC), context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit 190 may encode information necessary for video/image reconstruction (eg, values of syntax elements, etc.) together with the quantized transform coefficients together or separately. The encoded information (eg, video/video information) may be transmitted or stored in the unit of a network abstraction layer (NAL) unit in the form of a bitstream. The bitstream can be transmitted over a network or stored on a digital storage medium. Here, the network may include a broadcasting network and/or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD. The signal output from the entropy encoding unit 190 may be configured as an internal/external element of the encoding apparatus 100 by a transmitting unit (not shown) and/or a storing unit (not shown) for storing, or the transmitting unit It may be a component of the entropy encoding unit 190.
양자화부(130)로부터 출력된 양자화된 변환 계수들은 예측 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들에 대하여 루프 내의 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호가 복원될 수 있다. 가산부(155)는 복원된 레지듀얼 신호를 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호에 더함으로써 복원(reconstructed) 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)가 생성될 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(155)는 복원부 또는 복원 블록 생성부로 지칭될 수 있다. 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The quantized transform coefficients output from the quantization unit 130 may be used to generate a prediction signal. For example, the residual signal may be reconstructed by applying inverse quantization and inverse transform through the inverse quantization unit 140 and the inverse transform unit 150 in the loop to the quantized transform coefficients. 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 the reconstructed signal (restored picture, reconstructed block, reconstructed sample array) 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 a reconstructed block. The adding unit 155 may be referred to as a restoration unit or a restoration block generation unit. The reconstructed signal may be used for intra prediction of a next processing target block in a current picture, or may be used for inter prediction of a next picture through filtering as described below.
필터링부(160)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(160)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 수정된 복원 픽처를 복호 픽처 버퍼(170)에 전송할 수 있다. 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter)를 포함할 수 있다. 필터링부(160)는 각 필터링 방법에 대한 설명에서 후술하는 바와 같이 필터링에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 필터링 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The filtering unit 160 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and may transmit the modified reconstructed picture to the decoded picture buffer 170. Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter. The filtering unit 160 may generate various pieces of information regarding filtering as described later in the description of each filtering method and transmit them to the entropy encoding unit 190. The filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
복호 픽처 버퍼(170)에 전송된 수정된 복원 픽처는 인터 예측부(180)에서 참조 픽처로 사용될 수 있다. 인코딩 장치(100)는 이를 통하여 인터 예측이 적용되는 경우, 인코딩 장치(100)와 디코딩 장치(200)에서의 예측 미스매치를 피할 수 있고, 부호화 효율도 향상시킬 수 있다. The modified reconstructed picture transmitted to the decoded picture buffer 170 may be used as a reference picture in the inter prediction unit 180. When the inter prediction is applied through the encoding apparatus 100, prediction mismatches in the encoding apparatus 100 and the decoding apparatus 200 may be avoided, and encoding efficiency may be improved.
복호 픽처 버퍼(170)는 수정된 복원 픽처를 인터 예측부(180)에서의 참조 픽처로 사용하기 위해 저장할 수 있다.The decoded picture buffer 170 may store the modified reconstructed picture for use as a reference picture in the inter prediction unit 180.
도 3은 본 명세서의 실시예로서, 영상 신호의 디코딩을 위한 디코딩 장치의 개략적인 블록도를 나타낸다. 3 is an embodiment of the present specification, and shows a schematic block diagram of a decoding apparatus for decoding a video signal.
도 3을 참조하면, 디코딩 장치(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265)를 포함하여 구성될 수 있다. 인터 예측부(260) 및 인트라 예측부(265)는 예측부로 통칭될 수 있다. 즉, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 역양자화부(220)와 역변환부(230)는 레지듀얼 처리부로 통칭될 수 있다. 즉, 레지듀얼 처리부는 역양자화부(220)와 역변환부(230)을 포함할 수 있다. 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코더 또는 프로세서)에 의하여 구성될 수 있다. 또한 복호 픽처 버퍼(250)은 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 메모리 또는 디지털 저장 매체)에 의하여 구현될 수 있다. 또한, 메모리(250)는 DPB(175)를 포함할 수 있고, 디지털 저장 매체에 의해 구성될 수도 있다.Referring to FIG. 3, the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse conversion unit 230, an addition unit 235, a filtering unit 240, a memory 250, and an inter It may be configured to include a prediction unit 260 and the intra prediction unit 265. The inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185. The inverse quantization unit 220 and the inverse conversion unit 230 may be collectively referred to as a residual processing unit. That is, the residual processing unit may include an inverse quantization unit 220 and an inverse conversion unit 230. The entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the addition unit 235, the filtering unit 240, the inter prediction unit 260, and the intra prediction unit 265, according to the embodiment It can be configured by one hardware component (eg, a decoder or processor). Also, the decoded picture buffer 250 may be implemented by one hardware component (eg, a memory or digital storage medium) according to an embodiment. Also, the memory 250 may include the DPB 175 and may be configured by a digital storage medium.
비디오/이미지 정보를 포함하는 비트스트림이 입력되면, 디코딩 장치(200)는 도 2의 인코딩 장치(100)에서 비디오/이미지 정보가 처리된 프로세스에 대응하여 영상을 복원할 수 있다. 예를 들어, 디코딩 장치(200)는 인코딩 장치(100)에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서 디코딩시 처리 유닛은, 예를 들어, 코딩 유닛일 수 있고, 코딩 유닛은 코딩 트리 유닛 또는 최대 코딩 유닛으로부터 쿼드 트리 구조 및/또는 바이너리 트리 구조에 따라 분할될 수 있다. 그리고, 디코딩 장치(200)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치를 통해 재생될 수 있다.When a bitstream including video/image information is input, the decoding apparatus 200 may restore an image in response to a process in which the video/image information is processed by the encoding apparatus 100 of FIG. 2. For example, the decoding apparatus 200 may perform decoding using a processing unit applied by the encoding apparatus 100. Thus, in decoding, the processing unit may be, for example, a coding unit, and the coding unit may be divided according to a quad tree structure and/or a binary tree structure from a coding tree unit or a largest coding unit. Then, the decoded video signal decoded and output through the decoding apparatus 200 may be reproduced through the reproduction apparatus.
디코딩 장치(200)는 도 2의 인코딩 장치(100)로부터 출력된 신호를 비트스트림 형태로 수신할 수 있고, 수신된 신호는 엔트로피 디코딩부(210)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(210)는 비트스트림을 파싱하여 영상 복원(또는 픽처 복원)에 필요한 정보(예: 비디오/영상 정보)를 도출할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 영상 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈(bin)을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다. 엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(260) 및 인트라 예측부(265))로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 역양자화부(220)로 입력될 수 있다. 또한, 엔트로피 디코딩부(210)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(240)로 제공될 수 있다. 한편, 인코딩 장치(100)로부터 출력된 신호를 수신하는 수신부(미도시)가 디코딩 장치(200)의 내/외부 엘리먼트로서 더 구성될 수 있고, 또는 수신부는 엔트로피 디코딩부(210)의 구성요소일 수도 있다. The decoding apparatus 200 may receive the signal output from the encoding apparatus 100 of FIG. 2 in the form of a bitstream, and the received signal may be decoded through the entropy decoding unit 210. For example, the entropy decoding unit 210 may parse the bitstream to derive information (eg, video/image information) necessary for image reconstruction (or picture reconstruction). For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and quantizes a value of a syntax element necessary for image reconstruction and a transform coefficient for residual. Can output More specifically, the CABAC entropy decoding method receives bins corresponding to each syntax element in a bitstream, and decodes syntax information of the target syntax element and surrounding and decoded blocks, or the symbol/bin decoded in the previous step. The context model is determined using the information of, and the probability of occurrence of the bin is predicted according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element. have. At this time, the CABAC entropy decoding method may update the context model using the decoded symbol/bin information for the next symbol/bin context model after determining the context model. Among the information decoded by the entropy decoding unit 210, information regarding prediction is provided to a prediction unit (inter prediction unit 260 and intra prediction unit 265), and the entropy decoding unit 210 performs entropy decoding. The dual value, that is, quantized transform coefficients and related parameter information, may be input to the inverse quantization unit 220. Also, information related to filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240. Meanwhile, a receiving unit (not shown) receiving a signal output from the encoding apparatus 100 may be further configured as an internal/external element of the decoding apparatus 200, or the receiving unit may be a component of the entropy decoding unit 210. It might be.
역양자화부(220)에서는 양자화된 변환 계수들을 역양자화함으로써 변환 계수들을 출력할 수 있다. 역양자화부(220)는 양자화된 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 이 경우 인코딩 장치(100)에서 수행된 계수 스캔 순서에 기반하여 재정렬이 수행될 수 있다. 역양자화부(220)는 양자화 파라미터(예를 들어, 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수(transform coefficient)를 획득할 수 있다. The inverse quantization unit 220 may output transform coefficients by inverse quantizing the quantized transform coefficients. The inverse quantization unit 220 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, reordering may be performed based on the coefficient scan order performed by the encoding apparatus 100. The inverse quantization unit 220 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (for example, quantization step size information), and obtain a transform coefficient.
역변환부(230)는 변환 계수에 대한 역변환을 적용함으로써 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 출력할 수 있다. The inverse transform unit 230 may output a residual signal (residual block, residual sample array) by applying an inverse transform to the transform coefficient.
예측부는 현재 블록에 대한 예측을 수행하고, 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 엔트로피 디코딩부(210)로부터 출력된 예측에 관한 정보에 기반하여 현재 블록에 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있고, 구체적인 인트라/인터 예측 모드를 결정할 수 있다. 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 information about prediction output from the entropy decoding unit 210, and may determine a specific intra/inter prediction mode.
인트라 예측부(265)는 현재 픽처 내의 샘플들을 참조함으로써 현재 블록을 예측할 수 있다. 참조되는 샘플들은 예측 모드에 따라 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 이격되어 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 인트라 예측부(265)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra prediction unit 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 spaced apart according to the prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 265 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
인터 예측부(260)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록, 또는 샘플 단위로 예측할 수 있다. 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등)에 대한 정보를 더 포함할 수 있다. 인터 예측의 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(260)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신된 후보 선택 정보를 기반으로 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예측에 관한 정보는 현재 블록에 대한 인터 예측의 모드를 지시하는 정보를 포함할 수 있다. The inter prediction unit 260 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted on a block, subblock, or sample basis based on the correlation of motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture. For example, the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or 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 information on prediction may include information indicating a mode of inter prediction for a current block.
가산부(235)는 획득된 레지듀얼 신호를 인터 예측부(260) 또는 인트라 예측부(265)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다.The adding unit 235 adds the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the inter prediction unit 260 or the intra prediction unit 265, thereby restoring a signal (restored picture, reconstructed block). , A reconstructed 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 a reconstructed block.
가산부(235)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The adding unit 235 may be called a restoration unit or a restoration block generation unit. The generated reconstructed signal may be used for intra prediction of a next processing target block in a current picture, or may be used for inter prediction of a next picture through filtering as described below.
필터링부(240)는 복원 신호에 필터링을 적용함으로써 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(240)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 수정된 복원 픽처를 복호 픽처 버퍼(250)에 전송할 수 있다. 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset, SAO), 적응적 루프 필터(adaptive loop filter, ALF), 양방향 필터(bilateral filter) 등을 포함할 수 있다. The filtering unit 240 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and may transmit the modified reconstructed picture to the decoded picture buffer 250. Various filtering methods may include, for example, deblocking filtering, sample adaptive offset (SAO), adaptive loop filter (ALF), bilateral filter, and the like.
복호 픽쳐 버퍼(250)에 전송된 수정된 복원 픽처는 인터 예측부(260)에 의해 참조 픽쳐로 사용될 수 있다.The corrected reconstructed picture transmitted to the decoded picture buffer 250 may be used as a reference picture by the inter prediction unit 260.
본 명세서에서, 인코딩 장치(100)의 필터링부(160), 인터 예측부(180) 및 인트라 예측부(185)에서 설명된 실시예들은 각각 디코딩 장치의 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)에도 동일 또는 대응되도록 적용될 수 있다.In the present specification, the embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding device 100 are respectively the filtering unit 240 and the inter prediction unit 260 of the decoding device. ) And the intra prediction unit 265 may be applied to the same or corresponding.
도 4는 본 명세서의 실시예에 따른 컨텐츠 스트리밍 시스템의 구조도의 예를 도시한다. 4 shows an example of a structural diagram of a content streaming system according to an embodiment of the present specification.
본 명세서가 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버(410), 스트리밍 서버(420), 웹 서버(430), 미디어 저장소(440), 사용자 장치(450) 및 멀티미디어 입력 장치(460)를 포함할 수 있다.The content streaming system to which the present specification is applied may largely include an encoding server 410, a streaming server 420, a web server 430, a media storage 440, a user device 450, and a multimedia input device 460. have.
인코딩 서버(410)는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 스트리밍 서버(420)로 전송할 수 있다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치(460)들이 비트스트림을 직접 생성하는 경우, 인코딩 서버(410)는 생략될 수 있다.The encoding server 410 may compress the content input from multimedia input devices such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmit it to the streaming server 420. As another example, when multimedia input devices 460 such as a smartphone, camera, and camcorder directly generate a bitstream, the encoding server 410 may be omitted.
비트스트림은 본 명세서가 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 스트리밍 서버(420)는 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 비트스트림을 저장할 수 있다.The bitstream may be generated by an encoding method or a bitstream generation method to which the present specification is applied, and the streaming server 420 may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
스트리밍 서버(420)는 웹 서버(430)를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치(450)에 전송하고, 웹 서버(430)는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 웹 서버(430)에 원하는 서비스를 요청하면, 웹 서버(430)는 이를 스트리밍 서버(420)에 전달하고, 스트리밍 서버(420)는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 제어 서버는 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.The streaming server 420 transmits multimedia data to the user device 450 based on a user request through the web server 430, and the web server 430 serves as an intermediary to inform the user of the service. When a user requests a desired service from the web server 430, the web server 430 delivers it to the streaming server 420, and the streaming server 420 transmits multimedia data to the user. At this time, the content streaming system may include a separate control server, in which case the control server serves to control commands/responses between devices in the content streaming system.
스트리밍 서버(420)는 미디어 저장소(440) 및/또는 인코딩 서버(410)로부터 컨텐츠를 수신할 수 있다. 예를 들어, 스트리밍 서버(420)는 인코딩 서버(410)로부터 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 스트리밍 서버(420)는 비트스트림을 일정 시간동안 저장할 수 있다. Streaming server 420 may receive content from media storage 440 and/or encoding server 410. For example, the streaming server 420 may receive content in real time from the encoding server 410. In this case, in order to provide a smooth streaming service, the streaming server 420 may store the bitstream for a predetermined time.
예를 들어, 사용자 장치(450)는, 휴대폰, 스마트 폰(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, 데스크탑 컴퓨터, 디지털 사이니지를 포함할 수 있다.For example, the user device 450 includes a mobile phone, a smart phone, a laptop computer, a terminal for digital broadcasting, a personal digital assistants (PDA), a portable multimedia player (PMP), navigation, a slate PC ( slate PC), tablet PC (tablet PC), ultrabook (ultrabook), wearable device (wearable device, for example, a smart watch (smartwatch), glass type (smart glass), HMD (head mounted display), digital TVs, desktop computers, and digital signage.
컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.Each server in the content streaming system can be operated as a distributed server, and in this case, data received from each server can be distributed.
도 5는 본 명세서의 실시예에 따른 비디오 신호를 처리하기 위한 장치의 블록도의 예를 도시한다. 도 5의 비디오 신호 처리 장치는 도 2의 인코딩 장치(100) 또는 도 3의 디코딩 장치(200)에 해당할 수 있다.5 shows an example of a block diagram of an apparatus for processing a video signal according to an embodiment of the present specification. The video signal processing apparatus of FIG. 5 may correspond to the encoding apparatus 100 of FIG. 2 or the decoding apparatus 200 of FIG. 3.
본 명세서의 실시예에 따른 비디오 신호 처리 장치(500)는, 비디오 신호를 저장하는 메모리(520)와, 상기 메모리와 결합되면서 비디오 신호를 처리하는 프로세서(510)를 포함할 수 있다.The video signal processing apparatus 500 according to the embodiment of the present specification may include a memory 520 for storing a video signal, and a processor 510 for processing a video signal while being combined with the memory.
본 명세서의 실시예에 따른 프로세서(510)는 비디오 신호의 처리를 위한 적어도 하나의 프로세싱 회로로 구성될 수 있으며, 비디오 신호를 인코딩 또는 디코딩을 위한 명령어들을 실행함으로써 영상 신호를 처리할 수 있다. 즉, 프로세서(510)는 이하 설명되는 인코딩 또는 디코딩 방법들을 실행함으로써 원본 비디오 신호를 인코딩하거나 인코딩된 비디오 신호를 디코딩할 수 있다.The processor 510 according to an embodiment of the present disclosure may be configured with at least one processing circuit for processing a video signal, and may process a video signal by executing instructions for encoding or decoding the video signal. That is, the processor 510 may encode the original video signal or decode the encoded video signal by executing the encoding or decoding methods described below.
도 6은 본 명세서의 실시예에 따른 블록 분할 구조의 예로서, 도 6a는 QT(quad tree, 이하 'QT'로 지칭됨), 도 3b는 BT(binary tree, 이하 'BT'로 지칭됨), 도 3c는 TT(ternary tree, 이하 'TT'로 지칭됨) 도 3d는 AT(asymmetric tree, 이하 'TT'로 지칭됨)에 의한 블록 분할 구조들의 예를 도시한다.6 is an example of a block division structure according to an embodiment of the present disclosure, FIG. 6A is a QT (quad tree, hereinafter referred to as'QT'), and FIG. 3B is a BT (binary tree, hereinafter referred to as'BT') , FIG. 3C shows an example of block division structures by an TT (ternary tree, hereinafter referred to as'TT') and FIG. 3D, an AT (asymmetric tree, hereinafter referred to as'TT').
비디오 코딩에서 하나의 블록은 QT 기반으로 분할될 수 있다. 또한, QT에 의해서 분할된 하나의 서브 블록(sub block)은 QT를 사용하여 재귀적으로 더 분할될 수 있다. 더 이상 QT 분할되지 않는 리프 블록(leaf block)은 BT, TT또는 AT 중 적어도 하나의 방식에 의해서 분할될 수 있다. BT는 horizontal BT (2NxN, 2NxN)과 vertical BT (Nx2N, Nx2N)의 두 가지 형태의 분할을 가질 수 있다. TT는 horizontal TT (2Nx1/2N, 2NxN, 2Nx1/2N)와 vertical TT (1/2Nx2N, Nx2N, 1/2Nx2N)의 두 가지 형태의 분할을 가질 수 있다. AT는 horizontal-up AT (2Nx1/2N, 2Nx3/2N), horizontal-down AT (2Nx3/2N, 2Nx1/2N), vertical-left AT (1/2Nx2N, 3/2Nx2N), vertical-right AT (3/2Nx2N, 1/2Nx2N)의 네 가지 형태의 분할을 가질 수 있다. 각각의 BT, TT, AT는 BT, TT, AT를 사용하여 재귀적으로 더 분할될 수 있다.In video coding, one block can be divided based on QT. Also, one sub-block divided by QT may be further divided recursively using QT. A leaf block that is no longer QT split may be split by at least one of BT, TT, or AT. BT may have two types of splitting: horizontal BT (2NxN, 2NxN) and vertical BT (Nx2N, Nx2N). The TT may have two types of splitting: horizontal TT (2Nx1/2N, 2NxN, 2Nx1/2N) and vertical TT (1/2Nx2N, Nx2N, 1/2Nx2N). AT is horizontal-up AT (2Nx1/2N, 2Nx3/2N), horizontal-down AT (2Nx3/2N, 2Nx1/2N), vertical-left AT (1/2Nx2N, 3/2Nx2N), vertical-right AT (3 /2Nx2N, 1/2Nx2N). Each BT, TT, AT can be further divided recursively using BT, TT, AT.
도 6a는 QT 분할의 예를 보여준다. 블록 A는 QT에 의해서 4개의 서브 블록 (A0, A1, A2, A3)으로 분할될 수 있다. 서브 블록 A1은 다시 QT에 의해서 4개의 서브 블록 (B0, B1, B2, B3)로 분할될 수 있다.6A shows an example of QT segmentation. Block A can be divided into four sub-blocks (A0, A1, A2, A3) by QT. Sub-block A1 may be divided into four sub-blocks (B0, B1, B2, and B3) again by QT.
도 6b는 BT 분할의 예를 보여준다. QT에 의해서 더 이상 분할되지 않는 블록 B3은 vertical BT (C0, C1) 또는 horizontal BT (D0, D1)으로 분할될 수 있다. 블록 C0와 같이 각각의 서브 블록은 horizontal BT (E0, E1) 또는 vertical BT (F0, F1)의 형태와 같이 재귀적으로 더 분할될 수 있다.6B shows an example of BT segmentation. Block B3, which is no longer divided by QT, may be divided into vertical BT (C0, C1) or horizontal BT (D0, D1). As in the block C0, each sub-block may be further recursively divided in the form of horizontal BT (E0, E1) or vertical BT (F0, F1).
도 6c는 TT 분할의 예를 보여준다. QT에 의해서 더 이상 분할되지 않는 블록 B3은 vertical TT (C0, C1, C2) 또는 horizontal TT (D0, D1, D2)으로 분할될 수 있다. 블록 C1와 같이 각각의 서브 블록은 horizontal TT (E0, E1, E2) 또는 vertical TT (F0, F1, F2)의 형태와 같이 재귀적으로 더 분할될 수 있다.6C shows an example of TT segmentation. Block B3, which is no longer divided by QT, may be divided into vertical TT (C0, C1, C2) or horizontal TT (D0, D1, D2). As in block C1, each sub-block may be further recursively divided in the form of horizontal TT (E0, E1, E2) or vertical TT (F0, F1, F2).
도 6d는 AT 분할의 예를 보여준다. QT에 의해서 더 이상 분할되지 않는 블록 B3은 vertical AT (C0, C1) 또는 horizontal AT (D0, D1)으로 분할 될 수 있다. 블록 C1와 같이 각각의 서브 블록은 horizontal AT (E0, E1) 또는 vertical TT (F0, F1)의 형태와 같이 재귀적으로 더 분할 될 수 있다.6D shows an example of AT partitioning. Block B3, which is no longer divided by QT, may be divided into vertical AT (C0, C1) or horizontal AT (D0, D1). As in block C1, each sub-block may be further recursively divided in the form of horizontal AT (E0, E1) or vertical TT (F0, F1).
한편, BT, TT, AT 분할은 결합될 수 있다. 예를 들어, BT에 의해 분할된 서브 블록은 TT 또는 AT에 의한 분할이 가능하다. 또한, TT에 의해 분할된 서브 블록은 BT 또는 AT에 의한 분할이 가능하다. AT에 의해 분할된 서브 블록은 BT 또는 TT에 의한 분할이 가능하다. 예를 들어, horizontal BT 분할 이후, 각각의 서브 블록이 vertical BT로 분할될 수 있고, 또는 vertical BT 분할 이후, 각각의 서브 블록이 horizontal BT로 분할될 수도 있다. 상기 두 종류의 분할 방법은 분할 순서는 다르지만 최종적으로 분할되는 모양은 동일하다. On the other hand, BT, TT, AT partitioning can be combined. For example, a sub-block divided by BT can be divided by TT or AT. In addition, the sub-block divided by TT can be divided by BT or AT. The sub-block divided by AT can be divided by BT or TT. For example, after horizontal BT division, each sub-block may be divided into vertical BT, or after vertical BT division, each sub-block may be divided into horizontal BT. The two types of division methods have different division order, but the shape of the final division is the same.
또한, 블록이 분할되면 블록을 탐색하는 순서가 다양하게 정의될 수 있다. 일반적으로, 좌측에서 우측으로, 상단에서 하단으로 탐색을 수행하며, 블록을 탐색한다는 것은 각 분할된 서브 블록의 추가적인 블록 분할 여부를 결정하는 순서를 의미하거나, 블록이 더 이상 분할되지 않을 경우 각 서브 블록의 부호화 순서를 의미하거나, 또는 서브 블록에서 다른 이웃 블록의 정보를 참조할 때의 탐색 순서를 의미할 수 있다.In addition, when a block is divided, the order in which blocks are searched can be variously defined. In general, a search is performed from left to right, from top to bottom, and searching for blocks means an order of determining whether to divide additional blocks of each divided sub-block, or when a block is no longer divided, each sub It may mean a coding order of blocks, or a search order when sub-blocks refer to information of other neighboring blocks.
도 7 및 도 8은 인터 예측에 기반한 비디오/영상 인코딩 절차 및 인코딩 장치 내 인터 예측부를 도시한다.7 and 8 illustrate a video/video encoding procedure based on inter prediction and an inter prediction unit in an encoding device.
인코딩 장치(100)는 현재 블록에 대한 인터 예측을 수행한다(S710). 인코딩 장치(100)는 현재 블록의 인터 예측 모드 및 움직임 정보를 도출하고, 현재 블록의 예측 샘플들을 생성할 수 있다. 여기서 인터 예측 모드 결정, 움직임 정보 도출 및 예측 샘플들 생성 절차는 동시에 수행될 수도 있고, 어느 한 절차가 다른 절차보다 먼저 수행될 수도 있다. 예를 들어, 인코딩 장치(100)의 인터 예측부(180)는 예측 모드 결정부(181), 움직임 정보 도출부(182), 예측 샘플 도출부(183)를 포함할 수 있으며, 예측 모드 결정부(181)에서 현재 블록에 대한 예측 모드를 결정하고, 움직임 정보 도출부(182)에서 현재 블록의 움직임 정보를 도출하고, 예측 샘플 도출부(183)에서 현재 블록의 예측 샘플들을 도출할 수 있다. 예를 들어, 인코딩 장치(100)의 인터 예측부(180)는 움직임 추정(motion estimation)을 통하여 참조 픽처들의 일정 영역(서치 영역) 내에서 상기 현재 블록과 유사한 블록을 서치하고, 현재 블록과의 차이가 최소 또는 일정 기준 이하인 참조 블록을 도출할 수 있다. 이를 기반으로 상기 참조 블록이 위치하는 참조 픽처를 가리키는 참조 픽처 인덱스를 도출하고, 참조 블록과 현재 블록의 위치 차이를 기반으로 움직임 벡터를 도출할 수 있다. 인코딩 장치(100)는 다양한 예측 모드들 중 현재 블록에 대하여 적용되는 모드를 결정할 수 있다. 인코딩 장치(100)는 다양한 예측 모드들에 대한 RD 비용(cost)을 비교하고 현재 블록에 대한 최적의 예측 모드를 결정할 수 있다. The encoding apparatus 100 performs inter prediction on the current block (S710). The encoding apparatus 100 may derive the inter prediction mode and motion information of the current block, and generate prediction samples of the current block. Here, the procedure for determining the inter prediction mode, deriving motion information, and generating prediction samples may be performed simultaneously, or one procedure may be performed before the other procedure. For example, the inter prediction unit 180 of the encoding apparatus 100 may include a prediction mode determination unit 181, a motion information derivation unit 182, and a prediction sample derivation unit 183, and the prediction mode determination unit The prediction mode for the current block may be determined at 181, motion information of the current block may be derived from the motion information derivation unit 182, and prediction samples of the current block may be derived from the prediction sample derivation unit 183. For example, the inter prediction unit 180 of the encoding apparatus 100 searches a block similar to the current block in a certain area (search area) of reference pictures through motion estimation, and It is possible to derive a reference block with a difference of less than or equal to a certain standard. Based on this, a reference picture index indicating a reference picture in which the reference block is located may be derived, and a motion vector may be derived based on a position difference between the reference block and the current block. The encoding apparatus 100 may determine a mode applied to a current block among various prediction modes. The encoding apparatus 100 may compare the RD cost for various prediction modes and determine the optimal prediction mode for the current block.
예를 들어, 인코딩 장치(100)는 현재 블록에 스킵 모드 또는 머지 모드가 적용되는 경우, 후술하는 머지 후보 리스트를 구성하고, 머지 후보 리스트에 포함된 머지 후보들이 가리키는 참조 블록들 중 현재 블록과 중 현재 블록과의 차이가 최소 또는 일정 기준 이하인 참조 블록을 도출할 수 있다. 이 경우 도출된 참조 블록과 연관된 머지 후보가 선택되며, 선택된 머지 후보를 가리키는 머지 인덱스 정보가 생성되어 디코딩 장치(200)로 시그널링될 수 있다. 선택된 머지 후보의 움직임 정보를 이용하여 현재 블록의 움직임 정보가 도출될 수 있다. For example, when the skip mode or the merge mode is applied to the current block, the encoding apparatus 100 configures a merge candidate list, which will be described later, and the current block among the reference blocks indicated by the merge candidates included in the merge candidate list. A reference block in which the difference from the current block is less than or equal to a certain criterion can be derived. In this case, a merge candidate associated with the derived reference block is selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding apparatus 200. Motion information of the current block may be derived using the motion information of the selected merge candidate.
다른 예로, 인코딩 장치(100)는 현재 블록에 (A)MVP 모드가 적용되는 경우, 후술하는 (A)MVP 후보 리스트를 구성하고, (A)MVP 후보 리스트에 포함된 MVP(motion vector predictor) 후보들 중 선택된 MVP 후보의 움직임 벡터를 현재 블록의 MVP로 이용할 수 있다. 이 경우, 예를 들어, 상술한 움직임 추정에 의하여 도출된 참조 블록을 가리키는 움직임 벡터가 현재 블록의 움직임 벡터로 이용될 수 있으며, MVP 후보들 중 현재 블록의 움직임 벡터와의 차이가 가장 작은 움직임 벡터를 갖는 MVP 후보가 선택된 MVP 후보가 될 있다. 현재 블록의 움직임 벡터에서 MVP를 뺀 차분인 MVD(motion vector difference)가 도출될 수 있다. 이 경우 MVD에 관한 정보가 디코딩 장치(200)로 시그널링될 수 있다. 또한, (A)MVP 모드가 적용되는 경우, 참조 픽처 인덱스의 값은 참조 픽처 인덱스 정보 구성되어 별도로 디코딩 장치(200)로 시그널링될 수 있다. As another example, when the (A)MVP mode is applied to the current block, the encoding apparatus 100 configures the (A)MVP candidate list, which will be described later, and (A) the motion vector predictor (MVP) candidates included in the MVP candidate list. The motion vector of the selected MVP candidate can be used as the MVP of the current block. In this case, for example, a motion vector indicating a reference block derived by the above-described motion estimation may be used as a motion vector of the current block, and among the MVP candidates, a motion vector having the smallest difference from the motion vector of the current block may be used. The MVP candidate to have may be the selected MVP candidate. A motion vector difference (MVD), which is a difference obtained by subtracting MVP from the motion vector of the current block, may be derived. In this case, information about the MVD may be signaled to the decoding device 200. In addition, when the (A)MVP mode is applied, the value of the reference picture index may be configured and reference signal index information may be separately signaled to the decoding apparatus 200.
인코딩 장치(100)는 예측 샘플들을 기반으로 레지듀얼 샘플들을 도출할 수 있다(S720). 인코딩 장치(100)는 현재 블록의 원본 샘플들과 예측 샘플들의 비교를 통하여 레지듀얼 샘플들을 도출할 수 있다.The encoding apparatus 100 may derive residual samples based on the predicted samples (S720 ). The encoding apparatus 100 may derive residual samples through comparison of original samples and prediction samples of the current block.
인코딩 장치(100)는 예측 정보 및 레지듀얼 정보를 포함하는 영상 정보를 인코딩한다(S730). 인코딩 장치(100)는 인코딩된 영상 정보를 비트스트림 형태로 출력할 수 있다. 예측 정보는 예측 절차에 관련된 정보들로서 예측 모드 정보(예: skip flag, merge flag, 또는 mode index) 및 움직임 정보를 포함할 수 있다. 움직임 정보는 움직임 벡터를 도출하기 위한 정보인 후보 선택 정보(예: merge index, mvp flag, 또는 mvp index)를 포함할 수 있다. 또한 움직임 정보는 상술한 MVD에 관한 정보 및/또는 참조 픽처 인덱스 정보를 포함할 수 있다. 또한 움직임 정보는 L0 예측, L1 예측, 또는 쌍(bi) 예측이 적용되는지 여부를 나타내는 정보를 포함할 수 있다. 레지듀얼 정보는 레지듀얼 샘플들에 관한 정보이다. 레지듀얼 정보는 레지듀얼 샘플들에 대한 양자화된 변환 계수들에 관한 정보를 포함할 수 있다. The encoding apparatus 100 encodes video information including prediction information and residual information (S730). The encoding apparatus 100 may output encoded image information in the form of a bitstream. The prediction information is information related to a prediction procedure and may include prediction mode information (eg, skip flag, merge flag, or mode index) and motion information. The motion information may include candidate selection information (eg, merge index, mvp flag, or mvp index) that is information for deriving a motion vector. In addition, the motion information may include information on the MVD and/or reference picture index information. Also, the motion information may include information indicating whether L0 prediction, L1 prediction, or bi prediction is applied. The residual information is information about residual samples. The residual information may include information about quantized transform coefficients for residual samples.
출력된 비트스트림은 (디지털) 저장매체에 저장되어 디코딩 장치로 전달될 수 있고, 또는 네트워크를 통하여 디코딩 장치로 전달될 수도 있다. The output bitstream may be stored in a (digital) storage medium and transmitted to a decoding device, or may be delivered to a decoding device through a network.
한편, 상술한 바와 같이 인코딩 장치는 상기 참조 샘플들 및 상기 레지듀얼 샘플들을 기반으로 복원 픽처(복원 샘플들 및 복원 블록 포함)를 생성할 수 있다. 이는 디코딩 장치(200)에서 수행되는 것과 동일한 예측 결과를 인코딩 장치(100)에서 도출하기 위함이며, 이를 통하여 코딩 효율을 높일 수 있기 때문이다. 따라서, 인코딩 장치(100)는 복원 픽처(또는 복원 샘플들, 복원 블록)을 메모리에 저장하고, 인터 예측을 위한 참조 픽처로 활용할 수 있다. 복원 픽처에 인루프 필터링 절차 등이 더 적용될 수 있음은 상술한 바와 같다.On the other hand, as described above, the encoding apparatus may generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is because the encoding apparatus 100 derives the same prediction results as those performed by the decoding apparatus 200, and thus, it is possible to increase coding efficiency. Accordingly, the encoding apparatus 100 may store a reconstructed picture (or reconstructed samples, reconstructed block) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure may be further applied to the reconstructed picture.
도 9 및 도 10은 인터 예측에 기반한 비디오/영상 디코딩 절차 및 디코딩 장치 내 인터 예측부를 도시한다.9 and 10 illustrate a video/video decoding procedure based on inter prediction and an inter prediction unit in a decoding device.
디코딩 장치(200)는 인코딩 장치(100)에서 수행된 동작과 대응되는 동작을 수행할 수 있다. 디코딩 장치(200)는 수신된 예측 정보를 기반으로 현재 블록에 예측을 수행하고 예측 샘플들을 도출할 수 있다. The decoding apparatus 200 may perform an operation corresponding to an operation performed by the encoding apparatus 100. The decoding apparatus 200 may perform prediction on the current block and derive prediction samples based on the received prediction information.
구체적으로 디코딩 장치(200)는 수신된 예측 정보를 기반으로 현재 블록에 대한 예측 모드를 결정할 수 있다(S910). 디코딩 장치(200)는 예측 정보 내의 예측 모드 정보를 기반으로 현재 블록에 어떤 인터 예측 모드가 적용되는지 결정할 수 있다. Specifically, the decoding apparatus 200 may determine a prediction mode for the current block based on the received prediction information (S910). The decoding apparatus 200 may determine which inter prediction mode is applied to the current block based on the prediction mode information in the prediction information.
예를 들어, 디코딩 장치(200)는 머지 플래그(merge flag)를 기반으로 현재 블록에 머지 모드가 적용되지 또는 (A)MVP 모드가 결정되는지 여부를 결정할 수 있다. 또는 디코딩 장치(200)는 모드 인덱스(mode index)를 기반으로 다양한 인터 예측 모드 후보들 중 하나를 선택할 수 있다. 인터 예측 모드 후보들은 스킵 모드, 머지 모드 및/또는 (A)MVP 모드를 포함할 수 있고, 또는 후술하는 다양한 인터 예측 모드들을 포함할 수 있다. For example, the decoding apparatus 200 may determine whether a merge mode is applied to the current block or (A)MVP mode is determined based on a merge flag. Alternatively, the decoding apparatus 200 may select one of various inter prediction mode candidates based on the mode index. The inter prediction mode candidates may include skip mode, merge mode and/or (A) MVP mode, or various inter prediction modes described below.
디코딩 장치(200)는 결정된 인터 예측 모드를 기반으로 현재 블록의 움직임 정보를 도출한다(S920). 예를 들어, 디코딩 장치(200)는 현재 블록에 스킵 모드 또는 머지 모드가 적용되는 경우, 후술하는 머지 후보 리스트를 구성하고, 머지 후보 리스트에 포함된 머지 후보들이 중 하나의 머지 후보를 선택할 수 있다. 머지 후보의 선택은 머지 인덱스(merge index)를 기반으로 수행될 수 있다. 선택된 머지 후보의 움직임 정보로부터 현재 블록의 움직임 정보가 도출할 수 있다. 선택된 머지 후보의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. The decoding apparatus 200 derives motion information of the current block based on the determined inter prediction mode (S920). For example, when the skip mode or the merge mode is applied to the current block, the decoding apparatus 200 may configure a merge candidate list, which will be described later, and select one of the merge candidates included in the merge candidate list. . The selection of the merge candidate may be performed based on a merge index. Motion information of a current block may be derived from motion information of a selected merge candidate. Motion information of the selected merge candidate may be used as motion information of the current block.
다른 예로, 디코딩 장치(200)는, 현재 블록에 (A)MVP 모드가 적용되는 경우, 후술하는 (A)MVP 후보 리스트를 구성하고, (A)MVP 후보 리스트에 포함된 MVP 후보들 중 선택된 MVP 후보의 움직임 벡터를 현재 블록의 MVP로 이용할 수 있다. MVP의 선택은 상술한 선택 정보(MVP 플래그 또는 MVP 인덱스)를 기반으로 수행될 수 있다. 이 경우 디코딩 장치(200)는 MVD에 관한 정보를 기반으로 상기 현재 블록의 MVD를 도출할 수 있으며, 현재 블록의 MVP와 MVD를 기반으로 현재 블록의 움직임 벡터를 도출할 수 있다. 또한, 디코딩 장치(200)는 참조 픽처 인덱스 정보를 기반으로 현재 블록의 참조 픽처 인덱스를 도출할 수 있다. 현재 블록에 관한 참조 픽처 리스트 내에서 참조 픽처 인덱스가 가리키는 픽처가 현재 블록의 인터 예측을 위하여 참조되는 참조 픽처로 도출될 수 있다. As another example, when the (A)MVP mode is applied to the current block, the decoding apparatus 200 configures (A)MVP candidate list to be described later, and (A) an MVP candidate selected from among MVP candidates included in the MVP candidate list The motion vector of can be used as the MVP of the current block. The selection of the MVP may be performed based on the selection information (MVP flag or MVP index) described above. In this case, the decoding apparatus 200 may derive the MVD of the current block based on information about the MVD, and may derive a motion vector of the current block based on the MVP and MVD of the current block. Also, the decoding apparatus 200 may derive the reference picture index of the current block based on the reference picture index information. The picture indicated by the reference picture index in the reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.
한편, 후술하는 바와 같이 후보 리스트 구성 없이 상기 현재 블록의 움직임 정보가 도출될 수 있으며, 이 경우 후술하는 예측 모드에서 개시된 절차에 따라 현재 블록의 움직임 정보가 도출될 수 있다. 이 경우 상술한 바와 같은 후보 리스트 구성은 생략될 수 있다.Meanwhile, as described later, motion information of the current block may be derived without configuring a candidate list, and in this case, motion information of the current block may be derived according to a procedure disclosed in the prediction mode described below. In this case, the candidate list configuration as described above may be omitted.
디코딩 장치(200)는 현재 블록의 움직임 정보를 기반으로 현재 블록에 대한 예측 샘플들을 생성할 수 있다(S930). 이 경우 디코딩 장치(200)는 현재 블록의 참조 픽처 인덱스를 기반으로 참조 픽처를 도출하고, 현재 블록의 움직임 벡터가 참조 픽처 상에서 가리키는 참조 블록의 샘플들을 이용하여 현재 블록의 예측 샘플들을 도출할 수 있다. 이 경우 후술하는 바와 같이 경우에 따라 현재 블록의 예측 샘플들 중 전부 또는 일부에 대한 예측 샘플 필터링 절차가 더 수행될 수 있다. The decoding apparatus 200 may generate prediction samples for the current block based on the motion information of the current block (S930). In this case, the decoding apparatus 200 may derive a reference picture based on the reference picture index of the current block, and derive predictive samples of the current block using samples of the reference block indicated by the motion vector of the current block on the reference picture. . In this case, as described later, a prediction sample filtering procedure for all or part of the prediction samples of the current block may be further performed depending on the case.
예를 들어, 디코딩 장치(200)의 인터 예측부(260)는 예측 모드 결정부(261), 움직임 정보 도출부(262), 예측 샘플 도출부(263)를 포함할 수 있으며, 예측 모드 결정부(181)에서 수신된 예측 모드 정보를 기반으로 상기 현재 블록에 대한 예측 모드를 결정하고, 움직임 정보 도출부(182)에서 수신된 움직임 정보에 관한 정보를 기반으로 상기 현재 블록의 움직임 정보(움직임 벡터 및/또는 참조 픽처 인덱스 등)를 도출하고, 예측 샘플 도출부(183)에서 상기 현재 블록의 예측 샘플들을 도출할 수 있다.For example, the inter prediction unit 260 of the decoding apparatus 200 may include a prediction mode determination unit 261, a motion information derivation unit 262, and a prediction sample derivation unit 263, and the prediction mode determination unit The prediction mode for the current block is determined based on the prediction mode information received at (181), and the motion information (motion vector) of the current block is based on the motion information received from the motion information derivation unit 182. And/or a reference picture index), and predicted samples of the current block may be derived from the predicted sample deriving unit 183.
디코딩 장치(200)는 수신된 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 레지듀얼 샘플들을 생성한다(S940). 디코딩 장치(200)는 예측 샘플들 및 레지듀얼 샘플들을 기반으로 현재 블록에 대한 복원 샘플들을 생성하고, 이를 기반으로 복원 픽처를 생성할 수 있다. (S950). 이후 상기 복원 픽처에 인루프 필터링 절차 등이 더 적용될 수 있음은 상술한 바와 같다. The decoding apparatus 200 generates residual samples for the current block based on the received residual information (S940). The decoding apparatus 200 may generate reconstructed samples for the current block based on the predicted samples and residual samples, and generate a reconstructed picture based on the reconstructed samples. (S950). As described above, an in-loop filtering procedure may be further applied to the reconstructed picture.
상술한 바와 같이 인터 예측 절차는 인터 예측 모드 결정 단계, 결정된 예측 모드에 따른 움직임 정보 도출 단계, 도출된 움직임 정보에 기반한 예측 수행(예측 샘플 생성) 단계를 포함할 수 있다.As described above, the inter prediction procedure may include a step of determining an inter prediction mode, a step of deriving motion information according to the determined prediction mode, and performing a prediction (generating a predictive sample) based on the derived motion information.
인터 예측 모드 결정(Determination of inter prediction mode)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) 모드라고 불릴 수도 있다. Various inter prediction modes may be used for prediction of a current block in a picture. For example, various modes such as merge mode, skip mode, MVP mode, and affine mode may be used. Decoder side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, and the like may be further used as ancillary modes. The affine mode may also be called aaffine motion prediction mode. The MVP mode may also be called AMVP (advanced motion vector prediction) mode.
현재 블록의 인터 예측 모드를 가리키는 예측 모드 정보가 인코딩 장치로부터 디코딩 장치(200)로 시그널링될 수 있다. 예측 모드 정보는 비트스트림에 포함되어 디코딩 장치(200)에서 수신될 수 있다. 예측 모드 정보는 다수의 후보 모드들 중 하나를 지시하는 인덱스 정보를 포함할 수 있다. 또는, 플래그 정보의 계층적 시그널링을 통하여 인터 예측 모드를 지시할 수도 있다. 이 경우 예측 모드 정보는 하나 이상의 플래그들을 포함할 수 있다. 예를 들어, 인코딩 장치(100)는 스킵 플래그를 시그널링하여 스킵 모드 적용 여부를 지시하고, 스킵 모드가 적용 안되는 경우에 머지 플래그를 시그널링하여 머지 모드 적용 여부를 지시하고, 머지 모드가 적용 안되는 경우에 MVP 모드 적용되는 것으로 지시하거나 추가적인 구분을 위한 플래그를 더 시그널링할 수도 있다. 어파인 모드는 독립적인 모드로 시그널링될 수도 있고, 또는 머지 모드 또는 MVP 모드 등에 종속적인 모드로 시그널링될 수도 있다. 예를 들어, 어파인 모드는 후술하는 바와 같이 머지 후보 리스트 또는 MVP 후보 리스트의 하나의 후보로 구성될 수도 있다.Prediction mode information indicating the inter prediction mode of the current block may be signaled from the encoding device to the decoding device 200. The prediction mode information may be included in the bitstream and received by the decoding apparatus 200. The prediction mode information may include index information indicating one of a plurality of candidate modes. Alternatively, the inter prediction mode may be indicated through hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, the encoding apparatus 100 signals whether a skip mode is applied by signaling a skip flag, and indicates whether a merge mode is applied by signaling a merge flag when a skip mode is not applied, and when a merge mode is not applied. It may be indicated that the MVP mode is applied or may further signal a flag for additional classification. The affine mode may be signaled as an independent mode, or may be signaled as a mode dependent on a merge mode or an MVP mode. For example, the affine mode may be configured as one candidate of the merge candidate list or the MVP candidate list, as described later.
인터 예측 모드에 따른 움직임 정보의 도출(Derivation of motion information according to inter prediction mode)Derivation of motion information according to inter prediction mode
인코딩 장치(100) 또는 디코딩 장치(200)는 현재 블록의 움직임 정보를 이용하여 인터 예측을 수행할 수 있다. 인코딩 장치(100)는 움직임 추정(motion estimation) 절차를 통하여 현재 블록에 대한 최적의 움직임 정보를 도출할 수 있다. 예를 들어, 인코딩 장치(100)는 현재 블록에 대한 원본 픽처 내 원본 블록을 이용하여 상관성이 높은 유사한 참조 블록을 참조 픽처 내의 정해진 탐색 범위 내에서 분수 픽셀 단위로 탐색할 수 있고, 이를 통하여 움직임 정보를 도출할 수 있다. 블록의 유사성은 위상(phase) 기반 샘플 값들의 차를 기반으로 도출될 수 있다. 예를 들어, 블록의 유사성은 현재 블록(또는 현재 블록의 템플릿)과 참조 블록(또는 참조 블록의 템플릿) 간 SAD(sum of absolute difference)를 기반으로 계산될 수 있다. 이 경우 탐색 영역 내 SAD가 가장 작은 참조 블록을 기반으로 움직임 정보를 도출할 수 있다. 도출된 움직임 정보는 인터 예측 모드 기반으로 여러 방법에 따라 디코딩 장치로 시그널링될 수 있다.The encoding apparatus 100 or the decoding apparatus 200 may perform inter prediction using motion information of a current block. The encoding apparatus 100 may derive optimal motion information for the current block through a motion estimation procedure. For example, the encoding apparatus 100 may search for a similar reference block having a high correlation within a predetermined search range in a reference picture by a fractional pixel unit using the original block in the original picture for the current block, through which motion information Can be derived. The similarity of the block can be derived based on the difference of phase-based sample values. For example, the similarity of a block may be calculated based on a sum of absolute difference (SAD) between a current block (or a template of a current block) and a reference block (or a template of a reference block). In this case, motion information may be derived based on a reference block having the smallest SAD in the search area. The derived motion information may be signaled to the decoding apparatus according to various methods based on the inter prediction mode.
머지 모드 및 스킵 모드Merge mode and skip mode
머지 모드(merge mode)가 적용되는 경우, 현재 예측 블록의 움직임 정보가 직접적으로 전송되지 않고, 주변 예측 블록의 움직임 정보를 이용하여 현재 예측 블록의 움직임 정보를 유도하게 된다. 따라서, 인코딩 장치(100)는 머지 모드를 이용하였음을 알려주는 플래그 정보 및 주변의 어떤 예측 블록을 이용하였는지를 알려주는 머지 인덱스를 전송함으로써 현재 예측 블록의 움직임 정보를 지시할 수 있다.When a merge mode is applied, motion information of a current prediction block is not directly transmitted, and motion information of a current prediction block is derived using motion information of a neighboring prediction block. Accordingly, the encoding apparatus 100 may indicate motion information of the current prediction block by transmitting flag information indicating that the merge mode is used and a merge index indicating which prediction blocks are used.
인코딩 장치(100)는 머지 모드를 수행하기 위해서 현재 예측 블록의 움직임 정보를 유도하기 위해 이용되는 머지 후보 블록(merge candidate block)을 서치하여야 한다. 예를 들어, 머지 후보 블록은 최대 5개까지 이용될 수 있으나, 본 명세서는 이에 한정되지 않는다. 그리고, 머지 후보 블록의 최대 개수는 슬라이스 헤더에서 전송될 수 있으며, 본 명세서는 이에 한정되지 않는다. 머지 후보 블록들을 찾은 후, 인코딩 장치(100)는 머지 후보 리스트를 생성할 수 있고, 이들 중 가장 작은 비용을 갖는 머지 후보 블록을 최종 머지 후보 블록으로 선택할 수 있다.The encoding apparatus 100 must search a merge candidate block used to derive motion information of a current prediction block in order to perform a merge mode. For example, up to five merge candidate blocks may be used, but the present specification is not limited thereto. In addition, the maximum number of merge candidate blocks may be transmitted in the slice header, and the present specification is not limited thereto. After finding the merge candidate blocks, the encoding apparatus 100 may generate a merge candidate list, and may select a merge candidate block having the smallest cost as a final merge candidate block.
본 명세서는 머지 후보 리스트를 구성하는 머지 후보 블록에 대한 다양한 실시예를 제공한다.This specification provides various embodiments of a merge candidate block constituting a merge candidate list.
머지 후보 리스트는 예를 들어 5개의 머지 후보 블록을 이용할 수 있다. 예를 들어, 4개의 공간적 머지 후보(spatial merge candidate)와 1개의 시간적 머지 후보(temporal merge candidate)를 이용할 수 있다. The merge candidate list may use 5 merge candidate blocks, for example. For example, four spatial merge candidates and one temporal merge candidate can be used.
도 11은 현재 블록에 대한 공간적 머지 후보 구성의 예를 도시한다.11 shows an example of a spatial merge candidate configuration for the current block.
도 11을 참조하면, 현재 블록의 예측을 위하여 좌측 이웃 블록(A1), 좌하측(bottom-left) 이웃 블록(A2), 우상측(top-right) 이웃 블록(B0), 상측 이웃 블록(B1), 좌상측(top-left) 이웃 블록(B2) 중 적어도 하나가 사용될 수 있다. 현재 블록에 대한 머지 후보 리스트는 도 12과 같은 절차를 기반으로 구성될 수 있다.Referring to FIG. 11, for prediction of a current block, a left neighboring block (A1), a bottom-left neighboring block (A2), a top-right neighboring block (B0), and an upper neighboring block (B1) ), at least one of a top-left neighboring block B2 may be used. The merge candidate list for the current block may be configured based on the procedure shown in FIG. 12.
도 12는 본 명세서의 실시예에 따른 머지 후보 리스트 구성을 위한 흐름도의 예를 도시한다.12 shows an example of a flowchart for configuring a merge candidate list according to an embodiment of the present specification.
코딩 장치(인코딩 장치(100) 또는 디코딩 장치(200))는 현재 블록의 공간적 주변 블록들을 탐색하여 도출된 공간적 머지 후보들을 머지 후보 리스트에 삽입한다(S1210). 예를 들어, 공간적 주변 블록들은 현재 블록의 좌하측 코너 주변 블록, 좌측 주변 블록, 우상측 코너 주변 블록, 상측 주변 블록, 좌상측 코너 주변 블록들을 포함할 수 있다. 다만, 이는 예시로서 상술한 공간적 주변 블록들 이외에도 우측 주변 블록, 하측 주변 블록, 우하측 주변 블록 등 추가적인 주변 블록들이 더 상기 공간적 주변 블록들로 사용될 수 있다. 코딩 장치는 공간적 주변 블록들을 우선순위를 기반으로 탐색하여 가용한 블록들을 검출하고, 검출된 블록들의 움직임 정보를 공간적 머지 후보들로 도출할 수 있다. 예를 들어, 인코딩 장치(100) 또는 디코딩 장치(200)는 도 11에 도시된 5개의 블록들을 A1, B1, B0, A0, B2의 순서대로 탐색하여, 가용한 후보들을 순차적으로 인덱싱하여 머지 후보 리스트로 구성할 수 있다. The coding apparatus (encoding apparatus 100 or decoding apparatus 200) searches for spatial neighboring blocks of the current block and inserts the derived spatial merge candidates into the merge candidate list (S1210). For example, the spatial peripheral blocks may include blocks around the lower left corner of the current block, blocks around the left corner, blocks around the upper right corner, blocks around the upper corner, and blocks around the upper left corner. However, as an example, in addition to the spatial peripheral blocks described above, 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 detect available blocks by searching for spatial neighboring blocks based on priority, and derive motion information of the detected blocks as spatial merge candidates. For example, the encoding apparatus 100 or the decoding apparatus 200 searches the five blocks shown in FIG. 11 in the order of A1, B1, B0, A0, B2, sequentially indexes available candidates, and merges candidates It can be configured as a list.
코딩 장치는 현재 블록의 시간적 주변 블록을 탐색하여 도출된 시간적 머지 후보를 상기 머지 후보 리스트에 삽입한다(S1220). 시간적 주변 블록은 현재 블록이 위치하는 현재 픽처와 다른 픽처인 참조 픽처 상에 위치할 수 있다. 시간적 주변 블록이 위치하는 참조 픽처는 동일 위치 픽처(collocated picture) 또는 콜 픽처(col picture)라고 불릴 수 있다. 시간적 주변 블록은 콜 픽처 상에서의 현재 블록에 대한 동일 위치 블록(co-located block)의 우하측 코너 주변 블록 및 우하측 센터 블록의 순서로 탐색될 수 있다. 한편, 움직임 데이터 압축(motion data compression)이 적용되는 경우, 콜 픽처에 일정 저장 단위마다 특정 움직임 정보를 대표 움직임 정보로 저장할 수 있다. 이 경우 상기 일정 저장 단위 내의 모든 블록에 대한 움직임 정보를 저장할 필요가 없으며 이를 통하여 움직임 데이터 압축 효과를 얻을 수 있다. 이 경우, 일정 저장 단위는 예를 들어 16x16 샘플 단위, 또는 8x8 샘플 단위 등으로 미리 정해질 수도 있고, 또는 인코딩 장치(100)로부터 디코딩 장치(200)로 일정 저장 단위에 대한 사이즈 정보가 시그널링될 수도 있다. 움직임 데이터 압축이 적용되는 경우 시간적 주변 블록의 움직임 정보는 시간적 주변 블록이 위치하는 일정 저장 단위의 대표 움직임 정보로 대체될 수 있다. 즉, 이 경우 구현 측면에서 보면, 시간적 주변 블록의 좌표에 위치하는 예측 블록이 아닌, 시간적 주변 블록의 좌표(좌상단 샘플 포지션)를 기반으로 일정 값만큼 산술적 우측 시프트 후 산술적 좌측 시프트 한 위치를 커버하는 예측 블록의 움직임 정보를 기반으로 시간적 머지 후보가 도출될 수 있다. 예를 들어, 일정 저장 단위가 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))에 위치하는 예측 블록의 움직임 정보가 시간적 머지 후보를 위하여 사용될 수 있다.The coding apparatus searches for temporal neighboring blocks of the current block and inserts the derived temporal merge candidate into the merge candidate list (S1220). The temporal peripheral block may be located on a reference picture that is a different picture from the current picture in which the current block is located. The reference picture in which the temporal neighboring block is located may be referred to as a collocated picture or a coll picture. The temporal neighboring blocks may be searched in the order of the lower right corner peripheral block and the lower right center block of the co-located block for the current block on the call picture. Meanwhile, when motion data compression is applied, specific motion information may be stored as representative motion information for each predetermined storage unit in a call picture. In this case, there is no need to store motion information for all blocks in the predetermined storage unit, thereby obtaining a motion data compression effect. In this case, the predetermined storage unit may be predetermined in units of 16x16 sample units, 8x8 sample units, or the like, or size information for a predetermined storage unit may be signaled from the encoding device 100 to the decoding device 200. have. When motion data compression is applied, motion information of a temporal peripheral block may be replaced with representative motion information of a certain storage unit in which the temporal peripheral block is located. That is, in this case, from an implementation point of view, an arithmetic right shift by a certain value based on the coordinates (top left sample position) of a temporal peripheral block, rather than a prediction block located at the coordinates of the temporal peripheral block, and then covers the position of the arithmetic left shift A temporal merge candidate may be derived based on the motion information of the prediction block. For example, if the constant storage unit is 2nx2n sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> n) << n), (yTnb >> n) The motion information of the prediction block located at << n)) can be used for temporal merge candidates. Specifically, for example, if the constant storage unit is 16x16 sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> 4) << 4), (yTnb >> 4) Motion information of the prediction block located at << 4)) can be used for temporal merge candidates. Or, for example, if the constant storage unit is 8x8 sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> 3) << 3), (yTnb >> 3 ) << 3)) motion information of the prediction block located at may be used for temporal merge candidate.
코딩 장치는 현재 머지 후보들의 개수가 최대 머지 후보들의 개수보다 작은지 여부를 확인할 수 있다(S1230). 최대 머지 후보들의 개수는 미리 정의되거나 인코딩 장치(100)에서 디코딩 장치(200)로 시그널링될 수 있다. 예를 들어, 인코딩 장치(100)는 최대 머지 후보들의 개수에 관한 정보를 생성하고, 인코딩하여 비트스트림 형태로 디코딩 장치(200)로 전달할 수 있다. 최대 머지 후보들의 개수가 다 채워지면 이후의 후보 추가 과정은 진행하지 않을 수 있다. The coding apparatus may check whether the number of current merge candidates is smaller than the maximum number of merge candidates (S1230). The maximum number of merge candidates may be predefined or signaled from the encoding device 100 to the decoding device 200. For example, the encoding apparatus 100 may generate information on the number of maximum merge candidates, encode, and transmit the encoded information to the decoding apparatus 200 in the form of a bitstream. When the maximum number of merge candidates is filled, the subsequent candidate addition process may not proceed.
확인 결과 현재 머지 후보들의 개수가 상기 최대 머지 후보들의 개수보다 작은 경우, 코딩 장치는 추가 머지 후보를 머지 후보 리스트에 삽입한다(S1240). 추가 머지 후보는 예를 들어 ATMVP(adaptive temporal motion vector prediction), 결합된 양방향 예측(combined bi-predictive) 머지 후보(현재 슬라이스의 슬라이스 타입이 B 타입인 경우) 및/또는 영 벡터(zero vector) 머지 후보를 포함할 수 있다. As a result of checking, if the number of current merge candidates is smaller than the number of maximum merge candidates, the coding apparatus inserts an additional merge candidate into the merge candidate list (S1240). Additional merge candidates are, for example, adaptive temporal motion vector prediction (ATMVP), combined bi-predictive merge candidates (if the slice type of the current slice is of type B) and/or zero vector merge. Candidates may be included.
도 13은 예측 후보 리스트(MVP 후보 리스트)를 구성하기 위한 흐름도의 예를 도시한다.13 shows an example of a flowchart for constructing a prediction candidate list (MVP candidate list).
MVP(motion vector prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록(예를 들어, 도 11의 주변 블록)의 움직임 벡터 및/또는 시간적 주변 블록(또는 Col 블록)에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자(motion vector predictor, MVP) 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록에 대응하는 움직임 벡터는 움직임 벡터 예측자 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 예측자 후보들 중에서 선택된 최적의 움직임 벡터 예측자 후보를 지시하는 선택 정보(예: MVP 플래그 또는 MVP 인덱스)를 포함할 수 있다. 이 때, 예측부는 상기 선택 정보를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 예측자 후보들 중에서, 현재 블록의 움직임 벡터 예측자를 선택할 수 있다. 인코딩 장치(100)의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 디코딩 장치의 예측부는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 디코딩 장치의 예측부는 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다. 예를 들어, 움직임 벡터 예측자 후보 리스트는 도 13과 같이 구성될 수 있다.When a motion vector prediction (MVP) mode is applied, a motion vector of a reconstructed spatial neighboring block (eg, the neighboring block of FIG. 11) and/or a motion vector corresponding to a temporal neighboring block (or Col block) is used. , A motion vector predictor (MVP) candidate list may be generated. That is, the motion vector of the reconstructed spatial neighboring block and/or the motion vector corresponding to the temporal neighboring block may be used as a motion vector predictor candidate. The prediction information may include selection information (eg, an MVP flag or an MVP index) indicating an optimal motion vector predictor candidate selected from among motion vector predictor candidates included in the list. At this time, the prediction unit may select a motion vector predictor of the current block from among motion vector predictor candidates included in the motion vector candidate list using the selection information. The prediction unit of the encoding apparatus 100 may obtain a motion vector difference (MVD) between a motion vector of a current block and a motion vector predictor, encode it, and output it in the form of a bitstream. That is, the MVD can be obtained by subtracting the motion vector predictor from the motion vector of the current block. At this time, the prediction unit of the decoding apparatus may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block through addition of the motion vector difference and the motion vector predictor. The prediction unit of the decoding apparatus may obtain or derive a reference picture index indicating the reference picture from the information on the prediction. For example, the motion vector predictor candidate list may be configured as shown in FIG. 13.
도 13을 참조하면, 코딩 장치는 움직임 벡터 예측을 위한 공간적 후보 블록을 탐색하여 예측 후보 리스트에 삽입한다(S1310). 예를 들어, 코딩 장치는 정해진 탐색 순서에 따라 주변 블록들에 대한 탐색을 수행하고, 공간적 후보 블록에 대한 조건을 만족하는 주변 블록의 정보를 예측 후보 리스트(MVP 후보 리스트)에 추가할 수 있다.Referring to FIG. 13, the coding apparatus searches for a spatial candidate block for motion vector prediction and inserts it into a prediction candidate list (S1310). For example, the coding apparatus may search for neighboring blocks according to a predetermined search order, and add information of neighboring blocks satisfying the condition for the spatial candidate block to the prediction candidate list (MVP candidate list).
공간적 후보 블록 리스트를 구성한 후, 코딩 장치는 예측 후보 리스트에 포함된 공간적 후보 리스트의 개수와 기 설정된 기준 개수(예: 2)를 비교한다(S1320). 예측 후보 리스트에 포함된 공간적 후보 리스트의 개수가 기준 개수(예: 2)보다 크거나 같은 경우, 코딩 장치는 예측 후보 리스트의 구성을 종료할 수 있다. After constructing the spatial candidate block list, the coding apparatus compares the number of spatial candidate lists included in the prediction candidate list with a preset reference number (eg, 2) (S1320). If the number of spatial candidate lists included in the prediction candidate list is greater than or equal to the reference number (eg, 2), the coding apparatus may end the construction of the prediction candidate list.
그러나, 예측 후보 리스트에 포함된 공간적 후보 리스트의 개수가 기준 개수(예: 2)보다 작은 경우, 코딩 장치는 시간적 후보 블록을 탐색하여 예측 후보 리스트에 추가 삽입하고(S1330), 시간적 후보 블록이 사용 불가능한 경우, 제로 움직임 벡터를 예측 후보 리스트에 추가한다(S1340).However, if the number of spatial candidate lists included in the prediction candidate list is smaller than the reference number (eg, 2), the coding device searches for the temporal candidate block and inserts it into the prediction candidate list (S1330), and the temporal candidate block is used If it is not possible, the zero motion vector is added to the prediction candidate list (S1340).
예측 샘플 생성(Generation of prediction sample)Generation of prediction sample
예측 모드에 따라 도출된 움직임 정보를 기반으로 현재 블록에 대한 예측된 블록이 도출될 수 있다. 예측된 블록은 현재 블록의 예측 샘플들(예측 샘플 어레이)을 포함할 수 있다. 현재 블록의 움직임 벡터가 분수 샘플 단위를 가리키는 경우, 보간(interpolation) 절차가 수행될 수 있으며, 이를 통하여 참조 픽처 내에서 분수 샘플 단위의 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플들이 도출될 수 있다. 현재 블록에 어파인(affine) 인터 예측이 적용되는 경우, 샘플/서브블록 단위 움직임 벡터(motion vector)에 기반하여 예측 샘플들이 생성될 수 있다. 양방향(bi-direction) 예측이 적용되는 경우, 제1 방향 예측(예: L0 예측)을 기반으로 도출된 예측 샘플들과 제2 방향 예측(예: L1 예측)을 기반으로 도출된 예측 샘플들의 (위상에 따른) 가중합을 통하여 최종 예측 샘플들이 도출될 수 있다. 도출된 예측 샘플들을 기반으로 복원 샘플들 및 복원 픽처가 생성될 수 있고, 이후 인루프 필터링 등의 절차가 수행될 수 있음은 전술한 바와 같다.The predicted block for the current block may be derived based on the motion information derived according to the prediction mode. The predicted block may include predictive samples (predictive sample array) of the current block. When the motion vector of the current block indicates a fractional sample unit, an interpolation procedure may be performed, and through this, prediction samples of the current block may be derived based on reference samples in a fractional sample unit in a reference picture. . When affine inter prediction is applied to a current block, prediction samples may be generated based on a motion vector per sample/subblock. When bi-direction prediction is applied, prediction samples derived based on first direction prediction (eg, L0 prediction) and prediction samples derived based on second direction prediction (eg, L1 prediction) ( The final prediction samples can be derived through weighted sum (per phase). As described above, reconstruction samples and reconstruction pictures may be generated based on the derived prediction samples, and then procedures such as in-loop filtering may be performed.
이하, 본 명세서의 실시예에 따른 MMVD 기법이 적용된 머지 모드를 사용하여 인터 예측을 수행하기 위한 실시예를 설명하도록 한다.Hereinafter, an embodiment for performing inter prediction using a merge mode to which an MMVD technique according to an embodiment of the present disclosure is applied will be described.
머지(merge) 모드 또는 스킵(skip) 모드에서 움직임 벡터의 정확도를 향상시키기 위하여 MVP와 같은 개선(refinement) 기술이 적용될 수 있다. MMVD(merge with MVD) 기술은 머지 후보 리스트 구성 방법으로 구성된 후보 중 선택된 후보에 대하여 움직임 벡터의 크기 및 방향을 조절함으로써 정확도를 높일 수 있다.In order to improve the accuracy of a motion vector in a merge mode or a skip mode, a refinement technique such as MVP may be applied. The merge with MVD (MMVD) technique can increase accuracy by adjusting the size and direction of a motion vector with respect to a selected candidate among candidates configured with a merge candidate list construction method.
코딩 장치는 머지 후보 리스트 중 특정 후보를 베이스 후보(base candidate)로 결정할 수 있다. 사용가능한 베이스 후보의 개수가 2개일 때 리스트의 첫번째 후보와 두번째 후보가 베이스 후보로서 사용될 수 있다. 인코딩 장치(100)는 베이스 후보 인덱스(base candidate index)를 시그널링 함으로써 선택된 베이스 후보에 대한 정보를 전송할 수 있다. 베이스 후보의 개수는 다양하게 설정될 수 있으며, 베이스 후보의 개수가 1이면 베이스 후보 인덱스는 사용되지 않을 수 있다. 아래의 표 1은 베이스 후보 인덱스의 예를 나타낸다.The coding apparatus may determine a specific candidate from the merge candidate list as a base candidate. When the number of available base candidates is two, the first candidate and the second candidate in the list can be used as base candidates. The encoding apparatus 100 may transmit information on the selected base candidate by signaling a base candidate index. The number of base candidates may be variously set, and if the number of base candidates is 1, the base candidate index may not be used. Table 1 below shows an example of the base candidate index.
Figure PCTKR2019017779-appb-img-000001
Figure PCTKR2019017779-appb-img-000001
표 1을 참조하면, 베이스 후보 인덱스가 0이면 현재 구성된 머지 후보 리스트(또는 MVP 후보 리스트)에서 첫번째 후보에 해당하는 움직임 벡터가 베이스 후보로서 결정되고, 베이스 후보 인덱스가 1이면 현재 구성된 머지 후보 리스트(또는 MVP 후보 리스트)에서 두번째 후보에 해당하는 움직임 벡터가 베이스 후보로서 결정될 수 있다.Referring to Table 1, if the base candidate index is 0, the motion vector corresponding to the first candidate is determined as the base candidate in the currently configured merge candidate list (or MVP candidate list), and if the base candidate index is 1, the currently configured merge candidate list ( Alternatively, a motion vector corresponding to the second candidate in the MVP candidate list) may be determined as a base candidate.
인코딩 장치(100)는 베이스 후보에 해당하는 움직임 벡터에 적용되는 크기(MMVD 길이)와 방향(MMVD 부호)을 시그널링함으로써 개선(refinement)할 수 있는데, 이때 길이 인덱스(MMVD 길이 인덱스)는 움직임 벡터에 적용되는 MVD의 크기를 지시하고, 방향 인덱스(MMVD 부호 인덱스)는 움직임 벡터에 적용되는 MVD의 방향을 나타낸다. 아래의 표 2는 길이 인덱스(MMVD 길이 인덱스)에 따른 MVD의 크기(MMVD 오프셋)를 나타내고, 표 3은 방향 인덱스(MMVD 부호 인덱스)에 따른 MVD의 방향을 나타낸다.The encoding apparatus 100 may be refined by signaling the size (MMVD length) and direction (MMVD code) applied to the motion vector corresponding to the base candidate, where the length index (MMVD length index) is applied to the motion vector. The size of the applied MVD is indicated, and the direction index (MMVD code index) indicates the direction of the MVD applied to the motion vector. Table 2 below shows the size of the MVD (MMVD offset) according to the length index (MMVD length index), and Table 3 shows the direction of the MVD according to the direction index (MMVD code index).
Figure PCTKR2019017779-appb-img-000002
Figure PCTKR2019017779-appb-img-000002
Figure PCTKR2019017779-appb-img-000003
Figure PCTKR2019017779-appb-img-000003
베이스 후보, 거리 인덱스, 방향 인덱스를 고려할 때 MMVD에서의 움직임 탐색 방법은 도 14와 같이 표현될 수 있다. 특히, 양방향 예측의 경우 L0 움직임 벡터에 미러링 기법(mirroring scheme)을 사용하여 L1 방향의 움직임 벡터가 유도될 수 있다.When considering a base candidate, a distance index, and a direction index, a motion search method in MMVD may be expressed as shown in FIG. 14. In particular, in the case of bidirectional prediction, a motion vector in the L1 direction may be derived using a mirroring scheme for the L0 motion vector.
도 14를 참조하면, L0 참조 픽처에 대한 움직임 벡터에 대하여 +s, +2s와 같은 MMVD 오프셋이 적용되는 경우, 현재 픽처를 기준으로 L0 참조 픽처로부터 시간적으로 반대 방향에 위치한 L1 참조 픽처에 대하여 미러링이 적용될 수 있다.Referring to FIG. 14, when an MMVD offset such as +s and +2s is applied to a motion vector for an L0 reference picture, mirroring is performed for an L1 reference picture temporally opposite from the L0 reference picture based on the current picture. This can be applied.
MMVD에서 사용되는 시그널링 방법에 의하여, 2개의 베이스 후보, 8개의 MMVD 길이 인덱스, 4개의 MMVD 부호 인덱스를 고려할 때, 움직임 벡터의 개선을 위한 MVD 후보는 총 64개이다. 이는 인코더 복잡도를 증가시킬 뿐만 아니라 효율적으로 움직임 벡터의 크기와 방향이 고려되었다고 보기 어려우므로, 본 명세서의 실시예는 효율적으로 MMVD 기법을 적용하기 위한 방법 및 장치를 제공한다.According to the signaling method used in MMVD, when considering 2 base candidates, 8 MMVD length indexes, and 4 MMVD code indexes, there are a total of 64 MVD candidates for motion vector improvement. This increases the complexity of the encoder as well as it is difficult to see that the size and direction of the motion vector are efficiently considered, so the embodiments herein provide a method and apparatus for efficiently applying the MMVD technique.
AMVP 모드에서 MVD를 효과적으로 시그널링하기 위하여 AMVR(adaptive motion vector resolution) 기술이 적용되었다. 움직임 벡터의 크기가 큰 경우 움직임 벡터의 시그널링을 위하여 많은 비트가 요구되므로, 전송을 위해 필요한 비트를 감소시키기 위하여 1-정수 화소(1-integer pixel) 또는 4-정수 화소(4-integer pixel)를 갖는 MVD를 1/4 또는 1/16로 다운스케일링(down-scaling)하는 동작이 수행될 수 있다. AMVR 인덱스(imv_idx)가 0이면 인코딩 장치(100)는 AMVR의 적용 없이 MVD를 시그널링하며, imv_idx가 1이면 1-정수 화소의 MVD가 1/4만큼 스케일링되어 시그널링 되며, imv_idex가 2이면 4-정수 화소의 MVD가 1/16만큼 스케일링되어 시그널링될 수 있다.In order to effectively signal MVD in AMVP mode, adaptive motion vector resolution (AMVR) technology has been applied. When the size of the motion vector is large, many bits are required for signaling of the motion vector, so a 1-integer pixel or 4-integer pixel is used to reduce the bits required for transmission. An operation of down-scaling the MVD having 1/4 or 1/16 may be performed. If the AMVR index (imv_idx) is 0, the encoding device 100 signals MVD without application of AMVR, and if imv_idx is 1, the MVD of 1-integer pixels is scaled by 1/4 and signaled, and if imv_idex is 2, 4-integer The MVD of the pixel may be signaled by being scaled by 1/16.
AMVR 기술은 영상 또는 블록별 움직임의 특징, 특히 움직임의 크기의 경향을 반영하는 지표가 되므로, 본 명세서의 실시예는 imv_idx 값을 사용하여 MMVD에서 거리 테이블을 적응적으로 선택할 수 있도록 함으로써 거리 테이블의 인덱스 오버헤드를 감소시키고 압축 성능을 향상시킬 수 있는 방법을 제안한다.Since AMVR technology becomes an index reflecting the characteristics of motion of each image or block, especially the size of motion, the embodiment of the present specification allows the distance table to be adaptively selected in the MMVD using the imv_idx value. We propose a method that can reduce index overhead and improve compression performance.
도 15는 본 명세서의 실시예에 따른 MMVD(merge with motion vector difference) 기법이 적용된 머지 모드를 사용하여 예측을 수행하기 위한 흐름도의 예를 도시한다. 도 15에 도시된 동작들은 디코딩 장치(200) 또는 비디오 신호 처리 장치(500)에 의해 수행될 수 있다.15 shows an example of a flowchart for performing prediction using a merge mode to which a merge with motion vector difference (MMVD) technique according to an embodiment of the present disclosure is applied. The operations illustrated in FIG. 15 may be performed by the decoding apparatus 200 or the video signal processing apparatus 500.
S1510 단계에서, 디코딩 장치(200)는 머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 움직임 벡터를 획득한다. S1510 단계 이전에, 디코딩 장치(200)는 인코딩 장치(100)로부터 전송된 비트스트림으로부터 현재 블록에 머지 모드가 적용됨을 확인하고, 머지 인덱스를 파싱함으로써 현재 머지 후보들 중에서 현재 블록의 예측에 사용되는 후보(움직임 벡터)를 결정할 수 있다. In operation S1510, the decoding apparatus 200 obtains a motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on the merge index. Before the step S1510, the decoding apparatus 200 confirms that the merge mode is applied to the current block from the bitstream transmitted from the encoding apparatus 100, and parses the merge index, thereby candidates used for prediction of the current block among the current merge candidates. (Motion vector) can be determined.
S1520 단계에서, 디코딩 장치(200)는 AMVR 인덱스(imv_idx 또는 imv_idc) 및 MMVD 길이 인덱스(Distance IDX 또는 mmvd_distance_idx)에 기반하여 움직임 벡터에 적용되는 MMVD 오프셋을 결정할 수 있다. 여기서, AMVR 인덱스는 MMVD 오프셋 값들의 해상도에 기반하여 사전에 결정된 MMVD 후보 집합들(예: 표 4D의 Case 1 내지 3) 중 하나와 관련되고, MMVD 길이 인덱스는 AMVR 인덱스와 관련된 MMVD 후보 집합에서 움직임 벡터에 적용될 MMVD 오프셋 값을 지시할 수 있다.In operation S1520, the decoding apparatus 200 may determine the MMVD offset applied to the motion vector based on the AMVR index (imv_idx or imv_idc) and the MMVD length index (Distance IDX or mmvd_distance_idx). Here, the AMVR index is associated with one of the predetermined MMVD candidate sets (eg, Cases 1 to 3 in Table 4D) based on the resolution of the MMVD offset values, and the MMVD length index moves in the MMVD candidate set associated with the AMVR index. The MMVD offset value to be applied to the vector can be indicated.
S1530 단계에서, 디코딩 장치(200)는 MMVD 오프셋이 적용된 움직임 벡터 및 머지 인덱스와 관련된 참조 픽처에 기반하여 현재 블록의 예측 샘플을 생성할 수 있다. 즉, 디코딩 장치(200)는 S1510 단계에서 머지 인덱스로부터 도출된 움직임 벡터에 S1520 단계에서 결정된 MMVD 오프셋을 더함으로써 최종적인 움직임 벡터를 결정하고, 참조 픽처에서 최종 움직임 벡터에 의해 지시되는 샘플로부터 현재 블록의 예측 샘플을 생성할 수 있다. In operation S1530, the decoding apparatus 200 may generate a prediction sample of the current block based on the motion vector to which the MMVD offset is applied and the reference picture associated with the merge index. That is, the decoding apparatus 200 determines the final motion vector by adding the MMVD offset determined in step S1520 to the motion vector derived from the merge index in step S1510, and the current block from the sample indicated by the final motion vector in the reference picture. Can generate predictive samples.
본 명세서의 실시예에 따르면, 아래의 표 4와 같이 MMVD 길이 인덱스가 AMVR 인덱스에 의해 정의되는 범위(예: 4개) 내에서 MVMD 오프셋 값을 지시하므로, 표 2와 같이 MMVD 길이 인덱스만으로 모든 범위에서 MMVD 오프셋 값을 지시하는 것과 비교하여 MMVD 길이 인덱스를 전송하기 위하여 요구되는 비트량을 감소시킬 수 있다.According to an embodiment of the present specification, as shown in Table 4 below, since the MMVD length index indicates an MVMD offset value within a range defined by the AMVR index (for example, 4), all ranges are based only on the MMVD length index as shown in Table 2. In comparison with indicating the MMVD offset value, the bit amount required to transmit the MMVD length index can be reduced.
일 실시예에서, 디코딩 장치(200)는 MMVD 오프셋의 부호를 지시하는 MMVD 방향 인덱스(예: 표 2의 Direction IDX 또는 MMVD_direction_idx)를 획득하고, MMVD 오프셋에 MMVD 방향 인덱스에 대응하는 부호를 적용하고, MMVD 방향 인덱스에 대응하는 부호가 적용된 MMVD 오프셋을 움직임 벡터에 더하고, 부호가 적용된 MMVD 오프셋이 더해진 최종 움직임 벡터를 사용하여 예측 샘플을 생성할 수 있다. MMVD 방향 인덱스를 사용함으로써 움직임 벡터의 개선(refinement)에 따른 정확도를 증가시킬 수 있다.In one embodiment, the decoding apparatus 200 obtains an MMVD direction index (eg, Direction IDX or MMVD_direction_idx in Table 2) indicating the sign of the MMVD offset, applies a sign corresponding to the MMVD direction index to the MMVD offset, A predicted sample may be generated by adding a signed MMVD offset corresponding to a MMVD direction index to a motion vector and using a final motion vector to which a signed MMVD offset is added. By using the MMVD direction index, accuracy according to refinement of a motion vector can be increased.
Figure PCTKR2019017779-appb-img-000004
Figure PCTKR2019017779-appb-img-000004
표 4는 본 실시예에 따른 MMVD 길이 인덱스에 대한 MMVD 오프셋 값의 테이블을 나타낸다. 표 4에 따르면, imv_idx에 따라 MMVD 길이 인덱스별로 다른 MMVD 오프셋이 할당된다. 즉, Case 1은 imv_idx가 0인 경우로서, 베이스 움직임 벡터가 1/4-pel 내지 2-pel의 거리만큼 조절될 수 있다. 또한, Case 2는 imv_idx가 1인 경우로서, 베이스 움직임 벡터가 1/2-pel 내지 4-pel의 거리만큼 조절될 수 있다. 마지막으로, Case 3은 imv_idx가 2인 경우로서 베이스 움직임 벡터가 1-pel 내지 8-pel의 거리만큼 조절될 수 있다. 본 명세서에서 설명되는 거리 테이블 내의 후보 개수와 후보 값은 하나의 예를 나타낼 뿐이며, 다른 개수 또는 다른 값이 사용될 수 있다.Table 4 shows a table of MMVD offset values for the MMVD length index according to this embodiment. According to Table 4, different MMVD offsets are allocated for each MMVD length index according to imv_idx. That is, in case 1, imv_idx is 0, the base motion vector may be adjusted by a distance of 1/4-pel to 2-pel. In addition, in case 2, when imv_idx is 1, the base motion vector may be adjusted by a distance of 1/2-pel to 4-pel. Finally, in case 3, imv_idx is 2, and the base motion vector may be adjusted by a distance of 1-pel to 8-pel. The number of candidates and candidate values in the distance table described in this specification are only examples, and other numbers or different values may be used.
일 실시예에서, AMVR 인덱스는 머지 인덱스와 관련된 주변 블록의 움직임 벡터에 적용되는 MVD(motion vector difference)의 해상도(resolution)에 기반하여 결정될 수 있다. 예를 들어, AMVR 인덱스는 현재 블록의 머지 또는 MVP 후보 리스트 생성 과정에서 사용되는 공간적 또는 시간적 주변 블록의 AMVR 정보(AMVR 인덱스)에 기반하여 결정될 수 있다.In one embodiment, the AMVR index may be determined based on the resolution of a motion vector difference (MVD) applied to a motion vector of a neighboring block associated with the merge index. For example, the AMVR index may be determined based on AMVR information (AMVR index) of spatial or temporal neighboring blocks used in the process of generating a merge or MVP candidate list of the current block.
AMVR 모드는 AMVP에서 적용되며, 머지/스킵 모드에서 사용되지 않는다. 따라서, 상술한 AMVR 모드 기반 길이 테이블 결정 방법을 결정하기 위하여 머지/스킵 모드에서 AMVR 인덱스를 따로 설정할 수 있다. 즉, 현재 블록이 머지/스킵 모드일 때, 주변 블록의 AMVR 인덱스(imv_idx)를 설정하고 저장함으로써 MMVD를 위한 후보 구성시 AMVR을 적용할 수 있도록 한다. 이때, 코딩 장치는 파싱 과정에서 좌측 또는 상측 주변 블록의 imv_idx를 사용하여 컨텍스트 모델링을 수행하므로, 머지/스킵 모드가 적용된 블록의 디코딩 과정에서 저장된 주변 블록의 imv_idx가 파싱 과정에 적용되지 않도록 하기 위하여 MMVD가 적용된 블록의 AMVR 인덱스를 별도의 신택스 요소(예: imv_idc)로 명명함으로써 AMVP가 적용된 블록의 AVMR 인덱스와 구분할 수 있다.AMVR mode is applied in AMVP and is not used in merge/skip mode. Therefore, in order to determine the above-mentioned AMVR mode-based length table determination method, the AMVR index can be separately set in the merge/skip mode. That is, when the current block is in the merge/skip mode, the AMVR index (imv_idx) of the neighboring block is set and stored so that the AMVR can be applied when constructing candidates for the MMVD. At this time, since the coding device performs context modeling using imv_idx of the left or upper neighboring block in the parsing process, MMVD in order to prevent imv_idx of the stored neighboring block from being applied to the parsing process in the decoding process of the block to which merge/skip mode is applied. The AMVR index of the block to which the is applied is distinguished from the AVMR index of the block to which the AMVP is applied by naming it as a separate syntax element (eg, imv_idc).
이하의 실시예는 머지/스킵 모드가 적용된 블록에 대한 MVP 후보 리스트를 구성하는 과정에서 AMVR 인덱스(imv_idc)를 저장하는 방법을 제공한다. MMVD에 따르면, 머지/스킵 모드가 적용된 블록의 디코딩 과정에서 구성된 MVP 후보 중 선택된 후보에 해당하는 베이스 움직임 벡터를 조절하기 때문이다. 후보 리스트 구성 과정에서 인접 블록의 특징(MVD의 해상도 또는 AMVR 인덱스)에 따라 AMVR 인덱스가 아래와 같이 설정될 수 있다.The following embodiment provides a method of storing an AMVR index (imv_idc) in the process of constructing an MVP candidate list for a block to which merge/skip mode is applied. This is because according to MMVD, a base motion vector corresponding to a selected candidate among MVP candidates configured in a decoding process of a block to which merge/skip mode is applied is adjusted. In the process of constructing the candidate list, the AMVR index may be set as follows according to the characteristics of the adjacent block (resolution of the MVD or AMVR index).
- 공간적으로 인접한 블록에 대하여, 해당 인접 블록의 AMVR 인덱스를 사용한다.-For spatially adjacent blocks, the AMVR index of the adjacent blocks is used.
- 시간적으로 인접한 블록에 대하여, 디폴트(default) 값(예: 0)를 사용한다.-For temporally adjacent blocks, a default value (eg 0) is used.
- HMVP가 적용된 주변 블록에 대하여, HMVP 버퍼에 저장된 후보들에 매칭되는 AMVR 인덱스를 사용하거나, HMVP 후보인 경우 항상 디폴트 값(예: 0)을 사용한다.-For a neighbor block to which HMVP is applied, an AMVR index matching candidates stored in the HMVP buffer is used, or a default value (for example, 0) is always used for an HMVP candidate.
- 쌍(pairwise) 후보에 대하여, L0 움직임 벡터(L0 블록)와 L1 움직임 벡터(L1 블록)의 후보가 동일한 AMVR 인덱스를 갖는 경우 공통의 AMVR 인덱스를 사용하고, L0 움직임 벡터(L0 블록)와 L1 움직임 벡터(L1 블록)가 다른 AMVR 인덱스를 갖는 경우 디폴트 값을 사용한다.-For pairwise candidates, when the candidates of the L0 motion vector (L0 block) and the L1 motion vector (L1 block) have the same AMVR index, a common AMVR index is used, and the L0 motion vector (L0 block) and L1 If the motion vector (L1 block) has a different AMVR index, the default value is used.
- L0 움직임 벡터(L0 블록)와 L1 움직임 벡터(L1 블록)의 후보가 동일한 AMVR 인덱스를 갖는 경우 해당 AMVR 인덱스를 사용하고, 다른 경우 둘 중 큰 AMVR 인덱스 값을 사용한다.-When the candidates of the L0 motion vector (L0 block) and the L1 motion vector (L1 block) have the same AMVR index, the corresponding AMVR index is used, and in other cases, the larger AMVR index value is used.
- 제로 벡터의 경우, 디폴트 값(예: 0)을 사용한다.-In the case of a zero vector, the default value (eg 0) is used.
상술한 방법이 모두 적용되거나, 일부만이 적용될 수 있음은 당연하다.It is natural that all of the above-described methods may be applied or only a part may be applied.
또한, 삼각(triangular) 모드의 후보 리스트를 구성할 때 인접한 블록의 AMVR 인덱스를 저장함으로써 AMVR 인덱스 값이 이후 머지/스킵 모드에 전파(propagate)되도록 할 수 있다. 이때 삼각 모드는, 도 16과 같이 하나의 CU(coding unit)를 2개의 삼각형 모양의 PU(prediction unit)로 분할하고, 각 PU는 단방향 예측(uni-prediction)에 의해 예측이 수행될 수 있다. 각 PU에 대하여 일반적인 머지/스킵 모드와 유사한 방식에 의해 단방향 예측을 위한 후보 리스트가 구성될 수 있다. 삼각 모드가 적용될 때 하나의 CU는 2개의 PU(Cand0, Cand1)로 구성되므로 해당 블록(CU)의 AMVR 인덱스는 2개의 블록(PU)들의 AMVR 인덱스를 모두 고려하여 결정될 수 있으며, 구체적으로 아래와 같을 수 있다.In addition, when constructing a triangular mode candidate list, the AMVR index value of adjacent blocks can be stored to propagate the merge/skip mode afterwards. At this time, in the triangular mode, as shown in FIG. 16, one CU (coding unit) is divided into two triangular shaped prediction units (PUs), and each PU can be predicted by uni-prediction. For each PU, a candidate list for unidirectional prediction may be constructed in a manner similar to a general merge/skip mode. When a triangular mode is applied, one CU is composed of two PUs (Cand0, Cand1), so the AMVR index of the corresponding block (CU) can be determined by considering all of the AMVR indexes of the two blocks (PU). Can.
- Cand0의 AMVR 인덱스를 사용한다.-Use AMVR index of Cand0.
- Cand1의 AMVR 인덱스를 사용한다.-Use Cand1's AMVR index.
- Cand0와 Cand1의 AMVR 인덱스가 같을 때 해당 값을 사용한다.-When Cand0 and Cand1 have the same AMVR index, the corresponding value is used.
- Cand0와 Cand1의 AMVR 인덱스가 다르면 디폴트 값을 사용한다.-If the AMVR index of Cand0 and Cand1 are different, the default value is used.
- Cand0와 Cand1의 AMVR 인덱스가 다르면 큰 값을 사용한다-If the AMVR index of Cand0 and Cand1 are different, a larger value is used.
상술한 방법들이 모두 적용되거나 일부가 적용될 수 있음은 당연하다.It is natural that all or some of the above-described methods may be applied.
또한, 다중 가설(multi-hypothesis, M/H) 모드의 후보 리스트를 구성할 때 인접한 블록의 AMVR 인덱스를 저장함으로써 AMVR 인덱스 값이 이후 머지/스킵 모드에 전파되도록 할 수 있다. 이때 M/H 모드는, 머지/스킵 모드에서 인트라 예측과 인터 예측이 결합된 기술로서, 인트라 모드와 머지 모드를 위한 인덱스를 모두 시그널링한다. 일반 머지/스킵 모드와 유사한 방법으로 후보 리스트를 구성하며 M/H 모드가 적용될 때 해당 블록에 대해 아래와 같이 AMVR 인덱스를 설정할 수 있다.In addition, when constructing a candidate list in a multi-hypothesis (M/H) mode, the AMVR index of adjacent blocks can be stored so that the AMVR index value is propagated to the merge/skip mode later. At this time, the M/H mode is a technique in which intra prediction and inter prediction are combined in the merge/skip mode, and signals both indexes for the intra mode and the merge mode. The candidate list is constructed in a similar manner to the normal merge/skip mode, and when the M/H mode is applied, the AMVR index can be set for the corresponding block as follows.
- 공간적으로 인접한 블록일 때, 해당 인접 블록의 AMVR 인덱스를 사용한다.-When the block is spatially adjacent, the AMVR index of the adjacent block is used.
- 시간적으로 인접한 블록일 때, 디폴트 값(예: 0)를 사용한다.-When the block is temporally adjacent, the default value (eg 0) is used.
- HMVP 후보일 때, i) HMVP 버퍼에 저장된 후보들에 매칭되는 AMVR 인덱스를 사용하거나, ii) 항상 디폴트 값(예: 0)을 사용한다.-For HMVP candidates, i) use the AMVR index matching the candidates stored in the HMVP buffer, or ii) always use the default value (eg 0).
- 쌍(pairwise) 후보일 때, i) L0 후보(L0 블록)와 L1 후보(L1 블록)이 동일한 AMVR 인덱스를 갖는 경우 공통의 AMVR 인덱스를 사용하고, 다른 경우 디폴트 값(예: 0)을 사용하거나, ii) L0 후보(L0 블록)와 L1 후보(L1 블록)이 동일한 AMVR 인덱스를 갖는 경우 공통의 AMVR 인덱스를 사용하고, 다른 경우 둘 중 큰 AMVR 인덱스를 사용한다.-When pairwise, i) L0 candidate (L0 block) and L1 candidate (L1 block) use the common AMVR index when they have the same AMVR index; otherwise, use the default value (eg 0) Or, ii) When the L0 candidate (L0 block) and the L1 candidate (L1 block) have the same AMVR index, a common AMVR index is used, and in other cases, a larger AMVR index is used.
- 제로 벡터에 대하여, 디폴트 값(예: 0)을 사용한다.-For zero vectors, use default values (eg 0).
상술한 방법들 모드 적용되거나, 일부가 적용될 수 있음은 당연한다.It is natural that the above-described methods may be applied or some may be applied.
본 발명의 일 실시예에 따르면, AMVR 인덱스는 MMVD 길이(오프셋)에 기반하여 업데이트될 수 있다. 또한, 업데이트된 AMVR 인덱스는 현재 블록 이후 처리되는 적어도 하나의 블록의 AMVR 인덱스로서 재사용될 수 있다. 상술한 방법을 사용하여 MMVD를 위한 베이스 움직임 벡터의 AMVR 인덱스를 유도할 수 있으며, 유도된 AMVR 인덱스를 기준으로 MMVD 길이 테이블을 선택함으로써 정제(refinement)를 위한 움직임 벡터의 거리가 결정될 수 있다. 그러나, 베이스 움직임 벡터의 AMVR 인덱스를 기준으로 MMVD 길이 테이블이 선택되었다 하더라도 해당 테이블 내 후보 중 1-pel 또는 4-pel과 같은 거리값이 선택될 수 있으므로 MMVD 과정에서 선택된 길이를 기준으로 AMVR 인덱스를 업데이트할 수 있다. MMVD 길이 역시 AMVR의 역할을 하기 때문이다. 따라서, 아래 표 5와 같이 선택된 MMVD 길이에 따라 AMVR 인덱스를 업데이트할 수 있다.According to an embodiment of the present invention, the AMVR index may be updated based on the MMVD length (offset). Also, the updated AMVR index may be reused as the AMVR index of at least one block processed after the current block. Using the above method, the AMVR index of the base motion vector for MMVD can be derived, and the distance of the motion vector for refinement can be determined by selecting the MMVD length table based on the derived AMVR index. However, even if the MMVD length table is selected based on the AMVR index of the base motion vector, a distance value such as 1-pel or 4-pel can be selected among the candidates in the table, so the AMVR index is selected based on the length selected in the MMVD process. Can be updated. This is because MMVD length also plays the role of AMVR. Accordingly, the AMVR index can be updated according to the selected MMVD length as shown in Table 5 below.
Figure PCTKR2019017779-appb-img-000005
Figure PCTKR2019017779-appb-img-000005
즉, MMVD 길이가 4-pel 또는 8-pel로 결정되었다면 이는 AMVR 인덱스(imv_idc) 2와 유사하므로 베이스 움직임 벡터의 AMVR 인덱스가 0이라 하더라도 2로 업데이트될 수 있다. 또한, MMVD 거리가 1-pel 이상의 값으로 결정되면 이는 AMVR 인덱스(imv_idc) 1과 유사하므로 1로 업데이트될 수 있다.That is, if the MMVD length is determined to be 4-pel or 8-pel, it is similar to the AMVR index (imv_idc) 2, so even if the AMVR index of the base motion vector is 0, it can be updated to 2. In addition, if the MMVD distance is determined to be 1-pel or more, it can be updated to 1 because it is similar to the AMVR index (imv_idc) 1.
즉, MMVD 오프셋이 기준 값보다 크거나 같으면, AMVR 인덱스는 제1 MMVD 집합을 지시하도록 결정되고, MMVD 오프셋의 크기가 기준 값보다 작으면, 상기 MMVD 범위 인덱스는 제2 MMVD 집합 인덱스를 지시하도록 결정되며, 제1 MMVD 집합은 동일한 MMVD 길이 인덱스에 대하여 제2 MMVD 집합의 MMVD 오프셋보다 큰 값을 갖는다.That is, if the MMVD offset is greater than or equal to the reference value, the AMVR index is determined to indicate the first MMVD set, and if the size of the MMVD offset is less than the reference value, the MMVD range index is determined to indicate the second MMVD set index. The first MMVD set has a value greater than the MMVD offset of the second MMVD set for the same MMVD length index.
MMVD의 베이스 움직임 벡터의 x, y 값의 크기는 개선(refinement)을 위한 거리를 유도함에 있어 블록의 AMVR과 유사한 효과를 가질 수 있다. 또한, AMVR 인덱스가 적용되지 않는 경우라 하더라도 다른 툴에 의존적이지 않다는 장점이 있다. 따라서, 본 실시예는 베이스 움직임 벡터의 값에 따라 MMVD 길이 테이블을 결정하는 방법을 제공한다. 아래의 표 6은 MMVD 길이 인덱스와 MMVD 오프셋 값들의 관계를 나타내는 테이블의 다른 예로서, 베이스 움직임 벡터의 값에 따라 MMVD 길이 테이블을 결정하는 방법을 나타낸다.The magnitude of the x and y values of the base motion vector of the MMVD may have an effect similar to that of the AMVR of the block in deriving the distance for refinement. In addition, even if the AMVR index is not applied, there is an advantage that it is not dependent on other tools. Accordingly, the present embodiment provides a method of determining the MMVD length table according to the value of the base motion vector. Table 6 below is another example of a table showing the relationship between the MMVD length index and the MMVD offset values, and shows a method of determining the MMVD length table according to the value of the base motion vector.
Figure PCTKR2019017779-appb-img-000006
Figure PCTKR2019017779-appb-img-000006
Case 1은 아래의 조건을 갖는다.Case 1 has the following conditions.
- 양방향 예측이 적용되고, 4-pel 단위의 움직임 벡터가 사용되는 경우-When bi-directional prediction is applied and 4-pel unit motion vector is used
(L0_x % 16 == 0 && L0_y % 16 == 0 && L1_x % 16 == 0 && L1_y % 16 == 0)(L0_x% 16 == 0 && L0_y% 16 == 0 && L1_x% 16 == 0 && L1_y% 16 == 0)
- 단방향 예측이 적용되고, 4-pel 단위의 움직임 벡터가 사용되는 경우-When unidirectional prediction is applied and 4-pel unit motion vector is used
(LX_x % 16 == 0 && LX_y % 16 == 0, X = 0, 1)(LX_x% 16 == 0 && LX_y% 16 == 0, X = 0, 1)
Case 1의 조건이 만족되면 1-pel ~ 8-pel의 거리로 조절(refine)된다. If the condition of Case 1 is satisfied, it is adjusted to a distance of 1-pel to 8-pel.
Case 1이 만족되지 못하는 경우, Case 2에 대한 조건은 아래와 같다.If Case 1 is not satisfied, the conditions for Case 2 are as follows.
- 양방향 예측이 적용되고, 1-pel 단위의 움직임 벡터가 사용되는 경우-When bi-directional prediction is applied and 1-pel unit motion vector is used
(L0_x % 4 == 0 && L0_y % 4 == 0 && L1_x % 4 == 0 && L1_y % 4 == 0)(L0_x% 4 == 0 && L0_y% 4 == 0 && L1_x% 4 == 0 && L1_y% 4 == 0)
- 단방향 예측이 적용되고, 1-pel 안위의 움직임 벡터가 사용되는 경우-When unidirectional prediction is applied and a motion vector of 1-pel comfort is used
(LX_x % 4 == 0 && LX_y % 4 == 0, X = 0, 1)(LX_x% 4 == 0 && LX_y% 4 == 0, X = 0, 1)
Case 2의 조건이 만족되면 1/2-pel ~ 4-pel의 거리로 조절(refine)된다. If the condition of Case 2 is satisfied, it is adjusted to a distance of 1/2-pel to 4-pel.
Case 1, Case 2가 만족되지 않는 경우, Case 3에 해당하는 1/4-pel ~ 2-pel의 거리로 조절(refine)될 수 있다. 본 명세서에서 설명되는 거리 테이블 내의 후보 개수와 후보 값은 하나의 예에 불과하며, 다른 개수 또는 다른 값이 적용될 수 있음은 당연하다. When Case 1 and Case 2 are not satisfied, the distance may be adjusted to a distance of 1/4-pel to 2-pel corresponding to Case 3. The number of candidates and candidate values in the distance table described in this specification are only examples, and it is natural that other numbers or different values may be applied.
상술한 Case 1 내지 Case 3은 아래와 같이 변형되어 적용될 수 있다. 즉, 양방향 예측이 적용되는 후보 중 한쪽 방향이라도 아래 조건과 같이 4-pel 또는 1-pel 단위의 움직임 벡터를 가지면 조건이 만족되는 것으로 결정될 수 있다.Case 1 to Case 3 described above may be modified and applied as follows. That is, even if one of the candidates to which bi-directional prediction is applied has a motion vector in units of 4-pel or 1-pel as shown in the following conditions, it may be determined that the condition is satisfied.
예를 들어, Case 1의 조건은 아래와 같을 수 있다.For example, the condition of Case 1 may be as follows.
- 양방향 예측이 적용되고, 4-pel 단위의 움직임 벡터가 사용되는 경우-When bi-directional prediction is applied and 4-pel unit motion vector is used
((L0_x % 16 == 0 && L0_y % 16 == 0) || (L1_x % 16 == 0 && L1_y % 16 == 0))((L0_x% 16 == 0 && L0_y% 16 == 0)||(L1_x% 16 == 0 && L1_y% 16 == 0))
- 단방향 예측이 적용되고, 4-pel 단위의 움직임 벡터가 사용되는 경우-When unidirectional prediction is applied and 4-pel unit motion vector is used
(LX_x % 16 == 0 && LX_y % 16 == 0, X = 0, 1)(LX_x% 16 == 0 && LX_y% 16 == 0, X = 0, 1)
Case 1의 조건이 만족되면 1-pel ~ 8-pel의 거리로 조절(refine)된다. If the condition of Case 1 is satisfied, it is adjusted to a distance of 1-pel to 8-pel.
Case 1이 만족되지 못하는 경우, Case 2에 대한 조건은 아래와 같다.If Case 1 is not satisfied, the conditions for Case 2 are as follows.
- 양방향 예측이 적용되고, 1-pel 단위의 움직임 벡터가 사용되는 경우-When bi-directional prediction is applied and 1-pel unit motion vector is used
(((L0_x % 4 == 0 && L0_y % 4 == 0) || (L1_x % 4 == 0 && L1_y % 4 == 0))(((L0_x% 4 == 0 && L0_y% 4 == 0)||(L1_x% 4 == 0 && L1_y% 4 == 0))
- 단방향 예측이 적용되고, 1-pel 안위의 움직임 벡터가 사용되는 경우-When unidirectional prediction is applied and a motion vector of 1-pel comfort is used
(LX_x % 4 == 0 && LX_y % 4 == 0, X = 0, 1)(LX_x% 4 == 0 && LX_y% 4 == 0, X = 0, 1)
Case 2의 조건이 만족되면 1/2-pel ~ 4-pel의 거리로 조절(refine)된다. If the condition of Case 2 is satisfied, it is adjusted to a distance of 1/2-pel to 4-pel.
본 실시예는 AMVR이 사용되지 않는 경우 적용되거나, AMVR 적용 여부와 관계없이 사용될 수 있다. 또한, AMVR 이 적용되는 경우(imv_dic = 1, 2) AMVR 인덱스에 따라 MMVD 길이 테이블이 결정되고, AMVR이 적용되지 않는 경우(imv_idc = 0) 본 실시예와 같이 움직임 벡터의 픽셀 단위에 기반하여 MMVD 길이 테이블이 결정될 수 있다. This embodiment may be applied when AMVR is not used, or may be used regardless of whether AMVR is applied. In addition, when the AMVR is applied (imv_dic = 1, 2), the MMVD length table is determined according to the AMVR index, and when the AMVR is not applied (imv_idc = 0), the MMVD is based on the pixel unit of the motion vector as in this embodiment. The length table can be determined.
즉, AMVR 인덱스 및 베이스 움직임 벡터에 의해 지시되는 위치 좌표의 해상도에 기반하여 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정될 수 있다. 예를 들어, AMVR 인덱스가 0인 경우, 현재 블록의 예측을 위한 움직임 벡터에 적용되는 MMVD 오프셋의 범위는 움직임 벡터에 의해 지시되는 위치 좌표에 기반하여 결정될 수 있다. 여기서, 위치 좌표는, 픽처 또는 블록 내 임의의 위치(예: 좌상단 픽셀의 위치)로부터 수평 방향 위치(x 좌표) 및/또는 수직 방향 위치(y 좌표)를 포함할 수 있다.That is, the range of the MMVD offset applied to the motion vector may be determined based on the resolution of the position coordinates indicated by the AMVR index and the base motion vector. For example, when the AMVR index is 0, the range of the MMVD offset applied to the motion vector for prediction of the current block may be determined based on the position coordinates indicated by the motion vector. Here, the position coordinates may include a horizontal position (x coordinate) and/or a vertical position (y coordinate) from an arbitrary position in the picture or block (eg, the position of the upper left pixel).
본 명세서의 일 실시예에 따르면, 현재 블록의 특성을 반영하여, MMVD를 적용하는 과정에서 현재 블록의 크기가 고려될 수 있다. AMVR 모드, 베이스 움직임 벡터의 x, y 값의 크기, 또는 현재 블록의 사이즈 중 적어도 하나를 고려하여 MMVD 오프셋 값에 대한 테이블이 결정될 수 있다. According to an embodiment of the present specification, the size of the current block may be considered in the process of applying the MMVD by reflecting the characteristics of the current block. The table for the MMVD offset value may be determined in consideration of at least one of the size of the x, y values of the AMVR mode, the base motion vector, or the size of the current block.
즉, AMVR 인덱스 및 현재 블록의 사이즈에 기반하여 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정될 수 있다. 예를 들어, 아래와 같은 방법이 고려될 수 있다.That is, the range of the MMVD offset applied to the motion vector may be determined based on the AMVR index and the size of the current block. For example, the following method may be considered.
- AMVR 인덱스(imv_idc)가 0이고 w x h > 256 일 때(이하, w는 현재 블록의 폭, h는 현재 블록의 높이에 해당함) {2, 4, 8, 16}의 MMVD 길이 테이블이 사용되고, 그 외에는 표 4 또는 표 6이 사용됨.-When the AMVR index (imv_idc) is 0 and wxh> 256 (hereinafter, w corresponds to the width of the current block, h corresponds to the height of the current block), the MMVD length table of {2, 4, 8, 16} is used, and Table 4 or Table 6 is used otherwise.
- AMVR 인덱스가 0이고 w > 16 && h > 16일 때 {2, 4, 8, 16}의 MMVD 길이 테이블이 사용되고, 그 외에는 표 4 또는 표 6이 사용됨.-When AMVR index is 0 and w> 16 && h> 16, the MMVD length table of {2, 4, 8, 16} is used, otherwise Table 4 or Table 6 is used.
- AMVR 인덱스가 0보다 크고 w x h > 256 일 때 {2, 4, 8, 16}의 MMVD 길이 테이블이 사용되고, 그 외에는 표 4 또는 표 6이 사용됨.-When AMVR index is greater than 0 and w x h> 256, the MMVD length table of {2, 4, 8, 16} is used, otherwise Table 4 or Table 6 is used.
- AMVR 인덱스가 0보다 크고 w > 16 && h > 16일 때 {2, 4, 8, 16}의 MMVD 길이 테이블이 사용되고, 그 외에는 표 4 또는 표 6이 사용됨.-When the AMVR index is greater than 0 and w> 16 && h> 16, the MMVD length table of {2, 4, 8, 16} is used, otherwise Table 4 or Table 6 is used.
여기서, 사용된 블록 크기와 비교되는 기준값(threshold)는 변경될 수 있으며, 폭, 높이가 동시에 고려되거나 폭 x 높이가 고려될 수 있다. 또한, AMVR 인덱스 및/또는 베이스 움직임 벡터가 함께 고려될 수 있음은 당연하다.Here, the threshold value compared with the used block size may be changed, and the width and height may be considered simultaneously, or the width x height may be considered. It is also natural that the AMVR index and/or base motion vector can be considered together.
상술한 AMVR 인덱스를 고려하여 결정되는 MMVD 오프셋 범위 내에서 MMVD 인덱스를 사용하여 MMVD 방법은 도 5의 비디오 신호 처리 장치(500)에 의해 구현될 수 있다. The MMVD method may be implemented by the video signal processing apparatus 500 of FIG. 5 using the MMVD index within the MMVD offset range determined in consideration of the above-described AMVR index.
예를 들어, 비디오 신호 처리 장치(500)는, 비디오 신호를 저장하는 메모리(520)와, 상기 메모리와 결합되면서 비디오 신호를 처리하는 프로세서(510)를 포함할 수 있다. 프로세서(510)는, 머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 현재 블록의 화면간 예측을 위한 움직임 벡터를 획득하고, AMVR 인덱스 및 MMVD 길이 인덱스에 기반하여, 상기 움직임 벡터에 적용되는 MMVD 오프셋을 결정하고, MMVD 오프셋이 적용된 움직임 벡터 및 머지 인덱스와 관련된 참조 픽처에 기반하여 현재 블록의 예측 샘플을 생성도록 설정되며, 여기서 AMVR 인덱스는 MMVD 오프셋 값들의 해상도에 기반하여 사전에 결정된 MMVD 후보 집합들 중 하나와 관련되고, MMVD 길이 인덱스는 상기 AMVR 인덱스와 관련된 MMVD 후보 집합에서 상기 움직임 벡터에 적용될 MMVD 오프셋 값을 지시할 수 있다.For example, the video signal processing apparatus 500 may include a memory 520 for storing a video signal, and a processor 510 for processing a video signal while being combined with the memory. The processor 510 obtains a motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on the merge index, and applies the motion vector to the motion vector based on the AMVR index and the MMVD length index. The MMVD offset is determined, and a prediction sample of the current block is set based on a motion vector to which the MMVD offset is applied and a reference picture associated with the merge index, wherein the AMVR index is a predetermined MMVD based on the resolution of the MMVD offset values. Associated with one of the candidate sets, the MMVD length index may indicate an MMVD offset value to be applied to the motion vector in the MMVD candidate set associated with the AMVR index.
일 실시예에서, 프로세서(510)는 MMVD 오프셋의 부호를 지시하는 MMVD 방향 인덱스를 획득하고, MMVD 오프셋에 MMVD 방향 인덱스에 대응하는 부호를 적용하고, 부호가 적용된 MMVD 오프셋을 움직임 벡터에 더하도록 설정될 수 있다.In one embodiment, the processor 510 obtains an MMVD direction index indicating the sign of the MMVD offset, applies a sign corresponding to the MMVD direction index to the MMVD offset, and sets the applied MMVD offset to the motion vector Can be.
일 실시예에서, AMVR 인덱스는 머지 인덱스와 관련된 주변 블록의 움직임 벡터에 적용되는 MVD의 해상도에 기반하여 결정될 수 있다.In one embodiment, the AMVR index may be determined based on the resolution of the MVD applied to the motion vector of the neighboring block associated with the merge index.
일 실시예에서, AMVR 인덱스는 MMVD 길이 인덱스에 의해 지시되는 MMVD 오프셋의 크기에 기반하여 업데이트될 수 있으며, 업데이트된 AMVR 인덱스는, 상기 현재 블록 이후에 처리되는 블록의 AMVR 인덱스로서 재사용될 수 있다. 예를 들어, MMVD 오프셋이 기준 값보다 크거나 같으면, 상기 AMVR 인덱스는 제1 MMVD 집합을 지시하도록 결정되고, MMVD 오프셋의 크기가 기준 값보다 작으면, AMVR 인덱스는 제2 MMVD 집합 인덱스를 지시하도록 결정되며, 제1 MMVD 집합은 동일한 MMVD 길이 인덱스에 대하여 제2 MMVD 집합의 MMVD 오프셋보다 큰 값을 가질 수 있다.In one embodiment, the AMVR index may be updated based on the size of the MMVD offset indicated by the MMVD length index, and the updated AMVR index may be reused as the AMVR index of the block processed after the current block. For example, if the MMVD offset is greater than or equal to the reference value, the AMVR index is determined to indicate the first MMVD set, and if the size of the MMVD offset is less than the reference value, the AMVR index indicates the second MMVD set index. It is determined, and the first MMVD set may have a value greater than the MMVD offset of the second MMVD set for the same MMVD length index.
일 실시예에서, AMVR 인덱스 및 상기 움직임 벡터의 픽셀 단위에 기반하여 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정될 수 있다. In one embodiment, a range of the MMVD offset applied to the motion vector may be determined based on the AMVR index and the pixel unit of the motion vector.
일 실시예에서, AMVR 인덱스 및 현재 블록의 사이즈에 기반하여 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정될 수 있다.In one embodiment, the range of the MMVD offset applied to the motion vector may be determined based on the AMVR index and the size of the current block.
상술한 본 발명의 실시예를 기반으로 인코딩 장치에 의하여 도출된 인코딩된 정보 (ex. 인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다. 인코딩된 정보는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 (non-transitory) 디지털 저장매체에 저장될 수 있다. 또한, 상술한 바와 같이 상기 비트스트림은 인코딩 장치에서 디코딩 장치로 바로 전송되지 않고, 외부 서버(ex. 컨텐츠 스트리밍 서버) 등을 통하여 스트리밍/다운로드 서비스될 수도 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다.Based on the above-described embodiment of the present invention, the encoded information (ex. encoded video/video information) derived by the encoding device may be output in the form of a bitstream. The encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of a bitstream. The bitstream may be transmitted over a network or may be stored in a (non-transitory) digital storage medium. Also, as described above, the bitstream is not directly transmitted from the encoding device to the decoding device, and may be streamed/downloaded through an external server (ex. content streaming server). Here, the network may include a broadcasting network and/or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD.
본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.Embodiments described in the present invention may be implemented and implemented on a processor, microprocessor, controller, or chip. For example, the functional units shown in each figure may be implemented and implemented on a computer, processor, microprocessor, controller, or chip.
본 발명이 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 발명에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다.The processing method to which the present invention is applied may be produced in the form of a program executed by a computer, and may be stored in a computer readable recording medium. Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium. The computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored. The computer-readable recording medium includes, for example, Blu-ray Disc (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk and optical. It may include a data storage device. In addition, the computer-readable recording medium includes media implemented in the form of a carrier wave (for example, transmission via the Internet). In addition, the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
또한, 본 발명의 실시예는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 발명의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독가능한 캐리어 상에 저장될 수 있다.Further, an embodiment of the present invention may be implemented as a computer program product by program code, and the program code may be executed on a computer by an embodiment of the present invention. The program code can be stored on a computer readable carrier.
즉, 본 명세서의 실시예는 컴퓨팅 디바이스의 하나 이상의 프로세서에서 실행하도록 구성된 컴퓨터 실행 가능한 컴포넌트가 저장된 비 일시적(non-transitory) 컴퓨터 판독 가능한 매체(computer-executable component)에 의해 구현될 수 있다. 본 명세서의 실시예에 따른 컴퓨터 실행 가능한 컴포넌트는 머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 현재 블록의 화면간 예측을 위한 움직임 벡터를 획득하고, AMVR 인덱스 및 MMVD 길이 인덱스에 기반하여 움직임 벡터에 적용되는 MMVD 오프셋을 결정하고, MMVD 오프셋이 적용된 움직임 벡터 및 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성도록 설정된다. 여기서, AMVR 인덱스는 MMVD 오프셋 값들의 해상도에 기반하여 사전에 결정된 MMVD 후보 집합들 중 하나와 관련되고, MMVD 길이 인덱스는, 상기 AMVR 인덱스와 관련된 후보 오프셋 값들 중에서 상기 움직임 벡터에 적용될 MMVD 오프셋 값을 지시할 수 있다. 뿐만 아니라, 본 명세서에서 설명된 다양한 실시예들을 구현하기 위한 컴퓨터 실행 가능한 컴포넌트가 비 일시적 컴퓨터 판독 가능한 매체에 저장될 수 있다.That is, the embodiments herein can be implemented by a non-transitory computer-executable component that stores computer-executable components configured to execute on one or more processors of a computing device. The computer-executable component according to an embodiment of the present disclosure obtains a motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on the merge index, and based on the AMVR index and the MMVD length index. It is set to determine an MMVD offset applied to a motion vector, and to generate a prediction sample of the current block based on a motion vector to which the MMVD offset is applied and a reference picture associated with the merge index. Here, the AMVR index is associated with one of the predetermined MMVD candidate sets based on the resolution of the MMVD offset values, and the MMVD length index indicates an MMVD offset value to be applied to the motion vector among candidate offset values associated with the AMVR index. can do. In addition, computer-executable components for implementing the various embodiments described herein can be stored on a non-transitory computer-readable medium.
본 발명이 적용되는 디코딩 장치(200) 및 인코딩 장치(100)는 디지털 기기(digital device)에 포함될 수 있다. "디지털 기기(digital device)"라 함은 예를 들어, 데이터, 컨텐트, 서비스 등을 송신, 수신, 처리 및 출력 중 적어도 하나를 수행 가능한 모든 디지털 기기를 포함한다. 여기서, 디지털 기기가 데이터, 컨텐트, 서비스 등을 처리하는 것은, 데이터, 컨텐트, 서비스 등을 인코딩 및/또는 디코딩하는 동작을 포함한다. 이러한 디지털 기기는, 유/무선 네트워크(wire/wireless network)를 통하여 다른 디지털 기기, 외부 서버(external server) 등과 페어링 또는 연결(pairing or connecting)(이하 '페어링')되어 데이터를 송수신하며, 필요에 따라 변환(converting)한다.The decoding apparatus 200 and the encoding apparatus 100 to which the present invention is applied may be included in a digital device. The term "digital device" includes, for example, all digital devices capable of performing at least one of transmission, reception, processing, and output of data, content, and services. Here, the processing of the data, content, service, etc. by the digital device includes an operation of encoding and/or decoding data, content, service, and the like. These digital devices are paired or connected (hereinafter referred to as'pairing') with other digital devices, external servers, etc. through a wire/wireless network to transmit and receive data. Convert it accordingly.
디지털 기기는 예를 들어, 네트워크 TV(network TV), HBBTV(hybrid broadcast Broadband TV), 스마트 TV(smart TV), IPTV(internet protocol television), PC(personal computer) 등과 같은 고정형 기기(standing device)와, PDA(personal digital assistant), 스마트 폰(smart phone), 태블릿 PC(tablet PC), 노트북 등과 같은 모바일 기기(mobile device or handheld device)를 모두 포함한다. Digital devices include, for example, fixed devices such as network TV, network broadcast broadband TV (HBBTV), smart TV, Internet protocol television (IPTV), personal computer (PC), and the like. , PDA (personal digital assistant), a smart phone (smart phone), a tablet PC (tablet PC), a mobile device (mobile device or handheld device) such as a laptop.
한편, 본 명세서에서 기술되는 "유/무선 네트워크"라 함은, 디지털 기기들 또는 디지털 기기와 외부 서버 사이에서 상호 연결 또는/및 데이터 송수신을 위해 다양한 통신 규격 내지 프로토콜을 지원하는 통신 네트워크를 통칭한다. 이러한 유/무선 네트워크는 규격에 의해 현재 또는 향후 지원될 통신 네트워크와 그를 위한 통신 프로토콜을 모두 포함할 수 있는바 예컨대, USB(Universal Serial Bus), CVBS(Composite Video Banking Sync), 컴포넌트, S-비디오(아날로그), DVI(digital visual interface), HDMI(high definition multimedia interface), RGB, D-SUB와 같은 유선 연결을 위한 통신 규격 내지 프로토콜과, 블루투스(bluetooth), RFID(radio frequency identification), 적외선 통신(IrDA, infrared data association), UWB(ultra Wwideband), 지그비(ZigBee), DLNA(digital living network alliance), WLAN(wireless LAN)(Wi-Fi), Wibro(wireless broadband), Wimax(world interoperability for microwave access), HSDPA(high speed downlink packet access), LTE(long term evolution), Wi-Fi 다이렉트(direct)와 같은 무선 연결을 위한 통신 규격에 의하여 형성될 수 있다.Meanwhile, the term "wired/wireless network" described herein refers to a communication network that supports various communication standards or protocols for interconnection and/or data transmission and reception between digital devices or digital devices and external servers. . Such a wired/wireless network may include both a communication network to be supported in the current or future by a standard and a communication protocol therefor, for example, Universal Serial Bus (USB), Composite Video Banking Sync (CVBS), component, S-Video (Analog), communication standards or protocols for wired connections such as digital visual interface (DVI), high definition multimedia interface (HDMI), RGB, D-SUB, Bluetooth, radio frequency identification (RFID), infrared communication (IrDA, infrared data association), UWB (ultra wideband), ZigBee, digital living network alliance (DLNA), wireless LAN (WLAN) (Wi-Fi), wireless broadband (Wibro), world interoperability for microwave access, high speed downlink packet access (HSDPA), long term evolution (LTE), and Wi-Fi direct.
이하 본 명세서에서 단지 디지털 기기로 명명하는 경우에는 문맥에 따라 고정형 기기 또는 모바일 기기를 의미하거나 양자를 모두 포함하는 의미일 수도 있다.Hereinafter, in the case of merely referring to a digital device in the present specification, it may mean a fixed device or a mobile device or both.
한편, 디지털 기기는 예컨대, 방송 수신 기능, 컴퓨터 기능 내지 지원, 적어도 하나의 외부 입력(external input)을 지원하는 지능형 기기로서, 상술한 유/무선 네트워크를 통해 이메일(e-mail), 웹 브라우징(web browsing), 뱅킹(banking), 게임(game), 애플리케이션(application) 등을 지원할 수 있다. 더불어, 디지털 기기는, 수기 방식의 입력 장치, 터치 스크린(touch screen), 공간 리모콘과 같이 적어도 하나의 입력 또는 제어 수단(이하 입력수단)을 지원하기 위한 인터페이스(interface)를 구비할 수 있다. 디지털 기기는, 표준화된 범용 OS(operating system)를 이용할 수 있다. 예를 들어, 디지털 기기는 범용의 OS 커널(kernel) 상에 다양한 애플리케이션(application)을 추가(adding), 삭제(deleting), 수정(amending), 업데이트(updating) 등을 할 수 있으며, 그를 통해 더욱 사용자 친화적인(user-friendly) 환경을 구성하여 제공할 수 있다.Meanwhile, the digital device is an intelligent device that supports, for example, a broadcast reception function, a computer function or support, and at least one external input, e-mail, web browsing through a wired/wireless network described above ( It can support web browsing, banking, games, and applications. In addition, the digital device may include an interface for supporting at least one input or control means (hereinafter referred to as an input means), such as a handwritten input device, a touch screen, and a spatial remote control. The digital device can use a standardized general-purpose operating system (OS). For example, a digital device can add, delete, modify, and update various applications on a general-purpose OS kernel, through which further You can configure and provide a user-friendly environment.
이상에서 설명된 실시예들은 본 명세서의 구성요소들과 특징들이 소정 형태로 결합된 것들이다. 각 구성요소 또는 특징은 별도의 명시적 언급이 없는 한 선택적인 것으로 고려되어야 한다. 각 구성요소 또는 특징은 다른 구성요소나 특징과 결합되지 않은 형태로 실시될 수 있다. 또한, 일부 구성요소들 및/또는 특징들을 결합하여 본 명세서의 실시예를 구성하는 것도 가능하다. 본 명세서의 실시예들에서 설명되는 동작들의 순서는 변경될 수 있다. 어느 실시예의 일부 구성이나 특징은 다른 실시예에 포함될 수 있고, 또는 다른 실시예의 대응하는 구성 또는 특징과 교체될 수 있다. 특허청구범위에서 명시적인 인용 관계가 있지 않은 청구항들을 결합하여 실시예를 구성하거나 출원 후의 보정에 의해 새로운 청구항으로 포함시킬 수 있음은 자명하다.The embodiments described above are those in which the components and features of the present specification are combined in a predetermined form. Each component or feature should be considered optional unless stated otherwise. Each component or feature may be implemented in a form that is not combined with other components or features. In addition, it is also possible to constitute an embodiment of the present specification by combining some components and/or features. The order of the operations described in the embodiments herein can be changed. Some configurations or features of one embodiment may be included in other embodiments, or may be replaced with corresponding configurations or features of other embodiments. It is obvious that the claims may not be explicitly cited in the claims, and the embodiments may be combined or included as new claims by amendment after filing.
펌웨어나 소프트웨어에 의한 구현의 경우, 본 명세서의 일 실시예는 이상에서 설명된 기능 또는 동작들을 수행하는 모듈, 절차, 함수 등의 형태로 구현될 수 있다. 소프트웨어 코드는 메모리에 저장되어 프로세서에 의해 구동될 수 있다. 상기 메모리는 상기 프로세서 내부 또는 외부에 위치하여, 이미 공지된 다양한 수단에 의해 상기 프로세서와 데이터를 주고받을 수 있다.In the case of implementation by firmware or software, an embodiment of the present specification may be implemented in the form of a module, procedure, function, etc. that performs the functions or operations described above. The software code can be stored in memory and driven by a processor. The memory is located inside or outside the processor, and can exchange data with the processor by various known means.
본 명세서는 본 명세서의 필수적 특징을 벗어나지 않는 범위에서 다른 특정한 형태로 구체화될 수 있음은 당업자에게 자명하다. 따라서, 상술한 상세한 설명은 모든 면에서 제한적으로 해석되어서는 아니 되고 예시적인 것으로 고려되어야 한다. 본 명세서의 범위는 첨부된 청구항의 합리적 해석에 의해 결정되어야 하고, 본 명세서의 등가적 범위 내에서의 모든 변경은 본 명세서의 범위에 포함된다. It will be apparent to those skilled in the art that the present specification may be embodied in other specific forms without departing from essential features of the present specification. Therefore, the above detailed description should not be construed as limiting in all respects, but should be considered illustrative. The scope of the present specification should be determined by rational interpretation of the appended claims, and all changes within the equivalent scope of the present specification are included in the scope of the present specification.
이상, 전술한 본 발명의 바람직한 실시예는, 예시의 목적을 위해 개시된 것으로, 당업자라면 이하 첨부된 특허청구범위에 개시된 본 발명의 기술적 사상과 그 기술적 범위 내에서, 다양한 다른 실시예들을 개량, 변경, 대체 또는 부가 등이 가능할 것이다.The preferred embodiments of the present invention described above are disclosed for the purpose of illustration, and those skilled in the art improve and change various other embodiments within the technical spirit and the technical scope of the present invention disclosed in the appended claims. , Replacement or addition may be possible.

Claims (15)

  1. 화면간 예측(inter prediction)을 사용하여 비디오 신호를 처리하기 위한 방법으로서, A method for processing a video signal using inter prediction,
    머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 움직임 벡터를 획득하는 단계;Obtaining a motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index;
    AMVR(adaptive motion vector resolution) 인덱스 및 MMVD(merge with motion vector difference) 길이(distance) 인덱스에 기반하여, 상기 움직임 벡터에 적용되는 MMVD 오프셋을 결정하는 단계; 및Determining an MMVD offset applied to the motion vector based on an adaptive motion vector resolution (AMVR) index and a merge with motion vector difference (MMVD) distance index; And
    상기 MMVD 오프셋이 적용된 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성하는 단계를 포함하며,Generating a prediction sample of the current block based on a motion vector to which the MMVD offset is applied and a reference picture associated with the merge index,
    상기 AMVR 인덱스는, MMVD 오프셋 값들의 해상도에 기반하여 사전에 결정된 MMVD 후보 집합들 중 하나와 관련되고,The AMVR index is associated with one of the predetermined MMVD candidate sets based on the resolution of the MMVD offset values,
    상기 MMVD 길이 인덱스는, 상기 AMVR 인덱스와 관련된 MMVD 후보 집합에서 상기 움직임 벡터에 적용될 MMVD 오프셋 값을 지시하는 것을 특징으로 하는 방법.And the MMVD length index indicates an MMVD offset value to be applied to the motion vector in a set of MMVD candidates associated with the AMVR index.
  2. 제1항에 있어서,According to claim 1,
    상기 현재 블록의 예측 샘플을 생성하는 단계는,Generating a prediction sample of the current block,
    상기 MMVD 오프셋의 부호를 지시하는 MMVD 방향 인덱스를 획득하는 단계; Obtaining an MMVD direction index indicating the sign of the MMVD offset;
    상기 MMVD 오프셋에 상기 MMVD 방향 인덱스에 대응하는 부호를 적용하는 단계; 및 Applying a sign corresponding to the MMVD direction index to the MMVD offset; And
    상기 부호가 적용된 MMVD 오프셋을 상기 움직임 벡터에 더하는 단계를 포함하는 것을 특징으로 하는 방법. And adding the MMVD offset to which the sign is applied to the motion vector.
  3. 제1항에 있어서,According to claim 1,
    상기 AMVR 인덱스는, The AMVR index,
    상기 머지 인덱스와 관련된 주변 블록의 움직임 벡터에 적용되는 MVD(motion vector difference)의 해상도(resolution)에 기반하여 결정되는 것을 특징으로 하는 방법.And determining based on a resolution of a motion vector difference (MVD) applied to a motion vector of a neighboring block related to the merge index.
  4. 제1항에 있어서,According to claim 1,
    상기 AMVR 인덱스는,The AMVR index,
    상기 MMVD 길이 인덱스에 의해 지시되는 MMVD 오프셋의 크기에 기반하여 업데이트되고,Updated based on the size of the MMVD offset indicated by the MMVD length index,
    상기 업데이트된 AMVR 인덱스는, 상기 현재 블록 이후에 처리되는 블록의 AMVR 인덱스로서 재사용되는 것을 특징으로 하는 방법.The updated AMVR index is reused as an AMVR index of a block processed after the current block.
  5. 제4항에 있어서,According to claim 4,
    상기 MMVD 오프셋이 기준 값보다 크거나 같으면, 상기 AMVR 인덱스는 제1 MMVD 집합을 지시하도록 결정되고,If the MMVD offset is greater than or equal to a reference value, the AMVR index is determined to indicate the first set of MMVDs,
    상기 MMVD 오프셋의 크기가 기준 값보다 작으면, 상기 AMVR 인덱스는 제2 MMVD 집합 인덱스를 지시하도록 결정되며,If the size of the MMVD offset is smaller than a reference value, the AMVR index is determined to indicate the second MMVD set index,
    상기 제1 MMVD 집합은, 동일한 MMVD 길이 인덱스에 대하여 상기 제2 MMVD 집합의 MMVD 오프셋보다 큰 값을 갖는 것을 특징으로 하는 방법.The method of claim 1, wherein the first MMVD set has a value greater than an MMVD offset of the second MMVD set for the same MMVD length index.
  6. 제1항에 있어서,According to claim 1,
    상기 AMVR 인덱스 및 상기 움직임 벡터에 의해 지시되는 위치 좌표의 해상도에 기반하여 상기 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정되는 것을 특징으로 하는 방법.And a range of the MMVD offset applied to the motion vector is determined based on the resolution of the AMVR index and the position coordinate indicated by the motion vector.
  7. 제1항에 있어서,According to claim 1,
    상기 AMVR 인덱스 및 상기 현재 블록의 사이즈에 기반하여 상기 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정되는 것을 특징으로 하는 방법.A method for determining the range of the MMVD offset applied to the motion vector based on the AMVR index and the size of the current block.
  8. 화면간 예측(inter prediction)을 사용하여 비디오 신호를 처리하기 위한 장치로서, An apparatus for processing a video signal using inter prediction,
    상기 비디오 신호를 저장하는 메모리; 및A memory for storing the video signal; And
    상기 메모리와 결합된 프로세서를 포함하고,A processor coupled with the memory,
    상기 프로세서는,The processor,
    머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 움직임 벡터를 획득하고,A motion vector for inter-frame prediction of the current block is obtained from at least one neighboring block adjacent to the current block based on the merge index,
    AMVR(adaptive motion vector resolution) 인덱스 및 MMVD(merge with motion vector difference) 길이(distance) 인덱스에 기반하여, 상기 움직임 벡터에 적용되는 MMVD 오프셋을 결정하고,Based on an adaptive motion vector resolution (AMVR) index and a merge with motion vector difference (MMVD) distance index, an MMVD offset applied to the motion vector is determined,
    상기 MMVD 오프셋이 적용된 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성도록 설정되며,It is set to generate a prediction sample of the current block based on a motion vector to which the MMVD offset is applied and a reference picture associated with the merge index,
    상기 AMVR 인덱스는, MMVD 오프셋 값들의 해상도에 기반하여 사전에 결정된 MMVD 후보 집합들 중 하나와 관련되고,The AMVR index is associated with one of the predetermined MMVD candidate sets based on the resolution of the MMVD offset values,
    상기 MMVD 길이 인덱스는, 상기 AMVR 인덱스와 관련된 MMVD 후보 집합에서 상기 움직임 벡터에 적용될 MMVD 오프셋 값을 지시하는 것을 특징으로 하는 장치.And the MMVD length index indicates an MMVD offset value to be applied to the motion vector in a set of MMVD candidates associated with the AMVR index.
  9. 제8항에 있어서,The method of claim 8,
    상기 프로세서는,The processor,
    상기 MMVD 오프셋의 부호를 지시하는 MMVD 방향 인덱스를 획득하고,Obtain an MMVD direction index indicating the sign of the MMVD offset,
    상기 MMVD 오프셋에 상기 MMVD 방향 인덱스에 대응하는 부호를 적용하고,A code corresponding to the MMVD direction index is applied to the MMVD offset,
    상기 부호가 적용된 MMVD 오프셋을 상기 움직임 벡터에 더하도록 설정되는 것을 특징으로 하는 장치. And the MMVD offset to which the sign is applied is set to be added to the motion vector.
  10. 제8항에 있어서,The method of claim 8,
    상기 AMVR 인덱스는, The AMVR index,
    상기 머지 인덱스와 관련된 주변 블록의 움직임 벡터에 적용되는 MVD(motion vector difference)의 해상도(resolution)에 기반하여 결정되는 것을 특징으로 하는 장치.And determining based on a resolution of a motion vector difference (MVD) applied to a motion vector of a neighboring block related to the merge index.
  11. 제8항에 있어서,The method of claim 8,
    상기 AMVR 인덱스는,The AMVR index,
    상기 MMVD 길이 인덱스에 의해 지시되는 MMVD 오프셋의 크기에 기반하여 업데이트되고, Updated based on the size of the MMVD offset indicated by the MMVD length index,
    상기 업데이트된 AMVR 인덱스는, 상기 현재 블록 이후에 처리되는 블록의 AMVR 인덱스로서 재사용되는 것을 특징으로 하는 장치.And the updated AMVR index is reused as an AMVR index of a block processed after the current block.
  12. 제11항에 있어서,The method of claim 11,
    상기 MMVD 오프셋이 기준 값보다 크거나 같으면, 상기 AMVR 인덱스는 제1 MMVD 집합을 지시하도록 결정되고,If the MMVD offset is greater than or equal to a reference value, the AMVR index is determined to indicate the first set of MMVDs,
    상기 MMVD 오프셋의 크기가 기준 값보다 작으면, 상기 AMVR 인덱스는 제2 MMVD 집합 인덱스를 지시하도록 결정되며,If the size of the MMVD offset is smaller than a reference value, the AMVR index is determined to indicate the second MMVD set index,
    상기 제1 MMVD 집합은, 동일한 MMVD 길이 인덱스에 대하여 상기 제2 MMVD 집합의 MMVD 오프셋보다 큰 값을 갖는 것을 특징으로 하는 장치.And wherein the first MMVD set has a value greater than the MMVD offset of the second MMVD set for the same MMVD length index.
  13. 제8항에 있어서,The method of claim 8,
    상기 AMVR 인덱스 및 상기 움직임 벡터에 의해 지시되는 위치 좌표의 해상도에 기반하여 상기 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정되는 것을 특징으로 하는 장치.And a range of an MMVD offset applied to the motion vector is determined based on the resolution of the AMVR index and the position coordinate indicated by the motion vector.
  14. 제8항에 있어서,The method of claim 8,
    상기 AMVR 인덱스 및 상기 현재 블록의 사이즈에 기반하여 상기 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정되는 것을 특징으로 하는 장치.And an MMVD offset range applied to the motion vector is determined based on the AMVR index and the size of the current block.
  15. 컴퓨팅 디바이스의 하나 이상의 프로세서에서 실행하도록 구성된 컴퓨터 실행 가능한 컴포넌트가 저장된 비 일시적(non-transitory) 컴퓨터 판독 가능한 매체(computer-executable component)로서, 상기 컴퓨터 실행 가능한 컴포넌트는,A non-transitory computer-executable component storing computer executable components configured to execute on one or more processors of a computing device, the computer executable components comprising:
    머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 움직임 벡터를 획득하고,A motion vector for inter-frame prediction of the current block is obtained from at least one neighboring block adjacent to the current block based on the merge index,
    AMVR(adaptive motion vector resolution) 인덱스 및 MMVD(merge motion vector difference) 길이(distance) 인덱스에 기반하여, 상기 움직임 벡터에 적용되는 MMVD 오프셋을 결정하고,Based on the adaptive motion vector resolution (AMVR) index and the merge motion vector difference (MMVD) distance index, an MMVD offset applied to the motion vector is determined,
    상기 MMVD 오프셋이 적용된 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성도록 설정되며,It is set to generate a prediction sample of the current block based on a motion vector to which the MMVD offset is applied and a reference picture associated with the merge index,
    상기 AMVR 인덱스는, MMVD 오프셋 값들의 해상도에 기반하여 사전에 결정된 MMVD 후보 집합들 중 하나와 관련되고,The AMVR index is associated with one of the predetermined MMVD candidate sets based on the resolution of the MMVD offset values,
    상기 MMVD 길이 인덱스는, 상기 AMVR 인덱스와 관련된 MMVD 후보 집합에서 상기 움직임 벡터에 적용될 MMVD 오프셋 값을 지시하는 것을 특징으로 하는 비 일시적 컴퓨터 판독 가능한 매체.The MMVD length index indicates an MMVD offset value to be applied to the motion vector in a set of MMVD candidates associated with the AMVR index.
PCT/KR2019/017779 2018-12-16 2019-12-16 Method and apparatus for processing video signal by using inter prediction WO2020130520A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201862780313P 2018-12-16 2018-12-16
US62/780,313 2018-12-16

Publications (1)

Publication Number Publication Date
WO2020130520A1 true WO2020130520A1 (en) 2020-06-25

Family

ID=71101458

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/017779 WO2020130520A1 (en) 2018-12-16 2019-12-16 Method and apparatus for processing video signal by using inter prediction

Country Status (1)

Country Link
WO (1) WO2020130520A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11310508B2 (en) * 2018-12-21 2022-04-19 Beijing Bytedance Network Technology Co., Ltd. Motion vector precision in merge with motion vector difference mode
US11706443B2 (en) 2018-11-17 2023-07-18 Beijing Bytedance Network Technology Co., Ltd Construction of affine candidates in video processing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140136413A (en) * 2011-09-09 2014-11-28 주식회사 케이티 Methods of decision of candidate block on inter prediction and appratuses using the same
KR101748620B1 (en) * 2014-06-20 2017-07-04 성균관대학교산학협력단 Video encoding and decoding method and apparatus using the same
KR20170108010A (en) * 2015-01-26 2017-09-26 퀄컴 인코포레이티드 Sub-prediction unit based advanced temporal motion vector prediction
US20170332099A1 (en) * 2016-05-13 2017-11-16 Qualcomm Incorporated Merge candidates for motion vector prediction for video coding
KR20180107687A (en) * 2017-03-22 2018-10-02 에스케이텔레콤 주식회사 Method and Apparatus for Encoding and Decoding Motion Vector

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140136413A (en) * 2011-09-09 2014-11-28 주식회사 케이티 Methods of decision of candidate block on inter prediction and appratuses using the same
KR101748620B1 (en) * 2014-06-20 2017-07-04 성균관대학교산학협력단 Video encoding and decoding method and apparatus using the same
KR20170108010A (en) * 2015-01-26 2017-09-26 퀄컴 인코포레이티드 Sub-prediction unit based advanced temporal motion vector prediction
US20170332099A1 (en) * 2016-05-13 2017-11-16 Qualcomm Incorporated Merge candidates for motion vector prediction for video coding
KR20180107687A (en) * 2017-03-22 2018-10-02 에스케이텔레콤 주식회사 Method and Apparatus for Encoding and Decoding Motion Vector

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11706443B2 (en) 2018-11-17 2023-07-18 Beijing Bytedance Network Technology Co., Ltd Construction of affine candidates in video processing
US11831901B2 (en) 2018-11-17 2023-11-28 Beijing Bytedance Network Technology Co., Ltd Generalized bi directional prediction mode in video processing
US11310508B2 (en) * 2018-12-21 2022-04-19 Beijing Bytedance Network Technology Co., Ltd. Motion vector precision in merge with motion vector difference mode

Similar Documents

Publication Publication Date Title
WO2020141954A1 (en) Method and apparatus for processing video data
WO2020184991A1 (en) Method and apparatus for video encoding/decoding using ibc mode, and method for transmitting bitstream
WO2020017861A1 (en) Inter-prediction method for temporal motion information prediction in sub-block unit, and device therefor
WO2020141889A1 (en) Method and device for processing video signal by using inter prediction
WO2019203610A1 (en) Method for processing image and device therefor
WO2020130617A1 (en) Method and apparatus for processing video data
WO2020017892A1 (en) Method for predicting subblock-based temporal motion vector and apparatus therefor
WO2021137597A1 (en) Image decoding method and device using dpb parameter for ols
WO2019235822A1 (en) Method and device for processing video signal by using affine motion prediction
WO2020141879A1 (en) Affine motion prediction-based video decoding method and device using subblock-based temporal merge candidate in video coding system
WO2020167097A1 (en) Derivation of inter-prediction type for inter prediction in image coding system
WO2020171673A1 (en) Video signal processing method and apparatus for intra prediction
WO2020256506A1 (en) Video encoding/decoding method and apparatus using multiple reference line intra-prediction, and method for transmitting bitstream
WO2019199093A1 (en) Intra prediction mode-based image processing method and device therefor
WO2020130520A1 (en) Method and apparatus for processing video signal by using inter prediction
WO2021091256A1 (en) Image/video coding method and device
WO2021034161A1 (en) Intra prediction device and method
WO2021040398A1 (en) Image or video coding based on palette escape coding
WO2020251270A1 (en) Image or video coding based on temporal motion information in units of subblocks
WO2020145620A1 (en) Intra prediction-based image coding method and device using mpm list
WO2019245228A1 (en) Method and device for processing video signal using affine motion prediction
WO2019103542A1 (en) Intra-prediction mode-based image processing method, and device therefor
WO2021040402A1 (en) Image or video coding based on palette coding
WO2021034160A1 (en) Matrix intra prediction-based image coding apparatus and method
WO2020101385A1 (en) Method and device for processing video data

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19898218

Country of ref document: EP

Kind code of ref document: A1