Apparatus and method for encoding motion information, and decoding apparatus and method
A method of decoding motion information includes: identifying a type of omission motion information not included in a bitstream from among a plurality of pieces of motion information used to decode a current block that is inter predicted; obtaining the omission motion information by using a predetermined method; and decoding the current block based on the plurality of pieces of motion information including the obtained omission motion information.
1. A method of decoding motion information, the method comprising:
when a current block is bi-predicted, obtaining, from a bitstream, information indicating whether motion information is omitted or not;
obtaining, from the bitstream, a motion vector difference for a list 0 ;
if the information indicates that the motion information is not omitted, obtaining, from the bitstream, a motion vector difference for a list 1 ;
if the information indicates that the motion information is omitted, determining the motion vector difference for the list 1 , that is not included in the bitstream, using a predetermined method; and
decoding the current block using the motion vector difference for the list 0 and the motion vector difference for the list 1 ,
wherein a picture is split into a plurality of largest coding units, and
a largest coding unit among the plurality of the largest coding units is hierarchically split into at least one coding unit including the current block.
2. A method of encoding motion information, the method comprising:
when it is determined to bi-predict a current block, determining whether to omit motion information; and
generating a bitstream including information indicating whether the motion information is omitted or not, and a motion vector difference for a list 0 ,
wherein if it is determined not to omit the motion information, a motion vector difference for a list 1 is included in the bitstream,
wherein if it is determined to omit the motion information, the motion vector difference for the list 0 is included in the bitstream, the motion vector difference for the list 1 that is not included in the bitstream, is determined using a predetermined method,
wherein the current block is encoded using the motion vector difference for the list 0 and the motion vector difference for the list 1 ,
wherein a picture is split into a plurality of largest coding units, and
wherein a largest coding unit among the plurality of the largest coding units is hierarchically split into at least one coding unit including the current block.
3. A non-transitory computer-readable recording medium having stored therein a bitstream, the bitstream comprising:
information indicating whether motion information is omitted or not, and a motion vector difference for a list 0 ,
wherein the information is comprised in the bitstream when a current block is bi-predicted,
wherein if the information is generated to indicate that the motion information is not omitted, a motion vector difference for a list 1 is included in the bitstream,
wherein if the information is generated to indicate that the motion information is omitted, the motion vector difference for the list 1 that is not included in the bitstream, is determined using a predetermined method,
wherein the current block is encoded using the motion vector difference for the list 0 and the motion vector difference for the list 1 ,
wherein a picture is split into a plurality of largest coding units, and
wherein a largest coding unit among the plurality of the largest coding units is hierarchically split into at least one coding unit including the current block.