WO2012177052A2 - 인터 예측 방법 및 그 장치 - Google Patents

인터 예측 방법 및 그 장치 Download PDF

Info

Publication number
WO2012177052A2
WO2012177052A2 PCT/KR2012/004882 KR2012004882W WO2012177052A2 WO 2012177052 A2 WO2012177052 A2 WO 2012177052A2 KR 2012004882 W KR2012004882 W KR 2012004882W WO 2012177052 A2 WO2012177052 A2 WO 2012177052A2
Authority
WO
WIPO (PCT)
Prior art keywords
motion information
prediction
motion
block
reference picture
Prior art date
Application number
PCT/KR2012/004882
Other languages
English (en)
French (fr)
Other versions
WO2012177052A3 (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
Priority claimed from KR1020120005948A external-priority patent/KR20120140592A/ko
Application filed by 한국전자통신연구원, 경희대학교 산학협력단 filed Critical 한국전자통신연구원
Priority to US14/127,617 priority Critical patent/US9532042B2/en
Publication of WO2012177052A2 publication Critical patent/WO2012177052A2/ko
Publication of WO2012177052A3 publication Critical patent/WO2012177052A3/ko
Priority to US15/337,309 priority patent/US9854248B2/en
Priority to US15/337,426 priority patent/US10917645B2/en
Priority to US15/810,867 priority patent/US10085031B2/en
Priority to US16/107,208 priority patent/US10536704B2/en
Priority to US16/696,319 priority patent/US10986348B2/en
Priority to US17/198,720 priority patent/US11412231B2/en
Priority to US17/857,765 priority patent/US11706423B2/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/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • 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/573Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/109Selection of coding mode or of prediction mode among a plurality of temporal predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/117Filters, e.g. for pre-processing or post-processing
    • 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/124Quantisation
    • 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/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • 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/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/146Data rate or code amount at the encoder output
    • H04N19/15Data rate or code amount at the encoder output by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/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/577Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • the present invention relates to image processing, and more particularly, to an inter prediction method and an apparatus thereof.
  • an inter prediction technique for predicting a pixel value included in a current picture from a previous and / or subsequent picture in time, and for predicting a pixel value included in a current picture using pixel information in the current picture.
  • An intra prediction technique an entropy encoding technique of allocating a short code to a symbol with a high frequency of appearance and a long code to a symbol with a low frequency of appearance may be used.
  • An object of the present invention is to provide a video encoding method and apparatus for reducing computational complexity and improving coding efficiency.
  • Another object of the present invention is to provide an image decoding method and apparatus for reducing computational complexity and improving encoding efficiency.
  • Another technical problem of the present invention is to provide an inter prediction method and apparatus for reducing computational complexity and improving coding efficiency.
  • Another technical problem of the present invention is to provide a method and apparatus for determining a merge candidate capable of reducing computational complexity and improving coding efficiency.
  • Another technical problem of the present invention is to provide a method and apparatus for determining motion information that can reduce computational complexity and improve coding efficiency.
  • Another technical problem of the present invention is to provide a method and apparatus for deriving temporal motion information that can reduce computational complexity and improve coding efficiency.
  • An embodiment of the present invention is an inter prediction method.
  • the method includes deriving motion information of a current block and generating a prediction block for the current block based on the derived motion information, wherein the derived motion information includes L0 motion information and L1 motion information.
  • the prediction block generation step one of uni-prediction and bi-prediction is selectively performed, and the uni-prediction is prediction performed based on the L0 motion information.
  • the pair prediction is prediction performed based on the L0 motion information and the L1 motion information.
  • the L0 motion information includes an L0 motion vector and an L0 reference picture number, wherein the L0 reference picture number is a number assigned to an L0 reference picture according to a picture order count (POC) order and the L1 motion.
  • the information includes an L1 motion vector and an L1 reference picture number.
  • the L1 reference picture number is a number assigned to an L1 reference picture according to a POC order.
  • the prediction block generation step the L0 motion information and the L1 motion information are added. And selectively performing one of the single prediction and the pair prediction, wherein the L0 motion vector and the L1 motion vector are the same and the L0 reference picture number and the L1 reference picture number are the same. It may be determined that the L0 motion information and the L1 motion information are the same.
  • the prediction block is generated by performing L0 motion compensation on the current block based on the L0 motion information. Can be.
  • the prediction block generating step may be performed by performing L0 motion compensation on the current block based on the L0 motion information to compensate for the L0 motion.
  • Generating a block generating an L1 motion compensated block by performing L1 motion compensation on the current block based on the L1 motion information, and weighting the L0 motion compensated block and the L1 motion compensated block
  • the method may further include generating the prediction block by performing an average.
  • the predictive block generating step may include the L0 motion compensated block by performing L0 motion compensation on the current block based on the L0 reference picture. Generating an L1 motion compensated block by performing L1 motion compensation on the current block based on a reference picture that is not the same as the L1 reference picture among the reference pictures forming an L1 reference picture list, and The method may further include generating the prediction block by performing a weighted average on the L0 motion compensated block and the L1 motion compensated block.
  • the method may further comprise determining whether default weighted prediction or non-default weighted prediction is applied to the current block.
  • the prediction block generation step one of the default weight prediction and the non-default weight prediction may be selectively performed according to the determination result.
  • one of the single prediction and the pair prediction may be selectively performed according to whether the size of the current block is smaller than a predetermined size.
  • the method may further include setting only the L0 motion information as the motion information of the current block among the L0 motion information and the L1 motion information.
  • the prediction block may be generated by performing L0 motion compensation on the current block based on the L0 motion information.
  • the apparatus includes a motion estimator for deriving motion information of a current block and a motion compensator for generating a prediction block for the current block based on the derived motion information.
  • the derived motion information includes both L0 motion information and L1 motion information, and the motion compensator selectively performs one of uni-prediction and bi-prediction, and the short prediction is performed on the L0.
  • the prediction is performed based on the motion information, and the pair prediction is the prediction performed based on the L0 motion information and the L1 motion information.
  • Another embodiment of the present invention is a video decoding method.
  • the method includes deriving motion information of a current block, generating a prediction block for the current block based on the derived motion information, and reconstructing a block for the current block based on the generated prediction block. And generating, wherein the derived motion information includes both L0 motion information and L1 motion information.
  • the prediction block generation step one of uni-prediction and bi-prediction is generated.
  • the short prediction is prediction performed based on the L0 motion information
  • the pair prediction is prediction performed based on the L0 motion information and the L1 motion information.
  • the L0 motion information includes an L0 motion vector and an L0 reference picture number
  • the L0 reference picture number is a number assigned to an L0 reference picture according to a picture order count (POC) order
  • the L1 motion includes an L1 motion vector and an L1 reference picture number.
  • the L1 reference picture number is a number assigned to an L1 reference picture according to a POC order.
  • the prediction block generation step the L0 motion information and the L1 motion information are added. And selectively performing one of the single prediction and the pair prediction, wherein the L0 motion vector and the L1 motion vector are the same and the L0 reference picture number and the L1 reference picture number are the same. It may be determined that the L0 motion information and the L1 motion information are the same.
  • the prediction block is generated by performing L0 motion compensation on the current block based on the L0 motion information. Can be.
  • the prediction block generating step is performed by performing L0 motion compensation on the current block based on the L0 motion information to compensate for L0 motion.
  • Generating a block generating an L1 motion compensated block by performing L1 motion compensation on the current block based on the L1 motion information, and weighting the L0 motion compensated block and the L1 motion compensated block
  • the method may further include generating the prediction block by performing an average.
  • the method may further comprise determining whether default weighted prediction or non-default weighted prediction is applied to the current block.
  • the prediction block generation step one of the default weight prediction and the non-default weight prediction may be selectively performed according to the determination result.
  • whether the default weight prediction or the non-default weight prediction is applied to the current block may be indicated by a weight prediction index.
  • inter prediction method According to the inter prediction method according to the present invention, computational complexity may be reduced and encoding efficiency may be improved.
  • the computational complexity can be reduced and the coding efficiency can be improved.
  • FIG. 1 is a block diagram illustrating a configuration of an image encoding apparatus according to an embodiment of the present invention.
  • FIG. 2 is a block diagram illustrating a configuration of an image decoding apparatus according to an embodiment of the present invention.
  • FIG. 3 is a flowchart schematically illustrating an embodiment of an inter prediction method.
  • FIG. 4 is a diagram schematically illustrating an embodiment of an inter prediction method when bidirectional prediction is applied.
  • FIG. 5 is a diagram schematically showing another embodiment of an inter prediction method when bidirectional prediction is applied.
  • FIG. 6 is a diagram schematically illustrating an embodiment of motion information of an encoded image.
  • FIG. 7 is a conceptual diagram schematically illustrating an embodiment of an inter prediction method according to the present invention.
  • FIG. 8 is a conceptual diagram schematically showing another embodiment of an inter prediction method according to the present invention.
  • FIG. 9 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing default weight prediction according to the embodiment of FIG. 7.
  • FIG. 10 is a flowchart schematically showing another embodiment of an inter prediction method according to the present invention.
  • FIG. 11 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing inter prediction according to the embodiment of FIG. 10.
  • FIG. 12 is a conceptual diagram schematically illustrating another embodiment of an inter prediction method according to the present invention.
  • FIG. 13 is a conceptual diagram schematically showing still another embodiment of the inter prediction method according to the present invention.
  • FIG. 14 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing default weight prediction according to the embodiment of FIG. 12.
  • 15 is a flowchart schematically illustrating an embodiment of a merge candidate determining method according to the present invention when merge is applied to a current block.
  • FIG. 16 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing a merge candidate determination process according to the embodiment of FIG. 15.
  • 17 is a flowchart schematically illustrating an embodiment of a method for deriving temporal motion information according to the present invention.
  • FIG. 18 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing a process of deriving temporal motion information according to the embodiment of FIG. 17.
  • 19 is a flowchart schematically illustrating another embodiment of a method for deriving temporal motion information of a current block according to the present invention.
  • FIG. 20 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing a process of deriving temporal motion information according to the embodiment of FIG. 19.
  • 21 is a flowchart schematically illustrating an embodiment of a method of determining a call picture when deriving temporal motion information of a current block.
  • FIG. 22 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing a call picture determination process according to the embodiment of FIG. 21.
  • FIG. 23 is a flowchart schematically illustrating an embodiment of a method for determining motion information of a current block when all blocks used for deriving motion information candidates do not have motion information.
  • FIG. 24 is a block diagram schematically illustrating an example of an inter prediction apparatus capable of performing a motion information determination process according to the embodiment of FIG. 23.
  • 25 is a flowchart schematically illustrating another embodiment of a method for determining motion information of a current block when all blocks used for deriving motion information candidates do not have motion information.
  • FIG. 26 is a block diagram schematically illustrating an example of an inter prediction apparatus capable of performing a motion information determination process according to the embodiment of FIG. 25.
  • first and second may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.
  • the first component may be referred to as the second component, and similarly, the second component may also be referred to as the first component.
  • each component shown in the embodiments of the present invention are shown independently to represent different characteristic functions, and do not mean that each component is made of separate hardware or one software component unit.
  • each component is included in each component for convenience of description, and at least two of the components may be combined into one component, or one component may be divided into a plurality of components to perform a function.
  • Integrated and separate embodiments of the components are also included within the scope of the present invention without departing from the spirit of the invention.
  • the components may not be essential components for performing essential functions in the present invention, but may be optional components for improving performance.
  • the present invention can be implemented including only the components essential for implementing the essentials of the present invention except for the components used for improving performance, and the structure including only the essential components except for the optional components used for improving performance. Also included in the scope of the present invention.
  • FIG. 1 is a block diagram illustrating a configuration of an image encoding apparatus according to an embodiment of the present invention.
  • the image encoding apparatus 100 may include a motion predictor 111, a motion compensator 112, an intra predictor 120, a switch 115, a subtractor 125, and a converter 130. And a quantization unit 140, an entropy encoding unit 150, an inverse quantization unit 160, an inverse transform unit 170, an adder 175, a filter unit 180, and a reference picture buffer 190.
  • the image encoding apparatus 100 may encode an input image in an intra mode or an inter mode and output a bitstream.
  • Intra prediction means intra prediction and inter prediction means inter prediction.
  • the switch 115 may be switched to intra, and in the inter mode, the switch 115 may be switched to inter.
  • the image encoding apparatus 100 may generate a prediction block for an input block of an input image and then encode a residual between the input block and the prediction block.
  • the intra predictor 120 may generate a prediction block by performing spatial prediction using pixel values of blocks that are already encoded around the current block.
  • the motion estimator 111 may obtain a motion vector by finding a region that best matches the input block in the reference image stored in the reference picture buffer 190 during the motion prediction process. have.
  • the motion compensator 112 may generate a prediction block by performing motion compensation using the motion vector.
  • the subtractor 125 may generate a residual block by the difference between the input block and the generated prediction block.
  • the transform unit 130 may output a transform coefficient by performing a transform on the residual block.
  • the quantization unit 140 may output the quantized coefficient by quantizing the input transform coefficient according to the quantization parameter.
  • the entropy encoder 150 performs entropy encoding based on values (eg, quantized coefficients) calculated in the quantization unit 140 and / or encoding parameter values calculated in the encoding process to perform a bitstream ( bit stream).
  • the entropy encoder 150 may use an encoding method such as exponential golomb, context-adaptive variable length coding (CAVLC), or context-adaptive binary arithmetic coding (CABAC) for entropy encoding.
  • CAVLC context-adaptive variable length coding
  • CABAC context-adaptive binary arithmetic coding
  • the image encoding apparatus performs inter prediction encoding, that is, inter-frame prediction encoding
  • the current encoded image needs to be decoded and stored to be used as a reference image.
  • the quantized coefficients are inversely quantized by the inverse quantizer 160 and inversely transformed by the inverse transformer 170.
  • the inverse quantized and inverse transformed coefficients are added to the prediction block by the adder 175 and a reconstruction block is generated.
  • the reconstruction block passes through the filter unit 180, and the filter unit 180 applies at least one or more of a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the reconstruction block or the reconstruction picture. can do.
  • the filter unit 180 may be referred to as an adaptive in-loop filter.
  • the deblocking filter may remove block distortion and / or blocking artifacts that occur at the boundaries between blocks.
  • SAO can add an appropriate offset to the pixel value to compensate for coding errors.
  • the ALF may perform filtering based on a value obtained by comparing the reconstructed image with the original image, and may be performed only when high efficiency is applied.
  • the reconstructed block that has passed through the filter unit 180 may be stored in the reference picture buffer 190.
  • FIG. 2 is a block diagram illustrating a configuration of an image decoding apparatus according to an embodiment of the present invention.
  • the image decoding apparatus 200 may include an entropy decoder 210, an inverse quantizer 220, an inverse transformer 230, an intra predictor 240, a motion compensator 250, and an adder ( 255, a filter unit 260, and a reference picture buffer 270.
  • the image decoding apparatus 200 may receive a bitstream output from the encoder and perform decoding in an intra mode or an inter mode, and output a reconstructed image, that is, a reconstructed image.
  • the switch In the intra mode, the switch may be switched to intra, and in the inter mode, the switch may be switched to inter.
  • the image decoding apparatus 200 may obtain a residual block from the input bitstream, generate a prediction block, and then add the residual block and the prediction block to generate a reconstructed block, that is, a reconstruction block.
  • the entropy decoder 210 may entropy decode the input bitstream according to a probability distribution to generate symbols including symbols in the form of quantized coefficients.
  • the entropy decoding method is similar to the entropy coding method described above.
  • the entropy decoding method When the entropy decoding method is applied, a small number of bits are allocated to a symbol having a high probability of occurrence and a large number of bits are allocated to a symbol having a low probability of occurrence, whereby the size of the bit string for each symbol is increased. Can be reduced. Therefore, the compression performance of image decoding can be improved through an entropy decoding method.
  • the quantized coefficient is inversely quantized by the inverse quantizer 220 and inversely transformed by the inverse transformer 230, and as a result of the inverse quantization / inverse transformation of the quantized coefficient, a residual block may be generated.
  • the intra predictor 240 may generate a prediction block by performing spatial prediction using pixel values of blocks that are already decoded around the current block.
  • the motion compensator 250 may generate a predictive block by performing motion compensation using the reference image stored in the motion vector and the reference picture buffer 270.
  • the residual block and the prediction block may be added through the adder 255, and the added block may pass through the filter unit 260.
  • the filter unit 260 may apply at least one or more of the deblocking filter, SAO, and ALF to the reconstructed block or the reconstructed picture.
  • the filter unit 260 may output a reconstructed image, that is, a reconstructed image.
  • the reconstructed picture may be stored in the reference picture buffer 270 and used for inter prediction.
  • a block means a unit of image encoding and decoding.
  • an encoding or decoding unit refers to a divided unit when an image is divided and encoded or decoded, and thus, a coding unit (CU), a prediction unit (PU), and a transformation unit (TU). It may be called a Transform Unit, a transform block, or the like.
  • One block may be further divided into smaller sub-blocks.
  • "picture” may be replaced with "frame”, “field” and / or “slice” according to the context, and this division may be easily performed by those skilled in the art. There will be.
  • P pictures, B pictures, and forward B pictures described below may be replaced with P slices, B slices, and forward B slices according to context.
  • FIG. 3 is a flowchart schematically illustrating an embodiment of an inter prediction method.
  • the encoder and the decoder may derive motion information about the current block (S310).
  • the encoder and the decoder may derive motion information of the current block and then perform inter prediction and / or motion compensation based on the derived motion information.
  • the encoder and the decoder use the motion information of the collocated block corresponding to the current block in the reconstructed neighboring block and / or the already reconstructed reference picture, thereby encoding / decoding efficiency.
  • the reconstructed neighboring block is a block in the current picture that is already encoded and / or decoded and reconstructed, and may include a block adjacent to the current block and / or a block located at an outer corner of the current block.
  • the encoder and the decoder may determine a predetermined relative position based on a block existing at the same position as the current block in the reference picture, and determine the predetermined relative position (exist at the same position as the current block).
  • the call block can be derived based on the location of the inside and / or outside of the block).
  • the motion information derivation scheme may vary depending on the prediction mode of the current block.
  • Prediction modes applied for inter prediction may include Advanced Motion Vector Predictor (AMVP), merge, and the like.
  • AMVP Advanced Motion Vector Predictor
  • the encoder and the decoder may generate a predicted motion vector candidate list using the motion vector of the reconstructed neighboring block and / or the motion vector of the call block. That is, the motion vector of the reconstructed neighboring block and / or the motion vector of the call block may be used as the prediction motion vector candidate.
  • the encoder may transmit a predicted motion vector index indicating an optimal predicted motion vector selected from the predicted motion vector candidates included in the list to the decoder.
  • the decoder may select the predicted motion vector of the current block among the predicted motion vector candidates included in the predicted motion vector candidate list by using the predicted motion vector index.
  • the encoder can obtain a motion vector difference (MVD) between the motion vector of the current block and the predictive motion vector, and can encode the same and transmit the same to the decoder.
  • the decoder may decode the received motion vector difference and derive the motion vector of the current block through the sum of the decoded motion vector difference and the predicted motion vector.
  • the encoder and the decoder may generate the merge candidate list using the motion information of the reconstructed neighboring block and / or the motion information of the call block. That is, the encoder and the decoder may use the motion information of the reconstructed neighboring block and / or the call block as a merge candidate for the current block.
  • the encoder may select a merge candidate capable of providing an optimal encoding efficiency among the merge candidates included in the merge candidate list as motion information for the current block.
  • a merge index indicating the selected merge candidate may be included in the bitstream and transmitted to the decoder.
  • the decoder may select one of the merge candidates included in the merge candidate list using the transmitted merge index, and determine the selected merge candidate as motion information of the current block. Therefore, when the merge mode is applied, the motion information of the restored neighboring block and / or the call block may be used as the motion information of the current block.
  • the motion information of the reconstructed neighboring block and / or the motion information of the call block may be used to derive the motion information of the current block.
  • the motion information derived from the reconstructed neighboring block is referred to as spatial motion information
  • the motion information derived from the call block is referred to as temporal motion information.
  • a motion vector derived from a reconstructed neighboring block may be referred to as a spatial motion vector
  • a motion vector derived from a call block may be referred to as a temporal motion vector.
  • the encoder and the decoder may generate a prediction block of the current block by performing motion compensation on the current block based on the derived motion information (S320).
  • the prediction block may mean a motion compensated block generated as a result of performing motion compensation on the current block.
  • the plurality of motion compensated blocks may constitute one motion compensated image. Therefore, in the embodiments described below, the prediction block may be referred to as a 'motion compensated block' and / or a 'motion compensated image' according to the context, and this division may be easily performed by those skilled in the art. You will be able to.
  • a picture on which inter prediction is performed may include a P picture and a B picture.
  • the P picture may refer to a picture in which unidirectional prediction using one reference picture is performed
  • the B picture refers to a picture in which forward, reverse or bidirectional prediction using one or more reference pictures may be performed. can do.
  • inter prediction may be performed using one forward reference picture (past picture) and one backward reference picture (future picture).
  • prediction may be performed using two forward reference pictures, or prediction may be performed using two backward reference pictures.
  • the reference pictures may be managed by a reference picture list.
  • One reference picture is used in the P picture, and the reference picture may be allocated to reference picture list 0 (L0 or List0).
  • Two reference pictures are used in the B picture, and the two reference pictures may be assigned to the reference picture list 0 and the reference picture list 1 (L1 or List1), respectively.
  • the L0 reference picture list may have the same meaning as the reference picture list 0
  • the L1 reference picture list may have the same meaning as the reference picture list 1.
  • the forward reference picture may be assigned to the reference picture list 0 and the backward reference picture may be assigned to the reference picture list1.
  • the method of allocating the reference picture is not limited thereto, and the forward reference picture may be assigned to the reference picture list 1 and the backward reference picture may be assigned to the reference picture list 0.
  • a reference picture assigned to reference picture list 0 is referred to as an L0 reference picture
  • a reference picture assigned to reference picture list 1 is referred to as an L1 reference picture.
  • Reference pictures may be assigned to the reference picture list in descending order, generally according to the reference picture number.
  • the reference picture number may mean a number assigned to each reference picture in the order of POC (Picture Order Count), and the POC order may mean a display order and / or a time order of the pictures.
  • POC Picture Order Count
  • two reference pictures having the same reference picture number may correspond to the same reference picture.
  • Reference pictures allocated to the reference picture list may be rearranged by a reference picture list reordering (RPLR) or a memory management control (MMCO) command.
  • RPLR reference picture list reordering
  • MMCO memory management control
  • unidirectional prediction using one L0 reference picture may be performed on a P picture, and forward, reverse, or bidirectional using one L0 reference picture and one L1 reference picture, that is, two reference pictures, in a B picture. Prediction can be performed. Prediction using one reference picture may be called uni-prediction, and prediction using two reference pictures including an L0 reference picture and an L1 reference picture may be called bi-prediction.
  • Bi-prediction may be used as a concept including all of forward prediction, backward prediction, and bidirectional prediction.
  • prediction using two reference pictures L0 reference picture and L1 reference picture
  • bidirectional prediction may mean pair prediction, and may be understood as a concept including both forward, backward, and bidirectional prediction using two reference pictures (L0 reference picture and L1 reference picture).
  • forward prediction or backward prediction may be performed even when bi-prediction is performed.
  • prediction using only one reference picture is referred to as unidirectional prediction.
  • unidirectional prediction may mean uniprediction and should be understood as a concept including only prediction using one reference picture.
  • prediction direction information information indicating whether unidirectional prediction (uniprediction) or bidirectional prediction (biprediction) is applied to a block on which prediction is performed.
  • FIG. 4 is a diagram schematically illustrating an embodiment of an inter prediction method when bidirectional prediction is applied.
  • each block on which prediction is performed may have two reference pictures (L0 reference picture and L1 reference picture).
  • each block in which the bidirectional prediction is performed may have two motion information.
  • the motion information may include a reference picture number and a motion vector.
  • the encoder and the decoder may select one reference picture from each of the reference picture list 0 and the reference picture list 1 and use the same for prediction. That is, two reference pictures including an L0 reference picture and an L1 reference picture may be used for bidirectional prediction.
  • motion information corresponding to the L0 reference picture is referred to as L0 motion information
  • motion information corresponding to the L1 reference picture is referred to as L1 motion information
  • motion compensation using the L0 motion information is referred to as L0 motion compensation
  • motion compensation using the L1 motion information is referred to as L1 motion compensation.
  • the encoder and the decoder may generate an L0 motion compensated block by performing an L0 motion compensation 410 on a current block by using the L0 motion information and the L0 reference picture list.
  • the encoder and the decoder may generate the L1 motion compensated block by performing the L1 motion compensation 420 using the L1 motion information and the L1 reference picture list.
  • the L0 motion compensation 410 and the L1 motion compensation 420 may be independently performed.
  • the encoder and the decoder may perform a weighted average 430 on the L0 motion compensated block and the L1 motion compensated block to finally generate one motion compensated block.
  • the weighted average 430 may be performed in units of pixels in the L0 motion compensated block and the L1 motion compensated block.
  • the finally generated one motion compensated block may correspond to the prediction block of the current block.
  • bidirectional motion compensation motion compensation applied at the time of bidirectional prediction
  • unidirectional motion compensation motion compensation applied in the unidirectional prediction
  • FIG. 5 is a diagram schematically showing another embodiment of an inter prediction method when bidirectional prediction is applied.
  • a rounding error may occur. Accordingly, the encoder and the decoder may perform rounding control to remove the rounding error.
  • the encoder and the decoder may perform motion compensation by using a high accuracy (HA) pixel interpolation filter (IF) to remove a rounding error.
  • HA high accuracy
  • IF pixel interpolation filter
  • the encoder and the decoder may increase the bit depth of the image before performing the motion compensation, and finally, when the weighted average is performed, the bit of the image is again performed. Can reduce the depth.
  • the encoder and the decoder may perform a high-accuracy (HA) weighted average on the L0 motion compensated block and the L1 motion compensated block to finally generate one motion compensated block.
  • HA high-accuracy
  • a difference in the motion compensation method may occur between the unidirectional motion compensation and the bidirectional motion compensation.
  • 6 is a diagram schematically illustrating an embodiment of motion information of an encoded image. 6 illustrates a plurality of blocks constituting an encoded image and motion information of each of the plurality of blocks.
  • the video encoded in FIG. 6 corresponds to BasketballDrill.
  • BasketballDrill represents the name of a test sequence used for an image encoding / decoding experiment.
  • the encoded image has a size of 832x480 and a POC (Picture Order Count) of 2.
  • POC Picture Order Count
  • QP quantization parameter
  • the encoder and the decoder may use a forward B picture to improve inter prediction efficiency in a low delay application environment.
  • the forward B picture may mean a B picture in which only forward prediction is performed.
  • each block in which prediction is performed may have two motion information (L0 motion information and L1 motion information).
  • L0 motion information and L1 motion information In the forward B picture, in general, the L0 reference picture list and the L1 reference picture list may be set identically.
  • the L0 reference picture list and the L1 reference picture list are the same when a forward B picture is used.
  • the decoder may directly determine whether the current picture is a forward B picture based on the L0 reference picture list and the L1 reference picture list, or may determine whether the current picture is a forward B picture based on information transmitted from the encoder. have.
  • the encoder may encode a flag indicating whether the L0 reference picture list and the L1 reference picture list are the same and transmit the same to the decoder.
  • the decoder may receive and decode the flag, and then determine whether the current picture is a forward B picture based on the decoded flag.
  • the encoder may transmit a NAL unit type value or slice type value corresponding to the forward B picture to the decoder, and the decoder may determine whether the forward B picture is based on the received value.
  • each block in the encoded image may have up to two motion information.
  • the motion information may include a reference picture number, a motion vector, and the like.
  • a block having the same L0 motion information (eg, reference picture number and motion vector) and L1 motion information (eg, reference picture number and motion vector) in a forward B picture may occur due to a method of deriving temporal motion information.
  • the temporal motion information may be derived from the motion information of the call block corresponding to the current block in the already reconstructed reference picture.
  • the encoder and decoder may use the L0 motion information of the call block corresponding to the current block in the reference picture.
  • the encoder and the decoder may use the L1 motion information of the call block as the L0 temporal motion information of the current block.
  • the encoder and the decoder may use L1 motion information of the call block corresponding to the current block in the reference picture.
  • L1 motion information does not exist in the call block
  • the encoder and the decoder may use the L0 motion information of the call block as the L1 temporal motion information of the current block.
  • the block when a block having the same L0 motion information and L1 motion information is generated, the block may affect a block to be encoded later. For example, when merge is applied, the motion information (L0 motion information and L1 motion information) of the restored neighboring block and / or the call block may be used as the motion information of the current block. Therefore, when a block having the same L0 motion information and L1 motion information is generated, more other blocks having the same L0 motion information and L1 motion information may be generated.
  • the same process may be repeatedly performed twice in one block. Since this is very inefficient from an encoding point of view, an inter prediction method and / or a motion compensation method capable of solving the above-described problems, reducing computational complexity and improving encoding efficiency may be provided. For example, when the L0 motion information (eg, reference picture number and motion vector) and the L1 motion information (eg, reference picture number and motion vector) are the same, the encoder and decoder perform the motion compensation process only once. The computational complexity can be reduced.
  • L0 motion information eg, reference picture number and motion vector
  • the L1 motion information eg, reference picture number and motion vector
  • FIG. 7 is a conceptual diagram schematically illustrating an embodiment of an inter prediction method according to the present invention.
  • the encoder and the decoder may reduce computational complexity by performing a unidirectional motion compensation process on the current block.
  • the motion information determination process 710 it may be determined whether the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same.
  • the motion compensation process may be selectively performed according to the determination result. For example, when the L0 reference picture and the L1 reference picture are the same and the L0 motion vector and the L1 motion vector are the same, the encoder and the decoder may perform a unidirectional motion compensation process 720. Otherwise, the encoder and the decoder may perform the bidirectional motion compensation process 730.
  • the encoder and the decoder may perform L0 motion compensation on the current block by using the L0 reference picture and the L0 motion information obtained from the reference picture buffer.
  • the encoder and the decoder may generate a L0 motion compensated block by performing L0 motion compensation.
  • the L0 motion compensated block may correspond to the prediction block of the current block.
  • the encoder and the decoder may generate the L0 motion compensated block by performing L0 motion compensation on the current block by using the L0 reference picture and the L0 motion information obtained from the reference picture buffer. .
  • the encoder and the decoder may generate the L1 motion compensated block by performing L1 motion compensation on the current block by using the L1 reference picture and the L1 motion information obtained from the reference picture buffer.
  • the encoder and the decoder may perform a weighted average on the L0 motion compensated block and the L1 motion compensated block to finally generate one motion compensated block.
  • the weighted average may be performed pixel by pixel, for example, for any pixel in the L0 motion compensated block and the pixel in the corresponding L1 motion compensated block.
  • the finally generated one motion compensated block may correspond to the prediction block of the current block.
  • the above-described inter prediction method may be referred to as weight prediction.
  • a weight applied by default or basically applied in a weight averaging process is referred to as a 'default weight'.
  • Predictions to which only default weights are applied may be evaluated as non-weight predictions, but in this specification, as with 'non-default weight predictions' in which weights other than default weights are separately or additionally applied, only default weights are estimated.
  • This applied inter prediction is also referred to as weight prediction.
  • a weight prediction to which only default weights are applied is referred to as a "default weight prediction".
  • FIG. 8 is a conceptual diagram schematically showing another embodiment of an inter prediction method according to the present invention.
  • the current block has two motion information (L0 motion information and L1 motion information).
  • the inter prediction method described above in FIG. 7 may be equally applied to non-default weight prediction as in the embodiment of FIG. 8. That is, when the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same, the encoder and the decoder may reduce computational complexity by performing a unidirectional motion compensation process on the current block. have.
  • the encoder and the decoder may determine whether non-default weight prediction or default weight prediction is used for the current block (810). In one example this may be indicated by a weight prediction index. A specific embodiment of the weight prediction index will be described later.
  • the encoder and decoder may apply weights other than the default weight to the L0 motion compensated block and / or the L1 motion compensated block in performing motion compensation.
  • weights other than the default weights are referred to as non-default weights.
  • the motion information determination process 820 determines whether the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same. Can be judged.
  • the motion compensation process may be selectively performed according to the determination result. For example, when the L0 reference picture and the L1 reference picture are the same and the L0 motion vector and the L1 motion vector are the same, the encoder and the decoder may perform a unidirectional motion compensation process 830. Otherwise, the encoder and decoder may perform the bidirectional motion compensation process 840.
  • the encoder and the decoder may perform L0 motion compensation on the current block by using the L0 reference picture and the L0 motion information obtained from the reference picture buffer.
  • the encoder and the decoder may generate the final prediction block by applying a predetermined non-default weight and / or a predetermined offset to the L0 motion compensated block.
  • the L0 motion compensation to which a given non-default weight and / or a predetermined offset is applied may be referred to as L0 weighted motion compensation.
  • L1 motion compensation to which a given non-default weight and / or a predetermined offset is applied may be referred to as L1 weighted motion compensation.
  • non-default weights corresponding to LX motion information (X is 0 or 1) are referred to as LX weights, and offsets corresponding to LX motion information are referred to as LX offsets.
  • the encoder and the decoder may perform L0 motion compensation on the current block by using the L0 reference picture and the L0 motion information obtained from the reference picture buffer.
  • the encoder and the decoder may generate the L0 motion compensated block by performing L0 motion compensation on the current block.
  • the encoder and the decoder may apply the L0 weight to the L0 motion compensated block (and / or each pixel in the block), and add the L0 offset to generate the final prediction block.
  • the encoder and the decoder multiply the L0 motion compensated block (and / or each pixel in the block) by the L0 weight and the L1 weight, add the L0 offset and the L1 offset value, and then add the average value over the whole. By obtaining the final prediction block can be generated.
  • the encoder and the decoder may generate the final prediction block by multiplying the L0 motion compensated block (and / or each pixel in the block) by the L0 weight and adding the average value of the L0 offset and L1 offset.
  • the method of performing the unidirectional motion compensation 830 is not limited to the above-described embodiment, and may be determined in various other ways according to implementation and / or needs.
  • both the L0 weighted motion compensation process and the L1 weighted motion compensation process may be performed in the bidirectional motion compensation process 840.
  • the encoder and the decoder may generate an L0 motion compensated block by using the L0 reference picture and the L0 motion information obtained from the reference picture buffer. In this case, the encoder and the decoder may generate the L0 weight motion compensated block by applying the L0 weight to the L0 motion compensated block.
  • the encoder and the decoder may generate an L1 motion compensated block by using the L1 reference picture and the L1 motion information obtained from the reference picture buffer. In this case, the encoder and the decoder may generate the L1 weight motion compensated block by applying the L1 weight to the L1 motion compensated block.
  • the encoder and decoder perform weighted averaging based on L0 weighted motion compensated block, L0 offset, L1 weighted motion compensated block, and L1 offset, Finally, one motion compensated block may be generated.
  • the weighted average may be performed in units of pixels in the L0 motion compensated block and the L1 motion compensated block.
  • the finally generated one motion compensated block may correspond to the prediction block of the current block.
  • the L0 weight is applied in the L0 motion compensation process and the L1 weight is applied in the L1 motion compensation process, but the bidirectional motion compensation 840 method is not limited to the above-described embodiment. Do not.
  • the L0 weight and the L1 weight may be applied to the L0 motion compensated block and the L1 motion compensated block, respectively, in a weighted average process rather than the L0 and L1 motion compensation process.
  • the motion information determination process 850 determines whether the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same. Can be.
  • the motion compensation process may be selectively performed according to the determination result. For example, when the L0 reference picture and the L1 reference picture are the same and the L0 motion vector and the L1 motion vector are the same, the encoder and the decoder may perform a unidirectional motion compensation process 860. Otherwise, the encoder and decoder may perform the bidirectional motion compensation process 870.
  • the encoder and the decoder may perform L0 motion compensation on the current block by using the L0 reference picture and the L0 motion information obtained from the reference picture buffer.
  • the encoder and the decoder may generate a L0 motion compensated block by performing L0 motion compensation.
  • the L0 motion compensated block may correspond to the prediction block of the current block.
  • the encoder and the decoder may generate the L0 motion compensated block by performing L0 motion compensation on the current block by using the L0 reference picture and the L0 motion information obtained from the reference picture buffer. .
  • the encoder and the decoder may generate the L1 motion compensated block by performing L1 motion compensation on the current block by using the L1 reference picture and the L1 motion information obtained from the reference picture buffer.
  • the encoder and the decoder may perform a weighted average on the L0 motion compensated block and the L1 motion compensated block to finally generate one motion compensated block.
  • the weighted average may be performed pixel by pixel, for example, for any pixel in the L0 motion compensated block and the pixel in the corresponding L1 motion compensated block.
  • the finally generated one motion compensated block may correspond to the prediction block of the current block.
  • the encoder and the decoder may perform bidirectional motion compensation.
  • weighted_bipred_idc may mean the weighted prediction index. For example, when the weighted_bipred_idc value is '0', default weight prediction may be performed on the current block. In addition, when the weighted_bipred_idc value is '1', an explicit non-default weight prediction may be performed. When the weighted_bipred_idc value is '2', an implicit non-default weight prediction may be performed.
  • H may be replaced by Y in the case of a luma component signal, and H may be replaced by C in the case of a chroma component signal.
  • Clip1Y, Clip1C, and Clip3 may have the same meanings as in Equation 1 below.
  • BitDepthY may represent the bit depth of the luma component.
  • BitDepthC may represent the bit depth of the chroma component.
  • variable shift1 may have a value of 14-bitDepth as an example
  • variable shift2 may have a value of 15-bitDepth as an example
  • the variable offset1 may have a value of 1 ⁇ (shift1-1) and the offset2 may have a value of 1 ⁇ (shift2-1).
  • default weight prediction also referred to as default weighted sample prediction
  • the default weight prediction process may be performed when the value of weighted_bipred_idc described above is '0'.
  • the pixel may be referred to as a “sample”.
  • Inputs for the default weight prediction process include a position (xB, yB) of the leftmost sample of the current PU with respect to the leftmost sample of the current CU, variables indicating the width and height of the current PU (nPSW, nPSH), L0 motion vector mvL0 for sample, L1 motion vector mvL1 for sample, L0 reference picture index refIdxL0, L1 reference picture index refIdxL1, flag indicating whether prediction is performed (L0 reference picture list is used) predFlagL0, L1 There may be a flag predFlagL1 indicating whether prediction is performed (L1 reference picture list is used), bitDepth indicating a bit depth of a sample, and the like.
  • the L0 reference picture index indicates an index indicating a reference picture used for inter prediction of the current PU among the reference pictures included in the L0 reference picture list
  • the L1 reference picture index indicates the reference pictures included in the L1 reference picture list. It may indicate an index indicating a reference picture used for inter prediction of the current PU.
  • L0 prediction may mean inter prediction using a reference picture selected from the L0 reference picture list
  • L1 prediction may mean inter prediction using a reference picture selected from the L1 reference picture list.
  • the output of the process may be the predicted sample value predSamples [x, y] in the predictive block of size (nPSW) x (nPSH).
  • the decoder can derive predSamples [x, y] values as follows based on mvL0, mvL1, refIdxL0, refIdxL1, PredFlagL0, PredFlagL1, and the like.
  • the decoder may perform the following process.
  • predSamples [x, y] Clip3 (0, (1 ⁇ bitDepth)-1, (predSamplesL0 [x, y] + offset1) >> shift1)
  • the decoder may perform the following process.
  • predSamples [x, y] Clip3 (0, (1 ⁇ bitDepth)-1, (predSamplesL1 [x, y] + offset1) >> shift1)
  • PredFlagL0 is 1
  • PredFlagL1 is 1
  • the motion vectors mvL0 and mvL1 are equal
  • RefPicOrderCnt currPic, refIdxL0, L0
  • RefPicOrderCnt CurrPic, refIdxL1, L1
  • the decoder may perform the following process.
  • predSamples [x, y] Clip3 (0, (1 ⁇ bitDepth)-1, (predSamplesL0 [x, y] + offset1) >> shift1)
  • the decoder may perform the following process.
  • predSamples [x, y] Clip3 (0, (1 ⁇ bitDepth)-1, (predSamplesL0 [x, y] + predSamplesL1 [x, y] + offset2) >> shift2)
  • non-default weight prediction also referred to as non-default weighted sample prediction
  • the non-default weight prediction process may be performed when the value of weighted_bipred_idc described above is not '0'.
  • the input for the non-default weight prediction process includes a position (xB, yB) of the leftmost sample of the current PU with respect to the leftmost sample of the current CU, variables indicating the width and height of the current PU (nPSW, nPSH).
  • L0 motion vector mvL0 for the sample L1 motion vector mvL1 for the sample, L0 reference picture index refIdxL0, L1 reference picture index refIdxL1, a flag indicating whether the L0 prediction is performed (L0 reference picture list is used) or not predFlagL0 , Flag predFlagL1 indicating whether L1 prediction is performed (L1 reference picture list is used), bitDepth indicating a bit depth of a sample, and logWDC, w0C, w1C, o0C, 01C, and the like, which are weight prediction variables.
  • C may represent L for the luma component, Cb for the chroma Cb component, and Cr for the chroma Cr component.
  • logWDC may represent a denominator of a weighting factor
  • w0C may represent an L0 weight value
  • w1C may be an L1 weight value
  • o0C may be an L0 offset value
  • o1C may be an L1 offset value.
  • the output of the process may be the predicted sample value predSamples [x, y] in the predictive block of size (nPSW) x (nPSH).
  • the decoder can derive predSamples [x, y] values as follows based on mvL0, mvL1, refIdxL0, refIdxL1, PredFlagL0, PredFlagL1, and the like.
  • the decoder may perform the following process.
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (((predSamplesL0 [x, y] * w0C + 2 logWDC-1 ) >> logWDC) + o0C)
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (predSamplesL0 [x, y] * w0C + o0C)
  • the decoder may perform the following process.
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (((predSamplesL1 [x, y] * w1C + 2 logWDC-1 ) >> logWDC) + o1C)
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (predSamplesL1 [x, y] * w1C + o1C)
  • PredFlagL0 is 1
  • PredFlagL1 is 1
  • the motion vectors mvL0 and mvL1 are equal
  • RefPicOrderCnt currPic, refIdxL0, L0
  • RefPicOrderCnt CurrPic, refIdxL1, L1
  • the decoder may perform the following process.
  • predSamples [x, y] Clip1H (((predSamplesL0 [x, y] * (w0C + w1C) + 2 logWDC ) >> (logWDC + 1)) + ((o0C + o1C + 1) >> 1))
  • the decoder may perform the following process.
  • predSamples [x, y] Clip1H (((predSamplesL0 [x, y] * w0C + predSamplesL1 [x, y] * w1C + 2 logWDC ) >> (logWDC + 1)) + ((o0C + o1C + 1)>> 1))
  • non-default weight prediction also referred to as non-default weight sample prediction
  • the non-default weight prediction process may be performed when the value of weighted_bipred_idc described above is not '0'.
  • the input for the non-default weight prediction process includes a position (xB, yB) of the leftmost sample of the current PU with respect to the leftmost sample of the current CU, variables indicating the width and height of the current PU (nPSW, nPSH).
  • L0 motion vector mvL0 for the sample L1 motion vector mvL1 for the sample, L0 reference picture index refIdxL0, L1 reference picture index refIdxL1, a flag indicating whether the L0 prediction is performed (L0 reference picture list is used) or not predFlagL0 , Flag predFlagL1 indicating whether L1 prediction is performed (L1 reference picture list is used), bitDepth indicating a bit depth of a sample, and logWDC, w0C, w1C, o0C, 01C, and the like, which are weight prediction variables.
  • C may represent L for the luma component, Cb for the chroma Cb component, and Cr for the chroma Cr component.
  • logWDC may represent a denominator of a weighting factor
  • w0C may represent an L0 weight value
  • w1C may be an L1 weight value
  • o0C may be an L0 offset value
  • o1C may be an L1 offset value.
  • the output of the process may be the predicted sample value predSamples [x, y] in the predictive block of size (nPSW) x (nPSH).
  • the decoder can derive predSamples [x, y] values as follows based on mvL0, mvL1, refIdxL0, refIdxL1, PredFlagL0, PredFlagL1, and the like.
  • the decoder may perform the following process.
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (((predSamplesL0 [x, y] * w0C + 2 logWDC-1 ) >> logWDC) + o0C)
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (predSamplesL0 [x, y] * w0C + o0C)
  • the decoder may perform the following process.
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (((predSamplesL1 [x, y] * w1C + 2 logWDC-1 ) >> logWDC) + o1C)
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (predSamplesL1 [x, y] * w1C + o1C)
  • PredFlagL0 is 1
  • PredFlagL1 is 1
  • the motion vectors mvL0 and mvL1 are equal
  • RefPicOrderCnt currPic, refIdxL0, L0
  • RefPicOrderCnt CurrPic, refIdxL1, L1
  • the decoder may perform the following process.
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (((predSamplesL0 [x, y] * w0C + 2 logWDC-1 ) >> logWDC) + o0C)
  • the predSamples [x, y] value may be derived as follows.
  • predSamples [x, y] Clip1H (predSamplesL0 [x, y] * w0C + o0C)
  • the decoder may perform the following process.
  • predSamples [x, y] Clip1H (((predSamplesL0 [x, y] * w0C + predSamplesL1 [x, y] * w1C + 2 logWDC ) >> (logWDC + 1)) + ((o0C + o1C + 1)>> 1))
  • FIG. 9 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing default weight prediction according to the embodiment of FIG. 7.
  • the inter prediction apparatus may receive the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) to generate a prediction block for the current block.
  • the inter prediction apparatus may include a motion information determiner 910, a unidirectional motion compensator 920, and a bidirectional motion compensator 930.
  • the unidirectional motion compensator 920 may include a L0 motion compensator 925
  • the bidirectional motion compensator 930 may include a L0 motion floating part 933, an L1 motion compensator 936, and a weighted average part. 939 may be included.
  • the inter prediction apparatus may reduce computational complexity by performing a unidirectional motion compensation process on the current block. .
  • the motion information determiner 910 may determine whether the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same.
  • the motion compensation process may be selectively performed according to the determination result. For example, when the L0 reference picture and the L1 reference picture are the same and the L0 motion vector and the L1 motion vector are the same, the inter prediction apparatus may perform a unidirectional motion compensation process by the unidirectional motion compensation unit 920. Otherwise, the inter prediction apparatus may perform a bidirectional motion compensation process by the bidirectional motion compensator 930.
  • the unidirectional motion compensation process the unidirectional motion compensator 920 receives L0 motion information and performs unidirectional motion compensation.
  • the bidirectional motion compensator 930 receives L0 motion information and L1 motion information. Bidirectional motion compensation can be performed.
  • the L0 motion compensator 925 may perform L0 motion compensation on the current block based on the L0 reference picture and the L0 motion information.
  • the L0 motion compensation unit 925 may generate a L0 motion compensated block by performing L0 motion compensation.
  • the L0 motion compensated block may correspond to the prediction block of the current block.
  • the L0 motion compensator 933 may generate a L0 motion compensated block by performing L0 motion compensation on the current block based on the L0 reference picture and the L0 motion information.
  • the L1 motion compensator 936 may generate an L1 motion compensated block by performing L1 motion compensation on the current block based on the L1 reference picture and the L1 motion information.
  • the L0 motion compensator 933 may be referred to as a high accuracy (LO) motion compensation part
  • the L1 motion compensation part 936 may be referred to as an L1 HA motion compensation part.
  • the weight averaging unit 939 may finally generate one motion compensated block by performing a weighted average on the L0 motion compensated block and the L1 motion compensated block.
  • the weight average unit 939 may be referred to as an HA weight average unit.
  • the finally generated one motion compensated block may correspond to the prediction block of the current block.
  • the above-described inter prediction apparatus may perform the motion compensation process on the current block only once.
  • the inter prediction apparatus can reduce the computational complexity.
  • FIG. 10 is a flowchart schematically showing another embodiment of an inter prediction method according to the present invention.
  • the motion information may include prediction direction information, an L0 reference picture number, an L1 reference picture number, an L0 motion vector, an L1 motion vector, and the like. It is assumed that the prediction direction information of the motion information input to the process of FIG. 10 indicates bidirectional prediction, and the current block has two motion information (L0 motion information and L1 motion information). In this case, when the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same, the encoder and the decoder reduce the computational complexity by using only the L0 motion information as the motion information of the current block. You can.
  • the encoder and the decoder may determine whether the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same (S1010). That is, the encoder and the decoder may determine whether the L0 reference picture number and the L1 reference picture number are the same and the L0 motion vector and the L1 motion vector are the same.
  • the encoder and the decoder may set the prediction direction information of the current block to unidirectional prediction (S1020).
  • the prediction direction information of the block encoded or decoded after the current block may be set to unidirectional prediction instead of bidirectional prediction.
  • the encoder and the decoder may use only the L0 motion information as the motion information of the current block. For example, the encoder and the decoder may generate the prediction block by performing unidirectional motion compensation on the current block based on the L0 motion information.
  • the encoder and the decoder may use the L0 motion information and the L1 motion information as the motion information of the current block. (S1030). For example, the encoder and the decoder may generate a prediction block by performing bidirectional motion compensation on the current block based on the L0 motion information and the L1 motion information.
  • the prediction direction information is set based on the sameness of the L0 motion information and the L1 motion information.
  • the encoder and the decoder may set the prediction direction information based on the size of the current block.
  • the encoder and the decoder may determine whether the size of the current block is smaller than a predetermined size.
  • the current block may be a CU, a PU, and / or a TU
  • the predetermined size may be, for example, one of 8x8, 16x16, or 32x32.
  • the encoder and the decoder may set the prediction direction information of the current block to unidirectional prediction.
  • the encoder and the decoder may set only the L0 motion information among the L0 motion information and the L1 motion information as the motion information of the current block.
  • the encoder and the decoder may use a method of removing or setting the L1 motion information value from the motion information of the current block to 0 and / or 1.
  • the encoder and the decoder may use only the L0 motion information as the motion information of the current block.
  • the encoder and the decoder may generate the prediction block by performing unidirectional motion compensation on the current block based on the L0 motion information.
  • the encoder and the decoder may use the L0 motion information and the L1 motion information as the motion information of the current block. For example, the encoder and the decoder may generate a prediction block by performing bidirectional motion compensation on the current block based on the L0 motion information and the L1 motion information.
  • FIG. 11 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing inter prediction according to the embodiment of FIG. 10.
  • the inter prediction apparatus may include a motion information determiner 1110, an L0 motion information and an L1 motion information register 1120, and reestablish prediction direction information and an L0 motion information register 1130.
  • the motion information may include prediction direction information, an L0 reference picture number, an L1 reference picture number, an L0 motion vector, an L1 motion vector, and the like. It is assumed that the prediction direction information of the motion information input to the motion information determiner 1110 of FIG. 11 indicates bidirectional prediction, and the current block has two motion information (L0 motion information and L1 motion information). If the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same, the inter prediction apparatus may reduce the computational complexity by using only the L0 motion information as the motion information of the current block. have.
  • the motion information determiner 1110 may determine whether the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same. That is, the motion information determiner 1110 may determine whether the L0 reference picture number and the L1 reference picture number are the same and the L0 motion vector and the L1 motion vector are the same.
  • the L0 motion information and the L1 motion information register 1120 may determine the L0 motion information and the L1 motion information as the motion information used for the current block.
  • the encoder and the decoder may generate a prediction block by performing bidirectional motion compensation on the current block based on the L0 motion information and the L1 motion information.
  • the prediction direction information reset and the operation and / or the operation by the L0 motion information register 1130 may be performed.
  • the prediction direction information reset and the L0 motion information register 1130 may set the prediction direction information of the current block to unidirectional prediction.
  • the prediction direction information of the block encoded or decoded after the current block may be set to unidirectional prediction instead of bidirectional prediction. .
  • the prediction direction information resetting and the L0 motion information register 1130 may determine only the L0 motion information as the motion information used for the current block.
  • the encoder and the decoder may generate a prediction block by performing unidirectional motion compensation on the current block based on the L0 motion information.
  • the prediction direction information is set based on the sameness of the L0 motion information and the L1 motion information, but the inter prediction apparatus may set the prediction direction information based on the size of the current block.
  • the motion information determiner 1110 may determine whether the size of the current block is smaller than a predetermined size.
  • the current block may be a CU, a PU, and / or a TU
  • the predetermined size may be, for example, one of 8x8, 16x16, or 32x32.
  • the L0 motion information and the L1 motion information register 1120 may determine the L0 motion information and the L1 motion information as the motion information used for the current block.
  • the encoder and the decoder may generate a prediction block by performing bidirectional motion compensation on the current block based on the L0 motion information and the L1 motion information.
  • the prediction direction information resetting and the operation and / or calculation by the LO motion information register 1130 may be performed.
  • the prediction direction information resetting and the L0 motion information register 1130 may set the prediction direction information of the current block to unidirectional prediction.
  • the prediction direction information resetting and the L0 motion information register 1130 may set only the L0 motion information among the L0 motion information and the L1 motion information as the motion information of the current block.
  • the prediction direction information resetting and the L0 motion information register 1130 may use a method of removing the L1 motion information value from the motion information of the current block or setting the value to 0 and / or 1.
  • the prediction direction information resetting and the L0 motion information register 1130 may determine only the L0 motion information as the motion information used for the current block.
  • the encoder and the decoder may generate a prediction block by performing unidirectional motion compensation on the current block based on the L0 motion information.
  • 12 is a conceptual diagram schematically illustrating another embodiment of an inter prediction method according to the present invention. 12 illustrates an embodiment where default weight prediction is applied. In FIG. 12, it is assumed that the current block has two motion information (L0 motion information and L1 motion information).
  • L0 motion information L0 motion vector and L0 reference picture number
  • L1 motion information L1 motion vector and L1 reference picture number
  • / or L1 reference picture It may be determined whether unidirectional motion compensation or bidirectional motion compensation is performed based on the list.
  • the motion information and reference picture determination process 1210 it may be determined whether the L0 motion information (L0 motion vector and L0 reference picture number) and the L1 motion information (L1 motion vector and L1 reference picture number) are the same.
  • the motion compensation process may be selectively performed according to the determination result.
  • the encoder and the decoder may perform a unidirectional motion compensation process when the number of reference pictures included in the L1 reference picture list is one or less. 1220, and when the number of reference pictures included in the L1 reference picture list is two or more, the bidirectional motion compensation process 1230 may be performed.
  • the encoder and the decoder may be configured to perform the One reference picture other than the L1 reference picture may be set as a new L1 reference picture.
  • the bidirectional motion compensation process 1230 may be performed based on the newly set L1 reference picture instead of the existing L1 reference picture.
  • the encoder and the decoder may use the L1 motion vector as it is, or may find a new L1 motion vector in the newly set L1 reference picture and use it for bidirectional motion compensation 1230 instead of the existing L1 motion vector.
  • the encoder and the decoder may perform a bidirectional motion compensation process 1230.
  • the encoder and the decoder may perform L0 motion compensation on the current block by using the L0 reference picture and the L0 motion information.
  • the encoder and the decoder may generate a L0 motion compensated block by performing L0 motion compensation.
  • the L0 motion compensated block may correspond to the prediction block of the current block.
  • the encoder and the decoder may generate the L0 motion compensated block by performing L0 motion compensation on the current block by using the L0 reference picture and the L0 motion information.
  • the encoder and the decoder may generate the L1 motion compensated block by performing L1 motion compensation on the current block by using the L1 reference picture and the L1 motion information.
  • the encoder and the decoder may perform a weighted average on the L0 motion compensated block and the L1 motion compensated block to finally generate one motion compensated block.
  • the finally generated one motion compensated block may correspond to the prediction block of the current block.
  • FIG. 13 is a conceptual diagram schematically showing still another embodiment of the inter prediction method according to the present invention.
  • FIG. 13 it is assumed that a current block has two motion information (L0 motion information and L1 motion information).
  • the inter prediction method described above with reference to FIG. 12 may be applied to the non-default weight prediction as in the embodiment of FIG. 13 in the same or similar manner.
  • the encoder and the decoder may determine whether non-default weight prediction or default weight prediction is used for the current block (1310). In one example this may be indicated by a weight prediction index. Since a specific embodiment of the weight prediction index has been described above, it will be omitted.
  • the motion information determination process 1320 it may be determined whether the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same. .
  • the motion compensation process may be selectively performed according to the determination result.
  • the encoder and the decoder may perform a unidirectional motion compensation process when the number of reference pictures included in the L1 reference picture list is one or less. 1330, and when the number of reference pictures included in the L1 reference picture list is two or more, the bidirectional motion compensation process 1340 may be performed.
  • the encoder and the decoder may be configured to perform the One reference picture other than the L1 reference picture may be set as a new L1 reference picture.
  • the bidirectional motion compensation process 1340 may be performed based on the newly set L1 reference picture instead of the existing L1 reference picture.
  • the encoder and the decoder may use the L1 motion vector as it is, or may find a new L1 motion vector in the newly set L1 reference picture and use it for the bidirectional motion compensation 1340 instead of the existing L1 motion vector.
  • the encoder and decoder may apply a weight other than the default weight, that is, non-default weight, to the L0 motion compensated block and / or the L1 motion compensated block in performing motion compensation. . Since the process of performing the unidirectional motion compensation 1330 and the bidirectional motion compensation 1340 when the non-default weight prediction is applied is the same as in FIG. 8 except for the above description, a description thereof will be omitted.
  • the same motion compensation process as in the above-described embodiment of FIG. 12 may be performed. Therefore, a specific embodiment of the motion compensation process when the default weight prediction is applied will be omitted here.
  • FIG. 14 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing default weight prediction according to the embodiment of FIG. 12.
  • the inter prediction apparatus receives L0 motion information (reference picture number and motion vector), L1 motion information (reference picture number and motion vector), and L1 reference picture list, and obtains a prediction block for the current block. Can be generated.
  • the inter prediction apparatus may include a motion information and reference picture determiner 1410, a unidirectional motion compensator 1420, and a bidirectional motion compensator 1430.
  • the unidirectional motion compensator 1420 may include a L0 motion compensator 1425
  • the bidirectional motion compensator 1430 may include a L0 motion floating part 1433, an L1 motion compensator 1434, and a weighted average part. (1439).
  • the motion information and reference picture determiner 1410 may include L0 motion information (L0 motion vector and L0 reference picture number), L1 motion information (L1 motion vector and L1 reference picture number), and / or L1 reference picture. Based on the list, it may be determined whether unidirectional motion compensation or bidirectional motion compensation is performed.
  • the inter prediction apparatus may use the unidirectional motion compensation unit when the number of reference pictures included in the L1 reference picture list is one or less.
  • the unidirectional motion compensation process by 1420 may be performed, and when the number of reference pictures included in the L1 reference picture list is two or more, the bidirectional motion compensation process by the bidirectional motion compensation unit 1430 may be performed.
  • the motion information and reference picture determination unit 1410 may refer to L1.
  • One reference picture other than the L1 reference picture among the reference pictures in the picture list may be set as a new L1 reference picture.
  • the bidirectional motion compensation process may be performed based on the newly set L1 reference picture instead of the existing L1 reference picture.
  • the inter prediction apparatus may use the L1 motion vector as it is, or may find a new L1 motion vector from a newly set L1 reference picture and use it for bidirectional motion compensation instead of the existing L1 motion vector.
  • the inter prediction apparatus may perform a bidirectional motion compensation process by the bidirectional motion compensator 1430. Can be.
  • the L0 motion compensator 1425 may perform L0 motion compensation on the current block based on the L0 reference picture and the L0 motion information.
  • the L0 motion compensation unit 1425 may generate a L0 motion compensated block by performing L0 motion compensation.
  • the L0 motion compensated block may correspond to the prediction block of the current block.
  • the L0 motion compensator 1433 may generate a L0 motion compensated block by performing L0 motion compensation on the current block based on the L0 reference picture and the L0 motion information.
  • the L1 motion compensator 1434 may generate an L1 motion compensated block by performing L1 motion compensation on the current block based on the L1 reference picture and the L1 motion information.
  • the L0 motion compensator 1433 may be referred to as a high accuracy (LO) motion compensation unit
  • the L1 motion compensation unit 1434 may be referred to as an L1 HA motion compensation unit.
  • the weighted average unit 1439 may perform a weighted average on the L0 motion compensated block and the L1 motion compensated block to finally generate one motion compensated block.
  • the weight average unit 1439 may be referred to as an HA weight average unit.
  • the finally generated one motion compensated block may correspond to the prediction block of the current block.
  • the above-described inter prediction apparatus may perform bidirectional motion compensation on the current block based on the L0 reference picture and the L1 reference picture that is not the same. Therefore, the inter prediction apparatus may improve encoding / decoding efficiency.
  • the merge candidate may also be called a motion information candidate.
  • the merge candidate corresponding to the L0 motion information is referred to as an L0 merge candidate
  • the merge candidate corresponding to the L1 motion information is referred to as an L1 merge candidate.
  • the encoder and the decoder may determine or register a motion candidate of the reconstructed neighboring block and / or the motion information of the collocated block as a merge candidate for the current block.
  • FIG. 15 illustrates a process in which the motion information of the restored neighboring block and / or the motion information of the call block is determined or registered as a merge candidate for the current block.
  • the motion information may include prediction direction information, an L0 reference picture number, an L1 reference picture number, an L0 motion vector, an L1 motion vector, and the like.
  • the reference block may mean a reconstructed neighboring block and / or a call block
  • the reference motion information may mean motion information of the reconstructed neighboring block and / or motion information of the call block.
  • the encoder may select a merge candidate capable of providing an optimal encoding efficiency among the determined or registered merge candidates as motion information for the current block.
  • a merge index indicating the selected merge candidate may be included in the bitstream and transmitted to the decoder.
  • the decoder may select one merge candidate from the determined or registered merge candidates using the transmitted merge index, and determine the selected merge candidate as motion information of the current block.
  • the generated block may affect a block to be encoded later.
  • the motion information (L0 motion information and L1 motion information) of the neighboring block and / or the call block restored as described above may be used as the motion information of the current block. Therefore, when a block having the same L0 motion information and L1 motion information is generated, more other blocks having the same L0 motion information and L1 motion information may be generated.
  • the encoder and the decoder are Only the L0 motion information may be determined or registered as a merge candidate of the current block.
  • the encoder and the decoder may set the prediction direction of the merge candidate for the current block as the prediction direction of the reference block (S1510).
  • the prediction direction information may mean information indicating whether unidirectional prediction or bidirectional prediction is applied to a block on which prediction is performed. Therefore, the prediction direction may correspond to unidirectional prediction or bidirectional prediction.
  • the encoder and the decoder may determine or register the L0 motion information of the reference block for the current block as the L0 merge candidate for the current block (S1520).
  • the encoder and the decoder may determine whether the current picture is a B picture (S1530).
  • the current picture may mean a picture including the current block. If the current picture is not the B picture, the encoder and the decoder may not perform the L1 merge candidate determination process. If the current picture is a B picture, the encoder and the decoder may determine whether the L0 motion information of the reference block and the L1 motion information of the reference block are the same (S1540).
  • the encoder and the decoder may set the prediction direction of the merge candidate for the current block as unidirectional prediction (S1550). At this time, the encoder and the decoder may not register the L1 motion information of the reference block as the L1 merge candidate for the current block. That is, in this case, only the L0 motion information of the reference block may be determined or registered as a merge candidate for the current block. If the L0 motion information of the reference block and the L1 motion information of the reference block are not the same, the encoder and the decoder may set the prediction direction of the merge candidate for the current block to bidirectional prediction, and set the L1 motion information of the reference block to the current block. It may be determined or registered as the L1 merge candidate (S1560).
  • FIG. 16 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing a merge candidate determination process according to the embodiment of FIG. 15.
  • the inter prediction apparatus of FIG. 16 includes a prediction direction setting unit 1610, a L0 merge candidate determiner 1620, a motion information determiner 1630, an L1 merge candidate determiner 1640, and a prediction direction reset unit 1650. can do.
  • the inter prediction apparatus may determine a merge candidate for the current block based on the L0 motion information of the reference block, the L1 motion information of the reference block, and the prediction direction information of the reference block.
  • the inter prediction apparatus when the L0 motion information (L0 reference picture number, L0 motion vector) and the L1 motion information (L1 reference picture number, L1 motion vector) of the reference block is the same, L0 motion information of the reference block.
  • Bay may be determined or registered as a merge candidate of the current block.
  • the motion information may include an L0 reference picture number, an L1 reference picture number, an L0 motion vector, an L1 motion vector, and the like.
  • the prediction direction setting unit 1610 may set the prediction direction of the merge candidate for the current block as the prediction direction of the reference block.
  • the L0 merge candidate determiner 1620 may determine or register the L0 motion information of the reference block as the L0 merge candidate for the current block.
  • the motion information determiner 1630 may determine whether the L0 motion information of the reference block and the L1 motion information of the reference block are the same.
  • the L1 merge candidate determiner 1640 may determine or register the L1 motion information of the reference block as the L1 merge candidate for the current block.
  • the prediction direction resetting unit 1650 may set the prediction direction of the merge candidate for the current block as unidirectional prediction.
  • the inter prediction apparatus may not register the L1 motion information of the reference block as the L1 merge candidate for the current block. That is, in this case, only the L0 motion information of the reference block may be determined or registered as a merge candidate for the current block.
  • 17 is a flowchart schematically illustrating an embodiment of a method for deriving temporal motion information according to the present invention.
  • the motion information of the reconstructed neighboring block and / or the motion block information may be used to derive the motion information of the current block.
  • the motion information derived from the call block may be referred to as temporal motion information.
  • the temporal motion information may be derived from the motion information of the call block corresponding to the current block in the already reconstructed reference picture. For example, when deriving L0 temporal motion information of the current block, the encoder and decoder may use the L0 motion information of the call block corresponding to the current block in the reference picture. However, when there is no L0 motion information in the call block, the encoder and the decoder may use the L1 motion information of the call block as the L0 temporal motion information of the current block. In contrast, when deriving L1 temporal motion information of the current block, the encoder and the decoder may use L1 motion information of the call block corresponding to the current block in the reference picture.
  • the encoder and the decoder may use the L0 motion information of the call block as the L1 temporal motion information of the current block.
  • the encoder and the decoder may use the L0 motion information of the call block as the L1 temporal motion information of the current block.
  • the list information may mean information indicating whether L0 motion information and / or L1 motion information exists in the call block.
  • the encoder and the decoder may determine whether L0 motion information exists in a call block for a current block (S1710).
  • the encoder and the decoder may determine or set the L0 motion information of the call block as the L0 temporal motion information for the current block (S1720).
  • the encoder and the decoder may not set the L0 temporal motion information. That is, in this case, the L0 temporal motion information may not be derived.
  • the temporal motion information used for inter prediction of the current block may not include the L0 temporal motion information.
  • the encoder and the decoder may set the L1 motion information of the call block as L0 temporal motion information for the current block, or set the motion vector (0,0) to L0 for the current block. It can also be set as a temporal motion vector.
  • the encoder and the decoder may determine whether the current picture is a B picture (S1730). If the current picture is not the B picture, the encoder and the decoder may terminate the temporal motion information derivation process. When the current picture is a B picture, the encoder and the decoder may perform a L1 motion information setting procedure for the current block.
  • the encoder and the decoder may determine whether L1 motion information exists in the call block for the current block (S1740). When the L1 motion information of the call block exists, the encoder and the decoder may determine or set the L1 motion information of the call block as L1 temporal motion information for the current block (S1750). When L1 motion information does not exist in the call block, for example, the encoder and the decoder may not set the L1 temporal motion information. That is, in this case, L1 temporal motion information may not be derived. At this time, the temporal motion information used for inter prediction of the current block may not include the L1 temporal motion information. If there is no L1 motion information in the call block, as another example, the encoder and the decoder may set the motion vector (0,0) as the L1 temporal motion vector for the current block.
  • FIG. 18 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing a process of deriving temporal motion information according to the embodiment of FIG. 17.
  • the prediction direction setting unit 1810, the L0 motion information determination unit 1820, the L0 temporal motion information setting unit 1830, the picture determination unit 1840, and the L1 motion information determination unit are shown.
  • 1850 and the L1 temporal motion information setting unit 1860 are shown.
  • the inter prediction apparatus may derive temporal motion information on the current block according to the list information.
  • the list information may mean information indicating whether L0 motion information and / or L1 motion information exists in the call block.
  • the prediction direction setting unit 1810 may set a prediction direction of temporal motion information on a current block as a prediction direction of a call block.
  • the L0 motion information determiner 1820 may determine whether L0 motion information exists in the call block for the current block.
  • the L0 temporal motion information setting unit 1830 may determine or set the L0 motion information of the call block as the L0 temporal motion information for the current block.
  • the inter prediction apparatus may not set the L0 temporal motion information. That is, in this case, the L0 temporal motion information may not be derived.
  • the temporal motion information used for inter prediction of the current block may not include the L0 temporal motion information. If there is no L0 motion information in the call block, as another example, the inter prediction apparatus sets the L1 motion information of the call block as L0 temporal motion information for the current block, or sets the motion vector (0,0) to L0 for the current block. It can also be set as a temporal motion vector.
  • the picture determination unit 1840 may determine whether the current picture is a B picture. If the current picture is not the B picture, the inter prediction apparatus may terminate the temporal motion information derivation process. At this time, the inter prediction apparatus may set the prediction direction of the temporal motion information with respect to the current block to unidirectional prediction and then end the process of deriving temporal motion information. If the current picture is a B picture, the inter prediction apparatus may perform a L1 motion information setting procedure for the current block.
  • the L1 motion information determiner 1850 may determine whether L1 motion information exists in a call block for the current block.
  • the L1 temporal motion information setting unit 1860 may determine or set the L1 motion information of the call block as L1 temporal motion information for the current block.
  • the inter prediction apparatus may not set L1 temporal motion information. That is, in this case, L1 temporal motion information may not be derived.
  • the temporal motion information used for inter prediction of the current block may not include the L1 temporal motion information. If there is no L1 motion information in the call block, as another example, the inter prediction apparatus may set the motion vector (0,0) as the L1 temporal motion vector for the current block.
  • 19 is a flowchart schematically illustrating another embodiment of a method for deriving temporal motion information of a current block according to the present invention.
  • the temporal motion information may be derived from the motion information of the call block corresponding to the current block in the already reconstructed reference picture.
  • the temporal motion information derived from the call block may include prediction direction information, an L0 reference picture number, an L1 reference picture number, an L0 motion vector, an L1 motion vector, and the like.
  • the L0 temporal motion information (L0 reference picture number, L0 motion vector) derived from the call block and the L1 temporal motion information (L1 reference picture number, L1 motion vector) may be the same.
  • the encoder and the decoder determine only the L0 temporal motion information for the current block. Can be used as temporal motion information.
  • the encoder and the decoder determine whether the L0 temporal motion information and the L1 temporal motion information are identical in the temporal motion information derived from the call block, that is, the L0 reference picture number and the L1 reference picture number are the same and are equal to the L0 motion vector. It may be determined whether the L1 motion vectors are the same (S1910).
  • the encoder and the decoder may use the temporal motion information derived from the call block as the temporal motion information for the current block.
  • temporal motion information of the current block may be determined or registered as a predictive motion vector candidate for the current block.
  • temporal motion information of the current block may be determined or registered as a merge candidate for the current block.
  • the encoder and the decoder may set the prediction direction of the temporal motion information for the current block as unidirectional prediction, and only L0 temporal motion information is present among temporal motion information derived from the call block. It can be used as temporal motion information for the block (S1920).
  • temporal motion information for the block S1920.
  • AMVP AMVP
  • only the L0 temporal motion information may be determined or registered as a predicted motion vector candidate for the current block.
  • merge only the L0 temporal motion information may be determined or registered as a merge candidate for the current block.
  • the L0 reference picture list and the L1 reference picture list for the current block may be the same.
  • the encoder and the decoder may set both prediction directions of the temporal motion information derived from the call block to unidirectional prediction.
  • the encoder may use only L0 temporal motion information among temporal motion information derived from the call block as temporal motion information for the current block.
  • only the L0 temporal motion information may be determined or registered as the predicted motion vector candidate for the current block.
  • only the L0 temporal motion information may be determined or registered as a merge candidate for the current block.
  • the inter prediction apparatus may include a temporal motion information determining unit 2010, a prediction direction resetting unit 2020, and an L0 temporal motion information setting unit 2030.
  • the temporal motion information may be derived from the motion information of the call block corresponding to the current block in the already reconstructed reference picture.
  • the temporal motion information derived from the call block may include prediction direction information, an L0 reference picture number, an L1 reference picture number, an L0 motion vector, an L1 motion vector, and the like.
  • the inter prediction apparatus may use only the L0 temporal motion information. It can be used as temporal motion information for the current block.
  • the temporal motion information determination unit 2010 determines whether L0 temporal motion information and L1 temporal motion information are the same in temporal motion information derived from a call block, that is, the L0 reference picture number and the L1 reference picture number are the same. It may be determined whether the L0 motion vector and the L1 motion vector are the same.
  • the inter prediction apparatus may use the temporal motion information derived from the call block as the temporal motion information for the current block.
  • temporal motion information of the current block may be determined or registered as a predictive motion vector candidate for the current block.
  • temporal motion information of the current block may be determined or registered as a merge candidate for the current block.
  • the prediction direction resetting unit 2020 may set the prediction direction of the temporal motion information for the current block as unidirectional prediction.
  • the L0 motion information setting unit 2030 may determine or use only L0 temporal motion information as temporal motion information of the current block among temporal motion information derived from the call block.
  • AMVP when AMVP is applied, only the L0 temporal motion information may be determined or registered as a predicted motion vector candidate for the current block.
  • merge when merge is applied, only the L0 temporal motion information may be determined or registered as a merge candidate for the current block.
  • 21 is a flowchart schematically illustrating an embodiment of a method of determining a call picture when deriving temporal motion information of a current block.
  • the current picture and / or the current slice are forward B pictures and / or forward B slices.
  • the L0 reference picture list and the L1 reference picture list may be set identically.
  • the temporal motion information may be derived from the motion information of the call block corresponding to the current block in the already reconstructed reference picture.
  • the call picture may refer to a reference picture that is already restored, including the call block.
  • the call picture may be a picture that is already encoded and / or decoded and exists as a reference picture in the reference picture list.
  • the encoder and the decoder may use at least one reference picture among all reference pictures included in the reference picture list as a call picture when deriving temporal motion information.
  • the encoder and the decoder use a picture that has the smallest difference between the current encoding target picture and the picture number (hereinafter, referred to as the picture number) according to the POC order among the reference pictures included in the reference picture list as the call picture for the current block. Can be determined or set. For example, when the picture having the smallest difference in picture number from the current picture to be encoded is the first picture in the reference picture list, the first reference picture in the reference picture list may be generally determined or set as a call picture.
  • the encoder may determine a call picture for the current block, and then encode and transmit a call picture index, which indicates a reference picture used as a call picture among reference pictures in the reference picture list, to be transmitted to the decoder.
  • the decoder may receive and decode the call picture index and then determine or set a reference picture used as a call picture in the reference picture list based on the decoded call picture index.
  • the first reference picture in the L0 reference picture list is referred to as an L0 reference picture
  • the first reference picture in the L1 reference picture list is referred to as an L1 reference picture.
  • an embodiment in the case where the first reference picture in the reference picture list is determined to be a call picture is described.
  • the present invention is not limited thereto, and the contents described below with reference to FIG. 21 may be applied in the same or similar manner even when the call picture is determined based on the call picture index.
  • the L0 reference picture may mean a reference picture indicated by the call picture index among the reference pictures in the L0 reference picture list
  • the L1 reference picture is a reference indicated by the call picture index among the reference pictures in the L1 reference picture list. It may mean a picture.
  • the list information may mean information indicating whether temporal motion information to be derived for the current block is L0 temporal motion information or L1 temporal motion information.
  • the encoder and the decoder may determine whether temporal motion information to be derived for the current block is L1 temporal motion information (S2110). If the temporal motion information to be derived for the current block is not L1 temporal motion information, that is, if the temporal motion information to be derived for the current block is L0 temporal motion information, the encoder and the decoder determine the first reference picture in the L0 reference picture list ( When the call picture index is used, a reference picture indicated by the call picture index) may be determined or set as the call picture for the current block (S2120). If the temporal motion information to be derived for the current block is L1 temporal motion information, the encoder and the decoder may determine whether the L0 reference picture and the L1 reference picture are the same (S2130).
  • the encoder and the decoder determine the first reference picture in the L1 reference picture list (the reference picture indicated by the call picture index if the call picture index is used) for the current block.
  • the call picture may be determined or set (S2140). If the L0 reference picture and the L1 reference picture are the same, the encoder and the decoder may determine or set a reference picture that is not the same as the L0 reference picture among the reference pictures in the L1 reference picture list as a call picture for the current block (S2150).
  • the encoder and decoder determine the first reference picture in the L1 reference picture list (the reference picture indicated by the call picture index when the call picture index is used). May be set as the call picture for the current block.
  • FIG. 22 is a block diagram schematically illustrating an embodiment of an inter prediction apparatus capable of performing a call picture determination process according to the embodiment of FIG. 21.
  • the inter prediction apparatus according to the embodiment of FIG. 22 includes a list information determiner 2210, a reference picture equality determiner 2220, a first call picture setter 2230, a second call picture setter 2240, and a third.
  • the call picture setting unit 2250 may be included.
  • the current picture and / or the current slice are forward B pictures and / or forward B slices.
  • the L0 reference picture list and the L1 reference picture list may be set identically.
  • the first reference picture in the L0 reference picture list is referred to as an L0 reference picture
  • the first reference picture in the L1 reference picture list is referred to as an L1 reference picture.
  • an embodiment when the first reference picture in the reference picture list is determined to be a call picture is described.
  • the present invention is not limited thereto, and details described below with reference to FIG. 22 may be applied in the same or similar manner even when a call picture is determined based on the call picture index described with reference to FIG. 21.
  • the L0 reference picture may mean a reference picture indicated by the call picture among the reference pictures in the L0 reference picture list
  • the L1 reference picture is a reference picture indicated by the call picture index among the reference pictures in the L1 reference picture list. It may mean.
  • the inter prediction apparatus may determine or set a call picture used for deriving temporal motion information of the current block by receiving the list information of the current block, the L0 reference picture, and the L1 reference picture.
  • the inter prediction apparatus may determine a call picture used for deriving temporal motion information of the current block based on the list information.
  • the list information may mean information indicating whether temporal motion information to be derived for the current block is L0 temporal motion information or L1 temporal motion information.
  • the list information determiner 2210 may determine whether temporal motion information to be derived for the current block is L1 temporal motion information. If the temporal motion information to be derived for the current block is not L1 temporal motion information, that is, if the temporal motion information to be derived for the current block is L0 temporal motion information, the first call picture setting unit 2230 determines the L0 reference picture list. The first reference picture (the reference picture indicated by the call picture index when the call picture index is used) may be determined or set as the call picture for the current block. When the temporal motion information to be derived for the current block is L1 temporal motion information, the reference picture identity determiner 2220 may determine whether the L0 reference picture and the L1 reference picture are the same.
  • the second call picture setting unit 2240 determines or sets a reference picture that is not the same as the L0 reference picture among the reference pictures in the L1 reference picture list as the call picture for the current block. Can be. In this case, when the number of reference pictures in the L1 reference picture list is one or less, the second call picture setting unit 2240 may call the first reference picture in the L1 reference picture list (call picture index when the call picture index is used). Reference picture) may be set as the call picture for the current block.
  • the third call picture setting unit 2250 may determine the first reference picture in the L1 reference picture list (when the call picture index is used, the reference picture indicated by the call picture index). ) Can be determined or set as the call picture for the current block.
  • the motion information candidate may mean a predicted motion vector candidate in the AMVP mode, and may mean a merge candidate in the merge mode.
  • the motion information of the reconstructed neighboring block and / or the motion information of the call block may be used to derive the motion information of the current block.
  • the reconstructed motion information of neighboring blocks and / or call blocks may be used as motion information candidates, and the encoder and decoder may derive motion information of the current block based on the motion information candidates.
  • a method for deriving or setting motion information of the current block may be provided. have.
  • the first reference picture in the L0 reference picture list is referred to as an L0 reference picture
  • the first reference picture in the L1 reference picture list is referred to as an L1 reference picture.
  • the encoder and the decoder may determine whether a picture type of a current picture is a B picture (S2310). If the picture type of the current picture is not a B picture, for example, if the picture type of the current picture is a P picture, the encoder and the decoder set the prediction direction of the current block to unidirectional prediction, and the L0 reference picture index is set to 0.
  • the L0 motion vector may be set to (0, 0) (S2330). When the value assigned to the L0 reference picture index is 0, the L0 reference picture index may indicate that the first picture among the reference pictures in the L0 reference picture list is used as the reference picture of the current picture. If the picture type of the current picture is a B picture, the encoder and the decoder may determine whether the L0 reference picture and the L1 reference picture are the same (S2320).
  • the encoder and the decoder may include a reference picture number of the first reference picture in the L0 reference picture list and a reference picture number of the first reference picture in the L1 reference picture list. You can determine the identity of.
  • the encoder and the decoder may determine whether the L0 reference picture and the L1 reference picture are the same by determining the sameness between the L0 reference picture number of the L0 reference picture and the L1 reference picture number of the L1 reference picture. The method of determining the identity of the reference picture may be variously changed according to a situation.
  • the encoder and the decoder may set the prediction direction of the current block to unidirectional prediction, set the L0 reference picture index to 0, and set the L0 motion vector to (0,0). (S2330). If the L0 reference picture and the L1 reference picture are not the same, the encoder and the decoder set the prediction direction of the current block to bidirectional prediction, the L0 reference picture index and the L1 reference picture index to 0, and the L0 motion vector and the L1 motion. The vector may be set to (0, 0) (S2340). When the value assigned to the L1 reference picture index is 0, the L1 reference picture index may indicate that the first picture among the reference pictures in the L1 reference picture list is used as the reference picture of the current picture.
  • mvLX, refIdxLX, and predFlagLX may be determined differently according to the picture type of the current picture.
  • X may be replaced with 0 or 1.
  • mvLX, refIdxLX, and predFlagLX may represent mvL0, refIdxL0, and predFlagL0, respectively, which may mean L0 motion information related variables.
  • mvLX may mean a motion vector of the current block
  • mvLX [0] may mean a motion vector of x component
  • mvLX [1] may mean a motion vector of y component.
  • refIdxLX may mean an LX reference picture index, which is an index indicating a reference picture used for inter prediction of a current block among reference pictures included in the LX reference picture list.
  • the refIdxLX value is '0'
  • the refIdxLX may indicate the first picture among reference pictures in the LX reference picture list
  • the refIdxLX value is '-1'
  • the refIdxLX is an LX reference picture It may indicate that there is no reference picture used for inter prediction of the current block in the list.
  • predflagLX may indicate a flag indicating whether a prediction block is generated by performing LX motion compensation on a current block. For example, when the value of 'predflagLX' is '1', the encoder and / or the decoder may perform LX motion compensation on the current block.
  • the decoder may perform the following process.
  • prefFlagL1 0
  • the decoder may perform the following process.
  • the decoder may perform the following process.
  • prefFlagL1 0
  • the decoder may perform the following process.
  • FIG. 24 is a block diagram schematically illustrating an example of an inter prediction apparatus capable of performing a motion information determination process according to the embodiment of FIG. 23.
  • the inter prediction apparatus according to the embodiment of FIG. 24 may include a determiner 2410, a bidirectional motion information setter 2420, and a unidirectional motion information setter 2430.
  • the motion information of the reconstructed neighboring block and / or the motion information of the call block may be used to derive the motion information of the current block.
  • the reconstructed motion information of neighboring blocks and / or call blocks may be used as motion information candidates, and the encoder and decoder may derive motion information of the current block based on the motion information candidates.
  • the motion information candidate may mean a predicted motion vector candidate in the AMVP mode, and may mean a merge candidate in the merge mode.
  • all blocks (restored neighboring blocks and / or call blocks) used for deriving motion information candidates may not have motion information. Accordingly, in this case, an inter prediction apparatus for deriving or setting motion information of the current block may be provided.
  • the first reference picture in the L0 reference picture list is referred to as an L0 reference picture
  • the first reference picture in the L1 reference picture list is referred to as an L1 reference picture.
  • the determination unit 2410 determines whether the picture type of the current picture is a B picture, and whether the L0 reference picture and the L1 reference picture are the same. Can be determined.
  • the inter prediction apparatus may perform unidirectional motion information setting by the unidirectional motion information setting unit 2420 or bidirectional motion information setting by the bidirectional motion information setting unit 2430 according to the determination result.
  • the unidirectional motion information setting is If the current picture is a B picture and the L0 reference picture and the L1 reference picture are not the same, bidirectional motion information setting may be performed.
  • the unidirectional motion information setting unit 2420 may set the prediction direction of the current block as unidirectional prediction. In this case, the unidirectional motion information setting unit 2420 may set the L0 reference picture index to 0 and set the L0 motion vector to (0,0).
  • the bidirectional motion information setting unit 2430 may set the prediction direction of the current block to bidirectional prediction. In this case, the bidirectional motion information setting unit 2430 may set the L0 reference picture index and the L1 reference picture index to 0 and set the L0 motion vector and the L1 motion vector to (0,0).
  • the motion information candidate may mean a predicted motion vector candidate in the AMVP mode, and may mean a merge candidate in the merge mode.
  • the B picture is a forward B picture.
  • the L0 reference picture list and the L1 reference picture list may be set identically.
  • "picture” may be used by being replaced with “frame”, “field”, and / or “slice” according to the context, and such division may be used by those skilled in the art. Ramen would be easy.
  • the motion information of the reconstructed neighboring block and / or the motion information of the call block may be used to derive the motion information of the current block.
  • the reconstructed motion information of the neighboring block and / or the call block may be used as a motion information candidate, and the encoder and the decoder may derive the motion information of the current block based on the motion information candidate.
  • a method for deriving or setting motion information of the current block may be provided. have.
  • the first reference picture in the L0 reference picture list is referred to as an L0 reference picture
  • the first reference picture in the L1 reference picture list is referred to as an L1 reference picture.
  • the encoder and the decoder may determine whether a picture type of a current picture is a B picture (S2510). If the picture type of the current picture is not a B picture, for example, if the picture type of the current picture is a P picture, the encoder and the decoder set the prediction direction of the current block to unidirectional prediction, and the L0 reference picture index is set to 0.
  • the L0 motion vector may be set to (0, 0) (S2520). When the value assigned to the L0 reference picture index is 0, the L0 reference picture index may indicate that the first picture among the reference pictures in the L0 reference picture list is used as the reference picture of the current picture. If the picture type of the current picture is a B picture, the encoder and the decoder may determine whether the L0 reference picture and the L1 reference picture are the same (S2530).
  • the encoder and the decoder may include a reference picture number of the first reference picture in the L0 reference picture list and a reference picture number of the first reference picture in the L1 reference picture list. You can determine the identity of.
  • the encoder and the decoder may determine whether the L0 reference picture and the L1 reference picture are the same by determining the sameness between the L0 reference picture number of the L0 reference picture and the L1 reference picture number of the L1 reference picture. The method of determining the identity of the reference picture may be variously changed according to a situation.
  • the encoder and the decoder set the prediction direction of the current block to bidirectional prediction, the L0 reference picture index and the L1 reference picture index to 0, and the L0 motion vector and the L1 motion.
  • the vector may be set to (0, 0) (S2540).
  • the L1 reference picture index may indicate that the first picture among the reference pictures in the L1 reference picture list is used as the reference picture of the current picture.
  • the encoder and the decoder set the prediction direction of the current block to bidirectional prediction, set the L0 reference picture index to 0, set the L1 reference picture index to 1, and L0 motion vector And L1 motion vector can be set to (0,0) (S2550).
  • the L1 reference picture index may indicate that a second picture among the reference pictures in the L1 reference picture list is used as the reference picture of the current picture.
  • the encoder and the decoder set the prediction direction of the current block to unidirectional prediction, the L0 reference picture index to 0, and the L0 motion vector is ( 0,0).
  • mvLX, refIdxLX, and predFlagLX may be determined differently according to the picture type of the current picture.
  • X may be replaced with 0 or 1.
  • mvLX, refIdxLX, and predFlagLX may represent mvL0, refIdxL0, and predFlagL0, respectively, which may mean L0 motion information related variables.
  • mvLX may mean a motion vector of the current block
  • mvLX [0] may mean a motion vector of x component
  • mvLX [1] may mean a motion vector of y component.
  • refIdxLX may mean an LX reference picture index, which is an index indicating a reference picture used for inter prediction of a current block among reference pictures included in the LX reference picture list.
  • the refIdxLX value is '0'
  • the refIdxLX may indicate the first picture among reference pictures in the LX reference picture list
  • the refIdxLX value is '-1'
  • the refIdxLX is an LX reference picture It may indicate that there is no reference picture used for inter prediction of the current block in the list.
  • predflagLX may indicate a flag indicating whether a prediction block is generated by performing LX motion compensation on a current block. For example, when the value of 'predflagLX' is '1', the encoder and / or the decoder may perform LX motion compensation on the current block.
  • the decoder may perform the following process.
  • prefFlagL1 0
  • the decoder may perform the following process.
  • the decoder may perform the following process.
  • the decoder may perform the following process.
  • FIG. 26 is a block diagram schematically illustrating an example of an inter prediction apparatus capable of performing a motion information determination process according to the embodiment of FIG. 25.
  • the inter prediction apparatus according to the embodiment of FIG. 26 may include a determination unit 2610, a unidirectional motion information setting unit 2620, a first bidirectional motion information setting unit 2630, and a second bidirectional motion information setting unit 2640. Can be.
  • the B picture is a forward B picture.
  • the L0 reference picture list and the L1 reference picture list may be set identically.
  • "picture” may be used by being replaced with “frame”, “field”, and / or “slice” according to the context, and such division may be used by those skilled in the art. Ramen would be easy.
  • the motion information of the reconstructed neighboring block and / or the motion information of the call block may be used to derive the motion information of the current block.
  • the reconstructed motion information of the neighboring block and / or the call block may be used as a motion information candidate, and the encoder and the decoder may derive the motion information of the current block based on the motion information candidate.
  • the motion information candidate may mean a predicted motion vector candidate in the AMVP mode, and may mean a merge candidate in the merge mode.
  • the inter prediction apparatus for deriving or setting motion information of the current block may be used. Can be provided.
  • the first reference picture in the L0 reference picture list is referred to as an L0 reference picture
  • the first reference picture in the L1 reference picture list is referred to as an L1 reference picture.
  • the determiner 2610 receives picture type information, an L0 reference picture, and an L1 reference picture, and then determines whether a picture type of the current picture is a B picture and whether the L0 L0 reference picture and the L1 reference picture are the same. It can be determined. According to the determination result, the inter prediction apparatus sets unidirectional motion information by the unidirectional motion information setting unit 2620, sets first bidirectional motion information by the first bidirectional motion information setting unit 2630, or sets second bidirectional motion information. The second bidirectional motion information setting by the unit 2640 may be performed.
  • unidirectional motion information setting may be performed.
  • the determination unit 2610 may determine whether the L0 reference picture and the L1 reference picture are the same. In this case, when the L0 reference picture and the L1 reference picture are not the same, the first bidirectional motion information setting may be performed. When the L0 reference picture and the L1 reference picture are the same, the second bidirectional motion information setting may be performed. .
  • unidirectional motion information setting may be performed.
  • the unidirectional motion information setting unit 2620 may set the prediction direction of the current block as unidirectional prediction.
  • the unidirectional motion information setting unit 2620 may set the L0 reference picture index to 0 and set the L0 motion vector to (0,0).
  • the first bidirectional motion information setting unit 2630 may set the prediction direction of the current block to bidirectional prediction.
  • the first bidirectional motion information setting unit 2630 may set the L0 reference picture index and the L1 reference picture index to 0, and set the L0 motion vector and the L1 motion vector to (0,0).
  • the second bidirectional motion information setting unit 2640 may set the prediction direction of the current block to bidirectional prediction.
  • the second bidirectional motion information setting unit 2640 sets the L0 reference picture index to 0, sets the L1 reference picture index to 1, and sets the L0 motion vector and the L1 motion vector to (0,0). Can be.
  • FIGS. 7 to 26 may be applied individually, but may be combined and applied in various ways according to the encoding mode of each block.
  • a block in which an encoding mode is a merge mode is called a merge block.
  • a block in which an encoding mode is an AMVP mode may be used.
  • the current block may correspond to one of a merge block or a block other than the merge block in some cases.
  • the merge candidate determination method according to the embodiment of FIG. 15 may be applied to the merge block, and the inter prediction method according to the embodiment of FIG. 7 or FIG. 8 may be applied to a block that is not the merge block.
  • the merge block when the L0 motion information (L0 reference picture number, L0 motion vector) and the L1 motion information (L1 reference picture number, L1 motion vector) of the reference block are the same, only the L0 motion information of the reference block is the same. It may be used or registered as a merge candidate of the current block.
  • a block other than the merge block when the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same, a unidirectional motion compensation process may be performed on the current block.
  • the method for deriving temporal motion information according to the embodiment of FIG. 19 may be applied to the merge block, and the inter prediction method according to the embodiment of FIG. 7 or 8 may be applied to a block other than the merge block.
  • the merge block when the L0 reference picture number and the L1 reference picture number are the same and the L0 motion vector and the L1 motion vector are the same, only L0 temporal motion information may be used as the temporal motion information for the current block.
  • a block other than the merge block when the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same, a unidirectional motion compensation process may be performed on the current block.
  • the method for deriving temporal motion information according to the embodiment of FIG. 19 and the method for determining motion information according to the embodiment of FIG. 23 are applied to the merge block, and the block according to the embodiment of FIG. An inter prediction method may be applied.
  • the merge block when the L0 reference picture number and the L1 reference picture number are the same and the L0 motion vector and the L1 motion vector are the same, only L0 temporal motion information may be used as the temporal motion information for the current block.
  • the merge block if all blocks (restored neighboring blocks and / or call blocks) used for deriving the merge candidate do not have motion information, the predetermined method described above with reference to FIG.
  • L0 motion information reference picture number and motion vector
  • L1 motion information reference picture number and motion vector
  • the temporal motion information derivation method according to the embodiment of FIG. 17 may be applied to the merge block, and the inter prediction method according to the embodiment of FIG. 10 may be applied to a block other than the merge block.
  • a temporal motion information deriving method for deriving temporal motion information for the current block according to the list information described above with reference to FIG. 17 may be applied to the merge block.
  • the list information may mean information indicating whether L0 motion information and / or L1 motion information exists in the call block.
  • the L0 motion information reference picture number and motion vector
  • the L1 motion information reference picture number and motion vector
  • the method for deriving temporal motion information according to the embodiment of FIG. 21 and the method for determining motion information according to the embodiment of FIG. 23 are applied to the merge block, and the method of FIG. 7 or 8 is applied to a block other than the merge block.
  • An inter prediction method according to an example may be applied.
  • temporal motion information is derived according to whether the current motion information to be derived is L0 temporal motion information or L1 temporal motion information.
  • the call picture used for may be determined.
  • the predetermined method described above with reference to FIG. 23 (for example, (0, Motion information of the current block) may be determined.
  • a block other than the merge block when the L0 motion information (reference picture number and motion vector) and the L1 motion information (reference picture number and motion vector) are the same, a unidirectional motion compensation process may be performed on the current block.
  • the method for deriving temporal motion information according to the embodiment of FIG. 21 and the method for determining motion information according to the embodiment of FIG. 25 are applied to the merge block, and the block according to the embodiment of FIG. An inter prediction method may be applied.
  • the merge block when the current block is a block in a forward B picture and / or a forward B slice, temporal motion information is derived according to whether the current motion information to be derived is L0 temporal motion information or L1 temporal motion information.
  • the call picture used for may be determined.
  • the merge block when all blocks (restored neighboring blocks and / or call blocks) used for deriving a merge candidate do not have motion information, the predetermined method described above with reference to FIG.
  • L0 motion information reference picture number and motion vector
  • L1 motion information reference picture number and motion vector
  • FIGS. 7 to 26 The combination of the embodiments of FIGS. 7 to 26 is not limited to the above-described embodiment, and various types of combinations as well as the above-described embodiments may be provided according to implementation and / or need.
  • the computational complexity in the motion compensation process can be reduced, and the encoding / decoding efficiency can be improved.
  • 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 certain steps may occur in a different order or at the same time than other steps described above. Can be. Also, one of ordinary skill in the art appreciates that the steps shown in the flowcharts are not exclusive, that other steps may be included, or that one or more steps in the flowcharts may be deleted without affecting the scope of the present invention. I can understand.

Landscapes

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

Abstract

본 발명에 따른 인터 예측 방법은, 현재 블록의 움직임 정보를 도출하는 단계 및 도출된 움직임 정보에 기반하여 현재 블록에 대한 예측 블록을 생성하는 단계를 포함한다. 본 발명에 의하면, 계산 복잡도가 감소되고 부호화 효율이 향상될 수 있다.

Description

인터 예측 방법 및 그 장치
본 발명은 영상 처리에 관한 것으로서, 보다 상세하게는 인터 예측 방법 및 그 장치에 관한 것이다.
최근 HD(High Definition) 해상도를 가지는 방송 서비스가 국내뿐만 아니라 세계적으로 확대되면서, 많은 사용자들이 고해상도, 고화질의 영상에 익숙해지고 있으며 이에 따라 많은 기관들이 차세대 영상기기의 개발에 박차를 가하고 있다. 또한 HDTV와 더불어 HDTV의 4배 이상의 해상도를 갖는 UHD(Ultra High Definition)에 대한 관심이 증대되면서 보다 높은 해상도, 고화질의 영상에 대한 압축기술이 요구되고 있다.
영상 압축을 위해, 시간적으로 이전 및/또는 이후의 픽쳐로부터 현재 픽쳐에 포함된 픽셀값을 예측하는 인터(inter) 예측 기술, 현재 픽쳐 내의 픽셀 정보를 이용하여 현재 픽쳐에 포함된 픽셀값을 예측하는 인트라(intra) 예측 기술, 출현 빈도가 높은 심볼(symbol)에 짧은 부호를 할당하고 출현 빈도가 낮은 심볼에 긴 부호를 할당하는 엔트로피 부호화 기술 등이 사용될 수 있다.
본 발명의 기술적 과제는 계산 복잡도를 감소시키고 부호화 효율을 향상시킬 수 있는 영상 부호화 방법 및 그 장치를 제공함에 있다.
본 발명의 다른 기술적 과제는 계산 복잡도를 감소시키고 부호화 효율을 향상시킬 수 있는 영상 복호화 방법 및 그 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 계산 복잡도를 감소시키고 부호화 효율을 향상시킬 수 있는 인터 예측 방법 및 그 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 계산 복잡도를 감소시키고 부호화 효율을 향상시킬 수 있는 머지 후보 결정 방법 및 그 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 계산 복잡도를 감소시키고 부호화 효율을 향상시킬 수 있는 움직임 정보 결정 방법 및 그 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 계산 복잡도를 감소시키고 부호화 효율을 향상시킬 수 있는 시간적 움직임 정보 도출 방법 및 그 장치를 제공함에 있다.
1. 본 발명의 일 실시 형태는 인터 예측 방법이다. 상기 방법은, 현재 블록의 움직임 정보를 도출하는 단계 및 상기 도출된 움직임 정보에 기반하여 상기 현재 블록에 대한 예측 블록을 생성하는 단계를 포함하되, 상기 도출된 움직임 정보는 L0 움직임 정보 및 L1 움직임 정보를 모두 포함하고, 상기 예측 블록 생성 단계에서는, 단예측(uni-prediction) 및 쌍예측(bi-prediction) 중에서 하나를 선택적으로 수행하고, 상기 단예측은 상기 L0 움직임 정보를 기반으로 수행되는 예측이고, 상기 쌍예측은 상기 L0 움직임 정보 및 상기 L1 움직임 정보를 기반으로 수행되는 예측이다.
2. 1에 있어서, 상기 L0 움직임 정보는 L0 움직임 벡터 및 L0 참조 픽쳐 번호를 포함하고, 상기 L0 참조 픽쳐 번호는 POC(Picture Order Count) 순서에 따라 L0 참조 픽쳐에 할당된 번호이고, 상기 L1 움직임 정보는 L1 움직임 벡터 및 L1 참조 픽쳐 번호를 포함하고, 상기 L1 참조 픽쳐 번호는 POC 순서에 따라 L1 참조 픽쳐에 할당된 번호이고, 상기 예측 블록 생성 단계에서는, 상기 L0 움직임 정보와 상기 L1 움직임 정보가 동일한지 여부에 따라, 상기 단예측 및 상기 쌍예측 중에서 하나를 선택적으로 수행하고, 상기 L0 움직임 벡터 및 상기 L1 움직임 벡터가 동일하고 상기 L0 참조 픽쳐 번호 및 상기 L1 참조 픽쳐 번호가 동일한 경우에, 상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 것으로 판단할 수 있다.
3. 2에 있어서, 상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 경우, 상기 예측 블록 생성 단계에서는, 상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 상기 예측 블록을 생성할 수 있다.
4. 2에 있어서, 상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일하지 않은 경우, 상기 예측 블록 생성 단계는, 상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성하는 단계, 상기 L1 움직임 정보에 기반하여 상기 현재 블록에 대해 L1 움직임 보상을 수행함으로써 L1 움직임 보상된 블록을 생성하는 단계 및 상기 L0 움직임 보상된 블록 및 상기 L1 움직임 보상된 블록에 대해 가중치 평균을 수행함으로써 상기 예측 블록을 생성하는 단계를 더 포함할 수 있다.
5. 2에 있어서, 상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 경우, 상기 예측 블록 생성 단계는, 상기 L0 참조 픽쳐에 기반하여, 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성하는 단계, L1 참조 픽쳐 리스트를 구성하는 참조 픽쳐 중에서 상기 L1 참조 픽쳐와 동일하지 않은 참조 픽쳐에 기반하여, 상기 현재 블록에 대해 L1 움직임 보상을 수행함으로써 L1 움직임 보상된 블록을 생성하는 단계 및 상기 L0 움직임 보상된 블록 및 상기 L1 움직임 보상된 블록에 대해 가중치 평균을 수행함으로써 상기 예측 블록을 생성하는 단계를 더 포함할 수 있다.
6. 5에 있어서, 상기 L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 1개 이하인 경우, 상기 예측 블록 생성 단계에서는, 상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 상기 예측 블록을 생성할 수 있다.
7. 1에 있어서, 상기 방법은 상기 현재 블록에 대해 디폴트(default) 가중치 예측이 적용되는지 또는 넌-디폴트(non-default) 가중치 예측이 적용되는지 여부를 판단하는 단계를 더 포함할 수 있고, 상기 예측 블록 생성 단계에서는, 상기 판단 결과에 따라 상기 디폴트 가중치 예측 및 상기 넌-디폴트 가중치 예측 중에서 하나를 선택적으로 수행할 수 있다.
8. 7에 있어서, 상기 현재 블록에 대해 상기 디폴트 가중치 예측이 적용되는지 또는 상기 넌-디폴트 가중치 예측이 적용되는지 여부는 가중치 예측 인덱스에 의해 지시될 수 있다.
9. 1에 있어서, 상기 예측 블록 생성 단계에서는, 상기 현재 블록의 크기가 소정의 크기보다 작은지 여부에 따라, 상기 단예측 및 상기 쌍예측 중에서 하나를 선택적으로 수행할 수 있다.
10. 9에 있어서, 상기 현재 블록의 크기가 8x8보다 작은 경우, 상기 방법은 상기 L0 움직임 정보 및 상기 L1 움직임 정보 중에서 상기 L0 움직임 정보만을 상기 현재 블록의 움직임 정보로 설정하는 단계를 더 포함할 수 있고, 상기 예측 블록 생성 단계에서는, 상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 상기 예측 블록을 생성할 수 있다.
11. 본 발명의 다른 실시 형태는 인터 예측 장치이다. 상기 장치는, 현재 블록의 움직임 정보를 도출하는 움직임 예측부(motion estimator) 및 상기 도출된 움직임 정보에 기반하여 상기 현재 블록에 대한 예측 블록을 생성하는 움직임 보상부(motion compensator)를 포함하되, 상기 도출된 움직임 정보는 L0 움직임 정보 및 L1 움직임 정보를 모두 포함하고, 상기 움직임 보상부는 단예측(uni-prediction) 및 쌍예측(bi-prediction) 중에서 하나를 선택적으로 수행하고, 상기 단예측은 상기 L0 움직임 정보를 기반으로 수행되는 예측이고, 상기 쌍예측은 상기 L0 움직임 정보 및 상기 L1 움직임 정보를 기반으로 수행되는 예측이다.
12. 본 발명의 또 다른 실시 형태는 영상 복호화 방법이다. 상기 방법은, 현재 블록의 움직임 정보를 도출하는 단계, 상기 도출된 움직임 정보에 기반하여 상기 현재 블록에 대한 예측 블록을 생성하는 단계 및 상기 생성된 예측 블록을 기반으로 상기 현재 블록에 대한 복원 블록을 생성하는 단계를 포함하되, 상기 도출된 움직임 정보는 L0 움직임 정보 및 L1 움직임 정보를 모두 포함하고, 상기 예측 블록 생성 단계에서는, 단예측(uni-prediction) 및 쌍예측(bi-prediction) 중에서 하나를 선택적으로 수행하고, 상기 단예측은 상기 L0 움직임 정보를 기반으로 수행되는 예측이고, 상기 쌍예측은 상기 L0 움직임 정보 및 상기 L1 움직임 정보를 기반으로 수행되는 예측이다.
13. 12에 있어서, 상기 L0 움직임 정보는 L0 움직임 벡터 및 L0 참조 픽쳐 번호를 포함하고, 상기 L0 참조 픽쳐 번호는 POC(Picture Order Count) 순서에 따라 L0 참조 픽쳐에 할당된 번호이고, 상기 L1 움직임 정보는 L1 움직임 벡터 및 L1 참조 픽쳐 번호를 포함하고, 상기 L1 참조 픽쳐 번호는 POC 순서에 따라 L1 참조 픽쳐에 할당된 번호이고, 상기 예측 블록 생성 단계에서는, 상기 L0 움직임 정보와 상기 L1 움직임 정보가 동일한지 여부에 따라, 상기 단예측 및 상기 쌍예측 중에서 하나를 선택적으로 수행하고, 상기 L0 움직임 벡터 및 상기 L1 움직임 벡터가 동일하고 상기 L0 참조 픽쳐 번호 및 상기 L1 참조 픽쳐 번호가 동일한 경우에, 상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 것으로 판단할 수 있다.
14. 13에 있어서, 상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 경우, 상기 예측 블록 생성 단계에서는, 상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 상기 예측 블록을 생성할 수 있다.
15. 13에 있어서, 상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일하지 않은 경우, 상기 예측 블록 생성 단계는, 상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성하는 단계, 상기 L1 움직임 정보에 기반하여 상기 현재 블록에 대해 L1 움직임 보상을 수행함으로써 L1 움직임 보상된 블록을 생성하는 단계 및 상기 L0 움직임 보상된 블록 및 상기 L1 움직임 보상된 블록에 대해 가중치 평균을 수행함으로써 상기 예측 블록을 생성하는 단계를 더 포함할 수 있다.
16. 12에 있어서, 상기 방법은 상기 현재 블록에 대해 디폴트(default) 가중치 예측이 적용되는지 또는 넌-디폴트(non-default) 가중치 예측이 적용되는지 여부를 판단하는 단계를 더 포함할 수 있고, 상기 예측 블록 생성 단계에서는, 상기 판단 결과에 따라 상기 디폴트 가중치 예측 및 상기 넌-디폴트 가중치 예측 중에서 하나를 선택적으로 수행할 수 있다.
17. 16에 있어서, 상기 현재 블록에 대해 상기 디폴트 가중치 예측이 적용되는지 또는 상기 넌-디폴트 가중치 예측이 적용되는지 여부는 가중치 예측 인덱스에 의해 지시될 수 있다.
본 발명에 따른 영상 부호화 방법에 의하면, 계산 복잡도가 감소되고 부호화 효율이 향상될 수 있다.
본 발명에 따른 영상 복호화 방법에 의하면, 계산 복잡도가 감소되고 부호화 효율이 향상될 수 있다.
본 발명에 따른 인터 예측 방법에 의하면, 계산 복잡도가 감소되고 부호화 효율이 향상될 수 있다.
본 발명에 따른 머지 후보 결정 방법에 의하면, 계산 복잡도가 감소되고 부호화 효율이 향상될 수 있다.
본 발명에 따른 움직임 정보 결정 방법에 의하면, 계산 복잡도가 감소되고 부호화 효율이 향상될 수 있다.
본 발명에 따른 시간적 움직임 정보 도출 방법에 의하면, 계산 복잡도가 감소되고 부호화 효율이 향상될 수 있다.
도 1은 본 발명이 적용되는 영상 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 2는 본 발명이 적용되는 영상 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 3은 인터 예측 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 4는 양방향 예측이 적용되는 경우, 인터 예측 방법의 실시예를 개략적으로 나타내는 도면이다.
도 5는 양방향 예측이 적용되는 경우, 인터 예측 방법의 다른 실시예를 개략적으로 나타내는 도면이다.
도 6은 부호화된 영상의 움직임 정보의 일 실시예를 개략적으로 나타내는 도면이다.
도 7은 본 발명에 따른 인터 예측 방법의 일 실시예를 개략적으로 나타내는 개념도이다.
도 8은 본 발명에 따른 인터 예측 방법의 다른 실시예를 개략적으로 나타내는 개념도이다.
도 9는 도 7의 실시예에 따른 디폴트 가중치 예측을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 10은 본 발명에 따른 인터 예측 방법의 또 다른 실시예를 개략적으로 나타내는 흐름도이다.
도 11은 도 10의 실시예에 따른 인터 예측을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 12는 본 발명에 따른 인터 예측 방법의 또 다른 실시예를 개략적으로 나타내는 개념도이다.
도 13은 본 발명에 따른 인터 예측 방법의 또 다른 실시예를 개략적으로 나타내는 개념도이다.
도 14는 도 12의 실시예에 따른 디폴트 가중치 예측을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 15는 현재 블록에 대해 머지(merge)가 적용되는 경우, 본 발명에 따른 머지 후보 결정 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 16은 도 15의 실시예에 따른 머지 후보 결정 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 17은 본 발명에 따른 시간적 움직임 정보 도출 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 18은 도 17의 실시예에 따른 시간적 움직임 정보 도출 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 19는 본 발명에 따른 현재 블록의 시간적 움직임 정보 도출 방법의 다른 실시예를 개략적으로 나타내는 흐름도이다.
도 20은 도 19의 실시예에 따른 시간적 움직임 정보 도출 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 21은 현재 블록의 시간적 움직임 정보를 도출할 때, 콜 픽쳐를 결정하는 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 22는 도 21의 실시예에 따른 콜 픽쳐 결정 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 23은 움직임 정보 후보 도출에 사용되는 모든 블록이 움직임 정보를 가지고 있지 않은 경우, 현재 블록의 움직임 정보를 결정하는 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 24는 도 23의 실시예에 따른 움직임 정보 결정 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 25는 움직임 정보 후보 도출에 사용되는 모든 블록이 움직임 정보를 가지고 있지 않은 경우, 현재 블록의 움직임 정보를 결정하는 방법의 다른 실시예를 개략적으로 나타내는 흐름도이다.
도 26은 도 25의 실시예에 따른 움직임 정보 결정 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
이하, 도면을 참조하여 본 발명의 실시 형태에 대하여 구체적으로 설명한다. 본 명세서의 실시예를 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 명세서의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.
어떤 구성 요소가 다른 구성 요소에 “연결되어” 있다거나 “접속되어” 있다고 언급된 때에는, 그 다른 구성 요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있으나, 중간에 다른 구성 요소가 존재할 수도 있다고 이해되어야 할 것이다. 아울러, 본 발명에서 특정 구성을 “포함”한다고 기술하는 내용은 해당 구성 이외의 구성을 배제하는 것이 아니며, 추가적인 구성이 본 발명의 실시 또는 본 발명의 기술적 사상의 범위에 포함될 수 있음을 의미한다.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다.
또한 본 발명의 실시예에 나타나는 구성부들은 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시되는 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수 개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.

도 1은 본 발명이 적용되는 영상 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 1을 참조하면, 상기 영상 부호화 장치(100)는 움직임 예측부(111), 움직임 보상부(112), 인트라 예측부(120), 스위치(115), 감산기(125), 변환부(130), 양자화부(140), 엔트로피 부호화부(150), 역양자화부(160), 역변환부(170), 가산기(175), 필터부(180) 및 참조 픽쳐 버퍼(190)를 포함한다.
영상 부호화 장치(100)는 입력 영상에 대해 인트라(intra) 모드 또는 인터(inter) 모드로 부호화를 수행하고 비트스트림을 출력할 수 있다. 인트라 예측은 화면 내 예측, 인터 예측은 화면 간 예측을 의미한다. 인트라 모드인 경우 스위치(115)가 인트라로 전환되고, 인터 모드인 경우 스위치(115)가 인터로 전환될 수 있다. 영상 부호화 장치(100)는 입력 영상의 입력 블록에 대한 예측 블록을 생성한 후, 입력 블록과 예측 블록의 차분(residual)을 부호화할 수 있다.
인트라 모드인 경우, 인트라 예측부(120)는 현재 블록 주변의 이미 부호화된 블록의 픽셀값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성할 수 있다.
인터 모드인 경우, 움직임 예측부(motion estimator)(111)는, 움직임 예측 과정에서 참조 픽쳐 버퍼(190)에 저장되어 있는 참조 영상에서 입력 블록과 가장 매치가 잘 되는 영역을 찾아 움직임 벡터를 구할 수 있다. 움직임 보상부(112)는 움직임 벡터를 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다.
감산기(125)는 입력 블록과 생성된 예측 블록의 차분에 의해 잔차 블록(residual block)을 생성할 수 있다. 변환부(130)는 잔차 블록에 대해 변환(transform)을 수행하여 변환 계수(transform coefficient)를 출력할 수 있다. 그리고 양자화부(140)는 입력된 변환 계수를 양자화 파라미터에 따라 양자화하여 양자화된 계수(quantized coefficient)를 출력할 수 있다.
엔트로피 부호화부(150)는, 양자화부(140)에서 산출된 값(예를 들어, 양자화된 계수)들 및/또는 부호화 과정에서 산출된 부호화 파라미터 값 등을 기초로 엔트로피 부호화를 수행하여 비트스트림(bit stream)을 출력할 수 있다.
엔트로피 부호화가 적용되는 경우, 높은 발생 확률을 갖는 심볼(symbol)에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 부호화 대상 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 부호화를 통해서 영상 부호화의 압축 성능이 높아질 수 있다. 엔트로피 부호화부(150)는 엔트로피 부호화를 위해 지수 골룸(exponential golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 부호화 방법을 사용할 수 있다.
도 1의 실시예에 따른 영상 부호화 장치는 인터 예측 부호화, 즉 화면 간(inter-frame) 예측 부호화를 수행하므로, 현재 부호화된 영상은 참조 영상으로 사용되기 위해 복호화되어 저장될 필요가 있다. 따라서 양자화된 계수는 역양자화부(160)에서 역양자화되고 역변환부(170)에서 역변환된다. 역양자화, 역변환된 계수는 가산기(175)를 통해 예측 블록과 더해지고 복원 블록이 생성된다.
복원 블록은 필터부(180)를 거치고, 필터부(180)는 디블록킹 필터(deblocking filter), SAO(Sample Adaptive Offset), ALF(Adaptive Loop Filter) 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(180)는 적응적 인루프(in-loop) 필터로 불릴 수도 있다. 디블록킹 필터는 블록 간의 경계에 생긴 블록 왜곡 및/또는 블록킹 아티팩트(blocking artifact)를 제거할 수 있다. SAO는 코딩 에러를 보상하기 위해 픽셀값에 적정 오프셋(offset) 값을 더해줄 수 있다. ALF는 복원된 영상과 원래의 영상을 비교한 값을 기초로 필터링을 수행할 수 있으며, 고효율이 적용되는 경우에만 수행될 수도 있다. 필터부(180)를 거친 복원 블록은 참조 픽쳐 버퍼(190)에 저장될 수 있다.

도 2는 본 발명이 적용되는 영상 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 2를 참조하면, 상기 영상 복호화 장치(200)는 엔트로피 복호화부(210), 역양자화부(220), 역변환부(230), 인트라 예측부(240), 움직임 보상부(250), 가산기(255), 필터부(260) 및 참조 픽쳐 버퍼(270)를 포함한다.
영상 복호화 장치(200)는 부호화기에서 출력된 비트스트림을 입력 받아 인트라 모드 또는 인터 모드로 복호화를 수행하고 재구성된 영상, 즉 복원 영상을 출력할 수 있다. 인트라 모드인 경우 스위치가 인트라로 전환되고, 인터 모드인 경우 스위치가 인터로 전환될 수 있다. 영상 복호화 장치(200)는 입력 받은 비트스트림으로부터 잔차 블록(residual block)을 얻고 예측 블록을 생성한 후 잔차 블록과 예측 블록을 더하여 재구성된 블록, 즉 복원 블록을 생성할 수 있다.
엔트로피 복호화부(210)는, 입력된 비트스트림을 확률 분포에 따라 엔트로피 복호화하여, 양자화된 계수(quantized coefficient) 형태의 심볼을 포함한 심볼들을 생성할 수 있다. 엔트로피 복호화 방법은 상술한 엔트로피 부호화 방법과 유사하다.
엔트로피 복호화 방법이 적용되는 경우, 높은 발생 확률을 갖는 심볼에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 각 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 복호화 방법을 통해서 영상 복호화의 압축 성능이 높아질 수 있다.
양자화된 계수는 역양자화부(220)에서 역양자화되고 역변환부(230)에서 역변환되며, 양자화된 계수가 역양자화/역변환 된 결과, 잔차 블록(residual block)이 생성될 수 있다.
인트라 모드인 경우, 인트라 예측부(240)는 현재 블록 주변의 이미 복호화된 블록의 픽셀값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성할 수 있다. 인터 모드인 경우, 움직임 보상부(250)는 움직임 벡터 및 참조 픽쳐 버퍼(270)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다.
잔차 블록과 예측 블록은 가산기(255)를 통해 더해지고, 더해진 블록은 필터부(260)를 거칠 수 있다. 필터부(260)는 디블록킹 필터, SAO, ALF 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(260)는 재구성된 영상, 즉 복원 영상을 출력할 수 있다. 복원 영상은 참조 픽쳐 버퍼(270)에 저장되어 인터 예측에 사용될 수 있다.
이하, 블록은 영상 부호화 및 복호화의 단위를 의미한다. 영상 부호화 및 복호화 시 부호화 혹은 복호화 단위는, 영상을 분할하여 부호화 혹은 복호화 할 때 그 분할된 단위를 의미하므로, 부호화 유닛 (CU: Coding Unit), 예측 유닛 (PU: Prediction Unit), 변환 유닛(TU: Transform Unit), 변환 블록(transform block) 등으로 불릴 수 있다. 하나의 블록은 크기가 더 작은 하위 블록으로 더 분할될 수 있다. 또한, 본 명세서에서 “픽쳐”는 문맥에 따라 “프레임”, “필드” 및/또는 “슬라이스”로 대체되어 사용될 수 있으며, 이러한 구분은 해당 기술 분야에서 통상의 지식을 가진 자라면 용이하게 할 수 있을 것이다. 예를 들어, 후술되는 P 픽쳐, B 픽쳐, 순방향 B 픽쳐는 문맥에 따라 각각 P 슬라이스, B 슬라이스, 순방향 B 슬라이스로 대체되어 사용될 수 있다.

도 3은 인터 예측 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 3을 참조하면, 부호화기 및 복호화기는 현재 블록에 대한 움직임 정보를 도출할 수 있다(S310).
인터 모드에서 부호화기 및 복호화기는 현재 블록의 움직임 정보를 도출한 후, 상기 도출된 움직임 정보에 기반하여 인터 예측 및/또는 움직임 보상을 수행할 수 있다. 이 때, 부호화기 및 복호화기는 복원된 주변 블록(neighboring block) 및/또는 이미 복원된 참조 픽쳐 내에서 현재 블록에 대응되는 콜(col) 블록(collocated block)의 움직임 정보를 이용함으로써, 부호화/복호화 효율을 향상시킬 수 있다. 여기서, 복원된 주변 블록은 이미 부호화 및/또는 복호화되어 복원된 현재 픽쳐 내의 블록으로서, 현재 블록에 인접한 블록 및/또는 현재 블록의 외부 코너에 위치한 블록을 포함할 수 있다. 또한 부호화기 및 복호화기는, 참조 픽쳐 내에서 현재 블록과 공간적으로 동일한 위치에 존재하는 블록을 기준으로 소정의 상대적인 위치를 결정할 수 있고, 상기 결정된 소정의 상대적인 위치(상기 현재 블록과 공간적으로 동일한 위치에 존재하는 블록의 내부 및/또는 외부의 위치)를 기반으로 상기 콜 블록을 도출할 수 있다.
한편, 움직임 정보 도출 방식은 현재 블록의 예측 모드에 따라 달라질 수 있다. 인터 예측을 위해 적용되는 예측 모드에는 AMVP(Advanced Motion Vector Predictor), 머지(merge) 등이 있을 수 있다.
일례로, AMVP(Advanced Motion Vector Predictor)가 적용되는 경우, 부호화기 및 복호화기는 복원된 주변 블록의 움직임 벡터 및/또는 콜 블록의 움직임 벡터를 이용하여, 예측 움직임 벡터 후보 리스트를 생성할 수 있다. 즉, 복원된 주변 블록의 움직임 벡터 및/또는 콜 블록의 움직임 벡터는 예측 움직임 벡터 후보로 사용될 수 있다. 부호화기는 상기 리스트에 포함된 예측 움직임 벡터 후보 중에서 선택된 최적의 예측 움직임 벡터를 지시하는 예측 움직임 벡터 인덱스를 복호화기로 전송할 수 있다. 이 때, 복호화기는 상기 예측 움직임 벡터 인덱스를 이용하여, 예측 움직임 벡터 후보 리스트에 포함된 예측 움직임 벡터 후보 중에서, 현재 블록의 예측 움직임 벡터를 선택할 수 있다.
부호화기는 현재 블록의 움직임 벡터와 예측 움직임 벡터 간의 움직임 벡터 차분(MVD: Motion Vector Difference)을 구할 수 있고, 이를 부호화하여 복호화기로 전송할 수 있다. 이 때, 복호화기는 수신된 움직임 벡터 차분을 복호화할 수 있고, 복호화된 움직임 벡터 차분과 예측 움직임 벡터의 합을 통해 현재 블록의 움직임 벡터를 도출할 수 있다.
다른 예로, 머지(merge)가 적용되는 경우, 부호화기 및 복호화기는 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보를 이용하여, 머지 후보 리스트를 생성할 수 있다. 즉, 부호화기 및 복호화기는 복원된 주변 블록 및/또는 콜 블록의 움직임 정보가 존재하는 경우, 이를 현재 블록에 대한 머지 후보로 사용할 수 있다.
부호화기는 머지 후보 리스트에 포함된 머지 후보 중에서 최적의 부호화 효율을 제공할 수 있는 머지 후보를 현재 블록에 대한 움직임 정보로 선택할 수 있다. 이 때, 상기 선택된 머지 후보를 지시하는 머지 인덱스가 비트스트림에 포함되어 복호화기로 전송될 수 있다. 복호화기는 상기 전송된 머지 인덱스를 이용하여, 머지 후보 리스트에 포함된 머지 후보 중에서 하나를 선택할 수 있으며, 상기 선택된 머지 후보를 현재 블록의 움직임 정보로 결정할 수 있다. 따라서, 머지 모드가 적용되는 경우, 복원된 주변 블록 및/또는 콜 블록의 움직임 정보가 현재 블록의 움직임 정보로 그대로 사용될 수 있다.
상술한 AMVP 및 머지 모드에서는, 현재 블록의 움직임 정보를 도출하기 위해, 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보가 사용될 수 있다. 이하, 후술되는 실시예들에서, 복원된 주변 블록으로부터 도출되는 움직임 정보는 공간적 움직임 정보라 하고, 콜 블록으로부터 도출되는 움직임 정보는 시간적 움직임 정보라 한다. 예를 들어, 복원된 주변 블록으로부터 도출되는 움직임 벡터는 공간적 움직임 벡터, 콜 블록으로부터 도출되는 움직임 벡터는 시간적 움직임 벡터로 불릴 수 있다.
다시 도 3을 참조하면, 부호화기 및 복호화기는 상기 도출된 움직임 정보에 기반하여 현재 블록에 대한 움직임 보상을 수행함으로써, 현재 블록의 예측 블록을 생성할 수 있다(S320). 여기서, 예측 블록은 현재 블록에 대한 움직임 보상 수행 결과 생성된, 움직임 보상된 블록을 의미할 수 있다. 또한, 복수의 움직임 보상된 블록은 하나의 움직임 보상된 영상을 구성할 수 있다. 따라서, 후술되는 실시예들에서 예측 블록은 문맥에 따라 ‘움직임 보상된 블록’ 및/또는 ‘움직임 보상된 영상’으로 지칭될 수 있으며, 이러한 구분은 해당 기술 분야에서 통상의 지식을 가진 자라면 용이하게 할 수 있을 것이다.

한편, 인터 예측이 수행되는 픽쳐에는 P 픽쳐 및 B 픽쳐가 있을 수 있다. P 픽쳐는 하나의 참조 픽쳐를 이용한 단방향 예측이 수행되는 픽쳐를 의미할 수 있고, B 픽쳐는 하나 이상, 예를 들어 두 개의 참조 픽쳐를 이용한 순방향, 역방향 또는 양방향 예측이 수행될 수 있는 픽쳐를 의미할 수 있다. 예를 들어, B 픽쳐에서는 1개의 순방향 참조 픽쳐(과거 픽쳐) 및 1개의 역방향 참조 픽쳐(미래 픽쳐)를 이용하여 인터 예측이 수행될 수 있다. 또한, B 픽쳐에서는 2개의 순방향 참조 픽쳐를 이용하여 예측이 수행되거나, 2개의 역방향 참조 픽쳐를 이용하여 예측이 수행될 수도 있다.
여기서, 참조 픽쳐들은 참조 픽쳐 리스트(reference picture list)에 의해 관리될 수 있다. P 픽쳐에서는 1개의 참조 픽쳐가 사용되고, 상기 참조 픽쳐는 참조 픽쳐 리스트0(L0 또는 List0)에 할당될 수 있다. B 픽쳐에서는 2개의 참조 픽쳐가 사용되고, 상기 2개의 참조 픽쳐는 각각 참조 픽쳐 리스트0 및 참조 픽쳐 리스트1(L1 또는 List1)에 할당될 수 있다. 이하, L0 참조 픽쳐 리스트는 참조 픽쳐 리스트0과 동일한 의미를 가질 수 있으며, L1 참조 픽쳐 리스트는 참조 픽쳐 리스트1과 동일한 의미를 가질 수 있다.
일반적으로 순방향 참조 픽쳐는 참조 픽쳐 리스트0에 할당되고 역방향 참조 픽쳐는 참조 픽쳐 리스트1에 할당될 수 있다. 그러나, 참조 픽쳐의 할당 방법은 이에 한정되는 것이 아니며, 순방향 참조 픽쳐가 참조 픽쳐 리스트1에 할당될 수도 있고, 역방향 참조 픽쳐가 참조 픽쳐 리스트0에 할당될 수도 있다. 이하, 참조 픽쳐 리스트0에 할당된 참조 픽쳐는 L0 참조 픽쳐, 참조 픽쳐 리스트1에 할당된 참조 픽쳐는 L1 참조 픽쳐라 한다.
참조 픽쳐들은 일반적으로 참조 픽쳐 번호에 따라, 내림차순으로 참조 픽쳐 리스트에 할당될 수 있다. 여기서, 참조 픽쳐 번호는 각 참조 픽쳐에 POC(Picture Order Count) 순서로 할당된 번호를 의미할 수 있으며, 상기 POC 순서는 픽쳐의 표시 순서 및/또는 시간 순서를 의미할 수 있다. 예를 들어, 참조 픽쳐 번호가 동일한 2개의 참조 픽쳐는 서로 동일한 참조 픽쳐에 해당될 수 있다. 참조 픽쳐 리스트에 할당된 참조 픽쳐들은 참조 픽쳐 리스트 재배열(RPLR: Reference Picture List Reordering) 또는 메모리 관리 컨트롤(MMCO: Memory Management Control Operation) 명령에 의해 재배열될 수 있다.
상술한 바와 같이, P 픽쳐에서는 1개의 L0 참조 픽쳐를 이용한 단방향 예측이 수행될 수 있고, B 픽쳐에서는 1개의 L0 참조 픽쳐 및 1개의 L1 참조 픽쳐, 즉 2개의 참조 픽쳐를 이용한 순방향, 역방향 또는 양방향 예측이 수행될 수 있다. 1개의 참조 픽쳐를 이용한 예측은 단예측(uni-prediction)으로 불릴 수 있고, L0 참조 픽쳐 및 L1 참조 픽쳐를 포함한 2개의 참조 픽쳐를 이용한 예측은 쌍예측(bi-prediction)으로 불릴 수 있다.
쌍예측은 순방향 예측, 역방향 예측 및 양방향 예측을 모두 포함하는 개념으로 사용될 수 있으나, 후술되는 실시예들에서는 편의상 2개의 참조 픽쳐(L0 참조 픽쳐 및 L1 참조 픽쳐)를 이용한 예측은 양방향 예측이라 한다. 즉, 후술되는 실시예들에서 양방향 예측은 쌍예측을 의미할 수 있고, 2개의 참조 픽쳐(L0 참조 픽쳐 및 L1 참조 픽쳐)를 이용한 순방향, 역방향, 양방향 예측을 모두 포함하는 개념으로 이해될 수 있다. 또한 쌍예측이 수행되는 경우에도 순방향 예측 또는 역방향 예측이 수행될 수 있으나, 후술되는 실시예들에서는 편의상 1개의 참조 픽쳐만을 이용한 예측을 단방향 예측이라 한다. 즉, 후술되는 실시예들에서 단방향 예측은 단예측을 의미할 수 있고, 1개의 참조 픽쳐를 이용한 예측만을 포함하는 개념으로 이해되어야 할 것이다. 또한, 이하 예측이 수행되는 블록에 대해 단방향 예측(단예측)이 적용되는지 또는 양방향 예측(쌍예측)이 적용되는지 여부를 지시하는 정보는 예측 방향 정보라 한다.

도 4는 양방향 예측이 적용되는 경우, 인터 예측 방법의 실시예를 개략적으로 나타내는 도면이다.
상술한 바와 같이, 부호화기 및 복호화기는 인터 예측시 단방향 예측뿐만 아니라 양방향 예측을 수행할 수 있다. 양방향 예측이 적용되는 경우, 예측이 수행되는 각각의 블록은 두 개의 참조 픽쳐(L0 참조 픽쳐 및 L1 참조 픽쳐)를 가질 수 있다. 또한 이 때, 양방향 예측이 수행되는 각각의 블록은 두 개의 움직임 정보를 가질 수 있다. 여기서, 움직임 정보는 참조 픽쳐 번호 및 움직임 벡터 등을 포함할 수 있다.
양방향 예측이 수행되는 경우, 부호화기 및 복호화기는 참조 픽쳐 리스트0 및 참조 픽쳐 리스트1에서 각각 하나의 참조 픽쳐를 선택하여 예측에 사용할 수 있다. 즉, L0 참조 픽쳐 및 L1 참조 픽쳐를 포함하는 2 개의 참조 픽쳐가 양방향 예측에 사용될 수 있다. 이하, L0 참조 픽쳐에 대응되는 움직임 정보는 L0 움직임 정보라 하고, L1 참조 픽쳐에 대응되는 움직임 정보는 L1 움직임 정보라 한다. 또한, L0 움직임 정보를 이용한 움직임 보상은 L0 움직임 보상이라 하고, L1 움직임 정보를 이용한 움직임 보상은 L1 움직임 보상이라 한다.
도 4를 참조하면, 부호화기 및 복호화기는 L0 움직임 정보 및 L0 참조 픽쳐 리스트를 이용하여 현재 블록에 대한 L0 움직임 보상(410)을 수행함으로써, L0 움직임 보상된 블록을 생성할 수 있다. 또한, 부호화기 및 복호화기는 L1 움직임 정보 및 L1 참조 픽쳐 리스트를 이용하여 L1 움직임 보상(420)을 수행함으로써, L1 움직임 보상된 블록을 생성할 수 있다. 이 때, L0 움직임 보상(410) 및 L1 움직임 보상(420) 과정은 서로 독립적으로 수행될 수 있다.
부호화기 및 복호화기는 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록에 대해 가중치 평균(430)을 수행하여, 최종적으로 하나의 움직임 보상된 블록을 생성할 수 있다. 일례로, 상기 가중치 평균(430)은 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록 내의 픽셀 단위로 수행될 수 있다. 이 때, 최종적으로 생성된 하나의 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.
이하, 양방향 예측시에 적용되는 움직임 보상은 양방향 움직임 보상이라 한다. 이에 대응하여, 단방향 예측시에 적용되는 움직임 보상은 단방향 움직임 보상으로 불릴 수 있다.

도 5는 양방향 예측이 적용되는 경우, 인터 예측 방법의 다른 실시예를 개략적으로 나타내는 도면이다.
양방향 움직임 보상시에는 라운딩 에러(rounding error)가 발생할 수 있다. 따라서, 부호화기 및 복호화기는 라운딩 에러를 제거하기 위해, 라운딩 조절(rounding control)을 수행할 수 있다.
도 5를 참조하면, 부호화기 및 복호화기는 라운딩 에러 제거를 위해, 고정확도(HA: High Accuracy) 픽셀 보간 필터(IF: Interpolation Filter)를 이용하여 움직임 보상을 수행할 수 있다. 고정확도 픽셀 보간 방법 또는 고정확도 움직임 보상 방법이 적용되는 경우, 부호화기 및 복호화기는 움직임 보상 수행 전에 영상의 비트 깊이(bit depth)를 증가시킬 수 있고, 마지막으로 가중치 평균이 수행될 때 다시 영상의 비트 깊이를 감소시킬 수 있다. 또한, 부호화기 및 복호화기는 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록에 대해 고정확도(HA) 가중치 평균을 수행하여, 최종적으로 하나의 움직임 보상된 블록을 생성할 수 있다.
상술한 바와 같이 라운딩 조절 프로세스가 적용되는 경우, 단방향 움직임 보상과 양방향 움직임 보상 간에 움직임 보상 방법의 차이가 발생할 수도 있다.

도 6은 부호화된 영상의 움직임 정보의 일 실시예를 개략적으로 나타내는 도면이다. 도 6은 부호화된 영상을 구성하는 복수의 블록 및 상기 복수의 블록 각각의 움직임 정보를 도시한다.
도 6에서 부호화된 영상은 BasketballDrill에 해당된다. 여기서, BasketballDrill은 영상 부호화/복호화 실험에 사용되는 테스트 시퀀스(test sequence)의 명칭을 나타낸다. 부호화된 영상의 크기는 832x480이고, POC(Picture Order Count)는 2이다. 또한, 도 6의 영상에 적용된 양자화 파라미터(QP: Quantization Parameter) 값은 32이다.
부호화기 및 복호화기는 저지연 응용 환경에서의 인터 예측 효율을 높이기 위해, 순방향 B 픽쳐를 이용할 수 있다. 여기서, 순방향 B 픽쳐는 순방향 예측만이 수행되는 B 픽쳐를 의미할 수 있다. 순방향 B 픽쳐가 사용되는 경우, 예측이 수행되는 각각의 블록은 두 개의 움직임 정보(L0 움직임 정보, L1 움직임 정보)를 가질 수 있다. 순방향 B 픽쳐에서는 일반적으로 L0 참조 픽쳐 리스트 및 L1 참조 픽쳐 리스트가 동일하게 설정될 수 있다. 이하 본 명세서에서, 순방향 B 픽쳐가 사용되는 경우에는 L0 참조 픽쳐 리스트 및 L1 참조 픽쳐 리스트가 동일하다고 가정한다.
복호화기는 L0 참조 픽쳐 리스트 및 L1 참조 픽쳐 리스트를 기반으로, 현재 픽쳐가 순방향 B 픽쳐인지 여부를 직접 판단할 수도 있으나, 부호화기로부터 전송된 정보를 기반으로 현재 픽쳐가 순방향 B 픽쳐인지 여부를 판단할 수도 있다. 예를 들어, 부호화기는 L0 참조 픽쳐 리스트 및 L1 참조 픽쳐 리스트가 동일한지 여부를 지시하는 플래그를 부호화하여 복호화기로 전송할 수 있다. 이 때, 복호화기는 상기 플래그를 수신하여 복호화한 후, 복호화된 플래그를 기반으로, 현재 픽쳐가 순방향 B 픽쳐인지 여부를 판단할 수 있다. 또 다른 예로, 부호화기는 순방향 B 픽쳐에 해당하는 NAL 유닛 타입 값 또는 슬라이스 타입 값을 복호화기로 전송할 수 있고, 복호화기는 상기 값을 수신하여 이를 기반으로 순방향 B 픽쳐 여부를 판단할 수도 있다.
도 6에 도시된 영상은 순방향 B 픽쳐를 사용하여 부호화된 영상이다. 따라서, 부호화된 영상 내의 각각의 블록은 최대 두 개의 움직임 정보를 가질 수 있다. 여기서, 움직임 정보는 참조 픽쳐 번호, 움직임 벡터 등을 포함할 수 있다. 도 6을 참조하면, 두 개의 움직임 정보를 갖는 블록들 중에서 L0 움직임 정보(예를 들어, 참조 픽쳐 번호, 움직임 벡터)와 L1 움직임 정보(예를 들어, 참조 픽쳐 번호, 움직임 벡터)가 동일한 블록이 다수 존재할 수 있다.
순방향 B 픽쳐에서 L0 움직임 정보(예를 들어, 참조 픽쳐 번호, 움직임 벡터)와 L1 움직임 정보(예를 들어, 참조 픽쳐 번호, 움직임 벡터)가 동일한 블록은, 시간적 움직임 정보 도출 방법에 기인하여 발생할 수 있다. 상술한 바와 같이, 시간적 움직임 정보는 이미 복원된 참조 픽쳐 내에서 현재 블록에 대응하는 콜 블록의 움직임 정보로부터 도출될 수 있다. 예를 들어, 현재 블록의 L0 시간적 움직임 정보를 도출할 때, 부호화기 및 복호화기는 참조 픽쳐 내에서 현재 블록에 대응하는 콜 블록의 L0 움직임 정보를 사용할 수 있다. 그러나, 상기 콜 블록에 L0 움직임 정보가 존재하지 않는 경우, 부호화기 및 복호화기는 상기 콜 블록의 L1 움직임 정보를 현재 블록의 L0 시간적 움직임 정보로 사용할 수 있다. 반대로, 현재 블록의 L1 시간적 움직임 정보를 도출할 때, 부호화기 및 복호화기는 참조 픽쳐 내에서 현재 블록에 대응하는 콜 블록의 L1 움직임 정보를 사용할 수 있다. 그러나, 상기 콜 블록에 L1 움직임 정보가 존재하지 않는 경우, 부호화기 및 복호화기는 상기 콜 블록의 L0 움직임 정보를 현재 블록의 L1 시간적 움직임 정보로 사용할 수 있다. 상술한 프로세스 수행 결과, 현재 블록의 L0 움직임 정보와 L1 움직임 정보가 동일해지는 현상이 발생할 수 있다.
또한, L0 움직임 정보와 L1 움직임 정보가 동일한 블록이 발생된 경우, 상기 블록은 이후에 부호화되는 블록에 영향을 미칠 수 있다. 예를 들어, 머지(merge)가 적용되는 경우, 복원된 주변 블록 및/또는 콜 블록의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)가 현재 블록의 움직임 정보로 그대로 사용될 수 있다. 따라서, L0 움직임 정보와 L1 움직임 정보가 동일한 블록이 발생된 경우, L0 움직임 정보와 L1 움직임 정보가 동일한 다른 블록이 더 많이 발생될 수 있다.
L0 움직임 정보와 L1 움직임 정보가 동일한 블록에 대해 움직임 보상이 수행되는 경우에는, 하나의 블록에서 동일한 프로세스가 두 번 반복하여 수행될 수 있다. 이는 부호화 관점에서 매우 비효율적이므로, 상술한 문제점을 해결하여 계산 복잡도를 감소시키고 부호화 효율을 향상시킬 수 있는 인터 예측 방법 및/또는 움직임 보상 방법이 제공될 수 있다. 일례로, L0 움직임 정보(예를 들어, 참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(예를 들어, 참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 부호화기 및 복호화기는 움직임 보상 과정을 한 번만 수행함으로써 계산 복잡도를 감소시킬 수 있다.

도 7은 본 발명에 따른 인터 예측 방법의 일 실시예를 개략적으로 나타내는 개념도이다.
도 7에서 현재 블록은 두 개의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)를 갖는다고 가정한다. L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 부호화기 및 복호화기는 현재 블록에 대해 단방향 움직임 보상 과정을 수행함으로써 계산 복잡도를 감소시킬 수 있다.
도 7을 참조하면, 움직임 정보 판단 과정(710)에서는 L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한지 여부가 판단될 수 있다. 움직임 보상 과정은 상기 판단 결과에 따라 선택적으로 수행될 수 있다. 일례로, L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, 부호화기 및 복호화기는 단방향 움직임 보상 과정(720)을 수행할 수 있다. 그렇지 않으면 부호화기 및 복호화기는 양방향 움직임 보상 과정(730)을 수행할 수 있다.
단방향 움직임 보상 과정(720)에서, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L0 참조 픽쳐 및 L0 움직임 정보를 이용하여 현재 블록에 대한 L0 움직임 보상을 수행할 수 있다. 부호화기 및 복호화기는 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성할 수 있다. 이 때, L0 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.
양방향 움직임 보상 과정(730)에서, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L0 참조 픽쳐 및 L0 움직임 정보를 이용하여 현재 블록에 대해 L0 움직임 보상을 수행함으로써, L0 움직임 보상된 블록을 생성할 수 있다. 또한, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L1 참조 픽쳐 및 L1 움직임 정보를 이용하여 현재 블록에 대해 L1 움직임 보상을 수행함으로써, L1 움직임 보상된 블록을 생성할 수 있다.
양방향 움직임 보상 과정(730)이 적용되는 경우, 부호화기 및 복호화기는 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록에 대해 가중치 평균을 수행하여, 최종적으로 하나의 움직임 보상된 블록을 생성할 수 있다. 일례로, 상기 가중치 평균은 픽셀 단위로 수행될 수 있으며, 예를 들어 L0 움직임 보상된 블록 내의 임의의 픽셀 및 이에 대응되는 L1 움직임 보상된 블록 내의 픽셀에 대해 수행될 수도 있다. 이 때, 최종적으로 생성된 하나의 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.
상술한 실시예에서는 가중치 평균에 의해 최종 예측 블록이 생성되므로, 상술한 인터 예측 방법은 가중치 예측으로 불릴 수도 있다. 이하, 도 7에서와 같이 가중치 평균 과정에서 디폴트로 적용되거나 기본적으로 적용되는 가중치는 ‘디폴트(default) 가중치’라 한다. 디폴트 가중치만이 적용되는 예측은 가중치 예측이 아닌 것으로 평가될 수도 있으나, 본 명세서에서는 디폴트 가중치 외의 가중치가 별도로 또는 추가로 적용되는 ‘넌-디폴트(non-default) 가중치 예측’과 마찬가지로, 디폴트 가중치만이 적용되는 인터 예측도 가중치 예측이라 지칭하기로 한다. 다만, 넌-디폴트 가중치 예측(예를 들어, 후술되는 도 8의 가중치 예측)과 구별하기 위해, 이하 디폴트 가중치만이 적용되는 가중치 예측은 ‘디폴트(default) 가중치 예측’이라 한다.

도 8은 본 발명에 따른 인터 예측 방법의 다른 실시예를 개략적으로 나타내는 개념도이다.
도 8에서 현재 블록은 두 개의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)를 갖는다고 가정한다. 도 7에서 상술한 인터 예측 방법은 디폴트 가중치 예측 외에 도 8의 실시예와 같은 넌-디폴트 가중치 예측에도 동일하게 적용될 수 있다. 즉, L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 부호화기 및 복호화기는 현재 블록에 대해 단방향 움직임 보상 과정을 수행함으로써 계산 복잡도를 감소시킬 수 있다.
도 8을 참조하면, 부호화기 및 복호화기는 현재 블록에 대해 넌-디폴트 가중치 예측이 사용되는지 또는 디폴트 가중치 예측이 사용되는지 여부를 판단할 수 있다(810). 일례로 이는 가중치 예측 인덱스에 의해 지시될 수 있다. 가중치 예측 인덱스의 구체적인 실시예는 후술하기로 한다.

넌-디폴트 가중치 예측이 사용되는 경우, 부호화기 및 복호화기는 움직임 보상을 수행함에 있어, 디폴트 가중치 외의 가중치를 L0 움직임 보상된 블록 및/또는 L1 움직임 보상된 블록에 적용할 수 있다. 이하, 디폴트 가중치가 아닌 가중치는 넌-디폴트 가중치라 한다.
예를 들어, 넌-디폴트 가중치 예측이 사용되는 경우, 움직임 정보 판단 과정(820)에서는 L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한지 여부가 판단될 수 있다. 움직임 보상 과정은 상기 판단 결과에 따라 선택적으로 수행될 수 있다. 일례로, L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, 부호화기 및 복호화기는 단방향 움직임 보상 과정(830)을 수행할 수 있다. 그렇지 않으면 부호화기 및 복호화기는 양방향 움직임 보상 과정(840)을 수행할 수 있다.
단방향 움직임 보상 과정(830)에서, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L0 참조 픽쳐 및 L0 움직임 정보를 이용하여 현재 블록에 대한 L0 움직임 보상을 수행할 수 있다. 이 때, 부호화기 및 복호화기는 L0 움직임 보상된 블록에 대해 소정의 넌-디폴트 가중치 및/또는 소정의 오프셋(offset)을 적용함으로써 최종 예측 블록을 생성할 수 있다. 소정의 넌-디폴트 가중치 및/또는 소정의 오프셋이 적용되는 L0 움직임 보상은 L0 가중치 움직임 보상으로 불릴 수도 있다. 마찬가지로, 소정의 넌-디폴트 가중치 및/또는 소정의 오프셋이 적용되는 L1 움직임 보상은 L1 가중치 움직임 보상으로 불릴 수 있다.
넌-디폴트 가중치 예측이 사용되는 경우, 단방향 움직임 보상 과정(830)이 수행되는 방법은 다양하게 정해질 수 있다. 이하, 후술되는 실시예들에서 LX 움직임 정보(X는 0 또는 1)에 대응되는 넌-디폴트 가중치는 LX 가중치라 하고, LX 움직임 정보에 대응되는 오프셋은 LX 오프셋이라 한다.
상술한 바와 같이, 단방향 움직임 보상 과정(830)에서, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L0 참조 픽쳐 및 L0 움직임 정보를 이용하여 현재 블록에 대한 L0 움직임 보상을 수행할 수 있다. 부호화기 및 복호화기는 현재 블록에 대해 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성할 수 있다. 이 때 일례로, 부호화기 및 복호화기는 상기 L0 움직임 보상된 블록(및/또는 상기 블록 내의 각각의 픽셀)에 대해 L0 가중치를 적용하고, L0 오프셋을 더하여 최종 예측 블록을 생성할 수 있다. 다른 예로, 부호화기 및 복호화기는 상기 L0 움직임 보상된 블록(및/또는 상기 블록 내의 각각의 픽셀)에 L0 가중치 및 L1 가중치를 더한 값을 곱하고 L0 오프셋 및 L1 오프셋 값을 더한 후, 전체에 대한 평균값을 구함으로써 최종 예측 블록을 생성할 수 있다. 또 다른 예로, 부호화기 및 복호화기는 상기 L0 움직임 보상된 블록(및/또는 상기 블록 내의 각각의 픽셀)에 L0 가중치를 곱하고 L0 오프셋 및 L1오프셋의 평균값을 더함으로써 최종 예측 블록을 생성할 수 있다. 단방향 움직임 보상(830) 수행 방법은 상술한 실시예에 한정되는 것은 아니며, 구현 및/또는 필요에 따라 다른 다양한 방법으로 정해질 수 있다.
넌-디폴트 가중치 예측이 사용되는 경우, 양방향 움직임 보상 과정(840)에서는 L0 가중치 움직임 보상 과정 및 L1 가중치 움직임 보상 과정이 모두 수행될 수 있다. L0 가중치 움직임 보상 과정에서, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L0 참조 픽쳐 및 L0 움직임 정보를 이용하여 L0 움직임 보상된 블록을 생성할 수 있다. 이 때, 부호화기 및 복호화기는 상기 L0 움직임 보상된 블록에 L0 가중치를 적용하여 L0 가중치 움직임 보상된 블록을 생성할 수 있다. 또한, L1 가중치 움직임 보상 과정에서, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L1 참조 픽쳐 및 L1 움직임 정보를 이용하여 L1 움직임 보상된 블록을 생성할 수 있다. 이 때, 부호화기 및 복호화기는 상기 L1 움직임 보상된 블록에 L1 가중치를 적용하여 L1 가중치 움직임 보상된 블록을 생성할 수 있다.
넌-디폴트 가중치 예측에서 양방향 움직임 보상 과정(840)이 적용되는 경우, 부호화기 및 복호화기는 L0 가중치 움직임 보상된 블록, L0 오프셋, L1 가중치 움직임 보상된 블록 및 L1 오프셋에 기반하여 가중치 평균을 수행함으로써, 최종적으로 하나의 움직임 보상된 블록을 생성할 수 있다. 일례로, 상기 가중치 평균은 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록 내의 픽셀 단위로 수행될 수 있다. 이 때, 최종적으로 생성된 하나의 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.

상술한 양방향 움직임 보상 과정(840)에서는 L0 움직임 보상 과정에서 L0 가중치가 적용되고 L1 움직임 보상 과정에서 L1 가중치가 적용되는 것으로 서술되고 있으나, 양방향 움직임 보상(840) 방법은 상술한 실시예에 한정되지 않는다. 예를 들어, L0 가중치 및 L1 가중치는 L0, L1 움직임 보상 과정이 아닌 가중치 평균 과정에서, 각각 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록에 대해 적용될 수도 있다.

디폴트 가중치 예측이 사용되는 경우에는 상술한 도 7의 실시예에서와 같은 일반적인 움직임 보상 과정이 수행될 수 있다.
예를 들어, 디폴트 가중치 예측이 사용되는 경우, 움직임 정보 판단 과정(850)에서는 L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한지 여부가 판단될 수 있다. 움직임 보상 과정은 상기 판단 결과에 따라 선택적으로 수행될 수 있다. 일례로, L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, 부호화기 및 복호화기는 단방향 움직임 보상 과정(860)을 수행할 수 있다. 그렇지 않으면 부호화기 및 복호화기는 양방향 움직임 보상 과정(870)을 수행할 수 있다.
단방향 움직임 보상 과정(860)에서, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L0 참조 픽쳐 및 L0 움직임 정보를 이용하여 현재 블록에 대한 L0 움직임 보상을 수행할 수 있다. 부호화기 및 복호화기는 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성할 수 있다. 이 때, L0 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.
양방향 움직임 보상 과정(870)에서, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L0 참조 픽쳐 및 L0 움직임 정보를 이용하여 현재 블록에 대해 L0 움직임 보상을 수행함으로써, L0 움직임 보상된 블록을 생성할 수 있다. 또한, 부호화기 및 복호화기는 참조 픽쳐 버퍼로부터 획득한 L1 참조 픽쳐 및 L1 움직임 정보를 이용하여 현재 블록에 대해 L1 움직임 보상을 수행함으로써, L1 움직임 보상된 블록을 생성할 수 있다.
양방향 움직임 보상 과정(870)이 적용되는 경우, 부호화기 및 복호화기는 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록에 대해 가중치 평균을 수행하여, 최종적으로 하나의 움직임 보상된 블록을 생성할 수 있다. 일례로, 상기 가중치 평균은 픽셀 단위로 수행될 수 있으며, 예를 들어 L0 움직임 보상된 블록 내의 임의의 픽셀 및 이에 대응되는 L1 움직임 보상된 블록 내의 픽셀에 대해 수행될 수도 있다. 이 때, 최종적으로 생성된 하나의 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.

상술한 실시예에서는, L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 단방향 움직임 보상 과정이 수행되는 것으로 서술되고 있으나, 본 발명은 이에 한정되는 것은 아니다. 예를 들어, L0 움직임 정보와 L1 움직임 정보가 동일한 경우, 부호화기 및 복호화기는 양방향 움직임 보상을 수행할 수도 있다.

이하, 복호화기 입장에서 도 7 및 도 8의 실시예에 따른 인터 예측 및/또는 움직임 보상 과정의 실시예들이 서술된다.
상술한 바와 같이, 현재 블록에 대해 넌-디폴트 가중치 예측이 적용되는지 또는 디폴트 가중치 예측이 적용되는지 여부는 가중치 예측 인덱스에 의해 지시될 수 있다. 후술되는 실시예에서, weighted_bipred_idc는 상기 가중치 예측 인덱스를 의미할 수 있다. 예를 들어, weighted_bipred_idc 값이 ‘0’일 때에는 현재 블록에 대해 디폴트 가중치 예측이 수행될 수 있다. 또한, weighted_bipred_idc 값이 ‘1’일 때에는 명시적(explicit) 넌-디폴트 가중치 예측이 수행될 수 있고, weighted_bipred_idc 값이 ‘2’일 때에는 묵시적(implicit) 넌-디폴트 가중치 예측이 수행될 수 있다.
또한, 후술되는 실시예에서 사용되는 Clip1H에서, 루마(luma) 성분 신호의 경우에 H는 Y로 대체될 수 있고, 크로마(chroma) 성분 신호의 경우에 H는 C로 대체될 수 있다. Clip1Y, Clip1C 및 Clip3는 각각 다음 수학식 1에서와 같은 의미를 가질 수 있다.
[수학식 1]
Figure PCTKR2012004882-appb-I000001

여기서, BitDepthY는 루마 성분의 비트 깊이를 나타낼 수 있다. 그리고 BitDepthC는 크로마 성분의 비트 깊이를 나타낼 수 있다.
또한, 후술되는 실시예에서 변수 shift1은 일례로 14-bitDepth의 값을 가질 수 있으며, 변수 shift2는 일례로 15-bitDepth의 값을 가질 수 있다. 그리고 변수 offset1은 1 << (shift1-1)의 값을 가질 수 있고, offset2는 1 << (shift2-1)의 값을 가질 수 있다.

1. 디폴트 가중치 샘플 예측의 실시예
이하, 복호화기 입장에서 도 7의 실시예에 따른 디폴트 가중치 예측(디폴트 가중치 샘플 예측으로도 불릴 수 있음.)의 일 실시예가 서술된다. 상기 디폴트 가중치 예측 프로세스는 상술한 weighted_bipred_idc의 값이 ‘0’일 때 수행될 수 있다. 또한, 후술되는 실시예들에서 ‘픽셀’은 ‘샘플’로 지칭될 수도 있다.
상기 디폴트 가중치 예측 프로세스를 위한 입력에는, 현재 CU의 최좌상단 샘플을 기준으로 한 현재 PU의 최좌상단 샘플의 위치 (xB, yB), 현재 PU의 폭과 높이를 지시하는 변수 (nPSW, nPSH), 샘플에 대한 L0 움직임 벡터 mvL0, 샘플에 대한 L1 움직임 벡터 mvL1, L0 참조 픽쳐 인덱스 refIdxL0, L1 참조 픽쳐 인덱스 refIdxL1, L0 예측이 수행되는지(L0 참조 픽쳐 리스트가 사용되는지) 여부를 지시하는 플래그 predFlagL0, L1 예측이 수행되는지(L1 참조 픽쳐 리스트가 사용되는지) 여부를 지시하는 플래그 predFlagL1, 샘플의 비트 깊이를 나타내는 bitDepth 등이 있을 수 있다. 여기서, L0 참조 픽쳐 인덱스는 L0 참조 픽쳐 리스트에 포함된 참조 픽쳐들 중에서 현재 PU의 인터 예측에 사용되는 참조 픽쳐를 지시하는 인덱스를 나타내고, L1 참조 픽쳐 인덱스는 L1 참조 픽쳐 리스트에 포함된 참조 픽쳐들 중에서 현재 PU의 인터 예측에 사용되는 참조 픽쳐를 지시하는 인덱스를 나타낼 수 있다. 또한, L0 예측은 L0 참조 픽쳐 리스트로부터 선택된 참조 픽쳐를 사용하는 인터 예측을 의미하고, L1 예측은 L1 참조 픽쳐 리스트로부터 선택된 참조 픽쳐를 사용하는 인터 예측을 의미할 수 있다. 상기 프로세스의 출력은 (nPSW)x(nPSH) 크기의 예측 블록 내의 예측 샘플 값 predSamples[x, y]일 수 있다.
복호화기는 mvL0, mvL1, refIdxL0, refIdxL1, PredFlagL0, PredFlagL1 등에 기반하여 다음과 같이 predSamples[x, y] 값을 도출할 수 있다.
만일 PredFlagL0가 1이고 PredFlagL1가 0이라면, 복호화기는 다음 과정을 수행할 수 있다.
predSamples[x, y] = Clip3(0, (1 << bitDepth) - 1, (predSamplesL0[x, y] + offset1) >> shift1)
그렇지 않고, 만일 PredFlagL0가 0이고 PredFlagL1가 1이라면, 복호화기는 다음 과정을 수행할 수 있다.
predSamples[x, y] = Clip3(0, (1 << bitDepth) - 1, (predSamplesL1[x, y] + offset1) >> shift1)
그렇지 않고, 만일 PredFlagL0가 1이고 PredFlagL1가 1이고, 움직임 벡터 mvL0와 mvL1이 동일하고, RefPicOrderCnt(currPic, refIdxL0, L0)와 RefPicOrderCnt(currPic, refIdxL1, L1)이 동일하다면(즉, L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하다면), 복호화기는 다음 과정을 수행할 수 있다.
predSamples[x, y] = Clip3(0, (1 << bitDepth) - 1, (predSamplesL0[x, y] + offset1) >> shift1)
그렇지 않다면, 복호화기는 다음 과정을 수행할 수 있다.
predSamples[x, y] = Clip3(0, (1 << bitDepth) - 1, (predSamplesL0[x, y] + predSamplesL1[x, y] + offset2) >> shift2)

2. 넌-디폴트 가중치 샘플 예측의 실시예(방법 1)
이하, 복호화기 입장에서 도 8의 실시예에 따른 넌-디폴트 가중치 예측(넌-디폴트 가중치 샘플 예측으로도 불릴 수 있음.)의 일 실시예가 서술된다. 상기 넌-디폴트 가중치 예측 프로세스는 상술한 weighted_bipred_idc의 값이 ‘0’이 아닐 때 수행될 수 있다.
상기 넌-디폴트 가중치 예측 프로세스를 위한 입력에는, 현재 CU의 최좌상단 샘플을 기준으로 한 현재 PU의 최좌상단 샘플의 위치 (xB, yB), 현재 PU의 폭과 높이를 지시하는 변수 (nPSW, nPSH), 샘플에 대한 L0 움직임 벡터 mvL0, 샘플에 대한 L1 움직임 벡터 mvL1, L0 참조 픽쳐 인덱스 refIdxL0, L1 참조 픽쳐 인덱스 refIdxL1, L0 예측이 수행되는지(L0 참조 픽쳐 리스트가 사용되는지) 여부를 지시하는 플래그 predFlagL0, L1 예측이 수행되는지(L1 참조 픽쳐 리스트가 사용되는지) 여부를 지시하는 플래그 predFlagL1, 샘플의 비트 깊이를 나타내는 bitDepth 및 가중치 예측 변수인 logWDC, w0C, w1C, o0C, 01C 등이 있을 수 있다. 여기서, C는 루마 성분의 경우 L을 나타내고, 크로마 Cb 성분의 경우 Cb를 나타내고, 크로마 Cr 성분의 경우, Cr을 나타낼 수 있다. 또한, logWDC는 가중치 팩터(weighting factor)의 분모를 나타낼 수 있고, w0C는 L0 가중치 값, w1C는 L1 가중치 값, o0C는 L0 오프셋 값, o1C는 L1 오프셋 값을 나타낼 수 있다. 상기 프로세스의 출력은 (nPSW)x(nPSH) 크기의 예측 블록 내의 예측 샘플 값 predSamples[x, y]일 수 있다.
복호화기는 mvL0, mvL1, refIdxL0, refIdxL1, PredFlagL0, PredFlagL1 등에 기반하여 다음과 같이 predSamples[x, y] 값을 도출할 수 있다.
만일 PredFlagL0가 1이고 PredFlagL1가 0이라면, 복호화기는 다음 과정을 수행할 수 있다.
일례로, logWDC 값이 1 이상이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(((predSamplesL0[x, y] * w0C + 2logWDC - 1) >> logWDC) + o0C)
다른 예로, logWDC 값이 1 미만이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(predSamplesL0[x, y] * w0C + o0C)
그렇지 않고, 만일 PredFlagL0가 0이고 PredFlagL1가 1이라면 복호화기는 다음 과정을 수행할 수 있다.
일례로, logWDC 값이 1 이상이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(((predSamplesL1[x, y] * w1C + 2logWDC - 1) >> logWDC) + o1C)
다른 예로, logWDC 값이 1 미만이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(predSamplesL1[x, y] * w1C + o1C)
그렇지 않고, 만일 PredFlagL0가 1이고 PredFlagL1가 1이고, 움직임 벡터 mvL0와 mvL1이 동일하고, RefPicOrderCnt(currPic, refIdxL0, L0)와 RefPicOrderCnt(currPic, refIdxL1, L1)이 동일하다면(즉, L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하다면), 복호화기는 다음 과정을 수행할 수 있다.
predSamples[x, y] = Clip1H(((predSamplesL0[x, y] * (w0C + w1C) + 2logWDC) >> (logWDC + 1)) + ((o0C + o1C + 1) >> 1))
그렇지 않다면, 복호화기는 다음 과정을 수행할 수 있다.
predSamples[x, y] = Clip1H(((predSamplesL0[x, y] * w0C + predSamplesL1[x, y] * w1C + 2logWDC) >> (logWDC + 1)) + ((o0C + o1C + 1) >> 1))

3. 넌-디폴트 가중치 샘플 예측의 실시예(방법 2)
이하, 복호화기 입장에서 도 8의 실시예에 따른 넌-디폴트 가중치 예측(넌-디폴트 가중치 샘플 예측으로도 불릴 수 있음.)의 다른 실시예가 서술된다. 상기 넌-디폴트 가중치 예측 프로세스는 상술한 weighted_bipred_idc의 값이 ‘0’이 아닐 때 수행될 수 있다.
상기 넌-디폴트 가중치 예측 프로세스를 위한 입력에는, 현재 CU의 최좌상단 샘플을 기준으로 한 현재 PU의 최좌상단 샘플의 위치 (xB, yB), 현재 PU의 폭과 높이를 지시하는 변수 (nPSW, nPSH), 샘플에 대한 L0 움직임 벡터 mvL0, 샘플에 대한 L1 움직임 벡터 mvL1, L0 참조 픽쳐 인덱스 refIdxL0, L1 참조 픽쳐 인덱스 refIdxL1, L0 예측이 수행되는지(L0 참조 픽쳐 리스트가 사용되는지) 여부를 지시하는 플래그 predFlagL0, L1 예측이 수행되는지(L1 참조 픽쳐 리스트가 사용되는지) 여부를 지시하는 플래그 predFlagL1, 샘플의 비트 깊이를 나타내는 bitDepth 및 가중치 예측 변수인 logWDC, w0C, w1C, o0C, 01C 등이 있을 수 있다. 여기서, C는 루마 성분의 경우 L을 나타내고, 크로마 Cb 성분의 경우 Cb를 나타내고, 크로마 Cr 성분의 경우, Cr을 나타낼 수 있다. 또한, logWDC는 가중치 팩터(weighting factor)의 분모를 나타낼 수 있고, w0C는 L0 가중치 값, w1C는 L1 가중치 값, o0C는 L0 오프셋 값, o1C는 L1 오프셋 값을 나타낼 수 있다. 상기 프로세스의 출력은 (nPSW)x(nPSH) 크기의 예측 블록 내의 예측 샘플 값 predSamples[x, y]일 수 있다.
복호화기는 mvL0, mvL1, refIdxL0, refIdxL1, PredFlagL0, PredFlagL1 등에 기반하여 다음과 같이 predSamples[x, y] 값을 도출할 수 있다.
만일 PredFlagL0가 1이고 PredFlagL1가 0이라면, 복호화기는 다음 과정을 수행할 수 있다.
일례로, logWDC 값이 1 이상이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(((predSamplesL0[x, y] * w0C + 2logWDC - 1) >> logWDC) + o0C)
다른 예로, logWDC 값이 1 미만이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(predSamplesL0[x, y] * w0C + o0C)
그렇지 않고, 만일 PredFlagL0가 0이고 PredFlagL1가 1이라면 복호화기는 다음 과정을 수행할 수 있다.
일례로, logWDC 값이 1 이상이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(((predSamplesL1[x, y] * w1C + 2logWDC - 1) >> logWDC) + o1C)
다른 예로, logWDC 값이 1 미만이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(predSamplesL1[x, y] * w1C + o1C)
그렇지 않고, 만일 PredFlagL0가 1이고 PredFlagL1가 1이고, 움직임 벡터 mvL0와 mvL1이 동일하고, RefPicOrderCnt(currPic, refIdxL0, L0)와 RefPicOrderCnt(currPic, refIdxL1, L1)이 동일하다면(즉, L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하다면), 복호화기는 다음 과정을 수행할 수 있다.
일례로, logWDC 값이 1 이상이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(((predSamplesL0[x, y] * w0C + 2logWDC-1) >> logWDC) + o0C)
다른 예로, logWDC 값이 1 미만이면 predSamples[x, y] 값은 다음과 같이 도출될 수 있다.
predSamples[x, y] = Clip1H(predSamplesL0[x, y] * w0C + o0C)
그렇지 않다면, 복호화기는 다음 과정을 수행할 수 있다.
predSamples[x, y] = Clip1H(((predSamplesL0[x, y] * w0C + predSamplesL1[x, y] * w1C + 2logWDC) >> (logWDC + 1)) + ((o0C + o1C + 1) >> 1))

도 9는 도 7의 실시예에 따른 디폴트 가중치 예측을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 9의 실시예에 따른 인터 예측 장치는 L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)를 입력 받아, 현재 블록에 대한 예측 블록을 생성할 수 있다. 상기 인터 예측 장치는 움직임 정보 판단부(910), 단방향 움직임 보상부(920) 및 양방향 움직임 보상부(930)를 포함할 수 있다. 여기서, 단방향 움직임 보상부(920)는 L0 움직임 보상부(925)를 포함할 수 있고, 양방향 움직임 보상부(930)는 L0 움직임 부상부(933), L1 움직임 보상부(936) 및 가중치 평균부(939)를 포함할 수 있다.
도 9에서 현재 블록은 두 개의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)를 갖는다고 가정한다. L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 상기 인터 예측 장치는 현재 블록에 대해 단방향 움직임 보상 과정을 수행함으로써 계산 복잡도를 감소시킬 수 있다.
도 9를 참조하면, 움직임 정보 판단부(910)는 L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한지 여부를 판단할 수 있다. 움직임 보상 과정은 상기 판단 결과에 따라 선택적으로 수행될 수 있다. 일례로, L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, 인터 예측 장치는 단방향 움직임 보상부(920)에 의한 단방향 움직임 보상 과정을 수행할 수 있다. 그렇지 않으면 인터 예측 장치는 양방향 움직임 보상부(930)에 의한 양방향 움직임 보상 과정을 수행할 수 있다. 단방향 움직임 보상 과정에서 단방향 움직임 보상부(920)는 L0 움직임 정보를 입력 받아, 단방향 움직임 보상을 수행하고, 양방향 움직임 보상 과정에서 양방향 움직임 보상부(930)는 L0 움직임 정보 및 L1 움직임 정보를 입력 받아 양방향 움직임 보상을 수행할 수 있다.
단방향 움직임 보상 과정에서 L0 움직임 보상부(925)는 L0 참조 픽쳐 및 L0 움직임 정보를 기반으로 현재 블록에 대한 L0 움직임 보상을 수행할 수 있다. L0 움직임 보상부(925)는 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성할 수 있다. 이 때, L0 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.
양방향 움직임 보상 과정에서 L0 움직임 보상부(933)는 L0 참조 픽쳐 및 L0 움직임 정보를 기반으로 현재 블록에 대한 L0 움직임 보상을 수행함으로써, L0 움직임 보상된 블록을 생성할 수 있다. 또한, L1 움직임 보상부(936)는 L1 참조 픽쳐 및 L1 움직임 정보를 기반으로 현재 블록에 대한 L1 움직임 보상을 수행함으로써, L1 움직임 보상된 블록을 생성할 수 있다. 여기서, 고정확도 움직임 보상이 적용되는 경우, L0 움직임 보상부(933)는 L0 HA(High Accuracy) 움직임 보상부로 불릴 수 있고, L1 움직임 보상부(936)는 L1 HA 움직임 보상부로 불릴 수도 있다.
가중치 평균부(939)는 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록에 대해 가중치 평균을 수행하여, 최종적으로 하나의 움직임 보상된 블록을 생성할 수 있다. 여기서, 고정확도 움직임 보상이 적용되는 경우, 가중치 평균부(939)는 HA 가중치 평균부로 불릴 수 있다. 이 때, 최종적으로 생성된 하나의 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.
상술한 인터 예측 장치는, L0 움직임 정보와 L1 움직임 정보가 동일한 경우, 현재 블록에 대해 움직임 보상 과정을 한 번만 수행할 수 있다. 따라서, 상기 인터 예측 장치는 계산 복잡도를 감소시킬 수 있다.

도 10은 본 발명에 따른 인터 예측 방법의 또 다른 실시예를 개략적으로 나타내는 흐름도이다.
도 10의 실시예에서, 움직임 정보는 예측 방향 정보, L0 참조 픽쳐 번호, L1 참조 픽쳐 번호, L0 움직임 벡터 및 L1 움직임 벡터 등을 포함할 수 있다. 도 10의 프로세스에 입력되는 움직임 정보의 예측 방향 정보는 양방향 예측을 지시하고, 현재 블록은 두 개의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)를 갖는다고 가정한다. 이 때, L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 부호화기 및 복호화기는 L0 움직임 정보만을 현재 블록의 움직임 정보로 사용함으로써 계산 복잡도를 감소시킬 수 있다.
도 10을 참조하면, 부호화기 및 복호화기는 L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한지 여부를 판단할 수 있다(S1010). 즉, 부호화기 및 복호화기는 L0 참조 픽쳐 번호 및 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한지 여부를 판단할 수 있다.
L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, 부호화기 및 복호화기는 현재 블록의 예측 방향 정보를 단방향 예측으로 다시 설정할 수 있다(S1020). 이 때, 현재 블록 이후에 부호화 또는 복호화되는 블록이 상기 현재 블록의 예측 방향 정보를 이용하는 경우, 상기 현재 블록 이후에 부호화 또는 복호화되는 블록의 예측 방향 정보는 양방향 예측이 아닌 단방향 예측으로 설정될 수 있다. 또한 이 때, 부호화기 및 복호화기는 L0 움직임 정보만을 현재 블록의 움직임 정보로 사용할 수 있다. 예를 들어, 부호화기 및 복호화기는 L0 움직임 정보에 기반하여 현재 블록에 대해 단방향 움직임 보상을 수행함으로써, 예측 블록을 생성할 수 있다.
L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하지 않거나 및/또는 L0 움직임 벡터와 L1 움직임 벡터가 동일하지 않은 경우, 부호화기 및 복호화기는 L0 움직임 정보 및 L1 움직임 정보를 현재 블록의 움직임 정보로 사용할 수 있다(S1030). 예를 들어, 부호화기 및 복호화기는 L0 움직임 정보 및 L1 움직임 정보에 기반하여 현재 블록에 대해 양방향 움직임 보상을 수행함으로써, 예측 블록을 생성할 수 있다.
한편, 상술한 실시예에서는 L0 움직임 정보와 L1 움직임 정보의 동일성을 기반으로 예측 방향 정보가 설정되지만, 부호화기 및 복호화기는 현재 블록의 크기를 기반으로 예측 방향 정보를 설정할 수도 있다.
일 실시예로, 부호화기 및 복호화기는 현재 블록의 크기가 소정의 크기보다 작은지 여부를 판단할 수 있다. 여기서, 상기 현재 블록은 CU, PU 및/또는 TU일 수 있으며, 상기 소정의 크기는 예를 들어 8x8, 16x16 또는 32x32 등 중에서 하나일 수 있다.
현재 블록의 크기가 소정의 크기보다 작은 경우, 부호화기 및 복호화기는 현재 블록의 예측 방향 정보를 단방향 예측으로 다시 설정할 수 있다. 예를 들어, 부호화기 및 복호화기는 L0 움직임 정보 및 L1 움직임 정보 중에서 L0 움직임 정보만을 현재 블록의 움직임 정보로 설정할 수 있다. 이를 위해, 부호화기 및 복호화기는 현재 블록의 움직임 정보 중에서 L1 움직임 정보 값을 제거하거나 0 및/또는 1로 설정하는 방법을 이용할 수도 있다. 이 때, 부호화기 및 복호화기는 L0 움직임 정보만을 현재 블록의 움직임 정보로 사용할 수 있다. 예를 들어, 부호화기 및 복호화기는 L0 움직임 정보에 기반하여 현재 블록에 대해 단방향 움직임 보상을 수행함으로써, 예측 블록을 생성할 수 있다.
현재 블록의 크기가 소정의 크기 이상인 경우, 부호화기 및 복호화기는 L0 움직임 정보 및 L1 움직임 정보를 현재 블록의 움직임 정보로 사용할 수 있다. 예를 들어, 부호화기 및 복호화기는 L0 움직임 정보 및 L1 움직임 정보에 기반하여 현재 블록에 대해 양방향 움직임 보상을 수행함으로써, 예측 블록을 생성할 수 있다.

도 11은 도 10의 실시예에 따른 인터 예측을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 11의 실시예에 따른 인터 예측 장치는 움직임 정보 판단부(1110), L0 움직임 정보 및 L1 움직임 정보 등록부(1120) 및 예측 방향 정보 재설정 및 L0 움직임 정보 등록부(1130)를 포함할 수 있다.
도 11의 실시예에서, 움직임 정보는 예측 방향 정보, L0 참조 픽쳐 번호, L1 참조 픽쳐 번호, L0 움직임 벡터 및 L1 움직임 벡터 등을 포함할 수 있다. 도 11의 움직임 정보 판단부(1110)에 입력되는 움직임 정보의 예측 방향 정보는 양방향 예측을 지시하고, 현재 블록은 두 개의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)를 갖는다고 가정한다. L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 상기 인터 예측 장치는 L0 움직임 정보만을 현재 블록의 움직임 정보로 사용함으로써 계산 복잡도를 감소시킬 수 있다.
도 11을 참조하면, 움직임 정보 판단부(1110)는 L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한지 여부를 판단할 수 있다. 즉, 움직임 정보 판단부(1110)는 L0 참조 픽쳐 번호 및 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한지 여부를 판단할 수 있다.
L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하지 않거나 및/또는 L0 움직임 벡터와 L1 움직임 벡터가 동일하지 않은 경우에는, L0 움직임 정보 및 L1 움직임 정보 등록부(1120)에 의한 동작 및/또는 연산이 수행될 수 있다. L0 움직임 정보 및 L1 움직임 정보 등록부(1120)는 L0 움직임 정보 및 L1 움직임 정보를 현재 블록에 대해 사용되는 움직임 정보로 결정할 수 있다. 이 경우, 일례로 부호화기 및 복호화기는 L0 움직임 정보 및 L1 움직임 정보에 기반하여 현재 블록에 대해 양방향 움직임 보상을 수행함으로써, 예측 블록을 생성할 수 있다.
L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우에는, 예측 방향 정보 재설정 및 L0 움직임 정보 등록부(1130)에 의한 동작 및/또는 연산이 수행될 수 있다. L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, 예측 방향 정보 재설정 및 L0 움직임 정보 등록부(1130)는 현재 블록의 예측 방향 정보를 단방향 예측으로 다시 설정할 수 있다. 이 때, 현재 블록 이후에 부호화 또는 복호화되는 블록이 상기 현재 블록의 예측 방향 정보를 이용하는 경우, 상기 현재 블록 이후에 부호화 또는 복호화되는 블록의 예측 방향 정보는 양방향 예측이 아닌 단방향 예측으로 설정될 수 있다. 또한 이 때, 예측 방향 정보 재설정 및 L0 움직임 정보 등록부(1130)는 L0 움직임 정보만을 현재 블록에 대해 사용되는 움직임 정보로 결정할 수 있다. 이 경우, 일례로 부호화기 및 복호화기는 L0 움직임 정보에 기반하여 현재 블록에 대해 단방향 움직임 보상을 수행함으로써, 예측 블록을 생성할 수 있다.
한편, 상술한 실시예에서는 L0 움직임 정보와 L1 움직임 정보의 동일성을 기반으로 예측 방향 정보가 설정되지만, 인터 예측 장치는 현재 블록의 크기를 기반으로 예측 방향 정보를 설정할 수도 있다.
일 실시예로, 움직임 정보 판단부(1110)는 현재 블록의 크기가 소정의 크기보다 작은지 여부를 판단할 수 있다. 여기서, 상기 현재 블록은 CU, PU 및/또는 TU일 수 있으며, 상기 소정의 크기는 예를 들어 8x8, 16x16 또는 32x32 등 중에서 하나일 수 있다.
현재 블록의 크기가 소정의 크기 이상인 경우에는, L0 움직임 정보 및 L1 움직임 정보 등록부(1120)에 의한 동작 및/또는 연산이 수행될 수 있다. L0 움직임 정보 및 L1 움직임 정보 등록부(1120)는 L0 움직임 정보 및 L1 움직임 정보를 현재 블록에 대해 사용되는 움직임 정보로 결정할 수 있다. 이 경우, 일례로 부호화기 및 복호화기는 L0 움직임 정보 및 L1 움직임 정보에 기반하여 현재 블록에 대해 양방향 움직임 보상을 수행함으로써, 예측 블록을 생성할 수 있다.
현재 블록의 크기가 소정의 크기보다 작은 경우에는, 예측 방향 정보 재설정 및 L0 움직임 정보 등록부(1130)에 의한 동작 및/또는 연산이 수행될 수 있다. 현재 블록의 크기가 소정의 크기보다 작은 경우, 예측 방향 정보 재설정 및 L0 움직임 정보 등록부(1130)는 현재 블록의 예측 방향 정보를 단방향 예측으로 다시 설정할 수 있다. 예를 들어, 예측 방향 정보 재설정 및 L0 움직임 정보 등록부(1130)는 L0 움직임 정보 및 L1 움직임 정보 중에서 L0 움직임 정보만을 현재 블록의 움직임 정보로 설정할 수 있다. 이를 위해, 예측 방향 정보 재설정 및 L0 움직임 정보 등록부(1130)는 현재 블록의 움직임 정보 중에서 L1 움직임 정보 값을 제거하거나 0 및/또는 1로 설정하는 방법을 이용할 수도 있다. 이 때, 예측 방향 정보 재설정 및 L0 움직임 정보 등록부(1130)는 L0 움직임 정보만을 현재 블록에 대해 사용되는 움직임 정보로 결정할 수 있다. 이 경우, 일례로 부호화기 및 복호화기는 L0 움직임 정보에 기반하여 현재 블록에 대해 단방향 움직임 보상을 수행함으로써, 예측 블록을 생성할 수 있다.

도 12는 본 발명에 따른 인터 예측 방법의 또 다른 실시예를 개략적으로 나타내는 개념도이다. 도 12는 디폴트 가중치 예측이 적용되는 경우의 실시예를 도시한다. 도 12에서 현재 블록은 두 개의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)를 갖는다고 가정한다.
도 12를 참조하면, 움직임 정보 및 참조 픽쳐 판단 과정(1210)에서는 L0 움직임 정보(L0 움직임 벡터 및 L0 참조 픽쳐 번호), L1 움직임 정보(L1 움직임 벡터 및 L1 참조 픽쳐 번호) 및/또는 L1 참조 픽쳐 리스트를 기반으로 단방향 움직임 보상이 수행되는지 또는 양방향 움직임 보상이 수행되는지 여부가 결정될 수 있다. 움직임 정보 및 참조 픽쳐 판단 과정(1210)에서는 L0 움직임 정보(L0 움직임 벡터 및 L0 참조 픽쳐 번호)와 L1 움직임 정보(L1 움직임 벡터 및 L1 참조 픽쳐 번호)가 동일한지 여부가 판단될 수 있다. 움직임 보상 과정은 상기 판단 결과에 따라 선택적으로 수행될 수 있다.
일례로, L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일할 때, 부호화기 및 복호화기는 L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 1개 이하인 경우 단방향 움직임 보상 과정(1220)을 수행할 수 있고, L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 2개 이상인 경우 양방향 움직임 보상 과정(1230)을 수행할 수 있다.
L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일하고 L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 2개 이상인 경우, 부호화기 및 복호화기는 L1 참조 픽쳐 리스트 내의 참조 픽쳐 중에서 상기 L1 참조 픽쳐를 제외한 다른 하나의 참조 픽쳐를 새로운 L1 참조 픽쳐로 설정할 수 있다. 이 경우에는, 기존의 L1 참조 픽쳐가 아닌 새로이 설정된 L1 참조 픽쳐를 기반으로 양방향 움직임 보상 과정(1230)이 수행될 수 있다. 또한 이 때, 부호화기 및 복호화기는 상기 L1 움직임 벡터를 그대로 사용할 수도 있고, 새로이 설정된 L1 참조 픽쳐에서 새로운 L1 움직임 벡터를 찾아서 기존의 L1 움직임 벡터 대신 양방향 움직임 보상(1230)에 사용할 수도 있다.
또한, L0 참조 픽쳐와 L1 참조 픽쳐가 동일하지 않거나 및/또는 L0 움직임 벡터와 L1 움직임 벡터가 동일하지 않은 경우, 부호화기 및 복호화기는 양방향 움직임 보상 과정(1230)을 수행할 수 있다.
단방향 움직임 보상 과정(1220)에서, 부호화기 및 복호화기는 L0 참조 픽쳐 및 L0 움직임 정보를 이용하여 현재 블록에 대한 L0 움직임 보상을 수행할 수 있다. 부호화기 및 복호화기는 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성할 수 있다. 이 때, L0 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.
양방향 움직임 보상 과정(1230)에서, 부호화기 및 복호화기는 L0 참조 픽쳐 및 L0 움직임 정보를 이용하여 현재 블록에 대해 L0 움직임 보상을 수행함으로써, L0 움직임 보상된 블록을 생성할 수 있다. 또한, 부호화기 및 복호화기는 L1 참조 픽쳐 및 L1 움직임 정보를 이용하여 현재 블록에 대해 L1 움직임 보상을 수행함으로써, L1 움직임 보상된 블록을 생성할 수 있다.
양방향 움직임 보상 과정(1230)이 적용되는 경우, 부호화기 및 복호화기는 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록에 대해 가중치 평균을 수행하여, 최종적으로 하나의 움직임 보상된 블록을 생성할 수 있다. 이 때, 최종적으로 생성된 하나의 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.

도 13은 본 발명에 따른 인터 예측 방법의 또 다른 실시예를 개략적으로 나타내는 개념도이다.
도 13에서 현재 블록은 두 개의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)를 갖는다고 가정한다. 도 12에서 상술한 인터 예측 방법은 디폴트 가중치 예측 외에 도 13의 실시예와 같은 넌-디폴트 가중치 예측에도 동일하거나 유사한 방법으로 적용될 수 있다.
도 13을 참조하면, 부호화기 및 복호화기는 현재 블록에 대해 넌-디폴트 가중치 예측이 사용되는지 또는 디폴트 가중치 예측이 사용되는지 여부를 판단할 수 있다(1310). 일례로 이는 가중치 예측 인덱스에 의해 지시될 수 있다. 가중치 예측 인덱스의 구체적인 실시예는 상술한 바 있으므로, 생략하기로 한다.
넌-디폴트 가중치 예측이 사용되는 경우, 움직임 정보 판단 과정(1320)에서는 L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한지 여부가 판단될 수 있다. 움직임 보상 과정은 상기 판단 결과에 따라 선택적으로 수행될 수 있다.
일례로, L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일할 때, 부호화기 및 복호화기는 L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 1개 이하인 경우 단방향 움직임 보상 과정(1330)을 수행할 수 있고, L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 2개 이상인 경우 양방향 움직임 보상 과정(1340)을 수행할 수 있다.
L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일하고 L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 2개 이상인 경우, 부호화기 및 복호화기는 L1 참조 픽쳐 리스트 내의 참조 픽쳐 중에서 상기 L1 참조 픽쳐를 제외한 다른 하나의 참조 픽쳐를 새로운 L1 참조 픽쳐로 설정할 수 있다. 이 경우에는, 기존의 L1 참조 픽쳐가 아닌 새로이 설정된 L1 참조 픽쳐를 기반으로 양방향 움직임 보상 과정(1340)이 수행될 수 있다. 또한 이 때, 부호화기 및 복호화기는 상기 L1 움직임 벡터를 그대로 사용할 수도 있고, 새로이 설정된 L1 참조 픽쳐에서 새로운 L1 움직임 벡터를 찾아서 기존의 L1 움직임 벡터 대신 양방향 움직임 보상(1340)에 사용할 수도 있다.
넌-디폴트 가중치 예측이 사용되는 경우, 부호화기 및 복호화기는 움직임 보상을 수행함에 있어, 디폴트 가중치 외의 가중치, 즉 넌-디폴트 가중치를 L0 움직임 보상된 블록 및/또는 L1 움직임 보상된 블록에 적용할 수 있다. 넌-디폴트 가중치 예측이 적용되는 경우의 단방향 움직임 보상(1330) 및 양방향 움직임 보상(1340) 수행 과정은, 상술한 내용을 제외하고는 도 8에서와 동일하므로, 여기서는 생략하기로 한다.
디폴트 가중치 예측이 적용되는 경우에는, 상술한 도 12의 실시예에서와 동일한 움직임 보상 과정이 수행될 수 있다. 따라서, 디폴트 가중치 예측이 적용되는 경우의 움직임 보상 과정의 구체적인 실시예는, 여기서는 생략하기로 한다.

상술한 도 12, 도 13의 인터 예측 방법에서는, L0 움직임 정보와 L1 움직임 정보가 동일한 블록의 경우, L0 참조 픽쳐 및 이와 동일하지 않은 L1 참조 픽쳐를 기반으로 양방향 움직임 보상이 수행될 수 있다. 따라서, 상기 인터 예측 방법에서는 동일한 프로세스가 반복하여 수행되는 문제점이 해결될 수 있고, 부호화/복호화 효율이 향상될 수 있다.

도 14는 도 12의 실시예에 따른 디폴트 가중치 예측을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 14에서 현재 블록은 두 개의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)를 갖는다고 가정한다. 도 14의 실시예에 따른 인터 예측 장치는 L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터), L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터) 및 L1 참조 픽쳐 리스트를 입력 받아, 현재 블록에 대한 예측 블록을 생성할 수 있다. 상기 인터 예측 장치는 움직임 정보 및 참조 픽쳐 판단부(1410), 단방향 움직임 보상부(1420) 및 양방향 움직임 보상부(1430)를 포함할 수 있다. 여기서, 단방향 움직임 보상부(1420)는 L0 움직임 보상부(1425)를 포함할 수 있고, 양방향 움직임 보상부(1430)는 L0 움직임 부상부(1433), L1 움직임 보상부(1436) 및 가중치 평균부(1439)를 포함할 수 있다.
도 14를 참조하면, 움직임 정보 및 참조 픽쳐 판단부(1410)는 L0 움직임 정보(L0 움직임 벡터 및 L0 참조 픽쳐 번호), L1 움직임 정보(L1 움직임 벡터 및 L1 참조 픽쳐 번호) 및/또는 L1 참조 픽쳐 리스트를 기반으로 단방향 움직임 보상이 수행되는지 또는 양방향 움직임 보상이 수행되는지 여부를 결정할 수 있다.
일례로, L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일할 때, 상기 인터 예측 장치는 L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 1개 이하인 경우 단방향 움직임 보상부(1420)에 의한 단방향 움직임 보상 과정을 수행할 수 있고, L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 2개 이상인 경우 양방향 움직임 보상부(1430)에 의한 양방향 움직임 보상 과정을 수행할 수 있다.
L0 참조 픽쳐 및 L1 참조 픽쳐가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일하고 L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 2개 이상인 경우, 움직임 정보 및 참조 픽쳐 판단부(1410)는 L1 참조 픽쳐 리스트 내의 참조 픽쳐 중에서 상기 L1 참조 픽쳐를 제외한 다른 하나의 참조 픽쳐를 새로운 L1 참조 픽쳐로 설정할 수 있다. 이 경우에는, 기존의 L1 참조 픽쳐가 아닌 새로이 설정된 L1 참조 픽쳐를 기반으로 양방향 움직임 보상 과정이 수행될 수 있다. 또한 이 때, 상기 인터 예측 장치는 상기 L1 움직임 벡터를 그대로 사용할 수도 있고, 새로이 설정된 L1 참조 픽쳐에서 새로운 L1 움직임 벡터를 찾아서 기존의 L1 움직임 벡터 대신 양방향 움직임 보상에 사용할 수도 있다.
또한, L0 참조 픽쳐와 L1 참조 픽쳐가 동일하지 않거나 및/또는 L0 움직임 벡터와 L1 움직임 벡터가 동일하지 않은 경우, 상기 인터 예측 장치는 양방향 움직임 보상부(1430)에 의한 양방향 움직임 보상 과정을 수행할 수 있다.
단방향 움직임 보상 과정에서 L0 움직임 보상부(1425)는 L0 참조 픽쳐 및 L0 움직임 정보를 기반으로 현재 블록에 대한 L0 움직임 보상을 수행할 수 있다. L0 움직임 보상부(1425)는 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성할 수 있다. 이 때, L0 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.
양방향 움직임 보상 과정에서 L0 움직임 보상부(1433)는 L0 참조 픽쳐 및 L0 움직임 정보를 기반으로 현재 블록에 대한 L0 움직임 보상을 수행함으로써, L0 움직임 보상된 블록을 생성할 수 있다. 또한, L1 움직임 보상부(1436)는 L1 참조 픽쳐 및 L1 움직임 정보를 기반으로 현재 블록에 대한 L1 움직임 보상을 수행함으로써, L1 움직임 보상된 블록을 생성할 수 있다. 여기서, 고정확도 움직임 보상이 적용되는 경우, L0 움직임 보상부(1433)는 L0 HA(High Accuracy) 움직임 보상부로 불릴 수 있고, L1 움직임 보상부(1436)는 L1 HA 움직임 보상부로 불릴 수도 있다.
가중치 평균부(1439)는 L0 움직임 보상된 블록 및 L1 움직임 보상된 블록에 대해 가중치 평균을 수행하여, 최종적으로 하나의 움직임 보상된 블록을 생성할 수 있다. 여기서, 고정확도 움직임 보상이 적용되는 경우, 가중치 평균부(1439)는 HA 가중치 평균부로 불릴 수 있다. 이 때, 최종적으로 생성된 하나의 움직임 보상된 블록은 현재 블록의 예측 블록에 해당될 수 있다.
상술한 인터 예측 장치는, L0 움직임 정보와 L1 움직임 정보가 동일한 경우, L0 참조 픽쳐 및 이와 동일하지 않은 L1 참조 픽쳐를 기반으로, 현재 블록에 대해 양방향 움직임 보상을 수행할 수 있다. 따라서, 상기 인터 예측 장치는 부호화/복호화 효율을 향상시킬 수 있다.

도 15는 현재 블록에 대해 머지(merge)가 적용되는 경우, 본 발명에 따른 머지 후보 결정 방법의 일 실시예를 개략적으로 나타내는 흐름도이다. 여기서, 머지 후보는 움직임 정보 후보로도 불릴 수 있다. 이하, L0 움직임 정보에 대응하는 머지 후보는 L0 머지 후보라 하고, L1 움직임 정보에 대응하는 머지 후보는 L1 머지 후보라 한다.
상술한 바와 같이, 머지(merge)가 적용되는 경우, 부호화기 및 복호화기는 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보가 존재하는 경우, 이를 현재 블록에 대한 머지 후보로 결정하거나 등록할 수 있다. 도 15는 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보가 현재 블록에 대한 머지 후보로 결정되거나 등록되는 과정을 도시한다. 도 15의 실시예에서, 움직임 정보는 예측 방향 정보, L0 참조 픽쳐 번호, L1 참조 픽쳐 번호, L0 움직임 벡터 및 L1 움직임 벡터 등을 포함할 수 있다. 또한 이하, 참조 블록은 복원된 주변 블록 및/또는 콜 블록을 의미할 수 있고, 참조 움직임 정보는 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보를 의미할 수 있다.
머지 후보가 결정되거나 등록되면, 부호화기는 상기 결정되거나 등록된 머지 후보 중에서 최적의 부호화 효율을 제공할 수 있는 머지 후보를 현재 블록에 대한 움직임 정보로 선택할 수 있다. 이 때, 상기 선택된 머지 후보를 지시하는 머지 인덱스가 비트스트림에 포함되어 복호화기로 전송될 수 있다. 복호화기는 상기 전송된 머지 인덱스를 이용하여, 상기 결정되거나 등록된 머지 후보 중에서 하나의 머지 후보를 선택할 수 있고, 상기 선택된 머지 후보를 현재 블록의 움직임 정보로 결정할 수 있다.
L0 움직임 정보와 L1 움직임 정보가 동일한 블록이 발생된 경우, 상기 발생된 블록은 이후에 부호화되는 블록에 영향을 미칠 수 있다. 예를 들어, 머지(merge)가 적용되는 경우, 상술한 바와 같이 복원된 주변 블록 및/또는 콜 블록의 움직임 정보(L0 움직임 정보 및 L1 움직임 정보)가 현재 블록의 움직임 정보로 그대로 사용될 수 있다. 따라서, L0 움직임 정보와 L1 움직임 정보가 동일한 블록이 발생된 경우, L0 움직임 정보와 L1 움직임 정보가 동일한 다른 블록이 더 많이 발생될 수 있다.
상술한 문제점을 해결하기 위해, 참조 블록의 L0 움직임 정보(L0 참조 픽쳐 번호, L0 움직임 벡터)와 L1 움직임 정보(L1 참조 픽쳐 번호, L1 움직임 벡터)가 동일한 경우, 부호화기 및 복호화기는 상기 참조 블록의 L0 움직임 정보만을 현재 블록의 머지 후보로 결정하거나 등록할 수 있다.
도 15를 참조하면, 부호화기 및 복호화기는 현재 블록에 대한 머지 후보의 예측 방향을 참조 블록의 예측 방향으로 설정할 수 있다(S1510). 상술한 바와 같이, 예측 방향 정보는 예측이 수행되는 블록에 대해 단방향 예측이 적용되는지 또는 양방향 예측이 적용되는지 여부를 지시하는 정보를 의미할 수 있다. 따라서, 상기 예측 방향은 단방향 예측 또는 양방향 예측에 해당될 수 있다. 또한, 부호화기 및 복호화기는 현재 블록에 대한 참조 블록의 L0 움직임 정보를 현재 블록에 대한 L0 머지 후보로 결정하거나 등록할 수 있다(S1520).
다시 도 15를 참조하면, 부호화기 및 복호화기는 현재 픽쳐가 B 픽쳐인지 여부를 판단할 수 있다(S1530). 여기서, 현재 픽쳐는 현재 블록을 포함하는 픽쳐를 의미할 수 있다. 현재 픽쳐가 B 픽쳐가 아닌 경우, 부호화기 및 복호화기는 L1 머지 후보 결정 과정을 수행하지 않을 수 있다. 현재 픽쳐가 B 픽쳐인 경우, 부호화기 및 복호화기는 참조 블록의 L0 움직임 정보와 참조 블록의 L1 움직임 정보가 동일한지 여부를 판단할 수 있다(S1540).
참조 블록의 L0 움직임 정보와 참조 블록의 L1 움직임 정보가 동일한 경우, 부호화기 및 복호화기는 현재 블록에 대한 머지 후보의 예측 방향을 단방향 예측으로 설정할 수 있다(S1550). 이 때, 부호화기 및 복호화기는 참조 블록의 L1 움직임 정보를 현재 블록에 대한 L1 머지 후보로 등록하지 않을 수 있다. 즉, 이 경우에는 참조 블록의 L0 움직임 정보만이 현재 블록에 대한 머지 후보로 결정되거나 등록될 수 있다. 참조 블록의 L0 움직임 정보와 참조 블록의 L1 움직임 정보가 동일하지 않은 경우, 부호화기 및 복호화기는 현재 블록에 대한 머지 후보의 예측 방향을 양방향 예측으로 설정할 수 있고, 참조 블록의 L1 움직임 정보를 현재 블록에 대한 L1 머지 후보로 결정하거나 등록할 수 있다(S1560).

도 16은 도 15의 실시예에 따른 머지 후보 결정 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다. 도 16의 인터 예측 장치는 예측 방향 설정부(1610), L0 머지 후보 결정부(1620), 움직임 정보 판단부(1630), L1 머지 후보 결정부(1640) 및 예측 방향 재설정부(1650)를 포함할 수 있다.
도 16의 실시예에 따른 인터 예측 장치는 참조 블록의 L0 움직임 정보, 참조 블록의 L1 움직임 정보 및 참조 블록의 예측 방향 정보를 기반으로, 현재 블록에 대한 머지 후보를 결정할 수 있다. 이 때, 상기 인터 예측 장치는, 참조 블록의 L0 움직임 정보(L0 참조 픽쳐 번호, L0 움직임 벡터)와 L1 움직임 정보(L1 참조 픽쳐 번호, L1 움직임 벡터)가 동일한 경우, 상기 참조 블록의 L0 움직임 정보만을 현재 블록의 머지 후보로 결정하거나 등록할 수 있다. 도 16의 실시예에서, 움직임 정보는 L0 참조 픽쳐 번호, L1 참조 픽쳐 번호, L0 움직임 벡터 및 L1 움직임 벡터 등을 포함할 수 있다.
도 16을 참조하면, 예측 방향 설정부(1610)는 현재 블록에 대한 머지 후보의 예측 방향을 참조 블록의 예측 방향으로 설정할 수 있다. 또한, L0 머지 후보 결정부(1620)는 참조 블록의 L0 움직임 정보를 현재 블록에 대한 L0 머지 후보로 결정하거나 등록할 수 있다. 움직임 정보 판단부(1630)는 참조 블록의 L0 움직임 정보와 참조 블록의 L1 움직임 정보가 동일한지 여부를 판단할 수 있다.
참조 블록의 L0 움직임 정보와 참조 블록의 L1 움직임 정보가 동일하지 않은 경우, L1 머지 후보 결정부(1640)는 참조 블록의 L1 움직임 정보를 현재 블록에 대한 L1 머지 후보로 결정하거나 등록할 수 있다. 참조 블록의 L0 움직임 정보와 참조 블록의 L1 움직임 정보가 동일한 경우, 예측 방향 재설정부(1650)는 현재 블록에 대한 머지 후보의 예측 방향을 단방향 예측으로 설정할 수 있다. 이 때, 인터 예측 장치는 참조 블록의 L1 움직임 정보를 현재 블록에 대한 L1 머지 후보로 등록하지 않을 수 있다. 즉, 이 경우에는 참조 블록의 L0 움직임 정보만이 현재 블록에 대한 머지 후보로 결정되거나 등록될 수 있다.

도 17은 본 발명에 따른 시간적 움직임 정보 도출 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
상술한 바와 같이, AMVP 및 머지 모드에서는 현재 블록의 움직임 정보를 도출하기 위해, 복원된 주변 블록의 움직임 정보 및/또는 콜(col) 블록의 움직임 정보가 사용될 수 있다. 여기서, 콜 블록으로부터 도출되는 움직임 정보는 시간적 움직임 정보로 불릴 수 있다.
시간적 움직임 정보는 이미 복원된 참조 픽쳐 내에서 현재 블록에 대응하는 콜 블록의 움직임 정보로부터 도출될 수 있다. 예를 들어, 현재 블록의 L0 시간적 움직임 정보를 도출할 때, 부호화기 및 복호화기는 참조 픽쳐 내에서 현재 블록에 대응하는 콜 블록의 L0 움직임 정보를 사용할 수 있다. 그러나, 상기 콜 블록에 L0 움직임 정보가 존재하지 않는 경우, 부호화기 및 복호화기는 상기 콜 블록의 L1 움직임 정보를 현재 블록의 L0 시간적 움직임 정보로 사용할 수 있다. 반대로, 현재 블록의 L1 시간적 움직임 정보를 도출할 때, 부호화기 및 복호화기는 참조 픽쳐 내에서 현재 블록에 대응하는 콜 블록의 L1 움직임 정보를 사용할 수 있다. 그러나, 상기 콜 블록에 L1 움직임 정보가 존재하지 않는 경우, 부호화기 및 복호화기는 상기 콜 블록의 L0 움직임 정보를 현재 블록의 L1 시간적 움직임 정보로 사용할 수 있다. 상술한 프로세스 수행 결과, 현재 블록의 L0 움직임 정보와 L1 움직임 정보가 동일해지는 현상이 발생할 수 있다.
상술한 문제점을 해결하기 위해, 리스트 정보에 따라 현재 블록에 대한 시간적 움직임 정보를 도출하는 시간적 움직임 정보 도출 방법이 제공될 수 있다. 도 17의 실시예에서, 리스트 정보는 콜 블록에 L0 움직임 정보 및/또는 L1 움직임 정보가 존재하는지 여부를 나타내는 정보를 의미할 수 있다.
도 17을 참조하면, 부호화기 및 복호화기는 현재 블록에 대한 콜 블록에 L0 움직임 정보가 존재하는지 여부를 판단할 수 있다(S1710). 콜 블록의 L0 움직임 정보가 존재하는 경우, 부호화기 및 복호화기는 상기 콜 블록의 L0 움직임 정보를 현재 블록에 대한 L0 시간적 움직임 정보로 결정하거나 설정할 수 있다(S1720). 콜 블록에 L0 움직임 정보가 존재하지 않는 경우, 일례로 부호화기 및 복호화기는 L0 시간적 움직임 정보를 설정하지 않을 수 있다. 즉, 이 경우에는 L0 시간적 움직임 정보가 도출되지 않을 수 있다. 이 때, 현재 블록의 인터 예측에 사용되는 시간적 움직임 정보는 L0 시간적 움직임 정보를 포함하지 않을 수 있다. 콜 블록에 L0 움직임 정보가 존재하지 않는 경우, 다른 예로 부호화기 및 복호화기는 콜 블록의 L1 움직임 정보를 현재 블록에 대한 L0 시간적 움직임 정보로 설정하거나, 움직임 벡터 (0,0)을 현재 블록에 대한 L0 시간적 움직임 벡터로 설정할 수도 있다.
다시 도 17을 참조하면, 부호화기 및 복호화기는 현재 픽쳐가 B 픽쳐인지 여부를 판단할 수 있다(S1730). 현재 픽쳐가 B 픽쳐가 아닌 경우, 부호화기 및 복호화기는 시간적 움직임 정보 도출 과정을 종료할 수 있다. 현재 픽쳐가 B 픽쳐인 경우, 부호화기 및 복호화기는 현재 블록에 대한 L1 움직임 정보 설정 과정을 수행할 수 있다.
현재 픽쳐가 B 픽쳐인 경우, 부호화기 및 복호화기는 현재 블록에 대한 콜 블록에 L1 움직임 정보가 존재하는지 여부를 판단할 수 있다(S1740). 콜 블록의 L1 움직임 정보가 존재하는 경우, 부호화기 및 복호화기는 상기 콜 블록의 L1 움직임 정보를 현재 블록에 대한 L1 시간적 움직임 정보로 결정하거나 설정할 수 있다(S1750). 콜 블록에 L1 움직임 정보가 존재하지 않는 경우, 일례로 부호화기 및 복호화기는 L1 시간적 움직임 정보를 설정하지 않을 수 있다. 즉, 이 경우에는 L1 시간적 움직임 정보가 도출되지 않을 수 있다. 이 때, 현재 블록의 인터 예측에 사용되는 시간적 움직임 정보는 L1 시간적 움직임 정보를 포함하지 않을 수 있다. 콜 블록에 L1 움직임 정보가 존재하지 않는 경우, 다른 예로 부호화기 및 복호화기는 움직임 벡터 (0,0)을 현재 블록에 대한 L1 시간적 움직임 벡터로 설정할 수도 있다.

도 18은 도 17의 실시예에 따른 시간적 움직임 정보 도출 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다. 도 18의 실시예에 따른 인터 예측 장치는 예측 방향 설정부(1810), L0 움직임 정보 판단부(1820), L0 시간적 움직임 정보 설정부(1830), 픽쳐 판단부(1840), L1 움직임 정보 판단부(1850) 및 L1 시간적 움직임 정보 설정부(1860)를 포함할 수 있다.
도 18의 실시예에 따른 인터 예측 장치는 리스트 정보에 따라 현재 블록에 대한 시간적 움직임 정보를 도출할 수 있다. 도 18의 실시예에서, 리스트 정보는 콜 블록에 L0 움직임 정보 및/또는 L1 움직임 정보가 존재하는지 여부를 나타내는 정보를 의미할 수 있다.
도 18을 참조하면, 예측 방향 설정부(1810)는 현재 블록에 대한 시간적 움직임 정보의 예측 방향을 콜 블록의 예측 방향으로 설정할 수 있다. L0 움직임 정보 판단부(1820)는 현재 블록에 대한 콜 블록에 L0 움직임 정보가 존재하는지 여부를 판단할 수 있다. 콜 블록의 L0 움직임 정보가 존재하는 경우, L0 시간적 움직임 정보 설정부(1830)는 상기 콜 블록의 L0 움직임 정보를 현재 블록에 대한 L0 시간적 움직임 정보로 결정하거나 설정할 수 있다. 콜 블록에 L0 움직임 정보가 존재하지 않는 경우, 일례로 인터 예측 장치는 L0 시간적 움직임 정보를 설정하지 않을 수 있다. 즉, 이 경우에는 L0 시간적 움직임 정보가 도출되지 않을 수 있다. 이 때, 현재 블록의 인터 예측에 사용되는 시간적 움직임 정보는 L0 시간적 움직임 정보를 포함하지 않을 수 있다. 콜 블록에 L0 움직임 정보가 존재하지 않는 경우, 다른 예로 인터 예측 장치는 콜 블록의 L1 움직임 정보를 현재 블록에 대한 L0 시간적 움직임 정보로 설정하거나, 움직임 벡터 (0,0)을 현재 블록에 대한 L0 시간적 움직임 벡터로 설정할 수도 있다.
픽쳐 판단부(1840)는 현재 픽쳐가 B 픽쳐인지 여부를 판단할 수 있다. 현재 픽쳐가 B 픽쳐가 아닌 경우, 인터 예측 장치는 시간적 움직임 정보 도출 과정을 종료할 수 있다. 이 때, 인터 예측 장치는 현재 블록에 대한 시간적 움직임 정보의 예측 방향을 단방향 예측으로 설정한 후, 시간적 움직임 정보 도출 과정을 종료할 수도 있다. 현재 픽쳐가 B 픽쳐인 경우, 인터 예측 장치는 현재 블록에 대한 L1 움직임 정보 설정 과정을 수행할 수 있다.
현재 픽쳐가 B 픽쳐인 경우, L1 움직임 정보 판단부(1850)는 현재 블록에 대한 콜 블록에 L1 움직임 정보가 존재하는지 여부를 판단할 수 있다. 콜 블록의 L1 움직임 정보가 존재하는 경우, L1 시간적 움직임 정보 설정부(1860)는 상기 콜 블록의 L1 움직임 정보를 현재 블록에 대한 L1 시간적 움직임 정보로 결정하거나 설정할 수 있다. 콜 블록에 L1 움직임 정보가 존재하지 않는 경우, 일례로 인터 예측 장치는 L1 시간적 움직임 정보를 설정하지 않을 수 있다. 즉, 이 경우에는 L1 시간적 움직임 정보가 도출되지 않을 수 있다. 이 때, 현재 블록의 인터 예측에 사용되는 시간적 움직임 정보는 L1 시간적 움직임 정보를 포함하지 않을 수 있다. 콜 블록에 L1 움직임 정보가 존재하지 않는 경우, 다른 예로 인터 예측 장치는 움직임 벡터 (0,0)을 현재 블록에 대한 L1 시간적 움직임 벡터로 설정할 수도 있다.

도 19는 본 발명에 따른 현재 블록의 시간적 움직임 정보 도출 방법의 다른 실시예를 개략적으로 나타내는 흐름도이다.
상술한 바와 같이, 시간적 움직임 정보는 이미 복원된 참조 픽쳐 내에서 현재 블록에 대응하는 콜 블록의 움직임 정보로부터 도출될 수 있다. 콜 블록으로부터 도출되는 시간적 움직임 정보에는 예측 방향 정보, L0 참조 픽쳐 번호, L1 참조 픽쳐 번호, L0 움직임 벡터 및 L1 움직임 벡터 등이 있을 수 있다. 이 때, 콜 블록으로부터 도출된 L0 시간적 움직임 정보(L0 참조 픽쳐 번호, L0 움직임 벡터)와 L1 시간적 움직임 정보(L1 참조 픽쳐 번호, L1 움직임 벡터)가 서로 동일한 경우가 발생할 수 있다. L0 시간적 움직임 정보와 L1 시간적 움직임 정보가 동일한 경우, 즉 L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, 부호화기 및 복호화기는 L0 시간적 움직임 정보만을 현재 블록에 대한 시간적 움직임 정보로 사용할 수 있다.
도 19를 참조하면, 부호화기 및 복호화기는 콜 블록으로부터 도출된 시간적 움직임 정보에서 L0 시간적 움직임 정보와 L1 시간적 움직임 정보가 동일한지 여부, 즉 L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한지 여부를 판단할 수 있다(S1910).
L0 시간적 움직임 정보와 L1 시간적 움직임 정보가 동일하지 않은 경우, 부호화기 및 복호화기는 콜 블록으로부터 도출된 시간적 움직임 정보를 그대로 현재 블록에 대한 시간적 움직임 정보로 사용할 수 있다. AMVP가 적용되는 경우, 상기 현재 블록의 시간적 움직임 정보는 현재 블록에 대한 예측 움직임 벡터 후보로 결정되거나 등록될 수 있다. 또한, 머지가 적용되는 경우, 상기 현재 블록의 시간적 움직임 정보는 현재 블록에 대한 머지 후보로 결정되거나 등록될 수 있다.
L0 시간적 움직임 정보와 L1 시간적 움직임 정보가 동일한 경우, 부호화기 및 복호화기는 현재 블록에 대한 시간적 움직임 정보의 예측 방향을 단방향 예측으로 설정할 수 있고, 콜 블록으로부터 도출된 시간적 움직임 정보 중에서 L0 시간적 움직임 정보만을 현재 블록에 대한 시간적 움직임 정보로 사용할 수 있다(S1920). 이 때, AMVP가 적용되는 경우에는, 상기 L0 시간적 움직임 정보만이 현재 블록에 대한 예측 움직임 벡터 후보로 결정되거나 등록될 수 있다. 또한, 머지가 적용되는 경우에는, 상기 L0 시간적 움직임 정보만이 현재 블록에 대한 머지 후보로 결정되거나 등록될 수 있다.
한편, 현재 블록에 대한 L0 참조 픽쳐 리스트와 L1 참조 픽쳐 리스트가 동일한 경우도 있을 수 있다. 예를 들어, 현재 블록이 순방향 B 픽쳐 및/또는 순방향 B 슬라이스 내의 블록인 경우, 현재 블록에 대한 L0 참조 픽쳐 리스트와 L1 참조 픽쳐 리스트가 동일할 수 있다. 이 경우, 현재 블록의 L0 시간적 움직임 정보와 L1 시간적 움직임 정보가 동일한 경우가 발생하는 것을 방지하기 위해, 부호화기 및 복호화기는 콜 블록으로부터 도출되는 시간적 움직임 정보의 예측 방향을 모두 단방향 예측으로 설정할 수 있다. 이 때, 부호화기는 콜 블록으로부터 도출되는 시간적 움직임 정보 중에서 L0 시간적 움직임 정보만을 현재 블록에 대한 시간적 움직임 정보로 사용할 수 있다. 이 때, 상술한 바와 같이 AMVP가 적용되는 경우에는, 상기 L0 시간적 움직임 정보만이 현재 블록에 대한 예측 움직임 벡터 후보로 결정되거나 등록될 수 있다. 또한, 머지가 적용되는 경우에는, 상기 L0 시간적 움직임 정보만이 현재 블록에 대한 머지 후보로 결정되거나 등록될 수 있다.

도 20은 도 19의 실시예에 따른 시간적 움직임 정보 도출 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다. 도 20의 실시예에 따른 인터 예측 장치는 시간적 움직임 정보 판단부(2010), 예측 방향 재설정부(2020) 및 L0 시간적 움직임 정보 설정부(2030)를 포함할 수 있다.
상술한 바와 같이, 시간적 움직임 정보는 이미 복원된 참조 픽쳐 내에서 현재 블록에 대응하는 콜 블록의 움직임 정보로부터 도출될 수 있다. 콜 블록으로부터 도출되는 시간적 움직임 정보에는 예측 방향 정보, L0 참조 픽쳐 번호, L1 참조 픽쳐 번호, L0 움직임 벡터 및 L1 움직임 벡터 등이 있을 수 있다. 이 때, L0 시간적 움직임 정보와 L1 시간적 움직임 정보가 동일한 경우, 즉 L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, 상기 인터 예측 장치는 L0 시간적 움직임 정보만을 현재 블록에 대한 시간적 움직임 정보로 사용할 수 있다.
도 20을 참조하면, 시간적 움직임 정보 판단부(2010)는 콜 블록으로부터 도출된 시간적 움직임 정보에서 L0 시간적 움직임 정보와 L1 시간적 움직임 정보가 동일한지 여부, 즉 L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한지 여부를 판단할 수 있다.
L0 시간적 움직임 정보와 L1 시간적 움직임 정보가 동일하지 않은 경우, 인터 예측 장치는 콜 블록으로부터 도출된 시간적 움직임 정보를 그대로 현재 블록에 대한 시간적 움직임 정보로 사용할 수 있다. AMVP가 적용되는 경우, 상기 현재 블록의 시간적 움직임 정보는 현재 블록에 대한 예측 움직임 벡터 후보로 결정되거나 등록될 수 있다. 또한, 머지가 적용되는 경우, 상기 현재 블록의 시간적 움직임 정보는 현재 블록에 대한 머지 후보로 결정되거나 등록될 수 있다.
L0 시간적 움직임 정보와 L1 시간적 움직임 정보가 동일한 경우, 예측 방향 재설정부(2020)는 현재 블록에 대한 시간적 움직임 정보의 예측 방향을 단방향 예측으로 설정할 수 있다. 또한 이 때, L0 움직임 정보 설정부(2030)는 콜 블록으로부터 도출된 시간적 움직임 정보 중에서 L0 시간적 움직임 정보만을 현재 블록에 대한 시간적 움직임 정보로 결정하거나 사용할 수 있다. 이 때, AMVP가 적용되는 경우에는, 상기 L0 시간적 움직임 정보만이 현재 블록에 대한 예측 움직임 벡터 후보로 결정되거나 등록될 수 있다. 또한, 머지가 적용되는 경우에는, 상기 L0 시간적 움직임 정보만이 현재 블록에 대한 머지 후보로 결정되거나 등록될 수 있다.

도 21은 현재 블록의 시간적 움직임 정보를 도출할 때, 콜 픽쳐를 결정하는 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 21의 실시예에서 현재 픽쳐 및/또는 현재 슬라이스는 순방향 B 픽쳐 및/또는 순방향 B 슬라이스라 가정한다. 상술한 바와 같이, 순방향 B 픽쳐 및/또는 순방향 B 슬라이스에서는 일반적으로 L0 참조 픽쳐 리스트 및 L1 참조 픽쳐 리스트가 동일하게 설정될 수 있다.
또한 상술한 바와 같이, 시간적 움직임 정보는 이미 복원된 참조 픽쳐 내에서 현재 블록에 대응하는 콜 블록의 움직임 정보로부터 도출될 수 있다. 이 때, 콜 픽쳐는 상기 콜 블록을 포함하고 있는, 이미 복원된 참조 픽쳐를 의미할 수 있다. 상기 콜 픽쳐는 이미 부호화 및/또는 복호화 되어 참조 픽쳐 리스트 내에 참조 픽쳐로서 존재하는 픽쳐일 수 있다. 부호화기 및 복호화기는 시간적 움직임 정보 도출시에, 참조 픽쳐 리스트에 포함된 모든 참조 픽쳐 중에서 적어도 하나의 참조 픽쳐를 콜 픽쳐로 사용할 수 있다.
일반적으로, 부호화기 및 복호화기는 참조 픽쳐 리스트에 포함된 참조 픽쳐 중에서, 현재 부호화 대상 픽쳐와 POC 순서에 따른 픽쳐 번호(이하, 픽쳐 번호라 함.) 차이가 가장 작은 픽쳐를 현재 블록에 대한 콜 픽쳐로 결정하거나 설정할 수 있다. 예를 들어, 현재 부호화 대상 픽쳐와의 픽쳐 번호 차이가 가장 작은 픽쳐가 참조 픽쳐 리스트 내의 첫 번째 픽쳐인 경우, 일반적으로 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐가 콜 픽쳐로 결정되거나 설정될 수 있다.
다른 예로서, 부호화기는 현재 블록에 대한 콜 픽쳐를 결정한 후, 참조 픽쳐 리스트 내의 참조 픽쳐들 중에서 콜 픽쳐로 사용되는 참조 픽쳐를 지시하는, 콜 픽쳐 인덱스를 부호화하여 복호화기로 전송할 수 있다. 이 때, 복호화기는 상기 콜 픽쳐 인덱스를 수신하여 복호화한 후, 복호화된 콜 픽쳐 인덱스를 기반으로, 참조 픽쳐 리스트 내에서 콜 픽쳐로 사용되는 참조 픽쳐를 결정하거나 설정할 수 있다.
이하, 도 21의 실시예에 한하여, L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L0 참조 픽쳐라 하고, L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L1 참조 픽쳐라 한다. 도 21의 실시예에서는, 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐가 콜 픽쳐로 결정되는 경우의 실시예가 서술된다.
그러나, 본 발명은 이에 한정되는 것은 아니며, 도 21에서 후술되는 내용들은 콜 픽쳐 인덱스를 기반으로 콜 픽쳐가 결정되는 경우에도 동일하거나 유사한 방법으로 적용될 수 있다. 이 경우, L0 참조 픽쳐는 L0 참조 픽쳐 리스트 내 참조 픽쳐들 중에서 콜 픽쳐 인덱스가 지시하는 참조 픽쳐를 의미할 수 있고, L1 참조 픽쳐는 L1 참조 픽쳐 리스트 내 참조 픽쳐들 중에서 콜 픽쳐 인덱스가 지시하는 참조 픽쳐를 의미할 수 있다.
도 21을 참조하면, 현재 블록이 순방향 B 픽쳐 및/또는 순방향 B 슬라이스 내의 블록일 때, 부호화기 및 복호화기는 상기 현재 블록의 리스트 정보를 기반으로, 현재 블록에 대한 시간적 움직임 정보 도출에 사용되는 콜 픽쳐를 결정할 수 있다. 도 21의 실시예에서, 리스트 정보는 현재 블록에 대해 도출될 시간적 움직임 정보가 L0 시간적 움직임 정보인지 또는 L1 시간적 움직임 정보인지 여부를 나타내는 정보를 의미할 수 있다.
우선, 부호화기 및 복호화기는 현재 블록에 대해 도출될 시간적 움직임 정보가 L1 시간적 움직임 정보인지 여부를 판단할 수 있다(S2110). 현재 블록에 대해 도출될 시간적 움직임 정보가 L1 시간적 움직임 정보가 아닌 경우, 즉 현재 블록에 대해 도출될 시간적 움직임 정보가 L0 시간적 움직임 정보인 경우, 부호화기 및 복호화기는 L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐(콜 픽쳐 인덱스가 사용되는 경우에는, 콜 픽쳐 인덱스가 지시하는 참조 픽쳐)를 현재 블록에 대한 콜 픽쳐로 결정하거나 설정할 수 있다(S2120). 현재 블록에 대해 도출될 시간적 움직임 정보가 L1 시간적 움직임 정보인 경우, 부호화기 및 복호화기는 L0 참조 픽쳐와 L1 참조 픽쳐가 서로 동일한지 여부를 판단할 수 있다(S2130).
L0 참조 픽쳐와 L1 참조 픽쳐가 동일하지 않은 경우, 부호화기 및 복호화기는 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐(콜 픽쳐 인덱스가 사용되는 경우에는, 콜 픽쳐 인덱스가 지시하는 참조 픽쳐)를 현재 블록에 대한 콜 픽쳐로 결정하거나 설정할 수 있다(S2140). L0 참조 픽쳐와 L1 참조 픽쳐가 동일한 경우, 부호화기 및 복호화기는 L1 참조 픽쳐 리스트 내의 참조 픽쳐 중에서 상기 L0 참조 픽쳐와 동일하지 않은 참조 픽쳐를 현재 블록에 대한 콜 픽쳐로 결정하거나 설정할 수 있다(S2150). 이 때, L1 참조 픽쳐 리스트 내의 참조 픽쳐의 개수가 1개 이하인 경우, 부호화기 및 복호화기는 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐(콜 픽쳐 인덱스가 사용되는 경우에는, 콜 픽쳐 인덱스가 지시하는 참조 픽쳐)를 현재 블록에 대한 콜 픽쳐로 설정할 수도 있다.
도 22는 도 21의 실시예에 따른 콜 픽쳐 결정 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다. 도 22의 실시예에 따른 인터 예측 장치는 리스트 정보 판단부(2210), 참조 픽쳐 동일성 판단부(2220), 제1 콜 픽쳐 설정부(2230), 제2 콜 픽쳐 설정부(2240) 및 제3 콜 픽쳐 설정부(2250)를 포함할 수 있다.
도 22의 실시예에서 현재 픽쳐 및/또는 현재 슬라이스는 순방향 B 픽쳐 및/또는 순방향 B 슬라이스라 가정한다. 상술한 바와 같이, 순방향 B 픽쳐 및/또는 순방향 B 슬라이스에서는 일반적으로 L0 참조 픽쳐 리스트 및 L1 참조 픽쳐 리스트가 동일하게 설정될 수 있다.
또한 이하, 도 22의 실시예에 한하여, L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L0 참조 픽쳐라 하고, L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L1 참조 픽쳐라 한다. 도 22의 실시예에서는, 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐가 콜 픽쳐로 결정되는 경우의 실시예가 서술된다.
그러나, 본 발명은 이에 한정되는 것은 아니며, 도 22에서 후술되는 내용들은 도 21에서 상술한 콜 픽쳐 인덱스를 기반으로 콜 픽쳐가 결정되는 경우에도 동일하거나 유사한 방법으로 적용될 수 있다. 이 경우, L0 참조 픽쳐는 L0 참조 픽쳐 리스트 내 참조 픽쳐들 중에서 콜 픽쳐가 지시하는 참조 픽쳐를 의미할 수 있고, L1 참조 픽쳐는 L1 참조 픽쳐 리스트 내 참조 픽쳐들 중에서 콜 픽쳐 인덱스가 지시하는 참조 픽쳐를 의미할 수 있다.
도 22의 실시예에 따른 인터 예측 장치는 현재 블록의 리스트 정보, L0 참조 픽쳐 및 L1 참조 픽쳐를 입력 받아, 현재 블록의 시간적 움직임 정보 도출에 사용되는 콜 픽쳐를 결정하거나 설정할 수 있다. 현재 블록이 순방향 B 픽쳐 및/또는 순방향 B 슬라이스 내의 블록일 때, 상기 인터 예측 장치는 상기 리스트 정보를 기반으로, 현재 블록의 시간적 움직임 정보 도출에 사용되는 콜 픽쳐를 결정할 수 있다. 도 22의 실시예에서, 리스트 정보는 현재 블록에 대해 도출될 시간적 움직임 정보가 L0 시간적 움직임 정보인지 또는 L1 시간적 움직임 정보인지 여부를 나타내는 정보를 의미할 수 있다.
도 22를 참조하면, 리스트 정보 판단부(2210)는 현재 블록에 대해 도출될 시간적 움직임 정보가 L1 시간적 움직임 정보인지 여부를 판단할 수 있다. 현재 블록에 대해 도출될 시간적 움직임 정보가 L1 시간적 움직임 정보가 아닌 경우, 즉 현재 블록에 대해 도출될 시간적 움직임 정보가 L0 시간적 움직임 정보인 경우, 제1 콜 픽쳐 설정부(2230)는 L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐(콜 픽쳐 인덱스가 사용되는 경우에는, 콜 픽쳐 인덱스가 지시하는 참조 픽쳐)를 현재 블록에 대한 콜 픽쳐로 결정하거나 설정할 수 있다. 현재 블록에 대해 도출될 시간적 움직임 정보가 L1 시간적 움직임 정보인 경우, 참조 픽쳐 동일성 판단부(2220)는 L0 참조 픽쳐와 L1 참조 픽쳐가 서로 동일한지 여부를 판단할 수 있다.
L0 참조 픽쳐와 L1 참조 픽쳐가 동일한 경우, 제2 콜 픽쳐 설정부(2240)는 L1 참조 픽쳐 리스트 내의 참조 픽쳐 중에서 상기 L0 참조 픽쳐와 동일하지 않은 참조 픽쳐를 현재 블록에 대한 콜 픽쳐로 결정하거나 설정할 수 있다. 이 때, L1 참조 픽쳐 리스트 내의 참조 픽쳐의 개수가 1개 이하인 경우, 제2 콜 픽쳐 설정부(2240)는 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐(콜 픽쳐 인덱스가 사용되는 경우에는, 콜 픽쳐 인덱스가 지시하는 참조 픽쳐)를 현재 블록에 대한 콜 픽쳐로 설정할 수도 있다. L0 참조 픽쳐와 L1 참조 픽쳐가 동일하지 않은 경우, 제3 콜 픽쳐 설정부(2250)는 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐(콜 픽쳐 인덱스가 사용되는 경우에는, 콜 픽쳐 인덱스가 지시하는 참조 픽쳐)를 현재 블록에 대한 콜 픽쳐로 결정하거나 설정할 수 있다.

도 23은 움직임 정보 후보 도출에 사용되는 모든 블록이 움직임 정보를 가지고 있지 않은 경우, 현재 블록의 움직임 정보를 결정하는 방법의 일 실시예를 개략적으로 나타내는 흐름도이다. 여기서, 움직임 정보 후보는 AMVP 모드의 경우 예측 움직임 벡터 후보를 의미할 수 있고, 머지 모드의 경우 머지 후보를 의미할 수 있다.
상술한 바와 같이, AMVP 및 머지 모드에서는, 현재 블록의 움직임 정보를 도출하기 위해, 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보가 사용될 수 있다. 복원된 주변 블록 및/또는 콜 블록의 움직임 정보는 움직임 정보 후보로 사용될 수 있으며, 부호화기 및 복호화기는 상기 움직임 정보 후보에 기반하여 현재 블록의 움직임 정보를 도출할 수 있다. 그러나, 움직임 정보 후보 도출에 사용되는 모든 블록(복원된 주변 블록 및/또는 콜 블록)이 움직임 정보를 가지고 있지 않을 수도 있으므로, 이러한 경우에 현재 블록의 움직임 정보를 도출하거나 설정하는 방법이 제공될 수 있다.
이하, 도 23의 실시예에 한하여, L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L0 참조 픽쳐라 하고, L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L1 참조 픽쳐라 한다.
도 23을 참조하면, 부호화기 및 복호화기는 현재 픽쳐의 픽쳐 타입이 B 픽쳐인지 여부를 판단할 수 있다(S2310). 현재 픽쳐의 픽쳐 타입이 B 픽쳐가 아닌 경우, 예를 들어 현재 픽쳐의 픽쳐 타입이 P 픽쳐인 경우, 부호화기 및 복호화기는 현재 블록의 예측 방향을 단방향 예측으로 설정하고, L0 참조 픽쳐 인덱스는 0으로 설정하고, L0 움직임 벡터는 (0,0)으로 설정할 수 있다(S2330). L0 참조 픽쳐 인덱스에 할당된 값이 0인 경우, 상기 L0 참조 픽쳐 인덱스는 L0 참조 픽쳐 리스트 내의 참조 픽쳐들 중에서 첫 번째 픽쳐가 현재 픽쳐의 참조 픽쳐로 사용됨을 지시할 수 있다. 현재 픽쳐의 픽쳐 타입이 B 픽쳐인 경우, 부호화기 및 복호화기는 L0 참조 픽쳐와 L1 참조 픽쳐가 동일한지 여부를 판단할 수 있다(S2320).
L0 참조 픽쳐와 L1 참조 픽쳐가 동일한지 여부를 판단하기 위해, 일례로, 부호화기 및 복호화기는 L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐의 참조 픽쳐 번호 및 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐의 참조 픽쳐 번호의 동일성을 판단할 수 있다. 또한 일반적으로, 부호화기 및 복호화기는 L0 참조 픽쳐의 L0 참조 픽쳐 번호와 L1 참조 픽쳐의 L1 참조 픽쳐 번호의 동일성을 판단함으로써, L0 참조 픽쳐와 L1 참조 픽쳐가 동일한지 여부를 판단할 수 있다. 참조 픽쳐의 동일성을 판단하는 방법은 상황에 따라 다양하게 변경될 수 있다.
L0 참조 픽쳐와 L1 참조 픽쳐가 동일한 경우, 부호화기 및 복호화기는 현재 블록의 예측 방향을 단방향 예측으로 설정하고, L0 참조 픽쳐 인덱스는 0으로 설정하고, L0 움직임 벡터는 (0,0)으로 설정할 수 있다(S2330). L0 참조 픽쳐와 L1 참조 픽쳐가 동일하지 않은 경우, 부호화기 및 복호화기는 현재 블록의 예측 방향을 양방향 예측으로 설정하고, L0 참조 픽쳐 인덱스와 L1 참조 픽쳐 인덱스는 0으로 설정하고, L0 움직임 벡터와 L1 움직임 벡터는 (0,0)으로 설정할 수 있다(S2340). L1 참조 픽쳐 인덱스에 할당된 값이 0인 경우, 상기 L1 참조 픽쳐 인덱스는 L1 참조 픽쳐 리스트 내의 참조 픽쳐들 중에서 첫 번째 픽쳐가 현재 픽쳐의 참조 픽쳐로 사용됨을 지시할 수 있다.

이하, 복호화기 입장에서 도 23의 실시예에 따른 움직임 정보 결정 과정의 실시예가 서술된다.
복원된 주변 블록 및/또는 콜 블록에 움직임 정보가 없는 경우, mvLX, refIdxLX 및 predFlagLX는 현재 픽쳐의 픽쳐 타입에 따라 다르게 정해질 수 있다. 여기서, X는 0 또는 1로 대체될 수 있다. 예를 들어, X가 0일 경우, mvLX, refIdxLX, predFlagLX는 각각 mvL0, refIdxL0, predFlagL0을 나타낼 수 있으며, 이는 L0 움직임 정보 관련 변수들을 의미할 수 있다. 여기서, mvLX는 현재 블록의 움직임 벡터를 의미할 수 있고, mvLX[0]은 x 성분의 움직임 벡터, mvLX[1]은 y 성분의 움직임 벡터를 의미할 수 있다. refIdxLX는 LX 참조 픽쳐 리스트에 포함된 참조 픽쳐들 중에서 현재 블록의 인터 예측에 사용되는 참조 픽쳐를 지시하는 인덱스인, LX 참조 픽쳐 인덱스를 의미할 수 있다. 예를 들어, refIdxLX 값이 ‘0’인 경우, 상기 refIdxLX는 LX 참조 픽쳐 리스트 내의 참조 픽쳐들 중에서 첫 번째 픽쳐를 지시할 수 있고, refIdxLX 값이 ‘-1’인 경우, 상기 refIdxLX는 LX 참조 픽쳐 리스트 내에 현재 블록의 인터 예측에 사용되는 참조 픽쳐가 존재하지 않음을 지시할 수 있다. predflagLX는 현재 블록에 대해 LX 움직임 보상이 수행되어 예측 블록이 생성되는지 여부를 지시하는 플래그를 나타낼 수 있다. 예를 들어, ‘predflagLX’ 값이 ‘1’인 경우, 부호화기 및/또는 복호화기는 현재 블록에 대해 LX 움직임 보상을 수행할 수 있다.
현재 블록을 포함하는 픽쳐의 픽쳐 타입이 P 픽쳐이거나 및/또는 현재 블록을 포함하는 슬라이스의 슬라이스 타입이 P 슬라이스라면, 복호화기는 다음 과정을 수행할 수 있다.
mvLX[ 0 ] = 0
mvLX[ 1 ] = 0
refIdxL0 = 0
refIdxL1 = -1
predFlagL0 = 1
prefFlagL1 = 0

그렇지 않으면, 즉 현재 블록을 포함하는 픽쳐의 픽쳐 타입이 B 픽쳐이거나 및/또는 현재 블록을 포함하는 슬라이스의 슬라이스 타입이 B 슬라이스라면, 복호화기는 다음 과정을 수행할 수 있다.
만일, L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐와 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐가 동일한 경우, 복호화기는 다음 과정을 수행할 수 있다.
mvLX[ 0 ] = 0
mvLX[ 1 ] = 0
refIdxL0 = 0
refIdxL1 = -1
predFlagL0 = 1
prefFlagL1 = 0

그렇지 않으면, 즉 L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐와 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐가 동일하지 않은 경우, 복호화기는 다음 과정을 수행할 수 있다.
mvLX[ 0 ] = 0
mvLX[ 1 ] = 0
refIdxL0 = 0
refIdxL1 = 0
predFlagL0 = 1
prefFlagL1 = 1

도 24는 도 23의 실시예에 따른 움직임 정보 결정 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다. 도 24의 실시예에 따른 인터 예측 장치는 판단부(2410), 양방향 움직임 정보 설정부(2420) 및 단방향 움직임 정보 설정부(2430)를 포함할 수 있다.
상술한 바와 같이, AMVP 및 머지 모드에서는, 현재 블록의 움직임 정보를 도출하기 위해, 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보가 사용될 수 있다. 복원된 주변 블록 및/또는 콜 블록의 움직임 정보는 움직임 정보 후보로 사용될 수 있으며, 부호화기 및 복호화기는 상기 움직임 정보 후보에 기반하여 현재 블록의 움직임 정보를 도출할 수 있다. 여기서, 움직임 정보 후보는 AMVP 모드의 경우 예측 움직임 벡터 후보를 의미할 수 있고, 머지 모드의 경우 머지 후보를 의미할 수 있다. 그러나, 움직임 정보 후보 도출에 사용되는 모든 블록(복원된 주변 블록 및/또는 콜 블록)이 움직임 정보를 가지고 있지 않을 수도 있다. 따라서, 이러한 경우에 현재 블록의 움직임 정보를 도출하거나 설정하기 위한 인터 예측 장치가 제공될 수 있다.
이하, 도 24의 실시예에 한하여, L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L0 참조 픽쳐라 하고, L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L1 참조 픽쳐라 한다.
도 24를 참조하면, 판단부(2410)는 픽쳐 타입 정보, L0 참조 픽쳐 및 L1 참조 픽쳐를 입력 받은 후, 현재 픽쳐의 픽쳐 타입이 B 픽쳐인지 여부 및 L0 참조 픽쳐와 L1 참조 픽쳐가 동일한지 여부를 판단할 수 있다. 인터 예측 장치는 상기 판단 결과에 따라, 단방향 움직임 정보 설정부(2420)에 의한 단방향 움직임 정보 설정 또는 양방향 움직임 정보 설정부(2430)에 의한 양방향 움직임 정보 설정을 수행할 수 있다. 구체적으로, 현재 픽쳐가 B 픽쳐가 아닌 경우(예를 들어, 현재 픽쳐의 픽쳐 타입이 P 픽쳐인 경우) 또는 현재 픽쳐가 B 픽쳐이고 L0 참조 픽쳐와 L1 참조 픽쳐가 동일한 경우, 단방향 움직임 정보 설정이 수행될 수 있고, 현재 픽쳐가 B 픽쳐이고 L0 참조 픽쳐와 L1 참조 픽쳐가 동일하지 않은 경우, 양방향 움직임 정보 설정이 수행될 수 있다.
현재 픽쳐가 B 픽쳐가 아닌 경우 또는 현재 픽쳐가 B 픽쳐이고 L0 참조 픽쳐와 L1 참조 픽쳐가 동일한 경우, 단방향 움직임 정보 설정부(2420)는 현재 블록의 예측 방향을 단방향 예측으로 설정할 수 있다. 또한 이 때, 단방향 움직임 정보 설정부(2420)는 L0 참조 픽쳐 인덱스를 0으로 설정하고, L0 움직임 벡터를 (0,0)으로 설정할 수 있다. 현재 픽쳐가 B 픽쳐이고 L0 참조 픽쳐와 L1 참조 픽쳐가 동일하지 않은 경우, 양방향 움직임 정보 설정부(2430)는 현재 블록의 예측 방향을 양방향 예측으로 설정할 수 있다. 또한 이 때, 양방향 움직임 정보 설정부(2430)는 L0 참조 픽쳐 인덱스와 L1 참조 픽쳐 인덱스를 0으로 설정하고, L0 움직임 벡터와 L1 움직임 벡터를 (0,0)으로 설정할 수 있다.

도 25는 움직임 정보 후보 도출에 사용되는 모든 블록이 움직임 정보를 가지고 있지 않은 경우, 현재 블록의 움직임 정보를 결정하는 방법의 다른 실시예를 개략적으로 나타내는 흐름도이다. 여기서, 움직임 정보 후보는 AMVP 모드의 경우 예측 움직임 벡터 후보를 의미할 수 있고, 머지 모드의 경우 머지 후보를 의미할 수 있다.
도 25의 실시예에서 B 픽쳐는 순방향 B 픽쳐라 가정한다. 상술한 바와 같이, 순방향 B 픽쳐에서는 일반적으로 L0 참조 픽쳐 리스트 및 L1 참조 픽쳐 리스트가 동일하게 설정될 수 있다. 또한, 상술한 바와 같이, 본 명세서에서 “픽쳐”는 문맥에 따라 “프레임”, “필드” 및/또는 “슬라이스”로 대체되어 사용될 수 있으며, 이러한 구분은 해당 기술 분야에서 통상의 지식을 가진 자라면 용이하게 할 수 있을 것이다.
AMVP 및 머지 모드에서는, 현재 블록의 움직임 정보를 도출하기 위해, 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보가 사용될 수 있다. 복원된 주변 블록 및/또는 콜 블록의 움직임 정보는, 움직임 정보 후보로 사용될 수 있으며, 부호화기 및 복호화기는 상기 움직임 정보 후보에 기반하여 현재 블록의 움직임 정보를 도출할 수 있다. 그러나, 움직임 정보 후보 도출에 사용되는 모든 블록(복원된 주변 블록 및/또는 콜 블록)이 움직임 정보를 가지고 있지 않을 수도 있으므로, 이러한 경우에 현재 블록의 움직임 정보를 도출하거나 설정하는 방법이 제공될 수 있다.
이하, 도 25의 실시예에 한하여, L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L0 참조 픽쳐라 하고, L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L1 참조 픽쳐라 한다.
도 25를 참조하면, 부호화기 및 복호화기는 현재 픽쳐의 픽쳐 타입이 B 픽쳐인지 여부를 판단할 수 있다(S2510). 현재 픽쳐의 픽쳐 타입이 B 픽쳐가 아닌 경우, 예를 들어 현재 픽쳐의 픽쳐 타입이 P 픽쳐인 경우, 부호화기 및 복호화기는 현재 블록의 예측 방향을 단방향 예측으로 설정하고, L0 참조 픽쳐 인덱스는 0으로 설정하고, L0 움직임 벡터는 (0,0)으로 설정할 수 있다(S2520). L0 참조 픽쳐 인덱스에 할당된 값이 0인 경우, 상기 L0 참조 픽쳐 인덱스는 L0 참조 픽쳐 리스트 내의 참조 픽쳐들 중에서 첫 번째 픽쳐가 현재 픽쳐의 참조 픽쳐로 사용됨을 지시할 수 있다. 현재 픽쳐의 픽쳐 타입이 B 픽쳐인 경우, 부호화기 및 복호화기는 L0 참조 픽쳐와 L1 참조 픽쳐가 동일한지 여부를 판단할 수 있다(S2530).
L0 참조 픽쳐와 L1 참조 픽쳐가 동일한지 여부를 판단하기 위해, 일례로, 부호화기 및 복호화기는 L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐의 참조 픽쳐 번호 및 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐의 참조 픽쳐 번호의 동일성을 판단할 수 있다. 또한 일반적으로, 부호화기 및 복호화기는 L0 참조 픽쳐의 L0 참조 픽쳐 번호와 L1 참조 픽쳐의 L1 참조 픽쳐 번호의 동일성을 판단함으로써, L0 참조 픽쳐와 L1 참조 픽쳐가 동일한지 여부를 판단할 수 있다. 참조 픽쳐의 동일성을 판단하는 방법은 상황에 따라 다양하게 변경될 수 있다.
L0 참조 픽쳐와 L1 참조 픽쳐가 동일하지 않은 경우, 부호화기 및 복호화기는 현재 블록의 예측 방향을 양방향 예측으로 설정하고, L0 참조 픽쳐 인덱스와 L1 참조 픽쳐 인덱스는 0으로 설정하고, L0 움직임 벡터와 L1 움직임 벡터는 (0,0)으로 설정할 수 있다(S2540). L1 참조 픽쳐 인덱스에 할당된 값이 0인 경우, 상기 L1 참조 픽쳐 인덱스는 L1 참조 픽쳐 리스트 내의 참조 픽쳐들 중에서 첫 번째 픽쳐가 현재 픽쳐의 참조 픽쳐로 사용됨을 지시할 수 있다. L0 참조 픽쳐와 L1 참조 픽쳐가 동일한 경우, 부호화기 및 복호화기는 현재 블록의 예측 방향을 양방향 예측으로 설정하고, L0 참조 픽쳐 인덱스를 0으로 설정하고, L1 참조 픽쳐 인덱스를 1로 설정하고, L0 움직임 벡터와 L1 움직임 벡터를 (0,0)으로 설정할 수 있다(S2550). L1 참조 픽쳐 인덱스에 할당된 값이 1인 경우, 상기 L1 참조 픽쳐 인덱스는 L1 참조 픽쳐 리스트 내의 참조 픽쳐들 중에서 두 번째 픽쳐가 현재 픽쳐의 참조 픽쳐로 사용됨을 지시할 수 있다. 여기서, L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 1개 이하이면, 부호화기 및 복호화기는 현재 블록의 예측 방향을 단방향 예측으로 설정하고, L0 참조 픽쳐 인덱스는 0으로 설정하고, L0 움직임 벡터는 (0,0)으로 설정할 수도 있다.

이하, 복호화기 입장에서 도 25의 실시예에 따른 움직임 정보 결정 과정의 실시예가 서술된다.
복원된 주변 블록 및/또는 콜 블록에 움직임 정보가 없는 경우, mvLX, refIdxLX 및 predFlagLX는 현재 픽쳐의 픽쳐 타입에 따라 다르게 정해질 수 있다. 여기서, X는 0 또는 1로 대체될 수 있다. 예를 들어, X가 0일 경우, mvLX, refIdxLX, predFlagLX는 각각 mvL0, refIdxL0, predFlagL0을 나타낼 수 있으며, 이는 L0 움직임 정보 관련 변수들을 의미할 수 있다. 여기서, mvLX는 현재 블록의 움직임 벡터를 의미할 수 있고, mvLX[0]은 x 성분의 움직임 벡터, mvLX[1]은 y 성분의 움직임 벡터를 의미할 수 있다. refIdxLX는 LX 참조 픽쳐 리스트에 포함된 참조 픽쳐들 중에서 현재 블록의 인터 예측에 사용되는 참조 픽쳐를 지시하는 인덱스인, LX 참조 픽쳐 인덱스를 의미할 수 있다. 예를 들어, refIdxLX 값이 ‘0’인 경우, 상기 refIdxLX는 LX 참조 픽쳐 리스트 내의 참조 픽쳐들 중에서 첫 번째 픽쳐를 지시할 수 있고, refIdxLX 값이 ‘-1’인 경우, 상기 refIdxLX는 LX 참조 픽쳐 리스트 내에 현재 블록의 인터 예측에 사용되는 참조 픽쳐가 존재하지 않음을 지시할 수 있다. predflagLX는 현재 블록에 대해 LX 움직임 보상이 수행되어 예측 블록이 생성되는지 여부를 지시하는 플래그를 나타낼 수 있다. 예를 들어, ‘predflagLX’ 값이 ‘1’인 경우, 부호화기 및/또는 복호화기는 현재 블록에 대해 LX 움직임 보상을 수행할 수 있다.
현재 블록을 포함하는 픽쳐의 픽쳐 타입이 P 픽쳐이거나 및/또는 현재 블록을 포함하는 슬라이스의 슬라이스 타입이 P 슬라이스라면, 복호화기는 다음 과정을 수행할 수 있다.
mvLX[ 0 ] = 0
mvLX[ 1 ] = 0
refIdxL0 = 0
refIdxL1 = -1
predFlagL0 = 1
prefFlagL1 = 0

그렇지 않으면, 즉 현재 블록을 포함하는 픽쳐의 픽쳐 타입이 B 픽쳐이거나 및/또는 현재 블록을 포함하는 슬라이스의 슬라이스 타입이 B 슬라이스라면, 복호화기는 다음 과정을 수행할 수 있다.
만일, L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐와 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐가 동일한 경우, 복호화기는 다음 과정을 수행할 수 있다.
mvLX[ 0 ] = 0
mvLX[ 1 ] = 0
refIdxL0 = 0
refIdxL1 = 1
predFlagL0 = 1
prefFlagL1 = 1

그렇지 않으면, 즉 L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐와 L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐가 동일하지 않은 경우, 복호화기는 다음 과정을 수행할 수 있다.
mvLX[ 0 ] = 0
mvLX[ 1 ] = 0
refIdxL0 = 0
refIdxL1 = 0
predFlagL0 = 1
prefFlagL1 = 1

도 26은 도 25의 실시예에 따른 움직임 정보 결정 과정을 수행할 수 있는 인터 예측 장치의 일 실시예를 개략적으로 나타내는 블록도이다. 도 26의 실시예에 따른 인터 예측 장치는 판단부(2610), 단방향 움직임 정보 설정부(2620), 제1 양방향 움직임 정보 설정부(2630) 및 제2 양방향 움직임 정보 설정부(2640)를 포함할 수 있다.
도 26의 실시예에서 B 픽쳐는 순방향 B 픽쳐라 가정한다. 상술한 바와 같이, 순방향 B 픽쳐에서는 일반적으로 L0 참조 픽쳐 리스트 및 L1 참조 픽쳐 리스트가 동일하게 설정될 수 있다. 또한, 상술한 바와 같이, 본 명세서에서 “픽쳐”는 문맥에 따라 “프레임”, “필드” 및/또는 “슬라이스”로 대체되어 사용될 수 있으며, 이러한 구분은 해당 기술 분야에서 통상의 지식을 가진 자라면 용이하게 할 수 있을 것이다.
AMVP 및 머지 모드에서는, 현재 블록의 움직임 정보를 도출하기 위해, 복원된 주변 블록의 움직임 정보 및/또는 콜 블록의 움직임 정보가 사용될 수 있다. 복원된 주변 블록 및/또는 콜 블록의 움직임 정보는, 움직임 정보 후보로 사용될 수 있으며, 부호화기 및 복호화기는 상기 움직임 정보 후보에 기반하여 현재 블록의 움직임 정보를 도출할 수 있다. 여기서, 움직임 정보 후보는 AMVP 모드의 경우 예측 움직임 벡터 후보를 의미할 수 있고, 머지 모드의 경우 머지 후보를 의미할 수 있다. 그러나, 움직임 정보 후보 도출에 사용되는 모든 블록(복원된 주변 블록 및/또는 콜 블록)이 움직임 정보를 가지고 있지 않을 수도 있으므로, 이러한 경우에 현재 블록의 움직임 정보를 도출하거나 설정하기 위한 인터 예측 장치가 제공될 수 있다.
이하, 도 26의 실시예에 한하여, L0 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L0 참조 픽쳐라 하고, L1 참조 픽쳐 리스트 내의 첫 번째 참조 픽쳐는 L1 참조 픽쳐라 한다.
도 26을 참조하면, 판단부(2610)는 픽쳐 타입 정보, L0 참조 픽쳐 및 L1 참조 픽쳐를 입력 받은 후, 현재 픽쳐의 픽쳐 타입이 B 픽쳐인지 여부 및 L0 L0 참조 픽쳐와 L1 참조 픽쳐가 동일한지 여부를 판단할 수 있다. 인터 예측 장치는 상기 판단 결과에 따라, 단방향 움직임 정보 설정부(2620)에 의한 단방향 움직임 정보 설정, 제1 양방향 움직임 정보 설정부(2630)에 의한 제1 양방향 움직임 정보 설정 또는 제2 양방향 움직임 정보 설정부(2640)에 의한 제2 양방향 움직임 정보 설정을 수행할 수 있다.
구체적으로, 현재 픽쳐가 B 픽쳐가 아닌 경우(예를 들어, 현재 픽쳐가 P 픽쳐인 경우), 단방향 움직임 정보 설정이 수행될 수 있다. 또한, 현재 픽쳐가 B 픽쳐인 경우, 판단부(2610)는 L0 참조 픽쳐와 L1 참조 픽쳐의 동일성 여부를 판단할 수 있다. 이 때, L0 참조 픽쳐와 L1 참조 픽쳐가 동일하지 않은 경우, 제1 양방향 움직임 정보 설정이 수행될 수 있고, L0 참조 픽쳐와 L1 참조 픽쳐가 동일한 경우, 제2 양방향 움직임 정보 설정이 수행될 수 있다. 여기서, L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 1개 이하이면, 단방향 움직임 정보 설정이 수행될 수도 있다.
단방향 움직임 정보 설정부(2620)는 현재 블록의 예측 방향을 단방향 예측으로 설정할 수 있다. 또한 이 때, 단방향 움직임 정보 설정부(2620)는 L0 참조 픽쳐 인덱스를 0으로 설정하고, L0 움직임 벡터를 (0,0)으로 설정할 수 있다. 제1 양방향 움직임 정보 설정부(2630)는 현재 블록의 예측 방향을 양방향 예측으로 설정할 수 있다. 또한 이 때, 제1 양방향 움직임 정보 설정부(2630)는 L0 참조 픽쳐 인덱스와 L1 참조 픽쳐 인덱스를 0으로 설정하고, L0 움직임 벡터와 L1 움직임 벡터를 (0,0)으로 설정할 수 있다. 제2 양방향 움직임 정보 설정부(2640)는 현재 블록의 예측 방향을 양방향 예측으로 설정할 수 있다. 또한 이 때, 제2 양방향 움직임 정보 설정부(2640)는 L0 참조 픽쳐 인덱스를 0으로 설정하고, L1 참조 픽쳐 인덱스를 1로 설정하고, L0 움직임 벡터와 L1 움직임 벡터를 (0,0)으로 설정할 수 있다.

상술한 도 7 내지 도 26의 실시예들은, 각각 개별적으로 적용될 수도 있으나, 각 블록의 부호화 모드에 따라 다양한 방법으로 조합되어 적용될 수도 있다. 이하, 후술되는 실시예들에서 부호화 모드가 머지 모드인 블록은 머지 블록이라 한다. 머지 블록이 아닌 블록에는, 예를 들어 부호화 모드가 AMVP 모드인 블록 등이 있을 수 있다. 또한, 후술되는 실시예들에서 현재 블록은 경우에 따라 머지 블록 또는 머지 블록이 아닌 블록 중 하나에 해당될 수 있다.
일 실시예로, 머지 블록에는 도 15의 실시예에 따른 머지 후보 결정 방법이 적용되고, 머지 블록이 아닌 블록에는 도 7 또는 도 8의 실시예에 따른 인터 예측 방법이 적용될 수 있다. 이 때, 머지 블록에서는, 참조 블록의 L0 움직임 정보(L0 참조 픽쳐 번호, L0 움직임 벡터)와 L1 움직임 정보(L1 참조 픽쳐 번호, L1 움직임 벡터)가 동일한 경우, 상기 참조 블록의 L0 움직임 정보만이 현재 블록의 머지 후보로 사용되거나 등록될 수 있다. 또한, 머지 블록이 아닌 블록에서는, L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 현재 블록에 대해 단방향 움직임 보상 과정이 수행될 수 있다.
다른 실시예로, 머지 블록에는 도 19의 실시예에 따른 시간적 움직임 정보 도출 방법이 적용되고, 머지 블록이 아닌 블록에는 도 7 또는 도 8의 실시예에 따른 인터 예측 방법이 적용될 수 있다. 이 때, 머지 블록에서는, L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, L0 시간적 움직임 정보만이 현재 블록에 대한 시간적 움직임 정보로 사용될 수 있다. 또한, 머지 블록이 아닌 블록에서는, L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 현재 블록에 대해 단방향 움직임 보상 과정이 수행될 수 있다.
또 다른 실시예로, 머지 블록에는 도 19의 실시예에 따른 시간적 움직임 정보 도출 방법 및 도 23의 실시예에 따른 움직임 정보 결정 방법이 적용되고, 머지 블록이 아닌 블록에는 도 10의 실시예에 따른 인터 예측 방법이 적용될 수 있다. 이 때, 머지 블록에서는, L0 참조 픽쳐 번호와 L1 참조 픽쳐 번호가 동일하고 L0 움직임 벡터와 L1 움직임 벡터가 동일한 경우, L0 시간적 움직임 정보만이 현재 블록에 대한 시간적 움직임 정보로 사용될 수 있다. 또한, 머지 블록에서, 머지 후보 도출에 사용되는 모든 블록(복원된 주변 블록 및/또는 콜 블록)이 움직임 정보를 가지고 있지 않은 경우, 도 23에서 상술한 소정의 방법(예를 들어, (0,0)의 움직임 벡터를 사용)에 의해 현재 블록의 움직임 정보가 결정될 수 있다. 또한, 머지 블록이 아닌 블록에서는, L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, L0 움직임 정보만이 현재 블록의 움직임 정보로 사용될 수 있다.
또 다른 실시예로, 머지 블록에는 도 17의 실시예에 따른 시간적 움직임 정보 도출 방법이 적용되고, 머지 블록이 아닌 블록에는 도 10의 실시예에 따른 인터 예측 방법이 적용될 수 있다. 이 때, 머지 블록에는 도 17에서 상술된, 리스트 정보에 따라 현재 블록에 대한 시간적 움직임 정보를 도출하는 시간적 움직임 정보 도출 방법이 적용될 수 있다. 여기서, 상기 리스트 정보는 콜 블록에 L0 움직임 정보 및/또는 L1 움직임 정보가 존재하는지 여부를 나타내는 정보를 의미할 수 있다. 또한, 머지 블록이 아닌 블록에서는, L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, L0 움직임 정보만이 현재 블록의 움직임 정보로 사용될 수 있다.
또 다른 실시예로, 머지 블록에는 도 21의 실시예에 따른 시간적 움직임 정보 도출 방법 및 도 23의 실시예에 따른 움직임 정보 결정 방법이 적용되고, 머지 블록이 아닌 블록에는 도 7 또는 도 8의 실시예에 따른 인터 예측 방법이 적용될 수 있다. 이 때, 머지 블록에서는, 현재 블록이 순방향 B 픽쳐 및/또는 순방향 B 슬라이스 내의 블록일 때, 현재 도출될 시간적 움직임 정보가 L0 시간적 움직임 정보인지 또는 L1 시간적 움직임 정보인지 여부에 따라, 시간적 움직임 정보 도출에 사용되는 콜 픽쳐가 결정될 수 있다. 또한, 머지 블록에서, 머지 후보 도출에 사용되는 모든 블록(복원된 주변 블록 및/또는 콜 블록)이 움직임 정보를 가지고 있지 않은 경우, 도 23에서 상술한 소정의 방법(예를 들어, (0,0)의 움직임 벡터를 사용)에 의해 현재 블록의 움직임 정보가 결정될 수 있다. 또한, 머지 블록이 아닌 블록에서는, L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, 현재 블록에 대해 단방향 움직임 보상 과정이 수행될 수 있다.
또 다른 실시예로, 머지 블록에는 도 21의 실시예에 따른 시간적 움직임 정보 도출 방법 및 도 25의 실시예에 따른 움직임 정보 결정 방법이 적용되고, 머지 블록이 아닌 블록에는 도 10의 실시예에 따른 인터 예측 방법이 적용될 수 있다. 이 때, 머지 블록에서는, 현재 블록이 순방향 B 픽쳐 및/또는 순방향 B 슬라이스 내의 블록일 때, 현재 도출될 시간적 움직임 정보가 L0 시간적 움직임 정보인지 또는 L1 시간적 움직임 정보인지 여부에 따라, 시간적 움직임 정보 도출에 사용되는 콜 픽쳐가 결정될 수 있다. 또한, 머지 블록에서, 머지 후보 도출에 사용되는 모든 블록(복원된 주변 블록 및/또는 콜 블록)이 움직임 정보를 가지고 있지 않은 경우, 도 25에서 상술한 소정의 방법(예를 들어, 순방향 B 픽쳐 및/또는 순방향 B 슬라이스에서 (0,0)의 움직임 벡터를 사용)에 의해 현재 블록의 움직임 정보가 결정될 수 있다. 또한, 머지 블록이 아닌 블록에서는, L0 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)와 L1 움직임 정보(참조 픽쳐 번호 및 움직임 벡터)가 동일한 경우, L0 움직임 정보만이 현재 블록의 움직임 정보로 사용될 수 있다.
도 7 내지 도 26의 실시예들의 조합은 상술한 실시예에 한정되는 것이 아니며, 구현 및/또는 필요에 따라 상술한 실시예들 뿐만 아니라 다양한 형태의 조합이 제공될 수 있다.

상술한 실시예들에 의하면, 움직임 보상 과정에서의 계산 복잡도가 감소될 수 있으며, 부호화/복호화 효율이 향상될 수 있다.

상술한 실시예들에서, 방법들은 일련의 단계 또는 블록으로서 순서도를 기초로 설명되고 있으나, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당해 기술 분야에서 통상의 지식을 가진 자라면 순서도에 나타난 단계들이 배타적이지 않고, 다른 단계가 포함되거나, 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.
상술한 실시예는 다양한 양태의 예시들을 포함한다. 다양한 양태들을 나타내기 위한 모든 가능한 조합을 기술할 수는 없지만, 해당 기술 분야의 통상의 지식을 가진 자는 다른 조합이 가능함을 인식할 수 있을 것이다. 따라서, 본 발명은 이하의 특허청구범위 내에 속하는 모든 다른 교체, 수정 및 변경을 포함한다고 할 것이다.

Claims (17)

  1. 현재 블록의 움직임 정보를 도출하는 단계; 및
    상기 도출된 움직임 정보에 기반하여 상기 현재 블록에 대한 예측 블록을 생성하는 단계를 포함하되,
    상기 도출된 움직임 정보는 L0 움직임 정보 및 L1 움직임 정보를 모두 포함하고,
    상기 예측 블록 생성 단계에서는,
    단예측(uni-prediction) 및 쌍예측(bi-prediction) 중에서 하나를 선택적으로 수행하고,
    상기 단예측은 상기 L0 움직임 정보를 기반으로 수행되는 예측이고, 상기 쌍예측은 상기 L0 움직임 정보 및 상기 L1 움직임 정보를 기반으로 수행되는 예측인 것을 특징으로 하는 인터 예측 방법.
  2. 제 1항에 있어서,
    상기 L0 움직임 정보는 L0 움직임 벡터 및 L0 참조 픽쳐 번호를 포함하고, 상기 L0 참조 픽쳐 번호는 POC(Picture Order Count) 순서에 따라 L0 참조 픽쳐에 할당된 번호이고, 상기 L1 움직임 정보는 L1 움직임 벡터 및 L1 참조 픽쳐 번호를 포함하고, 상기 L1 참조 픽쳐 번호는 POC 순서에 따라 L1 참조 픽쳐에 할당된 번호이고,
    상기 예측 블록 생성 단계에서는,
    상기 L0 움직임 정보와 상기 L1 움직임 정보가 동일한지 여부에 따라, 상기 단예측 및 상기 쌍예측 중에서 하나를 선택적으로 수행하고,
    상기 L0 움직임 벡터 및 상기 L1 움직임 벡터가 동일하고 상기 L0 참조 픽쳐 번호 및 상기 L1 참조 픽쳐 번호가 동일한 경우에, 상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 것으로 판단하는 것을 특징으로 하는 인터 예측 방법.
  3. 제 2항에 있어서,
    상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 경우,
    상기 예측 블록 생성 단계에서는,
    상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 상기 예측 블록을 생성하는 것을 특징으로 하는 인터 예측 방법.
  4. 제 2항에 있어서,
    상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일하지 않은 경우,
    상기 예측 블록 생성 단계는,
    상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성하는 단계;
    상기 L1 움직임 정보에 기반하여 상기 현재 블록에 대해 L1 움직임 보상을 수행함으로써 L1 움직임 보상된 블록을 생성하는 단계; 및
    상기 L0 움직임 보상된 블록 및 상기 L1 움직임 보상된 블록에 대해 가중치 평균을 수행함으로써 상기 예측 블록을 생성하는 단계를 더 포함하는 것을 특징으로 하는 인터 예측 방법.
  5. 제 2항에 있어서,
    상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 경우,
    상기 예측 블록 생성 단계는,
    상기 L0 참조 픽쳐에 기반하여, 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성하는 단계;
    L1 참조 픽쳐 리스트를 구성하는 참조 픽쳐 중에서 상기 L1 참조 픽쳐와 동일하지 않은 참조 픽쳐에 기반하여, 상기 현재 블록에 대해 L1 움직임 보상을 수행함으로써 L1 움직임 보상된 블록을 생성하는 단계; 및
    상기 L0 움직임 보상된 블록 및 상기 L1 움직임 보상된 블록에 대해 가중치 평균을 수행함으로써 상기 예측 블록을 생성하는 단계를 더 포함하는 것을 특징으로 하는 인터 예측 방법.
  6. 제 5항에 있어서,
    상기 L1 참조 픽쳐 리스트에 포함된 참조 픽쳐의 개수가 1개 이하인 경우,
    상기 예측 블록 생성 단계에서는,
    상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 상기 예측 블록을 생성하는 것을 특징으로 하는 인터 예측 방법.
  7. 제 1항에 있어서,
    상기 현재 블록에 대해 디폴트(default) 가중치 예측이 적용되는지 또는 넌-디폴트(non-default) 가중치 예측이 적용되는지 여부를 판단하는 단계를 더 포함하고,
    상기 예측 블록 생성 단계에서는,
    상기 판단 결과에 따라 상기 디폴트 가중치 예측 및 상기 넌-디폴트 가중치 예측 중에서 하나를 선택적으로 수행하는 것을 특징으로 하는 인터 예측 방법.
  8. 제 7항에 있어서,
    상기 현재 블록에 대해 상기 디폴트 가중치 예측이 적용되는지 또는 상기 넌-디폴트 가중치 예측이 적용되는지 여부는 가중치 예측 인덱스에 의해 지시되는 것을 특징으로 하는 인터 예측 방법.
  9. 제 1항에 있어서,
    상기 예측 블록 생성 단계에서는,
    상기 현재 블록의 크기가 소정의 크기보다 작은지 여부에 따라, 상기 단예측 및 상기 쌍예측 중에서 하나를 선택적으로 수행하는 것을 특징으로 하는 인터 예측 방법.
  10. 제 9항에 있어서,
    상기 현재 블록의 크기가 8x8보다 작은 경우,
    상기 L0 움직임 정보 및 상기 L1 움직임 정보 중에서 상기 L0 움직임 정보만을 상기 현재 블록의 움직임 정보로 설정하는 단계를 더 포함하고,
    상기 예측 블록 생성 단계에서는,
    상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 상기 예측 블록을 생성하는 것을 특징으로 하는 인터 예측 방법.
  11. 현재 블록의 움직임 정보를 도출하는 움직임 예측부(motion estimator); 및
    상기 도출된 움직임 정보에 기반하여 상기 현재 블록에 대한 예측 블록을 생성하는 움직임 보상부(motion compensator)를 포함하되,
    상기 도출된 움직임 정보는 L0 움직임 정보 및 L1 움직임 정보를 모두 포함하고,
    상기 움직임 보상부는 단예측(uni-prediction) 및 쌍예측(bi-prediction) 중에서 하나를 선택적으로 수행하고,
    상기 단예측은 상기 L0 움직임 정보를 기반으로 수행되는 예측이고, 상기 쌍예측은 상기 L0 움직임 정보 및 상기 L1 움직임 정보를 기반으로 수행되는 예측인 것을 특징으로 하는 인터 예측 장치.
  12. 현재 블록의 움직임 정보를 도출하는 단계;
    상기 도출된 움직임 정보에 기반하여 상기 현재 블록에 대한 예측 블록을 생성하는 단계; 및
    상기 생성된 예측 블록을 기반으로 상기 현재 블록에 대한 복원 블록을 생성하는 단계를 포함하되,
    상기 도출된 움직임 정보는 L0 움직임 정보 및 L1 움직임 정보를 모두 포함하고,
    상기 예측 블록 생성 단계에서는,
    단예측(uni-prediction) 및 쌍예측(bi-prediction) 중에서 하나를 선택적으로 수행하고,
    상기 단예측은 상기 L0 움직임 정보를 기반으로 수행되는 예측이고, 상기 쌍예측은 상기 L0 움직임 정보 및 상기 L1 움직임 정보를 기반으로 수행되는 예측인 것을 특징으로 하는 영상 복호화 방법.
  13. 제 12항에 있어서,
    상기 L0 움직임 정보는 L0 움직임 벡터 및 L0 참조 픽쳐 번호를 포함하고, 상기 L0 참조 픽쳐 번호는 POC(Picture Order Count) 순서에 따라 L0 참조 픽쳐에 할당된 번호이고, 상기 L1 움직임 정보는 L1 움직임 벡터 및 L1 참조 픽쳐 번호를 포함하고, 상기 L1 참조 픽쳐 번호는 POC 순서에 따라 L1 참조 픽쳐에 할당된 번호이고,
    상기 예측 블록 생성 단계에서는,
    상기 L0 움직임 정보와 상기 L1 움직임 정보가 동일한지 여부에 따라, 상기 단예측 및 상기 쌍예측 중에서 하나를 선택적으로 수행하고,
    상기 L0 움직임 벡터 및 상기 L1 움직임 벡터가 동일하고 상기 L0 참조 픽쳐 번호 및 상기 L1 참조 픽쳐 번호가 동일한 경우에, 상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 것으로 판단하는 것을 특징으로 하는 영상 복호화 방법.
  14. 제 13항에 있어서,
    상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일한 경우,
    상기 예측 블록 생성 단계에서는,
    상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 상기 예측 블록을 생성하는 것을 특징으로 하는 영상 복호화 방법.
  15. 제 13항에 있어서,
    상기 L0 움직임 정보 및 상기 L1 움직임 정보가 동일하지 않은 경우,
    상기 예측 블록 생성 단계는,
    상기 L0 움직임 정보에 기반하여 상기 현재 블록에 대해 L0 움직임 보상을 수행함으로써 L0 움직임 보상된 블록을 생성하는 단계;
    상기 L1 움직임 정보에 기반하여 상기 현재 블록에 대해 L1 움직임 보상을 수행함으로써 L1 움직임 보상된 블록을 생성하는 단계; 및
    상기 L0 움직임 보상된 블록 및 상기 L1 움직임 보상된 블록에 대해 가중치 평균을 수행함으로써 상기 예측 블록을 생성하는 단계를 더 포함하는 것을 특징으로 하는 영상 복호화 방법.
  16. 제 12항에 있어서,
    상기 현재 블록에 대해 디폴트(default) 가중치 예측이 적용되는지 또는 넌-디폴트(non-default) 가중치 예측이 적용되는지 여부를 판단하는 단계를 더 포함하고,
    상기 예측 블록 생성 단계에서는,
    상기 판단 결과에 따라 상기 디폴트 가중치 예측 및 상기 넌-디폴트 가중치 예측 중에서 하나를 선택적으로 수행하는 것을 특징으로 하는 영상 복호화 방법.
  17. 제 16항에 있어서,
    상기 현재 블록에 대해 상기 디폴트 가중치 예측이 적용되는지 또는 상기 넌-디폴트 가중치 예측이 적용되는지 여부는 가중치 예측 인덱스에 의해 지시되는 것을 특징으로 하는 영상 복호화 방법.
PCT/KR2012/004882 2011-06-21 2012-06-20 인터 예측 방법 및 그 장치 WO2012177052A2 (ko)

Priority Applications (8)

Application Number Priority Date Filing Date Title
US14/127,617 US9532042B2 (en) 2011-06-21 2012-06-20 Inter-prediction method and apparatus for same
US15/337,309 US9854248B2 (en) 2011-06-21 2016-10-28 Inter-prediction method and apparatus for same
US15/337,426 US10917645B2 (en) 2011-06-21 2016-10-28 Inter-prediction method and apparatus for same
US15/810,867 US10085031B2 (en) 2011-06-21 2017-11-13 Inter-prediction method and apparatus for same
US16/107,208 US10536704B2 (en) 2011-06-21 2018-08-21 Inter-prediction method and apparatus for same
US16/696,319 US10986348B2 (en) 2011-06-21 2019-11-26 Inter-prediction method and apparatus for same
US17/198,720 US11412231B2 (en) 2011-06-21 2021-03-11 Inter-prediction method and apparatus for same
US17/857,765 US11706423B2 (en) 2011-06-21 2022-07-05 Inter-prediction method and apparatus for same

Applications Claiming Priority (10)

Application Number Priority Date Filing Date Title
KR10-2011-0060285 2011-06-21
KR20110060285 2011-06-21
KR20110065714 2011-07-01
KR10-2011-0065714 2011-07-01
KR10-2011-0066173 2011-07-04
KR20110066173 2011-07-04
KR1020120005948A KR20120140592A (ko) 2011-06-21 2012-01-18 움직임 보상의 계산 복잡도 감소 및 부호화 효율을 증가시키는 방법 및 장치
KR10-2012-0005948 2012-01-18
KR1020120066191A KR102086029B1 (ko) 2011-06-21 2012-06-20 인터 예측 방법 및 그 장치
KR10-2012-0066191 2012-06-20

Related Child Applications (3)

Application Number Title Priority Date Filing Date
US14/127,617 A-371-Of-International US9532042B2 (en) 2011-06-21 2012-06-20 Inter-prediction method and apparatus for same
US15/337,426 Continuation US10917645B2 (en) 2011-06-21 2016-10-28 Inter-prediction method and apparatus for same
US15/337,309 Continuation US9854248B2 (en) 2011-06-21 2016-10-28 Inter-prediction method and apparatus for same

Publications (2)

Publication Number Publication Date
WO2012177052A2 true WO2012177052A2 (ko) 2012-12-27
WO2012177052A3 WO2012177052A3 (ko) 2013-02-28

Family

ID=47423084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2012/004882 WO2012177052A2 (ko) 2011-06-21 2012-06-20 인터 예측 방법 및 그 장치

Country Status (3)

Country Link
US (2) US11706423B2 (ko)
KR (1) KR102399001B1 (ko)
WO (1) WO2012177052A2 (ko)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016178590A1 (en) 2015-05-06 2016-11-10 Omnidea, Lda. Electrochemical reduction of carbon dioxide in aqueous ionic liquid containing electrolytes
WO2019009546A1 (ko) * 2017-07-04 2019-01-10 엘지전자 주식회사 인터 예측 기반의 영상 처리 방법 및 이를 위한 장치
CN109479141A (zh) * 2016-07-12 2019-03-15 韩国电子通信研究院 图像编码/解码方法和用于所述方法的记录介质
WO2019066202A1 (ko) * 2017-09-26 2019-04-04 엘지전자(주) 영상 처리 방법 및 이를 위한 장치

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102398997B1 (ko) * 2011-06-21 2022-05-17 한국전자통신연구원 인터 예측 방법 및 그 장치

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050118965A (ko) * 2004-06-15 2005-12-20 삼성전자주식회사 H.264 복호기에서의 움직임 보상 방법 및 장치
KR20090129412A (ko) * 2007-03-02 2009-12-16 엘지전자 주식회사 비디오 신호 디코딩/인코딩 방법 및 장치
JP2010268199A (ja) * 2009-05-14 2010-11-25 Renesas Electronics Corp 動画像符号化方法、動画像符号化装置、及び、画像符号化プログラム

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7154952B2 (en) 2002-07-19 2006-12-26 Microsoft Corporation Timestamp-independent motion vector prediction for predictive (P) and bidirectionally predictive (B) pictures
KR100506864B1 (ko) 2002-10-04 2005-08-05 엘지전자 주식회사 모션벡터 결정방법
BR0307197A (pt) 2002-11-25 2005-08-23 Matsushita Electric Ind Co Ltd Método de compensação de movimento, método de codificação de imagem e método de decodificação de imagem
US7499493B2 (en) 2003-06-20 2009-03-03 Lsi Corporation Dual block motion vector storage in compressed form
US7961963B2 (en) 2005-03-18 2011-06-14 Sharp Laboratories Of America, Inc. Methods and systems for extended spatial scalability with picture-level adaptation
US8457203B2 (en) 2005-05-26 2013-06-04 Ntt Docomo, Inc. Method and apparatus for coding motion and prediction weighting parameters
JP5165593B2 (ja) 2006-02-02 2013-03-21 トムソン ライセンシング 組合せ参照双方向予測を用いて動き推定を行う方法および装置
EP4224853A1 (en) 2006-11-08 2023-08-09 InterDigital VC Holdings, Inc. Methods and apparatus for in-loop de-artifact filtering
EP2208350A2 (en) 2007-10-12 2010-07-21 Thomson Licensing Methods and apparatus for video encoding and decoding geometrically partitioned bi-predictive mode partitions
BRPI0910477A2 (pt) 2008-04-11 2015-09-29 Thomson Licensing método e equipamento para predição de equiparação de gabarito (tmp) na codificação e decodificação de vídeo
US9161057B2 (en) 2009-07-09 2015-10-13 Qualcomm Incorporated Non-zero rounding and prediction mode selection techniques in video encoding
WO2011075072A1 (en) 2009-12-17 2011-06-23 Telefonaktiebolaget Lm Ericsson (Publ) Method and arrangement for video coding
US9398308B2 (en) 2010-07-28 2016-07-19 Qualcomm Incorporated Coding motion prediction direction in video coding
US9137544B2 (en) 2010-11-29 2015-09-15 Mediatek Inc. Method and apparatus for derivation of mv/mvp candidate for inter/skip/merge modes
US8755437B2 (en) 2011-03-17 2014-06-17 Mediatek Inc. Method and apparatus for derivation of spatial motion vector candidate and motion vector prediction candidate
US9008176B2 (en) 2011-01-22 2015-04-14 Qualcomm Incorporated Combined reference picture list construction for video coding
JP5801908B2 (ja) 2011-03-11 2015-10-28 サムスン エレクトロニクス カンパニー リミテッド 映像の符号化方法及びその装置、その復号化方法及びその装置
WO2012128540A2 (ko) 2011-03-21 2012-09-27 엘지전자 주식회사 움직임 벡터 예측자 선택 방법 및 이를 이용하는 장치
US9485517B2 (en) 2011-04-20 2016-11-01 Qualcomm Incorporated Motion vector prediction with motion vectors from multiple views in multi-view video coding
SG194746A1 (en) 2011-05-31 2013-12-30 Kaba Gmbh Image encoding method, image encoding device, image decoding method, image decoding device, and image encoding/decoding device
US9282338B2 (en) 2011-06-20 2016-03-08 Qualcomm Incorporated Unified merge mode and adaptive motion vector prediction mode candidates selection
CN106851269B (zh) 2011-06-30 2019-11-15 太阳专利托管公司 图像解码方法及装置、图像编码方法及装置、编解码装置
WO2013009104A2 (ko) 2011-07-12 2013-01-17 한국전자통신연구원 인터 예측 방법 및 그 장치
US9357195B2 (en) 2012-08-16 2016-05-31 Qualcomm Incorporated Inter-view predicted motion vector for 3D video

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050118965A (ko) * 2004-06-15 2005-12-20 삼성전자주식회사 H.264 복호기에서의 움직임 보상 방법 및 장치
KR20090129412A (ko) * 2007-03-02 2009-12-16 엘지전자 주식회사 비디오 신호 디코딩/인코딩 방법 및 장치
JP2010268199A (ja) * 2009-05-14 2010-11-25 Renesas Electronics Corp 動画像符号化方法、動画像符号化装置、及び、画像符号化プログラム

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016178590A1 (en) 2015-05-06 2016-11-10 Omnidea, Lda. Electrochemical reduction of carbon dioxide in aqueous ionic liquid containing electrolytes
CN109479141A (zh) * 2016-07-12 2019-03-15 韩国电子通信研究院 图像编码/解码方法和用于所述方法的记录介质
CN109479141B (zh) * 2016-07-12 2023-07-14 韩国电子通信研究院 图像编码/解码方法和用于所述方法的记录介质
WO2019009546A1 (ko) * 2017-07-04 2019-01-10 엘지전자 주식회사 인터 예측 기반의 영상 처리 방법 및 이를 위한 장치
WO2019066202A1 (ko) * 2017-09-26 2019-04-04 엘지전자(주) 영상 처리 방법 및 이를 위한 장치

Also Published As

Publication number Publication date
WO2012177052A3 (ko) 2013-02-28
US11706423B2 (en) 2023-07-18
KR102399001B1 (ko) 2022-05-17
US20230379477A1 (en) 2023-11-23
US20220345719A1 (en) 2022-10-27
KR20200026860A (ko) 2020-03-11

Similar Documents

Publication Publication Date Title
KR102157121B1 (ko) 인터 예측 방법 및 그 장치
KR102315404B1 (ko) 영상 부호화/복호화 방법 및 장치
KR102399001B1 (ko) 인터 예측 방법 및 그 장치
KR102515824B1 (ko) 인터 예측 방법 및 그 장치
WO2013009104A2 (ko) 인터 예측 방법 및 그 장치
KR102398997B1 (ko) 인터 예측 방법 및 그 장치

Legal Events

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

Ref document number: 12802067

Country of ref document: EP

Kind code of ref document: A2

WWE Wipo information: entry into national phase

Ref document number: 14127617

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12802067

Country of ref document: EP

Kind code of ref document: A2