Patent ID: 8355584

Claim:
An image processing apparatus to generate code data by connecting a plurality of first compressed codes output from one or more threads, the image processing apparatus comprising: a compressing unit to compress image data by using the threads corresponding to divided compression processes; an identification-information attaching unit to attach identification information to the first compressed codes a determining unit to determine whether a second compressed code arranged at an end of already generated code data and a first compressed code output from one of the threads is in a predetermined relation; a connecting unit to generate, if the second compressed code arranged at the end of the already generated code data and the first compressed code output from the thread is in the predetermined relation, code data by connecting the first compressed code to the end of the already generated code data, and to generate, if the second compressed code arranged at the end of the already generated code data and the first compressed code output from the thread is not in the predetermined relation, code data by connecting the first compressed code attached, by the identification-information attaching unit, with the identification information to the end of the already generated code data.