WO2020004879A1 - Method and device for image decoding according to inter-prediction using plurality of neighboring blocks in image coding system - Google Patents

Method and device for image decoding according to inter-prediction using plurality of neighboring blocks in image coding system Download PDF

Info

Publication number
WO2020004879A1
WO2020004879A1 PCT/KR2019/007595 KR2019007595W WO2020004879A1 WO 2020004879 A1 WO2020004879 A1 WO 2020004879A1 KR 2019007595 W KR2019007595 W KR 2019007595W WO 2020004879 A1 WO2020004879 A1 WO 2020004879A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
current block
motion information
neighboring blocks
neighboring
Prior art date
Application number
PCT/KR2019/007595
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 WO2020004879A1 publication Critical patent/WO2020004879A1/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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding

Definitions

  • the present invention relates to an image coding technique, and more particularly, to an image decoding method and apparatus according to inter prediction using a plurality of neighboring blocks in an image coding 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 image coding efficiency.
  • Another object of the present invention is to provide an image decoding method and apparatus for deriving a motion information candidate list based on a plurality of neighboring blocks.
  • Another object of the present invention is to provide an image decoding method and apparatus for deriving a motion information candidate list based on neighboring blocks that are not adjacent to a current block and performing prediction based on the derived motion information candidate list.
  • Another object of the present invention is to provide an image decoding method and apparatus for performing prediction by selecting neighboring blocks according to a specific condition among neighboring blocks in the current block and deriving a motion information candidate list based on the selected neighboring blocks. .
  • an image decoding method performed by a decoding apparatus.
  • the method includes deriving neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block, constructing the motion information candidate list based on the derived neighboring blocks, and the motion information candidate list. Deriving motion information of the current block based on the step of performing the prediction of the current block based on the motion information, wherein the neighboring blocks include non-adjacent blocks that are not adjacent to the current block.
  • the non-adjacent block is characterized in that a block adjacent to the current block is derived based on a motion vector, a maximum coding unit including the current block, or a current picture including the current block.
  • a decoding apparatus for performing image decoding.
  • the decoding apparatus derives neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block, constructs the motion information candidate list based on the derived neighboring blocks, and extracts the motion information candidate list.
  • a prediction unit configured to derive motion information of the current block based on the motion information, and to predict the current block based on the motion information, wherein the neighboring blocks include non-adjacent blocks that are not adjacent to the current block;
  • the non-adjacent block is characterized in that a block adjacent to the current block is derived based on a motion vector, a maximum coding unit including the current block, or a current picture including the current block.
  • a video encoding method performed by an encoding apparatus includes deriving neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block, constructing the motion information candidate list based on the derived neighboring blocks, and the motion information candidate list. Deriving motion information of the current block based on the step of performing prediction of the current block based on the motion information, and encoding image information including information on the prediction of the current block.
  • the neighboring blocks may include non-adjacent blocks that are not adjacent to the current block, and the non-adjacent blocks include a motion vector, a maximum coding unit including the current block, or the current block, in which a block adjacent to the current block is located. Characterized in that it is derived based on the current picture.
  • a video encoding apparatus derives neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block, constructs the motion information candidate list based on the derived neighboring blocks, and constructs the motion information candidate list.
  • a motion estimation unit for deriving motion information of the current block based on the motion information, and a prediction unit for performing prediction of the current block based on the motion information, and an entropy encoding unit for encoding image information including information about prediction of the current block.
  • the neighboring blocks may include non-adjacent blocks that are not adjacent to the current block, and the non-adjacent blocks include a motion vector, a maximum coding unit including the current block, or the current block, in which a block adjacent to the current block is located. Characterized in that it is derived based on the current picture.
  • the motion information of the current block can be searched in a wider area which is already decoded, and not limited to adjacent neighboring blocks. Can be used as a candidate for improving the prediction accuracy.
  • the neighboring blocks suitable for the current block among the neighboring blocks can be derived based on a specific condition, and the motion information candidate list can be derived based on the derived neighboring blocks.
  • bandwidth can be saved, and coding efficiency can be improved by improving prediction performance.
  • FIG. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
  • FIG. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
  • 3 exemplarily shows spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
  • FIG. 4 shows an example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
  • FIG. 5 shows another example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
  • FIG. 6 shows another example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
  • FIG. 7 illustrates an example of spatial neighboring blocks that may be used to derive a spatial candidate for the current block according to another scan order.
  • FIG. 8 illustrates an example of spatial neighboring blocks located within one sample at the boundary of the current block that may be used to derive a spatial candidate for the current block according to another scan order.
  • FIG. 10 illustrates an example of a specific area including a neighboring block that may be selected to form a motion information candidate list for the current block.
  • FIG. 11 shows an example of a specific range determined based on a motion vector of a maximum absolute value of a block adjacent to the current block.
  • FIG. 12 schematically illustrates a method of generating a motion prediction candidate list.
  • FIG. 13 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.
  • FIG. 14 schematically illustrates an image decoding method by a decoding apparatus according to 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.
  • the present invention relates to video / image coding.
  • the method / embodiment disclosed herein may be applied to the method disclosed in the versatile video coding (VVC) standard or the next generation video / image coding standard.
  • VVC versatile video coding
  • a picture generally refers to a unit representing one image of a specific time zone
  • 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 diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
  • the video encoding apparatus 100 may include a picture splitter 105, a predictor 110, a residual processor 120, an entropy encoder 130, an adder 140, and a filter 150. ) And memory 160.
  • the residual processing unit 120 may include a subtraction unit 121, a conversion unit 122, a quantization unit 123, a reordering unit 124, an inverse quantization unit 125, and an inverse conversion unit 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 split from the largest coding unit (LCU) according to a quad-tree binary-tree (QTBT) structure.
  • LCU largest coding unit
  • QTBT quad-tree binary-tree
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and / or a binary tree structure.
  • the quad tree structure may be applied first and the binary tree structure may be applied later.
  • the binary tree structure may be applied first.
  • the coding procedure according to the present invention may be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
  • a coding unit of size may be used as the final coding unit.
  • the coding procedure may include a procedure of prediction, transform, and reconstruction, which will be described later.
  • the processing unit may 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 may perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples of the current block.
  • 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 4 ⁇ 4 residual array, the residual sample is configured to perform a discrete sine transform (DST) transform kernel.
  • 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 coefficient (for example, a value of a syntax element) together or separately. Entropy encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
  • NAL network abstraction layer
  • the inverse quantization unit 125 inverse quantizes the quantized values (quantized transform coefficients) in the quantization unit 123, and the inverse transformer 126 inverse transforms the inverse quantized values in the inverse quantization unit 125 to generate a residual sample.
  • the adder 140 reconstructs the picture by combining the residual sample and the predictive sample.
  • the residual sample and the predictive sample may be added in units of blocks to generate a reconstructed block.
  • the adder 140 may be part of the predictor 110.
  • the adder 140 may be called a restoration unit or a restoration block generation unit.
  • 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 diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
  • the video decoding apparatus 200 may include an entropy decoding unit 210, a residual processor 220, a predictor 230, an adder 240, a filter 250, and a memory 260. It may include.
  • the residual processor 220 may include a rearrangement unit 221, an inverse quantization unit 222, and an inverse transform unit 223.
  • the video decoding apparatus 200 may restore video in response to a process in which video 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 and / or binary 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 necessary for video reconstruction, and residual coefficients. Can be output.
  • a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements necessary for video reconstruction, and residual coefficients. Can be output.
  • the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step.
  • the context model may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have.
  • the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
  • the 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. On the other hand, the adder 240 may be called a restoration unit or a restoration block generation unit.
  • 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.
  • the motion information candidate list may be configured based on the motion information of the "
  • the motion information may include a motion vector and a reference picture index, and the motion information candidate list may indicate a merge candidate list or a motion vector predictor (MVP) candidate list.
  • MVP motion vector predictor
  • a duplicate check process may be performed on the motion information candidates added to the motion information candidate list to remove the duplicate motion information candidates from the motion information candidate list.
  • the motion information candidate list may include motion information candidates having a predetermined number of candidates.
  • a merge candidate list may be configured as described above, and the merge candidate list may include a spatial candidate, a temporal candidate, an affinity candidate, and ATMVP (Advanced Temporal Motion).
  • Vector Predictor STMVP (Spatial Temporal Motion Vector Predictor), combined candidate, and / or zero vector may be included as merge candidates.
  • the spatial candidate may indicate a merge candidate including motion information of spatial neighboring blocks of the current block
  • the temporal candidate may indicate a merge candidate including motion information of the temporal neighboring blocks of the current block.
  • the present invention proposes a method of searching for motion information in a wider area which is already decoded, and not limited to adjacent neighboring blocks to derive motion information of the current block. Through this, more various motion information may be used as a candidate of motion information of the current block, and an effect of improving prediction accuracy may be generated. In addition, the present invention proposes a method of limiting the area that can be referred to in order to properly consider memory saving and performance improvement.
  • a block, a small block, or a smallest block described in each drawing may mean an N ⁇ N pixel unit, and N may be an integer of 1 or more.
  • N 1
  • the block may mean one pixel
  • a position of a neighboring block capable of deriving motion information of the current block based on the current block 300 may be defined.
  • One small block shown in FIG. 3 may represent a sub block, and the size of the sub block may be defined between an encoding device (or an encoding device) and a decoding device (or a decoding device), or a high level syntax ( It can be derived variably based on the size related information of the sub-block signaled through high level syntax.
  • the spatial neighboring blocks of the current block may include 49 spatial neighboring blocks, which may include spatial neighboring blocks adjacent to five current blocks and spatial neighboring blocks not adjacent to 44 current blocks. Can be.
  • the first neighboring block is coordinates (-n, 7n).
  • Block 2 containing a sample of coordinates (7n, -n)
  • block 3 containing a sample of coordinates (8n, -n)
  • the neighboring block is a block containing samples of (-n, 8n) coordinates
  • the neighboring block 5 may be a block containing samples of (-n, -n) coordinates
  • the neighboring block 6 is (-5n, 4n) may be a block containing a sample of coordinates
  • a block around 7 may be a block containing a sample of (4n, -4n) coordinates
  • a block of 8 is a sample of (-5n, 0) coordinates
  • the surrounding block # 9 may be a block containing samples of (0, -4n) coordinates
  • the peripheral block # 10 may be a block containing samples of (-5n,
  • a neighboring block 30 may be a block containing a sample of (-13n, 0) coordinates
  • a neighboring block 31 is (0, -12n )
  • a neighboring block 32 may be a block containing a sample of (-13n, 7n) coordinates
  • a neighboring block 33 is a sample of (7n, -12n) coordinates.
  • the neighboring block can be a block containing samples of (-13n, -12n) coordinates
  • the neighboring block 35 can be a block containing samples of (-13n, 19n) coordinates.
  • block 36 can be a block containing samples of (19n, -12n) coordinates
  • block 37 can be a block containing samples of (-n, 19n) coordinates
  • block 38 and May be a block containing a sample of (19n, -n) coordinates
  • a neighboring block 39 may be a block containing a sample of (-17n, 4n) coordinates
  • a neighboring block 40 is (4n, -16n ) May be a block containing a sample of coordinates
  • the neighboring block 41 may be a block containing a sample of (-17n, 0) coordinates
  • the neighboring block 42 includes a sample of (0, -16n) coordinates
  • the neighboring block 43 may be a block including samples of (-17n, 7n) coordinates
  • the neighboring block 44 is a block containing samples of (7n, -16n) coordinates.
  • the surrounding block 45 can be a block containing samples of (-17n, -16n) coordinates
  • the surrounding block 46 can be a block containing samples of (-17n, 23n) coordinates
  • number 47 The neighboring block may be a block containing samples of (23n, -16n) coordinates
  • the neighboring block 48 may be a block containing samples of (-n, 23n) coordinates
  • the neighboring block 49 is (23n, n) may be a block containing a sample of coordinates.
  • the size of the current block may be WxH
  • W may be 8n
  • H may be 8n.
  • a number written in each of the neighboring blocks may indicate a motion information search order of the neighboring block. That is, motion information of the neighboring blocks may be derived as motion information candidates (eg, merge candidates) of the current block in the search order. As shown in FIG. 3, motion information of a plurality of neighboring blocks may be used to derive motion information of the current block. That is, more various motion information may be configured as motion information candidates for the current block based on the motion information of a plurality of neighboring blocks, thereby improving the accuracy of prediction.
  • the motion information candidate list may be configured based on the plurality of neighboring blocks shown in FIG. 3. That is, the above motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion information candidate may indicate a merge candidate or an MVP candidate.
  • the spatial candidate may represent a spatial merge candidate or a spatial MVP candidate.
  • FIG. 4 shows an example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
  • a position of a neighboring block that may be referred to may be defined in order to construct a motion information candidate list including various motion information as motion information candidates.
  • a position of a neighboring block capable of deriving motion information of the current block based on the current block 400 may be defined.
  • the spatial neighboring blocks of the current block may include 27 spatial neighboring blocks.
  • the spatial neighboring blocks adjacent to the five current blocks used in the existing block as well as the 22 current blocks may not be spatially adjacent. It may include peripheral blocks.
  • the neighboring block 1 is (-1, H-1 ) Is a block containing a sample of coordinates
  • a neighboring block 2 is a block containing a sample of (W-1, -1) coordinates
  • a neighboring block 3 is a block containing a sample of (W, -1) coordinates.
  • the neighboring block 4 is a block containing a sample of (-1, H) coordinates
  • the neighboring block 5 may be a block containing a sample of (-1, -1) coordinates
  • the neighboring block 6 is May be a block containing a sample of (-W-1, H-1) coordinates
  • the neighboring block 7 may be a block containing a sample of (W-1, -H-1) coordinates
  • around 8th The block may be a block containing a sample of (W, -H-1) coordinates
  • the neighboring block 9 may be a block containing a sample of (-W-1, H) coordinates
  • the neighboring block 10 is The number of blocks containing samples of (-1, -H-1) coordinates
  • Neighboring block 11 may be a block containing a sample of (-W-1, -1) coordinates
  • a neighboring block 12 is a block containing a sample of (-W-1, 2H) coordinates
  • Block 13 may be a block
  • the neighboring block 15 may be a block containing a sample of (-2W-1, H-1) coordinates
  • the peripheral block of 16 is a block containing a sample of (W-1, -2H-1) coordinates
  • the surrounding block 17 may be a block containing a sample of (W, -2H-1) coordinates
  • the surrounding block 18 may be a block containing a sample of (-2W-1, H) coordinates
  • the neighboring block 19 may be a block containing samples of (-1, -2H-1) coordinates
  • the peripheral block of 20 may be a block containing samples of (-2W-1, -1) coordinates.
  • the neighboring block 21 may be a block including samples of (2W, -2H-1) coordinates
  • 22 The neighboring block may be a block containing samples of (-2W-1, 2H) coordinates
  • the neighboring block 23 may be a block containing samples of (-W-1, -2H-1) coordinates
  • 24 Block around may be a block containing a sample of coordinates (-2W-1, -H-1)
  • block 25 is a block containing a sample of coordinates (3W, -2H-1)
  • Peripheral block 26 may be a block containing samples of (-2W-1, 3H) coordinates
  • block 27 may be a block containing samples of (-2W-1, -2H-1) coordinates. .
  • a number written in each of the neighboring blocks may indicate a search order of motion information of the neighboring block. That is, motion information of the neighboring blocks may be derived as motion information candidates (eg, merge candidates) of the current block in the search order.
  • the encoding device / decoding device may search the motion information of the neighboring blocks in the search order shown in FIG. 4, and use it as motion information or a motion vector predictor (MVP) in addition to the motion information candidate list for the current block. Can be.
  • a pruning check process may be performed in the same manner as the configuration of the existing motion information candidate list.
  • the pruning check process may represent a process of checking whether the motion information is duplicated.
  • the encoding device / decoding device may determine whether the motion information of the neighboring block overlaps with the motion information candidate derived in the above order.
  • the motion information is a motion information candidate for the current block. May not be derived.
  • the motion information candidate list may be configured based on the plurality of neighboring blocks shown in FIG. 4. That is, the above motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion information candidate may indicate a merge candidate or an MVP candidate.
  • the spatial candidate may represent a spatial merge candidate or a spatial MVP candidate.
  • the spatial neighboring blocks of the current block are left neighboring blocks A 1 , upper neighboring blocks B 1 , right upper corner neighboring blocks B 0 , and lower left corners used for existing motion information candidates.
  • the peripheral block A 0 and the upper left corner peripheral block B 2 may be included.
  • the spatial neighboring blocks of the current block may include neighboring blocks that are not adjacent to the current block derived based on the neighboring block adjacent to the current block. For example, a left neighboring block and an upper neighboring block, which are criteria for fetching motion information, may be defined. Referring to FIG.
  • the left peripheral block and the upper peripheral block may be defined as the left peripheral block A 1 and the upper peripheral block B 1 .
  • the encoding device / decoding device moves in the x-axis direction (horizontal) in the left peripheral block A 1 and in the y-axis direction (vertical) in the upper peripheral block until a specific distance is reached. Tracing may be performed in a motion information storage unit (eg, a block of 4 ⁇ 4 size) until a specific distance is reached.
  • the spatial peripheral blocks are peripheral blocks H 1 to peripheral blocks H N located on the left side of the left peripheral block A 1 and peripheral blocks V 1 to peripheral blocks located on the upper side of the upper peripheral block B 1 . It may include V N.
  • the distance between the peripheral block H N in the left peripheral block A 1 may be the specific distance, and the distance between the peripheral block V N in the upper peripheral block B 1 may be the specific distance. Meanwhile, the specific distance may be preset.
  • the encoding device / decoding device may search motion information of the neighboring blocks shown in FIG. 5, and may use it as motion information or a motion vector predictor (MVP) in addition to the motion information candidate list for the current block. More various motion information may be configured as motion information candidates for the current block based on motion information of a plurality of neighboring blocks, thereby improving accuracy of prediction.
  • MVP motion vector predictor
  • the motion information candidate list may be configured based on the plurality of neighboring blocks shown in FIG. 5. That is, the above motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion information candidate may indicate a merge candidate or an MVP candidate.
  • the spatial candidate may represent a spatial merge candidate or a spatial MVP candidate.
  • the spatial neighboring blocks of the current block include a left neighboring block A, an upper neighboring block B, a right upper corner neighboring block C, and a lower left corner neighboring block used for a candidate for existing motion information. D), the upper left corner peripheral block E may be included.
  • the spatial neighboring blocks may include neighboring blocks that are not adjacent to the current block derived based on neighboring blocks adjacent to the current block.
  • Peripheral blocks that are not adjacent to the current block include peripheral blocks located on the left side of the left peripheral block A, peripheral blocks located on the upper side of the upper peripheral block B, and right upper corner peripheral block C. Peripheral blocks positioned at an upper side of the peripheral block, peripheral blocks positioned at a left side of the lower left corner peripheral block D, and peripheral blocks positioned at an upper left diagonal direction of the upper left corner peripheral block E; Can be.
  • the encoding device / decoding device moves in an upward direction by a specific offset with respect to the upper right corner peripheral block C and the upper peripheral block B in units of 32x32 size, while B (i, j Motion information of the neighboring block at the position C) and the neighboring block at the position C (i, j) can be collected and moved in a diagonal direction (upper left diagonal direction) by a specific offset with respect to the upper left corner peripheral block (E).
  • the motion information of the neighboring block at the position E (i, j) may be collected, and A (i is moved by a specific offset in the left direction with respect to the left peripheral block A and the lower left corner peripheral block D block.
  • the specific offset may be defined as 16, or may be freely defined within a limited range.
  • neighboring blocks not adjacent to the current block may be derived within a search range.
  • the search range may be predefined. Referring to FIG. 6, when the x component of the top-left sample position of the current block is 0 and the y component is 0, the search range may be set to (-96, -96) coordinates.
  • the left peripheral block A is (-1, H -1) a block containing a sample of coordinates
  • the upper peripheral block (B) is a block containing a sample of (W-1, -1) coordinates
  • the right upper corner peripheral block (C) is (W, -1) a block containing a sample of coordinates
  • the lower left corner peripheral block (D) is a block containing a sample of (-1, H) coordinates
  • the upper left corner peripheral block (E) is (-1) , -1) may be a block including a sample of coordinates.
  • neighboring blocks positioned to the left of the left neighboring block A may include neighboring blocks A 1 to neighboring blocks A N , the specific offset is n, the size of the current block is WxH, and the current block
  • the neighboring block A 1 is a block containing a sample of (-1-n, H-1) coordinates
  • a neighboring block A 2 Is a block containing a sample of (-1-2n, H-1) coordinates
  • the peripheral block A N may be a block containing a sample of (-1-N * n, H-1) coordinates .
  • the neighboring blocks located above the upper neighboring block B may include neighboring blocks B 1 to neighboring blocks B N , the specific offset is n, the size of the current block is WxH, and the current block
  • the neighboring block B 1 is a block containing a sample of (W-1, -1-n) coordinates
  • a neighboring block B 2 May be a block including a sample of (W-1, -1-2n) coordinates
  • the neighboring block B N may be a block including a sample of (W-1, -1-N * n) coordinates.
  • the neighboring blocks located above the upper right corner peripheral block C may include neighboring blocks C 1 to neighboring blocks C N , the specific offset is n, and the size of the current block is WxH,
  • the neighboring block C 1 is a block containing a sample of (W, -1-n) coordinates
  • a neighboring block C 2 May be a block including a sample of (W, -1-2n) coordinates
  • the neighboring block C N may be a block including a sample of (W, -1-N * n) coordinates.
  • neighboring blocks positioned to the left of the lower left corner peripheral block D may include neighboring blocks D 1 to neighboring blocks D N , the specific offset is n, and the size of the current block is WxH, If the x component of the top-left sample position of the current block is 0 and the y component is 0, the neighboring block D 1 is a block containing a sample of (-1-n, H) coordinates, a neighboring block D 2 Is a block containing a sample of (-1-2n, H) coordinates, ...
  • the neighboring block D N may be a block containing a sample of (-1-N * n, H) coordinates.
  • the neighboring blocks located in the upper left target direction of the upper left corner peripheral block E may include peripheral blocks E 1 to neighboring blocks E N , the specific offset is n, and the size of the current block is If WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the neighboring block E 1 includes samples of (-1-n, -1-n) coordinates.
  • Block, neighboring block E 2 is a block containing samples of (-1-2n, -1-2n) coordinates, ... said neighboring block E N is (-1-N * n, -1-N * n) It may be a block containing a sample of coordinates.
  • the encoding device / decoding device may search for motion information of the neighboring blocks shown in FIG. 6, and may use the motion information or a motion vector predictor (MVP) in addition to the motion information candidate list for the current block. More various motion information may be configured as motion information candidates for the current block based on the motion information of a plurality of neighboring blocks, thereby improving accuracy of prediction.
  • the motion information candidate list may be configured based on the plurality of neighboring blocks shown in FIG. 6. That is, the above motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion information candidate may indicate a merge candidate or an MVP candidate.
  • the spatial candidate may represent a spatial merge candidate or a spatial MVP candidate.
  • a plurality of neighboring blocks may be used to derive motion information about the current block.
  • the amount of memory required for performing the decoding process ie, an increase in the line buffer
  • the computational complexity of the decoding process are increased. Since the amount of bits allocated to information for indicating a candidate selected from a plurality of candidates may increase, selecting an appropriate number of neighboring blocks for the current block and deriving a motion information candidate list based on the selected neighboring blocks Coding efficiency can be improved more.
  • the present invention proposes a method of selecting a neighboring block used to derive a motion information candidate list of the current block among a plurality of neighboring blocks.
  • the present invention proposes embodiments of a condition for selecting a neighboring block as described below, whereby a neighboring block that satisfies one or a combination of a plurality of conditions disclosed in the embodiments described below is included in the current block. It can be used to derive a motion information candidate list.
  • a neighboring block adjacent to the current block or a neighboring block located within 1 sample from the boundary of the current block among the neighboring blocks may be selected, and the motion of the current block is based on the motion information of the selected neighboring block.
  • An information candidate may be derived to construct a motion information candidate list for the current block. In this way, the line buffer required for the decoding process can be saved.
  • derivation of neighboring blocks may be referred to as selection of neighboring blocks, and derivation and selection may be used interchangeably.
  • the neighboring block may include a neighboring block adjacent to the current block and a non-adjacent block not adjacent to the current block, and the block may include all if not called a neighboring block or a non-adjacent block.
  • the positions of the above-described neighboring blocks may be based on a case using a raster-scan order or a similar order. Therefore, when using a different scan order, the positions of the neighboring blocks may vary.
  • FIG. 7 illustrates an example of spatial neighboring blocks that may be used to derive a spatial candidate for the current block according to another scan order.
  • the scan order may be set from the lower right side to the upper left direction.
  • scan order is (Right-> Left-Down-Up), (Down-> Up, Right-> Left), (Right-> Left-> Zig-Zag) and (Down-> Up-> Left) Zigzag). I.e. (right-> lower-> right-> left), (right-> right-> lower-> left), (right-> lower-> left-> right) and (right-> right-> top-left- Lower left), etc., but is not limited thereto.
  • the motion information candidate list for predicting motion information of the current block 700 may be configured based on the spatial neighboring blocks of the current block, and the spatial neighboring blocks are the lower right region and the lower side of the current block. It may be included in at least one of the region, the lower left region, the right region, and the upper right region.
  • the lower right region may include at least one block located at the lower right side of the current block
  • the lower region may include at least one block located at the lower side of the current block
  • the lower left region may be at the lower left of the current block.
  • the right region may include at least one block located on the right side of the current block
  • the right upper region may include at least one block located on the right side of the current block Can be.
  • blocks in each region may or may not be adjacent to the current block. That is, it may be a neighboring block located within a predetermined distance from the boundary of the current block.
  • FIG. 8 illustrates an example of spatial neighboring blocks located within one sample at the boundary of the current block that may be used to derive a spatial candidate for the current block according to another scan order.
  • the motion information candidate list for motion information prediction of the current block 800 may be configured based on the spatial neighboring blocks of the current block, and the spatial neighboring blocks are located within 1 sample from the boundary of the current block. It may also include a block. In this case, when the scan order is as shown in FIG. 7, blocks located within one sample from the boundary of the current block may appear as shown in FIG. 8, and a motion information candidate list may be configured based on the information of these blocks.
  • the spatial neighboring blocks of the current block for constructing the motion information candidate list may include these blocks.
  • a method of selecting a neighboring block used to derive a motion information candidate list of the current block among the plurality of neighboring blocks described with reference to FIGS. 3 to 6 is used when another scan order described with reference to FIG. 7 is used. It may be modified and applied as appropriate. That is, the neighboring blocks described with reference to FIGS. 3 to 6 may be located on the lower left side, the left side, the upper left side, the upper side and the upper right side with respect to the current block. However, when another scan order is used, the neighboring blocks refer to the current block. It can be located on the upper right side, right side, lower right side, lower side and lower left side. In other words, the distance from the current block may be the same but the direction from the current block may be reversed.
  • the peripheral block may be referred to as a peripheral reference block.
  • a neighboring block included in the same upper block as the current block 900 among the neighboring blocks may be selected, and the motion information candidate of the current block is derived based on the motion information of the selected neighboring block.
  • a motion information candidate list for the current block may be constructed.
  • An upper block including the current block may be referred to as a current upper block.
  • the upper block may be referred to as a maximum coding unit or a largest coding unit as shown in FIG. 9.
  • an upper block may be referred to as a coding tree unit (CTU), and in this case, a CTU including the current block may be represented as a current CTU.
  • CTU coding tree unit
  • a neighboring block included in the current higher block among the neighboring blocks may be selected, and a motion information candidate for the current block is derived by deriving a motion information candidate of the current block based on the motion information of the selected neighboring block.
  • Lists can be constructed.
  • neighboring blocks that may be used for motion information candidates include a left neighboring block A 1 , an upper neighboring block B 1 , a right upper corner neighboring block B 0 , and a lower left corner of the current block 900. It may include a side corner peripheral block (A 0 ), the upper left corner peripheral block (B 2 ), the left peripheral block, the upper peripheral block, the upper right corner peripheral block, the lower left corner peripheral block and the upper left corner peripheral block It may be included in the same upper block as the current block.
  • a neighboring block included in the current upper block among the neighboring blocks, a neighboring block included in a left upper neighboring block of the current upper block, and a neighboring block included in a left upper neighboring upper block of the current upper block And / or a neighboring block included in an upper neighboring upper block of the current upper block may be selected, and the motion information for the current block is derived by deriving a motion information candidate of the current block based on the motion information of the selected neighboring block.
  • the candidate list can be constructed.
  • FIG. 10 illustrates an example of a specific area including a neighboring block that may be selected to form a motion information candidate list for the current block.
  • a neighboring block included in a specific region among the neighboring blocks may be selected, and a motion information candidate list for the current block is derived by deriving a motion information candidate of the current block based on the motion information of the selected neighboring block.
  • the specific region may indicate an area of 96x96 size or an area within a 96 sample distance from the upper left sample position based on the upper left sample position of the current block.
  • the specific region may indicate a 96 ⁇ 96 size region centering on the upper left sample position of the current block or an area within a 96 sample distance from the upper left sample position of the current block.
  • the specific area since the specific area may be set differently, the specific area is not limited to the area of the size and the area within the sample distance.
  • a specific area may be set as Max Range 0, Max Range 1 and Max Range 2, which may be set to predetermined values at the encoder / decoder. have.
  • the encoder may determine the rate-distortion comparison and transmit the determined value to the decoder.
  • the decoder may obtain information about the specific region based on the determined value received from the encoder.
  • Max Range 0 may be four times the size of the current block, and may be a range in which the current block is located at the bottom right side.
  • Max Range 1 may be 9 times the size of the current block, and may be a range in which the current block is located at the bottom right.
  • Max Range 2 may be 16 times the size of the current block, and may be a range in which the current block is located at the bottom right.
  • a neighboring block included in a specific region among the neighboring blocks may be selected, and the motion information of the current block is derived by deriving a motion information candidate of the current block based on the motion information of the selected neighboring block.
  • the candidate list can be constructed.
  • the specific region may indicate an area of two maximum coding unit sizes centered on the upper left sample position of the current block.
  • the maximum coding unit may refer to a CTU.
  • a maximum coding unit may refer to neighboring blocks within a reference range determined based on the number.
  • the reference range may be determined by (width or width of maximum coding units) x (number of maximum coding units). That is, the reference range may be determined based on the size of the maximum coding unit and the number of maximum coding units.
  • the maximum coding unit may refer to a CTU.
  • the number of maximum coding units may mean the number of maximum coding units in the current picture.
  • FIG. 11 shows an example of a specific range determined based on a motion vector of a maximum absolute value of a block adjacent to the current block.
  • a neighboring block included in a specific region indicated by a specific motion vector among the neighboring blocks may be selected, and the motion information candidate of the current block is derived based on the motion information of the selected neighboring block.
  • the motion information candidate list for the block may be constructed.
  • the specific region may indicate a region of a specific size, and the specific motion vector may be derived as a motion vector having a maximum absolute value among the motion vectors of neighboring blocks adjacent to the current block.
  • the motion information candidate list may be limited to neighboring blocks within a range of a specific size with respect to a position indicated by a motion vector of a block adjacent to the current block.
  • the motion vector of the adjacent block may mean a motion vector having the largest absolute value among the motion vectors of the blocks adjacent to the current block.
  • the specific size may mean a range of (p, q) in the vertical / horizontal direction with respect to the position indicated by the motion vector. That is, the specific region may be a region having a height of 2p and a width of 2q based on the position indicated by the motion vector. In this case, (p, q) may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block.
  • the specific size may be a predetermined value, but is not limited thereto.
  • the height is 2p around the position (x, y) indicated by the motion vector
  • An area of width 2q may be determined, and a block within the determined area may be selected to derive motion information candidates.
  • a neighboring block included in a specific region indicated by a specific motion vector among the neighboring blocks may be selected, and the motion information candidate of the current block is derived based on the motion information of the selected neighboring block.
  • the motion information candidate list for the block may be constructed.
  • the specific region may represent a region of a specific size, and the specific motion vector may be derived as an average value of motion vectors of neighboring blocks adjacent to the current block.
  • a specific region may be determined based on a position indicated by the average of motion vectors of neighboring blocks adjacent to the current block, and a neighboring block in the specific region may be selected to derive motion information candidates of the current block.
  • the specific region may indicate a region of a specific size, and the specific size may mean a range of (p, q) in the vertical / horizontal direction with respect to the position indicated by the motion vector.
  • the average motion vector of the neighboring blocks may be used instead of the motion vector having the largest absolute value among the motion vectors of the neighboring blocks adjacent to the current block. That is, in FIG. 11, average motion vectors of A 0 , B 0 , C 0 , D 0, and E 0 may be used.
  • FIG. 12 schematically illustrates a method of generating a motion prediction candidate list.
  • a neighboring block included in a specific region indicated by a specific motion vector among the neighboring blocks may be selected, and a motion information candidate of the current block is derived based on the motion information of the selected neighboring block to the current block.
  • the motion information candidate list may be configured.
  • the specific region may indicate a region of a specific size, and the specific motion vector may be derived as a motion vector of a specific neighboring block among neighboring blocks adjacent to the current block.
  • the specific motion vector may be derived as a zero vector, or a specific neighbor A neighboring block encoded / decoded based on inter prediction in the order of searching for a block may be derived as the specific neighboring block, and the derived motion vector of the specific neighboring block may be derived as the specific motion vector.
  • a specific block may be determined whether a specific block is coded in the intra prediction mode (S1200).
  • the search may be performed until a specific block coded using an 0 vector or an inter mode is coded. It may be performed (S1210).
  • a specific range can be set based on the position indicated by the motion vector of the specific block coded in the inter mode (S1220), and the motion information candidate list of the current block can be constructed using the motion information of the neighboring block within the specific range. There is (S1230).
  • a neighboring block having motion information with respect to a specific reference picture among the neighboring blocks may be selected, and a motion information candidate of the current block is derived based on the motion information of the selected neighboring block.
  • a motion information candidate list may be constructed for the.
  • the specific reference picture may be derived as a reference picture that is referred to the most among reference pictures for neighboring blocks adjacent to the current block.
  • a neighboring block having motion information about a reference picture of a specific distance from the current picture among the neighboring blocks may be selected, and the motion information candidate of the current block is selected based on the motion information of the selected neighboring block.
  • the motion information candidate list for the current block may be constructed.
  • the specific distance may be derived as a distance between a current picture and a reference picture that is most referenced among reference pictures for neighboring blocks adjacent to the current block.
  • the distance between the pictures may represent a picture order count (POC) difference. That is, the specific distance may indicate a difference between the POC of the reference picture and the POC of the current picture.
  • POC picture order count
  • a neighboring block having motion information about a reference picture of the closest distance in the display order from the current picture among the neighboring blocks may be selected, and based on the motion information of the selected neighboring block, the neighboring block may be selected.
  • a motion information candidate list for the current block may be constructed by deriving a motion information candidate.
  • the reference picture of the closest distance in the display order may represent a reference picture having the smallest difference from the display order of the current picture among the reference pictures for neighboring blocks adjacent to the current block.
  • a motion vector of a neighboring block referring to a reference picture of the closest distance in the display order with the current picture may be used. That is, a neighboring block referring to a reference picture having the smallest difference between the current picture included in the current block and a picture order count (POC) may be used.
  • POC picture order count
  • neighboring blocks of the current block through high level syntax such as a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, and the like.
  • the information about may be signaled, the neighboring block for the current block may be derived based on the information on the neighboring block of the current block, and the motion of the current block based on the derived motion information of the neighboring block.
  • An information candidate may be derived to construct a motion information candidate list for the current block.
  • the information on the neighboring block of the current block may include information about a CTU offset from the current block, a specific range, and / or a position of a neighboring block to designate a range.
  • the specific range may be defined in units of samples.
  • FIG. 13 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.
  • the method disclosed in FIG. 13 may be performed by the encoding apparatus disclosed in FIG. 1. Specifically, for example, S1300 to S1330 of FIG. 13 may be performed by the prediction unit of the encoding apparatus, and S1340 may be performed by the entropy encoding unit of the encoding apparatus.
  • a process of deriving a residual sample for the current block based on the original sample and the prediction sample for the current block may be performed by a subtractor of the encoding apparatus,
  • the generating of the information about the residual on the basis of the current block may be performed by a converter of the encoding apparatus.
  • the encoding of the information on the residual and the prediction of the current block may be performed. It may be performed by the entropy encoding unit of the encoding device.
  • the encoding apparatus derives neighboring blocks of the current block (S1300). That is, the neighboring blocks for the motion information candidate list of the current block among the neighboring blocks of the current block may be derived or selected.
  • the encoding apparatus may determine the prediction mode of the current block. For example, the encoding apparatus may apply inter prediction to the current block.
  • the encoding apparatus may select neighboring blocks for the motion information candidate list of the current block among the neighboring blocks of the current block. Meanwhile, the motion information candidate list may represent a merge candidate list or an MVP candidate list.
  • the neighboring blocks may include non-adjacent blocks that are not adjacent to the current block.
  • adjacent blocks may be included.
  • the non-adjacent block may be derived based on a motion vector of a block adjacent to the current block, a maximum coding unit including the current block, or a current picture including the current block.
  • neighboring blocks are blocks located in at least one of a lower left region, a lower region, a lower right region, a right region, and an upper right region of the current block when the scanning order is set from the lower right side to the upper left direction. Or a non-adjacent block.
  • the scan order may be set from the lower right side to the upper left direction.
  • scan order is (Right-> Left-Down-Up), (Down-> Up, Right-> Left), (Right-> Left-> Zig-Zag) and (Down-> Up-> Left) Zigzag). I.e.
  • the lower right region may include at least one block located at the lower right side of the current block
  • the lower region may include at least one block located at the lower side of the current block
  • the lower left region may be at the lower left of the current block. It may include at least one block located on the side
  • the right region may include at least one block located on the right side of the current block
  • the right upper region may include at least one block located on the right side of the current block Can be.
  • blocks in each region may or may not be adjacent to the current block. That is, it may be a non-adjacent block located within a predetermined distance from the boundary of the current block.
  • neighboring blocks may include a block or a non-adjacent block located within the largest coding unit that includes the current block.
  • the neighboring blocks may include a non-adjacent block located in any one of a left peripheral maximum coding unit, a left upper peripheral maximum coding unit, and an upper peripheral maximum coding unit of the maximum coding unit including the current block.
  • the maximum coding unit may refer to a higher block or a coding tree unit (CTU) of the current block.
  • the maximum coding unit including the current block may be referred to as a current CTU
  • the left peripheral maximum coding unit, the upper left peripheral maximum coding unit, and the upper peripheral maximum coding unit of the maximum coding unit including the current block are the current CTU. It can be expressed as the left peripheral CTU, the upper left peripheral CTU and the upper peripheral CTU of.
  • neighboring blocks may include non-adjacent blocks located in an area within a specific sample distance with respect to the upper left sample position of the current block.
  • the specific sample distance may be 96 sample distances.
  • neighboring blocks may include blocks or non-adjacent blocks located in a region of a specific size with respect to the upper left sample position of the current block.
  • the specific size may be 96x96 size.
  • neighboring blocks may include blocks or non-adjacent blocks located within a max range, the maximum range being one of four, nine and sixteen times the size of the current block,
  • the current block may be located at the lower right side within the maximum range. That is, the maximum range may be set as Max Range 0, Max Range 1, and Max Range 2, whereby the maximum range may indicate a specific region.
  • the maximum range or specific area may be predetermined.
  • Max Range 0 may have a range of 4 times the size of the current block
  • Max Range 1 may have a range of 9 times the current block
  • Max Range 2 may have a range of 16 times the current block. have. More detailed description has been given above with reference to FIG. 10.
  • the neighboring blocks may include a block or a non-adjacent block located within a reference range, and the reference range may be determined based on the maximum coding unit size and the number of maximum coding units.
  • the maximum coding unit size may be determined based on the width or width of the maximum coding unit, and the maximum coding unit may refer to a higher block or CTU of the current block.
  • the number of maximum coding units may be the number of maximum coding units included in the current picture, but is not limited thereto.
  • neighboring blocks may include a block or non-adjacent block located within a specific area centered on a position indicated by a specific motion vector, wherein the specific motion vector is derived from motion vectors of blocks adjacent to the current block.
  • the size of the specific region may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block. Alternatively, the size of the specific region may be predetermined.
  • the specific motion vector may be derived as a motion vector of the maximum absolute value among the motion vectors of blocks adjacent to the current block. Alternatively, it may be derived as an average value or an average motion vector of motion vectors of blocks adjacent to the current block. Referring to FIG.
  • the specific size may mean a range of (p, q) in the vertical / horizontal direction with respect to the position indicated by the motion vector. That is, the specific region may be a region having a height of 2p and a width of 2q based on the position indicated by the motion vector.
  • (p, q) may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block. For example, if the upper left corner block E 0 of the neighboring block of the current block has a motion vector having the largest absolute value, the height is 2p and the width is 2q around the position (x, y) indicated by the motion vector.
  • the phosphorus region may be determined and blocks within the determined region may be selected or derived to derive motion information candidates.
  • neighboring blocks may include a block or a non-adjacent block that references a reference picture having a smallest difference in picture order count (POC) from a current picture included in the current block.
  • POC picture order count
  • the POC may indicate a display order
  • the reference picture having the smallest difference between the current picture and the POC may mean a reference picture that is closest in display order to the current picture.
  • the reference picture may mean a reference picture having the smallest difference from the display order of the current picture.
  • the encoding apparatus constructs the motion information candidate list based on the derived neighboring blocks (S1310).
  • the encoding apparatus may construct the motion information candidate list based on the derived or selected neighboring blocks.
  • the encoding apparatus may derive motion information of the selected neighboring blocks as motion information candidates of the current block, and construct the motion information candidate list including the motion information candidates.
  • the encoding apparatus may derive the motion information derived by combining the motion information of the selected neighboring blocks as the motion information candidate of the current block, and configure the motion information candidate list including the motion information candidate.
  • the motion information candidate list may indicate a merge candidate list or an MVP candidate list
  • the motion candidate may indicate a merge candidate or an MVP candidate.
  • the encoding apparatus derives the motion information of the current block based on the motion information candidate list (S1320).
  • the encoding apparatus may select a specific motion information candidate from the motion information candidates of the motion information candidate list, and derive the selected motion information candidate as motion information for the current block.
  • the encoding apparatus may generate and encode index information indicating the selected motion information candidate among the motion information candidates of the motion information candidate list.
  • the encoding apparatus may derive the selected motion information candidate as the MVP for the current block and derive the motion information for the current block based on the MVP.
  • the encoding apparatus may generate and encode a motion vector difference (MVD) based on the motion vector of the MVP and the motion information.
  • the index information may indicate a merge index or an MVP index.
  • the encoding apparatus generates a predicted block of the current block based on the motion information (S1330). That is, the prediction of the current block may be performed based on the motion information.
  • a prediction block of the current block may be derived based on the motion information, and a reconstruction block may be derived based on the prediction block.
  • the encoding apparatus may derive a reference block within a reference picture based on the motion information.
  • the motion information may include a motion vector and a reference picture index.
  • the encoding apparatus may derive the reference picture indicated by the reference picture index among the reference pictures of the reference picture list as the reference picture of the current block, and convert the block indicated by the motion vector in the reference picture into the reference block of the current block. Can be derived.
  • the encoding apparatus may generate a prediction sample based on the reference block.
  • the encoding apparatus may generate a residual sample based on the original sample and the generated prediction sample.
  • the encoding apparatus may generate information about the residual based on the residual sample.
  • the information about the residual may include transform coefficients related to the residual sample.
  • the encoding apparatus may derive the reconstructed sample based on the prediction sample and the residual sample. That is, the encoding apparatus may derive the reconstructed sample by adding the prediction sample and the residual sample.
  • the encoding apparatus may encode the information about the residual and output the bitstream.
  • the bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
  • the encoding apparatus encodes image information including information on prediction of the current block (S1340).
  • the encoding apparatus may encode and output the video information including the information on the prediction of the current block in the form of a bitstream.
  • the bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
  • the encoding apparatus may determine the prediction mode of the current block, and generate information indicating the prediction mode.
  • the information about the prediction of the current block may include information about the motion information candidate list.
  • the information on the motion information candidate list may include information indicating the specific area.
  • the specific area may indicate an area in which the selected neighboring blocks are located.
  • the information indicating the specific area may include information indicating the size of the specific area and / or information indicating the location of the specific area.
  • the information on the motion information candidate list may include the CTU offset information.
  • the information on the prediction may include index information indicating the selected motion information candidate among motion information candidates of the motion information candidate list.
  • the information on the prediction of the current block may include a merge flag indicating whether a merge mode is applied to the current block.
  • the encoding apparatus may generate information about the residual based on the residual sample.
  • the image information may include information about the residual, and the information about the residual may include transform coefficients related to the residual sample.
  • the encoding device may encode the information about the residual and output the encoded information about the residual.
  • the bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
  • FIG. 14 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.
  • the method disclosed in FIG. 14 may be performed by the decoding apparatus disclosed in FIG. 2. Specifically, for example, S1400 to S1430 of FIG. 14 may be performed by the prediction unit of the decoding apparatus.
  • a process of acquiring image information including information on prediction of a current block and information on residual through a bitstream may be performed by an entropy decoding unit of the decoding apparatus.
  • the process of deriving the residual sample for the current block based on the dual information may be performed by an inverse transform unit of the decoding apparatus, and the process of generating a reconstructed picture based on the prediction sample and the residual sample may be performed. It may be performed by an adder of the decoding apparatus.
  • the decoding apparatus derives neighboring blocks of the current block (S1400). In other words, the decoding apparatus may derive or select neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block. The decoding apparatus may determine the prediction mode of the current block based on the information about the prediction of the current block. The decoding apparatus may apply inter prediction to the current block. The decoding apparatus may select neighboring blocks for the motion information candidate list of the current block among the neighboring blocks of the current block. Meanwhile, the motion information candidate list may represent a merge candidate list or an MVP candidate list.
  • the neighboring blocks may include non-adjacent blocks that are not adjacent to the current block.
  • adjacent blocks may be included.
  • the non-adjacent block may be derived based on a motion vector of a block adjacent to the current block, a maximum coding unit including the current block, or a current picture including the current block.
  • neighboring blocks are blocks located in at least one of a lower left region, a lower region, a lower right region, a right region, and an upper right region of the current block when the scanning order is set from the lower right side to the upper left direction. Or a non-adjacent block.
  • the scan order may be set from the lower right side to the upper left direction.
  • scan order is (Right-> Left-Down-Up), (Down-> Up, Right-> Left), (Right-> Left-> Zig-Zag) and (Down-> Up-> Left) Zigzag). I.e.
  • the lower right region may include at least one block located at the lower right side of the current block
  • the lower region may include at least one block located at the lower side of the current block
  • the lower left region may be at the lower left of the current block. It may include at least one block located on the side
  • the right region may include at least one block located on the right side of the current block
  • the right upper region may include at least one block located on the right side of the current block Can be.
  • blocks in each region may or may not be adjacent to the current block. That is, it may be a non-adjacent block located within a predetermined distance from the boundary of the current block.
  • neighboring blocks may include a block or a non-adjacent block located within the largest coding unit that includes the current block.
  • the neighboring blocks may include a non-adjacent block located in any one of a left peripheral maximum coding unit, a left upper peripheral maximum coding unit, and an upper peripheral maximum coding unit of the maximum coding unit including the current block.
  • the maximum coding unit may refer to a higher block or a coding tree unit (CTU) of the current block.
  • the maximum coding unit including the current block may be referred to as a current CTU
  • the left peripheral maximum coding unit, the upper left peripheral maximum coding unit, and the upper peripheral maximum coding unit of the maximum coding unit including the current block are the current CTU. It can be expressed as the left peripheral CTU, the upper left peripheral CTU and the upper peripheral CTU of.
  • neighboring blocks may include non-adjacent blocks located in an area within a specific sample distance with respect to the upper left sample position of the current block.
  • the specific sample distance may be 96 sample distances.
  • neighboring blocks may include blocks or non-adjacent blocks located in a region of a specific size with respect to the upper left sample position of the current block.
  • the specific size may be 96x96 size.
  • neighboring blocks may include blocks or non-adjacent blocks located within a max range, the maximum range being one of four, nine and sixteen times the size of the current block,
  • the current block may be located at the lower right side within the maximum range. That is, the maximum range may be set as Max Range 0, Max Range 1, and Max Range 2, whereby the maximum range may indicate a specific region.
  • the maximum range or specific area may be predetermined.
  • Max Range 0 may have a range of 4 times the size of the current block
  • Max Range 1 may have a range of 9 times the current block
  • Max Range 2 may have a range of 16 times the current block. have. More detailed description has been given above with reference to FIG. 10.
  • the neighboring blocks may include a block or a non-adjacent block located within a reference range, and the reference range may be determined based on the maximum coding unit size and the number of maximum coding units.
  • the maximum coding unit size may be determined based on the width or width of the maximum coding unit, and the maximum coding unit may refer to a higher block or CTU of the current block.
  • the number of maximum coding units may be the number of maximum coding units included in the current picture, but is not limited thereto.
  • neighboring blocks may include a block or non-adjacent block located within a specific area centered on a position indicated by a specific motion vector, wherein the specific motion vector is derived from motion vectors of blocks adjacent to the current block.
  • the size of the specific region may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block. Alternatively, the size of the specific region may be predetermined.
  • the specific motion vector may be derived as a motion vector of the maximum absolute value among the motion vectors of blocks adjacent to the current block. Alternatively, it may be derived as an average value or an average motion vector of motion vectors of blocks adjacent to the current block. Referring to FIG.
  • the specific size may mean a range of (p, q) in the vertical / horizontal direction with respect to the position indicated by the motion vector. That is, the specific region may be a region having a height of 2p and a width of 2q based on the position indicated by the motion vector.
  • (p, q) may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block. For example, if the upper left corner block E 0 of the neighboring block of the current block has a motion vector having the largest absolute value, the height is 2p and the width is 2q around the position (x, y) indicated by the motion vector.
  • the phosphorus region may be determined and blocks within the determined region may be selected or derived to derive motion information candidates.
  • neighboring blocks may include a block or a non-adjacent block that references a reference picture having a smallest difference in picture order count (POC) from a current picture included in the current block.
  • POC picture order count
  • the POC may indicate a display order
  • the reference picture having the smallest difference between the current picture and the POC may mean a reference picture that is closest in display order to the current picture.
  • the reference picture may mean a reference picture having the smallest difference from the display order of the current picture.
  • the decoding apparatus configures the motion information candidate list based on the derived neighboring blocks (S1410).
  • the decoding apparatus may construct the motion information candidate list based on the selected or derived neighboring blocks.
  • the decoding apparatus may derive the motion information of the selected neighboring blocks as motion information candidates of the current block, and construct the motion information candidate list including the motion information candidates.
  • the decoding apparatus may derive the motion information derived by combining the motion information of the selected neighboring blocks as the motion information candidate of the current block, and configure the motion information candidate list including the motion information candidate.
  • the motion information candidate list may indicate a merge candidate list or an MVP candidate list
  • the motion candidate may indicate a merge candidate or an MVP candidate.
  • the decoding apparatus derives the motion information of the current block based on the motion information candidate list (S1420).
  • the decoding apparatus may select a specific motion information candidate among the motion information candidates of the motion information candidate list, and derive the selected motion information candidate as motion information for the current block.
  • the decoding apparatus may obtain index information through the bitstream, and may derive the motion information candidate indicated by the index information among the motion information candidates of the motion information candidate list as the motion information for the current block. .
  • the decoding apparatus may obtain index information and a motion vector difference (MVD) through a bitstream, and among the motion information candidates of the motion information candidate list, the motion information candidate indicated by the index information may be selected as an MVP for the current block.
  • Motion Vector Predictor Motion Vector Predictor
  • the index information may indicate a merge index or an MVP index.
  • the decoding apparatus generates a predicted block of the current block based on the motion information (S1430). That is, the prediction of the current block may be performed based on the motion information.
  • a prediction block of the current block may be derived based on the motion information, and a reconstruction block may be derived based on the prediction block.
  • the decoding apparatus may derive a reference block within a reference picture based on the motion information.
  • the motion information may include a motion vector and a reference picture index.
  • the decoding apparatus may derive the reference picture indicated by the reference picture index among the reference pictures of the reference picture list as the reference picture of the current block, and convert the block indicated by the motion vector in the reference picture as the reference block of the current block. Can be derived.
  • the decoding apparatus may generate a prediction sample based on the reference block, and may directly use the prediction sample as a reconstruction sample according to a prediction mode, or generate a reconstruction sample by adding a residual sample to the prediction sample. . If there is a residual sample for the current block, the decoding apparatus may obtain information about the residual for the current block from the bitstream. The information about the residual may include transform coefficients regarding the residual sample. The decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information. The decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture in order to improve subjective / objective picture quality as necessary.
  • an in-loop filtering procedure such as a deblocking filtering
  • the motion information in order to derive the motion information of the current block, the motion information can be searched in a wider area that has already been decoded, and not limited to adjacent neighboring blocks. It can be used as a candidate for motion information to improve prediction accuracy.
  • the present invention it is possible to select neighboring blocks suitable for the current block among the neighboring blocks based on a specific condition, and derive a motion information candidate list based on the selected neighboring blocks. Memory bandwidth can be saved, and coding efficiency can be improved by improving prediction performance.
  • 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 various 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.
  • 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.
  • 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 (for example, transmission over the Internet).
  • the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
  • 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
  • navigation a slate PC
  • Tablet PCs 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.

Abstract

An image decoding method performed by a decoding device according to the present invention comprises the steps of: deriving neighboring blocks of a current block; configuring a motion information candidate list on the basis of the derived neighboring blocks; deriving motion information of the current block on the basis of the motion information candidate list; and generating a predicted block of the current block on the basis of the motion information, wherein the neighboring blocks include a non-adjacent block that is not adjacent to the current block, and the non-adjacent block is derived on the basis of a motion vector of a block adjacent to the current block, a maximum coding unit including the current block, or a current picture including the current block.

Description

영상 코딩 시스템에서 복수의 주변 블록들을 사용하는 인터 예측에 따른 영상 디코딩 방법 및 장치An image decoding method and apparatus according to inter prediction using a plurality of neighboring blocks in an image coding system
본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 복수의 주변 블록들을 사용하는 인터 예측에 따른 영상 디코딩 방법 및 장치에 관한 것이다.The present invention relates to an image coding technique, and more particularly, to an image decoding method and apparatus according to inter prediction using a plurality of neighboring blocks in an image coding 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 image coding efficiency.
본 발명의 다른 기술적 과제는 복수의 주변 블록들을 기반으로 움직임 정보 후보 리스트를 도출하는 영상 디코딩 방법 및 장치를 제공함에 있다.Another object of the present invention is to provide an image decoding method and apparatus for deriving a motion information candidate list based on a plurality of neighboring blocks.
본 발명의 다른 기술적 과제는 현재 블록에 인접하지 않은 주변 블록들을 기반으로 움직임 정보 후보 리스트를 도출하고, 도출된 움직임 정보 후보 리스트를 기반으로 예측을 수행하는 영상 디코딩 방법 및 장치를 제공함에 있다.Another object of the present invention is to provide an image decoding method and apparatus for deriving a motion information candidate list based on neighboring blocks that are not adjacent to a current block and performing prediction based on the derived motion information candidate list.
본 발명의 다른 기술적 과제는 현재 블록에 주변 블록들 중 특정 조건에 따른 주변 블록들을 선택하고, 선택된 주변 블록들을 기반으로 움직임 정보 후보 리스트를 도출하여 예측을 수행하는 영상 디코딩 방법 및 장치를 제공함에 있다.Another object of the present invention is to provide an image decoding method and apparatus for performing prediction by selecting neighboring blocks according to a specific condition among neighboring blocks in the current block and deriving a motion information candidate list based on the selected neighboring blocks. .
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은 현재 블록의 주변 블록들 중 상기 현재 블록의 움직임 정보 후보 리스트를 위한 주변 블록들을 도출하는 단계, 상기 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성하는 단계, 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하는 단계, 및 상기 움직임 정보를 기반으로 상기 현재 블록의 예측을 수행하는 단계를 포함하되, 상기 주변 블록들은 상기 현재 블록에 인접하지 않은 비인접 블록을 포함하고, 상기 비인접 블록은 상기 현재 블록에 인접한 블록이 움직임 벡터, 상기 현재 블록이 포함된 최대 코딩 유닛 또는 상기 현재 블록이 포함된 현재 픽처를 기반으로 도출되는 것을 특징으로 한다.According to an embodiment of the present invention, there is provided an image decoding method performed by a decoding apparatus. The method includes deriving neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block, constructing the motion information candidate list based on the derived neighboring blocks, and the motion information candidate list. Deriving motion information of the current block based on the step of performing the prediction of the current block based on the motion information, wherein the neighboring blocks include non-adjacent blocks that are not adjacent to the current block. The non-adjacent block is characterized in that a block adjacent to the current block is derived based on a motion vector, a maximum coding unit including the current block, or a current picture including the current block.
본 발명의 다른 일 실시예에 따르면, 영상 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는 현재 블록의 주변 블록들 중 상기 현재 블록의 움직임 정보 후보 리스트를 위한 주변 블록들을 도출하고, 상기 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성하고, 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하고, 상기 움직임 정보를 기반으로 상기 현재 블록의 예측을 수행하는 예측부를 포함하되, 상기 주변 블록들은 상기 현재 블록에 인접하지 않은 비인접 블록을 포함하고, 상기 비인접 블록은 상기 현재 블록에 인접한 블록이 움직임 벡터, 상기 현재 블록이 포함된 최대 코딩 유닛 또는 상기 현재 블록이 포함된 현재 픽처를 기반으로 도출되는 것을 특징으로 한다.According to another embodiment of the present invention, a decoding apparatus for performing image decoding is provided. The decoding apparatus derives neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block, constructs the motion information candidate list based on the derived neighboring blocks, and extracts the motion information candidate list. A prediction unit configured to derive motion information of the current block based on the motion information, and to predict the current block based on the motion information, wherein the neighboring blocks include non-adjacent blocks that are not adjacent to the current block; The non-adjacent block is characterized in that a block adjacent to the current block is derived based on a motion vector, a maximum coding unit including the current block, or a current picture including the current block.
본 발명의 또 다른 일 실시예에 따르면, 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법을 제공한다. 상기 방법은 현재 블록의 주변 블록들 중 상기 현재 블록의 움직임 정보 후보 리스트를 위한 주변 블록들을 도출하는 단계, 상기 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성하는 단계, 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하는 단계, 상기 움직임 정보를 기반으로 상기 현재 블록의 예측을 수행하는 단계, 및 상기 현재 블록의 예측에 대한 정보를 포함하는 영상 정보를 인코딩하는 단계를 포함하되, 상기 주변 블록들은 상기 현재 블록에 인접하지 않은 비인접 블록을 포함하고, 상기 비인접 블록은 상기 현재 블록에 인접한 블록이 움직임 벡터, 상기 현재 블록이 포함된 최대 코딩 유닛 또는 상기 현재 블록이 포함된 현재 픽처를 기반으로 도출되는 것을 특징으로 한다.According to another embodiment of the present invention, a video encoding method performed by an encoding apparatus is provided. The method includes deriving neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block, constructing the motion information candidate list based on the derived neighboring blocks, and the motion information candidate list. Deriving motion information of the current block based on the step of performing prediction of the current block based on the motion information, and encoding image information including information on the prediction of the current block. The neighboring blocks may include non-adjacent blocks that are not adjacent to the current block, and the non-adjacent blocks include a motion vector, a maximum coding unit including the current block, or the current block, in which a block adjacent to the current block is located. Characterized in that it is derived based on the current picture.
본 발명의 또 다른 일 실시예에 따르면, 비디오 인코딩 장치를 제공한다. 상기 인코딩 장치는 현재 블록의 주변 블록들 중 상기 현재 블록의 움직임 정보 후보 리스트를 위한 주변 블록들을 도출하고, 상기 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성하고, 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하고, 상기 움직임 정보를 기반으로 상기 현재 블록의 예측을 수행하는 예측부, 및 상기 현재 블록의 예측에 대한 정보를 포함하는 영상 정보를 인코딩하는 엔트로피 인코딩부를 포함하되, 상기 주변 블록들은 상기 현재 블록에 인접하지 않은 비인접 블록을 포함하고, 상기 비인접 블록은 상기 현재 블록에 인접한 블록이 움직임 벡터, 상기 현재 블록이 포함된 최대 코딩 유닛 또는 상기 현재 블록이 포함된 현재 픽처를 기반으로 도출되는 것을 특징으로 한다.According to another embodiment of the present invention, a video encoding apparatus is provided. The encoding apparatus derives neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block, constructs the motion information candidate list based on the derived neighboring blocks, and constructs the motion information candidate list. A motion estimation unit for deriving motion information of the current block based on the motion information, and a prediction unit for performing prediction of the current block based on the motion information, and an entropy encoding unit for encoding image information including information about prediction of the current block. The neighboring blocks may include non-adjacent blocks that are not adjacent to the current block, and the non-adjacent blocks include a motion vector, a maximum coding unit including the current block, or the current block, in which a block adjacent to the current block is located. Characterized in that it is derived based on the current picture.
본 발명에 따르면 상기 현재 블록의 움직임 정보를 도출하기 위해 인접한 주변 블록에 국한하지 않고, 이미 디코딩된 보다 넓은 영역에서 움직임 정보를 탐색할 수 있고, 이를 통하여 더 다양한 움직임 정보가 상기 현재 블록의 움직임 정보의 후보로 사용되어 예측 정확도를 향상시킬 수 있다.According to the present invention, in order to derive the motion information of the current block, the motion information can be searched in a wider area which is already decoded, and not limited to adjacent neighboring blocks. Can be used as a candidate for improving the prediction accuracy.
본 발명에 따르면 특정 조건을 기반으로 주변 블록들 중 현재 블록에 적절한 주변 블록들을 도출하고, 도출된 주변 블록들을 기반으로 움직임 정보 후보 리스트를 도출할 수 있고, 이를 통하여 라인 버퍼 및 메모리 밴드위스(memory bandwidth)를 절약할 수 있고, 예측 성능을 향상시켜 코딩 효율을 향상시킬 수 있다.According to the present invention, the neighboring blocks suitable for the current block among the neighboring blocks can be derived based on a specific condition, and the motion information candidate list can be derived based on the derived neighboring blocks. bandwidth can be saved, and coding efficiency can be improved by improving prediction performance.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
도 3은 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들을 예시적으로 나타낸다.3 exemplarily shows spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
도 4는 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들의 일 예를 나타낸다.4 shows an example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
도 5는 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들의 다른 일 예를 나타낸다.5 shows another example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
도 6은 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들의 다른 일 예를 나타낸다.6 shows another example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
도 7은 다른 스캔 순서에 따라 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들의 일 예를 나타낸다.7 illustrates an example of spatial neighboring blocks that may be used to derive a spatial candidate for the current block according to another scan order.
도 8은 다른 스캔 순서에 따라 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 상기 현재 블록의 경계에서 1 샘플 이내에 위치하는 공간적 주변 블록들의 일 예를 나타낸다.8 illustrates an example of spatial neighboring blocks located within one sample at the boundary of the current block that may be used to derive a spatial candidate for the current block according to another scan order.
도 9는 상기 현재 블록에 대한 주변 블록의 가용 범위의 일 예를 나타낸다.9 shows an example of an available range of neighboring blocks for the current block.
도 10은 상기 현재 블록에 대한 움직임 정보 후보 리스트를 구성하기 위하여 선택될 수 있는 주변 블록을 포함하는 특정 영역의 일 예를 나타낸다.10 illustrates an example of a specific area including a neighboring block that may be selected to form a motion information candidate list for the current block.
도 11은 상기 현재 블록에 인접한 블록의 최대 절대값의 움직임 벡터를 기반으로 결정되는 특정 범위의 일 예를 나타낸다.11 shows an example of a specific range determined based on a motion vector of a maximum absolute value of a block adjacent to the current block.
도 12는 움직임 예측 후보 리스트를 생성하는 방법을 개략적으로 나타낸다.12 schematically illustrates a method of generating a motion prediction candidate list.
도 13은 본 발명에 따른 인코딩 장치에 의한 영상 인코딩 방법을 개략적으로 나타낸다.13 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.
도 14는 본 발명에 따른 디코딩 장치에 의한 영상 디코딩 방법을 개략적으로 나타낸다.14 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.
도 15는 컨텐츠 스트리밍 시스템 구조를 개략적으로 나타낸다.15 schematically shows the structure of a content streaming system.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.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.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.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.
한편, 본 발명은 비디오/영상 코딩에 관한 것이다. 예를 들어, 본 발명에서 개시된 방법/실시예는 VVC (versatile video coding) 표준 또는 차세대 비디오/이미지 코딩 표준에 개시된 방법에 적용될 수 있다.On the other hand, the present invention relates to video / image coding. For example, the method / embodiment disclosed herein may be applied to the method disclosed in the versatile video coding (VVC) standard or the next generation video / image coding standard.
본 명세서에서 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다.In the present specification, a picture generally refers to a unit representing one image of 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 diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
도 1을 참조하면, 비디오 인코딩 장치(100)는 픽처 분할부(105), 예측부(110), 레지듀얼 처리부(120), 엔트로피 인코딩부(130), 가산부(140), 필터부(150) 및 메모리(160)을 포함할 수 있다. 레지듀얼 처리부(120)는 감산부(121), 변환부(122), 양자화부(123), 재정렬부(124), 역양자화부(125) 및 역변환부(126)를 포함할 수 있다. Referring to FIG. 1, the video encoding apparatus 100 may include a picture splitter 105, a predictor 110, a residual processor 120, an entropy encoder 130, an adder 140, and a filter 150. ) And memory 160. The residual processing unit 120 may include a subtraction unit 121, a conversion unit 122, a quantization unit 123, a reordering unit 124, an inverse quantization unit 125, and an inverse conversion unit 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) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다. As an example, the processing unit may be called a coding unit (CU). In this case, the coding unit may be recursively split from the largest coding unit (LCU) according to a quad-tree binary-tree (QTBT) structure. For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and / or a binary tree structure. In this case, for example, the quad tree structure may be applied first and the binary tree structure may be applied later. Alternatively, the binary tree structure may be applied first. The coding procedure according to the present invention may be performed based on the final coding unit that is no longer split. 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 may perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples of the current block. 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 4 × 4 residual array, the residual sample is configured to perform a discrete sine transform (DST) transform kernel. 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) 유닛 단위로 전송 또는 저장될 수 있다.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 coefficient (for example, a value of a syntax element) together or separately. Entropy encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
역양자화부(125)는 양자화부(123)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(126)는 역양자화부(125)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.The inverse quantization unit 125 inverse quantizes the quantized values (quantized transform coefficients) in the quantization unit 123, and the inverse transformer 126 inverse transforms the inverse quantized values in the inverse quantization unit 125 to generate a residual sample. Create
가산부(140)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(140)는 별도의 구성으로 설명하였으나, 가산부(140)는 예측부(110)의 일부일 수 있다. 한편, 가산부(140)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다.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. On the other hand, the adder 140 may be called a restoration unit or a restoration block generation unit.
복원된 픽처(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 diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
도 2를 참조하면, 비디오 디코딩 장치(200)는 엔트로피 디코딩부(210), 레지듀얼 처리부(220), 예측부(230), 가산부(240), 필터부(250) 및 메모리(260)을 포함할 수 있다. 여기서 레지듀얼 처리부(220)는 재정렬부(221), 역양자화부(222), 역변환부(223)을 포함할 수 있다. Referring to FIG. 2, the video decoding apparatus 200 may include an entropy decoding unit 210, a residual processor 220, a predictor 230, an adder 240, a filter 250, and a memory 260. It may include. Here, the residual processor 220 may include a rearrangement unit 221, an inverse quantization unit 222, and an inverse transform unit 223.
비디오 정보를 포함하는 비트스트림이 입력되면, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 비디오 정보가 처리된 프로세스에 대응하여 비디오를 복원할 수 있다.When a bitstream including video information is input, the video decoding apparatus 200 may restore video in response to a process in which video 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 and / or binary 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 necessary for video reconstruction, and residual coefficients. 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 may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have. 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 / bean 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)는 복원부 또는 복원 블록 생성부로 불릴 수도 있다. 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. On the other hand, the adder 240 may be called a restoration unit or a restoration block generation unit.
필터부(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.
한편, 인터 예측의 경우, 현재 블록의 움직임 정보를 도출하기 위하여 상기 현재 블록에 공간적 인접한 주변 블록(즉, 공간적 주변 블록)의 움직임 정보뿐만 아니라 이미 디코딩된 참조 픽처의 주변 블록(즉, 시간적 주변 블록)의 움직임 정보를 기반으로 움직임 정보 후보 리스트가 구성될 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있고, 상기 움직임 정보 후보 리스트는 머지 후보 리스트 또는 MVP(Motion Vector Predictor) 후보 리스트를 나타낼 수 있다. 한편, 상기 움직임 정보 후보 리스트에 추가된 움직임 정보 후보들에 대한 중복 체크 과정이 수행되어 중복되는 움직임 정보 후보는 상기 움직임 정보 후보 리스트에서 제거될 수 있다. 또한, 상기 움직임 정보 후보 리스트는 기설정된 후보 개수의 움직임 정보 후보들을 포함할 수 있다. Meanwhile, in the case of inter prediction, in order to derive the motion information of the current block, not only the motion information of the neighboring block (ie, the spatial neighboring block) spatially adjacent to the current block, but also the neighboring block (ie, the temporal neighboring block) of the already decoded reference picture The motion information candidate list may be configured based on the motion information of the " The motion information may include a motion vector and a reference picture index, and the motion information candidate list may indicate a merge candidate list or a motion vector predictor (MVP) candidate list. Meanwhile, a duplicate check process may be performed on the motion information candidates added to the motion information candidate list to remove the duplicate motion information candidates from the motion information candidate list. The motion information candidate list may include motion information candidates having a predetermined number of candidates.
한편, 상기 현재 블록에 스킵 모드 또는 머지 모드가 적용되는 경우, 상술한 내용과 같이 머지 후보 리스트가 구성될 수 있고, 상기 머지 후보 리스트는 공간적 후보, 시간적 후보, 어파인 후보, ATMVP(Advanced Temporal Motion Vector Predictor), STMVP(Spatial Temporal Motion Vector Predictor), 조합된 후보, 및/또는 영벡터를 머지 후보로 포함할 수 있다. 여기서, 상기 공간적 후보는 현재 블록의 공간적 주변 블록의 움직임 정보를 포함하는 머지 후보, 시간적 후보는 현재 블록의 시간적 주변 블록의 움직임 정보를 포함하는 머지 후보를 나타낼 수 있다. Meanwhile, when a skip mode or a merge mode is applied to the current block, a merge candidate list may be configured as described above, and the merge candidate list may include a spatial candidate, a temporal candidate, an affinity candidate, and ATMVP (Advanced Temporal Motion). Vector Predictor), STMVP (Spatial Temporal Motion Vector Predictor), combined candidate, and / or zero vector may be included as merge candidates. Here, the spatial candidate may indicate a merge candidate including motion information of spatial neighboring blocks of the current block, and the temporal candidate may indicate a merge candidate including motion information of the temporal neighboring blocks of the current block.
기존 코딩 시스템에서의 인터 예측의 경우, 상기 현재 블록의 움직임 정보를 도출하기 위하여 상기 현재 블록에 인접한 공간적 주변 블록의 움직임 정보만이 사용될 수 있다. 이에, 본 발명은 상기 현재 블록의 움직임 정보를 도출하기 위해 인접한 주변 블록에 국한하지 않고, 이미 디코딩된 보다 넓은 영역을 움직임 정보를 탐색하는 방안을 제안한다. 이를 통하여 더 다양한 움직임 정보가 상기 현재 블록의 움직임 정보의 후보로 사용될 수 있고, 예측 정확도를 향상시키는 효과가 발생될 수 있다. 또한, 본 발명은 메모리 절약 및 성능 향상을 적절하게 고려하기 위하여 참조할 수 있는 영역을 제한하는 방안을 제안한다. In the case of inter prediction in an existing coding system, only motion information of spatial neighboring blocks adjacent to the current block may be used to derive motion information of the current block. Accordingly, the present invention proposes a method of searching for motion information in a wider area which is already decoded, and not limited to adjacent neighboring blocks to derive motion information of the current block. Through this, more various motion information may be used as a candidate of motion information of the current block, and an effect of improving prediction accuracy may be generated. In addition, the present invention proposes a method of limiting the area that can be referred to in order to properly consider memory saving and performance improvement.
이하, 각 도면에서 설명되는 블록, 작은 블록 또는 가장 작은 블록은 NxN 픽셀 단위를 의미할 수 있으며, N은 1 이상의 정수일 수 있다. 예를 들어, N=1인 경우, 블록은 하나의 픽셀을 의미할 수 있고, N=4인 경우, 블록은 4x4 크기의 블록(16개의 픽셀)을 의미할 수 있다.Hereinafter, a block, a small block, or a smallest block described in each drawing may mean an N × N pixel unit, and N may be an integer of 1 or more. For example, when N = 1, the block may mean one pixel, and when N = 4, the block may mean a 4 × 4 block (16 pixels).
도 3은 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들을 예시적으로 나타낸다. 도 3을 참조하면 현재 블록(300)을 중심으로 상기 현재 블록의 움직임 정보를 유도할 수 있는 주변 블록의 위치가 정의될 수 있다. 도 3에 도시된 작은 블록 한 개는 서브 블록을 나타낼 수 있고, 상기 서브 블록의 사이즈는 인코딩 장치(또는 부호화 장치) 및 디코딩 장치(또는 복호화 장치) 간 기정의 될 수 있고, 또는 하이 레벨 신텍스(high level syntax)를 통하여 시그널링되는 상기 서브 블록의 사이즈 관련 정보를 기반으로 가변적으로 도출될 수 있다. 도 3을 참조하면 상기 현재 블록의 공간적 주변 블록들은 49개의 공간적 주변 블록들을 포함할 수 있는바, 5개의 현재 블록과 인접한 공간적 주변 블록들과 44개의 현재 블록과 인접하지 않은 공간적 주변 블록을 포함할 수 있다. 3 exemplarily shows spatial neighboring blocks that can be used to derive a spatial candidate for the current block. Referring to FIG. 3, a position of a neighboring block capable of deriving motion information of the current block based on the current block 300 may be defined. One small block shown in FIG. 3 may represent a sub block, and the size of the sub block may be defined between an encoding device (or an encoding device) and a decoding device (or a decoding device), or a high level syntax ( It can be derived variably based on the size related information of the sub-block signaled through high level syntax. Referring to FIG. 3, the spatial neighboring blocks of the current block may include 49 spatial neighboring blocks, which may include spatial neighboring blocks adjacent to five current blocks and spatial neighboring blocks not adjacent to 44 current blocks. Can be.
예를 들어, 상기 서브 블록의 사이즈가 nxn 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 1번 주변 블록은 (-n, 7n) 좌표의 샘플을 포함하는 블록이고, 2번 주변 블록은 (7n, -n) 좌표의 샘플을 포함하는 블록이고, 3번 주변 블록은 (8n, -n) 좌표의 샘플을 포함하는 블록이고, 4번 주변 블록은 (-n, 8n) 좌표의 샘플을 포함하는 블록이고, 5번 주변 블록은 (-n, -n) 좌표의 샘플을 포함하는 블록일 수 있고, 6번 주변 블록은 (-5n, 4n) 좌표의 샘플을 포함하는 블록일 수 있고, 7번 주변 블록은 (4n, -4n) 좌표의 샘플을 포함하는 블록일 수 있고, 8번 주변 블록은 (-5n, 0) 좌표의 샘플을 포함하는 블록일 수 있고, 9번 주변 블록은 (0, -4n) 좌표의 샘플을 포함하는 블록일 수 있고, 10번 주변 블록은 (-5n, 7n) 좌표의 샘플을 포함하는 블록일 수 있고, 11번 주변 블록은 (7n, -4n) 좌표의 샘플을 포함하는 블록일 수 있고, 12번 주변 블록은 (-5n, -4n) 좌표의 샘플을 포함하는 블록일 수 있고, 13번 주변 블록은 (-5n, 11n) 좌표의 샘플을 포함하는 블록일 수 있고, 14번 주변 블록은 (11n, -4n) 좌표의 샘플을 포함하는 블록일 수 있고, 15번 주변 블록은 (-n, 11n) 좌표의 샘플을 포함하는 블록일 수 있고, 16번 주변 블록은 (11n, -n) 좌표의 샘플을 포함하는 블록일 수 있고, 17번 주변 블록은 (-9n, 4n) 좌표의 샘플을 포함하는 블록일 수 있고, 18번 주변 블록은 (4n, -8n) 좌표의 샘플을 포함하는 블록일 수 있고, 19번 주변 블록은 (-9n, 0) 좌표의 샘플을 포함하는 블록일 수 있고, 20번 주변 블록은 (0, -8n) 좌표의 샘플을 포함하는 블록일 수 있고, 21번 주변 블록은 (-9n, 7n) 좌표의 샘플을 포함하는 블록일 수 있고, 22번 주변 블록은 (7n, -8n) 좌표의 샘플을 포함하는 블록일 수 있고, 23번 주변 블록은 (-9n, -8n) 좌표의 샘플을 포함하는 블록일 수 있고, 24번 주변 블록은 (-9n, 15n) 좌표의 샘플을 포함하는 블록일 수 있고, 25번 주변 블록은 (15n, -8n) 좌표의 샘플을 포함하는 블록일 수 있고, 26번 주변 블록은 (-n, 15n) 좌표의 샘플을 포함하는 블록일 수 있고, 27번 주변 블록은 (15n, -n) 좌표의 샘플을 포함하는 블록일 수 있고, 28번 주변 블록은 (-13n, 4n) 좌표의 샘플을 포함하는 블록일 수 있고, 29번 주변 블록은 (4n, -12n) 좌표의 샘플을 포함하는 블록일 수 있고, 30번 주변 블록은 (-13n, 0) 좌표의 샘플을 포함하는 블록일 수 있고, 31번 주변 블록은 (0, -12n) 좌표의 샘플을 포함하는 블록일 수 있고, 32번 주변 블록은 (-13n, 7n) 좌표의 샘플을 포함하는 블록일 수 있고, 33번 주변 블록은 (7n, -12n) 좌표의 샘플을 포함하는 블록일 수 있고, 34번 주변 블록은 (-13n, -12n) 좌표의 샘플을 포함하는 블록일 수 있고, 35번 주변 블록은 (-13n, 19n) 좌표의 샘플을 포함하는 블록일 수 있고, 36번 주변 블록은 (19n, -12n) 좌표의 샘플을 포함하는 블록일 수 있고, 37번 주변 블록은 (-n, 19n) 좌표의 샘플을 포함하는 블록일 수 있고, 38번 주변 블록은 (19n, -n) 좌표의 샘플을 포함하는 블록일 수 있고, 39번 주변 블록은 (-17n, 4n) 좌표의 샘플을 포함하는 블록일 수 있고, 40번 주변 블록은 (4n, -16n) 좌표의 샘플을 포함하는 블록일 수 있고, 41번 주변 블록은 (-17n, 0) 좌표의 샘플을 포함하는 블록일 수 있고, 42번 주변 블록은 (0, -16n) 좌표의 샘플을 포함하는 블록일 수 있고, 43번 주변 블록은 (-17n, 7n) 좌표의 샘플을 포함하는 블록일 수 있고, 44번 주변 블록은 (7n, -16n) 좌표의 샘플을 포함하는 블록일 수 있고, 45번 주변 블록은 (-17n, -16n) 좌표의 샘플을 포함하는 블록일 수 있고, 46번 주변 블록은 (-17n, 23n) 좌표의 샘플을 포함하는 블록일 수 있고, 47번 주변 블록은 (23n, -16n) 좌표의 샘플을 포함하는 블록일 수 있고, 48번 주변 블록은 (-n, 23n) 좌표의 샘플을 포함하는 블록일 수 있고, 49번 주변 블록은 (23n, -n) 좌표의 샘플을 포함하는 블록일 수 있다. 한편, 예를 들어, 상기 현재 블록의 사이즈는 WxH 일 수 있고, 상기 W 는 8n, H는 8n 일 수 있다. For example, when the size of the sub block is nxn and the x component of the top-left sample position of the current block is 0 and the y component is 0, the first neighboring block is coordinates (-n, 7n). Block 2 containing a sample of coordinates (7n, -n), block 3 containing a sample of coordinates (8n, -n), and block 4 The neighboring block is a block containing samples of (-n, 8n) coordinates, the neighboring block 5 may be a block containing samples of (-n, -n) coordinates, and the neighboring block 6 is (-5n, 4n) may be a block containing a sample of coordinates, a block around 7 may be a block containing a sample of (4n, -4n) coordinates, and a block of 8 is a sample of (-5n, 0) coordinates The surrounding block # 9 may be a block containing samples of (0, -4n) coordinates; the peripheral block # 10 may be a block containing samples of (-5n, 7n) coordinates; , Block 11 may be a block containing samples of (7n, -4n) coordinates, block 12 is a block containing samples of (-5n, -4n) coordinates, block 13 is May be a block containing samples of (-5n, 11n) coordinates, a neighboring block 14 may be a block containing samples of (11n, -4n) coordinates, and a 15th neighboring block is (-n, 11n) May be a block containing a sample of coordinates, a block around 16 may be a block containing a sample of (11n, -n) coordinates, and a block of around 17 contains a sample of (-9n, 4n) coordinates Block around, block 18 may be a block containing samples of (4n, -8n) coordinates, block 19 is a block containing samples of (-9n, 0) coordinates, and Block around can be a block containing samples of (0, -8n) coordinates, block 21 is a block containing samples of (-9n, 7n) coordinates, block 22 is (7n) , -8 n) may be a block containing a sample of coordinates, a block around 23 may be a block containing a sample of (-9n, -8n) coordinates, and a block of around 24 is a sample of (-9n, 15n) coordinates May be a block including the neighboring block 25 may be a block including a sample of (15n, -8n) coordinates, and the neighboring block 26 is a block containing a sample of the (-n, 15n) coordinates , Block 27 may be a block containing samples of (15n, -n) coordinates, block 28 is a block containing samples of (-13n, 4n) coordinates, and block 29 is nearby. May be a block containing a sample of (4n, -12n) coordinates, a neighboring block 30 may be a block containing a sample of (-13n, 0) coordinates, and a neighboring block 31 is (0, -12n ) May be a block containing a sample of coordinates, and a neighboring block 32 may be a block containing a sample of (-13n, 7n) coordinates, and a neighboring block 33 is a sample of (7n, -12n) coordinates. The neighboring block can be a block containing samples of (-13n, -12n) coordinates, and the neighboring block 35 can be a block containing samples of (-13n, 19n) coordinates. And, block 36, can be a block containing samples of (19n, -12n) coordinates, block 37, can be a block containing samples of (-n, 19n) coordinates, block 38, and May be a block containing a sample of (19n, -n) coordinates, a neighboring block 39 may be a block containing a sample of (-17n, 4n) coordinates, and a neighboring block 40 is (4n, -16n ) May be a block containing a sample of coordinates, and the neighboring block 41 may be a block containing a sample of (-17n, 0) coordinates, and the neighboring block 42 includes a sample of (0, -16n) coordinates And the neighboring block 43 may be a block including samples of (-17n, 7n) coordinates, and the neighboring block 44 is a block containing samples of (7n, -16n) coordinates. And the surrounding block 45 can be a block containing samples of (-17n, -16n) coordinates, and the surrounding block 46 can be a block containing samples of (-17n, 23n) coordinates, and number 47 The neighboring block may be a block containing samples of (23n, -16n) coordinates, the neighboring block 48 may be a block containing samples of (-n, 23n) coordinates, and the neighboring block 49 is (23n, n) may be a block containing a sample of coordinates. On the other hand, for example, the size of the current block may be WxH, W may be 8n, H may be 8n.
또한, 도 3을 참조하면, 상기 주변 블록들 각각에 쓰여진 숫자는 해당 주변 블록의 움직임 정보 탐색 순서를 나타낼 수 있다. 즉, 상기 탐색 순서로 상기 주변 블록들의 움직임 정보가 상기 현재 블록의 움직임 정보 후보(예를 들어, 머지 후보)로 도출될 수 있다. 도 3에 제안된 실시예와 같이 복수의 주변 블록들의 움직임 정보가 상기 현재 블록의 움직임 정보 도출을 위하여 활용될 수 있다. 즉, 복수의 주변 블록들의 움직임 정보를 기반으로 더욱 다양한 움직임 정보가 상기 현재 블록에 대한 움직임 정보 후보로 구성될 수 있고, 이를 통하여 예측의 정확도가 향상될 수 있다. 또한, 상술한 실시예는 머지 모드를 예시로 서술하고 있으나, 상기 현재 블록에 AMVP 모드가 적용되는 경우에도 도 3에 도시된 복수의 주변 블록들을 기반으로 움직임 정보 후보 리스트가 구성될 수 있다. 즉, 상술한 움직임 정보 후보 리스트는 머지 후보 리스트 또는 MVP 후보 리스트를 나타낼 수 있고, 상기 움직임 정보 후보는 머지 후보 또는 MVP 후보를 나타낼 수 있다. 또한, 상기 공간적 후보는 공간적 머지 후보 또는 공간적 MVP 후보를 나타낼 수 있다. In addition, referring to FIG. 3, a number written in each of the neighboring blocks may indicate a motion information search order of the neighboring block. That is, motion information of the neighboring blocks may be derived as motion information candidates (eg, merge candidates) of the current block in the search order. As shown in FIG. 3, motion information of a plurality of neighboring blocks may be used to derive motion information of the current block. That is, more various motion information may be configured as motion information candidates for the current block based on the motion information of a plurality of neighboring blocks, thereby improving the accuracy of prediction. In addition, although the above-described embodiment describes the merge mode as an example, even when the AMVP mode is applied to the current block, the motion information candidate list may be configured based on the plurality of neighboring blocks shown in FIG. 3. That is, the above motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion information candidate may indicate a merge candidate or an MVP candidate. In addition, the spatial candidate may represent a spatial merge candidate or a spatial MVP candidate.
또한, 상술한 실시예와 다른 공간적 주변 블록들을 기반으로 현재 블록의 움직임 정보들이 도출하는 방안이 제안될 수 있다.In addition, a method of deriving motion information of the current block based on spatial neighboring blocks different from the above-described embodiment may be proposed.
도 4는 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들의 일 예를 나타낸다.4 shows an example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block.
도 4를 참조하면 다양한 움직임 정보를 움직임 정보 후보로 포함하는 움직임 정보 후보 리스트를 구성하기 위하여 참조될 수 있는 주변 블록의 위치가 정의될 수 있다. 도 4를 참조하면 현재 블록(400)을 중심으로 상기 현재 블록의 움직임 정보를 유도할 수 있는 주변 블록의 위치가 정의될 수 있다. 도 4를 참조하면 상기 현재 블록의 공간적 주변 블록들은 27개의 공간적 주변 블록들을 포함할 수 있는바, 기존에 사용되는 5개의 현재 블록과 인접한 공간적 주변 블록들뿐만 아니라 22개의 현재 블록과 인접하지 않은 공간적 주변 블록을 포함할 수 있다. Referring to FIG. 4, a position of a neighboring block that may be referred to may be defined in order to construct a motion information candidate list including various motion information as motion information candidates. Referring to FIG. 4, a position of a neighboring block capable of deriving motion information of the current block based on the current block 400 may be defined. Referring to FIG. 4, the spatial neighboring blocks of the current block may include 27 spatial neighboring blocks. In addition, the spatial neighboring blocks adjacent to the five current blocks used in the existing block as well as the 22 current blocks may not be spatially adjacent. It may include peripheral blocks.
예를 들어, 상기 현재 블록의 사이즈가 WxH 이고, 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 1번 주변 블록은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 2번 주변 블록은 (W-1, -1) 좌표의 샘플을 포함하는 블록이고, 3번 주변 블록은 (W, -1) 좌표의 샘플을 포함하는 블록이고, 4번 주변 블록은 (-1, H) 좌표의 샘플을 포함하는 블록이고, 5번 주변 블록은 (-1, -1) 좌표의 샘플을 포함하는 블록일 수 있고, 6번 주변 블록은 (-W-1, H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 7번 주변 블록은 (W-1, -H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 8번 주변 블록은 (W, -H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 9번 주변 블록은 (-W-1, H) 좌표의 샘플을 포함하는 블록일 수 있고, 10번 주변 블록은 (-1, -H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 11번 주변 블록은 (-W-1, -1) 좌표의 샘플을 포함하는 블록일 수 있고, 12번 주변 블록은 (-W-1, 2H) 좌표의 샘플을 포함하는 블록일 수 있고, 13번 주변 블록은 (2W, -H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 14번 주변 블록은 (-W-1, -H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 15번 주변 블록은 (-2W-1, H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 16번 주변 블록은 (W-1, -2H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 17번 주변 블록은 (W, -2H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 18번 주변 블록은 (-2W-1, H) 좌표의 샘플을 포함하는 블록일 수 있고, 19번 주변 블록은 (-1, -2H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 20번 주변 블록은 (-2W-1, -1) 좌표의 샘플을 포함하는 블록일 수 있고, 21번 주변 블록은 (2W, -2H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 22번 주변 블록은 (-2W-1, 2H) 좌표의 샘플을 포함하는 블록일 수 있고, 23번 주변 블록은 (-W-1, -2H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 24번 주변 블록은 (-2W-1, -H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 25번 주변 블록은 (3W, -2H-1) 좌표의 샘플을 포함하는 블록일 수 있고, 26번 주변 블록은 (-2W-1, 3H) 좌표의 샘플을 포함하는 블록일 수 있고, 27번 주변 블록은 (-2W-1, -2H-1) 좌표의 샘플을 포함하는 블록일 수 있다.For example, when the size of the current block is WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the neighboring block 1 is (-1, H-1 ) Is a block containing a sample of coordinates, and a neighboring block 2 is a block containing a sample of (W-1, -1) coordinates, and a neighboring block 3 is a block containing a sample of (W, -1) coordinates. The neighboring block 4 is a block containing a sample of (-1, H) coordinates, the neighboring block 5 may be a block containing a sample of (-1, -1) coordinates, and the neighboring block 6 is May be a block containing a sample of (-W-1, H-1) coordinates, and the neighboring block 7 may be a block containing a sample of (W-1, -H-1) coordinates, and around 8th The block may be a block containing a sample of (W, -H-1) coordinates, the neighboring block 9 may be a block containing a sample of (-W-1, H) coordinates, and the neighboring block 10 is The number of blocks containing samples of (-1, -H-1) coordinates Neighboring block 11 may be a block containing a sample of (-W-1, -1) coordinates, and a neighboring block 12 is a block containing a sample of (-W-1, 2H) coordinates, , Block 13 may be a block containing samples of (2W, -H-1) coordinates, and block 14 may be a block containing samples of (-W-1, -H-1) coordinates. And the neighboring block 15 may be a block containing a sample of (-2W-1, H-1) coordinates, and the peripheral block of 16 is a block containing a sample of (W-1, -2H-1) coordinates And the surrounding block 17 may be a block containing a sample of (W, -2H-1) coordinates, and the surrounding block 18 may be a block containing a sample of (-2W-1, H) coordinates. And the neighboring block 19 may be a block containing samples of (-1, -2H-1) coordinates, and the peripheral block of 20 may be a block containing samples of (-2W-1, -1) coordinates. And the neighboring block 21 may be a block including samples of (2W, -2H-1) coordinates, and 22 The neighboring block may be a block containing samples of (-2W-1, 2H) coordinates, the neighboring block 23 may be a block containing samples of (-W-1, -2H-1) coordinates, and 24 Block around may be a block containing a sample of coordinates (-2W-1, -H-1), block 25 is a block containing a sample of coordinates (3W, -2H-1), Peripheral block 26 may be a block containing samples of (-2W-1, 3H) coordinates, and block 27 may be a block containing samples of (-2W-1, -2H-1) coordinates. .
도 4를 참조하면, 상기 주변 블록들 각각에 쓰여진 숫자는 해당 주변 블록의 움직임 정보 탐색 순서를 나타낼 수 있다. 즉, 상기 탐색 순서로 상기 주변 블록들의 움직임 정보가 상기 현재 블록의 움직임 정보 후보(예를 들어, 머지 후보)로 도출될 수 있다. 인코딩 장치/디코딩 장치는 상기 도 4에 도시된 탐색 순서로 상기 주변 블록들의 움직임 정보들을 탐색할 수 있고, 상기 현재 블록에 대한 움직임 정보 후보 리스트에 추가하여 움직임 정보 또는 MVP(Motion vector predictor)로 사용할 수 있다. 또한, 본 실시예에서 제안하는 바와 같이 상기 움직임 정보 후보 리스트가 구성되는 경우에도 기존 움직임 정보 후보 리스트의 구성 과정과 마찬가지로 프루닝(pruning) 체크 과정이 수행될 수 있다. 여기서, 상기 프루닝 체크 과정은 움직임 정보의 중복 여부를 확인하는 과정을 나타낼 수 있다. 즉, 인코딩 장치/디코딩 장치는 주변 블록의 움직임 정보가 앞선 순서로 도출된 움직임 정보 후보와 중복되는지 판단할 수 있고, 상기 움직임 정보가 중복되는 경우, 상기 움직임 정보는 상기 현재 블록에 대한 움직임 정보 후보로 도출하지 않을 수 있다. 상술한 실시예는 머지 모드를 예시로 서술하고 있으나, 상기 현재 블록에 AMVP 모드가 적용되는 경우에도 도 4에 도시된 복수의 주변 블록들을 기반으로 움직임 정보 후보 리스트가 구성될 수 있다. 즉, 상술한 움직임 정보 후보 리스트는 머지 후보 리스트 또는 MVP 후보 리스트를 나타낼 수 있고, 상기 움직임 정보 후보는 머지 후보 또는 MVP 후보를 나타낼 수 있다. 또한, 상기 공간적 후보는 공간적 머지 후보 또는 공간적 MVP 후보를 나타낼 수 있다. Referring to FIG. 4, a number written in each of the neighboring blocks may indicate a search order of motion information of the neighboring block. That is, motion information of the neighboring blocks may be derived as motion information candidates (eg, merge candidates) of the current block in the search order. The encoding device / decoding device may search the motion information of the neighboring blocks in the search order shown in FIG. 4, and use it as motion information or a motion vector predictor (MVP) in addition to the motion information candidate list for the current block. Can be. Also, as proposed in this embodiment, even when the motion information candidate list is configured, a pruning check process may be performed in the same manner as the configuration of the existing motion information candidate list. Here, the pruning check process may represent a process of checking whether the motion information is duplicated. That is, the encoding device / decoding device may determine whether the motion information of the neighboring block overlaps with the motion information candidate derived in the above order. When the motion information is overlapped, the motion information is a motion information candidate for the current block. May not be derived. Although the above-described embodiment describes the merge mode as an example, even when the AMVP mode is applied to the current block, the motion information candidate list may be configured based on the plurality of neighboring blocks shown in FIG. 4. That is, the above motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion information candidate may indicate a merge candidate or an MVP candidate. In addition, the spatial candidate may represent a spatial merge candidate or a spatial MVP candidate.
또한, 상술한 실시예와 다른 공간적 주변 블록들을 기반으로 현재 블록의 움직임 정보들이 도출하는 방안이 제안될 수 있다.In addition, a method of deriving motion information of the current block based on spatial neighboring blocks different from the above-described embodiment may be proposed.
도 5는 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들의 다른 일 예를 나타낸다. 도 5를 참조하면 상기 현재 블록의 공간적 주변 블록들은 기존 움직임 정보 후보를 위하여 사용되는 좌측 주변 블록(A1), 상측 주변 블록(B1), 우상측 코너 주변 블록(B0), 좌하측 코너 주변 블록(A0), 좌상측 코너 주변 블록(B2)을 포함할 수 있다. 또한, 상기 현재 블록의 공간적 주변 블록들은 상기 현재 블록에 인접한 주변 블록을 기준으로 도출되는 상기 현재 블록에 인접하지 않은 주변 블록을 포함할 수 있다. 예를 들어, 움직임 정보를 페치(fetch)할 기준이 되는 좌측 주변 블록 및 상측 주변 블록이 정의될 수 있다. 도 5를 참조하면 상기 기준이 좌측 주변 블록 및 상측 주변 블록은 상기 좌측 주변 블록(A1) 및 상측 주변 블록(B1)으로 정의될 수 있다. 이후, 인코딩 장치/디코딩 장치는 특정 거리(distance)에 도달할 때까지 상기 좌측 주변 블록(A1)에서는 x축 방향(horizontal)으로, 상기 상측 주변 블록에서는 y축 방향 (vertical)으로 이동하면서, 특정 거리(distance)에 도달할 때까지 움직임 정보 저장 단위(예를 들어, 4x4 사이즈의 블록)로 트레이싱(tracing)을 수행할 수 있다. 따라서, 상기 공간적 주변 블록들은 상기 좌측 주변 블록(A1)의 좌측에 위치하는 주변 블록 H1 내지 주변 블록 HN 및 상기 상측 주변 블록(B1)의 상측에 위치하는 주변 블록 V1 내지 주변 블록 VN 을 포함할 수 있다. 상기 좌측 주변 블록(A1)에서 상기 주변 블록 HN 사이의 거리는 상기 특정 거리일 수 있고, 상기 상측 주변 블록(B1)에서 상기 주변 블록 VN 사이의 거리는 상기 특정 거리일 수 있다. 한편, 상기 특정 거리는 기설정될 수 있다. 인코딩 장치/디코딩 장치는 상기 도 5에 도시된 상기 주변 블록들의 움직임 정보들을 탐색할 수 있고, 상기 현재 블록에 대한 움직임 정보 후보 리스트에 추가하여 움직임 정보 또는 MVP(Motion vector predictor)로 사용할 수 있다. 복수의 주변 블록들의 움직임 정보를 기반으로 더욱 다양한 움직임 정보가 상기 현재 블록에 대한 움직임 정보 후보로 구성될 수 있고, 이를 통하여 예측의 정확도가 향상될 수 있다. 상술한 실시예는 머지 모드를 예시로 서술하고 있으나, 상기 현재 블록에 AMVP 모드가 적용되는 경우에도 도 5에 도시된 복수의 주변 블록들을 기반으로 움직임 정보 후보 리스트가 구성될 수 있다. 즉, 상술한 움직임 정보 후보 리스트는 머지 후보 리스트 또는 MVP 후보 리스트를 나타낼 수 있고, 상기 움직임 정보 후보는 머지 후보 또는 MVP 후보를 나타낼 수 있다. 또한, 상기 공간적 후보는 공간적 머지 후보 또는 공간적 MVP 후보를 나타낼 수 있다.5 shows another example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block. Referring to FIG. 5, the spatial neighboring blocks of the current block are left neighboring blocks A 1 , upper neighboring blocks B 1 , right upper corner neighboring blocks B 0 , and lower left corners used for existing motion information candidates. The peripheral block A 0 and the upper left corner peripheral block B 2 may be included. In addition, the spatial neighboring blocks of the current block may include neighboring blocks that are not adjacent to the current block derived based on the neighboring block adjacent to the current block. For example, a left neighboring block and an upper neighboring block, which are criteria for fetching motion information, may be defined. Referring to FIG. 5, the left peripheral block and the upper peripheral block may be defined as the left peripheral block A 1 and the upper peripheral block B 1 . Then, the encoding device / decoding device moves in the x-axis direction (horizontal) in the left peripheral block A 1 and in the y-axis direction (vertical) in the upper peripheral block until a specific distance is reached. Tracing may be performed in a motion information storage unit (eg, a block of 4 × 4 size) until a specific distance is reached. Accordingly, the spatial peripheral blocks are peripheral blocks H 1 to peripheral blocks H N located on the left side of the left peripheral block A 1 and peripheral blocks V 1 to peripheral blocks located on the upper side of the upper peripheral block B 1 . It may include V N. The distance between the peripheral block H N in the left peripheral block A 1 may be the specific distance, and the distance between the peripheral block V N in the upper peripheral block B 1 may be the specific distance. Meanwhile, the specific distance may be preset. The encoding device / decoding device may search motion information of the neighboring blocks shown in FIG. 5, and may use it as motion information or a motion vector predictor (MVP) in addition to the motion information candidate list for the current block. More various motion information may be configured as motion information candidates for the current block based on motion information of a plurality of neighboring blocks, thereby improving accuracy of prediction. Although the above-described embodiment describes the merge mode as an example, even when the AMVP mode is applied to the current block, the motion information candidate list may be configured based on the plurality of neighboring blocks shown in FIG. 5. That is, the above motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion information candidate may indicate a merge candidate or an MVP candidate. In addition, the spatial candidate may represent a spatial merge candidate or a spatial MVP candidate.
또한, 상술한 실시예와 다른 공간적 주변 블록들을 기반으로 현재 블록의 움직임 정보들이 도출하는 방안이 제안될 수 있다.In addition, a method of deriving motion information of the current block based on spatial neighboring blocks different from the above-described embodiment may be proposed.
도 6은 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들의 다른 일 예를 나타낸다. 도 6을 참조하면 상기 현재 블록의 공간적 주변 블록들은 기존 움직임 정보 후보를 위하여 사용되는 좌측 주변 블록(A), 상측 주변 블록(B), 우상측 코너 주변 블록(C), 좌하측 코너 주변 블록(D), 좌상측 코너 주변 블록(E)을 포함할 수 있다. 또한, 상기 공간적 주변 블록들은 상기 현재 블록에 인접한 주변 블록들을 기반으로 도출되는 상기 현재 블록에 인접하지 않은 주변 블록들을 포함할 수 있다. 상기 현재 블록에 인접하지 않은 주변 블록들은 상기 좌측 주변 블록(A)의 좌측에 위치하는 주변 블록들, 상기 상측 주변 블록(B)의 상측에 위치하는 주변 블록들, 우상측 코너 주변 블록(C)의 상측에 위치하는 주변 블록들, 상기 좌하측 코너 주변 블록(D)의 좌측에 위치하는 주변 블록들, 및 상기 좌상측 코너 주변 블록(E)의 좌상측 대각 방향에 위치하는 주변 블록들을 포함할 수 있다. 6 shows another example of spatial neighboring blocks that can be used to derive a spatial candidate for the current block. Referring to FIG. 6, the spatial neighboring blocks of the current block include a left neighboring block A, an upper neighboring block B, a right upper corner neighboring block C, and a lower left corner neighboring block used for a candidate for existing motion information. D), the upper left corner peripheral block E may be included. In addition, the spatial neighboring blocks may include neighboring blocks that are not adjacent to the current block derived based on neighboring blocks adjacent to the current block. Peripheral blocks that are not adjacent to the current block include peripheral blocks located on the left side of the left peripheral block A, peripheral blocks located on the upper side of the upper peripheral block B, and right upper corner peripheral block C. Peripheral blocks positioned at an upper side of the peripheral block, peripheral blocks positioned at a left side of the lower left corner peripheral block D, and peripheral blocks positioned at an upper left diagonal direction of the upper left corner peripheral block E; Can be.
예를 들어, 인코딩 장치/디코딩 장치는 32x32 사이즈 단위로 상기 우상측 코너 주변 블록(C) 및 상측 주변 블록(B)을 기준으로 하여 특정 오프셋(offset)씩 상측 방향으로 이동하면서 B(i, j) 위치의 주변 블록과 C(i, j) 위치의 주변 블록의 움직임 정보를 수집할 수 있고, 상기 좌상측 코너 주변 블록(E)을 기준으로 특정 오프셋씩 대각선 방향(좌상 대각선 방향)으로 이동하면서 E(i, j) 위치의 주변 블록의 움직임 정보를 수집할 수 있고, 상기 좌측 주변 블록(A) 및 좌하측 코너 주변 블록(D) 블록을 기준으로 좌측 방향으로 특정 오프셋씩 이동하면서 A(i, j) 위치의 주변 블록 및 D(i, j) 위치의 주변 블록의 움직임 정보를 수집할 수 있고, 수집된 움직임 정보를 상기 현재 블록의 움직임 정보 후보로 상기 움직임 정보 후보 리스트에 추가할 수 있다. 여기서, 상기 특정 오프셋은 16으로 정의될 수 있고, 또는 제한된 범위 이내에서 자유롭게 정의될 수 있다. 또한, 상기 현재 블록에 인접하지 않은 주변 블록들은 탐색 범위 내에서 도출될 수 있다. 상기 탐색 범위는 기정의될 수 있다. 도 6을 참조하면 상기 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 탐색 범위는 (-96, -96) 좌표까지로 설정될 수 있다.For example, the encoding device / decoding device moves in an upward direction by a specific offset with respect to the upper right corner peripheral block C and the upper peripheral block B in units of 32x32 size, while B (i, j Motion information of the neighboring block at the position C) and the neighboring block at the position C (i, j) can be collected and moved in a diagonal direction (upper left diagonal direction) by a specific offset with respect to the upper left corner peripheral block (E). The motion information of the neighboring block at the position E (i, j) may be collected, and A (i is moved by a specific offset in the left direction with respect to the left peripheral block A and the lower left corner peripheral block D block. j) collect motion information of the neighboring block at the position and the neighboring block at the position D (i, j), and add the collected motion information as the motion information candidate of the current block to the motion information candidate list. . Here, the specific offset may be defined as 16, or may be freely defined within a limited range. Also, neighboring blocks not adjacent to the current block may be derived within a search range. The search range may be predefined. Referring to FIG. 6, when the x component of the top-left sample position of the current block is 0 and the y component is 0, the search range may be set to (-96, -96) coordinates.
예를 들어, 상기 현재 블록의 사이즈가 WxH 이고, 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 좌측 주변 블록(A)은 (-1, H-1) 좌표의 샘플을 포함하는 블록이고, 상기 상측 주변 블록(B)은 (W-1, -1) 좌표의 샘플을 포함하는 블록이고, 상기 우상측 코너 주변 블록(C)은 (W, -1) 좌표의 샘플을 포함하는 블록이고, 상기 좌하측 코너 주변 블록(D)은 (-1, H) 좌표의 샘플을 포함하는 블록이고, 상기 좌상측 코너 주변 블록(E)은 (-1, -1) 좌표의 샘플을 포함하는 블록일 수 있다. For example, when the size of the current block is WxH, and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left peripheral block A is (-1, H -1) a block containing a sample of coordinates, the upper peripheral block (B) is a block containing a sample of (W-1, -1) coordinates, and the right upper corner peripheral block (C) is (W, -1) a block containing a sample of coordinates, the lower left corner peripheral block (D) is a block containing a sample of (-1, H) coordinates, and the upper left corner peripheral block (E) is (-1) , -1) may be a block including a sample of coordinates.
또한, 상기 좌측 주변 블록(A)의 좌측에 위치하는 주변 블록들은 주변 블록 A1 내지 주변 블록 AN 을 포함할 수 있고, 상기 특정 오프셋이 n 이고, 상기 현재 블록의 사이즈가 WxH 이고, 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 주변 블록 A1 은 (-1-n, H-1) 좌표의 샘플을 포함하는 블록, 주변 블록 A2 는 (-1-2n, H-1) 좌표의 샘플을 포함하는 블록, ... 상기 주변 블록 AN 은 (-1-N*n, H-1) 좌표의 샘플을 포함하는 블록일 수 있다. Also, neighboring blocks positioned to the left of the left neighboring block A may include neighboring blocks A 1 to neighboring blocks A N , the specific offset is n, the size of the current block is WxH, and the current block When the x component of the top-left sample position of 0 is 0 and the y component is 0, the neighboring block A 1 is a block containing a sample of (-1-n, H-1) coordinates, a neighboring block A 2 Is a block containing a sample of (-1-2n, H-1) coordinates, ... The peripheral block A N may be a block containing a sample of (-1-N * n, H-1) coordinates .
또한, 상기 상측 주변 블록(B)의 상측에 위치하는 주변 블록들은 주변 블록 B1 내지 주변 블록 BN 을 포함할 수 있고, 상기 특정 오프셋이 n 이고, 상기 현재 블록의 사이즈가 WxH 이고, 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 주변 블록 B1 은 (W-1, -1-n) 좌표의 샘플을 포함하는 블록, 주변 블록 B2 는 (W-1, -1-2n) 좌표의 샘플을 포함하는 블록, ... 상기 주변 블록 BN 은 (W-1, -1-N*n) 좌표의 샘플을 포함하는 블록일 수 있다. In addition, the neighboring blocks located above the upper neighboring block B may include neighboring blocks B 1 to neighboring blocks B N , the specific offset is n, the size of the current block is WxH, and the current block When the x component of the top-left sample position of is 0 and the y component is 0, the neighboring block B 1 is a block containing a sample of (W-1, -1-n) coordinates, a neighboring block B 2 May be a block including a sample of (W-1, -1-2n) coordinates, and the neighboring block B N may be a block including a sample of (W-1, -1-N * n) coordinates. .
또한, 상기 우상측 코너 주변 블록(C)의 상측에 위치하는 주변 블록들은 주변 블록 C1 내지 주변 블록 CN 을 포함할 수 있고, 상기 특정 오프셋이 n 이고, 상기 현재 블록의 사이즈가 WxH 이고, 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 주변 블록 C1 은 (W, -1-n) 좌표의 샘플을 포함하는 블록, 주변 블록 C2 는 (W, -1-2n) 좌표의 샘플을 포함하는 블록, ... 상기 주변 블록 CN 은 (W, -1-N*n) 좌표의 샘플을 포함하는 블록일 수 있다. In addition, the neighboring blocks located above the upper right corner peripheral block C may include neighboring blocks C 1 to neighboring blocks C N , the specific offset is n, and the size of the current block is WxH, When the x component of the top-left sample position of the current block is 0 and the y component is 0, the neighboring block C 1 is a block containing a sample of (W, -1-n) coordinates, a neighboring block C 2 May be a block including a sample of (W, -1-2n) coordinates, and the neighboring block C N may be a block including a sample of (W, -1-N * n) coordinates.
또한, 상기 좌하측 코너 주변 블록(D)의 좌측에 위치하는 주변 블록들은 주변 블록 D1 내지 주변 블록 DN 을 포함할 수 있고, 상기 특정 오프셋이 n 이고, 상기 현재 블록의 사이즈가 WxH 이고, 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 주변 블록 D1 은 (-1-n, H) 좌표의 샘플을 포함하는 블록, 주변 블록 D2 는 (-1-2n, H) 좌표의 샘플을 포함하는 블록, ... 상기 주변 블록 DN 은 (-1-N*n, H) 좌표의 샘플을 포함하는 블록일 수 있다. In addition, neighboring blocks positioned to the left of the lower left corner peripheral block D may include neighboring blocks D 1 to neighboring blocks D N , the specific offset is n, and the size of the current block is WxH, If the x component of the top-left sample position of the current block is 0 and the y component is 0, the neighboring block D 1 is a block containing a sample of (-1-n, H) coordinates, a neighboring block D 2 Is a block containing a sample of (-1-2n, H) coordinates, ... The neighboring block D N may be a block containing a sample of (-1-N * n, H) coordinates.
또한, 상기 좌상측 코너 주변 블록(E)의 좌상측 대상 방향에 위치하는 주변 블록들은 주변 블록 E1 내지 주변 블록 EN 을 포함할 수 있고, 상기 특정 오프셋이 n 이고, 상기 현재 블록의 사이즈가 WxH 이고, 현재 블록의 좌상단(top-left) 샘플 포지션의 x성분이 0 및 y성분이 0인 경우, 상기 주변 블록 E1 은 (-1-n, -1-n) 좌표의 샘플을 포함하는 블록, 주변 블록 E2 는 (-1-2n, -1-2n) 좌표의 샘플을 포함하는 블록, ... 상기 주변 블록 EN 은 (-1-N*n, -1-N*n) 좌표의 샘플을 포함하는 블록일 수 있다. In addition, the neighboring blocks located in the upper left target direction of the upper left corner peripheral block E may include peripheral blocks E 1 to neighboring blocks E N , the specific offset is n, and the size of the current block is If WxH and the x component of the top-left sample position of the current block is 0 and the y component is 0, the neighboring block E 1 includes samples of (-1-n, -1-n) coordinates. Block, neighboring block E 2 is a block containing samples of (-1-2n, -1-2n) coordinates, ... said neighboring block E N is (-1-N * n, -1-N * n) It may be a block containing a sample of coordinates.
인코딩 장치/디코딩 장치는 상기 도 6에 도시된 상기 주변 블록들의 움직임 정보들을 탐색할 수 있고, 상기 현재 블록에 대한 움직임 정보 후보 리스트에 추가하여 움직임 정보 또는 MVP(Motion vector predictor)로 사용할 수 있다. 복수의 주변 블록들의 움직임 정보를 기반으로 더욱 다양한 움직임 정보가 상기 현재 블록에 대한 움직임 정보 후보로 구성될 수 있고, 이를 통하여 예측의 정확도가 향상될 수 있다. 상술한 실시예는 머지 모드를 예시로 서술하고 있으나, 상기 현재 블록에 AMVP 모드가 적용되는 경우에도 도 6에 도시된 복수의 주변 블록들을 기반으로 움직임 정보 후보 리스트가 구성될 수 있다. 즉, 상술한 움직임 정보 후보 리스트는 머지 후보 리스트 또는 MVP 후보 리스트를 나타낼 수 있고, 상기 움직임 정보 후보는 머지 후보 또는 MVP 후보를 나타낼 수 있다. 또한, 상기 공간적 후보는 공간적 머지 후보 또는 공간적 MVP 후보를 나타낼 수 있다.The encoding device / decoding device may search for motion information of the neighboring blocks shown in FIG. 6, and may use the motion information or a motion vector predictor (MVP) in addition to the motion information candidate list for the current block. More various motion information may be configured as motion information candidates for the current block based on the motion information of a plurality of neighboring blocks, thereby improving accuracy of prediction. Although the above-described embodiment describes the merge mode as an example, even when the AMVP mode is applied to the current block, the motion information candidate list may be configured based on the plurality of neighboring blocks shown in FIG. 6. That is, the above motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion information candidate may indicate a merge candidate or an MVP candidate. In addition, the spatial candidate may represent a spatial merge candidate or a spatial MVP candidate.
한편, 상술한 실시예들과 같이 현재 블록에 대한 움직임 정보를 도출하기 위하여 복수의 주변 블록들이 사용될 수 있다. 하지만, 다수의 주변 블록들을 기반으로 상기 현재 블록의 움직임 정보를 도출하는 경우, 디코딩 과정을 수행하기 위하여 필요한 메모리 요구량(즉, 라인 버퍼(line buffer)의 증가) 및 디코딩 과정의 계산 복잡도가 증가하고, 다수의 후보들로부터 선택된 후보를 가리키기 위한 정보에 할당되는 비트량이 증가할 수 있는바, 상기 현재 블록에 적절한 개수의 주변 블록들을 선택하고, 선택된 주변 블록들을 기반으로 움직임 정보 후보 리스트를 도출하는 것이 보다 코딩 효율을 향상시킬 수 있다. Meanwhile, as in the above-described embodiments, a plurality of neighboring blocks may be used to derive motion information about the current block. However, when deriving the motion information of the current block based on a plurality of neighboring blocks, the amount of memory required for performing the decoding process (ie, an increase in the line buffer) and the computational complexity of the decoding process are increased. Since the amount of bits allocated to information for indicating a candidate selected from a plurality of candidates may increase, selecting an appropriate number of neighboring blocks for the current block and deriving a motion information candidate list based on the selected neighboring blocks Coding efficiency can be improved more.
이에, 본 발명은 복수의 주변 블록들 중 현재 블록의 움직임 정보 후보 리스트를 도출하기 위하여 사용되는 주변 블록을 선택하는 방안을 제안한다. 본 발명은 후술하는 내용과 같이 주변 블록을 선택하는 조건에 대한 실시예들을 제안하는바, 후술된 실시예들에 개시된 조건들 중 하나 또는 복수의 조건들의 조합을 만족하는 주변 블록이 상기 현재 블록의 움직임 정보 후보 리스트를 도출하기 위하여 사용될 수 있다. Accordingly, the present invention proposes a method of selecting a neighboring block used to derive a motion information candidate list of the current block among a plurality of neighboring blocks. The present invention proposes embodiments of a condition for selecting a neighboring block as described below, whereby a neighboring block that satisfies one or a combination of a plurality of conditions disclosed in the embodiments described below is included in the current block. It can be used to derive a motion information candidate list.
일 예로, 상기 주변 블록들 중 상기 현재 블록에 인접한 주변 블록 또는 상기 현재 블록의 경계에서 1 샘플 이내에 위치하는 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 이러한 방법으로 디코딩 과정에 필요한 라인 버퍼가 절약될 수 있다.For example, a neighboring block adjacent to the current block or a neighboring block located within 1 sample from the boundary of the current block among the neighboring blocks may be selected, and the motion of the current block is based on the motion information of the selected neighboring block. An information candidate may be derived to construct a motion information candidate list for the current block. In this way, the line buffer required for the decoding process can be saved.
본 발명의 설명에서 주변 블록의 도출은 주변 블록의 선택이라 지칭할 수도 있으며, 도출과 선택은 혼용되어 사용될 수 있다. 또한, 주변 블록은 현재 블록에 인접한 인접 블록 및 현재 블록에 인접하지 않은 비인접 블록을 포함할 수 있으며, 블록은 인접 블록 또는 비인접 블록이라 지칭하지 않는 경우, 모두를 포함할 수 있다.In the description of the present invention, derivation of neighboring blocks may be referred to as selection of neighboring blocks, and derivation and selection may be used interchangeably. In addition, the neighboring block may include a neighboring block adjacent to the current block and a non-adjacent block not adjacent to the current block, and the block may include all if not called a neighboring block or a non-adjacent block.
여기서, 상술한 주변 블록들의 위치는 래스터 스캔 순서(raster-scan order) 또는 이와 유사한 순서를 이용하는 경우에 기반의 위치일 수 있다. 따라서, 다른 스캔 순서를 이용하는 경우에는 주변 블록들의 위치는 달라질 수 있다. Here, the positions of the above-described neighboring blocks may be based on a case using a raster-scan order or a similar order. Therefore, when using a different scan order, the positions of the neighboring blocks may vary.
도 7은 다른 스캔 순서에 따라 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 공간적 주변 블록들의 일 예를 나타낸다.7 illustrates an example of spatial neighboring blocks that may be used to derive a spatial candidate for the current block according to another scan order.
예를 들어, 스캔 순서(scan order)는 우하측에서 좌상측 방향으로 설정될 수도 있다. 또는 스캔 순서는 (우->좌, 하->상), (하->상, 우->좌), (우->좌->우상 순서의 지그재그) 및 (하->상->좌하 순서의 지그재그) 등일 수 있다. 즉, (우하->좌하->우상->좌상), (우하->우상->좌하->좌상), (우하->좌하->좌상->우상) 및 (우하->우상->좌상->좌하) 등일 수 있으나, 이에 한정되는 것은 아니다.For example, the scan order may be set from the lower right side to the upper left direction. Or scan order is (Right-> Left-Down-Up), (Down-> Up, Right-> Left), (Right-> Left-> Zig-Zag) and (Down-> Up-> Left) Zigzag). I.e. (right-> lower-> right-> left), (right-> right-> lower-> left), (right-> lower-> left-> right) and (right-> right-> top-left- Lower left), etc., but is not limited thereto.
도 7을 참조하면, 현재 블록(700)의 움직임 정보 예측을 위한 움직임 정보 후보 리스트는 상기 현재 블록의 공간적 주변 블록을 기반으로 구성될 수 있으며, 공간적 주변 블록은 상기 현재 블록의 우하측 영역, 하측 영역, 좌하측 영역, 우측 영역 및 우상측 영역 중 적어도 하나의 영역에 포함될 수 있다. 여기서, 우하측 영역은 현재 블록의 우하측에 위치한 적어도 하나의 블록을 포함할 수 있고, 하측 영역은 현재 블록의 하측에 위치한 적어도 하나의 블록을 포함할 수 있고, 좌하측 영역은 현재 블록의 좌하측에 위치한 적어도 하나의 블록을 포함할 수 있고, 우측 영역은 현재 블록의 우측에 위치한 적어도 하나의 블록을 포함할 수 있고, 우상측 영역은 현재 블록의 우상측에 위치한 적어도 하나의 블록을 포함할 수 있다. 또한, 각 영역 내의 블록들은 상기 현재 블록에 인접할 수 있고, 인접하지 않을 수도 있다. 즉, 상기 현재 블록의 경계로부터 일정한 거리 내에 위치하는 주변 블록일 수 있다. Referring to FIG. 7, the motion information candidate list for predicting motion information of the current block 700 may be configured based on the spatial neighboring blocks of the current block, and the spatial neighboring blocks are the lower right region and the lower side of the current block. It may be included in at least one of the region, the lower left region, the right region, and the upper right region. Here, the lower right region may include at least one block located at the lower right side of the current block, the lower region may include at least one block located at the lower side of the current block, and the lower left region may be at the lower left of the current block. It may include at least one block located on the side, the right region may include at least one block located on the right side of the current block, the right upper region may include at least one block located on the right side of the current block Can be. Also, blocks in each region may or may not be adjacent to the current block. That is, it may be a neighboring block located within a predetermined distance from the boundary of the current block.
도 8은 다른 스캔 순서에 따라 상기 현재 블록에 대한 공간적 후보를 도출하기 위하여 사용될 수 있는 상기 현재 블록의 경계에서 1 샘플 이내에 위치하는 공간적 주변 블록들의 일 예를 나타낸다.8 illustrates an example of spatial neighboring blocks located within one sample at the boundary of the current block that may be used to derive a spatial candidate for the current block according to another scan order.
예를 들어, 현재 블록(800)의 움직임 정보 예측을 위한 움직임 정보 후보 리스트는 상기 현재 블록의 공간적 주변 블록을 기반으로 구성될 수 있으며, 공간적 주변 블록은 상기 현재 블록의 경계에서 1 샘플 이내에 위치하는 블록을 포함할 수도 있다. 여기서, 스캔 순서가 도 7과 같은 경우, 상기 현재 블록의 경계에서 1 샘플 이내에 위치하는 블록들은 도 8과 같이 나타날 수 있으며, 이러한 블록들의 정보를 기반으로 움직임 정보 후보 리스트를 구성할 수 있다. 또는 움직임 정보 후보 리스트를 구성하기 위한 현재 블록의 공간적 주변 블록은 이러한 블록들을 포함할 수 있다.For example, the motion information candidate list for motion information prediction of the current block 800 may be configured based on the spatial neighboring blocks of the current block, and the spatial neighboring blocks are located within 1 sample from the boundary of the current block. It may also include a block. In this case, when the scan order is as shown in FIG. 7, blocks located within one sample from the boundary of the current block may appear as shown in FIG. 8, and a motion information candidate list may be configured based on the information of these blocks. Alternatively, the spatial neighboring blocks of the current block for constructing the motion information candidate list may include these blocks.
일 실시예에 따라 도 3 내지 도 6과 함께 설명한 복수의 주변 블록들 중 현재 블록의 움직임 정보 후보 리스트를 도출하기 위하여 사용되는 주변 블록을 선택하는 방안은 도 7에서 설명한 다른 스캔 순서가 이용되는 경우, 적절히 변형되어 시용될 수도 있다. 즉, 도 3 내지 도 6에서 설명한 주변 블록들은 현재 블록을 기준으로 좌하측, 좌측, 좌상측, 상측 및 우상측에 위치할 수 있으나, 다른 스캔 순서가 이용되는 경우, 주변 블록들은 현재 블록을 기준으로 우상측, 우측, 우하측, 하측 및 좌하측에 위치할 수 있다. 다시 말해, 현재 블록으로부터의 거리는 동일하나 현재 블록으로부터 방향은 반대일 수 있다.According to an embodiment, a method of selecting a neighboring block used to derive a motion information candidate list of the current block among the plurality of neighboring blocks described with reference to FIGS. 3 to 6 is used when another scan order described with reference to FIG. 7 is used. It may be modified and applied as appropriate. That is, the neighboring blocks described with reference to FIGS. 3 to 6 may be located on the lower left side, the left side, the upper left side, the upper side and the upper right side with respect to the current block. However, when another scan order is used, the neighboring blocks refer to the current block. It can be located on the upper right side, right side, lower right side, lower side and lower left side. In other words, the distance from the current block may be the same but the direction from the current block may be reversed.
도 9는 상기 현재 블록에 대한 주변 블록의 가용 범위의 일 예를 나타낸다. 여기서, 주변 블록은 주변 참조 블록이라 지칭할 수도 있다.9 shows an example of an available range of neighboring blocks for the current block. Here, the peripheral block may be referred to as a peripheral reference block.
일 예로, 상기 주변 블록들 중 상기 현재 블록(900)과 동일한 상위 블록에 포함된 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 상기 현재 블록이 포함된 상위 블록은 현재 상위 블록이라 나타낼 수 있다. For example, a neighboring block included in the same upper block as the current block 900 among the neighboring blocks may be selected, and the motion information candidate of the current block is derived based on the motion information of the selected neighboring block. A motion information candidate list for the current block may be constructed. An upper block including the current block may be referred to as a current upper block.
예를 들어, 상위 블록은 도 9와 같이 최대 코딩 유닛(max coding unit) 또는 가장 큰 코딩 유닛(largest coding unit)이라 나타낼 수 있다. 예를 들어, 상위 블록이 CTU(coding tree unit)이라 나타낼 수도 있고, 이 경우, 상기 현재 블록이 포함된 CTU는 현재 CTU라고 나타낼 수도 있다.For example, the upper block may be referred to as a maximum coding unit or a largest coding unit as shown in FIG. 9. For example, an upper block may be referred to as a coding tree unit (CTU), and in this case, a CTU including the current block may be represented as a current CTU.
즉, 상기 주변 블록들 중 상기 현재 상위 블록에 포함된 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다.That is, a neighboring block included in the current higher block among the neighboring blocks may be selected, and a motion information candidate for the current block is derived by deriving a motion information candidate of the current block based on the motion information of the selected neighboring block. Lists can be constructed.
도 9를 참조하면, 움직임 정보 후보를 위하여 사용될 수 있는 주변 블록은 현재 블록(900)의 좌측 주변 블록(A1), 상측 주변 블록(B1), 우상측 코너 주변 블록(B0), 좌하측 코너 주변 블록(A0), 좌상측 코너 주변 블록(B2)을 포함할 수 있으며, 좌측 주변 블록, 상측 주변 블록, 우상측 코너 주변 블록, 좌하측 코너 주변 블록 및 좌상측 코너 주변 블록은 현재 블록과 동일한 상위 블록에 포함될 수 있다. Referring to FIG. 9, neighboring blocks that may be used for motion information candidates include a left neighboring block A 1 , an upper neighboring block B 1 , a right upper corner neighboring block B 0 , and a lower left corner of the current block 900. It may include a side corner peripheral block (A 0 ), the upper left corner peripheral block (B 2 ), the left peripheral block, the upper peripheral block, the upper right corner peripheral block, the lower left corner peripheral block and the upper left corner peripheral block It may be included in the same upper block as the current block.
또한, 일 예로, 상기 주변 블록들 중 상기 현재 상위 블록에 포함된 주변 블록, 상기 현재 상위 블록의 좌측 주변 상위 블록에 포함된 주변 블록, 상기 현재 상위 블록의 좌상측 주변 상위 블록에 포함된 주변 블록 및/또는 상기 현재 상위 블록의 상측 주변 상위 블록에 포함된 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다.Also, for example, a neighboring block included in the current upper block among the neighboring blocks, a neighboring block included in a left upper neighboring block of the current upper block, and a neighboring block included in a left upper neighboring upper block of the current upper block And / or a neighboring block included in an upper neighboring upper block of the current upper block may be selected, and the motion information for the current block is derived by deriving a motion information candidate of the current block based on the motion information of the selected neighboring block. The candidate list can be constructed.
도 10은 상기 현재 블록에 대한 움직임 정보 후보 리스트를 구성하기 위하여 선택될 수 있는 주변 블록을 포함하는 특정 영역의 일 예를 나타낸다.10 illustrates an example of a specific area including a neighboring block that may be selected to form a motion information candidate list for the current block.
일 예로, 상기 주변 블록들 중 특정 영역에 포함된 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 여기서, 상기 특정 영역은 상기 현재 블록의 좌상단 샘플 포지션을 기준으로 96x96 사이즈의 영역 또는 좌상단 샘플 포지션으로부터 96 샘플 거리 내의 영역을 나타낼 수 있다. 다시 말해, 상기 특정 영역은 상기 현재 블록의 좌상단 샘플 포지션을 중심으로 하는 96x96 사이즈의 영역 또는 상기 현재 블록의 좌상단 샘플 포지션으로부터 96 샘플 거리 내의 영역을 나타낼 수 있다. 다만, 특정 영역은 다르게 설정될 수도 있으므로, 상술한 사이즈의 영역 및 샘플 거리 내의 영역에 한정되지 않는다.For example, a neighboring block included in a specific region among the neighboring blocks may be selected, and a motion information candidate list for the current block is derived by deriving a motion information candidate of the current block based on the motion information of the selected neighboring block. Can be configured. Here, the specific region may indicate an area of 96x96 size or an area within a 96 sample distance from the upper left sample position based on the upper left sample position of the current block. In other words, the specific region may indicate a 96 × 96 size region centering on the upper left sample position of the current block or an area within a 96 sample distance from the upper left sample position of the current block. However, since the specific area may be set differently, the specific area is not limited to the area of the size and the area within the sample distance.
예를 들어, 도 10을 참조하면, 특정 영역은 Max Range(최대 범위) 0, Max Range 1 및 Max Range 2와 같이 설정될 수 있으며, 이러한 특정 영역은 인코더/디코더에서 기결정된 값으로 설정될 수 있다. 또는 인코더에서 Rate-Distortion 비교를 통해 결정하고, 결정한 값을 디코더로 전송할 수 있다. 디코더는 인코더로부터 수신한 상기 결정한 값을 기반으로 상기 특정 영역에 대한 정보를 획득할 수 있다. 여기서, Max Range 0은 현재 블록의 사이즈의 4배일 수 있고, 현재 블록이 가장 우하측에 위치하는 범위일 수 있다. Max Range 1은 현재 블록의 사이즈의 9배일 수 있고, 현재 블록이 가장 우하측에 위치하는 범위일 수 있다. Max Range 2은 현재 블록의 사이즈의 16배일 수 있고, 현재 블록이 가장 우하측에 위치하는 범위일 수 있다.For example, referring to FIG. 10, a specific area may be set as Max Range 0, Max Range 1 and Max Range 2, which may be set to predetermined values at the encoder / decoder. have. Alternatively, the encoder may determine the rate-distortion comparison and transmit the determined value to the decoder. The decoder may obtain information about the specific region based on the determined value received from the encoder. Here, Max Range 0 may be four times the size of the current block, and may be a range in which the current block is located at the bottom right side. Max Range 1 may be 9 times the size of the current block, and may be a range in which the current block is located at the bottom right. Max Range 2 may be 16 times the size of the current block, and may be a range in which the current block is located at the bottom right.
또한, 일 예로, 상기 주변 블록들 중 특정 영역에 포함된 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 여기서, 상기 특정 영역은 상기 현재 블록의 좌상단 샘플 포지션을 중심으로 하는 2개의 최대 코딩 유닛 사이즈의 영역을 나타낼 수 있다. 여기서, 최대 코딩 유닛은 CTU를 지칭할 수도 있다.In addition, as an example, a neighboring block included in a specific region among the neighboring blocks may be selected, and the motion information of the current block is derived by deriving a motion information candidate of the current block based on the motion information of the selected neighboring block. The candidate list can be constructed. Here, the specific region may indicate an area of two maximum coding unit sizes centered on the upper left sample position of the current block. Here, the maximum coding unit may refer to a CTU.
또한, 일 예로, 움직임 정보 예측을 위하여 움직임 정보 후보 리스트를 구성할 때, 최대 코딩 유닛이 개수를 기반으로 결정된 참조 범위 내에서 주변 블록을 참조할 수 있다. 예를 들어, 상기 참조 범위는 (최대 코딩 유닛의 폭 또는 너비) x (최대 코딩 유닛의 개수)에 의해 결정될 수 있다. 즉, 참조 범위는 최대 코딩 유닛의 크기 및 최대 코딩 유닛의 개수를 기반으로 결정될 수 있다. 여기서, 최대 코딩 유닛은 CTU를 지칭할 수도 있다. 최대 코딩 유닛의 개수는 현재 픽처 내의 최대 코딩 유닛의 개수를 의미할 수 있다.Also, as an example, when constructing a motion information candidate list for motion information prediction, a maximum coding unit may refer to neighboring blocks within a reference range determined based on the number. For example, the reference range may be determined by (width or width of maximum coding units) x (number of maximum coding units). That is, the reference range may be determined based on the size of the maximum coding unit and the number of maximum coding units. Here, the maximum coding unit may refer to a CTU. The number of maximum coding units may mean the number of maximum coding units in the current picture.
도 11은 상기 현재 블록에 인접한 블록의 최대 절대값의 움직임 벡터를 기반으로 결정되는 특정 범위의 일 예를 나타낸다.11 shows an example of a specific range determined based on a motion vector of a maximum absolute value of a block adjacent to the current block.
또한, 일 예로, 상기 주변 블록들 중 특정 움직임 벡터가 가리키는 특정 영역에 포함된 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 여기서, 상기 특정 영역은 특정 사이즈의 영역을 나타낼 수 있고, 상기 특정 움직임 벡터는 상기 현재 블록에 인접한 주변 블록들의 움직임 벡터들 중 최대 절대값의 움직임 벡터로 도출될 수 있다. Also, for example, a neighboring block included in a specific region indicated by a specific motion vector among the neighboring blocks may be selected, and the motion information candidate of the current block is derived based on the motion information of the selected neighboring block. The motion information candidate list for the block may be constructed. Here, the specific region may indicate a region of a specific size, and the specific motion vector may be derived as a motion vector having a maximum absolute value among the motion vectors of neighboring blocks adjacent to the current block.
또한, 일 예로, 움직임 정보 예측을 위하여 움직임 정보 후보 리스트를 구성할 때, 현재 블록에 인접한 블록의 움직임 벡터가 가리키는 위치를 중심으로 특정 사이즈만큼의 범위 내에 존재하는 주변 블록으로 한정할 수 있다. 여기서, 상기 인접한 블록의 움직임 벡터는 상기 현재 블록에 인접하는 블록들의 움직임 벡터들 중 절대값이 가장 큰 움직임 벡터를 의미할 수 있다.For example, when constructing a motion information candidate list for motion information prediction, the motion information candidate list may be limited to neighboring blocks within a range of a specific size with respect to a position indicated by a motion vector of a block adjacent to the current block. Here, the motion vector of the adjacent block may mean a motion vector having the largest absolute value among the motion vectors of the blocks adjacent to the current block.
예를 들어, 도 11을 참조하면, 상기 특정 사이즈는 움직임 벡터가 가리키는 위치를 중심으로 수직/수평 방향으로 (p,q) 만큼의 범위를 의미할 수 있다. 즉, 상기 특정 영역은 움직임 벡터가 가리키는 위치를 중심으로 높이가 2p이고, 너비가 2q인 영역일 수 있다. 이때 (p,q)는 현재 블록의 크기, 최대 코딩 유닛의 크기 및 이웃 블록의 크기 중 적어도 하나에 기초하여 결정될 수 있다. 다만, 상기 특정 사이즈는 기설정된 값일 수도 있으므로, 이에 한정되지는 않는다.For example, referring to FIG. 11, the specific size may mean a range of (p, q) in the vertical / horizontal direction with respect to the position indicated by the motion vector. That is, the specific region may be a region having a height of 2p and a width of 2q based on the position indicated by the motion vector. In this case, (p, q) may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block. However, the specific size may be a predetermined value, but is not limited thereto.
예를 들어, 현재 블록(1100)의 인접한 블록 중 좌상측 코너 블록 E0가 절대값이 가장 큰 움직임 벡터를 가지는 경우, 해당 움직임 벡터가 가리키는 위치(x, y)를 중심으로 높이가 2p이고, 너비가 2q인 영역이 결정될 수 있고, 결정된 영역 내의 블록이 움직임 정보 후보를 도출하기 위해 선택될 수 있다.For example, when the upper left corner block E 0 among the adjacent blocks of the current block 1100 has a motion vector having the largest absolute value, the height is 2p around the position (x, y) indicated by the motion vector, An area of width 2q may be determined, and a block within the determined area may be selected to derive motion information candidates.
또한, 일 예로, 상기 주변 블록들 중 특정 움직임 벡터가 가리키는 특정 영역에 포함된 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 여기서, 상기 특정 영역은 특정 사이즈의 영역을 나타낼 수 있고, 상기 특정 움직임 벡터는 상기 현재 블록에 인접한 주변 블록들의 움직임 벡터들의 평균값으로 도출될 수 있다.Also, for example, a neighboring block included in a specific region indicated by a specific motion vector among the neighboring blocks may be selected, and the motion information candidate of the current block is derived based on the motion information of the selected neighboring block. The motion information candidate list for the block may be constructed. Here, the specific region may represent a region of a specific size, and the specific motion vector may be derived as an average value of motion vectors of neighboring blocks adjacent to the current block.
또한, 일 예로, 상술한 현재 블록에 인접한 주변 블록들의 움직임 벡터들의 평균이 가리키는 위치를 중심으로 특정 영역을 결정할 수 있으며, 현재 블록의 움직임 정보 후보를 도출학 위해 상기 특정 영역 내의 주변 블록이 선택될 수 있다. 여기서, 특정 영역은 상술한 바와 같이 특정 사이즈의 영역을 나타낼 수 있고, 상기 특정 사이즈는 움직임 벡터가 가리키는 위치를 중심으로 수직/수평 방향으로 (p,q) 만큼의 범위를 의미할 수 있다. 다시 말해, 현재 블록에 인접한 주변 블록들의 움직임 벡터 중 절대값이 가장 큰 움직임 벡터 대신 주변 블록들의 평균 움직임 벡터가 이용될 수 있다. 즉, 도 11에서 A0, B0, C0, D0 및 E0의 평균 움직임 벡터가 이용될 수 있다.Also, for example, a specific region may be determined based on a position indicated by the average of motion vectors of neighboring blocks adjacent to the current block, and a neighboring block in the specific region may be selected to derive motion information candidates of the current block. Can be. As described above, the specific region may indicate a region of a specific size, and the specific size may mean a range of (p, q) in the vertical / horizontal direction with respect to the position indicated by the motion vector. In other words, the average motion vector of the neighboring blocks may be used instead of the motion vector having the largest absolute value among the motion vectors of the neighboring blocks adjacent to the current block. That is, in FIG. 11, average motion vectors of A 0 , B 0 , C 0 , D 0, and E 0 may be used.
도 12는 움직임 예측 후보 리스트를 생성하는 방법을 개략적으로 나타낸다.12 schematically illustrates a method of generating a motion prediction candidate list.
일 예로, 상기 주변 블록들 중 특정 움직임 벡터가 가리키는 특정 영역에 포함된 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 여기서, 상기 특정 영역은 특정 사이즈의 영역을 나타낼 수 있고, 상기 특정 움직임 벡터는 상기 현재 블록에 인접한 주변 블록들 중 특정 주변 블록의 움직임 벡터로 도출될 수 있다. 한편, 상기 특정 주변 블록이 가용하지 않은 경우(예를 들어, 상기 특정 주변 블록이 인트라 예측 모드를 기반으로 인코딩/디코딩된 경우), 상기 특정 움직임 벡터는 0 벡터로 도출될 수 있고, 또는 특정 주변 블록을 탐색하는 순서로 인터 예측을 기반으로 인코딩/디코딩된 주변 블록이 상기 특정 주변 블록으로 도출될 수 있고, 상기 도출된 특정 주변 블록의 움직임 벡터가 상기 특정 움직임 벡터로 도출될 수 있다.For example, a neighboring block included in a specific region indicated by a specific motion vector among the neighboring blocks may be selected, and a motion information candidate of the current block is derived based on the motion information of the selected neighboring block to the current block. The motion information candidate list may be configured. Here, the specific region may indicate a region of a specific size, and the specific motion vector may be derived as a motion vector of a specific neighboring block among neighboring blocks adjacent to the current block. On the other hand, if the specific neighboring block is not available (for example, when the specific neighboring block is encoded / decoded based on the intra prediction mode), the specific motion vector may be derived as a zero vector, or a specific neighbor A neighboring block encoded / decoded based on inter prediction in the order of searching for a block may be derived as the specific neighboring block, and the derived motion vector of the specific neighboring block may be derived as the specific motion vector.
즉, 특정 블록이 인트라 예측 모드로 코딩되었는지 여부를 확인할 수 있고(S1200), 상기 특정 블록이 인트라 예측 모드로 코딩된 경우, 0 벡터를 활용하거나 인터 모드로 코딩된 특정 블록이 나올 때까지 탐색을 수행할 수 있다(S1210). 이후, 인터 모드로 코딩된 특정 블록의 움직임 벡터가 가리키는 위치를 중심으로 특정 범위를 설정할 수 있고(S1220), 특정 범위 내의 주변 블록의 움직임 정보를 이용하여 현재 블록의 움직임 정보 후보 리스트를 구성할 수 있다(S1230).That is, it may be determined whether a specific block is coded in the intra prediction mode (S1200). When the specific block is coded in the intra prediction mode, the search may be performed until a specific block coded using an 0 vector or an inter mode is coded. It may be performed (S1210). Subsequently, a specific range can be set based on the position indicated by the motion vector of the specific block coded in the inter mode (S1220), and the motion information candidate list of the current block can be constructed using the motion information of the neighboring block within the specific range. There is (S1230).
또한, 일 예로, 상기 주변 블록들 중 특정 참조 픽처에 대한 움직임 정보를 갖는 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 여기서, 상기 특정 참조 픽처는 상기 현재 블록에 인접한 주변 블록들에 대한 참조 픽처들 중 가장 많이 참조되는 참조 픽처로 도출될 수 있다. In addition, as an example, a neighboring block having motion information with respect to a specific reference picture among the neighboring blocks may be selected, and a motion information candidate of the current block is derived based on the motion information of the selected neighboring block. A motion information candidate list may be constructed for the. Here, the specific reference picture may be derived as a reference picture that is referred to the most among reference pictures for neighboring blocks adjacent to the current block.
또한, 일 예로, 상기 주변 블록들 중 현재 픽처와 특정 거리의 참조 픽처에 대한 움직임 정보를 갖는 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 여기서, 상기 특정 거리는 현재 픽처와 상기 현재 블록에 인접한 주변 블록들에 대한 참조 픽처들 중 가장 많이 참조되는 참조 픽처 간의 거리로 도출될 수 있다. 한편, 픽처들 사이의 거리는 POC(picture order count) 차이를 나타낼 수 있다. 즉, 상기 특정 거리는 상기 참조 픽처의 POC 와 상기 현재 픽처의 POC 의 차이를 나타낼 수 있다. Also, for example, a neighboring block having motion information about a reference picture of a specific distance from the current picture among the neighboring blocks may be selected, and the motion information candidate of the current block is selected based on the motion information of the selected neighboring block. The motion information candidate list for the current block may be constructed. Here, the specific distance may be derived as a distance between a current picture and a reference picture that is most referenced among reference pictures for neighboring blocks adjacent to the current block. On the other hand, the distance between the pictures may represent a picture order count (POC) difference. That is, the specific distance may indicate a difference between the POC of the reference picture and the POC of the current picture.
또한, 일 예로, 상기 주변 블록들 중 현재 픽처와 디스플레이 순서 상에서 가장 가까운 거리의 참조 픽처에 대한 움직임 정보를 갖는 주변 블록이 선택될 수 있고, 상기 선택된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 여기서, 상기 디스플레이 순서 상에서 가장 가까운 거리의 참조 픽처는 상기 현재 블록에 인접한 주변 블록들에 대한 참조 픽처들 중 상기 현재 픽처의 디스플레이 순서와의 차이가 가장 작은 참조 픽처를 나타낼 수 있다. Also, for example, a neighboring block having motion information about a reference picture of the closest distance in the display order from the current picture among the neighboring blocks may be selected, and based on the motion information of the selected neighboring block, the neighboring block may be selected. A motion information candidate list for the current block may be constructed by deriving a motion information candidate. Here, the reference picture of the closest distance in the display order may represent a reference picture having the smallest difference from the display order of the current picture among the reference pictures for neighboring blocks adjacent to the current block.
또한, 일 예로, 움직임 정보 예측을 위하여 움직임 정보 후보 리스트를 구성할 때, 현재 픽처와 디스플레이 순서 상 가장 가까운 거리의 참조 픽처를 참조하는 주변 블록의 움직임 벡터만을 이용할 수도 있다. 즉, 상기 현재 블록에 포함된 현재 픽처와 POC(Picture order count) 차이가 가장 적은 참조 픽처를 참조하는 주변 블록이 이용될 수 있다.In addition, as an example, when constructing a motion information candidate list for motion information prediction, only a motion vector of a neighboring block referring to a reference picture of the closest distance in the display order with the current picture may be used. That is, a neighboring block referring to a reference picture having the smallest difference between the current picture included in the current block and a picture order count (POC) may be used.
또한, 일 예로, VPS(Video Parameter Set), SPS(Sequence Parameter Set), PPS(Picture Parameter Set), 슬라이스 헤더(Slice header) 등의 하이 레벨 신텍스(High level syntax)를 통하여 상기 현재 블록의 주변 블록에 대한 정보가 시그널링될 수 있고, 상기 현재 블록의 주변 블록에 대한 정보를 기반으로 상기 현재 블록에 대한 주변 블록이 도출될 수 있고, 상기 도출된 주변 블록의 움직임 정보를 기반으로 상기 현재 블록의 움직임 정보 후보를 도출하여 상기 현재 블록에 대한 움직임 정보 후보 리스트가 구성될 수 있다. 예를 들어, 상기 현재 블록의 주변 블록에 대한 정보는 현재 블록으로부터의 CTU 오프셋(offset), 특정 범위, 및/또는 범위를 지정하기 위한 이웃 블록의 위치 등에 대한 정보를 포함할 수 있다. 여기서, 상기 특정 범위는 샘플 단위로 정의될 수 있다.In addition, as an example, neighboring blocks of the current block through high level syntax such as a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, and the like. The information about may be signaled, the neighboring block for the current block may be derived based on the information on the neighboring block of the current block, and the motion of the current block based on the derived motion information of the neighboring block. An information candidate may be derived to construct a motion information candidate list for the current block. For example, the information on the neighboring block of the current block may include information about a CTU offset from the current block, a specific range, and / or a position of a neighboring block to designate a range. Here, the specific range may be defined in units of samples.
도 13은 본 발명에 따른 인코딩 장치에 의한 영상 인코딩 방법을 개략적으로 나타낸다.13 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.
도 13에서 개시된 방법은 도 1에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 13의 S1300 내지 S1330은 상기 인코딩 장치의 예측부에 의하여 수행될 수 있고, S1340은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다. 또한, 비록 도시되지는 않았으나 현재 블록에 대한 원본 샘플과 예측 샘플을 기반으로 상기 현재 블록에 대한 레지듀얼 샘플을 도출하는 과정은 상기 인코딩 장치의 감산부에 의하여 수행될 수 있고, 상기 레지듀얼 샘플을 기반으로 상기 현재 블록에 대한 레지듀얼에 관한 정보를 생성하는 과정은 상기 인코딩 장치의 변환부에 의하여 수행될 수 있고, 상기 레지듀얼에 관한 정보 및 현재 블록의 예측에 대한 정보를 인코딩하는 과정은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.The method disclosed in FIG. 13 may be performed by the encoding apparatus disclosed in FIG. 1. Specifically, for example, S1300 to S1330 of FIG. 13 may be performed by the prediction unit of the encoding apparatus, and S1340 may be performed by the entropy encoding unit of the encoding apparatus. In addition, although not shown, a process of deriving a residual sample for the current block based on the original sample and the prediction sample for the current block may be performed by a subtractor of the encoding apparatus, The generating of the information about the residual on the basis of the current block may be performed by a converter of the encoding apparatus. The encoding of the information on the residual and the prediction of the current block may be performed. It may be performed by the entropy encoding unit of the encoding device.
인코딩 장치는 현재 블록의 주변 블록들을 도출한다(S1300). 즉, 현재 블록의 주변 블록들 중 상기 현재 블록의 움직임 정보 후보 리스트를 위한 주변 블록들을 도출 또는 선택할 수 있다. 인코딩 장치는 상기 현재 블록의 예측 모드를 결정할 수 있다. 예를 들어, 인코딩 장치는 상기 현재 블록에 인터 예측을 적용할 수 있다. 인코딩 장치는 상기 현재 블록의 상기 주변 블록들 중 상기 현재 블록의 움직임 정보 후보 리스트를 위한 주변 블록들을 선택할 수 있다. 한편, 상기 움직임 정보 후보 리스트는 머지 후보 리스트 또는 MVP 후보 리스트를 나타낼 수 있다.The encoding apparatus derives neighboring blocks of the current block (S1300). That is, the neighboring blocks for the motion information candidate list of the current block among the neighboring blocks of the current block may be derived or selected. The encoding apparatus may determine the prediction mode of the current block. For example, the encoding apparatus may apply inter prediction to the current block. The encoding apparatus may select neighboring blocks for the motion information candidate list of the current block among the neighboring blocks of the current block. Meanwhile, the motion information candidate list may represent a merge candidate list or an MVP candidate list.
예를 들어, 상기 주변 블록들은 상기 현재 블록에 인접하지 않은 비인접 블록을 포함할 수 있다. 다만, 실시예에 따라서 인접한 블록을 포함할 수도 있다. For example, the neighboring blocks may include non-adjacent blocks that are not adjacent to the current block. However, according to an exemplary embodiment, adjacent blocks may be included.
예를 들어, 상기 비인접 블록은 상기 현재 블록에 인접한 블록의 움직임 벡터, 상기 현재 블록이 포함된 최대 코딩 유닛 또는 상기 현재 블록이 포함된 현재 픽처를 기반으로 도출될 수 있다.For example, the non-adjacent block may be derived based on a motion vector of a block adjacent to the current block, a maximum coding unit including the current block, or a current picture including the current block.
예를 들어, 주변 블록들은 스캔 순서가 우하측에서 좌상측 방향으로 설정되는 경우 상기 현재 블록의 좌하측 영역, 하측 영역, 우하측 영역, 우측 영역 및 우상측 영역 중 적어도 하나의 영역에 위치하는 블록 또는 비인접 블록을 포함할 수 있다. 여기서, 스캔 순서(scan order)는 우하측에서 좌상측 방향으로 설정될 수도 있다. 또는 스캔 순서는 (우->좌, 하->상), (하->상, 우->좌), (우->좌->우상 순서의 지그재그) 및 (하->상->좌하 순서의 지그재그) 등일 수 있다. 즉, (우하->좌하->우상->좌상), (우하->우상->좌하->좌상), (우하->좌하->좌상->우상) 및 (우하->우상->좌상->좌하) 등일 수 있으나, 이에 한정되는 것은 아니다. 여기서, 우하측 영역은 현재 블록의 우하측에 위치한 적어도 하나의 블록을 포함할 수 있고, 하측 영역은 현재 블록의 하측에 위치한 적어도 하나의 블록을 포함할 수 있고, 좌하측 영역은 현재 블록의 좌하측에 위치한 적어도 하나의 블록을 포함할 수 있고, 우측 영역은 현재 블록의 우측에 위치한 적어도 하나의 블록을 포함할 수 있고, 우상측 영역은 현재 블록의 우상측에 위치한 적어도 하나의 블록을 포함할 수 있다. 또한, 각 영역 내의 블록들은 상기 현재 블록에 인접할 수 있고, 인접하지 않을 수도 있다. 즉, 상기 현재 블록의 경계로부터 일정한 거리 내에 위치하는 비인접 블록일 수 있다.For example, neighboring blocks are blocks located in at least one of a lower left region, a lower region, a lower right region, a right region, and an upper right region of the current block when the scanning order is set from the lower right side to the upper left direction. Or a non-adjacent block. Here, the scan order may be set from the lower right side to the upper left direction. Or scan order is (Right-> Left-Down-Up), (Down-> Up, Right-> Left), (Right-> Left-> Zig-Zag) and (Down-> Up-> Left) Zigzag). I.e. (right-> lower-> right-> left), (right-> right-> lower-> left), (right-> lower-> left-> right) and (right-> right-> top-left- Lower left), etc., but is not limited thereto. Here, the lower right region may include at least one block located at the lower right side of the current block, the lower region may include at least one block located at the lower side of the current block, and the lower left region may be at the lower left of the current block. It may include at least one block located on the side, the right region may include at least one block located on the right side of the current block, the right upper region may include at least one block located on the right side of the current block Can be. Also, blocks in each region may or may not be adjacent to the current block. That is, it may be a non-adjacent block located within a predetermined distance from the boundary of the current block.
예를 들어, 주변 블록들은 상기 현재 블록이 포함된 최대 코딩 유닛 내에 위치하는 블록 또는 비인접 블록을 포함할 수 있다. 또는 주변 블록들은 상기 현재 블록이 포함된 최대 코딩 유닛의 좌측 주변 최대 코딩 유닛, 좌상측 주변 최대 코딩 유닛 및 상측 주변 최대 코딩 유닛 중 어느 하나의 내에 위치하는 블록 E는 비인접 블록을 포함할 수 있다. 여기서, 최대 코딩 유닛은 현재 블록의 상위 블록 또는 CTU(coding tree unit)를 지칭할 수도 있다. 이 경우, 상기 현재 블록이 포함된 최대 코딩 유닛은 현재 CTU라고 나타낼 수도 있고, 상기 현재 블록이 포함된 최대 코딩 유닛의 좌측 주변 최대 코딩 유닛, 좌상측 주변 최대 코딩 유닛 및 상측 주변 최대 코딩 유닛는 현재 CTU의 좌측 주변 CTU, 좌상측 주변 CTU 및 상측 주변 CTU라고 나타낼 수 있다.For example, neighboring blocks may include a block or a non-adjacent block located within the largest coding unit that includes the current block. Alternatively, the neighboring blocks may include a non-adjacent block located in any one of a left peripheral maximum coding unit, a left upper peripheral maximum coding unit, and an upper peripheral maximum coding unit of the maximum coding unit including the current block. . Here, the maximum coding unit may refer to a higher block or a coding tree unit (CTU) of the current block. In this case, the maximum coding unit including the current block may be referred to as a current CTU, and the left peripheral maximum coding unit, the upper left peripheral maximum coding unit, and the upper peripheral maximum coding unit of the maximum coding unit including the current block are the current CTU. It can be expressed as the left peripheral CTU, the upper left peripheral CTU and the upper peripheral CTU of.
예를 들어, 주변 블록들은 상기 현재 블록의 좌상단 샘플 포지션을 중심으로 특정 샘플 거리 내의 영역에 위치하는 비인접 블록을 포함할 수 있다. 여기서, 특정 샘플 거리는 96 샘플 거리일 수도 있다. 또는 주변 블록들은 상기 현재 블록의 좌상단 샘플 포지션을 중심으로 특정 사이즈의 영역에 위치하는 블록 또는 비인접 블록을 포함할 수도 있다. 여기서, 특정 사이즈는 96x96 사이즈일 수도 있다.For example, neighboring blocks may include non-adjacent blocks located in an area within a specific sample distance with respect to the upper left sample position of the current block. Here, the specific sample distance may be 96 sample distances. Alternatively, neighboring blocks may include blocks or non-adjacent blocks located in a region of a specific size with respect to the upper left sample position of the current block. Here, the specific size may be 96x96 size.
예를 들어, 주변 블록들은 최대 범위(max range) 내에 위치하는 블록 또는 비인접 블록을 포함할 수 있고, 상기 최대 범위는 상기 현재 블록의 사이즈의 4배, 9배 및 16배 중 하나이고, 상기 현재 블록이 상기 최대 범위 내에서 가장 우하측에 위치할 수 있다. 즉, 최대 범위는 Max Range 0, Max Range 1 및 Max Range 2와 같이 설정될 수 있으며, 이에 따라 최대 범위는 특정 영역을 나타낼 수 있다. 또는 최대 범위 또는 특정 영역은 기결정될 수도 있다. 여기서, Max Range 0은 현재 블록의 사이즈의 4배의 범위를 가질 수 있으며, Max Range 1은 현재 블록의 9배의 범위를 가질 수 있고, Max Range 2는 현재 블록의 16배의 범위를 가질 수 있다. 보다 상세한 설명은 도 10과 같이 상술하였다.For example, neighboring blocks may include blocks or non-adjacent blocks located within a max range, the maximum range being one of four, nine and sixteen times the size of the current block, The current block may be located at the lower right side within the maximum range. That is, the maximum range may be set as Max Range 0, Max Range 1, and Max Range 2, whereby the maximum range may indicate a specific region. Alternatively, the maximum range or specific area may be predetermined. Here, Max Range 0 may have a range of 4 times the size of the current block, Max Range 1 may have a range of 9 times the current block, and Max Range 2 may have a range of 16 times the current block. have. More detailed description has been given above with reference to FIG. 10.
예를 들어, 주변 블록들은 참조 범위 내에 위치하는 블록 또는 비인접 블록을 포함할 수 있고, 상기 참조 범위는 최대 코딩 유닛 크기 및 최대 코딩 유닛의 개수를 기반으로 결정될 수 있다. 여기서, 최대 코딩 유닛 크기는 최대 코딩 유닛의 폭 또는 너비를 기반으로 결정될 수 있으며, 최대 코딩 유닛은 현재 블록의 상위 블록 또는 CTU를 지칭할 수 있다. 또한, 최대 코딩 유닛의 개수는 현재 픽처에 포함된 최대 코딩 유닛의 개수일 수 있으나, 이에 한정되는 것은 아니다.For example, the neighboring blocks may include a block or a non-adjacent block located within a reference range, and the reference range may be determined based on the maximum coding unit size and the number of maximum coding units. Here, the maximum coding unit size may be determined based on the width or width of the maximum coding unit, and the maximum coding unit may refer to a higher block or CTU of the current block. In addition, the number of maximum coding units may be the number of maximum coding units included in the current picture, but is not limited thereto.
예를 들어, 주변 블록들은 특정 움직임 벡터가 가리키는 위치를 중심으로 하는 특정 영역 내에 위치하는 블록 또는 비인접 블록을 포함할 수 있고, 상기 특정 움직임 벡터는 상기 현재 블록에 인접한 블록들의 움직임 벡터들로부터 도출될 수 있고, 상기 특정 영역의 사이즈는 상기 현재 블록의 크기, 최대 코딩 유닛의 크기 및 주변 블록의 크기 중 적어도 하나를 기반으로 결정될 수 있다. 또는 특정 영역의 사이즈는 기 결정될 수도 있다. 여기서, 특정 움직임 벡터는 상기 현재 블록에 인접한 블록들의 움직임 벡터들 중 최대 절대값의 움직임 벡터로 도출될 수 있다. 또는 상기 현재 블록에 인접한 블록들의 움직임 벡터들의 평균값 또는 평균 움직임 벡터로 도출될 수도 있다. 도 11을 참조하면, 상기 특정 사이즈는 움직임 벡터가 가리키는 위치를 중심으로 수직/수평 방향으로 (p,q) 만큼의 범위를 의미할 수 있다. 즉, 상기 특정 영역은 움직임 벡터가 가리키는 위치를 중심으로 높이가 2p이고, 너비가 2q인 영역일 수 있다. 이때 (p,q)는 현재 블록의 크기, 최대 코딩 유닛의 크기 및 이웃 블록의 크기 중 적어도 하나에 기초하여 결정될 수 있다. 예를 들어, 현재 블록의 인접한 블록 중 좌상측 코너 블록 E0가 절대값이 가장 큰 움직임 벡터를 가지는 경우, 해당 움직임 벡터가 가리키는 위치(x, y)를 중심으로 높이가 2p이고, 너비가 2q인 영역이 결정될 수 있고, 결정된 영역 내의 블록이 움직임 정보 후보를 도출하기 위해 선택 또는 도출될 수 있다.For example, neighboring blocks may include a block or non-adjacent block located within a specific area centered on a position indicated by a specific motion vector, wherein the specific motion vector is derived from motion vectors of blocks adjacent to the current block. The size of the specific region may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block. Alternatively, the size of the specific region may be predetermined. Here, the specific motion vector may be derived as a motion vector of the maximum absolute value among the motion vectors of blocks adjacent to the current block. Alternatively, it may be derived as an average value or an average motion vector of motion vectors of blocks adjacent to the current block. Referring to FIG. 11, the specific size may mean a range of (p, q) in the vertical / horizontal direction with respect to the position indicated by the motion vector. That is, the specific region may be a region having a height of 2p and a width of 2q based on the position indicated by the motion vector. In this case, (p, q) may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block. For example, if the upper left corner block E 0 of the neighboring block of the current block has a motion vector having the largest absolute value, the height is 2p and the width is 2q around the position (x, y) indicated by the motion vector. The phosphorus region may be determined and blocks within the determined region may be selected or derived to derive motion information candidates.
예를 들어, 주변 블록들은 상기 현재 블록에 포함된 현재 픽처와 POC(Picture order count) 차이가 가장 적은 참조 픽처를 참조하는 블록 또는 비인접 블록을 포함할 수 있다. 여기서, POC는 디스플레이 순서를 나타낼 수 있으며, 현재 픽처와 POC 차이가 가장 적은 참조 픽처는 현재 픽처와 디스플레이 순서가 가장 가까운 참조 픽처를 의미할 수 있다. 또는 상기 현재 픽처의 디스플레이 순서와의 차이가 가장 작은 참조 픽처를 의미할 수 있다.For example, neighboring blocks may include a block or a non-adjacent block that references a reference picture having a smallest difference in picture order count (POC) from a current picture included in the current block. Here, the POC may indicate a display order, and the reference picture having the smallest difference between the current picture and the POC may mean a reference picture that is closest in display order to the current picture. Alternatively, the reference picture may mean a reference picture having the smallest difference from the display order of the current picture.
인코딩 장치는 상기 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성한다(S1310). 인코딩 장치는 상기 도출 또는 선택된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성할 수 있다. 인코딩 장치는 상기 선택된 주변 블록들의 움직임 정보들을 상기 현재 블록의 움직임 정보 후보들로 도출할 수 있고, 상기 움직임 정보 후보들을 포함하는 상기 움직임 정보 후보 리스트를 구성할 수 있다. 또한, 인코딩 장치는 상기 선택된 주변 블록들의 움직임 정보를 조합하여 도출된 움직임 정보를 상기 현재 블록의 움직임 정보 후보로 도출할 수 있고, 상기 움직임 정보 후보를 포함한 상기 움직임 정보 후보 리스트를 구성할 수 있다. 한편, 상기 움직임 정보 후보 리스트는 머지 후보 리스트 또는 MVP 후보 리스트를 나타낼 수 있고, 상기 움직임 후보는 머지 후보 또는 MVP 후보를 나타낼 수 있다. The encoding apparatus constructs the motion information candidate list based on the derived neighboring blocks (S1310). The encoding apparatus may construct the motion information candidate list based on the derived or selected neighboring blocks. The encoding apparatus may derive motion information of the selected neighboring blocks as motion information candidates of the current block, and construct the motion information candidate list including the motion information candidates. In addition, the encoding apparatus may derive the motion information derived by combining the motion information of the selected neighboring blocks as the motion information candidate of the current block, and configure the motion information candidate list including the motion information candidate. Meanwhile, the motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion candidate may indicate a merge candidate or an MVP candidate.
인코딩 장치는 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출한다(S1320). 인코딩 장치는 상기 움직임 정보 후보 리스트의 움직임 정보 후보들 중 특정 움직임 정보 후보를 선택할 수 있고, 상기 선택된 움직임 정보 후보를 상기 현재 블록에 대한 움직임 정보로 도출할 수 있다. 또한, 인코딩 장치는 상기 움직임 정보 후보 리스트의 상기 움직임 정보 후보들 중 상기 선택된 움직임 정보 후보를 가리키는 인덱스 정보를 생성 및 인코딩할 수 있다. 또한, 인코딩 장치는 상기 선택된 움직임 정보 후보를 상기 현재 블록에 대한 MVP 로 도출할 수 있고, 상기 MVP 를 기반으로 상기 현재 블록에 대한 움직임 정보를 도출할 수 있다. 이 경우, 인코딩 장치는 상기 MVP 및 상기 움직임 정보의 움직임 벡터를 기반으로 MVD(Motion Vector Difference) 를 생성 및 인코딩할 수 있다. 한편, 상기 인덱스 정보는 머지 인덱스 또는 MVP 인덱스를 나타낼 수 있다. The encoding apparatus derives the motion information of the current block based on the motion information candidate list (S1320). The encoding apparatus may select a specific motion information candidate from the motion information candidates of the motion information candidate list, and derive the selected motion information candidate as motion information for the current block. The encoding apparatus may generate and encode index information indicating the selected motion information candidate among the motion information candidates of the motion information candidate list. In addition, the encoding apparatus may derive the selected motion information candidate as the MVP for the current block and derive the motion information for the current block based on the MVP. In this case, the encoding apparatus may generate and encode a motion vector difference (MVD) based on the motion vector of the MVP and the motion information. Meanwhile, the index information may indicate a merge index or an MVP index.
인코딩 장치는 상기 움직임 정보를 기반으로 상기 현재 블록의 예측된 블록을 생성한다(S1330). 즉, 상기 움직임 정보를 기반으로 상기 현재 블록의 예측을 수행할 수 있다. 상기 움직임 정보를 기반으로 상기 현재 블록의 예측 블록이 도출될 수 있고, 상기 예측 블록을 기반으로 복원 블록이 도출될 수 있다. 구체적으로, 인코딩 장치는 상기 움직임 정보를 기반으로 참조 픽처 내 참조 블록을 도출할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 인코딩 장치는 참조 픽처 리스트의 참조 픽처들 중 상기 참조 픽처 인덱스가 가리키는 참조 픽처를 상기 현재 블록의 참조 픽처로 도출할 수 있고, 상기 참조 픽처 내 상기 움직임 벡터가 가리키는 블록을 상기 현재 블록의 참조 블록으로 도출할 수 있다. 인코딩 장치는 상기 참조 블록을 기반으로 예측 샘플을 생성할 수 있다. The encoding apparatus generates a predicted block of the current block based on the motion information (S1330). That is, the prediction of the current block may be performed based on the motion information. A prediction block of the current block may be derived based on the motion information, and a reconstruction block may be derived based on the prediction block. In detail, the encoding apparatus may derive a reference block within a reference picture based on the motion information. The motion information may include a motion vector and a reference picture index. The encoding apparatus may derive the reference picture indicated by the reference picture index among the reference pictures of the reference picture list as the reference picture of the current block, and convert the block indicated by the motion vector in the reference picture into the reference block of the current block. Can be derived. The encoding apparatus may generate a prediction sample based on the reference block.
또한, 인코딩 장치는 원본 샘플과 상기 생성된 예측 샘플을 기반으로 레지듀얼(residual) 샘플을 생성할 수 있다. 인코딩 장치는 상기 레지듀얼 샘플을 기반으로 상기 레지듀얼에 관한 정보를 생성할 수 있다. 상기 레지듀얼에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다. 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 상기 복원 샘플을 도출할 수 있다. 즉, 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 더하여 상기 복원 샘플을 도출할 수 있다. 또한, 인코딩 장치는 상기 레지듀얼에 관한 정보를 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다.In addition, the encoding apparatus may generate a residual sample based on the original sample and the generated prediction sample. The encoding apparatus may generate information about the residual based on the residual sample. The information about the residual may include transform coefficients related to the residual sample. The encoding apparatus may derive the reconstructed sample based on the prediction sample and the residual sample. That is, the encoding apparatus may derive the reconstructed sample by adding the prediction sample and the residual sample. In addition, the encoding apparatus may encode the information about the residual and output the bitstream. The bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
인코딩 장치는 상기 현재 블록의 예측에 대한 정보를 포함하는 영상 정보를 인코딩한다(S1340). 인코딩 장치는 상기 현재 블록의 예측에 대한 정보를 포함하는 영상 정보를 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다. 예를 들어, 인코딩 장치는 상기 현재 블록의 예측 모드를 결정할 수 있고, 상기 예측 모드를 나타내는 정보를 생성할 수 있다. 또한, 예를 들어, 상기 현재 블록의 예측에 대한 정보는 상기 움직임 정보 후보 리스트에 대한 정보를 포함할 수 있다. 상기 움직임 정보 후보 리스트에 대한 정보는 상기 특정 영역을 나타내는 정보를 포함할 수 있다. 상기 특정 영역은 상기 선택된 주변 블록들이 위치하는 영역을 나타낼 수 있다. 상기 특정 영역을 나타내는 정보는 상기 특정 영역의 사이즈를 나타내는 정보 및/또는 상기 특정 영역의 위치를 나타내는 정보를 포함할 수 있다. 또한, 상기 움직임 정보 후보 리스트에 대한 정보는 상기 CTU 오프셋 정보를 포함할 수 있다. 또한, 상기 예측에 대한 정보는 상기 움직임 정보 후보 리스트의 움직임 정보 후보들 중 상기 선택된 움직임 정보 후보를 가리키는 인덱스 정보를 포함할 수 있다. 또한, 상기 현재 블록의 예측에 대한 정보는 상기 현재 블록에 머지 모드가 적용되는지 여부를 나타내는 머지 플래그를 포함할 수 있다. 또한, 인코딩 장치는 상기 레지듀얼 샘플을 기반으로 상기 레지듀얼에 관한 정보를 생성할 수 있다. 상기 영상 정보는 상기 레지듀얼에 관한 정보를 포함할 수 있고, 상기 레지듀얼에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다. 인코딩 장치는 상기 레지듀얼에 관한 정보를 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다.The encoding apparatus encodes image information including information on prediction of the current block (S1340). The encoding apparatus may encode and output the video information including the information on the prediction of the current block in the form of a bitstream. The bitstream may be transmitted to a decoding apparatus via a network or a storage medium. For example, the encoding apparatus may determine the prediction mode of the current block, and generate information indicating the prediction mode. Also, for example, the information about the prediction of the current block may include information about the motion information candidate list. The information on the motion information candidate list may include information indicating the specific area. The specific area may indicate an area in which the selected neighboring blocks are located. The information indicating the specific area may include information indicating the size of the specific area and / or information indicating the location of the specific area. The information on the motion information candidate list may include the CTU offset information. The information on the prediction may include index information indicating the selected motion information candidate among motion information candidates of the motion information candidate list. The information on the prediction of the current block may include a merge flag indicating whether a merge mode is applied to the current block. In addition, the encoding apparatus may generate information about the residual based on the residual sample. The image information may include information about the residual, and the information about the residual may include transform coefficients related to the residual sample. The encoding device may encode the information about the residual and output the encoded information about the residual. The bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
도 14는 본 발명에 따른 디코딩 장치에 의한 영상 디코딩 방법을 개략적으로 나타낸다.14 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.
도 14에서 개시된 방법은 도 2에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 14의 S1400 내지 S1430은 상기 디코딩 장치의 예측부에 의하여 수행될 수 있다. 또한, 비록 도시되지는 않았으나 비트스트림을 통하여 현재 블록의 예측에 대한 정보 및 레지듀얼에 관한 정보를 포함하는 영상 정보를 획득하는 과정은 상기 디코딩 장치의 엔트로피 디코딩부에 의하여 수행될 수 있고, 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플을 도출하는 과정은 상기 디코딩 장치의 역변환부에 의하여 수행될 수 있고, 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 픽처를 생성하는 과정은 상기 디코딩 장치의 가산부에 의하여 수행될 수 있다.The method disclosed in FIG. 14 may be performed by the decoding apparatus disclosed in FIG. 2. Specifically, for example, S1400 to S1430 of FIG. 14 may be performed by the prediction unit of the decoding apparatus. In addition, although not shown, a process of acquiring image information including information on prediction of a current block and information on residual through a bitstream may be performed by an entropy decoding unit of the decoding apparatus. The process of deriving the residual sample for the current block based on the dual information may be performed by an inverse transform unit of the decoding apparatus, and the process of generating a reconstructed picture based on the prediction sample and the residual sample may be performed. It may be performed by an adder of the decoding apparatus.
디코딩 장치는 현재 블록의 주변 블록들을 도출한다(S1400). 다시 말해, 디코딩 장치는 현재 블록의 주변 블록들 중 상기 현재 블록의 움직임 정보 후보 리스트를 위한 주변 블록들을 도출 또는 선택할 수 있다. 디코딩 장치는 현재 블록의 예측에 대한 정보를 기반으로 상기 현재 블록의 예측 모드를 결정할 수 있다. 디코딩 장치는 상기 현재 블록에 인터 예측을 적용할 수 있다. 디코딩 장치는 상기 현재 블록의 상기 주변 블록들 중 상기 현재 블록의 움직임 정보 후보 리스트를 위한 주변 블록들을 선택할 수 있다. 한편, 상기 움직임 정보 후보 리스트는 머지 후보 리스트 또는 MVP 후보 리스트를 나타낼 수 있다.The decoding apparatus derives neighboring blocks of the current block (S1400). In other words, the decoding apparatus may derive or select neighboring blocks for the motion information candidate list of the current block among neighboring blocks of the current block. The decoding apparatus may determine the prediction mode of the current block based on the information about the prediction of the current block. The decoding apparatus may apply inter prediction to the current block. The decoding apparatus may select neighboring blocks for the motion information candidate list of the current block among the neighboring blocks of the current block. Meanwhile, the motion information candidate list may represent a merge candidate list or an MVP candidate list.
예를 들어, 상기 주변 블록들은 상기 현재 블록에 인접하지 않은 비인접 블록을 포함할 수 있다. 다만, 실시예에 따라서 인접한 블록을 포함할 수도 있다. For example, the neighboring blocks may include non-adjacent blocks that are not adjacent to the current block. However, according to an exemplary embodiment, adjacent blocks may be included.
예를 들어, 상기 비인접 블록은 상기 현재 블록에 인접한 블록의 움직임 벡터, 상기 현재 블록이 포함된 최대 코딩 유닛 또는 상기 현재 블록이 포함된 현재 픽처를 기반으로 도출될 수 있다.For example, the non-adjacent block may be derived based on a motion vector of a block adjacent to the current block, a maximum coding unit including the current block, or a current picture including the current block.
예를 들어, 주변 블록들은 스캔 순서가 우하측에서 좌상측 방향으로 설정되는 경우 상기 현재 블록의 좌하측 영역, 하측 영역, 우하측 영역, 우측 영역 및 우상측 영역 중 적어도 하나의 영역에 위치하는 블록 또는 비인접 블록을 포함할 수 있다. 여기서, 스캔 순서(scan order)는 우하측에서 좌상측 방향으로 설정될 수도 있다. 또는 스캔 순서는 (우->좌, 하->상), (하->상, 우->좌), (우->좌->우상 순서의 지그재그) 및 (하->상->좌하 순서의 지그재그) 등일 수 있다. 즉, (우하->좌하->우상->좌상), (우하->우상->좌하->좌상), (우하->좌하->좌상->우상) 및 (우하->우상->좌상->좌하) 등일 수 있으나, 이에 한정되는 것은 아니다. 여기서, 우하측 영역은 현재 블록의 우하측에 위치한 적어도 하나의 블록을 포함할 수 있고, 하측 영역은 현재 블록의 하측에 위치한 적어도 하나의 블록을 포함할 수 있고, 좌하측 영역은 현재 블록의 좌하측에 위치한 적어도 하나의 블록을 포함할 수 있고, 우측 영역은 현재 블록의 우측에 위치한 적어도 하나의 블록을 포함할 수 있고, 우상측 영역은 현재 블록의 우상측에 위치한 적어도 하나의 블록을 포함할 수 있다. 또한, 각 영역 내의 블록들은 상기 현재 블록에 인접할 수 있고, 인접하지 않을 수도 있다. 즉, 상기 현재 블록의 경계로부터 일정한 거리 내에 위치하는 비인접 블록일 수 있다.For example, neighboring blocks are blocks located in at least one of a lower left region, a lower region, a lower right region, a right region, and an upper right region of the current block when the scanning order is set from the lower right side to the upper left direction. Or a non-adjacent block. Here, the scan order may be set from the lower right side to the upper left direction. Or scan order is (Right-> Left-Down-Up), (Down-> Up, Right-> Left), (Right-> Left-> Zig-Zag) and (Down-> Up-> Left) Zigzag). I.e. (right-> lower-> right-> left), (right-> right-> lower-> left), (right-> lower-> left-> right) and (right-> right-> top-left- Lower left), etc., but is not limited thereto. Here, the lower right region may include at least one block located at the lower right side of the current block, the lower region may include at least one block located at the lower side of the current block, and the lower left region may be at the lower left of the current block. It may include at least one block located on the side, the right region may include at least one block located on the right side of the current block, the right upper region may include at least one block located on the right side of the current block Can be. Also, blocks in each region may or may not be adjacent to the current block. That is, it may be a non-adjacent block located within a predetermined distance from the boundary of the current block.
예를 들어, 주변 블록들은 상기 현재 블록이 포함된 최대 코딩 유닛 내에 위치하는 블록 또는 비인접 블록을 포함할 수 있다. 또는 주변 블록들은 상기 현재 블록이 포함된 최대 코딩 유닛의 좌측 주변 최대 코딩 유닛, 좌상측 주변 최대 코딩 유닛 및 상측 주변 최대 코딩 유닛 중 어느 하나의 내에 위치하는 블록 E는 비인접 블록을 포함할 수 있다. 여기서, 최대 코딩 유닛은 현재 블록의 상위 블록 또는 CTU(coding tree unit)를 지칭할 수도 있다. 이 경우, 상기 현재 블록이 포함된 최대 코딩 유닛은 현재 CTU라고 나타낼 수도 있고, 상기 현재 블록이 포함된 최대 코딩 유닛의 좌측 주변 최대 코딩 유닛, 좌상측 주변 최대 코딩 유닛 및 상측 주변 최대 코딩 유닛는 현재 CTU의 좌측 주변 CTU, 좌상측 주변 CTU 및 상측 주변 CTU라고 나타낼 수 있다.For example, neighboring blocks may include a block or a non-adjacent block located within the largest coding unit that includes the current block. Alternatively, the neighboring blocks may include a non-adjacent block located in any one of a left peripheral maximum coding unit, a left upper peripheral maximum coding unit, and an upper peripheral maximum coding unit of the maximum coding unit including the current block. . Here, the maximum coding unit may refer to a higher block or a coding tree unit (CTU) of the current block. In this case, the maximum coding unit including the current block may be referred to as a current CTU, and the left peripheral maximum coding unit, the upper left peripheral maximum coding unit, and the upper peripheral maximum coding unit of the maximum coding unit including the current block are the current CTU. It can be expressed as the left peripheral CTU, the upper left peripheral CTU and the upper peripheral CTU of.
예를 들어, 주변 블록들은 상기 현재 블록의 좌상단 샘플 포지션을 중심으로 특정 샘플 거리 내의 영역에 위치하는 비인접 블록을 포함할 수 있다. 여기서, 특정 샘플 거리는 96 샘플 거리일 수도 있다. 또는 주변 블록들은 상기 현재 블록의 좌상단 샘플 포지션을 중심으로 특정 사이즈의 영역에 위치하는 블록 또는 비인접 블록을 포함할 수도 있다. 여기서, 특정 사이즈는 96x96 사이즈일 수도 있다.For example, neighboring blocks may include non-adjacent blocks located in an area within a specific sample distance with respect to the upper left sample position of the current block. Here, the specific sample distance may be 96 sample distances. Alternatively, neighboring blocks may include blocks or non-adjacent blocks located in a region of a specific size with respect to the upper left sample position of the current block. Here, the specific size may be 96x96 size.
예를 들어, 주변 블록들은 최대 범위(max range) 내에 위치하는 블록 또는 비인접 블록을 포함할 수 있고, 상기 최대 범위는 상기 현재 블록의 사이즈의 4배, 9배 및 16배 중 하나이고, 상기 현재 블록이 상기 최대 범위 내에서 가장 우하측에 위치할 수 있다. 즉, 최대 범위는 Max Range 0, Max Range 1 및 Max Range 2와 같이 설정될 수 있으며, 이에 따라 최대 범위는 특정 영역을 나타낼 수 있다. 또는 최대 범위 또는 특정 영역은 기결정될 수도 있다. 여기서, Max Range 0은 현재 블록의 사이즈의 4배의 범위를 가질 수 있으며, Max Range 1은 현재 블록의 9배의 범위를 가질 수 있고, Max Range 2는 현재 블록의 16배의 범위를 가질 수 있다. 보다 상세한 설명은 도 10과 같이 상술하였다.For example, neighboring blocks may include blocks or non-adjacent blocks located within a max range, the maximum range being one of four, nine and sixteen times the size of the current block, The current block may be located at the lower right side within the maximum range. That is, the maximum range may be set as Max Range 0, Max Range 1, and Max Range 2, whereby the maximum range may indicate a specific region. Alternatively, the maximum range or specific area may be predetermined. Here, Max Range 0 may have a range of 4 times the size of the current block, Max Range 1 may have a range of 9 times the current block, and Max Range 2 may have a range of 16 times the current block. have. More detailed description has been given above with reference to FIG. 10.
예를 들어, 주변 블록들은 참조 범위 내에 위치하는 블록 또는 비인접 블록을 포함할 수 있고, 상기 참조 범위는 최대 코딩 유닛 크기 및 최대 코딩 유닛의 개수를 기반으로 결정될 수 있다. 여기서, 최대 코딩 유닛 크기는 최대 코딩 유닛의 폭 또는 너비를 기반으로 결정될 수 있으며, 최대 코딩 유닛은 현재 블록의 상위 블록 또는 CTU를 지칭할 수 있다. 또한, 최대 코딩 유닛의 개수는 현재 픽처에 포함된 최대 코딩 유닛의 개수일 수 있으나, 이에 한정되는 것은 아니다.For example, the neighboring blocks may include a block or a non-adjacent block located within a reference range, and the reference range may be determined based on the maximum coding unit size and the number of maximum coding units. Here, the maximum coding unit size may be determined based on the width or width of the maximum coding unit, and the maximum coding unit may refer to a higher block or CTU of the current block. In addition, the number of maximum coding units may be the number of maximum coding units included in the current picture, but is not limited thereto.
예를 들어, 주변 블록들은 특정 움직임 벡터가 가리키는 위치를 중심으로 하는 특정 영역 내에 위치하는 블록 또는 비인접 블록을 포함할 수 있고, 상기 특정 움직임 벡터는 상기 현재 블록에 인접한 블록들의 움직임 벡터들로부터 도출될 수 있고, 상기 특정 영역의 사이즈는 상기 현재 블록의 크기, 최대 코딩 유닛의 크기 및 주변 블록의 크기 중 적어도 하나를 기반으로 결정될 수 있다. 또는 특정 영역의 사이즈는 기 결정될 수도 있다. 여기서, 특정 움직임 벡터는 상기 현재 블록에 인접한 블록들의 움직임 벡터들 중 최대 절대값의 움직임 벡터로 도출될 수 있다. 또는 상기 현재 블록에 인접한 블록들의 움직임 벡터들의 평균값 또는 평균 움직임 벡터로 도출될 수도 있다. 도 11을 참조하면, 상기 특정 사이즈는 움직임 벡터가 가리키는 위치를 중심으로 수직/수평 방향으로 (p,q) 만큼의 범위를 의미할 수 있다. 즉, 상기 특정 영역은 움직임 벡터가 가리키는 위치를 중심으로 높이가 2p이고, 너비가 2q인 영역일 수 있다. 이때 (p,q)는 현재 블록의 크기, 최대 코딩 유닛의 크기 및 이웃 블록의 크기 중 적어도 하나에 기초하여 결정될 수 있다. 예를 들어, 현재 블록의 인접한 블록 중 좌상측 코너 블록 E0가 절대값이 가장 큰 움직임 벡터를 가지는 경우, 해당 움직임 벡터가 가리키는 위치(x, y)를 중심으로 높이가 2p이고, 너비가 2q인 영역이 결정될 수 있고, 결정된 영역 내의 블록이 움직임 정보 후보를 도출하기 위해 선택 또는 도출될 수 있다.For example, neighboring blocks may include a block or non-adjacent block located within a specific area centered on a position indicated by a specific motion vector, wherein the specific motion vector is derived from motion vectors of blocks adjacent to the current block. The size of the specific region may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block. Alternatively, the size of the specific region may be predetermined. Here, the specific motion vector may be derived as a motion vector of the maximum absolute value among the motion vectors of blocks adjacent to the current block. Alternatively, it may be derived as an average value or an average motion vector of motion vectors of blocks adjacent to the current block. Referring to FIG. 11, the specific size may mean a range of (p, q) in the vertical / horizontal direction with respect to the position indicated by the motion vector. That is, the specific region may be a region having a height of 2p and a width of 2q based on the position indicated by the motion vector. In this case, (p, q) may be determined based on at least one of the size of the current block, the size of the largest coding unit, and the size of the neighboring block. For example, if the upper left corner block E 0 of the neighboring block of the current block has a motion vector having the largest absolute value, the height is 2p and the width is 2q around the position (x, y) indicated by the motion vector. The phosphorus region may be determined and blocks within the determined region may be selected or derived to derive motion information candidates.
예를 들어, 주변 블록들은 상기 현재 블록에 포함된 현재 픽처와 POC(Picture order count) 차이가 가장 적은 참조 픽처를 참조하는 블록 또는 비인접 블록을 포함할 수 있다. 여기서, POC는 디스플레이 순서를 나타낼 수 있으며, 현재 픽처와 POC 차이가 가장 적은 참조 픽처는 현재 픽처와 디스플레이 순서가 가장 가까운 참조 픽처를 의미할 수 있다. 또는 상기 현재 픽처의 디스플레이 순서와의 차이가 가장 작은 참조 픽처를 의미할 수 있다.For example, neighboring blocks may include a block or a non-adjacent block that references a reference picture having a smallest difference in picture order count (POC) from a current picture included in the current block. Here, the POC may indicate a display order, and the reference picture having the smallest difference between the current picture and the POC may mean a reference picture that is closest in display order to the current picture. Alternatively, the reference picture may mean a reference picture having the smallest difference from the display order of the current picture.
디코딩 장치는 상기 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성한다(S1410). 디코딩 장치는 상기 선택 또는 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성할 수 있다. 디코딩 장치는 상기 선택된 주변 블록들의 움직임 정보들을 상기 현재 블록의 움직임 정보 후보들로 도출할 수 있고, 상기 움직임 정보 후보들을 포함하는 상기 움직임 정보 후보 리스트를 구성할 수 있다. 또한, 디코딩 장치는 상기 선택된 주변 블록들의 움직임 정보를 조합하여 도출된 움직임 정보를 상기 현재 블록의 움직임 정보 후보로 도출할 수 있고, 상기 움직임 정보 후보를 포함한 상기 움직임 정보 후보 리스트를 구성할 수 있다. 한편, 상기 움직임 정보 후보 리스트는 머지 후보 리스트 또는 MVP 후보 리스트를 나타낼 수 있고, 상기 움직임 후보는 머지 후보 또는 MVP 후보를 나타낼 수 있다. The decoding apparatus configures the motion information candidate list based on the derived neighboring blocks (S1410). The decoding apparatus may construct the motion information candidate list based on the selected or derived neighboring blocks. The decoding apparatus may derive the motion information of the selected neighboring blocks as motion information candidates of the current block, and construct the motion information candidate list including the motion information candidates. In addition, the decoding apparatus may derive the motion information derived by combining the motion information of the selected neighboring blocks as the motion information candidate of the current block, and configure the motion information candidate list including the motion information candidate. Meanwhile, the motion information candidate list may indicate a merge candidate list or an MVP candidate list, and the motion candidate may indicate a merge candidate or an MVP candidate.
디코딩 장치는 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출한다(S1420). 디코딩 장치는 상기 움직임 정보 후보 리스트의 움직임 정보 후보들 중 특정 움직임 정보 후보를 선택할 수 있고, 상기 선택된 움직임 정보 후보를 상기 현재 블록에 대한 움직임 정보로 도출할 수 있다. 예를 들어, 디코딩 장치는 비트스트림을 통하여 인덱스 정보를 획득할 수 있고, 상기 움직임 정보 후보 리스트의 움직임 정보 후보들 중 상기 인덱스 정보가 가리키는 움직임 정보 후보를 상기 현재 블록에 대한 움직임 정보로 도출할 수 있다. 또는, 디코딩 장치는 비트스트림을 통하여 인덱스 정보 및 MVD(Motion Vector Difference) 를 획득할 수 있고, 상기 움직임 정보 후보 리스트의 움직임 정보 후보들 중 상기 인덱스 정보가 가리키는 움직임 정보 후보를 상기 현재 블록에 대한 MVP(Motion Vector Predictor) 로 도출할 수 있고, 상기 MVP 및 상기 MVD 를 기반으로 상기 현재 블록에 대한 움직임 정보로 도출할 수 있다. 상기 인덱스 정보는 머지 인덱스 또는 MVP 인덱스를 나타낼 수 있다. The decoding apparatus derives the motion information of the current block based on the motion information candidate list (S1420). The decoding apparatus may select a specific motion information candidate among the motion information candidates of the motion information candidate list, and derive the selected motion information candidate as motion information for the current block. For example, the decoding apparatus may obtain index information through the bitstream, and may derive the motion information candidate indicated by the index information among the motion information candidates of the motion information candidate list as the motion information for the current block. . Alternatively, the decoding apparatus may obtain index information and a motion vector difference (MVD) through a bitstream, and among the motion information candidates of the motion information candidate list, the motion information candidate indicated by the index information may be selected as an MVP for the current block. Motion Vector Predictor), and may be derived as motion information for the current block based on the MVP and the MVD. The index information may indicate a merge index or an MVP index.
디코딩 장치는 상기 움직임 정보를 기반으로 상기 현재 블록의 예측된 블록을 생성한다(S1430). 즉, 상기 움직임 정보를 기반으로 상기 현재 블록의 예측을 수행할 수 있다. 상기 움직임 정보를 기반으로 상기 현재 블록의 예측 블록이 도출될 수 있고, 상기 예측 블록을 기반으로 복원 블록이 도출될 수 있다. 구체적으로, 디코딩 장치는 상기 움직임 정보를 기반으로 참조 픽처 내 참조 블록을 도출할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 디코딩 장치는 참조 픽처 리스트의 참조 픽처들 중 상기 참조 픽처 인덱스가 가리키는 참조 픽처를 상기 현재 블록의 참조 픽처로 도출할 수 있고, 상기 참조 픽처 내 상기 움직임 벡터가 가리키는 블록을 상기 현재 블록의 참조 블록으로 도출할 수 있다. 디코딩 장치는 상기 참조 블록을 기반으로 예측 샘플을 생성할 수 있고, 예측 모드에 따라 상기 예측 샘플을 바로 복원 샘플로 이용할 수도 있고, 또는 상기 예측 샘플에 레지듀얼 샘플을 더하여 복원 샘플을 생성할 수도 있다. 디코딩 장치는 상기 현재 블록에 대한 레지듀얼 샘플이 존재하는 경우, 상기 비트스트림으로부터 상기 현재 블록에 대한 레지듀얼에 관한 정보를 획득할 수 있다. 상기 레지듀얼에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플(또는 레지듀얼 샘플 어레이)을 도출할 수 있다. 디코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 샘플을 생성할 수 있고, 상기 복원 샘플을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 디코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다.The decoding apparatus generates a predicted block of the current block based on the motion information (S1430). That is, the prediction of the current block may be performed based on the motion information. A prediction block of the current block may be derived based on the motion information, and a reconstruction block may be derived based on the prediction block. In detail, the decoding apparatus may derive a reference block within a reference picture based on the motion information. The motion information may include a motion vector and a reference picture index. The decoding apparatus may derive the reference picture indicated by the reference picture index among the reference pictures of the reference picture list as the reference picture of the current block, and convert the block indicated by the motion vector in the reference picture as the reference block of the current block. Can be derived. The decoding apparatus may generate a prediction sample based on the reference block, and may directly use the prediction sample as a reconstruction sample according to a prediction mode, or generate a reconstruction sample by adding a residual sample to the prediction sample. . If there is a residual sample for the current block, the decoding apparatus may obtain information about the residual for the current block from the bitstream. The information about the residual may include transform coefficients regarding the residual sample. The decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information. The decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture in order to improve subjective / objective picture quality as necessary.
상술한 본 발명에 따르면 상기 현재 블록의 움직임 정보를 도출하기 위해 인접한 주변 블록에 국한하지 않고, 이미 디코딩된 보다 넓은 영역에서 움직임 정보를 탐색할 수 있고, 이를 통하여 더 다양한 움직임 정보가 상기 현재 블록의 움직임 정보의 후보로 사용되어 예측 정확도를 향상시킬 수 있다.According to the present invention described above, in order to derive the motion information of the current block, the motion information can be searched in a wider area that has already been decoded, and not limited to adjacent neighboring blocks. It can be used as a candidate for motion information to improve prediction accuracy.
또한, 본 발명에 따르면 특정 조건을 기반으로 주변 블록들 중 현재 블록에 적절한 주변 블록들을 선택하고, 선택된 주변 블록들을 기반으로 움직임 정보 후보 리스트를 도출할 수 있고, 이를 통하여 라인 버퍼 및 메모리 밴드위스(memory bandwidth)를 절약할 수 있고, 예측 성능을 향상시켜 코딩 효율을 향상시킬 수 있다.In addition, according to the present invention, it is possible to select neighboring blocks suitable for the current block among the neighboring blocks based on a specific condition, and derive a motion information candidate list based on the selected neighboring blocks. Memory bandwidth can be saved, and coding efficiency can be improved by improving prediction performance.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.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 simultaneously from other steps as 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 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 various 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.
도 15는 컨텐츠 스트리밍 시스템 구조를 개략적으로 나타낸다.15 schematically shows the structure of a content streaming system.
즉, 본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.That is, 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.
또한, 본 발명이 적용되는 디코딩 장치 및 인코딩 장치는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recorder) 등을 포함할 수 있다.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 (for example, 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.
또한, 본 발명이 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.In addition, 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.

Claims (15)

  1. 디코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,In the image decoding method performed by the decoding apparatus,
    현재 블록의 주변 블록들을 도출하는 단계;Deriving neighboring blocks of the current block;
    상기 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성하는 단계;Constructing the motion information candidate list based on the derived neighboring blocks;
    상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하는 단계; 및Deriving motion information of the current block based on the motion information candidate list; And
    상기 움직임 정보를 기반으로 상기 현재 블록의 예측된 블록을 생성하는 단계를 포함하되,Generating a predicted block of the current block based on the motion information;
    상기 주변 블록들은 상기 현재 블록에 인접하지 않은 비인접 블록을 포함하고,The neighboring blocks include non-adjacent blocks that are not adjacent to the current block,
    상기 비인접 블록은 상기 현재 블록에 인접한 블록이 움직임 벡터, 상기 현재 블록이 포함된 최대 코딩 유닛 또는 상기 현재 블록이 포함된 현재 픽처를 기반으로 도출되는 것을 특징으로 하는, 영상 디코딩 방법.And wherein the non-adjacent block is derived based on a motion vector, a maximum coding unit including the current block, or a current picture including the current block.
  2. 제1항에 있어서,The method of claim 1,
    상기 주변 블록들은 스캔 순서가 우하측에서 좌상측 방향으로 설정되는 경우 상기 현재 블록의 좌하측 영역, 하측 영역, 우하측 영역, 우측 영역 및 우상측 영역 중 적어도 하나의 영역에 위치하는 상기 비인접 블록을 포함하는 것을 특징으로 하는, 영상 디코딩 방법.The neighboring blocks are non-adjacent blocks located in at least one of a lower left area, a lower area, a lower right area, a right area, and an upper right area of the current block when the scanning order is set from the lower right side to the upper left direction. Image decoding method comprising a.
  3. 제1항에 있어서,The method of claim 1,
    상기 주변 블록들은 상기 현재 블록이 포함된 최대 코딩 유닛 내에 위치하는 상기 비인접 블록을 포함하는 것을 특징으로 하는, 영상 디코딩 방법.And the neighboring blocks include the non-adjacent block located within a maximum coding unit in which the current block is included.
  4. 제1항에 있어서,The method of claim 1,
    상기 주변 블록들은 상기 현재 블록이 포함된 최대 코딩 유닛의 좌측 주변 최대 코딩 유닛, 좌상측 주변 최대 코딩 유닛 및 상측 주변 최대 코딩 유닛 중 어느 하나의 내에 위치하는 상기 비인접 블록을 포함하는 것을 특징으로 하는, 영상 디코딩 방법.The neighboring blocks may include the non-adjacent block located in any one of a left peripheral maximum coding unit, a left upper peripheral maximum coding unit, and an upper peripheral maximum coding unit of the maximum coding unit including the current block. , Video decoding method.
  5. 제1항에 있어서,The method of claim 1,
    상기 주변 블록들은 상기 현재 블록의 좌상단 샘플 포지션을 중심으로 특정 샘플 거리 내의 영역에 위치하는 상기 비인접 블록을 포함하는 것을 특징으로 하는, 영상 디코딩 방법.And wherein the neighboring blocks include the non-adjacent block located in an area within a specific sample distance with respect to the upper left sample position of the current block.
  6. 제1항에 있어서,The method of claim 1,
    상기 주변 블록들은 최대 범위(max range) 내에 위치하는 상기 비인접 블록을 포함하고,The neighboring blocks include the non-adjacent block located within a max range,
    상기 최대 범위는 상기 현재 블록의 사이즈의 4배, 9배 및 16배 중 하나이고, 상기 현재 블록이 상기 최대 범위 내에서 가장 우하측에 위치하는 것을 특징으로 하는, 영상 디코딩 방법.And wherein the maximum range is one of four, nine, and sixteen times the size of the current block, wherein the current block is located at the bottom right in the maximum range.
  7. 제1항에 있어서,The method of claim 1,
    상기 주변 블록들은 참조 범위 내에 위치하는 상기 비인접 블록을 포함하고,The peripheral blocks include the non-adjacent block located within a reference range,
    상기 참조 범위는 최대 코딩 유닛 크기 및 최대 코딩 유닛의 개수를 기반으로 결정되는 것을 특징으로 하는, 영상 디코딩 방법.And the reference range is determined based on a maximum coding unit size and the number of maximum coding units.
  8. 제1항에 있어서,The method of claim 1,
    상기 주변 블록들은 특정 움직임 벡터가 가리키는 위치를 중심으로 하는 특정 영역 내에 위치하는 상기 비인접 블록을 포함하고,The neighboring blocks include the non-adjacent block located within a specific area about a position indicated by a specific motion vector,
    상기 특정 움직임 벡터는 상기 현재 블록에 인접한 블록들의 움직임 벡터들로부터 도출되고,The specific motion vector is derived from motion vectors of blocks adjacent to the current block,
    상기 특정 영역의 사이즈는 상기 현재 블록의 크기, 최대 코딩 유닛의 크기 및 주변 블록의 크기 중 적어도 하나를 기반으로 결정되는 것을 특징으로 하는, 영상 디코딩 방법.And the size of the specific region is determined based on at least one of a size of the current block, a size of a maximum coding unit, and a size of a neighboring block.
  9. 제1항에 있어서,The method of claim 1,
    상기 주변 블록들은 상기 현재 블록에 포함된 현재 픽처와 POC(Picture order count) 차이가 가장 적은 참조 픽처를 참조하는 상기 비인접 블록을 포함하는 것을 특징으로 하는, 영상 디코딩 방법.And the neighboring blocks include the non-adjacent block referring to a reference picture having a smallest difference in picture order count (POC) from a current picture included in the current block.
  10. 인코딩 장치에 의하여 수행되는 영상 인코딩 방법에 있어서,In the video encoding method performed by the encoding device,
    현재 블록의 주변 블록들을 도출하는 단계;Deriving neighboring blocks of the current block;
    상기 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성하는 단계;Constructing the motion information candidate list based on the derived neighboring blocks;
    상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하는 단계;Deriving motion information of the current block based on the motion information candidate list;
    상기 움직임 정보를 기반으로 상기 현재 블록의 예측된 블록을 생성하는 단계; 및Generating a predicted block of the current block based on the motion information; And
    상기 현재 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 단계를 포함하되,Generating, encoding, and outputting prediction information about the current block;
    상기 주변 블록들은 상기 현재 블록에 인접하지 않은 비인접 블록을 포함하고,The neighboring blocks include non-adjacent blocks that are not adjacent to the current block,
    상기 비인접 블록은 상기 현재 블록에 인접한 블록이 움직임 벡터, 상기 현재 블록이 포함된 최대 코딩 유닛 또는 상기 현재 블록이 포함된 현재 픽처를 기반으로 도출되는 것을 특징으로 하는, 영상 인코딩 방법.And wherein the non-adjacent block is derived based on a motion vector, a maximum coding unit including the current block, or a current picture including the current block.
  11. 제10항에 있어서,The method of claim 10,
    상기 주변 블록들은 스캔 순서가 우하측에서 좌상측 방향으로 설정되는 경우 상기 현재 블록의 좌하측 영역, 하측 영역, 우하측 영역, 우측 영역 및 우상측 영역 중 적어도 하나의 영역에 위치하는 상기 비인접 블록을 포함하는 것을 특징으로 하는, 영상 인코딩 방법.The neighboring blocks are non-adjacent blocks located in at least one of a lower left area, a lower area, a lower right area, a right area, and an upper right area of the current block when the scanning order is set from the lower right side to the upper left direction. Image encoding method comprising a.
  12. 제10항에 있어서,The method of claim 10,
    상기 주변 블록들은 상기 현재 블록이 포함된 최대 코딩 유닛 내에 위치하는 상기 비인접 블록을 포함하는 것을 특징으로 하는, 영상 인코딩 방법.And the neighboring blocks include the non-contiguous block located within a maximum coding unit in which the current block is included.
  13. 제10항에 있어서,The method of claim 10,
    상기 주변 블록들은 상기 현재 블록이 포함된 최대 코딩 유닛의 좌측 주변 최대 코딩 유닛, 좌상측 주변 최대 코딩 유닛 및 상측 주변 최대 코딩 유닛 중 어느 하나의 내에 위치하는 상기 비인접 블록을 포함하는 것을 특징으로 하는, 영상 인코딩 방법.The neighboring blocks may include the non-adjacent block located in any one of a left peripheral maximum coding unit, a left upper peripheral maximum coding unit, and an upper peripheral maximum coding unit of the maximum coding unit including the current block. , Video encoding method.
  14. 제10항에 있어서,The method of claim 10,
    상기 주변 블록들은 상기 현재 블록의 좌상단 샘플 포지션을 중심으로 특정 샘플 거리 내의 영역에 위치하는 상기 비인접 블록을 포함하는 것을 특징으로 하는, 영상 인코딩 방법.And the neighboring blocks include the non-adjacent block located in an area within a specific sample distance with respect to the upper left sample position of the current block.
  15. 영상 디코딩 방법을 수행하는 디코딩 장치에 있어서,A decoding apparatus for performing an image decoding method,
    현재 블록에 대한 예측 정보를 획득하는 엔트로피 디코딩부; 및An entropy decoding unit for obtaining prediction information on the current block; And
    현재 블록의 주변 블록들을 도출하고, 상기 도출된 주변 블록들을 기반으로 상기 움직임 정보 후보 리스트를 구성하고, 상기 움직임 정보 후보 리스트를 기반으로 상기 현재 블록의 움직임 정보를 도출하고, 상기 움직임 정보를 기반으로 상기 현재 블록의 예측된 블록을 생성하는 예측부를 포함하되,Deriving neighboring blocks of the current block, constructing the motion information candidate list based on the derived neighboring blocks, deriving motion information of the current block based on the motion information candidate list, and based on the motion information A prediction unit generating a predicted block of the current block,
    상기 주변 블록들은 상기 현재 블록에 인접하지 않은 비인접 블록을 포함하고,The neighboring blocks include non-adjacent blocks that are not adjacent to the current block,
    상기 비인접 블록은 상기 현재 블록에 인접한 블록이 움직임 벡터, 상기 현재 블록이 포함된 최대 코딩 유닛 또는 상기 현재 블록이 포함된 현재 픽처를 기반으로 도출되는 것을 특징으로 하는, 디코딩 장치.And wherein the non-adjacent block is derived based on a motion vector, a maximum coding unit including the current block, or a current picture including the current block.
PCT/KR2019/007595 2018-06-25 2019-06-24 Method and device for image decoding according to inter-prediction using plurality of neighboring blocks in image coding system WO2020004879A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2018-0073032 2018-06-25
KR20180073032 2018-06-25

Publications (1)

Publication Number Publication Date
WO2020004879A1 true WO2020004879A1 (en) 2020-01-02

Family

ID=68985969

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/007595 WO2020004879A1 (en) 2018-06-25 2019-06-24 Method and device for image decoding according to inter-prediction using plurality of neighboring blocks in image coding system

Country Status (1)

Country Link
WO (1) WO2020004879A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023055967A1 (en) * 2021-09-29 2023-04-06 Beijing Dajia Internet Information Technology Co., Ltd. Candidate derivation for affine merge mode in video coding
WO2024010309A1 (en) * 2022-07-06 2024-01-11 엘지전자 주식회사 Image encoding/decoding method and device, and recording medium having bitstream stored therein

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140105302A1 (en) * 2011-06-30 2014-04-17 JVC Kenwood Corporation Picture encoding device, picture encoding method, picture encoding program, picture decoding device, picture decoding method, and picture decoding program
KR20140083040A (en) * 2011-10-21 2014-07-03 노키아 코포레이션 Method for video coding and an apparatus
KR20140122195A (en) * 2013-04-05 2014-10-17 삼성전자주식회사 Method and apparatus for video encoding for Determining Prediction Candidate, method and apparatus for Determining Inter Prediction Candidate
KR20150112470A (en) * 2014-03-28 2015-10-07 한국전자통신연구원 Video encoding and decoding method and apparatus using the same
KR20180048736A (en) * 2015-09-24 2018-05-10 엘지전자 주식회사 Inter prediction method and apparatus in video coding system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140105302A1 (en) * 2011-06-30 2014-04-17 JVC Kenwood Corporation Picture encoding device, picture encoding method, picture encoding program, picture decoding device, picture decoding method, and picture decoding program
KR20140083040A (en) * 2011-10-21 2014-07-03 노키아 코포레이션 Method for video coding and an apparatus
KR20140122195A (en) * 2013-04-05 2014-10-17 삼성전자주식회사 Method and apparatus for video encoding for Determining Prediction Candidate, method and apparatus for Determining Inter Prediction Candidate
KR20150112470A (en) * 2014-03-28 2015-10-07 한국전자통신연구원 Video encoding and decoding method and apparatus using the same
KR20180048736A (en) * 2015-09-24 2018-05-10 엘지전자 주식회사 Inter prediction method and apparatus in video coding system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023055967A1 (en) * 2021-09-29 2023-04-06 Beijing Dajia Internet Information Technology Co., Ltd. Candidate derivation for affine merge mode in video coding
WO2024010309A1 (en) * 2022-07-06 2024-01-11 엘지전자 주식회사 Image encoding/decoding method and device, and recording medium having bitstream stored therein

Similar Documents

Publication Publication Date Title
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
WO2020189960A1 (en) Method and device for signaling information on chroma format
WO2020197038A1 (en) Intra prediction method and device based on intra sub-partitions in image coding system
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
WO2020013480A1 (en) Method for coding intra-prediction mode, and device for same
WO2019209026A1 (en) Method and apparatus for inter prediction in video coding system
WO2019212230A1 (en) Method and apparatus for decoding image by using transform according to block size in image coding system
WO2021118261A1 (en) Method and device for signaling image information
WO2021118265A1 (en) Video or image coding employing adaptive loop filter
WO2020004879A1 (en) Method and device for image decoding according to inter-prediction using plurality of neighboring blocks in image coding system
WO2020141884A1 (en) Method and apparatus for coding image by using mmvd based on cpr
WO2019225932A1 (en) Method and apparatus for decoding image by using dmvr in image coding system
WO2020141885A1 (en) Image coding method and device using deblocking filtering
WO2019203533A1 (en) Inter-prediction method in accordance with multiple motion model, and device thereof
WO2021118263A1 (en) Method and device for signaling image information
WO2021118262A1 (en) Method and device for signaling video information applicable at picture level or slice level
WO2020145656A1 (en) Method and device for signaling whether tmvp candidate is available
WO2020130629A1 (en) Image coding method based on multiple reference line intra prediction, and device therefor
WO2020017841A1 (en) Method and apparatus for performing inter-prediction on basis of merge mode
WO2020040439A1 (en) Intra prediction method and device in image coding system
WO2019212223A1 (en) Image decoding method using dmvr in image coding system and device therefor
WO2019203513A1 (en) Image decoding method and apparatus according to inter prediction using dmvd in image coding system
WO2019203527A1 (en) Method and device for image decoding according to inter-prediction using plurality of neighboring blocks in image coding system

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

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

Country of ref document: EP

Kind code of ref document: A1