JP6278245B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP6278245B2
JP6278245B2 JP2015129229A JP2015129229A JP6278245B2 JP 6278245 B2 JP6278245 B2 JP 6278245B2 JP 2015129229 A JP2015129229 A JP 2015129229A JP 2015129229 A JP2015129229 A JP 2015129229A JP 6278245 B2 JP6278245 B2 JP 6278245B2
Authority
JP
Japan
Prior art keywords
data
image processing
compressed subband
subband data
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2015129229A
Other languages
Japanese (ja)
Other versions
JP2017017397A (en
Inventor
田上 裕也
裕也 田上
宏憲 林
宏憲 林
邦彦 島本
邦彦 島本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2015129229A priority Critical patent/JP6278245B2/en
Publication of JP2017017397A publication Critical patent/JP2017017397A/en
Application granted granted Critical
Publication of JP6278245B2 publication Critical patent/JP6278245B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storing Facsimile Image Data (AREA)

Description

本発明は、画像処理装置に関するものである。   The present invention relates to an image processing apparatus.

ある画像処理装置は、画像データをバッファーメモリーに書き込み、その画像データを読み出して後続の処理を行う場合、読出アドレスと書込アドレスとの間の差を所定値以上確保しつつ、画像データをバッファーメモリーに書き込んでいる(例えば特許文献1参照)。したがって、読出アドレスと書込アドレスとの間の差が所定値以上確保できない場合、画像データの書き込みが中断される。   When an image processing apparatus writes image data into a buffer memory, reads the image data, and performs subsequent processing, the image data is buffered while securing a difference between the read address and the write address to a predetermined value or more. It is written in the memory (see, for example, Patent Document 1). Therefore, when the difference between the read address and the write address cannot be secured above a predetermined value, the writing of the image data is interrupted.

別の画像処理装置は、画像読取により得られた画像データを所定の記憶領域に書き込み、その画像データを読み出して後続の処理を行う場合、書き込みのための領域が不足したとき、画像読取を中断している(例えば特許文献2参照)。   Another image processing apparatus writes image data obtained by image reading into a predetermined storage area, reads the image data and performs subsequent processing, and interrupts image reading when the area for writing is insufficient. (For example, refer to Patent Document 2).

特開平5−56278号公報JP-A-5-56278 特開2010−251917号公報JP 2010-251917 A

しかしながら、ファーストコピー(コピー開始時の最初のページのコピー処理)などのようにリアルタイムでの画像処理が求められる場合、上述のように、データフローに中断が発生するのは好ましくない。   However, when real-time image processing is required such as first copy (copy processing of the first page at the start of copying), it is not preferable that the data flow be interrupted as described above.

本発明は、上記の問題に鑑みてなされたものであり、データフローに中断が発生しづらい画像処理装置を得ることを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to obtain an image processing apparatus in which a data flow is less likely to be interrupted.

本発明に係る画像処理装置は、所定サイズのバッファー領域を確保されるメモリーと、1ページの画像データを分割して得られるサブバンドデータに対して所定の画像処理を実行する画像処理部と、前記サブバンドデータを圧縮し、前記圧縮済みサブバンドデータを生成する圧縮処理部と、前記圧縮済みサブバンドデータを前記サブバンドデータへ伸張する伸張処理部と、(a)前記画像処理前の1ページ分の前記圧縮済みサブバンドデータを前記バッファー領域に順番に書き込むとともに、(b)前記画像処理後の1ページ分の前記圧縮済みサブバンドデータを前記バッファー領域に順番に書き込むデータストア部と、前記バッファー領域から前記圧縮済みサブバンドデータを順番に読み出すデータロード部とを備える。そして、前記データストア部は、前記データロード部による前記圧縮済みサブバンドデータの読み出しに並行して、(c)前記データストア部の書込位置と前記データロード部の読出位置との間の差が所定値以下になるまで、前記画像処理後の前記圧縮済みサブバンドデータを前記バッファー領域に順番に書き込んでいき、(d1)前記データストア部の書込位置と前記データロード部の読出位置との間の差が所定値以下になったら、前記画像処理後の前記圧縮済みサブバンドデータの書込位置を前記バッファー領域内の退避領域に切り替え、(d2)前記データストア部の書込位置と前記データロード部の読出位置との間の差が前記所定値を超えたら、前記データストア部の書込位置を、前記バッファー領域内の退避領域から、前記退避領域への書込位置の切替直前の前記画像処理後の前記圧縮済みサブバンドデータに連続するように切り替える。ここで、前記退避領域は、前記バッファー領域内で前記画像処理前の圧縮済みサブバンドデータが書き込まれない領域に含まれる。   An image processing apparatus according to the present invention includes a memory that secures a buffer area of a predetermined size, an image processing unit that executes predetermined image processing on subband data obtained by dividing one page of image data, A compression processing unit that compresses the subband data and generates the compressed subband data; a decompression processing unit that decompresses the compressed subband data into the subband data; and (a) one before the image processing (B) sequentially writing the compressed subband data for one page to the buffer area, and (b) a data store unit for sequentially writing the compressed subband data for one page after the image processing to the buffer area; A data load unit that sequentially reads the compressed subband data from the buffer area. The data store unit, in parallel with the reading of the compressed subband data by the data load unit, (c) the difference between the write position of the data store unit and the read position of the data load unit The compressed subband data after the image processing is sequentially written in the buffer area until the value becomes equal to or less than a predetermined value, and (d1) a write position of the data store unit and a read position of the data load unit When the difference between the two is less than or equal to a predetermined value, the writing position of the compressed subband data after the image processing is switched to a saving area in the buffer area, and (d2) the writing position of the data store section When the difference from the read position of the data load unit exceeds the predetermined value, the write position of the data store unit is changed from the save area in the buffer area to the save area. Switch to continuous to said compressed sub-band data after the image processing immediately before the switching of the write position to. Here, the save area is included in an area where the compressed subband data before the image processing is not written in the buffer area.

本発明によれば、データフローに中断が発生しづらい画像処理装置を得ることができる。   According to the present invention, it is possible to obtain an image processing apparatus in which the data flow is less likely to be interrupted.

本発明の上記又は他の目的、特徴および優位性は、添付の図面とともに以下の詳細な説明から更に明らかになる。   These and other objects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.

図1は、本発明の実施の形態に係る画像処理装置を有する画像形成装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an image forming apparatus having an image processing apparatus according to an embodiment of the present invention. 図2は、画像データおよびサブバンドデータの一例を説明する図である。FIG. 2 is a diagram illustrating an example of image data and subband data. 図3は、バッファー領域に対する、圧縮済みサブバンドデータCSBij,CPSBijの書き込みと読み出しを説明する図である(1/4)。FIG. 3 is a diagram for explaining writing and reading of compressed subband data CSBij and CPSBij with respect to the buffer area (1/4). 図4は、バッファー領域に対する、圧縮済みサブバンドデータCSBij,CPSBijの書き込みと読み出しを説明する図である(2/4)。FIG. 4 is a diagram for explaining writing and reading of compressed subband data CSBij and CPSBij with respect to the buffer area (2/4). 図5は、バッファー領域に対する、圧縮済みサブバンドデータCSBij,CPSBijの書き込みと読み出しを説明する図である(3/4)。FIG. 5 is a diagram for explaining writing and reading of compressed subband data CSBij and CPSBij with respect to the buffer area (3/4). 図6は、バッファー領域に対する、圧縮済みサブバンドデータCSBij,CPSBijの書き込みと読み出しを説明する図である(4/4)。FIG. 6 is a diagram for explaining writing and reading of compressed subband data CSBij and CPSBij with respect to the buffer area (4/4). 図7は、図1における画像処理装置13において使用されるディスクリプターの構成例を示す図である。FIG. 7 is a diagram showing a configuration example of a descriptor used in the image processing apparatus 13 in FIG.

以下、図に基づいて本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施の形態に係る画像処理装置を有する画像形成装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of an image forming apparatus having an image processing apparatus according to an embodiment of the present invention.

画像形成装置1は、コピー機、複合機などといった装置である。画像形成装置1は、画像読取装置11、印刷装置12、画像処理装置13、および操作パネル14を有する。画像読取装置11は、原稿画像を光学的に読み取り、原稿画像の画像データを生成する内部装置である。印刷装置12は、画像処理装置13による画像処理後の画像データに基づき画像を印刷する内部装置である。画像処理装置13は、画像読取装置11により生成された原稿画像に対して所定の画像処理(フィルター処理など)を実行する。操作パネル14は、ユーザーに対して各種情報を表示する液晶ディスプレイなどの表示装置、およびユーザー操作を検出する入力装置を有する。   The image forming apparatus 1 is an apparatus such as a copier or a multifunction machine. The image forming apparatus 1 includes an image reading device 11, a printing device 12, an image processing device 13, and an operation panel 14. The image reading device 11 is an internal device that optically reads a document image and generates image data of the document image. The printing device 12 is an internal device that prints an image based on image data after image processing by the image processing device 13. The image processing device 13 performs predetermined image processing (such as filter processing) on the document image generated by the image reading device 11. The operation panel 14 includes a display device such as a liquid crystal display that displays various types of information to the user, and an input device that detects a user operation.

画像処理装置13は、演算処理装置21、およびメモリー22を有する。   The image processing device 13 includes an arithmetic processing device 21 and a memory 22.

演算処理装置21は、コンピューター、ASIC(Application Specific Integrated Circuit)などを有し、ソフトウェアおよび/またハードウェアで各種処理部を実現する。メモリー22は、RAMなどの主記憶装置である。   The arithmetic processing unit 21 includes a computer, an application specific integrated circuit (ASIC), and the like, and realizes various processing units by software and / or hardware. The memory 22 is a main storage device such as a RAM.

演算処理装置21では、制御部31、画像処理部32、圧縮処理部33、伸張処理部34、メモリー領域管理部35、データストア部36、およびデータロード部37を有する。   The arithmetic processing device 21 includes a control unit 31, an image processing unit 32, a compression processing unit 33, an expansion processing unit 34, a memory area management unit 35, a data store unit 36, and a data load unit 37.

制御部31は、画像読取装置11、印刷装置12、操作パネル14などを制御するとともに、画像読取装置11および印刷装置12に対するデータの入出力を行う。   The control unit 31 controls the image reading device 11, the printing device 12, the operation panel 14, and the like, and inputs / outputs data to / from the image reading device 11 and the printing device 12.

画像処理部32は、1ページの画像データを分割して得られるサブバンドデータに対して所定の画像処理を実行する。   The image processing unit 32 performs predetermined image processing on subband data obtained by dividing one page of image data.

なお、サブバンドデータのデータ長は一定であるが、圧縮済みサブバンドデータのデータ長は、データ値によって圧縮率が変わるため、変化する。サブバンドデータは、画像データにおけるバンドデータを主走査方向において分割したデータである。バンドデータは、画像データにおける所定ライン数のラインからなるデータである。   The data length of the subband data is constant, but the data length of the compressed subband data changes because the compression rate changes depending on the data value. The sub-band data is data obtained by dividing the band data in the image data in the main scanning direction. The band data is data composed of a predetermined number of lines in the image data.

図2は、画像データおよびサブバンドデータの一例を説明する図である。図2に示す1ページ分の画像データは、n本のバンド#1〜#nを有している。各バンド#i(i=1,・・・,n)は、所定本数のラインを有する。この例では、バンド#iのバンドデータは、サブバンドデータSBi1〜SBi4を有する。   FIG. 2 is a diagram illustrating an example of image data and subband data. The image data for one page shown in FIG. 2 has n bands # 1 to #n. Each band #i (i = 1,..., N) has a predetermined number of lines. In this example, the band data of band #i has subband data SBi1 to SBi4.

圧縮処理部33は、サブバンドデータ(画像処理前のサブバンドデータSBijまたは画像処理後のサブバンドデータPSBij)を圧縮し、圧縮済みサブバンドデータ(画像処理前のサブバンドデータCSBijまたは画像処理後のサブバンドデータCPSBij)を生成する。   The compression processing unit 33 compresses the subband data (subband data SBij before image processing or subband data PSBij after image processing), and compressed subband data (subband data CSBij before image processing or after image processing). Subband data CPSBij).

伸張処理部34は、圧縮済みサブバンドデータ(画像処理前のサブバンドデータCSBijまたは画像処理後のサブバンドデータCPSBij)を、元のサブバンドデータ(画像処理前のサブバンドデータSBijまたは画像処理後のサブバンドデータPSBij)へ伸張する。   The decompression processing unit 34 converts the compressed subband data (subband data CSBij before image processing or subband data CPSBij after image processing) into original subband data (subband data SBij before image processing or after image processing). To subband data PSBij).

メモリー領域管理部35は、メモリー22において所定サイズのバッファー領域を確保する。バッファー領域のサイズは、最悪圧縮率での、1ページの画像データを分割して得られる複数のサブバンドデータをそれぞれ圧縮して得られる複数の圧縮済みサブバンドデータの合計サイズに所定の余裕分を追加して得られるサイズである。なお、最悪圧縮率は、実験などにより予め特定される。   The memory area management unit 35 secures a buffer area of a predetermined size in the memory 22. The size of the buffer area is equal to the total size of a plurality of compressed subband data obtained by compressing a plurality of subband data obtained by dividing one page of image data at the worst compression rate by a predetermined margin. Is the size obtained by adding The worst compression rate is specified in advance through experiments or the like.

図3、図4、図5、および図6は、バッファー領域に対する、圧縮済みサブバンドデータCSBij,CPSBijの書き込みと読み出しを説明する図である。   FIGS. 3, 4, 5, and 6 are diagrams for explaining writing and reading of the compressed subband data CSBij and CPSBij with respect to the buffer area.

データストア部36は、(a)画像処理部32の画像処理前の1ページ分の圧縮済みサブバンドデータCSBijをバッファー領域61に順番に書き込むとともに、(b)その画像処理後の1ページ分の圧縮済みサブバンドデータCPSBijをバッファー領域61に順番に書き込む。データストア部36は、圧縮済みサブバンドデータCSBij,CPSBijを、走査方向に沿って順番に書き込んでいく。データロード部37は、バッファー領域61から圧縮済みサブバンドデータCSBij,CPSBijを順番に読み出す。データロード部37は、圧縮済みサブバンドデータCSBij,CPSBijを、走査方向に沿って順番に読み出していく。   The data store unit 36 sequentially writes (a) one page of compressed subband data CSBij before the image processing of the image processing unit 32 into the buffer area 61, and (b) one page of the image after the image processing. The compressed subband data CPSBij is written in the buffer area 61 in order. The data store unit 36 writes the compressed subband data CSBij and CPSBij in order along the scanning direction. The data load unit 37 sequentially reads the compressed subband data CSBij and CPSBij from the buffer area 61. The data load unit 37 sequentially reads the compressed subband data CSBij and CPSBij along the scanning direction.

また、この実施の形態では、データストア部36は、図3に示すように、所定のオフセット領域71の後端から、画像処理前の1ページ分の圧縮済みサブバンドデータCSBijを順番に書き込み、図4に示すように、オフセット領域71の先端から、画像処理後の1ページ分の圧縮済みサブバンドデータCPSBijを順番に書き込む。なお、オフセット領域71は、バッファー領域61の先頭に所定のサイズで設定される。   In this embodiment, as shown in FIG. 3, the data store unit 36 sequentially writes the compressed subband data CSBij for one page before image processing from the rear end of the predetermined offset area 71, As shown in FIG. 4, compressed subband data CPSBij for one page after image processing is sequentially written from the tip of the offset area 71. The offset area 71 is set at a predetermined size at the head of the buffer area 61.

データストア部36は、データロード部37による圧縮済みサブバンドデータCSBijの読み出しに並行して、(c)データストア部36の書込位置とデータロード部37の読出位置との間の差が所定値以下になるまで、画像処理後の圧縮済みサブバンドデータCPSBijをバッファー領域61に順番に書き込んでいき、(d1)データストア部36の書込位置とデータロード部37の読出位置との間の差が上述の所定値以下になったら、画像処理後の圧縮済みサブバンドデータCPSBijの書込位置を、図5および図6に示すように、バッファー領域61内の退避領域72に切り替え、(d2)データストア部36の書込位置とデータロード部37の読出位置との間の差が上述の所定値を超えたら、図6に示すように、データストア部36の書込位置を、バッファー領域61内の退避領域72から、退避領域72への書込位置の切替直前の画像処理後の圧縮済みサブバンドデータCPSBijに連続するように切り替える。なお、書込位置がバッファー領域61の終端に到達した場合、書込位置はバッファー領域61の先頭に戻される。   In parallel with the reading of the compressed subband data CSBij by the data load unit 37, the data store unit 36 determines that (c) the difference between the write position of the data store unit 36 and the read position of the data load unit 37 is predetermined. The compressed subband data CPSBij after image processing is sequentially written in the buffer area 61 until the value becomes equal to or smaller than the value, and (d1) between the write position of the data store unit 36 and the read position of the data load unit 37 When the difference is equal to or smaller than the predetermined value, the writing position of the compressed subband data CPSBij after the image processing is switched to the save area 72 in the buffer area 61 as shown in FIGS. 5 and 6 (d2 When the difference between the write position of the data store unit 36 and the read position of the data load unit 37 exceeds the above-mentioned predetermined value, as shown in FIG. 36 writing position, from the save area 72 in the buffer regions 61, switch to continuous compressed sub-band data CPSBij after image processing immediately before the switching of the write position into the save area 72. When the write position reaches the end of the buffer area 61, the write position is returned to the top of the buffer area 61.

この退避領域72は、バッファー領域61内で画像処理前の圧縮済みサブバンドデータCSBijが書き込まれない領域に含まれている。   The save area 72 is included in the buffer area 61 where the compressed subband data CSBij before image processing is not written.

この実施の形態では、退避領域72は、バッファー領域61への1ページ分の画像処理前の圧縮済みサブバンドデータCSBijの書き込みが完了前に、現時点までの圧縮率、残りの圧縮済みサブバンドデータの数、および最悪圧縮率に基づいて、1ページ分の画像処理前の圧縮済みサブバンドデータCSBijが書き込まれる領域を予測し、バッファー領域内で、予測された領域外の領域に含まれるように設定される。これにより、より確実に、1ページ分の画像処理前の圧縮済みサブバンドデータCSBijが書き込まれない領域に、退避領域72が設定される。   In this embodiment, the save area 72 has the compression rate up to the present time and the remaining compressed subband data before the writing of the compressed subband data CSBij before image processing for one page to the buffer area 61 is completed. The area where the compressed sub-band data CSBij before image processing for one page is written is predicted based on the number of and the worst compression rate so that it is included in the buffer area outside the predicted area. Is set. As a result, the save area 72 is more reliably set in an area where the compressed subband data CSBij before image processing for one page is not written.

例えば、図6に示す場合、圧縮済みサブバンドデータCPSB33の次の圧縮済みサブバンドデータCPSB34は、書込位置の切り替え後、退避領域72に書き込まれ、その次の圧縮済みサブバンドデータCPSB41も、退避領域72に書き込まれ、その次の圧縮済みサブバンドデータCPSB42は、退避領域72ではなく、書込位置の切り替え後、圧縮済みサブバンドデータCPSB33に連続するように書き込まれる。   For example, in the case shown in FIG. 6, the compressed subband data CPSB34 next to the compressed subband data CPSB33 is written in the save area 72 after switching the writing position, and the next compressed subband data CPSB41 is also The next compressed subband data CPSB42 written to the save area 72 is written not to the save area 72 but continuously to the compressed subband data CPSB33 after switching the writing position.

また、この実施の形態では、データストア部36は、書込順で、画像処理後の圧縮済みサブバンドデータCPSBijをリスト構造で順番に接続していき、(e1)退避領域72への書込位置の切替直前の画像処理後の圧縮済みサブバンドデータCPSBijと、退避領域72への書込位置の切替直後の画像処理後の圧縮済みサブバンドデータCPSBijとをリスト構造で接続し、(e2)退避領域72からの書込位置の切替直前の画像処理後の圧縮済みサブバンドデータCPSBijと、退避領域72からの書込位置の切替直後の画像処理後の圧縮済みサブバンドデータCPSBijとをリスト構造で接続する。   In this embodiment, the data store unit 36 connects the compressed subband data CPSBij after the image processing in the order of writing in a list structure, and (e1) writes to the save area 72. The compressed subband data CPSBij after the image processing immediately before the position switching and the compressed subband data CPSBij after the image processing immediately after the writing position switching to the save area 72 are connected in a list structure (e2) List structure of compressed subband data CPSBij after image processing immediately before switching of the writing position from the save area 72 and compressed subband data CPSBij after image processing immediately after switching of the write position from the save area 72 Connect with.

なお、画像処理前の圧縮済みサブバンドデータCSBijについても同様にリスト構造で接続される。   Note that the compressed subband data CSBij before image processing is similarly connected in a list structure.

データロード部37は、このリスト構造に沿って、画像処理前の圧縮済みサブバンドデータCSBijおよび画像処理後の圧縮済みサブバンドデータCPSBijをそれぞれ順番に読み出す。   The data load unit 37 sequentially reads the compressed subband data CSBij before image processing and the compressed subband data CPSBij after image processing in accordance with this list structure.

ここで、ディスクリプターによるリスト構造について説明する。   Here, the list structure using descriptors will be described.

図7は、図1における画像処理装置13において使用されるディスクリプターの構成例を示す図である。   FIG. 7 is a diagram showing a configuration example of a descriptor used in the image processing apparatus 13 in FIG.

ディスクリプター81は、データ開始アドレスと、データサイズと、後続ディスクリプターアドレスと、最終ディスクリプターフラグとを有する。   The descriptor 81 has a data start address, a data size, a subsequent descriptor address, and a final descriptor flag.

「データ開始アドレス」は、圧縮済みサブバンドデータCSBij,CPSBijを記憶するためのブロック記憶領域の先頭アドレスを示す。   “Data start address” indicates the head address of the block storage area for storing the compressed subband data CSBij and CPSBij.

「データサイズ」は、ブロック記憶領域に記憶されているデータのデータサイズを示す。   “Data size” indicates the data size of the data stored in the block storage area.

「後続ディスクリプターアドレス」は、次のディスクリプターの先頭アドレスを示す。なお、次のディスクリプターが存在しない場合、後続ディスクリプターアドレスには、NULLがセットされる。   “Subsequent descriptor address” indicates the start address of the next descriptor. If there is no next descriptor, NULL is set in the subsequent descriptor address.

「最終ディスクリプターフラグ」は、最終ディスクリプターか否かを示すフラグである。次のディスクリプターが存在する場合には、最終ディスクリプターフラグには、1がセットされ、次のディスクリプターが存在しない場合には、最終ディスクリプターフラグには、ゼロがセットされる。   The “final descriptor flag” is a flag indicating whether or not it is a final descriptor. When the next descriptor exists, the final descriptor flag is set to 1. When the next descriptor does not exist, the final descriptor flag is set to zero.

つまり、複数の圧縮済みサブバンドデータに対して複数のディスクリプター81がそれぞれ割り当てられ、複数のディスクリプター81は、リスト構造を形成し、そのリスト構造によって圧縮済みサブバンドデータが接続されている。   That is, a plurality of descriptors 81 are respectively assigned to a plurality of compressed subband data, and the plurality of descriptors 81 form a list structure, and the compressed subband data is connected by the list structure.

メモリー領域管理部35は、圧縮済みサブバンドデータをバッファー領域61に書き込む際に、必要に応じて、バッファー領域61において、連続的にブロック記憶領域を設定していき、各ブロック記憶領域に対して、ディスクリプター81を生成する。なお、ディスクリプター81自体は、バッファー領域61外の領域に記憶される。   When writing the compressed subband data to the buffer area 61, the memory area management unit 35 continuously sets block storage areas in the buffer area 61 as necessary. The descriptor 81 is generated. The descriptor 81 itself is stored in an area outside the buffer area 61.

次に、上記画像処理装置13の動作について説明する。   Next, the operation of the image processing apparatus 13 will be described.

メモリー領域管理部35は、メモリー22の空き領域からバッファー領域61を確保する。   The memory area management unit 35 secures the buffer area 61 from the free area of the memory 22.

圧縮処理部33は、1ページ分の画像データを、サブバンドデータSBijごとに圧縮し、画像処理前の圧縮済みサブバンドデータCSBijを生成する。   The compression processing unit 33 compresses image data for one page for each subband data SBij, and generates compressed subband data CSBij before image processing.

そして、データストア部36は、図3に示すように走査順で、画像処理前の圧縮済みサブバンドデータCSBijを連続的に書き込んでいく。その際、メモリー領域管理部35は、ブロック記憶領域を設定し、ディスクリプター81を使用して、画像処理前の圧縮済みサブバンドデータCSBijを管理する。   Then, the data store unit 36 continuously writes the compressed subband data CSBij before image processing in the scanning order as shown in FIG. At that time, the memory area management unit 35 sets a block storage area and uses the descriptor 81 to manage the compressed subband data CSBij before image processing.

画像処理前の圧縮済みサブバンドデータCSBijの書き込みに並行して、データロード部37は、画像処理前の圧縮済みサブバンドデータCSBijを順番に読み出す。   In parallel with the writing of the compressed subband data CSBij before the image processing, the data load unit 37 sequentially reads the compressed subband data CSBij before the image processing.

伸張処理部34は、読み出した圧縮済みサブバンドデータCSBijをサブバンドデータSBijに伸張し、画像処理部32は、そのサブバンドデータSBijに対して所定の画像処理を実行する。そして、圧縮処理部33は、画像処理後のサブバンドデータPSBijを圧縮済みサブバンドデータCPSBijへ圧縮する。データストア部36は、図4に示すように、その圧縮済みサブバンドデータCPSBijを書き込む。   The decompression processing unit 34 decompresses the read compressed subband data CSBij into subband data SBij, and the image processing unit 32 executes predetermined image processing on the subband data SBij. Then, the compression processing unit 33 compresses the subband data PSBij after the image processing into the compressed subband data CPSBij. As shown in FIG. 4, the data store unit 36 writes the compressed subband data CPSBij.

画像処理後の圧縮済みサブバンドデータCPSBijのサイズは、圧縮率によって変化するため、画像処理前の圧縮済みサブバンドデータCSBijのサイズとは、通常異なる。   Since the size of the compressed subband data CPSBij after the image processing varies depending on the compression rate, it is usually different from the size of the compressed subband data CSBij before the image processing.

そのため、伸張処理部34、画像処理部32、および圧縮処理部33の処理速度が一定であっても、画像処理前の圧縮済みサブバンドデータCSBijの読出位置と画像処理後の圧縮済みサブバンドデータCPSBpqの書込位置との差は時間とともに変化する。   Therefore, even if the processing speeds of the decompression processing unit 34, the image processing unit 32, and the compression processing unit 33 are constant, the read position of the compressed subband data CSBij before image processing and the compressed subband data after image processing The difference from the writing position of CPSBpq changes with time.

データストア部36は、画像処理後の圧縮済みサブバンドデータCPSBijを書き込む際に、この差が所定値以下であるか否かを判定する。この差が所定値以下ではなければ、データストア部36は、その圧縮済みサブバンドデータCPSBijを、1つ前の圧縮済みサブバンドデータCPSBijに連続して書き込む。一方、この差が所定値以下であれば、データストア部36は、その圧縮済みサブバンドデータCPSBijを、退避領域72に書き込む。   When the data store unit 36 writes the compressed subband data CPSBij after image processing, the data store unit 36 determines whether or not the difference is equal to or smaller than a predetermined value. If this difference is not less than the predetermined value, the data store unit 36 continuously writes the compressed subband data CPSBij to the previous compressed subband data CPSBij. On the other hand, if the difference is equal to or smaller than the predetermined value, the data store unit 36 writes the compressed subband data CPSBij in the save area 72.

その後、書込位置と読出位置との差が所定値以下のままであれば、データストア部36は、次の圧縮済みサブバンドデータCPSBijを連続して退避領域72に書き込む。書込位置と読出位置との差が所定値以下でなくなれば、データストア部36は、書込位置を退避領域72に切り替える直前の圧縮済みサブバンドデータCPSBijに連続するように、次の圧縮済みサブバンドデータCPSBijを書き込む。   Thereafter, if the difference between the write position and the read position remains below a predetermined value, the data store unit 36 continuously writes the next compressed subband data CPSBij in the save area 72. If the difference between the write position and the read position is not less than the predetermined value, the data store unit 36 performs the next compressed so that it is continuous with the compressed subband data CPSBij immediately before switching the write position to the save area 72. Write subband data CPSBij.

以上のように、上記実施の形態によれば、データストア部36は、圧縮済みサブバンドデータCSBijの読み出しに並行して、(c)データストア部36の書込位置とデータロード部37の読出位置との間の差が所定値以下になるまで、画像処理後の圧縮済みサブバンドデータCPSBijをバッファー領域61に順番に書き込んでいき、(d1)その書込位置とその読出位置との間の差が所定値以下になったら、画像処理後の圧縮済みサブバンドデータCPSBijの書込位置をバッファー領域61内の退避領域72に切り替え、(d2)その書込位置とその読出位置との間の差が所定値を超えたら、データストア部36の書込位置を、退避領域72から、退避領域72への書込位置の切替直前の画像処理後の圧縮済みサブバンドデータCPSBijに連続するように切り替える。ここで、退避領域72は、バッファー領域61内で画像処理前の圧縮済みサブバンドデータCSBijが書き込まれない領域に含まれる。   As described above, according to the above embodiment, the data store unit 36 performs (c) the write position of the data store unit 36 and the read of the data load unit 37 in parallel with the reading of the compressed subband data CSBij. The compressed subband data CPSBij after the image processing is sequentially written in the buffer area 61 until the difference between the position and the position becomes a predetermined value or less. (D1) Between the writing position and the reading position When the difference falls below a predetermined value, the writing position of the compressed subband data CPSBij after image processing is switched to the save area 72 in the buffer area 61, and (d2) between the writing position and the reading position. If the difference exceeds the predetermined value, the compressed subband data after image processing immediately before switching of the write position from the save area 72 to the save area 72 is changed to the write position of the data store unit 36. It switched so as to be continuous to PSBij. Here, the save area 72 is included in the buffer area 61 where the compressed subband data CSBij before image processing is not written.

これにより、画像処理後の圧縮済みサブバンドデータCPSBijの書き込みによって画像処理前の圧縮済みサブバンドデータCSBijが上書きされることなく、バッファー領域61における画像処理後の圧縮済みサブバンドデータCPSBijの書き込みに中断が発生しづらくなるため、リアルタイム性が要求される、バッファー領域61を経由する一連のデータフローに中断が発生しづらい画像処理装置を得ることができる。   As a result, the compressed subband data CPSBij after the image processing in the buffer area 61 can be written without being overwritten by the compressed subband data CSBij before the image processing by writing the compressed subband data CPSBij after the image processing. Since interruptions are less likely to occur, it is possible to obtain an image processing apparatus that is less likely to cause interruptions in a series of data flows via the buffer area 61 that require real-time performance.

なお、上述の実施の形態に対する様々な変更および修正については、当業者には明らかである。そのような変更および修正は、その主題の趣旨および範囲から離れることなく、かつ、意図された利点を弱めることなく行われてもよい。つまり、そのような変更および修正が請求の範囲に含まれることを意図している。   Various changes and modifications to the above-described embodiment will be apparent to those skilled in the art. Such changes and modifications may be made without departing from the spirit and scope of the subject matter and without diminishing its intended advantages. That is, such changes and modifications are intended to be included within the scope of the claims.

例えば、上記実施の形態において、制御部31は、退避領域72に、画像処理後の圧縮済みサブバンドデータCPSBijを書き込むための領域がなくなった場合、メモリーフルエラーメッセージなどの警告メッセージを例えば操作パネル14に出力して表示し、ユーザー操作に基づいて、1ページの画像データに対する画像処理を中止するか、1ページの画像データに対する画像処理を再実行するかを決定するようにしてもよい。その場合、制御部31が1ページの画像データに対する画像処理を再実行すると決定した場合、バッファー領域61への画像処理前の1ページ分の圧縮済みサブバンドデータCSBijの書き込みが完了した後に、(f)データロード部36は、バッファー領域61からの画像処理前の圧縮済みサブバンドデータCSBijの読み出しを開始し、(g)データストア部37は、画像処理後の圧縮済みサブバンドデータCPSBijの書き込みを開始する。   For example, in the above embodiment, when there is no area for writing compressed subband data CPSBij after image processing in the save area 72, the control unit 31 displays a warning message such as a memory full error message, for example, on the operation panel. 14 may be displayed and displayed to determine whether to stop the image processing for one page of image data or to re-execute the image processing for one page of image data based on a user operation. In this case, when the control unit 31 determines to re-execute image processing for one page of image data, after the writing of the compressed subband data CSBij for one page before image processing to the buffer area 61 is completed, ( f) The data load unit 36 starts reading the compressed subband data CSBij before the image processing from the buffer area 61, and (g) the data store unit 37 writes the compressed subband data CPSBij after the image processing. To start.

本発明は、例えば、画像形成装置に適用可能である。   The present invention is applicable to, for example, an image forming apparatus.

13 画像処理装置
22 メモリー
61 バッファー領域
32 画像処理部
33 圧縮処理部
34 伸張処理部
36 データストア部
37 データロード部
DESCRIPTION OF SYMBOLS 13 Image processing apparatus 22 Memory 61 Buffer area 32 Image processing part 33 Compression processing part 34 Decompression processing part 36 Data store part 37 Data load part

Claims (5)

所定サイズのバッファー領域を確保されるメモリーと、
1ページの画像データを分割して得られるサブバンドデータに対して所定の画像処理を実行する画像処理部と、
前記サブバンドデータを圧縮し、前記圧縮済みサブバンドデータを生成する圧縮処理部と、
前記圧縮済みサブバンドデータを前記サブバンドデータへ伸張する伸張処理部と、
(a)前記画像処理前の1ページ分の前記圧縮済みサブバンドデータを前記バッファー領域に順番に書き込むとともに、(b)前記画像処理後の1ページ分の前記圧縮済みサブバンドデータを前記バッファー領域に順番に書き込むデータストア部と、
前記バッファー領域から前記圧縮済みサブバンドデータを順番に読み出すデータロード部とを備え、
前記データストア部は、前記データロード部による前記圧縮済みサブバンドデータの読み出しに並行して、(c)前記データストア部の書込位置と前記データロード部の読出位置との間の差が所定値以下になるまで、前記画像処理後の前記圧縮済みサブバンドデータを前記バッファー領域に順番に書き込んでいき、(d1)前記データストア部の書込位置と前記データロード部の読出位置との間の差が所定値以下になったら、前記画像処理後の前記圧縮済みサブバンドデータの書込位置を前記バッファー領域内の退避領域に切り替え、(d2)前記データストア部の書込位置と前記データロード部の読出位置との間の差が前記所定値を超えたら、前記データストア部の書込位置を、前記バッファー領域内の退避領域から、前記退避領域への書込位置の切替直前の前記画像処理後の前記圧縮済みサブバンドデータに連続するように切り替え、
前記退避領域は、前記バッファー領域内で前記画像処理前の圧縮済みサブバンドデータが書き込まれない領域に含まれること、
を特徴とする画像処理装置。
Memory that secures a buffer area of a predetermined size,
An image processing unit that executes predetermined image processing on subband data obtained by dividing one page of image data;
A compression processing unit that compresses the subband data and generates the compressed subband data;
A decompression processing unit for decompressing the compressed subband data into the subband data;
(A) sequentially writing the compressed subband data for one page before the image processing into the buffer area; and (b) storing the compressed subband data for one page after the image processing in the buffer area. The data store part to write in order,
A data load unit that sequentially reads the compressed subband data from the buffer area;
In parallel with the reading of the compressed subband data by the data load unit, the data store unit has a predetermined difference between (c) the write position of the data store unit and the read position of the data load unit. The compressed subband data after the image processing is sequentially written in the buffer area until the value becomes less than or equal to a value, (d1) between the writing position of the data store unit and the reading position of the data load unit When the difference between the two is less than a predetermined value, the writing position of the compressed subband data after the image processing is switched to a saving area in the buffer area, and (d2) the writing position of the data store unit and the data When the difference from the read position of the load unit exceeds the predetermined value, the write position of the data store unit is changed from the save area in the buffer area to the save area. Switching so as to continue to the compressed sub-band data after the image processing immediately before the switching position,
The save area is included in an area where the compressed subband data before the image processing is not written in the buffer area;
An image processing apparatus.
前記データストア部は、書込順で、前記画像処理後の前記圧縮済みサブバンドデータをリスト構造で順番に接続していき、(e1)前記退避領域への書込位置の切替直前の前記画像処理後の前記圧縮済みサブバンドデータと、前記退避領域への書込位置の切替直後の前記画像処理後の前記圧縮済みサブバンドデータとを前記リスト構造で接続し、(e2)前記退避領域からの書込位置の切替直前の前記画像処理後の前記圧縮済みサブバンドデータと、前記退避領域からの書込位置の切替直後の前記画像処理後の前記圧縮済みサブバンドデータとを前記リスト構造で接続することを特徴とする請求項1記載の画像処理装置。   The data store unit sequentially connects the compressed subband data after the image processing in a list structure in a writing order, and (e1) the image immediately before switching the writing position to the save area The compressed subband data after processing and the compressed subband data after image processing immediately after switching of the writing position to the save area are connected in the list structure, and (e2) from the save area The list structure includes the compressed subband data after the image processing immediately before the switching of the writing position and the compressed subband data after the image processing immediately after the switching of the writing position from the save area in the list structure. The image processing apparatus according to claim 1, wherein the image processing apparatus is connected. 前記データストア部は、所定のオフセット領域の後端から、前記画像処理前の1ページ分の前記圧縮済みサブバンドデータを順番に書き込み、前記オフセット領域の先端から、前記画像処理後の1ページ分の前記圧縮済みサブバンドデータを順番に書き込むことを特徴とする請求項1または請求項2記載の画像処理装置。   The data store unit sequentially writes the compressed subband data for one page before the image processing from the rear end of a predetermined offset area, and for one page after the image processing from the front end of the offset area. The image processing apparatus according to claim 1, wherein the compressed subband data are sequentially written. 前記退避領域に、前記画像処理後の前記圧縮済みサブバンドデータを書き込むための領域がなくなった場合、警告メッセージを出力し、ユーザー操作に基づいて、1ページの画像データに対する前記画像処理を中止するか、1ページの画像データに対する前記画像処理を再実行するかを決定する制御部をさらに備え、
前記制御部が1ページの画像データに対する前記画像処理を再実行すると決定した場合、前記バッファー領域への前記画像処理前の1ページ分の前記圧縮済みサブバンドデータの書き込みが完了した後に、(f)前記データロード部は、前記バッファー領域からの前記画像処理前の前記圧縮済みサブバンドデータの読み出しを開始し、(g)前記データストア部は、前記画像処理後の前記圧縮済みサブバンドデータの書き込みを開始すること、
を特徴とする請求項1から請求項3のうちのいずれか1項記載の画像処理装置。
When there is no area for writing the compressed subband data after the image processing in the save area, a warning message is output and the image processing for one page of image data is stopped based on a user operation. Or a control unit that determines whether to re-execute the image processing on one page of image data,
When the control unit determines to re-execute the image processing on one page of image data, after the writing of the compressed subband data for one page before the image processing to the buffer area is completed, (f ) The data load unit starts reading the compressed subband data before the image processing from the buffer area, and (g) the data store unit stores the compressed subband data after the image processing. To start writing,
The image processing apparatus according to claim 1, wherein:
前記退避領域は、前記バッファー領域への1ページ分の前記画像処理前の圧縮済みサブバンドデータの書き込みが完了する前に、1ページ分の前記画像処理前の圧縮済みサブバンドデータが書き込まれる領域を予測し、前記バッファー領域内で、予測された前記領域外の領域に含まれることを特徴とする請求項1から請求項4のうちのいずれか1項記載の画像処理装置。   The save area is an area in which the compressed subband data before the image processing for one page is written before the writing of the compressed subband data before the image processing for one page to the buffer area is completed. The image processing apparatus according to claim 1, wherein the image processing device is included in a region outside the predicted region within the buffer region.
JP2015129229A 2015-06-26 2015-06-26 Image processing device Expired - Fee Related JP6278245B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015129229A JP6278245B2 (en) 2015-06-26 2015-06-26 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015129229A JP6278245B2 (en) 2015-06-26 2015-06-26 Image processing device

Publications (2)

Publication Number Publication Date
JP2017017397A JP2017017397A (en) 2017-01-19
JP6278245B2 true JP6278245B2 (en) 2018-02-14

Family

ID=57831123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015129229A Expired - Fee Related JP6278245B2 (en) 2015-06-26 2015-06-26 Image processing device

Country Status (1)

Country Link
JP (1) JP6278245B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3355909B2 (en) * 1996-02-19 2002-12-09 富士ゼロックス株式会社 Printer control method and apparatus
JP2007165954A (en) * 2005-12-09 2007-06-28 Olympus Corp Image recording apparatus
JP5697588B2 (en) * 2011-12-28 2015-04-08 京セラドキュメントソリューションズ株式会社 Image reading device
JP5635551B2 (en) * 2012-03-29 2014-12-03 京セラドキュメントソリューションズ株式会社 Image processing apparatus and image forming apparatus
JP5989616B2 (en) * 2013-08-30 2016-09-07 京セラドキュメントソリューションズ株式会社 Image forming apparatus and image forming method

Also Published As

Publication number Publication date
JP2017017397A (en) 2017-01-19

Similar Documents

Publication Publication Date Title
WO2019227724A1 (en) Data read/write method and device, and circular queue
JP4795138B2 (en) Image processing apparatus and program
JP5706754B2 (en) Data processing apparatus and data processing method
US9172839B2 (en) Image forming apparatus, control method and storage medium
US20130002521A1 (en) Screen relay device, screen relay system, and computer -readable storage medium
JP6278245B2 (en) Image processing device
JP5566411B2 (en) Image reading device
US10089561B2 (en) Generating a raster image region by rendering in parallel plural regions of smaller height and segmenting the generated raster image region into plural regions of smaller width
JP2007164552A (en) Memory controller and data transfer method
US9596374B2 (en) Image reading apparatus, image reading method, and storage medium
JP5422640B2 (en) Image reading device
JP5697588B2 (en) Image reading device
JP2017192045A (en) Image processing apparatus
US10657053B2 (en) Memory allocation techniques for filtering software
JP5705143B2 (en) Image reading device
JP2017017398A (en) Image processing apparatus
JP5705104B2 (en) Image reading device
US20070195366A1 (en) Printing apparatus and method for saving memory
CN117170600B (en) Printing processing method, system, equipment and medium of Linux system
WO2023006024A1 (en) Image processing method and apparatus, and electronic device and readable storage medium
JP5440129B2 (en) Image processing apparatus, image forming apparatus, and image processing program
US8520964B2 (en) Image processing apparatus
JP2008071054A (en) Data transfer control method, data processor, and image processor
JP2006330124A (en) Data processor
US8732218B2 (en) File access system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170322

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171106

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171221

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180103

R150 Certificate of patent or registration of utility model

Ref document number: 6278245

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees