Patent ID: 7436539

Claim:
An image processing apparatus, comprising: an image correction unit configured to perform window processing which refers to a target pixel and pixels surrounding the target pixel so as to execute an image correction for image data obtained by a decoding process; a securing unit configured to secure a storage area to store image data of L=M+(N−1) lines, where M indicates a number of lines used for the window processing performed by said image correction unit and N indicates a number of lines obtained by each decoding process; a line processing unit configured to advance a target line one by one to a last line of the storage area and then to return the target line to a first line of the storage area, during execution of the image correction by said image correction unit using the image data stored in the storage area; an image decoding unit configured to execute the decoding process to obtain image data from the ((D×N+1) % L)-th line of the storage area if J+(M−1)/2>D×N, where D indicates a number of decoding processes, J indicates a number of lines for which the image correction has been executed, and % indicates a surplus calculation.