A non-transitory computer-readable storage medium storing instructions thereon that, when executed by a processor, cause the processor to:
- obtain a RAW moving image which has 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 which corresponds to a first color component of odd rows, a second pixel group which corresponds to the first color component of even rows, and a third pixel group which corresponds to a second color component different from the first color component;
- alternately array, in a time base direction, a first image which includes the first pixel group and a second image which includes the second pixel group;
- and
- perform inter-frame prediction coding compression on the first image, the second image, and a third image which includes the third pixel group.