A moving image encoding apparatus that, at the time a single frame of a multiview moving image comprising moving images of a plurality of different views is encoded, while performing prediction between the different views using reference view motion information that is motion information in a reference view image for a reference view that is different from an encoding target image and a depth map for object within the multiview moving image, performs encoding of an encoding target region that is one of regions obtained by dividing the encoding target image, the moving image encoding apparatus comprising:
- a corresponding region setting unit that sets a corresponding region on the depth map for the encoding target region;
- a region dividing unit that sets a prediction region that is one of regions obtained by dividing the encoding target region;
- a disparity vector generation unit that, for the prediction region, generates a disparity vector for the reference view using depth information for a region within the corresponding region that corresponds to the prediction region;
- a motion information generation unit that generates motion information in the prediction region from the reference view motion information based on the disparity vector for the reference view;
- and
- a prediction image generation unit that generates a prediction image for the prediction region using the motion information in the prediction region.