Providing a shuffling device that can be run substantially uniformly macro block shuffling for an image size of any problems], to reduce the correlation between the macroblock. A pack generator to the screen a plurality of macroblocks constitute a An image data is arranged and rearranged in order to extract the macroblock, to generate a plurality of packs, from each of a plurality of packs, one wherein the slice generator for extracting macro blocks in the order of each, each having a plurality of macroblocks to generate a predetermined number of slices, pack generator, packs the total number of macroblocks contained in the image data by dividing the number of, a predetermined number of the quotient, is extracted from different packs, a plurality of macroblocks included in each slice, the slice generator, macro block shuffling apparatus. [Selection] Figure Figure 1
展开▼