Moving picture coding method and moving picture decoding method
A moving picture coding apparatus includes a counter unit which counts the number of pictures following an intra coded picture; and a motion estimation unit which compares respectively only reference pictures which are the intra coded picture or the following pictures, selected from among a reference picture Ref 1 , a reference picture Ref 2 and a reference picture Ref 3 stored in memories, with a picture signal, and determines the reference picture whose inter picture differential value is smallest.
1. A moving picture coding and decoding system which includes a moving picture coding apparatus which codes a moving picture and a moving picture decoding apparatus which decodes a coded picture,
wherein in said moving picture coding apparatus, a picture is coded by one of an intra picture coding unit and an inter picture coding unit, and
when a picture is coded by the inter picture coding unit, at least one of the following pictures is selected as a reference picture: i) an intra coded picture which is coded by the intra picture coding unit; ii) a picture located before the intra coded picture in display order; and iii) a picture located after the intra coded picture in display order,
said moving picture coding apparatus comprises:
a specifying unit operable to specify the intra coded picture as a specified picture which is used for restricting selection of the reference picture;
a deleting unit operable to delete a picture which has been coded before the specified picture and is stored in a memory, so as to prohibit the picture which has been coded before the specified picture from being selected as the reference picture; and
a coding unit operable to code information indicating that the intra coded picture is specified as the specified picture which is used for restricting selection of the reference picture,
wherein, in a case where the intra coded picture is specified as the specified picture in said specifying unit, for a picture to be coded by the inter picture coding unit after the specified picture, at least one of the following pictures is selected as the reference picture: the specified picture and a picture which is coded after the specified picture, while a picture which has been coded before the specified picture is prohibited from being selected as the reference picture, and
wherein in said moving picture decoding apparatus, a picture is decoded by one of an intra picture decoding unit and an inter picture decoding unit, and
when a picture is decoded by the inter picture decoding unit, at least one of the following pictures is selected as a reference picture: i) an intra decoded picture which is decoded by the intra picture decoding unit; ii) a picture located before the intra decoded picture in display order; and iii) a picture located after the intra decoded picture in display order,
said moving picture decoding apparatus comprises:
a decoding unit operable to decode a coded picture to obtain a decoded picture, and to decode information indicating that the intra decoded picture is specified as a specified picture which is used for restricting selection of the reference picture;
a specifying unit operable to specify the decoded picture as the specified picture based on the information; and
a deleting unit operable to delete a picture which has been decoded before the specified picture and is stored in a memory, so as to prohibit the picture which has been decoded before the specified picture from being selected as the reference picture,
wherein, in a case where the decoded picture is specified as the specified picture in said specifying unit, for a picture to be decoded by the inter picture decoding unit after the specified picture, at least one of the following pictures is selected as the reference picture: the specified picture and a picture which is decoded after the specified picture, while a picture which has been decoded before the specified picture is prohibited from being selected as the reference picture.