Patent ID: 7859559

Claim:
An optical scanning apparatus for forming an electrostatic latent image on an image carrier by scanning a light output from a light source on the image carrier, comprising: a clock generation unit which generates a clock signal; an image data holding unit which holds image data of at least one pixel; an image read-out unit which reads out the image data of at least one pixel from said image data holding unit in synchronism with the clock signal; a converting unit which converts a density of each pixel into digital data of a plurality of bits on a basis of the image data of at least one pixel read out by said image read-out unit; a shift unit having a plurality of storage areas each storing a bit of the digital data converted by said converting unit, and plurality of storage areas collectively storing digital data corresponding to at least two pixels, wherein the shift unit reads out the digital data corresponding to one pixel from the storage areas in synchronism with the clock signal and in sequence of a storing order of the digital data, wherein the shift unit shifts succeeding digital data into the storage area from which the digital data corresponding to the one pixel has been read out in response to reading out the digital data corresponding to the one pixel, and wherein the succeeding digital data succeeds the digital data corresponding to the one pixel in the storing order of the digital data; a data inserting and deleting unit which inserts data of at least one bit into one or more of the storage areas of said shift unit or deletes data of at least one bit from one or more of the storage areas of said shift unit according to a scanning position of the light output from the light source, wherein said data inserting and deleting unit comprises: a virtual buffer which virtually indicates a use state equal to a use state of each of the storage areas of said shift unit, and a detection unit which detects the use state of each of a plurality of virtual storage areas of said virtual buffer, wherein the virtual storage areas respectively correspond to the storage areas of said shift unit; a drive unit which receives the digital data of a pixel output from said shift unit and drives the light source on the basis of the received digital data; and a reading control unit which controls an amount of image data read-out from said image data holding unit by said image read-out unit in accordance with a detection result of the detection unit, wherein the virtual buffer is not connected to said shift unit and, consequently, does not indicate the use state of each of the storage areas of said shift unit based upon information received from the shift unit.