Patent attributes
A moving picture coding apparatus (10) for performing inter-picture predictive coding on pictures constituting a moving picture is provided with a coding unit (103) for performing predictive error coding on image data; a decoding unit (105) for performing predictive error decoding on an output from the coding unit (103); a reference picture memory (117) for holding output data from the decoding unit (105); and a motion vector detection unit (108) for detecting forward and backward motion vectors on the basis of decoded image data stored in the memory (117). When coding a B picture, a picture that is timewise closest to the target picture is used as a candidate picture for forward reference, and an I or P picture that is timewise closest to the target picture is used as a candidate picture for backward reference. The moving picture coding apparatus (10) so constructed can improve coding efficiency of a B picture to be subjected to bidirectional predictive coding.