Method for storing motion information and method for inducing temporal motion vector predictor using same
A motion information storing method and a TMVP deriving method using the motion information storing method are provided. The motion information storing method includes a step of determining a representative block out of blocks of a motion data storage unit in a co-located picture with a current picture and a step of storing motion information of the representative block as motion information of the motion data storage unit, wherein the motion information of the representative block is used as motion information of the blocks included in the motion data storage unit.
1. A video decoding apparatus, comprising:
a prediction module configured to determine a positioning pixel for a temporal motion vector predictor (TMVP) of a current block in a current picture, to derive a co-located prediction block (colPb) in a reference picture based on the positioning pixel, to derive the temporal motion vector predictor (TMVP) of the current block in the current picture based on a motion vector of the co-located prediction block (colPb) in the reference picture, and to perform an inter prediction for the current block based on the temporal motion vector predictor (TMVP) derived based on the motion vector of the colPb in the reference picture; and
a memory configured to store the motion vector of the co-located prediction block (colPb) in the reference picture,
wherein the co-located prediction block (colPb) is a prediction block covering a modified location that is determined based on a location of the positioning pixel, and
wherein the positioning pixel is determined as a pixel at a right-bottom side among central four pixels located at the center of a co-located block in the reference picture, wherein the co-located block is a block having a same position and size as the current block and located in the reference picture.
2. The apparatus of claim 1 , wherein the modified location is specified by ((xPCtr>>4)<<4, (yCtr>>4)<<4)), wherein (xPCtr, yPCtr) is the location of the positioning pixel.
3. The apparatus of claim 1 , wherein the modified location is a location at a top left corner in a motion data storage unit area encompassing the positioning pixel.
4. The apparatus of claim 3 , wherein the motion vector of the co-located prediction block covering the modified location is used as a representative motion vector of prediction blocks in the motion data storage unit area.
5. The apparatus of claim 1 , wherein the co-located prediction block (colPb) is a located in a top-left corner of a 16×16 pixels block encompassing the positioning pixel.
6. The apparatus of claim 1 , wherein the location of the positioning pixel is specified by (xP+(nPSW>>1), yP+(nPSH>>1)), wherein (xP, yP) is a top-left-most sample position of the current block, nPSW and nPSH are width and height of the current block respectively.
7. The apparatus of claim 6 , wherein the pixel at the right-bottom side among the central four pixels located at the center of the co-located block is determined as the positioning pixel when a bottom of the co-located block is a boundary of a largest coding unit to which the co-located block belongs.
8. The apparatus of claim 6 , wherein the pixel at the right-bottom side among the central four pixels located at the center of the co-located block is determined as the positioning pixel when a pixel adjacent to a right-bottom corner of the co-located block is out of a boundary of a largest coding unit to which the co-located block belongs.
9. A video encoding apparatus, comprising:
a prediction module configured to determine a positioning pixel for a temporal motion vector predictor (TMVP) of a current block in a current picture, to derive a co-located prediction block (colPb) in a reference picture based on the positioning pixel, to derive the temporal motion vector predictor (TMVP) of the current block in the current picture based on a motion vector of the co-located prediction block (colPb) in the reference picture, and to perform an inter prediction for the current block based on the temporal motion vector predictor (TMVP) derived based on the motion vector of the colPb in the reference picture; and
a memory configured to store the motion vector of the co-located prediction block (colPb) in the reference picture,
wherein the co-located prediction block (colPb) is a prediction block covering a modified location that is determined based on a location of the positioning pixel, and
wherein the positioning pixel is determined as a pixel at a right-bottom side among central four pixels located at the center of a co-located block in the reference picture, wherein the co-located block is a block having a same position and size as the current block and located in the reference picture.
10. The apparatus of claim 9 , wherein the modified location is specified by ((xPCtr>>4)<<4, (yCtr>>4)<<4)), wherein (xPCtr, yPCtr) is the location of the positioning pixel.
11. The apparatus of claim 9 , wherein the modified location is a location at a top left corner in a motion data storage unit area encompassing the positioning pixel.
12. The apparatus of claim 11 , wherein the motion vector of the co-located prediction block covering the modified location is used as a representative motion vector of prediction blocks in the motion data storage unit area.
13. The apparatus of claim 9 , wherein the co-located prediction block (colPb) is a located in a top-left corner of a 16×16 pixels block encompassing the positioning pixel.
14. The apparatus of claim 9 , wherein the location of the positioning pixel is specified by (xP+(nPSW>>1), yP+(nPSH>>1)), wherein (xP, yP) is a top-left-most sample position of the current block, nPSW and nPSH are width and height of the current block respectively.
15. The apparatus of claim 14 , wherein the pixel at the right-bottom side among the central four pixels located at the center of the co-located block is determined as the positioning pixel when a bottom of the co-located block is a boundary of a largest coding unit to which the co-located block belongs.
16. The apparatus of claim 14 , wherein the pixel at the right-bottom side among the central four pixels located at the center of the co-located block is determined as the positioning pixel when a pixel adjacent to a right-bottom corner of the co-located block is out of a boundary of a largest coding unit to which the co-located block belongs.
17. A non-transitory computer-readable storage medium storing encoded video data comprising information on instructions, when executed, causing a video decoding apparatus to perform operations comprising: determining a positioning pixel for a temporal motion vector predictor (TMVP) of a current block in a current picture; deriving a co-located prediction block (colPb) in a reference picture based on the positioning pixel; deriving the temporal motion vector predictor (TMVP) of the current block in the current picture based on a motion vector of the co-located prediction block (colPb) in the reference picture; and performing an inter prediction for the current block based on the temporal motion vector predictor (TMVP) derived based on the motion vector of the colPb in the reference picture, wherein the co-located prediction block (colPb) is a prediction block covering a modified location that is determined based on a location of the positioning pixel, and wherein the positioning pixel is determined as a pixel at a right-bottom side among central four pixels located at the center of a co-located block in the reference picture, wherein the co-located block is a block having a same position and size as the current block and located in the reference picture.