Method of determining motion vectors for bi-predictive image block
In one embodiment, the method includes determining a motion vector of a current image block equal to a motion vector of an image block based on a reference picture index indicating a reference picture for the image block. For example, the motion vector of the current image block may be equal to the motion vector of the image block if the reference picture index indicates a long-term reference picture for the image block.
1. A method for a moving picture coding system to determine a current image block in a current picture by using a first reference picture and a second reference picture, comprising:
obtaining, by the moving picture coding system, a motion vector of a co-located image block;
determining, by the moving picture coding system, motion vectors of the current image block based on a type of the first reference picture and the motion vector of the co-located image block,
the type being one of a long-term reference picture and a short-term reference picture,
the type characterizing a temporal distance of the first reference picture with respect to the current image block,
the determining step determining the motion vectors of the current image block, including at least one motion vector, obtained by scaling the motion vector of the co-located image block in a co-located picture, if the type of the first reference picture is the short-term reference picture and
the determining step determining the motion vectors of the current image block, including at least one motion vector, which equal to the motion vector of the co-located image block in the co-located picture, if the type of the first reference picture is the long-term reference picture;
obtaining a motion compensated block of the current image block by using the motion vectors of the current image block, the first reference picture and the second reference picture; and
determining the current image block by using the motion compensated block.
2. The method of claim 1 , wherein the long-term reference picture is coded before the short-term reference picture.
3. A moving picture coding system to determine a current image block in a current picture by using a first reference picture and a second reference picture, comprising:
the moving picture coding system to obtain a motion vector of a co-located image block, determine motion vectors of the current image block based on a type of the first reference picture and the motion vector of the co-located image block, obtain a motion compensated block of the current image block by using the motion vectors of the current image block, the first reference picture and the second reference picture, determining the current image block by using the motion compensated block,
wherein the type being one of a long-term reference picture and a short-term reference picture,
wherein the type characterizing a temporal distance of the reference picture of the first reference picture with respect to the current image block,
wherein the moving picture coding system to determine the motion vectors of the current image block, including at least one motion vector, obtained by scaling the motion vector of the co-located image block in a co-located picture, if the type of the first reference picture is the short-term reference picture, determining the motion vectors of the current image block, including at least one motion vector, which equal to the motion vector of the co-located image block in the co-located picture, if the type of the first reference picture is the long-term reference picture.
4. The moving picture coding system of claim 3 , wherein the long-term reference picture is coded before the short-term reference picture.