In a decoding method of decoding encoded image data which has been
hierarchically encoded in advance, a size of an image to be outputted is
determined, and then the encoded image data is decoded up to a layer of
hierarchy which is at least one layer more than a minimum number of
layer/layers of hierarchy necessary to acquire an image of the determined
size.