1. A moving image compression device, comprising a processor and a memory, the processor being configured to: obtain a RAW moving image having plural frames associated in an order of imaging, the frames having pixels of three different color components which are disposed periodically according to a color array with two rows and two columns; separate, in a target frame, a first pixel group corresponding to a first color component of odd rows, a second pixel group corresponding to the first color component of even rows, and a third pixel group corresponding to a second color component different from the first color component; alternately array, in a time base direction, a first image including the first pixel group and a second image including the second pixel group; and perform inter-frame prediction coding compression on the first image, the second image, and a third image including the third pixel group.