CPC H04N 19/513 (2014.11) [H04N 19/46 (2014.11); H04N 19/463 (2014.11); H04N 19/51 (2014.11); H04N 19/91 (2014.11); H04N 19/13 (2014.11); H04N 19/176 (2014.11); H04N 19/593 (2014.11)] | 2 Claims |
1. A video encoding method for subjecting a video image to motion compensated prediction coding, the method comprising:
acquiring one or more available blocks having motion vectors and a number of the one or more available blocks, from encoded blocks adjacent to a to-be-encoded block;
setting different indexes to the one or more available blocks acquired from the encoded blocks based on locations and a predetermined order of the one or more available blocks to the to-be-encoded block;
selecting one block from the one or more available blocks;
selecting one code table from a plurality of code tables based on the number of the one or more available blocks;
encoding an index that is set to the selected block using the selected code table when the number of the one or more available blocks is more than 1 and not encoding the index when the number of the one or more available blocks is 1;
generating a prediction image of the to-be-encoded block using a motion vector of the selected block;
deriving a prediction error being a difference between the prediction image and an input image;
deriving a transform coefficient by performing a transform process of the prediction error; and
encoding the transform coefficient.
|