1. A moving picture coding apparatus for dividing a picture into basic blocks and generating a prediction image of a block to be predicted in a basic block by using adjacent pixels in reference pixel blocks adjacent to the block to be predicted as reference pixels to perform predictive coding of a moving picture, wherein when some of the reference pixels are not available, pixel values of the reference pixels that are not available are calculated based on pixels in the reference pixel blocks, and wherein the prediction image of the block to be predicted is generated by using the calculated pixel values instead of the reference pixels that are not available.