WO2019203504A1 - Method and apparatus for reducing storage space for motion information in video processing system - Google Patents

Method and apparatus for reducing storage space for motion information in video processing system Download PDF

Info

Publication number
WO2019203504A1
WO2019203504A1 PCT/KR2019/004401 KR2019004401W WO2019203504A1 WO 2019203504 A1 WO2019203504 A1 WO 2019203504A1 KR 2019004401 W KR2019004401 W KR 2019004401W WO 2019203504 A1 WO2019203504 A1 WO 2019203504A1
Authority
WO
WIPO (PCT)
Prior art keywords
motion information
block
storage unit
information storage
subblocks
Prior art date
Application number
PCT/KR2019/004401
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 WO2019203504A1 publication Critical patent/WO2019203504A1/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/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/109Selection of coding mode or of prediction mode among a plurality of temporal predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/43Hardware specially adapted for motion estimation or compensation
    • H04N19/433Hardware specially adapted for motion estimation or compensation characterised by techniques for memory access
    • 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

Definitions

  • the present invention relates to video coding techniques, and more particularly, to a method and apparatus for reducing storage space for motion information in a video processing system.
  • the demand for high resolution and high quality images such as high definition (HD) images and ultra high definition (UHD) images is increasing in various fields.
  • the higher the resolution and the higher quality of the image data the more information or bit rate is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost are increased.
  • a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
  • An object of the present invention is to provide a method and apparatus for improving video coding efficiency.
  • Another object of the present invention is to provide a method and apparatus for reducing a storage space for motion information in a video processing system.
  • Another technical problem of the present invention is to provide a method and apparatus for reducing a storage space for motion information using a motion information storage unit.
  • Another object of the present invention is to provide a method and apparatus for reducing storage space and improving prediction performance by storing motion information of a block coded in an affine mode among a plurality of blocks as representative motion information.
  • Another technical problem of the present invention is to provide a method and apparatus for reducing storage space and improving prediction performance by storing motion information of a block including a control point among a plurality of blocks coded in affine mode as representative motion information. have.
  • Another object of the present invention is to provide a method and apparatus for improving prediction performance by deriving motion information of a block including a control point from among a plurality of blocks coded in the affine mode from motion information of the control point.
  • the decoding method may include: deriving a motion information candidate list of the current block based on spatial neighboring blocks and temporal neighboring blocks; deriving motion information of the current block based on the motion information candidate list; Deriving a predicted block for the current block based on information, and reconstructing a current picture based on the predicted block, wherein the motion information candidate list includes a temporal candidate and includes the temporal candidate Is derived based on the temporal neighboring block in the reference picture, the reference picture includes a plurality of motion information storage units, and the temporal candidate is a motion in which the temporal neighboring block in the reference picture is located.
  • motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. It is characterized by.
  • the encoding method may include deriving a motion information candidate list of a current block based on spatial neighboring blocks and temporal neighboring blocks, and selecting information indicating one of candidates included in the motion information candidate list based on the motion information candidate list. And encoding and outputting the image information including the selection information into a bitstream, wherein the motion information candidate list includes a temporal candidate, and the temporal candidate is the temporal neighboring block in a reference picture.
  • the reference picture includes a plurality of motion information storage units, and the temporal candidate is based on motion information of a motion information storage unit in which the temporal neighboring block in the reference picture is located. Derived, and the movement When the information storage unit overlaps a plurality of blocks in the reference picture, motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. do.
  • Another embodiment of the present invention provides a decoding apparatus for performing video decoding.
  • the decoding apparatus derives a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block, derives the motion information of the current block based on the motion information candidate list, and extracts the derived motion information.
  • the reference picture includes a plurality of motion information storage units, and the temporal candidate stores motion information in which the temporal neighboring block in the reference picture is located Derived based on the motion information of the unit, and
  • motion information storage unit overlaps a plurality of blocks in the reference picture, motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. It is done.
  • the encoding apparatus derives a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block, and selects information indicating one of candidates included in the motion information candidate list based on the motion information candidate list.
  • an entropy encoding unit for encoding and outputting the image information including the selection information to the bitstream, wherein the motion information candidate list includes a temporal candidate, and the temporal candidate is the temporal neighboring block in the reference picture.
  • the reference picture includes a plurality of motion information storage units, and the temporal candidate is based on motion information of a motion information storage unit in which the temporal neighboring block in the reference picture is located.
  • motion information storage unit overlaps a plurality of blocks in the reference picture, it is determined that motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. It features.
  • a storage space occupied by motion information in a buffer may be reduced during inter prediction.
  • the overall coding efficiency can be improved by reducing the storage space occupied by the motion information in the buffer.
  • FIG. 1 is a block diagram schematically illustrating a video encoding apparatus according to an embodiment of the present invention.
  • FIG. 2 is a block diagram schematically illustrating a video decoding apparatus according to an embodiment of the present invention.
  • FIG. 3 exemplarily illustrates a content streaming system according to an embodiment of the present invention.
  • 5A and 5B exemplarily illustrate a four-parameter affine model and a six-parameter affine model according to an embodiment of the present invention.
  • FIG. 6 exemplarily illustrates a case where the affine motion vector field is determined in subblock units according to an embodiment of the present invention.
  • FIG. 7 exemplarily illustrates a control point motion vector and an affine motion vector field according to an embodiment of the present invention.
  • FIG. 8 exemplarily illustrates an affine motion vector field in which a motion vector of some subblocks is replaced with a control point motion vector according to an embodiment of the present invention.
  • 10A and 10B exemplarily illustrate a motion vector field including an affine block and a non-affine block according to an embodiment of the present invention.
  • FIG. 11 schematically illustrates a video encoding method by an encoding apparatus according to an embodiment of the present invention.
  • FIG. 12 schematically illustrates a video decoding method by a decoding apparatus according to an embodiment of the present invention.
  • each of the components in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions in the video encoding apparatus / decoding apparatus, each component is a separate hardware or separate software It does not mean that it is implemented.
  • two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations.
  • Embodiments in which each configuration is integrated and / or separated are also included in the present invention without departing from the spirit of the present invention.
  • each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented by separate hardware or separate software.
  • two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations.
  • Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.
  • VVC Versatile Video Coding
  • HEVC High Efficiency Video Coding
  • a video may mean a series of images over time.
  • a picture generally refers to a unit representing one image in a specific time zone, and a slice is a unit constituting a part of a picture in coding.
  • One picture may be composed of a plurality of slices, and if necessary, the picture and the slice may be mixed with each other.
  • a pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel.
  • a sample may generally represent a pixel or a value of a pixel, and may only represent pixel / pixel values of the luma component, or only pixel / pixel values of the chroma component.
  • a unit represents the basic unit of image processing.
  • the unit may include at least one of a specific region of the picture and information related to the region.
  • the unit may be used interchangeably with terms such as block or area in some cases.
  • an M ⁇ N block may represent a set of samples or transform coefficients composed of M columns and N rows.
  • FIG. 1 is a block diagram schematically illustrating a video encoding apparatus according to an embodiment of the present invention.
  • the encoding / decoding device may include a video encoding / decoding device and / or an image encoding / decoding device, and the video encoding / decoding device is used as a concept including the image encoding / decoding device, or the image encoding / decoding device is It may be used in a concept including a video encoding / decoding device.
  • the (video) encoding apparatus 100 may include a picture partitioning module 105, a prediction module 110, a residual processing module 120, and an entropy encoding unit (
  • the entropy encoding module 130 may include an adder 140, a filtering module 150, and a memory 160.
  • the residual processor 120 may include a substractor 121, a transform module 122, a quantization module 123, a rearrangement module 124, and a dequantization module 125. ) And an inverse transform module 126.
  • the picture divider 105 may divide the input picture into at least one processing unit.
  • the processing unit may be called a coding unit (CU).
  • the coding unit may be recursively divided according to a quad-tree binary-tree (QTBT) structure from a largest coding unit (LCU).
  • QTBT quad-tree binary-tree
  • LCU largest coding unit
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure, a binary tree structure, and / or a ternary tree structure.
  • the quad tree structure may be applied first, and the binary tree structure and the ternary tree structure may be applied later.
  • the binary tree structure / tunary tree structure may be applied first.
  • the coding procedure according to the present invention may be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
  • a coding unit of size may be used as the final coding unit.
  • the coding procedure may include a procedure of prediction, transform, and reconstruction, which will be described later.
  • the processing unit may include a coding unit (CU) prediction unit (PU) or a transform unit (TU).
  • the coding unit may be split from the largest coding unit (LCU) into coding units of deeper depths along the quad tree structure.
  • LCU largest coding unit
  • the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
  • a coding unit of size may be used as the final coding unit. If a smallest coding unit (SCU) is set, the coding unit may not be split into smaller coding units than the minimum coding unit.
  • the final coding unit refers to a coding unit that is the basis of partitioning or partitioning into a prediction unit or a transform unit.
  • the prediction unit is a unit partitioning from the coding unit and may be a unit of sample prediction. In this case, the prediction unit may be divided into sub blocks.
  • the transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
  • a coding unit may be called a coding block (CB)
  • a prediction unit is a prediction block (PB)
  • a transform unit may be called a transform block (TB).
  • a prediction block or prediction unit may mean a specific area in the form of a block within a picture, and may include an array of prediction samples.
  • a transform block or a transform unit may mean a specific area in a block form within a picture, and may include an array of transform coefficients or residual samples.
  • the prediction unit 110 performs prediction on a block to be processed (hereinafter, may mean a current block or a residual block), and generates a predicted block including prediction samples for the current block. can do.
  • the unit of prediction performed by the prediction unit 110 may be a coding block, a transform block, or a prediction block.
  • the prediction unit 110 may determine whether intra prediction or inter prediction is applied to the current block. As an example, the prediction unit 110 may determine whether intra prediction or inter prediction is applied on a CU basis.
  • the prediction unit 110 may derive a prediction sample for the current block based on reference samples outside the current block in the picture to which the current block belongs (hereinafter, referred to as the current picture). In this case, the prediction unit 110 may (i) derive the prediction sample based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighbor reference of the current block.
  • the prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample among the samples. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode.
  • the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes.
  • the non-directional mode may include a DC prediction mode and a planner mode (Planar mode).
  • the prediction unit 110 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the prediction unit 110 may derive the prediction sample for the current block based on the sample specified by the motion vector on the reference picture.
  • the prediction unit 110 may apply one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode to derive a prediction sample for the current block.
  • the prediction unit 110 may use the motion information of the neighboring block as the motion information of the current block.
  • the skip mode unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted.
  • the MVP mode the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • a reference picture including the temporal neighboring block may be called a collocated picture (colPic).
  • the motion information may include a motion vector and a reference picture index.
  • Information such as prediction mode information and motion information may be encoded (entropy) and output in the form of a bitstream.
  • the highest picture on the reference picture list may be used as the reference picture.
  • Reference pictures included in a reference picture list may be sorted based on a difference in a picture order count (POC) between a current picture and a corresponding reference picture.
  • POC picture order count
  • the subtraction unit 121 generates a residual sample which is a difference between the original sample and the prediction sample.
  • residual samples may not be generated as described above.
  • the transform unit 122 generates transform coefficients by transforming the residual sample in units of transform blocks.
  • the transform unit 122 may perform the transform according to the size of the transform block and the prediction mode applied to the coding block or the prediction block that spatially overlaps the transform block. For example, if intra prediction is applied to the coding block or the prediction block that overlaps the transform block, and the transform block is a residual array of 4 ⁇ 4, the residual sample is obtained by using a discrete sine transform (DST) transform kernel. In other cases, the residual sample may be transformed using a discrete cosine transform (DCT) transform kernel.
  • DST discrete sine transform
  • DCT discrete cosine transform
  • the quantization unit 123 may quantize the transform coefficients to generate quantized transform coefficients.
  • the reordering unit 124 rearranges the quantized transform coefficients.
  • the reordering unit 124 may reorder the quantized transform coefficients in the form of a block into a one-dimensional vector form through a coefficient scanning method. Although the reordering unit 124 has been described in a separate configuration, the reordering unit 124 may be part of the quantization unit 123.
  • the entropy encoding unit 130 may perform entropy encoding on the quantized transform coefficients.
  • Entropy encoding may include, for example, encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like.
  • the entropy encoding unit 130 may encode information necessary for video reconstruction other than the quantized transform coefficients (for example, a value of a syntax element) together or separately according to entropy encoding or a predetermined method.
  • the encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
  • the bitstream may be transmitted over a network or may be stored in a digital storage medium.
  • the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like.
  • the inverse quantization unit 125 inversely quantizes the quantized values (quantized transform coefficients) in the quantization unit 123, and the inverse transformer 126 inversely transforms the inverse quantized values in the inverse quantization unit 125 to generate a residual sample.
  • the adder 140 reconstructs the picture by combining the residual sample and the predictive sample.
  • the residual sample and the predictive sample may be added in units of blocks to generate a reconstructed block.
  • the adder 140 may be part of the predictor 110.
  • the adder 140 may also be called a reconstruction module or a restore block generator.
  • the filter unit 150 may apply a deblocking filter and / or a sample adaptive offset to the reconstructed picture. Through deblocking filtering and / or sample adaptive offset, the artifacts of the block boundaries in the reconstructed picture or the distortion in the quantization process can be corrected.
  • the sample adaptive offset may be applied on a sample basis and may be applied after the process of deblocking filtering is completed.
  • the filter unit 150 may apply an adaptive loop filter (ALF) to the reconstructed picture. ALF may be applied to the reconstructed picture after the deblocking filter and / or sample adaptive offset is applied.
  • ALF adaptive loop filter
  • the memory 160 may store reconstructed pictures (decoded pictures) or information necessary for encoding / decoding.
  • the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 150.
  • the stored reconstructed picture may be used as a reference picture for (inter) prediction of another picture.
  • the memory 160 may store (reference) pictures used for inter prediction.
  • pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
  • FIG. 2 is a block diagram schematically illustrating a video decoding apparatus according to an embodiment of the present invention.
  • the video decoding apparatus may include an image decoding apparatus.
  • the video decoding apparatus 200 may include an entropy decoding module 210, a residual processing module 220, a prediction module 230, and an adder 240. ), A filtering module 250, and a memory 260.
  • the residual processor 220 may include a rearrangement module 221, a dequantization module 222, and an inverse transform module 223.
  • the video decoding apparatus 200 may include a receiver that receives a bitstream including video information. The receiver may be configured as a separate module or may be included in the entropy decoding unit 210.
  • the video decoding apparatus 200 may reconstruct a video / image / picture in response to a process in which video / image information is processed in the video encoding apparatus.
  • the video decoding apparatus 200 may perform video decoding using a processing unit applied in the video encoding apparatus.
  • the processing unit block of video decoding may be, for example, a coding unit, and in another example, a coding unit, a prediction unit, or a transform unit.
  • the coding unit may be split along the quad tree structure, binary tree structure and / or ternary tree structure from the largest coding unit.
  • the prediction unit and the transform unit may be further used in some cases, in which case the prediction block is a block derived or partitioned from the coding unit and may be a unit of sample prediction. At this point, the prediction unit may be divided into subblocks.
  • the transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient or a unit for deriving a residual signal from the transform coefficient.
  • the entropy decoding unit 210 may parse the bitstream and output information necessary for video reconstruction or picture reconstruction. For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for video reconstruction, and transform coefficients for residuals. Can be output.
  • a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for video reconstruction, and transform coefficients for residuals. Can be output.
  • the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step.
  • the context model is determined using the context model, the probability of occurrence of a bin is predicted according to the determined context model, and arithmetic decoding of the bin is performed to generate a symbol corresponding to the value of each syntax element. can do.
  • the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model.
  • the information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the prediction unit 230, and the residual value on which the entropy decoding has been performed by the entropy decoding unit 210, that is, the quantized transform coefficient, is used as a reordering unit ( 221 may be input.
  • the reordering unit 221 may rearrange the quantized transform coefficients in a two-dimensional block form.
  • the reordering unit 221 may perform reordering in response to coefficient scanning performed by the encoding apparatus.
  • the rearrangement unit 221 has been described in a separate configuration, but the rearrangement unit 221 may be part of the inverse quantization unit 222.
  • the inverse quantization unit 222 may dequantize the quantized transform coefficients based on the (inverse) quantization parameter and output the transform coefficients.
  • information for deriving a quantization parameter may be signaled from the encoding apparatus.
  • the inverse transform unit 223 may inversely transform transform coefficients to derive residual samples.
  • the prediction unit 230 may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the unit of prediction performed by the prediction unit 230 may be a coding block, a transform block, or a prediction block.
  • the prediction unit 230 may determine whether to apply intra prediction or inter prediction based on the information about the prediction.
  • a unit for determining which of intra prediction and inter prediction is to be applied and a unit for generating a prediction sample may be different.
  • the unit for generating a prediction sample in inter prediction and intra prediction may also be different.
  • whether to apply inter prediction or intra prediction may be determined in units of CUs.
  • a prediction mode may be determined and a prediction sample may be generated in PU units
  • intra prediction a prediction mode may be determined in PU units and a prediction sample may be generated in TU units.
  • the prediction unit 230 may derive the prediction sample for the current block based on the neighbor reference samples in the current picture.
  • the prediction unit 230 may derive the prediction sample for the current block by applying the directional mode or the non-directional mode based on the neighbor reference samples of the current block.
  • the prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
  • the prediction unit 230 may derive the prediction sample for the current block based on the sample specified on the reference picture by the motion vector on the reference picture.
  • the prediction unit 230 may apply any one of a skip mode, a merge mode, and an MVP mode to derive a prediction sample for the current block.
  • motion information required for inter prediction of the current block provided by the video encoding apparatus for example, information about a motion vector, a reference picture index, and the like may be obtained or derived based on the prediction information.
  • the motion information of the neighboring block may be used as the motion information of the current block.
  • the neighboring block may include a spatial neighboring block and a temporal neighboring block.
  • the prediction unit 230 may construct a merge candidate list using motion information of available neighboring blocks, and may use information indicated by the merge index on the merge candidate list as a motion vector of the current block.
  • the merge index may be signaled from the encoding device.
  • the motion information may include a motion vector and a reference picture. When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture.
  • the difference (residual) between the prediction sample and the original sample is not transmitted.
  • the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
  • the neighboring block may include a spatial neighboring block and a temporal neighboring block.
  • a merge candidate list may be generated by using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block.
  • the motion vector of the candidate block selected from the merge candidate list is used as the motion vector of the current block.
  • the information about the prediction may include a merge index indicating a candidate block having an optimal motion vector selected from candidate blocks included in the merge candidate list.
  • the prediction unit 230 may derive the motion vector of the current block by using the merge index.
  • a motion vector predictor candidate list may be generated using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block.
  • the prediction information may include a prediction motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list.
  • the prediction unit 230 may select the predicted motion vector of the current block from the motion vector candidates included in the motion vector candidate list using the motion vector index.
  • the prediction unit of the encoding apparatus may obtain a motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, and may encode the output vector in a bitstream form. That is, MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block.
  • the prediction unit 230 may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block by adding the motion vector difference and the motion vector predictor.
  • the prediction unit may also obtain or derive a reference picture index or the like indicating a reference picture from the information about the prediction.
  • the adder 240 may reconstruct the current block or the current picture by adding the residual sample and the predictive sample.
  • the adder 240 may reconstruct the current picture by adding the residual sample and the predictive sample in block units. Since the residual is not transmitted when the skip mode is applied, the prediction sample may be a reconstruction sample.
  • the adder 240 has been described in a separate configuration, the adder 240 may be part of the predictor 230.
  • the adder 240 may also be called a reconstruction module or a reconstruction block generator.
  • the filter unit 250 may apply the deblocking filtering sample adaptive offset, and / or ALF to the reconstructed picture.
  • the sample adaptive offset may be applied in units of samples and may be applied after deblocking filtering.
  • ALF may be applied after deblocking filtering and / or sample adaptive offset.
  • the memory 260 may store reconstructed pictures (decoded pictures) or information necessary for decoding.
  • the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 250.
  • the memory 260 may store pictures used for inter prediction.
  • pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
  • the reconstructed picture can be used as a reference picture for another picture.
  • the memory 260 may output the reconstructed picture in an output order.
  • a predicted block including prediction samples of the current block which is a coding target block
  • the predicted block comprises prediction samples in the spatial domain (or pixel domain).
  • the predicted block is derived identically in the encoding apparatus and the decoding apparatus, and the encoding apparatus decodes information (residual information) about the residual between the original block and the predicted block, not the original sample value itself of the original block. Signaling to an apparatus may increase image coding efficiency.
  • the decoding apparatus may derive a residual block including residual samples based on the residual information, generate the reconstructed block including reconstructed samples by adding the residual block and the predicted block, and generate reconstructed blocks. A reconstructed picture may be generated.
  • the residual information may be generated through a transform and quantization procedure.
  • the encoding apparatus derives a residual block between the original block and the predicted block, and performs transform procedure on residual samples (residual sample array) included in the residual block to derive transform coefficients.
  • the quantized transform coefficients may be derived by performing a quantization procedure on the transform coefficients to signal related residual information to the decoding device (via a bitstream).
  • the residual information may include information such as value information of the quantized transform coefficients, position information, a transform scheme, a transform kernel, and a quantization parameter.
  • the decoding apparatus may perform an inverse quantization / inverse transformation procedure and derive residual samples (or residual blocks) based on the residual information.
  • the decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block.
  • the encoding apparatus may then dequantize / inverse transform the quantized transform coefficients for reference for inter prediction of the picture to derive a residual block, and generate a reconstructed picture based thereon.
  • FIG. 3 exemplarily illustrates a content streaming system according to an embodiment of the present invention.
  • the embodiments described in the present invention may be implemented and performed on a processor, a microprocessor, a controller, or a chip.
  • the functional units shown in each drawing may be implemented and performed on a computer, processor, microprocessor, controller, or chip.
  • information for implementation (ex. Information on instructions) or an algorithm may be stored in a digital storage medium.
  • the decoding apparatus and encoding apparatus to which the present invention is applied include a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real time communication device such as video communication, and mobile streaming.
  • the OTT video device may include a game console, a Blu-ray player, an internet access TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), and the like.
  • the processing method to which the present invention is applied can be produced in the form of a program executed by a computer, and can be stored in a computer-readable recording medium.
  • Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium.
  • the computer readable recording medium includes all kinds of storage devices and distributed storage devices in which computer readable data is stored.
  • the computer-readable recording medium may be, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical disc. It may include a data storage device.
  • the computer-readable recording medium also includes media embodied in the form of a carrier wave (eg, transmission over the Internet).
  • the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
  • an embodiment of the present invention may be implemented as a computer program product by program code, which may be performed on a computer by an embodiment of the present invention.
  • the program code may be stored on a carrier readable by a computer.
  • the content streaming system to which the present invention is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
  • the encoding server compresses content input from multimedia input devices such as a smart phone, a camera, a camcorder, etc. into digital data to generate a bitstream and transmit the bitstream to the streaming server.
  • multimedia input devices such as smart phones, cameras, camcorders, etc. directly generate a bitstream
  • the encoding server may be omitted.
  • the bitstream may be generated by an encoding method or a bitstream generation method to which the present invention is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
  • the streaming server transmits the multimedia data to the user device based on the user's request through the web server, and the web server serves as a medium for informing the user of what service.
  • the web server delivers it to a streaming server, and the streaming server transmits multimedia data to the user.
  • the content streaming system may include a separate control server.
  • the control server plays a role of controlling a command / response between devices in the content streaming system.
  • the streaming server may receive content from a media store and / or an encoding server. For example, when the content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
  • Examples of the user device include a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PCs, ultrabooks, wearable devices, such as smartwatches, glass glasses, head mounted displays, digital TVs, desktops Computer, digital signage, and the like.
  • PDA personal digital assistant
  • PMP portable multimedia player
  • slate PC slate PC
  • Tablet PCs ultrabooks
  • wearable devices such as smartwatches, glass glasses, head mounted displays, digital TVs, desktops Computer, digital signage, and the like.
  • Each server in the content streaming system may be operated as a distributed server, in which case data received from each server may be distributed.
  • inter prediction modes may be used for prediction of the current block in the picture.
  • various modes such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, and historical motino vector prediction (HMVP) mode
  • DMVR Decoder side motion vector refinement
  • AMVR adaptive motion vector resolution
  • the affine mode may be called an affine motion prediction mode.
  • MVP mode may be referred to as advanced motion vector prediction (AMVP) mode.
  • motion information candidates derived by some modes and / or some modes may be included as one of motion information candidates of other modes.
  • Prediction mode information indicating the inter prediction mode of the current block may be signaled from the encoding device to the decoding device.
  • the prediction mode information may be included in the bitstream and received by the decoding apparatus.
  • 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. For example, a skip flag is signaled to indicate whether a skip mode is applied, and if a skip mode is not applied, a merge flag is signaled to indicate whether a merge mode is applied, and if a merge mode is not applied, an MVP mode is applied. Or may further signal a flag for additional classification.
  • the affine mode may be signaled in an independent mode, or may be signaled in a mode dependent on a merge mode or an MVP mode.
  • the affine mode may include an affine merge mode and an affine MVP mode.
  • Inter prediction may be performed using motion information of the current block.
  • the encoding apparatus may derive optimal motion information for the current block through a motion estimation procedure. For example, the encoding apparatus may search for a similar reference block having a high correlation using the original block in the original picture for the current block in fractional pixel units within a predetermined search range in the reference picture, thereby deriving motion information.
  • Similarity of blocks 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 absorptive 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.
  • an affine mode or an affine motion prediction mode that encodes using an affine motion model capable of determining an optimal motion vector in a pixel unit may be used.
  • the affine mode may determine an optimal motion vector in subblock units of the current block in order to further improve coding efficiency.
  • the affine motion prediction mode may represent a motion vector in each pixel unit of a block by using two, three, or four motion vectors.
  • the affine motion model may include four motion models, but since this is an exemplary motion model, the scope of the present invention is not limited thereto.
  • the four movements described above may include translation, scale, rotation, and shear.
  • 5A and 5B exemplarily illustrate a four-parameter affine model and a six-parameter affine model according to an embodiment of the present invention.
  • a control point may be defined to use an affine motion model, and two or more control point motion vectors (CPMVs) may be defined.
  • the motion vector of the pixel position or the subblock included in the block can be determined by using.
  • the set of pixel positions or motion vectors of the sub-blocks may be referred to as an affine Motion Vector Field (affine MVF).
  • the 4-parameter affine model may mean a model for determining a motion vector of a pixel position or a subblock using two CPMVs, and the motion vectors or affine motion of the pixel position or a subblock.
  • the vector field may be derived as shown in Equation 1.
  • the 6-parameter affine model may mean a model for determining a motion vector of a pixel position or a subblock using three CPMV motion vectors, and the motion vectors or the affinity of the pixel position or subblock.
  • the motion vector field may be derived as shown in Equation 2.
  • Equation 1 and Equation 2 v 0x, v 0y is the CP CPMV of the upper left corner position of the current block, v 1x, v 1y are the CP CPMV of the upper right corner position of the current block, v 2x, v 2y is It may indicate the CPMV of the CP of the lower left corner of the current block.
  • W may represent the width of the current block, H may represent the height of the current block.
  • v x , v y may represent a motion vector of a pixel at the (x, y) position or a subblock including the (x, y) position.
  • FIG. 6 exemplarily illustrates a case where the affine motion vector field is determined in subblock units according to an embodiment of the present invention.
  • the affinity motion vector field may be determined in a previously defined subblock unit, or may be determined in a pixel unit unlike FIG.
  • the motion vector may be determined based on each pixel value, and when determined in units of subblocks, the motion vector is the center of the subblock (lower right center, that is, four centers). The right lower sample of the samples) may be determined based on the pixel value.
  • the affine mode may include an affine merge mode and an affine MVP mode.
  • the affine merge mode may derive the CPMV of the current block using the CPMV of the neighboring block coded in the affine mode, and when the motion vector is determined in units of subblocks, the affine merge mode is called a subblock merge mode. You may.
  • the encoding apparatus may signal an index for a neighboring block coded in the affine mode to derive the CPMV of the current block to the decoding apparatus, and further add a difference value between the CPMV of the neighboring block and the CPMV of the current block. It may signal.
  • the merge merge mode may configure the candidate merge list based on the neighboring block, and the index of the neighboring block may represent the neighboring block to be referred to to derive the CPMV of the current block among the merge merge candidate lists.
  • the affine merge candidate list may be referred to as a subblock merge candidate list.
  • the affine MVP mode may derive the CPMV of the current block based on a CPMVP (Control Point Motion Vector Predictor) and a CPMVD (Control Point Motion Vector Difference).
  • the encoding apparatus may determine the CPMVP for the CPMV of the current block, derive a CPMVD that is a difference between the CPMV and the CPMVP of the current block, and signal the information about the CPMVP and the information about the CPMVD to the decoding apparatus.
  • the affine MVP mode may configure the affine MVP candidate list based on the neighboring block, and the information on the CPMVP indicates a neighboring block to be referred to to derive the CPMVP of the CPMV of the current block among the affine MVP candidate lists.
  • the affine MVP mode may be referred to as an affine inter mode, and the affine MVP candidate list may be referred to as a control point motion vector predictor candidate list.
  • the affine candidate list may include an affine merge candidate list in the affine merge mode and an affine MVP candidate list in the affine MVP mode.
  • the candidate candidate list may be configured as candidates of neighboring blocks coded in the searched affine mode in a specific order, and the number of candidates may be predefined.
  • the candidate candidate list may be derived based on neighboring blocks.
  • the neighboring block may include a spatial neighboring block and a temporal neighboring block.
  • the affine candidate list may first include spatial candidates derived based on spatial neighboring blocks.
  • the affine candidate list may include a temporal candidate derived based on a temporal neighboring block when a predefined number of candidates is less than a spatial candidate only.
  • the affine candidate list may further include a zero motion vector when the number of candidates predefined by the spatial candidates and the temporal candidates is less than the candidate candidate list.
  • the spatial neighboring block may mean a block decoded before the current block, and the temporal neighboring block may include a block at the same position as the current block in the reference picture decoded before the picture including the current block.
  • the temporal neighboring block may refer to the above-described Col block.
  • motion information of a reference picture may need to be stored in a memory.
  • TMVP temporal motion vector prediction
  • Temporal Motion Vector Prediction may be used to improve coding efficiency.
  • Motion information in a reference picture or reference frame for a TMVP may include a motion vector (MV) and a reference frame index, and the motion vector may be an alternate temporal motion vector (ATMVP) or a spatial-temporal (STMVP).
  • MV motion vector
  • ATMVP alternate temporal motion vector
  • STMVP spatial-temporal
  • It can be derived at the 4 x 4 block level by several coding tools, such as Motion Vector Prediction, affine prediction, and Pattern Matched Motion Vector Derivation (PMMVD), so 4 x instead of 8 x 8 or higher block levels. Can be stored at 4 block levels. Therefore, since motion information in a reference frame for TMVP may occupy a considerable amount of bits in the memory storage, it may be required to be compressed and stored in the reference frame buffer.
  • PMMVD Pattern Matched Motion Vector Derivation
  • One embodiment of the present invention may propose a method of reducing a storage space for motion information by using a motion information storage unit.
  • An embodiment of the present invention may store motion information of a reference frame in a buffer through the motion information storage unit to reduce the storage space for the motion information.
  • the motion information storage unit may be defined as a unit unit for a block level in which one motion vector is stored.
  • the motion information storage unit may have an N ⁇ N size (N is a number greater than 4 or a large natural number), and in the description of the present invention, the motion information storage unit may be referred to as an N ⁇ N block.
  • the motion information of the 4 x 4 block located in the upper left in the N x N block may be stored in the memory storage.
  • the position of the 4 ⁇ 4 block may be located at the top right or the center in addition to the top left, but is not limited thereto. Other positions may be predefined.
  • the motion vector of the first scanned 4 ⁇ 4 block having a reference index on a predefined scan order of 0 may be used. If there is no motion vector having a reference index of 0, a motion vector scaled with a reference index of 0 may be stored.
  • a representative reference frame index may be selected at the frame level, and then a motion vector of a predefined position of a 4 ⁇ 4 block may be scaled and stored according to the representative reference frame.
  • the representative reference frame may be selected as the most generated reference frame, and one flag may be signaled to indicate the representative reference frame at the frame level.
  • the above-described process may be used at the CTU level, slice level, or picture level.
  • the representative reference frame index may be set to zero. In this case, a flag indicating a representative reference frame index may not be required.
  • an average or median motion vector may be used instead of selecting one motion vector in the N ⁇ N block.
  • a method of reducing storage space for motion information when using affine prediction, may be as follows.
  • FIG. 7 exemplarily illustrates a control point motion vector and an affine motion vector field according to an embodiment of the present invention.
  • Affine prediction may use two types of motion vectors, such as a set of control point motion vectors (CPMVs) and an affine motion vector field (MVF).
  • CPMVs control point motion vectors
  • MVF affine motion vector field
  • control point motion vectors may be motion vectors at four corner points of a coding block for generating an affine motion model
  • the affine MVF field is It may be a set of motion vectors derived from an affine motion model determined based on control points.
  • the affine motion vector field is a set of motion vectors in a subblock unit
  • each motion vector may be determined based on the center position of the subblock.
  • the subblock may be a 4 ⁇ 4 block, but is not limited thereto.
  • the control points may include a top-left sample position, a top-right sample position, a bottom-left sample position, and a bottom-right sample. Each may be positioned at a sample position.
  • the control point at the upper left sample position is CP 0
  • the control point at the upper right sample position is CP 1
  • the control point at the lower left sample position is CP 2
  • the control point at the lower right sample position is CP 3 .
  • a block may be divided into 16 subblocks, and a motion vector of the subblock may be determined based on a center position of each subblock. Therefore, the control point motion vector may be different from the motion vector of the subblock including the control point.
  • FIG. 8 exemplarily illustrates an affine motion vector field in which a motion vector of some subblocks is replaced with a control point motion vector according to an embodiment of the present invention.
  • the affine motion vector field for a block may be determined and stored in a buffer for affine motion compensation during decoding.
  • the motion vector of four corner blocks including the control point may be replaced with the control point motion vector.
  • the motion vector of the upper left subblock including CP 0 is a motion vector of CP
  • the motion vector of the upper right subblock including CP 1 is a motion vector of CP 1
  • a motion vector of the lower left sub-block containing the CP 2 may be replaced by a motion vector of a CP 2
  • a block is coded with affine prediction, and the motion vector is N ⁇ N (N is a number greater than 4 or a natural number larger) to reduce the size of the MV buffer.
  • motion information may be stored according to a process as follows.
  • an affine block may mean a block coded by affine prediction.
  • motion information of the 4 ⁇ 4 block in the upper left corner of the N ⁇ N block may be stored as motion information of the corresponding motion information storage unit.
  • the control point motion vector (CPMV) of the CP is stored as the motion information of the corresponding motion information storage unit instead of the motion information of the 4 x 4 block in the upper left corner. Can be.
  • the motion vector of the center position of the motion information storage unit (N x N block) may be derived according to the affine motion model of the current block, and the derived motion vector is a motion vector of the motion information storage unit (N x N block). Can be stored.
  • the stored motion vector of the motion information storage unit containing the CP may or may not be replaced with CPVM.
  • a block size is 32 ⁇ 32 and N is 8 for convenience of description.
  • the block may include sixteen 8 ⁇ 8 motion information storage units, and the motion information storage units may each include four 4 ⁇ 4 subblocks.
  • the motion vector may exist per subblock.
  • the motion vectors of the 12 motion information storage units not including the CP among the 16 motion information storage units may be stored as the motion vectors of the 4 ⁇ 4 subblocks of the upper left corner.
  • the motion vectors of the four motion information storage units (blocks indicated by dotted lines) including the CP may be stored as the motion vectors of the 4 ⁇ 4 subblocks including the CP.
  • the motion vector of the 4x4 subblock including the CP may be replaced with a motion vector (CPMV) of the corresponding CP, and the CPMV may be stored as a motion vector of the motion information storage unit.
  • a block may include 16 motion information storage units, and motion vectors of gray areas of the 4 ⁇ 4 subblocks may be stored as motion vectors of 16 motion information storage units, respectively.
  • 10A and 10B exemplarily illustrate a motion vector field including an affine block and a non-affine block according to an embodiment of the present invention.
  • one motion information storage unit may include at least a portion of a block coded with affine prediction or a subblock and at least a portion of a block coded according to a method or mode other than affine prediction. It may be. Blocks shown in bold lines in FIGS. 10A and 10B may indicate a motion information storage unit.
  • the affine block may refer to at least a part or subblock of a block coded with affine prediction, and the non-affine block is coded according to a method or mode other than affine prediction. It may refer to at least a portion of the block.
  • the motion vector of the N x N block is a pre-defined position.
  • the motion vector, the average motion vector, or the median motion vector may be selected.
  • the motion vector of the N x N block is the priority of the affine subblock for storage in the buffer. Can be selected as a vector.
  • the position of the CP may be considered.
  • the position of the CP may be considered in the motion vector of the affine block in FIG. 10A.
  • storage in the motion vector buffer may be considered in the motion vector buffer in the motion vector buffer in the motion vector buffer in the motion vector buffer in the motion vector buffer in the motion vector buffer in the motion vector buffer in the motion vector buffer in FIG. 10B.
  • the position of the motion vector is away from the center position in the N ⁇ N block, storage in the motion vector buffer may not be considered.
  • the motion vector of the motion information storage unit is affine. It may be stored as a motion vector of one subblock of a block.
  • the block or subblock may have a motion vector and have a size of 4 ⁇ 4, but is not limited thereto.
  • the motion vector of the motion information storage unit is affine. It may be stored as one of the motion vectors of the two subblocks of the block. In other words, when there are two or more subblocks of the affine block in the motion information storage unit, the motion vector of the subblock including the control point of the affine block or the motion vector of the upper left subblock is the motion vector of the motion information storage unit. Can be stored as. The motion vector of the subblock including the control point may be replaced with the control point motion vector.
  • the storage space occupied in the buffer may be reduced by storing the motion information including the motion vector for each motion information storage unit in the buffer through the above-described process.
  • FIG. 11 schematically illustrates a video encoding method by an encoding apparatus according to an embodiment of the present invention.
  • the method disclosed in FIG. 11 may be performed by the encoding apparatus disclosed in FIG. 1.
  • S1100 and S1110 of FIG. 11 may be performed by the prediction unit of the encoding apparatus
  • S1120 may be performed by the entropy encoding unit of the encoding apparatus.
  • the encoding apparatus derives a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block (S1100).
  • the motion information candidate list may include candidate lists according to various prediction modes, such as merge mode, MVP mode, and affine mode.
  • the number of candidates may be predefined in the motion information candidate list according to the prediction mode.
  • the motion information candidate list may include spatial candidates derived from spatial neighboring blocks.
  • temporal candidates derived from temporal neighboring blocks may be further included. If the number of spatial and temporal candidates is less than the predefined number of candidates, zero motion vector may be further included.
  • the temporal candidate may be stored in a buffer, and the temporal candidate may be derived based on temporal neighboring blocks in the reference picture.
  • the reference picture may include a plurality of motion information storage units, and a temporal candidate may be derived based on motion information of the motion information storage unit in which the temporal neighboring block in the reference picture is located.
  • the temporal candidate may include the above-described Col block.
  • the motion information storage unit may have a size of 8 ⁇ 8, but may be larger than 4 ⁇ 4, but is not limited thereto.
  • motion information of a block coded in an affine mode among the plurality of blocks may be derived as motion information of the motion information storage unit. Can be.
  • a control point of the block coded in the affine mode among the plurality of subblocks may be derived as motion information of the motion information storage unit.
  • the motion information of the subblock including the control point may be derived as the motion information of the control point.
  • a block coded in an affine mode includes a plurality of subblocks
  • the plurality of subblocks overlap the motion information storage unit, and a block including a control point among the plurality of subblocks does not exist.
  • the motion information of the subblock located at the top-left of the plurality of subblocks may be derived as the motion information of the motion information storage unit.
  • a block coded in an affine mode includes a plurality of subblocks, and the plurality of subblocks overlap the motion information storage unit, an average value or median value of motion information values of the plurality of subblocks is moved. It can be derived as a value of motion information of the information storage unit.
  • the temporal candidate is derived based on the motion information or the representative motion information stored for each motion information storage unit having a larger size than the subblock, the storage space occupied by the motion information can be reduced.
  • the encoding apparatus generates selection information indicating one of the candidates included in the motion information candidate list based on the motion information candidate list (S1110).
  • the selection information may include an index for a block having a high correlation with the current block in the motion information candidate list.
  • the encoding apparatus encodes image information including the selection information and outputs a bitstream (S1120).
  • the image information may further include residual information generated based on the predicted block and the current block.
  • the bitstream may be transmitted to the decoding apparatus via a network or a storage medium.
  • FIG. 12 schematically illustrates a video decoding method by a decoding apparatus according to an embodiment of the present invention.
  • the method disclosed in FIG. 12 may be performed by the decoding apparatus disclosed in FIG. 2.
  • S1200 to S1220 of FIG. 12 may be performed by the prediction unit of the decoding apparatus
  • S1230 may be performed by the reconstruction unit or the adder of the decoding apparatus.
  • the decoding apparatus derives a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block (S1200).
  • the motion information candidate list may include candidate lists according to various prediction modes, such as merge mode, MVP mode, and affine mode.
  • the number of candidates may be predefined in the motion information candidate list according to the prediction mode.
  • the motion information candidate list may include spatial candidates derived from spatial neighboring blocks.
  • temporal candidates derived from temporal neighboring blocks may be further included. If the number of spatial and temporal candidates is less than the predefined number of candidates, zero motion vector may be further included.
  • the temporal candidate may be stored in a buffer, and the temporal candidate may be derived based on temporal neighboring blocks in the reference picture.
  • the reference picture may include a plurality of motion information storage units, and a temporal candidate may be derived based on motion information of the motion information storage unit in which the temporal neighboring block in the reference picture is located.
  • the temporal candidate may include the above-described Col block.
  • the motion information storage unit may have a size of 8 ⁇ 8, but may be larger than 4 ⁇ 4, but is not limited thereto.
  • motion information of a block coded in an affine mode among the plurality of blocks may be derived as motion information of the motion information storage unit. Can be.
  • a control point of the block coded in the affine mode among the plurality of subblocks may be derived as motion information of the motion information storage unit.
  • the motion information of the subblock including the control point may be derived as the motion information of the control point.
  • a block coded in an affine mode includes a plurality of subblocks
  • the plurality of subblocks overlap the motion information storage unit, and a block including a control point among the plurality of subblocks does not exist.
  • the motion information of the subblock located at the top-left of the plurality of subblocks may be derived as the motion information of the motion information storage unit.
  • a block coded in an affine mode includes a plurality of subblocks, and the plurality of subblocks overlap the motion information storage unit, an average value or median value of motion information values of the plurality of subblocks is moved. It can be derived as a value of motion information of the information storage unit.
  • the temporal candidate is derived based on the motion information or the representative motion information stored for each motion information storage unit having a larger size than the subblock, the storage space occupied by the motion information can be reduced.
  • the decoding apparatus derives motion information of the current block based on the motion information candidate list (S1210).
  • the motion information of the current block may be derived from the motion information of the motion information storage unit when using a temporal candidate from the motion information candidate list based on the selection information.
  • the selection information can be obtained by decoding the bitstream.
  • the bitstream may be transmitted from the encoding device via a network or a storage medium.
  • the decoding apparatus derives the predicted block for the current block based on the derived motion information (S1220).
  • the predicted block may include a block having a high correlation with the current block in the affine candidate list.
  • the decoding apparatus reconstructs the current picture based on the predicted block (S1230).
  • the current picture may be reconstructed based on the predicted block and residual information.
  • the residual information may mean information about a difference between the predicted block and the current block, and may be obtained by decoding the bitstream.
  • the bitstream may be transmitted from the encoding device via a network or a storage medium.
  • the above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.
  • the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function.
  • the module may be stored in memory and executed by a processor.
  • the memory may be internal or external to the processor and may be coupled to the processor by a variety of well known means.
  • the processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices.
  • the memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device.

Abstract

The present invention relates to a video decoding method comprising the steps of: deriving a motion information candidate list of a current block on the basis of spatial neighboring blocks and a temporal neighboring block; deriving motion information of the current block on the basis of the motion information candidate list; deriving a predicted block for the current block on the basis of the derived motion information; and reconstructing a current picture on the basis of the predicted block, wherein the motion information candidate list includes a temporal candidate, the temporal candidate is derived on the basis of the temporal neighboring block within a reference picture, the reference picture includes a plurality of motion information storage units, and the temporal candidate is derived on the basis of motion information of a motion information storage unit in which the temporal neighboring block in the reference picture is located.

Description

비디오 처리 시스템에서 움직임 정보에 대한 저장 공간을 감소시키는 방법 및 장치Method and apparatus for reducing storage space for motion information in video processing system
본 발명은 비디오 코딩 기술에 관한 것으로서 보다 상세하게는 비디오 처리 시스템에서 움직임 정보에 대한 저장 공간을 감소시키는 방법 및 장치에 관한 것이다.The present invention relates to video coding techniques, and more particularly, to a method and apparatus for reducing storage space for motion information in a video processing system.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다. Recently, the demand for high resolution and high quality images such as high definition (HD) images and ultra high definition (UHD) images is increasing in various fields. The higher the resolution and the higher quality of the image data, the more information or bit rate is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost are increased.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.Accordingly, a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
본 발명의 기술적 과제는 비디오 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.An object of the present invention is to provide a method and apparatus for improving video coding efficiency.
본 발명의 다른 기술적 과제는 비디오 처리 시스템에서 움직임 정보에 대한 저장 공간을 감소시키는 방법 및 장치를 제공함에 있다. Another object of the present invention is to provide a method and apparatus for reducing a storage space for motion information in a video processing system.
본 발명의 또 다른 기술적 과제는 움직임 정보 저장 유닛을 이용하여 움직임 정보에 대한 저장 공간을 감소시키는 방법 및 장치를 제공함에 있다. Another technical problem of the present invention is to provide a method and apparatus for reducing a storage space for motion information using a motion information storage unit.
본 발명의 또 다른 기술적 과제는 하나의 움직임 정보 저장 유닛이 복수의 블록에 위치하여 하나의 대표 움직임 정보를 저장함으로써 저장 공간을 감소시키는 방법 및 장치를 제공함에 있다. It is still another object of the present invention to provide a method and apparatus for reducing a storage space by storing one representative motion information by placing one motion information storage unit in a plurality of blocks.
본 발명의 또 다른 기술적 과제는 복수의 블록 중 어파인 모드로 코딩된 블록의 움직임 정보를 대표 움직임 정보로 저장함으로써 저장 공간을 감소시키며 예측 성능을 향상시키는 방법 및 장치를 제공함에 있다. Another object of the present invention is to provide a method and apparatus for reducing storage space and improving prediction performance by storing motion information of a block coded in an affine mode among a plurality of blocks as representative motion information.
본 발명의 또 다른 기술적 과제는 어파인 모드로 코딩된 복수의 블록 중 컨트롤 포인트를 포함하는 블록의 움직임 정보를 대표 움직임 정보로 저장함으로써 저장 공간을 감소시키며 예측 성능을 향상시키는 방법 및 장치를 제공함에 있다. Another technical problem of the present invention is to provide a method and apparatus for reducing storage space and improving prediction performance by storing motion information of a block including a control point among a plurality of blocks coded in affine mode as representative motion information. have.
본 발명의 또 다른 기술적 과제는 어파인 모드로 코딩된 복수의 블록 중 컨트롤 포인트를 포함하는 블록의 움직임 정보를 컨트롤 포인트의 움직임 정보로부터 도출하여 예측 성능을 향상시키는 방법 및 장치를 제공함에 있다. Another object of the present invention is to provide a method and apparatus for improving prediction performance by deriving motion information of a block including a control point from among a plurality of blocks coded in the affine mode from motion information of the control point.
본 발명의 일 실시예는 디코딩 장치에 의하여 수행되는 비디오 디코딩 방법을 제공한다. 상기 디코딩 방법은 공간적 주변 블록들 및 시간적 주변 블록을 기반으로 현재 블록의 움직임 정보 후보 리스트를 도출하는 단계, 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하는 단계, 상기 도출한 움직임 정보를 기반으로 상기 현재 블록에 대한 예측된 블록을 도출하는 단계, 및 상기 예측된 블록을 기반으로 현재 픽처를 복원하는 단계를 포함하고, 상기 움직임 정보 후보 리스트는 시간적 후보를 포함하고, 상기 시간적 후보는 참조 픽처 내의 상기 시간적 주변 블록을 기반으로 도출되고, 상기 참조 픽처는 복수의 움직임 정보 저장 유닛(motion information storage unit)들을 포함하고, 상기 시간적 후보는 상기 참조 픽처 내의 상기 시간적 주변 블록이 위치하는 움직임 정보 저장 유닛의 움직임 정보를 기반으로 도출되고, 상기 움직임 정보 저장 유닛이 상기 참조 픽처 내의 복수의 블록들에 중첩(overlap)되는 경우 상기 복수의 블록들 중 어파인 모드로 코딩된 블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 한다.One embodiment of the present invention provides a video decoding method performed by a decoding apparatus. The decoding method may include: deriving a motion information candidate list of the current block based on spatial neighboring blocks and temporal neighboring blocks; deriving motion information of the current block based on the motion information candidate list; Deriving a predicted block for the current block based on information, and reconstructing a current picture based on the predicted block, wherein the motion information candidate list includes a temporal candidate and includes the temporal candidate Is derived based on the temporal neighboring block in the reference picture, the reference picture includes a plurality of motion information storage units, and the temporal candidate is a motion in which the temporal neighboring block in the reference picture is located. Based on the motion information of the information storage unit When the motion information storage unit overlaps a plurality of blocks in the reference picture, motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. It is characterized by.
본 발명의 다른 실시예는 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법을 제공한다. 상기 인코딩 방법은 공간적 주변 블록들 및 시간적 주변 블록을 기반으로 현재 블록의 움직임 정보 후보 리스트를 도출하는 단계, 상기 움직임 정보 후보 리스트를 기반으로 상기 움직임 정보 후보 리스트에 포함되는 후보들 중 하나를 가리키는 선택 정보를 생성하는 단계, 및 상기 선택 정보를 포함하는 영상 정보를 인코딩하여 비트스트림으로 출력하는 단계를 포함하되, 상기 움직임 정보 후보 리스트는 시간적 후보를 포함하고, 상기 시간적 후보는 참조 픽처 내의 상기 시간적 주변 블록을 기반으로 도출되고, 상기 참조 픽처는 복수의 움직임 정보 저장 유닛(motion information storage unit)들을 포함하고, 상기 시간적 후보는 상기 참조 픽처 내의 상기 시간적 주변 블록이 위치하는 움직임 정보 저장 유닛의 움직임 정보를 기반으로 도출되고, 상기 움직임 정보 저장 유닛이 상기 참조 픽처 내의 복수의 블록들에 중첩(overlap)되는 경우 상기 복수의 블록들 중 어파인 모드로 코딩된 블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 한다.Another embodiment of the present invention provides a video encoding method performed by an encoding apparatus. The encoding method may include deriving a motion information candidate list of a current block based on spatial neighboring blocks and temporal neighboring blocks, and selecting information indicating one of candidates included in the motion information candidate list based on the motion information candidate list. And encoding and outputting the image information including the selection information into a bitstream, wherein the motion information candidate list includes a temporal candidate, and the temporal candidate is the temporal neighboring block in a reference picture. The reference picture includes a plurality of motion information storage units, and the temporal candidate is based on motion information of a motion information storage unit in which the temporal neighboring block in the reference picture is located. Derived, and the movement When the information storage unit overlaps a plurality of blocks in the reference picture, motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. do.
본 발명의 또 다른 실시예는 비디오 디코딩을 수행하는 디코딩 장치를 제공한다. 상기 디코딩 장치는 공간적 주변 블록들 및 시간적 주변 블록을 기반으로 현재 블록의 움직임 정보 후보 리스트를 도출하고, 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하고, 상기 도출한 움직임 정보를 기반으로 상기 현재 블록에 대한 예측된 블록을 도출하는 예측부 및 상기 예측된 블록을 기반으로 현재 픽처를 복원하는 복원부를 포함하고, 상기 움직임 정보 후보 리스트는 시간적 후보를 포함하고, 상기 시간적 후보는 참조 픽처 내의 상기 시간적 주변 블록을 기반으로 도출되고, 상기 참조 픽처는 복수의 움직임 정보 저장 유닛(motion information storage unit)들을 포함하고, 상기 시간적 후보는 상기 참조 픽처 내의 상기 시간적 주변 블록이 위치하는 움직임 정보 저장 유닛의 움직임 정보를 기반으로 도출되고, 상기 움직임 정보 저장 유닛이 상기 참조 픽처 내의 복수의 블록들에 중첩(overlap)되는 경우 상기 복수의 블록들 중 어파인 모드로 코딩된 블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 한다.Another embodiment of the present invention provides a decoding apparatus for performing video decoding. The decoding apparatus derives a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block, derives the motion information of the current block based on the motion information candidate list, and extracts the derived motion information. A predictor for deriving a predicted block for the current block based on the first block; and a reconstructor for reconstructing a current picture based on the predicted block, wherein the motion information candidate list includes a temporal candidate, and the temporal candidate is referred to. Derived based on the temporal neighboring block in the picture, the reference picture includes a plurality of motion information storage units, and the temporal candidate stores motion information in which the temporal neighboring block in the reference picture is located Derived based on the motion information of the unit, and When the motion information storage unit overlaps a plurality of blocks in the reference picture, motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. It is done.
본 발명의 또 다른 실시예는 비디오 인코딩을 수행하는 인코딩 장치를 제공한다. 상기 인코딩 장치는 공간적 주변 블록들 및 시간적 주변 블록을 기반으로 현재 블록의 움직임 정보 후보 리스트를 도출하고, 상기 움직임 정보 후보 리스트를 기반으로 상기 움직임 정보 후보 리스트에 포함되는 후보들 중 하나를 가리키는 선택 정보를 생성하는 예측부 및 상기 선택 정보를 포함하는 영상 정보를 인코딩하여 비트스트림으로 출력하는 엔트로피 인코딩부를 포함하되, 상기 움직임 정보 후보 리스트는 시간적 후보를 포함하고, 상기 시간적 후보는 참조 픽처 내의 상기 시간적 주변 블록을 기반으로 도출되고, 상기 참조 픽처는 복수의 움직임 정보 저장 유닛(motion information storage unit)들을 포함하고, 상기 시간적 후보는 상기 참조 픽처 내의 상기 시간적 주변 블록이 위치하는 움직임 정보 저장 유닛의 움직임 정보를 기반으로 도출되고, 상기 움직임 정보 저장 유닛이 상기 참조 픽처 내의 복수의 블록들에 중첩(overlap)되는 경우 상기 복수의 블록들 중 어파인 모드로 코딩된 블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 한다.Another embodiment of the present invention provides an encoding apparatus for performing video encoding. The encoding apparatus derives a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block, and selects information indicating one of candidates included in the motion information candidate list based on the motion information candidate list. And an entropy encoding unit for encoding and outputting the image information including the selection information to the bitstream, wherein the motion information candidate list includes a temporal candidate, and the temporal candidate is the temporal neighboring block in the reference picture. The reference picture includes a plurality of motion information storage units, and the temporal candidate is based on motion information of a motion information storage unit in which the temporal neighboring block in the reference picture is located. Derived, award When the motion information storage unit overlaps a plurality of blocks in the reference picture, it is determined that motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. It features.
본 발명에 따르면, 인터 예측 시 버퍼에서 움직임 정보가 차지하는 저장 공간을 감소시킬 수 있다.According to the present invention, a storage space occupied by motion information in a buffer may be reduced during inter prediction.
본 발명에 따르면, 버퍼에서 움직임 정보가 차지하는 저장 공간을 감소시켜 전반적인 코딩 효율을 향상시킬 수 있다.According to the present invention, the overall coding efficiency can be improved by reducing the storage space occupied by the motion information in the buffer.
도 1은 본 발명의 일 실시예에 따른 비디오 인코딩 장치를 개략적으로 도시한 블록도이다. 1 is a block diagram schematically illustrating a video encoding apparatus according to an embodiment of the present invention.
도 2는 본 발명의 일 실시예에 따른 비디오 디코딩 장치를 개략적으로 도시한 블록도이다.2 is a block diagram schematically illustrating a video decoding apparatus according to an embodiment of the present invention.
도 3은 본 발명의 일 실시예에 따른 컨텐츠 스트리밍 시스템을 예시적으로 나타낸다.3 exemplarily illustrates a content streaming system according to an embodiment of the present invention.
도 4는 본 발명의 일 실시예에 따른 어파인 움직임 모델을 예시적으로 나타낸다.4 exemplarily illustrates an affine motion model according to an embodiment of the present invention.
도 5a 및 도 5b는 본 발명의 일 실시예에 따른 4-파라미터 어파인 모델 및 6-파라미터 어파인 모델을 예시적으로 나타낸다.5A and 5B exemplarily illustrate a four-parameter affine model and a six-parameter affine model according to an embodiment of the present invention.
도 6은 본 발명의 일 실시예에 따른 어파인 움직임 벡터 필드가 서브블록 단위에서 결정되는 경우를 예시적으로 나타낸다.FIG. 6 exemplarily illustrates a case where the affine motion vector field is determined in subblock units according to an embodiment of the present invention.
도 7은 본 발명의 일 실시예에 따른 컨트롤 포인트 움직임 벡터 및 어파인 움직임 벡터 필드를 예시적으로 나타낸다.7 exemplarily illustrates a control point motion vector and an affine motion vector field according to an embodiment of the present invention.
도 8은 본 발명의 일 실시예에 따른 일부 서브블록의 움직임 벡터가 컨트롤 포인트 움직임 벡터로 대체된 어파인 움직임 벡터 필드를 예시적으로 나타낸다.8 exemplarily illustrates an affine motion vector field in which a motion vector of some subblocks is replaced with a control point motion vector according to an embodiment of the present invention.
도 9는 본 발명의 일 실시예에 따른 32 x 32 어파인 블록을 예시적으로 나타낸다.9 exemplarily shows a 32 × 32 affine block according to an embodiment of the present invention.
도 10a 및 도 10b는 본 발명의 일 실시예에 따른 어파인 블록 및 비-어파인 블록을 포함하는 움직임 벡터 필드를 예시적으로 나타낸다.10A and 10B exemplarily illustrate a motion vector field including an affine block and a non-affine block according to an embodiment of the present invention.
도 11은 본 발명의 일 실시예에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다.11 schematically illustrates a video encoding method by an encoding apparatus according to an embodiment of the present invention.
도 12는 본 발명의 일 실시예에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다.12 schematically illustrates a video decoding method by a decoding apparatus according to an embodiment of the present invention.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니다. 본 명세서에서 사용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.As the present invention allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description. However, this is not intended to limit the invention to the specific embodiments. The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting of the spirit of the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this specification, terms such as "comprise" or "have" are intended to indicate that there is a feature, number, step, action, component, part, or combination thereof described on the specification, and one or more other features. It is to be understood that the present invention does not exclude the possibility of the presence or the addition of numbers, steps, operations, components, components, or a combination thereof.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 비디오 인코딩 장치/디코딩 장치에서 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명에 포함된다.On the other hand, each of the components in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions in the video encoding apparatus / decoding apparatus, each component is a separate hardware or separate software It does not mean that it is implemented. For example, two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations. Embodiments in which each configuration is integrated and / or separated are also included in the present invention without departing from the spirit of the present invention.
본 발명에서 "/"와 ","는 "및/또는"으로 해석된다. 예를 들어, "A/B"는 "A 및/또는 B"로 해석되고, "A, B"는 "A 및/또는 B"로 해석된다. 추가적으로, "A/B/C"는 "A, B 및/또는 C 중 적어도 하나"를 의미한다. 또한, "A, B, C"도 "A, B 및/또는 C 중 적어도 하나"를 의미한다.In the present invention, "/" and "," are interpreted as "and / or". For example, "A / B" is interpreted as "A and / or B" and "A, B" is interpreted as "A and / or B". In addition, "A / B / C" means "at least one of A, B and / or C". In addition, "A, B, C" also means "at least one of A, B and / or C."
추가적으로, 본 발명에서 "또는"는 "및/또는"으로 해석된다. 예를 들어, "A 또는 B"은, 1) "A" 만을 의미하고, 2) "B" 만을 의미하거나, 3) "A 및 B"를 의미할 수 있다. 달리 표현하면, 본 문서의 "또는"은 "추가적으로 또는 대체적으로(additionally or alternatively)"를 의미할 수 있다.Additionally, in the present invention, "or" is interpreted as "and / or". For example, "A or B" may mean 1) "A" only, 2) "B" only, or 3) "A and B". In other words, "or" in this document may mean "additionally or alternatively".
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.As the present invention allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description. However, this is not intended to limit the invention to the specific embodiments. The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting of the spirit of the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. The terms "comprise" or "having" in this specification are intended to indicate that there is a feature, number, step, operation, component, part, or combination thereof described in the specification, and one or more other features It is to be understood that the numbers, steps, operations, components, parts or figures do not exclude in advance the presence or possibility of adding them.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.On the other hand, each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented by separate hardware or separate software. For example, two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations. Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.
이하의 설명은 비디오, 이미지 또는 영상에 대해 다루는 기술 분야에서 적용될 수 있다. 예를 들어, 이하의 설명에서 개시된 방법 또는 실시예는 VVC (Versatile Video Coding) 표준 (ITU-T Rec. H.266), VVC 이후의 차세대 비디오/이미지 코딩 표준, 또는 VVC 이전의 표준들(예를 들어, HEVC (High Efficiency Video Coding) 표준 (ITU-T Rec. H.265) 등)의 개시 내용과 관련될 수 있다. The following description may be applied in the technical field dealing with video, image or video. For example, the method or embodiment disclosed in the following description may include the Versatile Video Coding (VVC) standard (ITU-T Rec. H.266), the next generation video / image coding standard after VVC, or standards prior to VVC (eg For example, it may be related to the disclosure of the High Efficiency Video Coding (HEVC) standard (ITU-T Rec. H.265, etc.).
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.Hereinafter, with reference to the accompanying drawings, it will be described in detail a preferred embodiment of the present invention. Hereinafter, the same reference numerals are used for the same components in the drawings, and redundant description of the same components is omitted.
본 명세서에서 비디오(video)는 시간의 흐름에 따른 일련의 영상(image)들의 집합을 의미할 수 있다. 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다.In the present specification, a video may mean a series of images over time. A picture generally refers to a unit representing one image in a specific time zone, and a slice is a unit constituting a part of a picture in coding. One picture may be composed of a plurality of slices, and if necessary, the picture and the slice may be mixed with each other.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. A pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a value of a pixel, and may only represent pixel / pixel values of the luma component, or only pixel / pixel values of the chroma component.
유닛(unit)은 영상 처리의 기본 단위를 나타낸다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다.A unit represents the basic unit of image processing. The unit may include at least one of a specific region of the picture and information related to the region. The unit may be used interchangeably with terms such as block or area in some cases. In a general case, an M × N block may represent a set of samples or transform coefficients composed of M columns and N rows.
도 1은 본 발명의 일 실시예에 따른 비디오 인코딩 장치를 개략적으로 도시한 블록도이다. 1 is a block diagram schematically illustrating a video encoding apparatus according to an embodiment of the present invention.
이하 인코딩/디코딩 장치는 비디오 인코딩/디코딩 장치 및/또는 영상 인코딩/디코딩 장치를 포함할 수 있고, 비디오 인코딩/디코딩 장치가 영상 인코딩/디코딩 장치를 포함하는 개념으로 사용되거나, 영상 인코딩/디코딩 장치가 비디오 인코딩/디코딩 장치를 포함하는 개념으로 사용될 수도 있다.Hereinafter, the encoding / decoding device may include a video encoding / decoding device and / or an image encoding / decoding device, and the video encoding / decoding device is used as a concept including the image encoding / decoding device, or the image encoding / decoding device is It may be used in a concept including a video encoding / decoding device.
도 1을 참조하면, (비디오) 인코딩 장치(100)는 픽처 분할부(picture partitioning module, 105), 예측부(prediction module, 110), 레지듀얼 처리부(residual processing module, 120), 엔트로피 인코딩부(entropy encoding module, 130), 가산부(adder, 140), 필터부(filtering module, 150) 및 메모리(memory, 160)을 포함할 수 있다. 레지듀얼 처리부(120)는 감산부(substractor, 121), 변환부(transform module, 122), 양자화부(quantization module, 123), 재정렬부(rearrangement module, 124), 역양자화부(dequantization module, 125) 및 역변환부(inverse transform module, 126)를 포함할 수 있다. Referring to FIG. 1, the (video) encoding apparatus 100 may include a picture partitioning module 105, a prediction module 110, a residual processing module 120, and an entropy encoding unit ( The entropy encoding module 130 may include an adder 140, a filtering module 150, and a memory 160. The residual processor 120 may include a substractor 121, a transform module 122, a quantization module 123, a rearrangement module 124, and a dequantization module 125. ) And an inverse transform module 126.
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다. The picture divider 105 may divide the input picture into at least one processing unit.
일 예로, 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리(ternary) 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조 및 터너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조/터너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다. As an example, the processing unit may be called 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 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, a binary tree structure, and / or a ternary tree structure. In this case, for example, the quad tree structure may be applied first, and the binary tree structure and the ternary tree structure may be applied later. Alternatively, the binary tree structure / tunary tree structure may be applied first. The coding procedure according to the present invention may be performed based on the final coding unit that is no longer split. In this case, the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized. A coding unit of size may be used as the final coding unit. Here, the coding procedure may include a procedure of prediction, transform, and reconstruction, which will be described later.
다른 예로, 처리 유닛은 코딩 유닛(coding unit, CU) 예측 유닛(prediction unit, PU) 또는 변환 유닛(transform unit, TU)을 포함할 수도 있다. 코딩 유닛은 최대 코딩 유닛(largest coding unit, LCU)으로부터 쿼드 트리 구조를 따라서 하위(deeper) 뎁스의 코딩 유닛들로 분할(split)될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 최소 코딩 유닛(smallest coding unit, SCU)이 설정된 경우 코딩 유닛은 최소 코딩 유닛보다 더 작은 코딩 유닛으로 분할될 수 없다. 여기서 최종 코딩 유닛이라 함은 예측 유닛 또는 변환 유닛으로 파티셔닝 또는 분할되는 기반이 되는 코딩 유닛을 의미한다. 예측 유닛은 코딩 유닛으로부터 파티셔닝(partitioning)되는 유닛으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록(sub block)으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 유닛일 수 있다. 이하, 코딩 유닛은 코딩 블록(coding block, CB), 예측 유닛은 예측 블록(prediction block, PB), 변환 유닛은 변환 블록(transform block, TB) 으로 불릴 수 있다. 예측 블록 또는 예측 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 예측 샘플의 어레이(array)를 포함할 수 있다. 또한, 변환 블록 또는 변환 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 변환 계수 또는 레지듀얼 샘플의 어레이를 포함할 수 있다.As another example, the processing unit may include a coding unit (CU) prediction unit (PU) or a transform unit (TU). The coding unit may be split from the largest coding unit (LCU) into coding units of deeper depths along the quad tree structure. In this case, the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized. A coding unit of size may be used as the final coding unit. If a smallest coding unit (SCU) is set, the coding unit may not be split into smaller coding units than the minimum coding unit. Here, the final coding unit refers to a coding unit that is the basis of partitioning or partitioning into a prediction unit or a transform unit. The prediction unit is a unit partitioning from the coding unit and may be a unit of sample prediction. In this case, the prediction unit may be divided into sub blocks. The transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient. Hereinafter, a coding unit may be called a coding block (CB), a prediction unit is a prediction block (PB), and a transform unit may be called a transform block (TB). A prediction block or prediction unit may mean a specific area in the form of a block within a picture, and may include an array of prediction samples. In addition, a transform block or a transform unit may mean a specific area in a block form within a picture, and may include an array of transform coefficients or residual samples.
예측부(110)는 처리 대상 블록(이하, 현재 블록 또는 레지듀얼 블록을 의미할 수도 있다)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(110)에서 수행되는 예측의 단위는 코딩 블록일 수 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.The prediction unit 110 performs prediction on a block to be processed (hereinafter, may mean a current block or a residual block), and generates a predicted block including prediction samples for the current block. can do. The unit of prediction performed by the prediction unit 110 may be a coding block, a transform block, or a prediction block.
예측부(110)는 현재 블록에 인트라 예측이 적용되는지 인터 예측이 적용되는지를 결정할 수 있다. 일 예로, 예측부(110)는 CU 단위로 인트라 예측 또는 인터 예측이 적용되는지를 결정할 수 있다.The prediction unit 110 may determine whether intra prediction or inter prediction is applied to the current block. As an example, the prediction unit 110 may determine whether intra prediction or inter prediction is applied on a CU basis.
인트라 예측의 경우에, 예측부(110)는 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 현재 블록 외부의 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 예측부(110)는 (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 인트라 예측에서 예측 모드는 예를 들어 33개의 방향성 예측 모드와 적어도 2개 이상의 비방향성 모드를 가질 수 있다. 비방향성 모드는 DC 예측 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 예측부(110)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.In the case of intra prediction, the prediction unit 110 may derive a prediction sample for the current block based on reference samples outside the current block in the picture to which the current block belongs (hereinafter, referred to as the current picture). In this case, the prediction unit 110 may (i) derive the prediction sample based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighbor reference of the current block. The prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample among the samples. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode. In intra prediction, the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes. The non-directional mode may include a DC prediction mode and a planner mode (Planar mode). The prediction unit 110 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
인터 예측의 경우에, 예측부(110)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 샘플을 기반으로, 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(110)는 스킵(skip) 모드, 머지(merge) 모드, 및 MVP(motion vector prediction) 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 스킵 모드와 머지 모드의 경우에, 예측부(110)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차(레지듀얼)가 전송되지 않는다. MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(Motion Vector Predictor)로 이용하여 현재 블록의 움직임 벡터 예측자로 이용하여 현재 블록의 움직임 벡터를 유도할 수 있다.In the case of inter prediction, the prediction unit 110 may derive the prediction sample for the current block based on the sample specified by the motion vector on the reference picture. The prediction unit 110 may apply one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode to derive a prediction sample for the current block. In the skip mode and the merge mode, the prediction unit 110 may use the motion information of the neighboring block as the motion information of the current block. In the skip mode, unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted. In the MVP mode, the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처(reference picture)에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 움직임 정보(motion 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. A reference picture including the temporal neighboring block may be called a collocated picture (colPic). The motion information may include a motion vector and a reference picture index. Information such as prediction mode information and motion information may be encoded (entropy) and output in the form of a bitstream.
스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트(reference picture list) 상의 최상위 픽처가 참조 픽처로서 이용될 수도 있다. 참조 픽처 리스트(Picture Order Count)에 포함되는 참조 픽처들은 현재 픽처와 해당 참조 픽처 간의 POC(Picture order count) 차이 기반으로 정렬될 수 있다. POC는 픽처의 디스플레이 순서에 대응하며, 코딩 순서와 구분될 수 있다.When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture. Reference pictures included in a reference picture list may be sorted based on a difference in a picture order count (POC) between a current picture and a corresponding reference picture. The POC corresponds to the display order of the pictures and may be distinguished from the coding order.
감산부(121)는 원본 샘플과 예측 샘플 간의 차이인 레지듀얼 샘플을 생성한다. 스킵 모드가 적용되는 경우에는, 상술한 바와 같이 레지듀얼 샘플을 생성하지 않을 수 있다.The subtraction unit 121 generates a residual sample which is a difference between the original sample and the prediction sample. When the skip mode is applied, residual samples may not be generated as described above.
변환부(122)는 변환 블록 단위로 레지듀얼 샘플을 변환하여 변환 계수(transform coefficient)를 생성한다. 변환부(122)는 해당 변환 블록의 사이즈와, 해당 변환 블록과 공간적으로 겹치는 코딩 블록 또는 예측 블록에 적용된 예측 모드에 따라서 변환을 수행할 수 있다. 예컨대, 상기 변환 블록과 겹치는 상기 코딩 블록 또는 상기 예측 블록에 인트라 예측이 적용되었고, 상기 변환 블록이 4Х4의 레지듀얼 어레이(array)라면, 레지듀얼 샘플은 DST(Discrete Sine Transform) 변환 커널을 이용하여 변환되고, 그 외의 경우라면 레지듀얼 샘플은 DCT(Discrete Cosine Transform) 변환 커널을 이용하여 변환할 수 있다.The transform unit 122 generates transform coefficients by transforming the residual sample in units of transform blocks. The transform unit 122 may perform the transform according to the size of the transform block and the prediction mode applied to the coding block or the prediction block that spatially overlaps the transform block. For example, if intra prediction is applied to the coding block or the prediction block that overlaps the transform block, and the transform block is a residual array of 4Х4, the residual sample is obtained by using a discrete sine transform (DST) transform kernel. In other cases, the residual sample may be transformed using a discrete cosine transform (DCT) transform kernel.
양자화부(123)는 변환 계수들을 양자화하여, 양자화된 변환 계수를 생성할 수 있다.The quantization unit 123 may quantize the transform coefficients to generate quantized transform coefficients.
재정렬부(124)는 양자화된 변환 계수를 재정렬한다. 재정렬부(124)는 계수들 스캐닝(scanning) 방법을 통해 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있다. 여기서 재정렬부(124)는 별도의 구성으로 설명하였으나, 재정렬부(124)는 양자화부(123)의 일부일 수 있다.The reordering unit 124 rearranges the quantized transform coefficients. The reordering unit 124 may reorder the quantized transform coefficients in the form of a block into a one-dimensional vector form through a coefficient scanning method. Although the reordering unit 124 has been described in a separate configuration, the reordering unit 124 may be part of the quantization unit 123.
엔트로피 인코딩부(130)는 양자화된 변환 계수들에 대한 엔트로피 인코딩을 수행할 수 있다. 엔트로피 인코딩은 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 인코딩 방법을 포함할 수 있다. 엔트로피 인코딩부(130)는 양자화된 변환 계수 외 비디오 복원에 필요한 정보들(예컨대 신택스 요소(syntax element)의 값 등)을 함께 또는 별도로 엔트로피 인코딩 또는 기 설정된 방법에 따라 인코딩할 수도 있다. 인코딩된 정보들은 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다.The entropy encoding unit 130 may perform entropy encoding on the quantized transform coefficients. Entropy encoding may include, for example, encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like. The entropy encoding unit 130 may encode information necessary for video reconstruction other than the quantized transform coefficients (for example, a value of a syntax element) together or separately according to entropy encoding or a predetermined method. The encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams. The bitstream may be transmitted over a network or may be stored in a digital storage medium. The network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like.
역양자화부(125)는 양자화부(123)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(126)는 역양자화부(125)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.The inverse quantization unit 125 inversely quantizes the quantized values (quantized transform coefficients) in the quantization unit 123, and the inverse transformer 126 inversely transforms the inverse quantized values in the inverse quantization unit 125 to generate a residual sample. Create
가산부(140)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(140)는 별도의 구성으로 설명하였으나, 가산부(140)는 예측부(110)의 일부일 수 있다. 한편, 가산부(140)는 복원부(reconstruction module) 또는 복원 블록 생성부로 불릴 수도 있다.The adder 140 reconstructs the picture by combining the residual sample and the predictive sample. The residual sample and the predictive sample may be added in units of blocks to generate a reconstructed block. Although the adder 140 has been described in a separate configuration, the adder 140 may be part of the predictor 110. The adder 140 may also be called a reconstruction module or a restore block generator.
복원된 픽처(reconstructed picture)에 대하여 필터부(150)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(150)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.The filter unit 150 may apply a deblocking filter and / or a sample adaptive offset to the reconstructed picture. Through deblocking filtering and / or sample adaptive offset, the artifacts of the block boundaries in the reconstructed picture or the distortion in the quantization process can be corrected. The sample adaptive offset may be applied on a sample basis and may be applied after the process of deblocking filtering is completed. The filter unit 150 may apply an adaptive loop filter (ALF) to the reconstructed picture. ALF may be applied to the reconstructed picture after the deblocking filter and / or sample adaptive offset is applied.
메모리(160)는 복원 픽처(디코딩된 픽처) 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(150)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.The memory 160 may store reconstructed pictures (decoded pictures) or information necessary for encoding / decoding. Here, the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 150. The stored reconstructed picture may be used as a reference picture for (inter) prediction of another picture. For example, the memory 160 may store (reference) pictures used for inter prediction. In this case, pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
도 2는 본 발명의 일 실시예에 따른 비디오 디코딩 장치를 개략적으로 도시한 블록도이다.2 is a block diagram schematically illustrating a video decoding apparatus according to an embodiment of the present invention.
이하 비디오 디코딩 장치라 함은 영상 디코딩 장치를 포함할 수 있다.Hereinafter, the video decoding apparatus may include an image decoding apparatus.
도 2를 참조하면, 비디오 디코딩 장치(200)는 엔트로피 디코딩부(entropy decoding module, 210), 레지듀얼 처리부(residual processing module, 220), 예측부(prediction module, 230), 가산부(adder, 240), 필터부(filtering module, 250) 및 메모리(memory, 260)을 포함할 수 있다. 여기서 레지듀얼 처리부(220)는 재정렬부(rearrangement module, 221), 역양자화부(dequantization module, 222), 역변환부(inverse transform module, 223)을 포함할 수 있다. 또한, 비록 도시되지는 않았으나, 비디오 디코딩 장치(200)는 비디오 정보를 포함하는 비트스트림을 수신하는 수신부를 포함할 수 있다. 상기 수신부는 별도의 모듈로 구성될 수도 있고 또는 엔트로피 디코딩부(210)에 포함될 수 있다. 2, the video decoding apparatus 200 may include an entropy decoding module 210, a residual processing module 220, a prediction module 230, and an adder 240. ), A filtering module 250, and a memory 260. The residual processor 220 may include a rearrangement module 221, a dequantization module 222, and an inverse transform module 223. In addition, although not shown, the video decoding apparatus 200 may include a receiver that receives a bitstream including video information. The receiver may be configured as a separate module or may be included in the entropy decoding unit 210.
비디오/영상 정보를 포함하는 비트스트림이 입력되면, 비디오 디코딩 장치는(200)는 비디오 인코딩 장치에서 비디오/영상 정보가 처리된 프로세스에 대응하여 비디오/영상/픽처를 복원할 수 있다.When a bitstream including video / image information is input, the video decoding apparatus 200 may reconstruct a video / image / picture in response to a process in which video / image information is processed in the video encoding apparatus.
예컨대, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 적용된 처리 유닛을 이용하여 비디오 디코딩을 수행할 수 있다. 따라서 비디오 디코딩의 처리 유닛 블록은 일 예로 코딩 유닛일 수 있고, 다른 예로 코딩 유닛, 예측 유닛 또는 변환 유닛일 수 있다. 코딩 유닛은 최대 코딩 유닛으로부터 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리 트리 구조를 따라서 분할될 수 있다. For example, the video decoding apparatus 200 may perform video decoding using a processing unit applied in the video encoding apparatus. Thus, the processing unit block of video decoding may be, for example, a coding unit, and in another example, a coding unit, a prediction unit, or a transform unit. The coding unit may be split along the quad tree structure, binary tree structure and / or ternary tree structure from the largest coding unit.
예측 유닛 및 변환 유닛이 경우에 따라 더 사용될 수 있으며, 이 경우 예측 블록은 코딩 유닛으로부터 도출 또는 파티셔닝되는 블록으로서, 샘플 예측의 유닛일 수 있다. 이 때, 예측 유닛은 서브 블록으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 또는 변환 계수로부터 레지듀얼 신호를 유도하는 유닛일 수 있다. The prediction unit and the transform unit may be further used in some cases, in which case the prediction block is a block derived or partitioned from the coding unit and may be a unit of sample prediction. At this point, the prediction unit may be divided into subblocks. The transform unit may be divided along the quad tree structure from the coding unit, and may be a unit for deriving a transform coefficient or a unit for deriving a residual signal from the transform coefficient.
엔트로피 디코딩부(210)는 비트스트림을 파싱하여 비디오 복원 또는 픽처 복원에 필요한 정보를 출력할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 비디오 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. The entropy decoding unit 210 may parse the bitstream and output information necessary for video reconstruction or picture reconstruction. For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for video reconstruction, and transform coefficients for residuals. Can be output.
보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 컨택스트(context) 모델을 결정하고, 결정된 컨택스트 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 컨택스트 모델 결정 후 다음 심볼/빈의 컨택스트 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 컨택스트 모델을 업데이트할 수 있다.More specifically, the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step. The context model is determined using the context model, the probability of occurrence of a bin is predicted according to the determined context model, and arithmetic decoding of the bin is performed to generate a symbol corresponding to the value of each syntax element. can do. In this case, the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model.
엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(230)로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수는 재정렬부(221)로 입력될 수 있다.The information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the prediction unit 230, and the residual value on which the entropy decoding has been performed by the entropy decoding unit 210, that is, the quantized transform coefficient, is used as a reordering unit ( 221 may be input.
재정렬부(221)는 양자화되어 있는 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 재정렬부(221)는 인코딩 장치에서 수행된 계수 스캐닝에 대응하여 재정렬을 수행할 수 있다. 여기서 재정렬부(221)는 별도의 구성으로 설명하였으나, 재정렬부(221)는 역양자화부(222)의 일부일 수 있다.The reordering unit 221 may rearrange the quantized transform coefficients in a two-dimensional block form. The reordering unit 221 may perform reordering in response to coefficient scanning performed by the encoding apparatus. Here, the rearrangement unit 221 has been described in a separate configuration, but the rearrangement unit 221 may be part of the inverse quantization unit 222.
역양자화부(222)는 양자화되어 있는 변환 계수들을 (역)양자화 파라미터를 기반으로 역양자화하여 변환 계수를 출력할 수 있다. 이 때, 양자화 파라미터를 유도하기 위한 정보는 인코딩 장치로부터 시그널링될 수 있다.The inverse quantization unit 222 may dequantize the quantized transform coefficients based on the (inverse) quantization parameter and output the transform coefficients. In this case, information for deriving a quantization parameter may be signaled from the encoding apparatus.
역변환부(223)는 변환 계수들을 역변환하여 레지듀얼 샘플들을 유도할 수 있다. The inverse transform unit 223 may inversely transform transform coefficients to derive residual samples.
예측부(230)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(230)에서 수행되는 예측의 단위는 코딩 블록일 수도 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다. The prediction unit 230 may perform prediction on the current block and generate a predicted block including prediction samples for the current block. The unit of prediction performed by the prediction unit 230 may be a coding block, a transform block, or a prediction block.
예측부(230)는 상기 예측에 관한 정보를 기반으로 인트라 예측을 적용할 것인지 인터 예측을 적용할 것인지를 결정할 수 있다. 이 때, 인트라 예측과 인터 예측 중 어느 것을 적용할 것인지를 결정하는 단위와 예측 샘플을 생성하는 단위는 상이할 수 있다. 아울러, 인터 예측과 인트라 예측에 있어서 예측 샘플을 생성하는 단위 또한 상이할 수 있다. 예를 들어, 인터 예측과 인트라 예측 중 어느 것을 적용할 것인지는 CU 단위로 결정할 수 있다. 또한 예를 들어, 인터 예측에 있어서 PU 단위로 예측 모드를 결정하고 예측 샘플을 생성할 수 있고, 인트라 예측에 있어서 PU 단위로 예측 모드를 결정하고 TU 단위로 예측 샘플을 생성할 수도 있다. The prediction unit 230 may determine whether to apply intra prediction or inter prediction based on the information about the prediction. In this case, a unit for determining which of intra prediction and inter prediction is to be applied and a unit for generating a prediction sample may be different. In addition, the unit for generating a prediction sample in inter prediction and intra prediction may also be different. For example, whether to apply inter prediction or intra prediction may be determined in units of CUs. In addition, for example, in inter prediction, a prediction mode may be determined and a prediction sample may be generated in PU units, and in intra prediction, a prediction mode may be determined in PU units and a prediction sample may be generated in TU units.
인트라 예측의 경우에, 예측부(230)는 현재 픽처 내의 주변 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용할 예측 모드가 결정될 수도 있다. In the case of intra prediction, the prediction unit 230 may derive the prediction sample for the current block based on the neighbor reference samples in the current picture. The prediction unit 230 may derive the prediction sample for the current block by applying the directional mode or the non-directional mode based on the neighbor reference samples of the current block. In this case, the prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
인터 예측의 경우에, 예측부(230)는 참조 픽처 상에서 움직임 벡터에 의해 참조 픽처 상에서 특정되는 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(230)는 스킵(skip) 모드, 머지(merge) 모드 및 MVP 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이때, 비디오 인코딩 장치에서 제공된 현재 블록의 인터 예측에 필요한 움직임 정보, 예컨대 움직임 벡터, 참조 픽처 인덱스 등에 관한 정보는 상기 예측에 관한 정보를 기반으로 획득 또는 유도될 수 있다In the case of inter prediction, the prediction unit 230 may derive the prediction sample for the current block based on the sample specified on the reference picture by the motion vector on the reference picture. The prediction unit 230 may apply any one of a skip mode, a merge mode, and an MVP mode to derive a prediction sample for the current block. In this case, motion information required for inter prediction of the current block provided by the video encoding apparatus, for example, information about a motion vector, a reference picture index, and the like may be obtained or derived based on the prediction information.
스킵 모드와 머지 모드의 경우에, 주변 블록의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.In the skip mode and the merge mode, the motion information of the neighboring block may be used as the motion information of the current block. In this case, the neighboring block may include a spatial neighboring block and a temporal neighboring block.
예측부(230)는 가용한 주변 블록의 움직임 정보로 머지 후보 리스트를 구성하고, 머지 인덱스가 머지 후보 리스트 상에서 지시하는 정보를 현재 블록의 움직임 벡터로 사용할 수 있다. 머지 인덱스는 인코딩 장치로부터 시그널링될 수 있다. 움직임 정보는 움직임 벡터와 참조 픽처를 포함할 수 있다. 스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트 상의 최상위 픽처가 참조 픽처로서 이용될 수 있다.The prediction unit 230 may construct a merge candidate list using motion information of available neighboring blocks, and may use information indicated by the merge index on the merge candidate list as a motion vector of the current block. The merge index may be signaled from the encoding device. The motion information may include a motion vector and a reference picture. When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture.
스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차이(레지듀얼)이 전송되지 않는다.In the skip mode, unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted.
MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하여 현재 블록의 움직임 벡터가 유도될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.In the MVP mode, the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor. In this case, the neighboring block may include a spatial neighboring block and a temporal neighboring block.
일 예로, 머지 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 머지 후보 리스트가 생성될 수 있다. 머지 모드에서는 머지 후보 리스트에서 선택된 후보 블록의 움직임 벡터가 현재 블록의 움직임 벡터로 사용된다. 상기 예측에 관한 정보는 상기 머지 후보 리스트에 포함된 후보 블록들 중에서 선택된 최적의 움직임 벡터를 갖는 후보 블록을 지시하는 머지 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 머지 인덱스를 이용하여, 현재 블록의 움직임 벡터를 도출할 수 있다.For example, when the merge mode is applied, a merge candidate list may be generated by using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block. In the merge mode, the motion vector of the candidate block selected from the merge candidate list is used as the motion vector of the current block. The information about the prediction may include a merge index indicating a candidate block having an optimal motion vector selected from candidate blocks included in the merge candidate list. In this case, the prediction unit 230 may derive the motion vector of the current block by using the merge index.
다른 예로, MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터는 움직임 벡터 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 후보 중에서 선택된 최적의 움직임 벡터를 지시하는 예측 움직임 벡터 인덱스를 포함할 수 있다. 이 때, 예측부(230)는 상기 움직임 벡터 인덱스를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서, 현재 블록의 예측 움직임 벡터를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 예측부(230)는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 예측부는 또한 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다. As another example, when the Motion Vector Prediction (MVP) mode is applied, a motion vector predictor candidate list may be generated using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block. Can be. That is, the motion vector of the reconstructed spatial neighboring block and / or the Col vector, which is a temporal neighboring block, may be used as a motion vector candidate. The prediction information may include a prediction motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list. In this case, the prediction unit 230 may select the predicted motion vector of the current block from the motion vector candidates included in the motion vector candidate list using the motion vector index. The prediction unit of the encoding apparatus may obtain a motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, and may encode the output vector in a bitstream form. That is, MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block. In this case, the prediction unit 230 may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block by adding the motion vector difference and the motion vector predictor. The prediction unit may also obtain or derive a reference picture index or the like indicating a reference picture from the information about the prediction.
가산부(240)는 레지듀얼 샘플과 예측 샘플을 더하여 현재 블록 혹은 현재 픽처를 복원할 수 있다. 가산부(240)는 레지듀얼 샘플과 예측 샘플을 블록 단위로 더하여 현재 픽처를 복원할 수도 있다. 스킵 모드가 적용된 경우에는 레지듀얼이 전송되지 않으므로, 예측 샘플이 복원 샘플이 될 수 있다. 여기서는 가산부(240)를 별도의 구성으로 설명하였으나, 가산부(240)는 예측부(230)의 일부일 수도 있다. 한편, 가산부(240)는 복원부(reconstruction module) 또는 복원 블록 생성부로 불릴 수도 있다.The adder 240 may reconstruct the current block or the current picture by adding the residual sample and the predictive sample. The adder 240 may reconstruct the current picture by adding the residual sample and the predictive sample in block units. Since the residual is not transmitted when the skip mode is applied, the prediction sample may be a reconstruction sample. Although the adder 240 has been described in a separate configuration, the adder 240 may be part of the predictor 230. The adder 240 may also be called a reconstruction module or a reconstruction block generator.
필터부(250)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.The filter unit 250 may apply the deblocking filtering sample adaptive offset, and / or ALF to the reconstructed picture. In this case, the sample adaptive offset may be applied in units of samples and may be applied after deblocking filtering. ALF may be applied after deblocking filtering and / or sample adaptive offset.
메모리(260)는 복원 픽처(디코딩된 픽처) 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(250)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(260)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(260)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다. The memory 260 may store reconstructed pictures (decoded pictures) or information necessary for decoding. Here, the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 250. For example, the memory 260 may store pictures used for inter prediction. In this case, pictures used for inter prediction may be designated by a reference picture set or a reference picture list. The reconstructed picture can be used as a reference picture for another picture. In addition, the memory 260 may output the reconstructed picture in an output order.
한편, 상술한 바와 같이 비디오 코딩을 수행함에 있어 압축 효율을 높이기 위하여 예측을 수행한다. 이를 통하여 코딩 대상 블록인 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록을 생성할 수 있다. 여기서 상기 예측된 블록은 공간 도메인(또는 픽셀 도메인)에서의 예측 샘플들을 포함한다. 상기 예측된 블록은 인코딩 장치 및 디코딩 장치에서 동일하게 도출되며, 상기 인코딩 장치는 원본 블록의 원본 샘플 값 자체가 아닌 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼에 대한 정보(레지듀얼 정보)를 디코딩 장치로 시그널링함으로써 영상 코딩 효율을 높일 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 레지듀얼 샘플들을 포함하는 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록과 상기 예측된 블록을 합하여 복원 샘플들을 포함하는 복원 블록을 생성할 수 있고, 복원 블록들을 포함하는 복원 픽처를 생성할 수 있다. Meanwhile, as described above, prediction is performed in order to increase compression efficiency in performing video coding. Through this, a predicted block including prediction samples of the current block, which is a coding target block, may be generated. Wherein the predicted block comprises prediction samples in the spatial domain (or pixel domain). The predicted block is derived identically in the encoding apparatus and the decoding apparatus, and the encoding apparatus decodes information (residual information) about the residual between the original block and the predicted block, not the original sample value itself of the original block. Signaling to an apparatus may increase image coding efficiency. The decoding apparatus may derive a residual block including residual samples based on the residual information, generate the reconstructed block including reconstructed samples by adding the residual block and the predicted block, and generate reconstructed blocks. A reconstructed picture may be generated.
상기 레지듀얼 정보는 변환 및 양자화 절차를 통하여 생성될 수 있다. 예를 들어, 인코딩 장치는 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록에 포함된 레지듀얼 샘플들(레지듀얼 샘플 어레이)에 변환 절차를 수행하여 변환 계수들을 도출하고, 상기 변환 계수들에 양자화 절차를 수행하여 양자화된 변환 계수들을 도출하여 관련된 레지듀얼 정보를 (비트스트림을 통하여) 디코딩 장치로 시그널링할 수 있다. 여기서 상기 레지듀얼 정보는 상기 양자화된 변환 계수들의 값 정보, 위치 정보, 변환 기법, 변환 커널, 양자화 파라미터 등의 정보를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 역양자화/역변환 절차를 수행하고 레지듀얼 샘플들(또는 레지듀얼 블록)을 도출할 수 있다. 디코딩 장치는 예측된 블록과 상기 레지듀얼 블록을 기반으로 복원 픽처를 생성할 수 있다. 인코딩 장치는 또한 이후 픽처의 인터 예측을 위한 참조를 위하여 양자화된 변환 계수들을 역양자화/역변환하여 레지듀얼 블록을 도출하고, 이를 기반으로 복원 픽처를 생성할 수 있다.The residual information may be generated through a transform and quantization procedure. For example, the encoding apparatus derives a residual block between the original block and the predicted block, and performs transform procedure on residual samples (residual sample array) included in the residual block to derive transform coefficients. The quantized transform coefficients may be derived by performing a quantization procedure on the transform coefficients to signal related residual information to the decoding device (via a bitstream). Here, the residual information may include information such as value information of the quantized transform coefficients, position information, a transform scheme, a transform kernel, and a quantization parameter. The decoding apparatus may perform an inverse quantization / inverse transformation procedure and derive residual samples (or residual blocks) based on the residual information. The decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block. The encoding apparatus may then dequantize / inverse transform the quantized transform coefficients for reference for inter prediction of the picture to derive a residual block, and generate a reconstructed picture based thereon.
도 3은 본 발명의 일 실시예에 따른 컨텐츠 스트리밍 시스템을 예시적으로 나타낸다.3 exemplarily illustrates a content streaming system according to an embodiment of the present invention.
도 3을 참조하면, 본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 이 경우 구현을 위한 정보(ex. information on instructions) 또는 알고리즘이 디지털 저장 매체에 저장될 수 있다.Referring to FIG. 3, the embodiments described in the present invention may be implemented and performed on a processor, a microprocessor, a controller, or a chip. For example, the functional units shown in each drawing may be implemented and performed on a computer, processor, microprocessor, controller, or chip. In this case, information for implementation (ex. Information on instructions) or an algorithm may be stored in a digital storage medium.
또한, 본 발명이 적용되는 디코딩 장치 및 인코딩 장치는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recoder) 등을 포함할 수 있다.In addition, the decoding apparatus and encoding apparatus to which the present invention is applied include a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real time communication device such as video communication, and mobile streaming. Devices, storage media, camcorders, video on demand (VoD) service providers, over the top video (OTT) devices, internet streaming service providers, 3D (3D) video devices, video telephony video devices, and medical video devices It may be included and used to process a video signal or a data signal. For example, the OTT video device may include a game console, a Blu-ray player, an internet access TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), and the like.
또한, 본 발명이 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 발명에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다.In addition, the processing method to which the present invention is applied can be produced in the form of a program executed by a computer, and can be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium. The computer readable recording medium includes all kinds of storage devices and distributed storage devices in which computer readable data is stored. The computer-readable recording medium may be, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical disc. It may include a data storage device. The computer-readable recording medium also includes media embodied in the form of a carrier wave (eg, transmission over 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.
또한, 본 발명의 실시예는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 발명의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독가능한 캐리어 상에 저장될 수 있다.In addition, an embodiment of the present invention may be implemented as a computer program product by program code, which may be performed on a computer by an embodiment of the present invention. The program code may be stored on a carrier readable by a computer.
본 발명이 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.The content streaming system to which the present invention is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
상기 인코딩 서버는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 상기 스트리밍 서버로 전송하는 역할을 한다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들이 비트스트림을 직접 생성하는 경우, 상기 인코딩 서버는 생략될 수 있다.The encoding server compresses content input from multimedia input devices such as a smart phone, a camera, a camcorder, etc. into digital data to generate a bitstream and transmit the bitstream to the streaming server. As another example, when multimedia input devices such as smart phones, cameras, camcorders, etc. directly generate a bitstream, the encoding server may be omitted.
상기 비트스트림은 본 발명이 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 상기 스트리밍 서버는 상기 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 상기 비트스트림을 저장할 수 있다.The bitstream may be generated by an encoding method or a bitstream generation method to which the present invention is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
상기 스트리밍 서버는 웹 서버를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치에 전송하고, 상기 웹 서버는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 상기 웹 서버에 원하는 서비스를 요청하면, 상기 웹 서버는 이를 스트리밍 서버에 전달하고, 상기 스트리밍 서버는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 상기 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 상기 제어 서버는 상기 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.The streaming server transmits the multimedia data to the user device based on the user's request through the web server, and the web server serves as a medium for informing the user of what service. When a user requests a desired service from the web server, the web server delivers it to a streaming server, and the streaming server transmits multimedia data to the user. In this case, the content streaming system may include a separate control server. In this case, the control server plays a role of controlling a command / response between devices in the content streaming system.
상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하게 되는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.The streaming server may receive content from a media store and / or an encoding server. For example, when the content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
상기 사용자 장치의 예로는, 휴대폰, 스마트 폰(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, 데스크탑 컴퓨터, 디지털 사이니지 등이 있을 수 있다.Examples of the user device include a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PCs, ultrabooks, wearable devices, such as smartwatches, glass glasses, head mounted displays, digital TVs, desktops Computer, digital signage, and the like.
상기 컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.Each server in the content streaming system may be operated as a distributed server, in which case data received from each server may be distributed.
이하에서는 도 1 및 도 2와 함께 설명하였던 인터 예측 방법에 대하여 구체적으로 설명하겠다.Hereinafter, the inter prediction method described with reference to FIGS. 1 and 2 will be described in detail.
픽처 내 현재 블록의 예측을 위하여 다양한 인터 예측 모드가 사용될 수 있다. 예를 들어, 머지 모드, 스킵 모드, MVP(motion vector prediction) 모드, 어파인(Affine) 모드, HMVP(historical motino vector prediction) 모드 등 다양한 모드가 사용될 수 있다. 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 the current block in the picture. For example, various modes, such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, and historical motino vector prediction (HMVP) 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 a secondary mode. The affine mode may be called an affine motion prediction mode. MVP mode may be referred to as advanced motion vector prediction (AMVP) mode. In this document, motion information candidates derived by some modes and / or some modes may be included as one of motion information candidates of other modes.
현재 블록의 인터 예측 모드를 가리키는 예측 모드 정보가 인코딩 장치로부터 디코딩 장치로 시그널링될 수 있다. 상기 예측 모드 정보는 비트스트림에 포함되어 디코딩 장치에 수신될 수 있다. 상기 예측 모드 정보는 다수의 후보 모드들 중 하나를 지시하는 인덱스 정보를 포함할 수 있다. 또는, 플래그 정보의 계층적 시그널링을 통하여 인터 예측 모드를 지시할 수도 있다. 이 경우 상기 예측 모드 정보는 하나 이상의 플래그들을 포함할 수 있다. 예를 들어, 스킵 플래그를 시그널링하여 스킵 모드 적용 여부를 지시하고, 스킵 모드가 적용 안되는 경우에 머지 플래그를 시그널링하여 머지 모드 적용 여부를 지시하고, 머지 모드가 적용 안되는 경우에 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. The prediction mode information may be included in the bitstream and received by the decoding apparatus. 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, a skip flag is signaled to indicate whether a skip mode is applied, and if a skip mode is not applied, a merge flag is signaled to indicate whether a merge mode is applied, and if a merge mode is not applied, an MVP mode is applied. Or may further signal a flag for additional classification. The affine mode may be signaled in an independent mode, or may be signaled in a mode dependent on a merge mode or an MVP mode. For example, the affine mode may include an affine merge mode and an affine MVP mode.
인터 예측은 현재 블록의 움직임 정보를 이용하여 수행될 수 있다. 인코딩 장치는 움직임 추정(motion estimation) 절차를 통하여 현재 블록에 대한 최적의 움직임 정보를 도출할 수 있다. 예를 들어, 인코딩 장치는 현재 블록에 대한 원본 픽처 내 원본 블록을 이용하여 상관성이 높은 유사한 참조 블록을 참조 픽처 내의 정해진 탐색 범위 내에서 분수 픽셀 단위로 탐색할 수 있고, 이를 통하여 움직임 정보를 도출할 수 있다. 블록의 유사성은 위상(phase) 기반 샘플 값들의 차를 기반으로 도출할 수 있다. 예를 들어, 블록의 유사성은 현재 블록(or 현재 블록의 템플릿)과 참조 블록(or 참조 블록의 템플릿) 간 SAD(Sum of Absolute Difference)를 기반으로 계산될 수 있다. 이 경우 탐색 영역 내 SAD가 가장 작은 참조 블록을 기반으로 움직임 정보를 도출할 수 있다. 도출된 움직임 정보는 인터 예측 모드 기반으로 여러 방법에 따라 디코딩 장치로 시그널링될 수 있다.Inter prediction may be performed using motion information of the current block. The encoding apparatus may derive optimal motion information for the current block through a motion estimation procedure. For example, the encoding apparatus may search for a similar reference block having a high correlation using the original block in the original picture for the current block in fractional pixel units within a predetermined search range in the reference picture, thereby deriving motion information. Can be. Similarity of blocks 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 absorptive 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.
도 4는 본 발명의 일 실시예에 따른 어파인 움직임 모델을 예시적으로 나타낸다.4 exemplarily illustrates an affine motion model according to an embodiment of the present invention.
통상의 비디오 코딩 시스템은 부호화 블록의 움직임을 표현하기 위해 하나의 움직임 벡터를 사용하였다. 다만, 이러한 방법은 블록 단위에서 최적의 움직임을 나타낼 수 있으나, 실제 각 화소의 최적의 움직임은 나타낼 수 없을 수 있다. 따라서, 부호화 효율을 보다 향상시키기 위해 화소 단위에서 최적의 움직임 벡터를 결정할 수 있는 어파인 움직임 모델을 사용하여 부호화하는 어파인 모드 또는 어파인 움직임 예측 모드가 이용될 수 있다. 여기서 어파인 모드는 부호화 효율을 보다 향상시키기 위해 현재 블록의 서브블록 단위에서 최적의 움직임 벡터를 결정할 수도 있다. 어파인 움직임 예측 모드는 2개, 3개, 또는 4개의 움직임 벡터를 이용하여 블록의 각 화소 단위에서의 움직임 벡터를 나타낼 수 있다.Conventional video coding systems use one motion vector to represent the motion of a coding block. However, this method may represent the optimal movement in block units, but may not actually represent the optimal movement of each pixel. Therefore, in order to further improve encoding efficiency, an affine mode or an affine motion prediction mode that encodes using an affine motion model capable of determining an optimal motion vector in a pixel unit may be used. Here, the affine mode may determine an optimal motion vector in subblock units of the current block in order to further improve coding efficiency. The affine motion prediction mode may represent a motion vector in each pixel unit of a block by using two, three, or four motion vectors.
도 4를 참조하면, 어파인 움직임 모델은 4가지의 움직임 모델을 포함할 수 있으나, 이는 예시적인 움직임 모델이므로, 본 발명의 범위가 이에 한정되는 것은 아니다. 상술한 4가지 움직임은 이동 변형(translate), 크기 변형(scale), 회전(rotate) 및 형태 변형(shear)을 포함할 수 있다.Referring to FIG. 4, the affine motion model may include four motion models, but since this is an exemplary motion model, the scope of the present invention is not limited thereto. The four movements described above may include translation, scale, rotation, and shear.
도 5a 및 도 5b는 본 발명의 일 실시예에 따른 4-파라미터 어파인 모델 및 6-파라미터 어파인 모델을 예시적으로 나타낸다.5A and 5B exemplarily illustrate a four-parameter affine model and a six-parameter affine model according to an embodiment of the present invention.
도 5a 및 도 5b를 참조하면, 어파인 움직임 예측은 아핀 움직임 모델을 이용하기 위해 컨트롤 포인트(CP, Control Point)가 정의될 수 있으며, 2개 이상의 컨트롤 포인트 움직임 벡터(CPMV, Control Point Motion Vector)를 이용하여 블록이 포함하는 화소 위치 또는 서브블록의 움직임 벡터를 결정할 수 있다. 여기서 블록이 포함하는 화소 위치 또는 서브블록의 움직임 벡터들의 집합은 어파인 움직임 벡터 필드(affine MVF, affine Motion Vector Field)라고 지칭할 수 있다.5A and 5B, in the affine motion prediction, a control point (CP) may be defined to use an affine motion model, and two or more control point motion vectors (CPMVs) may be defined. The motion vector of the pixel position or the subblock included in the block can be determined by using. Here, the set of pixel positions or motion vectors of the sub-blocks may be referred to as an affine Motion Vector Field (affine MVF).
도 5a를 참조하면, 4-파라미터 어파인 모델은 2개의 CPMV를 이용하여 화소 위치 또는 서브블록의 움직임 벡터를 결정하는 모델을 의미할 수 있으며, 화소 위치 또는 서브블록의 움직임 벡터들 또는 어파인 움직임 벡터 필드는 수학식 1과 같이 도출될 수 있다.Referring to FIG. 5A, the 4-parameter affine model may mean a model for determining a motion vector of a pixel position or a subblock using two CPMVs, and the motion vectors or affine motion of the pixel position or a subblock. The vector field may be derived as shown in Equation 1.
Figure PCTKR2019004401-appb-M000001
Figure PCTKR2019004401-appb-M000001
도 5b를 참조하면, 6-파라미터 어파인 모델은 3개의 CPMV 움직임 벡터를 이용하여 화소 위치 또는 서브블록의 움직임 벡터를 결정하는 모델을 의미할 수 있으며, 화소 위치 또는 서브블록의 움직임 벡터들 또는 어파인 움직임 벡터 필드는 수학식 2와 같이 도출될 수 있다.Referring to FIG. 5B, the 6-parameter affine model may mean a model for determining a motion vector of a pixel position or a subblock using three CPMV motion vectors, and the motion vectors or the affinity of the pixel position or subblock. The motion vector field may be derived as shown in Equation 2.
Figure PCTKR2019004401-appb-M000002
Figure PCTKR2019004401-appb-M000002
수학식 1 및 수학식 2에서 v0x, v0y는 현재 블록의 좌상단 코너 위치의 CP의 CPMV를, v1x, v1y는 현재 블록의 우상단 코너 위치의 CP의 CPMV를, v2x, v2y는 현재 블록의 좌하단 코너 위치의 CP의 CPMV를 나타낼 수 있다. 또한 W는 현재 블록의 너비를, H는 현재 블록의 높이를 나타낼 수 있다. vx, vy는 (x, y) 위치의 화소 또는 (x, y) 위치를 포함하는 서브블록의 움직임 벡터를 나타낼 수 있다.In Equation 1 and Equation 2 v 0x, v 0y is the CP CPMV of the upper left corner position of the current block, v 1x, v 1y are the CP CPMV of the upper right corner position of the current block, v 2x, v 2y is It may indicate the CPMV of the CP of the lower left corner of the current block. In addition, W may represent the width of the current block, H may represent the height of the current block. v x , v y may represent a motion vector of a pixel at the (x, y) position or a subblock including the (x, y) position.
도 6은 본 발명의 일 실시예에 따른 어파인 움직임 벡터 필드가 서브블록 단위에서 결정되는 경우를 예시적으로 나타낸다.FIG. 6 exemplarily illustrates a case where the affine motion vector field is determined in subblock units according to an embodiment of the present invention.
도 6을 참조하면, 인코딩/디코딩 과정에서 어파인 움직임 벡터 필드는 이미 정의된 서브블록 단위에서 결정될 수 있고, 도 6과 달리 화소 단위에서 결정될 수도 있다.Referring to FIG. 6, in the encoding / decoding process, the affinity motion vector field may be determined in a previously defined subblock unit, or may be determined in a pixel unit unlike FIG.
어파인 움직임 벡터 필드는 화소 단위로 결정하는 경우, 움직임 벡터는 각 화소값을 기준으로 결정될 수 있고, 서브블록 단위로 결정하는 경우, 움직임 벡터는 서브블록의 중앙(센터 우하측, 즉 중앙 4개의 샘플들 중 우하측 샘플) 화소값을 기준으로 결정될 수 있다.When the affine motion vector field is determined in units of pixels, the motion vector may be determined based on each pixel value, and when determined in units of subblocks, the motion vector is the center of the subblock (lower right center, that is, four centers). The right lower sample of the samples) may be determined based on the pixel value.
어파인 모드는 어파인 머지 모드 및 어파인 MVP 모드를 포함할 수 있다. The affine mode may include an affine merge mode and an affine MVP mode.
어파인 머지 모드는 어파인 모드로 코딩된 주변 블록의 CPMV를 이용하여 현재 블록의 CPMV를 도출할 수 있으며, 움직임 벡터를 서브블록 단위로 결정하는 경우, 어파인 머지 모드는 서브블록 머지 모드라고 지칭할 수도 있다.The affine merge mode may derive the CPMV of the current block using the CPMV of the neighboring block coded in the affine mode, and when the motion vector is determined in units of subblocks, the affine merge mode is called a subblock merge mode. You may.
어파인 머지 모드에서 인코딩 장치는 현재 블록의 CPMV를 도출하기 위한 어파인 모드로 코딩된 주변 블록에 대한 인덱스를 디코딩 장치로 시그널링할 수 있으며, 주변 블록의 CPMV 및 현재 블록의 CPMV 간의 차분값을 더 시그널링할 수도 있다. 여기서 어파인 머지 모드는 주변 블록을 기반으로 어파인 머지 후보 리스트를 구성할 수 있으며, 주변 블록에 대한 인덱스는 어파인 머지 후보 리스트 중 현재 블록의 CPMV를 도출하기 위해 참조할 주변 블록을 나타낼 수 있다. 어파인 머지 후보 리스트는 서브블록 머지 후보 리스트라고 지칭할 수도 있다.In the affine merge mode, the encoding apparatus may signal an index for a neighboring block coded in the affine mode to derive the CPMV of the current block to the decoding apparatus, and further add a difference value between the CPMV of the neighboring block and the CPMV of the current block. It may signal. Here, the merge merge mode may configure the candidate merge list based on the neighboring block, and the index of the neighboring block may represent the neighboring block to be referred to to derive the CPMV of the current block among the merge merge candidate lists. . The affine merge candidate list may be referred to as a subblock merge candidate list.
어파인 MVP 모드는 현재 블록의 CPMV를 CPMVP(Control Point Motion Vector Predictor) 및 CPMVD(Control Point Motion Vector Difference)를 기반으로 도출할 수 있다. 다시 말해, 인코딩 장치는 현재 블록의 CPMV에 대하여 CPMVP를 결정하고, 현재 블록의 CPMV와 CPMVP의 차분값인 CPMVD를 도출하여 CPMVP에 대한 정보 및 CPMVD에 대한 정보를 디코딩 장치로 시그널링할 수 있다. 여기서 어파인 MVP 모드는 주변 블록을 기반으로 어파인 MVP 후보 리스트를 구성할 수 있으며, CPMVP에 대한 정보는 어파인 MVP 후보 리스트 중 현재 블록의 CPMV에 대한 CPMVP를 도출하기 위해 참조할 주변 블록을 나타낼 수 있다. 어파인 MVP 모드는 어파인 인터 모드라고 지칭할 수 있고, 어파인 MVP 후보 리스트는 컨트롤 포인트 움직임 벡터 예측자 후보 리스트라고 지칭할 수도 있다.The affine MVP mode may derive the CPMV of the current block based on a CPMVP (Control Point Motion Vector Predictor) and a CPMVD (Control Point Motion Vector Difference). In other words, the encoding apparatus may determine the CPMVP for the CPMV of the current block, derive a CPMVD that is a difference between the CPMV and the CPMVP of the current block, and signal the information about the CPMVP and the information about the CPMVD to the decoding apparatus. Here, the affine MVP mode may configure the affine MVP candidate list based on the neighboring block, and the information on the CPMVP indicates a neighboring block to be referred to to derive the CPMVP of the CPMV of the current block among the affine MVP candidate lists. Can be. The affine MVP mode may be referred to as an affine inter mode, and the affine MVP candidate list may be referred to as a control point motion vector predictor candidate list.
어파인 후보 리스트는 어파인 머지 모드에서의 어파인 머지 후보 리스트 및 어파인 MVP 모드에서의 어파인 MVP 후보 리스트를 포함할 수 있다. 여기서, 어파인 후보 리스트는 특정 순서에 따라 써치된 어파인 모드로 코딩된 주변 블록을 후보로 구성할 수 있으며, 후보의 개수는 미리 정의될 수 있다.The affine candidate list may include an affine merge candidate list in the affine merge mode and an affine MVP candidate list in the affine MVP mode. Here, the candidate candidate list may be configured as candidates of neighboring blocks coded in the searched affine mode in a specific order, and the number of candidates may be predefined.
어파인 후보 리스트는 주변 블록을 기반으로 도출될 수 있다. 주변 블록은 공간적 주변 블록 및 시간적 주변 블록을 포함할 수 있다. 어파인 후보 리스트는 우선 공간적 주변 블록을 기반으로 도출되는 공간적 후보를 포함할 수 있다. 어파인 후보 리스트는 공간적 후보만으로 미리 정의된 후보 개수가 미달되는 경우, 시간적 주변 블록을 기반으로 도출되는 시간적 후보를 포함할 수 있다. 어파인 후보 리스트는 공간적 후보 및 시간적 후보만으로 미리 정의된 후보 개수가 미달되는 경우, 제로 움직임 벡터를 더 포함시킬 수 있다.The candidate candidate list may be derived based on neighboring blocks. The neighboring block may include a spatial neighboring block and a temporal neighboring block. The affine candidate list may first include spatial candidates derived based on spatial neighboring blocks. The affine candidate list may include a temporal candidate derived based on a temporal neighboring block when a predefined number of candidates is less than a spatial candidate only. The affine candidate list may further include a zero motion vector when the number of candidates predefined by the spatial candidates and the temporal candidates is less than the candidate candidate list.
공간적 주변 블록은 현재 블록보다 이전에 디코딩된 블록을 의미할 수 있고, 시간적 주변 블록은 현재 블록을 포함하는 픽처보다 이전에 디코딩된 참조 픽처에 현재 블록과 동일한 위치의 블록을 포함할 수 있다. 여기서 시간적 주변 블록은 상술한 Col 블록을 의미할 수 있다. The spatial neighboring block may mean a block decoded before the current block, and the temporal neighboring block may include a block at the same position as the current block in the reference picture decoded before the picture including the current block. In this case, the temporal neighboring block may refer to the above-described Col block.
시간적 후보를 이용하기 위해서는 참조 픽처의 움직임 정보가 메모리에 저장되어야 할 수 있다. 여기서, 메모리에 저장된 Col 블록을 참조하는 것을 시간적 움직임 벡터 예측(TMVP, Temporal Motion Vector Prediction)이라 지칭할 수 있다.In order to use a temporal candidate, motion information of a reference picture may need to be stored in a memory. Here, referring to the Col block stored in the memory may be referred to as temporal motion vector prediction (TMVP).
시간적 움직임 벡터 예측(TMVP, Temporal Motion Vector Prediction)은 코딩 효율을 향상시키기 위해 이용될 수 있다. TMVP를 위한 참조 픽처 또는 참조 프레임(reference frame) 내의 움직임 정보는 움직임 벡터(MV, Motion Vector) 및 참조 프레임 인덱스를 포함할 수 있고, 움직임 벡터는 ATMVP(Alternative Temporal Motion Vector), STMVP(Spatial-Temporal Motion Vector Prediction), 어파인 예측(affine prediction) 및 PMMVD(Pattern Matched Motion Vector Derivation)와 같은 여러 코딩 툴에 의해 4 x 4 블록 레벨에서 도출될 수 있으므로, 8 x 8 또는 그 이상의 블록 레벨 대신 4 x 4 블록 레벨로 저장될 수 있다. 따라서, TMVP를 위한 참조 프레임 내의 움직임 정보는 메모리 저장소에 상당한 양의 비트를 차지할 수 있으므로, 참조 프레임 버퍼에 압축되어 저장되는 것이 요구될 수 있다.Temporal Motion Vector Prediction (TMVP) may be used to improve coding efficiency. Motion information in a reference picture or reference frame for a TMVP may include a motion vector (MV) and a reference frame index, and the motion vector may be an alternate temporal motion vector (ATMVP) or a spatial-temporal (STMVP). It can be derived at the 4 x 4 block level by several coding tools, such as Motion Vector Prediction, affine prediction, and Pattern Matched Motion Vector Derivation (PMMVD), so 4 x instead of 8 x 8 or higher block levels. Can be stored at 4 block levels. Therefore, since motion information in a reference frame for TMVP may occupy a considerable amount of bits in the memory storage, it may be required to be compressed and stored in the reference frame buffer.
본 발명의 일 실시예는 움직임 정보 저장 유닛(motion information storage unit)을 이용하여 움직임 정보에 대한 저장 공간을 감소시키는 방법을 제안할 수 있다. One embodiment of the present invention may propose a method of reducing a storage space for motion information by using a motion information storage unit.
본 발명의 일 실시예는 움직임 정보에 대한 저장 공간을 감소시키기 위해 움직임 정보 저장 유닛을 통해 참조 프레임의 움직임 정보를 버퍼에 저장할 수 있다. 여기서 움직임 정보 저장 유닛은 하나의 움직임 벡터가 저장되는 블록 레벨에 대한 단위 유닛으로 정의될 수 있다. 움직임 정보 저장 유닛은 N x N 크기(N은 4보다 큰 수 또는 큰 자연수)를 가질 수 있으며, 본 발명의 설명에서 움직임 정보 저장 유닛은 N x N 블록으로 지칭할 수도 있다.An embodiment of the present invention may store motion information of a reference frame in a buffer through the motion information storage unit to reduce the storage space for the motion information. The motion information storage unit may be defined as a unit unit for a block level in which one motion vector is stored. The motion information storage unit may have an N × N size (N is a number greater than 4 or a large natural number), and in the description of the present invention, the motion information storage unit may be referred to as an N × N block.
본 발명의 일 실시예에 따르면, N x N 블록 내에서 좌상에 위치한 4 x 4 블록의 움직임 정보가 메모리 저장소에 저장될 수 있다. 여기서 4 x 4 블록의 위치는 좌상 외에 우상 또는 중앙에 위치할 수도 있으나, 이에 한정되는 것은 아니며, 그 외의 다른 위치가 미리 정의될 수도 있다.According to one embodiment of the present invention, the motion information of the 4 x 4 block located in the upper left in the N x N block may be stored in the memory storage. Here, the position of the 4 × 4 block may be located at the top right or the center in addition to the top left, but is not limited thereto. Other positions may be predefined.
N x N 블록에 수행된 스캐닝에서 미리 정의된 스캔 순서 상의 참조 인덱스(reference index)가 0인 첫 번째로 스캔된 4 x 4 블록의 움직임 벡터가 이용될 수 있다. 여기서 참조 인덱스가 0인 움직임 벡터가 존재하지 않는 경우, 참조 인덱스가 0으로 스케일된(scaled) 움직임 벡터가 저장될 수 있다.In the scanning performed on the N × N block, the motion vector of the first scanned 4 × 4 block having a reference index on a predefined scan order of 0 may be used. If there is no motion vector having a reference index of 0, a motion vector scaled with a reference index of 0 may be stored.
대표 참조 프레임 인덱스(representative reference frame index)는 프레임 레벨에서 선택될 수 있으며, 이후 4 x 4 블록의 미리 정의된 위치의 움직임 벡터가 대표 참조 프레임에 따라 스케일되고 저장될 수 있다. 여기서 대표 참조 프레임은 가장 많이 발생된 참조 프레임으로 선택될 수 있고, 프레임 레벨에서 하나의 플래그가 대표 참조 프레임을 지시하기 위해 시그널될 수 있다. 상술한 과정은 CTU 레벨, 슬라이스 레벨, 또는 픽처 레벨에서도 이용될 수 있다. 또는 대표 참조 프레임 인덱스는 0으로 설정될 수도 있다. 이 경우 대표 참조 프레임 인덱스를 지시하는 플래그가 요구되지 않을 수 있다.A representative reference frame index may be selected at the frame level, and then a motion vector of a predefined position of a 4 × 4 block may be scaled and stored according to the representative reference frame. Here, the representative reference frame may be selected as the most generated reference frame, and one flag may be signaled to indicate the representative reference frame at the frame level. The above-described process may be used at the CTU level, slice level, or picture level. Alternatively, the representative reference frame index may be set to zero. In this case, a flag indicating a representative reference frame index may not be required.
상술한 과정에서 N x N 블록 내의 하나의 움직임 벡터를 선택하는 과정 대신에 평균(average) 또는 중간(median) 움직임 벡터가 사용될 수도 있다.In the above-described process, an average or median motion vector may be used instead of selecting one motion vector in the N × N block.
예를 들어, 어파인 예측을 이용하는 경우 본 발명의 일 실시예에 따른 움직임 정보에 대한 저장 공간을 감소시키는 방법은 다음과 같을 수 있다.For example, when using affine prediction, a method of reducing storage space for motion information according to an embodiment of the present invention may be as follows.
도 7은 본 발명의 일 실시예에 따른 컨트롤 포인트 움직임 벡터 및 어파인 움직임 벡터 필드를 예시적으로 나타낸다.7 exemplarily illustrates a control point motion vector and an affine motion vector field according to an embodiment of the present invention.
어파인 예측(affine prediction)은 컨트롤 포인트 움직임 벡터(CPMV, Control Point Motion Vector)의 세트 및 어파인 움직임 벡터 필드(MVF, Motion Vector Field)와 같이 2가지 타입의 움직임 벡터가 이용될 수 있다. Affine prediction may use two types of motion vectors, such as a set of control point motion vectors (CPMVs) and an affine motion vector field (MVF).
본 발명의 일 실시예에서 컨트롤 포인트 움직임 벡터들은 어파인 움직임 모델을 생성하기 위한 코딩 블록의 4개의 코너 포인트들(corner points)에서의 움직임 벡터들일 수 있고, 어파인 움직임 벡터 필드(affine MVF)는 컨트롤 포인트들을 기반으로 결정되는 어파인 움직임 모델로부터 도출된 움직임 벡터들의 세트일 수 있다. 어파인 움직임 벡터 필드가 서브블록 단위에서의 움직임 벡터들의 세트인 경우, 각 움직임 벡터들은 서브블록의 중앙 위치를 기반으로 결정될 수 있다. 여기서, 서브블록은 4 x 4 블록일 수 있으나, 이에 한정되는 것은 아니다.In one embodiment of the invention the control point motion vectors may be motion vectors at four corner points of a coding block for generating an affine motion model, and the affine MVF field is It may be a set of motion vectors derived from an affine motion model determined based on control points. When the affine motion vector field is a set of motion vectors in a subblock unit, each motion vector may be determined based on the center position of the subblock. Here, the subblock may be a 4 × 4 block, but is not limited thereto.
도 7을 참조하면, 예를 들어, 컨트롤 포인트들은 블록의 좌상단(top-left) 샘플 포지션, 우상단(top-right) 샘플 포지션, 좌하단(bottom-left) 샘플 포지션 및 우하단(bottom-right) 샘플 포지션에 각각 위치할 수 있다. 다시 말해, 좌상단 샘플 포지션에 위치한 컨트롤 포인트는 CP0, 우상단 샘플 포지션에 위치한 컨트롤 포인트는 CP1, 좌하단 샘플 포지션에 위치한 컨트롤 포인트는 CP2, 및 우하단 샘플 포지션에 위치한 컨트롤 포인트는 CP3라고 지칭할 수 있다. 블록은 16개의 서브블록으로 구분될 수 있고, 서브블록의 움직임 벡터는 각 서브블록의 중앙 위치를 기반으로 움직임 벡터가 결정될 수 있다. 따라서, 컨트롤 포인트 움직임 벡터는 해당 컨트롤 포인트를 포함하고 있는 서브블록의 움직임 벡터와 다를 수 있다.Referring to FIG. 7, for example, the control points may include a top-left sample position, a top-right sample position, a bottom-left sample position, and a bottom-right sample. Each may be positioned at a sample position. In other words, the control point at the upper left sample position is CP 0, the control point at the upper right sample position is CP 1 , the control point at the lower left sample position is CP 2 , and the control point at the lower right sample position is CP 3 . May be referred to. A block may be divided into 16 subblocks, and a motion vector of the subblock may be determined based on a center position of each subblock. Therefore, the control point motion vector may be different from the motion vector of the subblock including the control point.
도 8은 본 발명의 일 실시예에 따른 일부 서브블록의 움직임 벡터가 컨트롤 포인트 움직임 벡터로 대체된 어파인 움직임 벡터 필드를 예시적으로 나타낸다.8 exemplarily illustrates an affine motion vector field in which a motion vector of some subblocks is replaced with a control point motion vector according to an embodiment of the present invention.
본 발명의 일 실시예는 디코딩 시 어파인 움직임 보상(affine motion compensation)을 위해 블록에 대한 어파인 움직임 벡터 필드가 결정되고 버퍼에 저장될 수 있다. 여기서 블록에 대한 어파인 움직임 벡터 필드가 버퍼에 저장되는 경우, 컨트롤 포인트를 포함하는 4개의 코너 블록의 움직임 벡터가 컨트롤 포인트 움직임 벡터로 대체될 수 있다.According to an embodiment of the present invention, the affine motion vector field for a block may be determined and stored in a buffer for affine motion compensation during decoding. Here, when the affine motion vector field for a block is stored in a buffer, the motion vector of four corner blocks including the control point may be replaced with the control point motion vector.
도 8을 참조하면, 도 7의 16개의 서브블록에서 CP0를 포함하는 좌상단 서브블록의 움직임 벡터는 CP0의 움직임 벡터로, CP1을 포함하는 우상단 서브블록의 움직임 벡터는 CP1의 움직임 벡터로, CP2를 포함하는 좌하단 서브블록의 움직임 벡터는 CP2의 움직임 벡터로, CP3을 포함하는 우하단 서브블록의 움직임 벡터를 CP3의 움직임 벡터로 대체될 수 있다.Referring to FIG. 8, in the 16 subblocks of FIG. 7, the motion vector of the upper left subblock including CP 0 is a motion vector of CP 0, and the motion vector of the upper right subblock including CP 1 is a motion vector of CP 1 . a motion vector of the lower left sub-block containing the CP 2 may be replaced by a motion vector of a CP 2, the lower right sub-block motion vectors including a motion vector of a CP 3 CP 3.
도 9는 본 발명의 일 실시예에 따른 32 x 32 어파인 블록을 예시적으로 나타낸다.9 exemplarily shows a 32 × 32 affine block according to an embodiment of the present invention.
본 발명의 일 실시예에 따라 블록이 어파인 예측으로 코딩되고, 움직임 벡터 버퍼(MV buffer)의 크기를 감소시키기 위해 움직임 벡터가 N x N(N은 4보다 큰 수 또는 큰 자연수) 블록 레벨의 움직임 정보 저장 유닛에 따라 저장된 경우, 다음과 같이 과정에 따라 움직임 정보가 저장될 수 있다. 여기서 어파인 블록(affine block)은 어파인 예측으로 코딩된 블록을 의미할 수 있다.According to an embodiment of the present invention, a block is coded with affine prediction, and the motion vector is N × N (N is a number greater than 4 or a natural number larger) to reduce the size of the MV buffer. When stored according to the motion information storage unit, motion information may be stored according to a process as follows. Here, an affine block may mean a block coded by affine prediction.
움직임 정보 저장 유닛(N x N 블록)이 CP를 포함하지 않는 경우, N x N 블록 내에서 좌상단의 4 x 4 블록의 움직임 정보가 해당 움직임 정보 저장 유닛의 움직임 정보로 저장될 수 있다. When the motion information storage unit (N × N block) does not include a CP, motion information of the 4 × 4 block in the upper left corner of the N × N block may be stored as motion information of the corresponding motion information storage unit.
움직임 정보 저장 유닛(N x N 블록)이 CP를 포함하는 경우, 해당 CP의 컨트롤 포인트 움직임 벡터(CPMV)가 좌상단의 4 x 4 블록의 움직임 정보 대신에 해당 움직임 정보 저장 유닛의 움직임 정보로 저장될 수 있다. When the motion information storage unit (N x N block) includes a CP, the control point motion vector (CPMV) of the CP is stored as the motion information of the corresponding motion information storage unit instead of the motion information of the 4 x 4 block in the upper left corner. Can be.
움직임 정보 저장 유닛(N x N 블록)의 중앙 위치의 움직임 벡터는 현재 블록의 어파인 움직임 모델에 따라 도출될 수 있고, 도출된 움직임 벡터는 움직임 정보 저장 유닛(N x N 블록)의 움직임 벡터로 저장될 수 있다. CP를 포함하는 움직임 정보 저장 유닛의 저장된 움직임 벡터는 CPVM로 대체될 수도 있고, 대체되지 않을 수도 있다.The motion vector of the center position of the motion information storage unit (N x N block) may be derived according to the affine motion model of the current block, and the derived motion vector is a motion vector of the motion information storage unit (N x N block). Can be stored. The stored motion vector of the motion information storage unit containing the CP may or may not be replaced with CPVM.
도 9를 참조하면, 설명의 편의를 위해 블록의 크기는 32 x 32이고, N은 8이라고 가정한다. 이러한 가정 하에서 블록은 16개의 8 x 8 움직임 정보 저장 유닛을 포함할 수 있고, 움직임 정보 저장 유닛은 각각 4개의 4 x 4 서브블록을 포함할 수 있다. 움직임 벡터는 서브블록마다 존재할 수 있다.Referring to FIG. 9, it is assumed that a block size is 32 × 32 and N is 8 for convenience of description. Under this assumption, the block may include sixteen 8 × 8 motion information storage units, and the motion information storage units may each include four 4 × 4 subblocks. The motion vector may exist per subblock.
본 발명의 일 실시예에 따르면, 16개의 움직임 정보 저장 유닛 중 CP를 포함하지 않는 12개의 움직임 정보 저장 유닛의 움직임 벡터는 좌상단의 4 x 4 서브블록의 움직임 벡터로 저장될 수 있다. CP를 포함하는 4개의 움직임 정보 저장 유닛(점선으로 표시된 블록)의 움직임 벡터는 CP를 포함하는 4 x 4 서브블록의 움직임 벡터로 저장될 수 있다. 여기서, CP를 포함하는 4 x 4 서브블록의 움직임 벡터는 해당 CP의 움직임 벡터(CPMV)로 대체될 수 있으며, CPMV가 해당 움직임 정보 저장 유닛의 움직임 벡터로 저장될 수 있다. 다시 말해, 도 9에서 블록은 16개의 움직임 정보 저장 유닛을 포함할 수 있으며, 4 x 4 서브블록 중 회색 영역의 움직임 벡터가 각각 16개의 움직임 정보 저장 유닛의 움직임 벡터로 저장될 수 있다.According to an embodiment of the present invention, the motion vectors of the 12 motion information storage units not including the CP among the 16 motion information storage units may be stored as the motion vectors of the 4 × 4 subblocks of the upper left corner. The motion vectors of the four motion information storage units (blocks indicated by dotted lines) including the CP may be stored as the motion vectors of the 4 × 4 subblocks including the CP. Here, the motion vector of the 4x4 subblock including the CP may be replaced with a motion vector (CPMV) of the corresponding CP, and the CPMV may be stored as a motion vector of the motion information storage unit. In other words, in FIG. 9, a block may include 16 motion information storage units, and motion vectors of gray areas of the 4 × 4 subblocks may be stored as motion vectors of 16 motion information storage units, respectively.
도 10a 및 도 10b는 본 발명의 일 실시예에 따른 어파인 블록 및 비-어파인 블록을 포함하는 움직임 벡터 필드를 예시적으로 나타낸다.10A and 10B exemplarily illustrate a motion vector field including an affine block and a non-affine block according to an embodiment of the present invention.
도 10a 및 도 10b를 참조하면, 하나의 움직임 정보 저장 유닛은 어파인 예측으로 코딩된 블록의 적어도 일부 또는 서브블록과 어파인 예측이 아닌 다른 방법 또는 모드에 따라 코딩된 블록의 적어도 일부를 포함할 수도 있다. 도 10a 및 도 10b에서 굵은 선으로 나타낸 블록은 움직임 정보 저장 유닛을 나타낼 수 있다. 10A and 10B, one motion information storage unit may include at least a portion of a block coded with affine prediction or a subblock and at least a portion of a block coded according to a method or mode other than affine prediction. It may be. Blocks shown in bold lines in FIGS. 10A and 10B may indicate a motion information storage unit.
여기서, 어파인 블록은 어파인 예측으로 코딩된 블록의 적어도 일부 또는 서브블록을 지칭할 수 있고, 비-어파인 블록(non-affine block)은 어파인 예측이 아닌 다른 방법 또는 모드에 따라 코딩된 블록의 적어도 일부를 지칭할 수 있다. Here, the affine block may refer to at least a part or subblock of a block coded with affine prediction, and the non-affine block is coded according to a method or mode other than affine prediction. It may refer to at least a portion of the block.
움직임 정보 저장 유닛(또는 N x N 블록)이 CP를 포함하는 4 x 4 어파인 서브블록을 포함하거나 포함하지 않는 경우, N x N 블록의 움직임 벡터는 미리 정의된 위치의(pre-defined position) 움직임 벡터, 평균(average) 움직임 벡터, 또는 중간(median) 움직임 벡터 중 어느 하나로 선택될 수 있다.If the motion information storage unit (or N x N block) does or does not include a 4 x 4 affine subblock that includes a CP, the motion vector of the N x N block is a pre-defined position. The motion vector, the average motion vector, or the median motion vector may be selected.
움직임 정보 저장 유닛(또는 N x N 블록)이 CP를 포함하는 4 x 4 어파인 서브블록을 포함하는 경우, N x N 블록의 움직임 벡터는 버퍼 내에 저장을 위한 최우선 순위로서 어파인 서브블록의 움직임 벡터로 선택될 수 있다.When the motion information storage unit (or N x N block) includes a 4 x 4 affine subblock containing CP, the motion vector of the N x N block is the priority of the affine subblock for storage in the buffer. Can be selected as a vector.
또는 CP의 위치가 고려될 수도 있다. 예를 들어, 도 10a에서 어파인 블록의 움직임 벡터는 해당 움직임 벡터의 위치가 N x N 블록 내의 중앙 위치하므로, 움직임 벡터 버퍼 내의 저장이 고려될 수 있다. 예를 들어, 도 10b에서 어파인 블록의 움직임 벡터는 해당 움직임 벡터의 위치가 N x N 블록 내의 중앙 위치로부터 떨어져 있으므로, 움직임 벡터 버퍼 내의 저장이 고려되지 않을 수 있다.Alternatively, the position of the CP may be considered. For example, in the motion vector of the affine block in FIG. 10A, since the position of the motion vector is centered in the N × N block, storage in the motion vector buffer may be considered. For example, in the motion vector of the affine block in FIG. 10B, since the position of the motion vector is away from the center position in the N × N block, storage in the motion vector buffer may not be considered.
도 10a를 참조하면, 본 발명의 일 실시예는 움직임 정보 저장 유닛이 3개의 비-어파인 블록 및 어파인 블록의 1개의 서브블록을 포함하는 경우, 상기 움직임 정보 저장 유닛의 움직임 벡터는 어파인 블록의 1개의 서브블록의 움직임 벡터로 저장될 수 있다. 여기서 블록 또는 서브블록은 움직임 벡터를 가지며 4 x 4 크기일 수 있으나, 이에 한정되는 것은 아니다.Referring to FIG. 10A, when an motion information storage unit includes three non-affine blocks and one subblock of an affine block, the motion vector of the motion information storage unit is affine. It may be stored as a motion vector of one subblock of a block. Here, the block or subblock may have a motion vector and have a size of 4 × 4, but is not limited thereto.
도 10b를 참조하면, 본 발명의 일 실시예는 움직임 정보 저장 유닛이 2개의 비-어파인 블록 및 어파인 블록의 2개의 서브블록을 포함하는 경우, 상기 움직임 정보 저장 유닛의 움직임 벡터는 어파인 블록의 2개의 서브블록의 움직임 벡터 중 하나로 저장될 수 있다. 다시 말해, 움직임 정보 저장 유닛 내의 어파인 블록의 서브블록이 2개 이상인 경우, 어파인 블록의 컨트롤 포인트를 포함하는 서브블록의 움직임 벡터 또는 좌상단의 서브블록의 움직임 벡터가 움직임 정보 저장 유닛의 움직임 벡터로 저장될 수 있다. 여기서 컨트롤 포인트를 포함하는 서브블록의 움직임 벡터는 컨트롤 포인트 움직임 벡터로 대체될 수 있다.Referring to FIG. 10B, when an motion information storage unit includes two non-affine blocks and two subblocks of an affine block, the motion vector of the motion information storage unit is affine. It may be stored as one of the motion vectors of the two subblocks of the block. In other words, when there are two or more subblocks of the affine block in the motion information storage unit, the motion vector of the subblock including the control point of the affine block or the motion vector of the upper left subblock is the motion vector of the motion information storage unit. Can be stored as. The motion vector of the subblock including the control point may be replaced with the control point motion vector.
본 발명의 일 실시예는 상술한 과정을 통해 움직임 정보 저장 유닛 별로 움직임 벡터를 포함하는 움직임 정보를 버퍼에 저장함으로써 버퍼에 차지하는 저장 공간을 감소시킬 수 있다.According to an embodiment of the present invention, the storage space occupied in the buffer may be reduced by storing the motion information including the motion vector for each motion information storage unit in the buffer through the above-described process.
도 11은 본 발명의 일 실시예에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다.11 schematically illustrates a video encoding method by an encoding apparatus according to an embodiment of the present invention.
도 11에서 개시된 방법은 도 1에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 예를 들어, 도 11의 S1100 및 S1110은 인코딩 장치의 예측부에 의하여 수행될 수 있고, S1120은 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.The method disclosed in FIG. 11 may be performed by the encoding apparatus disclosed in FIG. 1. For example, S1100 and S1110 of FIG. 11 may be performed by the prediction unit of the encoding apparatus, and S1120 may be performed by the entropy encoding unit of the encoding apparatus.
인코딩 장치는 공간적 주변 블록들 및 시간적 주변 블록을 기반으로 현재 블록의 움직임 정보 후보 리스트를 도출한다(S1100). 움직임 정보 후보 리스트는 머지 모드, MVP 모드, 및 어파인 모드 등의 여러 예측 모드에 따른 후보 리스트를 포함할 수 있다.The encoding apparatus derives a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block (S1100). The motion information candidate list may include candidate lists according to various prediction modes, such as merge mode, MVP mode, and affine mode.
움직임 정보 후보 리스트는 예측 모드에 따라 후보 개수가 미리 정의될 수 있다. 움직임 정보 후보 리스트는 공간적 주변 블록으로부터 도출되는 공간적 후보를 포함할 수 있다. 여기서, 공간적 후보의 개수가 미리 정의된 후보 개수에 미달하는 경우, 시간적 주변 블록으로부터 도출되는 시간적 후보가 더 포함될 수 있다. 공간적 후보 및 시간적 후보의 개수가 미리 정의된 후보 개수에 미달하는 경우, 제로 움직임 벡터가 더 포함될 수 있다. The number of candidates may be predefined in the motion information candidate list according to the prediction mode. The motion information candidate list may include spatial candidates derived from spatial neighboring blocks. Here, when the number of spatial candidates is less than the predefined number of candidates, temporal candidates derived from temporal neighboring blocks may be further included. If the number of spatial and temporal candidates is less than the predefined number of candidates, zero motion vector may be further included.
여기서 시간적 후보는 버퍼에 저장되어 있을 수 있으며, 시간적 후보는 참조 픽처 내의 시간적 주변 블록을 기반으로 도출될 수 있다. 참조 픽처는 복수의 움직임 정보 저장 유닛(motion information storage unit)들을 포함할 수 있고, 시간적 후보는 상기 참조 픽처 내의 상기 시간적 주변 블록이 위치하는 움직임 정보 저장 유닛의 움직임 정보를 기반으로 도출될 수 있다. 시간적 후보는 상술한 Col 블록을 포함할 수 있다. 움직임 정보 저장 유닛은 8 x 8의 크기를 가질 수 있으나, 4 x 4 보다 큰 크기를 가질 수도 있으므로, 이에 한정되는 것은 아니다.In this case, the temporal candidate may be stored in a buffer, and the temporal candidate may be derived based on temporal neighboring blocks in the reference picture. The reference picture may include a plurality of motion information storage units, and a temporal candidate may be derived based on motion information of the motion information storage unit in which the temporal neighboring block in the reference picture is located. The temporal candidate may include the above-described Col block. The motion information storage unit may have a size of 8 × 8, but may be larger than 4 × 4, but is not limited thereto.
예를 들어, 움직임 정보 저장 유닛이 참조 픽처 내의 복수의 블록들에 중첩(overlap)되는 경우 복수의 블록들 중 어파인 모드로 코딩된 블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출될 수 있다.For example, when the motion information storage unit overlaps a plurality of blocks in a reference picture, motion information of a block coded in an affine mode among the plurality of blocks may be derived as motion information of the motion information storage unit. Can be.
예를 들어, 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하며, 복수의 서브블록들이 움직임 정보 저장 유닛에 중첩되는 경우, 복수의 서브블록들 중 어파인 모드로 코딩된 블록의 컨트롤 포인트(control point, CP)를 포함하는 서브블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출될 수 있다. 여기서, 컨트롤 포인트를 포함하는 서브블록의 움직임 정보는 상기 컨트롤 포인트의 움직임 정보로 도출될 수 있다.For example, when a block coded in the affine mode includes a plurality of subblocks, and the plurality of subblocks overlap the motion information storage unit, a control point of the block coded in the affine mode among the plurality of subblocks. Motion information of a subblock including a (control point, CP) may be derived as motion information of the motion information storage unit. Here, the motion information of the subblock including the control point may be derived as the motion information of the control point.
예를 들어, 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고, 복수의 서브블록들이 움직임 정보 저장 유닛에 중첩되고 복수의 서브블록들 중 컨트롤 포인트를 포함하는 블록이 존재하지 않는 경우, 복수의 서브블록 중 좌상단(top-left)에 위치한 서브블록의 움직임 정보가 움직임 정보 저장 유닛의 움직임 정보로 도출될 수 있다.For example, when a block coded in an affine mode includes a plurality of subblocks, the plurality of subblocks overlap the motion information storage unit, and a block including a control point among the plurality of subblocks does not exist. The motion information of the subblock located at the top-left of the plurality of subblocks may be derived as the motion information of the motion information storage unit.
예를 들어, 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고, 복수의 서브블록들이 움직임 정보 저장 유닛에 중첩되는 경우, 복수의 서브블록들의 움직임 정보 값들의 평균값 또는 미디언 값이 움직임 정보 저장 유닛의 움직임 정보의 값으로 도출될 수 있다.For example, when a block coded in an affine mode includes a plurality of subblocks, and the plurality of subblocks overlap the motion information storage unit, an average value or median value of motion information values of the plurality of subblocks is moved. It can be derived as a value of motion information of the information storage unit.
시간적 후보는 서브블록보다 큰 크기의 움직임 정보 저장 유닛마다 저장된 움직임 정보 또는 대표 움직임 정보를 기반으로 도출되므로, 움직임 정보가 차지하는 저장 공간이 감소될 수 있다.Since the temporal candidate is derived based on the motion information or the representative motion information stored for each motion information storage unit having a larger size than the subblock, the storage space occupied by the motion information can be reduced.
인코딩 장치는 움직임 정보 후보 리스트를 기반으로 움직임 정보 후보 리스트에 포함되는 후보들 중 하나를 가리키는 선택 정보를 생성한다(S1110). 선택 정보는 움직임 정보 후보 리스트 중 현재 블록과 상관도가 높은 블록에 대한 인덱스를 포함할 수 있다.The encoding apparatus generates selection information indicating one of the candidates included in the motion information candidate list based on the motion information candidate list (S1110). The selection information may include an index for a block having a high correlation with the current block in the motion information candidate list.
인코딩 장치는 선택 정보를 포함하는 영상 정보를 인코딩하여 비트스트림을 출력한다(S1120). 여기서 영상 정보는 예측된 블록과 현재 블록을 기반으로 생성되는 잔차 정보를 더 포함할 수 있다. 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다.The encoding apparatus encodes image information including the selection information and outputs a bitstream (S1120). The image information may further include residual information generated based on the predicted block and the current block. The bitstream may be transmitted to the decoding apparatus via a network or a storage medium.
도 12는 본 발명의 일 실시예에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다.12 schematically illustrates a video decoding method by a decoding apparatus according to an embodiment of the present invention.
도 12에서 개시된 방법은 도 2에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 예를 들어, 도 12의 S1200 내지 S1220은 디코딩 장치의 예측부에 의하여 수행될 수 있고, S1230은 디코딩 장치의 복원부 또는 가산부에 의하여 수행될 수 있다.The method disclosed in FIG. 12 may be performed by the decoding apparatus disclosed in FIG. 2. For example, S1200 to S1220 of FIG. 12 may be performed by the prediction unit of the decoding apparatus, and S1230 may be performed by the reconstruction unit or the adder of the decoding apparatus.
디코딩 장치는 공간적 주변 블록들 및 시간적 주변 블록을 기반으로 현재 블록의 움직임 정보 후보 리스트를 도출한다(S1200). 움직임 정보 후보 리스트는 머지 모드, MVP 모드, 및 어파인 모드 등의 여러 예측 모드에 따른 후보 리스트를 포함할 수 있다.The decoding apparatus derives a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block (S1200). The motion information candidate list may include candidate lists according to various prediction modes, such as merge mode, MVP mode, and affine mode.
움직임 정보 후보 리스트는 예측 모드에 따라 후보 개수가 미리 정의될 수 있다. 움직임 정보 후보 리스트는 공간적 주변 블록으로부터 도출되는 공간적 후보를 포함할 수 있다. 여기서, 공간적 후보의 개수가 미리 정의된 후보 개수에 미달하는 경우, 시간적 주변 블록으로부터 도출되는 시간적 후보가 더 포함될 수 있다. 공간적 후보 및 시간적 후보의 개수가 미리 정의된 후보 개수에 미달하는 경우, 제로 움직임 벡터가 더 포함될 수 있다. The number of candidates may be predefined in the motion information candidate list according to the prediction mode. The motion information candidate list may include spatial candidates derived from spatial neighboring blocks. Here, when the number of spatial candidates is less than the predefined number of candidates, temporal candidates derived from temporal neighboring blocks may be further included. If the number of spatial and temporal candidates is less than the predefined number of candidates, zero motion vector may be further included.
여기서 시간적 후보는 버퍼에 저장되어 있을 수 있으며, 시간적 후보는 참조 픽처 내의 시간적 주변 블록을 기반으로 도출될 수 있다. 참조 픽처는 복수의 움직임 정보 저장 유닛(motion information storage unit)들을 포함할 수 있고, 시간적 후보는 상기 참조 픽처 내의 상기 시간적 주변 블록이 위치하는 움직임 정보 저장 유닛의 움직임 정보를 기반으로 도출될 수 있다. 시간적 후보는 상술한 Col 블록을 포함할 수 있다. 움직임 정보 저장 유닛은 8 x 8의 크기를 가질 수 있으나, 4 x 4 보다 큰 크기를 가질 수도 있으므로, 이에 한정되는 것은 아니다.In this case, the temporal candidate may be stored in a buffer, and the temporal candidate may be derived based on temporal neighboring blocks in the reference picture. The reference picture may include a plurality of motion information storage units, and a temporal candidate may be derived based on motion information of the motion information storage unit in which the temporal neighboring block in the reference picture is located. The temporal candidate may include the above-described Col block. The motion information storage unit may have a size of 8 × 8, but may be larger than 4 × 4, but is not limited thereto.
예를 들어, 움직임 정보 저장 유닛이 참조 픽처 내의 복수의 블록들에 중첩(overlap)되는 경우 복수의 블록들 중 어파인 모드로 코딩된 블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출될 수 있다.For example, when the motion information storage unit overlaps a plurality of blocks in a reference picture, motion information of a block coded in an affine mode among the plurality of blocks may be derived as motion information of the motion information storage unit. Can be.
예를 들어, 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하며, 복수의 서브블록들이 움직임 정보 저장 유닛에 중첩되는 경우, 복수의 서브블록들 중 어파인 모드로 코딩된 블록의 컨트롤 포인트(control point, CP)를 포함하는 서브블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출될 수 있다. 여기서, 컨트롤 포인트를 포함하는 서브블록의 움직임 정보는 상기 컨트롤 포인트의 움직임 정보로 도출될 수 있다.For example, when a block coded in the affine mode includes a plurality of subblocks, and the plurality of subblocks overlap the motion information storage unit, a control point of the block coded in the affine mode among the plurality of subblocks. Motion information of a subblock including a (control point, CP) may be derived as motion information of the motion information storage unit. Here, the motion information of the subblock including the control point may be derived as the motion information of the control point.
예를 들어, 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고, 복수의 서브블록들이 움직임 정보 저장 유닛에 중첩되고 복수의 서브블록들 중 컨트롤 포인트를 포함하는 블록이 존재하지 않는 경우, 복수의 서브블록 중 좌상단(top-left)에 위치한 서브블록의 움직임 정보가 움직임 정보 저장 유닛의 움직임 정보로 도출될 수 있다.For example, when a block coded in an affine mode includes a plurality of subblocks, the plurality of subblocks overlap the motion information storage unit, and a block including a control point among the plurality of subblocks does not exist. The motion information of the subblock located at the top-left of the plurality of subblocks may be derived as the motion information of the motion information storage unit.
예를 들어, 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고, 복수의 서브블록들이 움직임 정보 저장 유닛에 중첩되는 경우, 복수의 서브블록들의 움직임 정보 값들의 평균값 또는 미디언 값이 움직임 정보 저장 유닛의 움직임 정보의 값으로 도출될 수 있다.For example, when a block coded in an affine mode includes a plurality of subblocks, and the plurality of subblocks overlap the motion information storage unit, an average value or median value of motion information values of the plurality of subblocks is moved. It can be derived as a value of motion information of the information storage unit.
시간적 후보는 서브블록보다 큰 크기의 움직임 정보 저장 유닛마다 저장된 움직임 정보 또는 대표 움직임 정보를 기반으로 도출되므로, 움직임 정보가 차지하는 저장 공간이 감소될 수 있다.Since the temporal candidate is derived based on the motion information or the representative motion information stored for each motion information storage unit having a larger size than the subblock, the storage space occupied by the motion information can be reduced.
디코딩 장치는 움직임 정보 후보 리스트를 기반으로 현재 블록의 움직임 정보를 도출한다(S1210). 여기서 현재 블록의 움직임 정보는 선택 정보를 기반으로 움직임 정보 후보 리스트 중 시간적 후보를 이용하는 경우, 움직임 정보 저장 유닛의 움직임 정보로부터 도출될 수 있다. 선택 정보는 비트스트림을 디코딩하여 획득될 수 있다. 비트스트림은 네트워크 또는 저장매체를 통하여 인코딩 장치로부터 전송될 수 있다.The decoding apparatus derives motion information of the current block based on the motion information candidate list (S1210). Here, the motion information of the current block may be derived from the motion information of the motion information storage unit when using a temporal candidate from the motion information candidate list based on the selection information. The selection information can be obtained by decoding the bitstream. The bitstream may be transmitted from the encoding device via a network or a storage medium.
디코딩 장치는 도출한 움직임 정보를 기반으로 현재 블록에 대한 예측된 블록을 도출한다(S1220). 여기서 예측된 블록은 어파인 후보 리스트 중 현재 블록과 상관도가 높은 블록을 포함할 수 있다.The decoding apparatus derives the predicted block for the current block based on the derived motion information (S1220). The predicted block may include a block having a high correlation with the current block in the affine candidate list.
디코딩 장치는 예측된 블록을 기반으로 현재 픽처를 복원한다(S1230). 여기서 현재 픽처는 예측된 블록 및 잔차 정보를 기반으로 복원될 수 있다. 잔차 정보는 잔차 정보는 예측된 블록 및 현재 블록 간의 차이에 관한 정보를 의미할 수 있으며, 비트스트림을 디코딩하여 획득될 수 있다. 비트스트림은 네트워크 또는 저장매체를 통하여 인코딩 장치로부터 전송될 수 있다.The decoding apparatus reconstructs the current picture based on the predicted block (S1230). Here, the current picture may be reconstructed based on the predicted block and residual information. The residual information may mean information about a difference between the predicted block and the current block, and may be obtained by decoding the bitstream. The bitstream may be transmitted from the encoding device via a network or a storage medium.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.In the above-described embodiment, the methods are described based on a flowchart as a series of steps or blocks, but the present invention is not limited to the order of steps, and any steps may occur in a different order or at the same time than the other steps described above. have. In addition, those skilled in the art will appreciate that the steps shown in the flowcharts are not exclusive and that other steps may be included or one or more steps in the flowcharts may be deleted without affecting the scope of the present invention.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.The above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다.When the embodiments of the present invention are implemented in software, the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function. The module may be stored in memory and executed by a processor. The memory may be internal or external to the processor and may be coupled to the processor by a variety of well known means. The processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices. The memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device.

Claims (15)

  1. 디코딩 장치에 의하여 수행되는 비디오 디코딩 방법에 있어서,In the video decoding method performed by the decoding apparatus,
    공간적 주변 블록들 및 시간적 주변 블록을 기반으로 현재 블록의 움직임 정보 후보 리스트를 도출하는 단계;Deriving a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block;
    상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하는 단계;Deriving motion information of the current block based on the motion information candidate list;
    상기 도출한 움직임 정보를 기반으로 상기 현재 블록에 대한 예측된 블록을 도출하는 단계; 및 Deriving a predicted block for the current block based on the derived motion information; And
    상기 예측된 블록을 기반으로 현재 픽처를 복원하는 단계를 포함하고,Reconstructing a current picture based on the predicted block,
    상기 움직임 정보 후보 리스트는 시간적 후보를 포함하고,The motion information candidate list includes a temporal candidate;
    상기 시간적 후보는 참조 픽처 내의 상기 시간적 주변 블록을 기반으로 도출되고, 상기 참조 픽처는 복수의 움직임 정보 저장 유닛(motion information storage unit)들을 포함하고,The temporal candidate is derived based on the temporal neighboring block within a reference picture, the reference picture includes a plurality of motion information storage units,
    상기 시간적 후보는 상기 참조 픽처 내의 상기 시간적 주변 블록이 위치하는 움직임 정보 저장 유닛의 움직임 정보를 기반으로 도출되고,The temporal candidate is derived based on motion information of a motion information storage unit in which the temporal neighboring block in the reference picture is located,
    상기 움직임 정보 저장 유닛이 상기 참조 픽처 내의 복수의 블록들에 중첩(overlap)되는 경우 상기 복수의 블록들 중 어파인 모드로 코딩된 블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 하는, 디코딩 방법.When the motion information storage unit overlaps a plurality of blocks in the reference picture, motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. Characterized in that the decoding method.
  2. 청구항 1에 있어서,The method according to claim 1,
    상기 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고,The block coded in the affine mode includes a plurality of subblocks,
    상기 복수의 서브블록들이 상기 움직임 정보 저장 유닛에 중첩되는 경우, 상기 복수의 서브블록들 중 상기 어파인 모드로 코딩된 블록의 컨트롤 포인트(control point, CP)를 포함하는 서브블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 하는, 디코딩 방법.When the plurality of subblocks overlap the motion information storage unit, the motion information of the subblock including a control point (CP) of a block coded in the affine mode among the plurality of subblocks is determined. And derived from the motion information of the motion information storage unit.
  3. 청구항 2에 있어서,The method according to claim 2,
    상기 컨트롤 포인트를 포함하는 서브블록의 움직임 정보는 상기 컨트롤 포인트의 움직임 정보로 도출되는 것을 특징으로 하는, 디코딩 방법.The motion information of the subblock including the control point is derived from the motion information of the control point, decoding method.
  4. 청구항 1에 있어서,The method according to claim 1,
    상기 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고,The block coded in the affine mode includes a plurality of subblocks,
    상기 복수의 서브블록들이 상기 움직임 정보 저장 유닛에 중첩되고 상기 복수의 서브블록들 중 컨트롤 포인트를 포함하는 블록이 존재하지 않는 경우, 상기 복수의 서브블록 중 좌상단(top-left)에 위치한 서브블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 하는, 디코딩 방법.When the plurality of subblocks overlap the motion information storage unit and there is no block including a control point among the plurality of subblocks, a subblock located at the top-left of the plurality of subblocks And the motion information is derived from the motion information of the motion information storage unit.
  5. 청구항 1에 있어서,The method according to claim 1,
    상기 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고,The block coded in the affine mode includes a plurality of subblocks,
    상기 복수의 서브블록들이 상기 움직임 정보 저장 유닛에 중첩되는 경우, 상기 복수의 서브블록들의 움직임 정보 값들의 평균값 또는 미디언 값이 상기 움직임 정보 저장 유닛의 움직임 정보의 값으로 도출되는 것을 특징으로 하는, 디코딩 방법.When the plurality of subblocks are superimposed on the motion information storage unit, an average value or median value of motion information values of the plurality of subblocks is derived as a value of motion information of the motion information storage unit. Decoding method.
  6. 청구항 1에 있어서,The method according to claim 1,
    상기 움직임 정보 저장 유닛의 사이즈는 8x8인 것을 특징으로 하는, 디코딩 방법.And the size of the motion information storage unit is 8x8.
  7. 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법에 있어서,In the video encoding method performed by the encoding device,
    공간적 주변 블록들 및 시간적 주변 블록을 기반으로 현재 블록의 움직임 정보 후보 리스트를 도출하는 단계;Deriving a motion information candidate list of the current block based on the spatial neighboring blocks and the temporal neighboring block;
    상기 움직임 정보 후보 리스트를 기반으로 상기 움직임 정보 후보 리스트에 포함되는 후보들 중 하나를 가리키는 선택 정보를 생성하는 단계; 및Generating selection information indicating one of candidates included in the motion information candidate list based on the motion information candidate list; And
    상기 선택 정보를 포함하는 영상 정보를 인코딩하여 비트스트림으로 출력하는 단계를 포함하되,And encoding and outputting the video information including the selection information in a bitstream.
    상기 움직임 정보 후보 리스트는 시간적 후보를 포함하고,The motion information candidate list includes a temporal candidate;
    상기 시간적 후보는 참조 픽처 내의 상기 시간적 주변 블록을 기반으로 도출되고, 상기 참조 픽처는 복수의 움직임 정보 저장 유닛(motion information storage unit)들을 포함하고,The temporal candidate is derived based on the temporal neighboring block within a reference picture, the reference picture includes a plurality of motion information storage units,
    상기 시간적 후보는 상기 참조 픽처 내의 상기 시간적 주변 블록이 위치하는 움직임 정보 저장 유닛의 움직임 정보를 기반으로 도출되고,The temporal candidate is derived based on motion information of a motion information storage unit in which the temporal neighboring block in the reference picture is located,
    상기 움직임 정보 저장 유닛이 상기 참조 픽처 내의 복수의 블록들에 중첩(overlap)되는 경우 상기 복수의 블록들 중 어파인 모드로 코딩된 블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 하는, 인코딩 방법.When the motion information storage unit overlaps a plurality of blocks in the reference picture, motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. An encoding method.
  8. 청구항 7에 있어서,The method according to claim 7,
    상기 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고,The block coded in the affine mode includes a plurality of subblocks,
    상기 복수의 서브블록들이 상기 움직임 정보 저장 유닛에 중첩되는 경우, 상기 복수의 서브블록들 중 상기 어파인 모드로 코딩된 블록의 컨트롤 포인트(control point, CP)를 포함하는 서브블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 하는, 인코딩 방법.When the plurality of subblocks overlap the motion information storage unit, the motion information of the subblock including a control point (CP) of a block coded in the affine mode among the plurality of subblocks is determined. And derived from the motion information of the motion information storage unit.
  9. 청구항 8에 있어서,The method according to claim 8,
    상기 컨트롤 포인트를 포함하는 서브블록의 움직임 정보는 상기 컨트롤 포인트의 움직임 정보로 도출되는 것을 특징으로 하는, 인코딩 방법.The motion information of the subblock including the control point is derived from the motion information of the control point.
  10. 청구항 7에 있어서,The method according to claim 7,
    상기 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고,The block coded in the affine mode includes a plurality of subblocks,
    상기 복수의 서브블록들이 상기 움직임 정보 저장 유닛에 중첩되고 상기 복수의 서브블록들 중 컨트롤 포인트를 포함하는 블록이 존재하지 않는 경우, 상기 복수의 서브블록 중 좌상단(top-left)에 위치한 서브블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 하는, 인코딩 방법.When the plurality of subblocks overlap the motion information storage unit and there is no block including a control point among the plurality of subblocks, a subblock located at the top-left of the plurality of subblocks Wherein the motion information is derived from the motion information of the motion information storage unit.
  11. 청구항 7에 있어서,The method according to claim 7,
    상기 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고,The block coded in the affine mode includes a plurality of subblocks,
    상기 복수의 서브블록들이 상기 움직임 정보 저장 유닛에 중첩되는 경우, 상기 복수의 서브블록들의 움직임 정보 값들의 평균값 또는 미디언 값이 상기 움직임 정보 저장 유닛의 움직임 정보의 값으로 도출되는 것을 특징으로 하는, 인코딩 방법.When the plurality of subblocks overlap the motion information storage unit, an average value or a median value of motion information values of the plurality of subblocks is derived as a value of motion information of the motion information storage unit. Encoding Method.
  12. 청구항 7에 있어서,The method according to claim 7,
    상기 움직임 정보 저장 유닛의 사이즈는 8x8인 것을 특징으로 하는, 인코딩 방법.And the size of the motion information storage unit is 8x8.
  13. 비디오 디코딩을 수행하는 디코딩 장치에 있어서,In the decoding apparatus for performing video decoding,
    공간적 주변 블록들 및 시간적 주변 블록을 기반으로 현재 블록의 움직임 정보 후보 리스트를 도출하고, 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하고, 상기 도출한 움직임 정보를 기반으로 상기 현재 블록에 대한 예측된 블록을 도출하는 예측부; 및 Deriving a motion information candidate list of the current block based on spatial neighboring blocks and temporal neighboring blocks, deriving motion information of the current block based on the motion information candidate list, and based on the derived motion information A prediction unit for deriving a predicted block for the block; And
    상기 예측된 블록을 기반으로 현재 픽처를 복원하는 복원부를 포함하고,A reconstruction unit reconstructing the current picture based on the predicted block,
    상기 움직임 정보 후보 리스트는 시간적 후보를 포함하고,The motion information candidate list includes a temporal candidate;
    상기 시간적 후보는 참조 픽처 내의 상기 시간적 주변 블록을 기반으로 도출되고, 상기 참조 픽처는 복수의 움직임 정보 저장 유닛(motion information storage unit)들을 포함하고,The temporal candidate is derived based on the temporal neighboring block within a reference picture, the reference picture includes a plurality of motion information storage units,
    상기 시간적 후보는 상기 참조 픽처 내의 상기 시간적 주변 블록이 위치하는 움직임 정보 저장 유닛의 움직임 정보를 기반으로 도출되고,The temporal candidate is derived based on motion information of a motion information storage unit in which the temporal neighboring block in the reference picture is located,
    상기 움직임 정보 저장 유닛이 상기 참조 픽처 내의 복수의 블록들에 중첩(overlap)되는 경우 상기 복수의 블록들 중 어파인 모드로 코딩된 블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 하는, 디코딩 장치.When the motion information storage unit overlaps a plurality of blocks in the reference picture, motion information of a block coded in an affine mode among the plurality of blocks is derived as motion information of the motion information storage unit. Characterized in that the decoding device.
  14. 청구항 13에 있어서,The method according to claim 13,
    상기 어파인 모드로 코딩된 블록이 복수의 서브블록들을 포함하고,The block coded in the affine mode includes a plurality of subblocks,
    상기 복수의 서브블록들이 상기 움직임 정보 저장 유닛에 중첩되는 경우, 상기 복수의 서브블록들 중 상기 어파인 모드로 코딩된 블록의 컨트롤 포인트(control point, CP)를 포함하는 서브블록의 움직임 정보가 상기 움직임 정보 저장 유닛의 움직임 정보로 도출되는 것을 특징으로 하는, 디코딩 장치.When the plurality of subblocks overlap the motion information storage unit, the motion information of the subblock including a control point (CP) of the block coded in the affine mode among the plurality of subblocks is determined. A decoding device, characterized in that derived from the motion information of the motion information storage unit.
  15. 청구항 14에 있어서,The method according to claim 14,
    상기 컨트롤 포인트를 포함하는 서브블록의 움직임 정보는 상기 컨트롤 포인트의 움직임 정보로 도출되는 것을 특징으로 하는, 디코딩 장치.And the motion information of the subblock including the control point is derived from the motion information of the control point.
PCT/KR2019/004401 2018-04-15 2019-04-12 Method and apparatus for reducing storage space for motion information in video processing system WO2019203504A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201862657900P 2018-04-15 2018-04-15
US62/657,900 2018-04-15

Publications (1)

Publication Number Publication Date
WO2019203504A1 true WO2019203504A1 (en) 2019-10-24

Family

ID=68239664

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/004401 WO2019203504A1 (en) 2018-04-15 2019-04-12 Method and apparatus for reducing storage space for motion information in video processing system

Country Status (1)

Country Link
WO (1) WO2019203504A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170045264A (en) * 2014-10-27 2017-04-26 후아웨이 테크놀러지 컴퍼니 리미티드 Image prediction method and related device
WO2017156705A1 (en) * 2016-03-15 2017-09-21 Mediatek Inc. Affine prediction for video coding
WO2017171107A1 (en) * 2016-03-28 2017-10-05 엘지전자(주) Inter-prediction mode based image processing method, and apparatus therefor
KR20170115969A (en) * 2016-04-08 2017-10-18 한국전자통신연구원 Method and apparatus for derivation of motion prediction information
WO2018067823A1 (en) * 2016-10-05 2018-04-12 Qualcomm Incorporated Motion vector prediction for affine motion models in video coding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170045264A (en) * 2014-10-27 2017-04-26 후아웨이 테크놀러지 컴퍼니 리미티드 Image prediction method and related device
WO2017156705A1 (en) * 2016-03-15 2017-09-21 Mediatek Inc. Affine prediction for video coding
WO2017171107A1 (en) * 2016-03-28 2017-10-05 엘지전자(주) Inter-prediction mode based image processing method, and apparatus therefor
KR20170115969A (en) * 2016-04-08 2017-10-18 한국전자통신연구원 Method and apparatus for derivation of motion prediction information
WO2018067823A1 (en) * 2016-10-05 2018-04-12 Qualcomm Incorporated Motion vector prediction for affine motion models in video coding

Similar Documents

Publication Publication Date Title
WO2020036417A1 (en) Inter prediction method based on history-based motion vector, and device therefor
WO2019194440A1 (en) Image coding method using lookup table for intra prediction mode and apparatus therefor
WO2020017840A1 (en) Method and device for inter predicting on basis of dmvr
WO2017052118A1 (en) Intra prediction method and device in image coding system
WO2020009390A1 (en) Image processing method and device by means of inter-prediction in image coding system
WO2019194507A1 (en) Image coding method based on affine motion prediction, and device for same
WO2020141928A1 (en) Method and apparatus for decoding image on basis of prediction based on mmvd in image coding system
WO2020141932A1 (en) Inter prediction method and apparatus using cpr-based mmvd
WO2019209026A1 (en) Method and apparatus for inter prediction in video coding system
WO2020141886A1 (en) Sbtmvp-based inter prediction method and apparatus
WO2020013480A1 (en) Method for coding intra-prediction mode, and device for same
WO2019212230A1 (en) Method and apparatus for decoding image by using transform according to block size in image coding system
WO2020251338A1 (en) Inter prediction in video or image coding system
WO2020141884A1 (en) Method and apparatus for coding image by using mmvd based on cpr
WO2020004879A1 (en) Method and device for image decoding according to inter-prediction using plurality of neighboring blocks in image coding system
WO2019225932A1 (en) Method and apparatus for decoding image by using dmvr in image coding system
WO2019203533A1 (en) Inter-prediction method in accordance with multiple motion model, and device thereof
WO2019199071A1 (en) Image decoding method and device in accordance with inter-prediction in image coding system
WO2020145656A1 (en) Method and device for signaling whether tmvp candidate is available
WO2020251339A1 (en) Image/video coding method and device based on bi-prediction
WO2020017841A1 (en) Method and apparatus for performing inter-prediction on basis of merge mode
WO2019203513A1 (en) Image decoding method and apparatus according to inter prediction using dmvd in image coding system
WO2019212223A1 (en) Image decoding method using dmvr in image coding system and device therefor
WO2020040439A1 (en) Intra prediction method and device in image coding system
WO2019194435A1 (en) Method for coding image on basis of tmvp and apparatus therefor

Legal Events

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

Ref document number: 19788010

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

Country of ref document: EP

Kind code of ref document: A1