Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6140952B2 - Data processing apparatus, data processing method and program - Google Patents
[go: Go Back, main page]

JP6140952B2 - Data processing apparatus, data processing method and program - Google Patents

Data processing apparatus, data processing method and program Download PDF

Info

Publication number
JP6140952B2
JP6140952B2 JP2012192289A JP2012192289A JP6140952B2 JP 6140952 B2 JP6140952 B2 JP 6140952B2 JP 2012192289 A JP2012192289 A JP 2012192289A JP 2012192289 A JP2012192289 A JP 2012192289A JP 6140952 B2 JP6140952 B2 JP 6140952B2
Authority
JP
Japan
Prior art keywords
data
image
memory
stored
output
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.)
Active
Application number
JP2012192289A
Other languages
Japanese (ja)
Other versions
JP2014049978A (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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2012192289A priority Critical patent/JP6140952B2/en
Publication of JP2014049978A publication Critical patent/JP2014049978A/en
Application granted granted Critical
Publication of JP6140952B2 publication Critical patent/JP6140952B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storing Facsimile Image Data (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Record Information Processing For Printing (AREA)

Description

本発明は、圧縮データに基づいて印刷を行うデータ処理装置、データ処理方法およびプログラムに関する。   The present invention relates to a data processing apparatus, a data processing method, and a program for performing printing based on compressed data.

印刷装置は、ホストコンピュータから圧縮符号化された画像データを受信すると、その画像データを一旦、受信バッファに格納し、伸張処理を行う。その際に、印刷装置が画像におけるライン毎に伸長処理を行う技術がある。特許文献1には、画像の圧縮データを伸長する場合に、各ラインのライン終端符号を検出することで、印刷対象となる画像を得ることが記載されている。   When receiving the compression-encoded image data from the host computer, the printing apparatus temporarily stores the image data in a reception buffer and performs an expansion process. At this time, there is a technique in which the printing apparatus performs an expansion process for each line in the image. Patent Document 1 describes that when decompressing compressed data of an image, an image to be printed is obtained by detecting a line end code of each line.

特開平06−030282号公報Japanese Patent Laid-Open No. 06-030282

特許文献1に記載の方法により印刷対象の画像が得らえた場合に、その画像に対して余白を設ける場合には余白データを付加する必要がある。例えば印刷を行うべき画像の全領域に対応するメモリ領域に余白データを格納して、特許文献1に記載の方法により、当該画像の一部に対する伸張処理を行い、画像データを形成する。そして、余白データが格納されているメモリに、伸長処理が実行された画像データを格納(上書き)する。つまり、メモリにおける印刷対象の画像全体に対応する領域に対して余白データを格納する処理を行い、さらにその領域に対して画像データを上書きする処理を行う。この処理では、余白データを格納するためのメモリへのアクセスと、画像データを格納するためのメモリへのアクセスを行わなくてはならない。よって、印刷対象の画像をメモリに格納させるために多回数のメモリアクセスが発生し得るので、印刷を行うデータ処理の効率低下を招いてしまう場合がある。   When an image to be printed is obtained by the method described in Japanese Patent Laid-Open No. 2004-260, margin data needs to be added when a margin is provided for the image. For example, margin data is stored in a memory area corresponding to the entire area of the image to be printed, and a part of the image is expanded by the method described in Patent Document 1 to form image data. Then, the decompressed image data is stored (overwritten) in the memory in which the margin data is stored. That is, the margin data is stored in the area corresponding to the entire image to be printed in the memory, and the image data is overwritten in the area. In this process, access to the memory for storing the margin data and access to the memory for storing the image data must be performed. Therefore, many times of memory access may occur in order to store the image to be printed in the memory, which may cause a reduction in the efficiency of data processing for printing.

本発明の目的は、このような従来の問題点を解決することにある。上記の点に鑑み、本発明は、画像データを容易にメモリに記憶させることができるデータ処理装置、データ処理方法およびプログラムを提供することを目的とする。   An object of the present invention is to solve such conventional problems. In view of the above, it is an object of the present invention to provide a data processing device, a data processing method, and a program that can easily store image data in a memory.

上記課題を解決するため、本発明に係るデータ処理装置は、出力対象の画像に対応する、圧縮された画像データを取得する取得手段と、前記取得手段が取得した前記圧縮された画像データのうちの、前記出力対象の画像における1または複数のラインに対応する一部の画像データを復号化する復号化手段と、前記復号化手段により前記1または複数のラインごとに順次復号化される画像データと、当該1または複数のラインに設けられる余白に対応する余白データとを含む、当該1または複数のラインに対応する記憶対象のデータを作成し、当該作成された記憶対象のデータを、当該1または複数のラインごとに順次メモリに記憶させる記憶制御手段と、を備え、前記記憶制御手段は、前記画像データと前記余白データのうちの当該画像データのみの記憶のために前記メモリへアクセスせず、且つ、当該画像データと当該余白データのうちの当該余白データのみの記憶のために前記メモリへアクセスせずに、前記記憶対象のデータの記憶のために前記メモリにアクセスすることで、当該記憶対象のデータを前記メモリに記憶することを特徴とする。 In order to solve the above problem, a data processing apparatus according to the present invention includes an acquisition unit that acquires compressed image data corresponding to an output target image, and the compressed image data acquired by the acquisition unit. Decoding means for decoding a part of image data corresponding to one or a plurality of lines in the output target image, and image data sequentially decoded for each of the one or a plurality of lines by the decoding means And data to be stored corresponding to the one or more lines including the margin data corresponding to the margin provided in the one or more lines, and the generated data to be stored is or comprising a storage control unit for each of the plurality of lines is stored sequentially in the memory, wherein the storage control means, the image data of the blank data and the image data Storage of the data to be stored without accessing the memory for storing only the image data and without accessing the memory for storing only the margin data of the image data and the margin data. Therefore, the storage target data is stored in the memory by accessing the memory .

本発明によると、圧縮データに対する伸長処理の効率を向上させることができる。   According to the present invention, the efficiency of decompression processing on compressed data can be improved.

印刷装置の記録部周辺に着目した概略構成図である。FIG. 2 is a schematic configuration diagram focusing on the periphery of a recording unit of a printing apparatus. 画像処理部のブロック構成を示す図である。It is a figure which shows the block configuration of an image process part. 実施形態1におけるデータ復号部のブロック構成を示す図である。It is a figure which shows the block configuration of the data decoding part in Embodiment 1. FIG. 本実施形態の動作の概念を説明するための図である。It is a figure for demonstrating the concept of operation | movement of this embodiment. 印刷処理を行うまでの処理の概要の手順を示す図である。It is a figure which shows the procedure of the outline | summary of a process until it performs a printing process. 本実施形態における復号化処理の手順を示す図である。It is a figure which shows the procedure of the decoding process in this embodiment. 実施形態2におけるデータ復号部のブロック構成を示す図である。It is a figure which shows the block configuration of the data decoding part in Embodiment 2. FIG. 本実施形態の動作の概念を説明するための図である。It is a figure for demonstrating the concept of operation | movement of this embodiment. 本実施形態における復号化処理の手順を示す図である。It is a figure which shows the procedure of the decoding process in this embodiment.

以下、添付図面を参照して本発明の好適な実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る本発明を限定するものでなく、また本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。なお、同一の構成要素には同一の参照番号を付して、説明を省略する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments do not limit the present invention according to the claims, and all combinations of features described in the embodiments are not necessarily essential to the solution means of the present invention. . The same constituent elements are denoted by the same reference numerals, and the description thereof is omitted.

〔実施形態1〕
図1は、本発明に係る印刷装置100の記録部周辺に着目した概略構成図である。以下、印刷装置100としてインクジェット記録装置を例として説明する。しかしながら、印刷装置100は、インクジェット記録装置でなくても良い。例えば、レーザプリンタや複写機といった電子写真方式の印刷装置であっても良い。印刷装置100は、ネットワークやインタフェースを介して外部に接続されているホストコンピュータ等から供給される印刷情報やフォーム情報、マクロ命令などに従って、対応する文字パターンやフォームパターンなどを作成する。そして、印刷装置100は、記録ヘッドからインクを吐出することにより、用紙等の記録媒体上に画像を形成する。
Embodiment 1
FIG. 1 is a schematic configuration diagram focusing on the periphery of a recording unit of a printing apparatus 100 according to the present invention. Hereinafter, an inkjet recording apparatus will be described as an example of the printing apparatus 100. However, the printing apparatus 100 may not be an ink jet recording apparatus. For example, an electrophotographic printing apparatus such as a laser printer or a copying machine may be used. The printing apparatus 100 creates corresponding character patterns, form patterns, and the like according to print information, form information, macro instructions, and the like supplied from a host computer or the like connected to the outside via a network or an interface. The printing apparatus 100 forms an image on a recording medium such as paper by ejecting ink from the recording head.

記録ヘッド101は、ブラック、シアン、マゼンタ、イエローを始めとする複数のカラーインクがそれぞれ封入された不図示のインクタンクと接続されている。記録ヘッド101には、ブラック、シアン、マゼンタ、イエローというような各インク色に対応したノズルが矢印X1の往路走査方向に沿って配列されている。印刷制御部108は、画像処理部107からフレキシブルケーブルを介して伝送されてきた印刷開始命令信号が適切か否かを判定し、記録ヘッド101上の各ノズルに対応した加熱素子への電圧印加を制御する。キャリッジ102は、記録ヘッド101および印刷制御部108を搭載し、主走査方向X1、X2に往復走査可能である。キャリッジ102は、印刷動作していない待機状態の場合には、ホームポジションPに位置する。キャリッジ102は、ガイドロッドGにガイドされつつ、不図示の移動機構により主走査方向X1、X2上を移動する。紙送りローラ105は、補助ローラ104と共に、記録媒体106を抑えながら、矢印Yの副走査方向に間欠的に記録媒体106を搬送する。給紙ローラ103は、記録媒体106の搬送を行う他、紙送りローラ105および補助ローラ104と同様に、記録媒体106を抑える役割を果たす。画像処理部107は、入力された圧縮データの伸張処理およびクリップ処理や、多値画像データに対する二値化処理等の機能を有する。また、画像処理部107は内部にCPUを搭載しており、本実施形態の各種処理や印刷装置100全体を制御することができる。   The recording head 101 is connected to an ink tank (not shown) in which a plurality of color inks such as black, cyan, magenta, and yellow are sealed. In the recording head 101, nozzles corresponding to ink colors such as black, cyan, magenta, and yellow are arranged along the forward scanning direction of the arrow X1. The print control unit 108 determines whether the print start command signal transmitted from the image processing unit 107 via the flexible cable is appropriate, and applies a voltage to the heating element corresponding to each nozzle on the recording head 101. Control. The carriage 102 includes the recording head 101 and the print control unit 108, and can reciprocately scan in the main scanning directions X1 and X2. The carriage 102 is positioned at the home position P in a standby state where no printing operation is performed. The carriage 102 is moved in the main scanning directions X1 and X2 by a moving mechanism (not shown) while being guided by the guide rod G. The paper feed roller 105, together with the auxiliary roller 104, intermittently conveys the recording medium 106 in the sub-scanning direction indicated by the arrow Y while suppressing the recording medium 106. In addition to conveying the recording medium 106, the paper feed roller 103 plays a role of suppressing the recording medium 106 in the same manner as the paper feed roller 105 and the auxiliary roller 104. The image processing unit 107 has functions such as decompression processing and clip processing of input compressed data, and binarization processing for multi-valued image data. Further, the image processing unit 107 has a CPU mounted therein, and can control various processes of the present embodiment and the entire printing apparatus 100.

次に、印刷装置100における基本的な印刷動作について説明する。画像処理部107は、印刷待機時にホームポジション位置Pにあるキャリッジ102を、印刷開始命令により往路走査方向に走査する。画像処理部107は、キャリッジ102の走査に伴い、記録ヘッド101の各インク吐出口から出力対象の画像データに基づきインクを吐出させることにより、記録媒体106上への印刷を行う。記録ヘッドの走査により記録媒体106上の所定領域への印刷が完了すると、画像処理部107は、紙送りローラ105を回転させ、記録媒体106をY方向に所定幅分、紙送りする。続いて、画像処理部107は、キャリッジ102を復路走査方向X2に走査しながら、記録ヘッド101上の複数のインク吐出口から画像データに基づきインクを吐出させることにより、記録媒体106上への印刷を行う。そして、画像処理部107は、キャリッジ102を元のホームポジションPの位置まで戻す。その後、画像処理部107は、再び、紙送りローラ2005を回転させ、記録媒体106をY方向に所定幅分、紙送りする。印刷装置100は、以上のような記録ヘッド101の往復走査と紙送り動作との繰り返しにより、記録媒体106上に画像を印刷することができる。なお、印刷装置100は、キャリッジ102を駆動するためのキャリッジモータや、給紙ローラ103を駆動するための給紙モータや、搬送ローラを駆動する紙搬送モータなどを駆動するためのモータドライバも含む。また、印刷装置100は、記録ヘッド101を駆動するためのドライバも含む。   Next, a basic printing operation in the printing apparatus 100 will be described. The image processing unit 107 scans the carriage 102 at the home position P at the time of printing standby in the forward scanning direction by a print start command. The image processing unit 107 performs printing on the recording medium 106 by ejecting ink from each ink ejection port of the recording head 101 based on image data to be output as the carriage 102 is scanned. When printing on a predetermined area on the recording medium 106 is completed by scanning the recording head, the image processing unit 107 rotates the paper feed roller 105 to feed the recording medium 106 by a predetermined width in the Y direction. Subsequently, the image processing unit 107 prints on the recording medium 106 by discharging ink based on the image data from a plurality of ink discharge ports on the recording head 101 while scanning the carriage 102 in the backward scanning direction X2. I do. Then, the image processing unit 107 returns the carriage 102 to the original home position P. Thereafter, the image processing unit 107 again rotates the paper feed roller 2005 to feed the recording medium 106 by a predetermined width in the Y direction. The printing apparatus 100 can print an image on the recording medium 106 by repeating the reciprocating scanning of the recording head 101 and the paper feeding operation as described above. Note that the printing apparatus 100 also includes a motor driver for driving a carriage motor for driving the carriage 102, a paper feed motor for driving the paper feed roller 103, a paper transport motor for driving the transport roller, and the like. . The printing apparatus 100 also includes a driver for driving the recording head 101.

図2は、画像処理部107のブロック構成を示す図である。画像処理部107は、CPU201を含む。CPU201は、例えば高速のRISC型CPUであり、ROM207に記憶された制御プログラムやRAM206に記憶された制御プログラム等に基づいて、システムバスに接続される各種のデバイスへのアクセスを総合的に制御する。また、CPU201は、I/O208を介して外部ネットワーク209に接続されているホストコンピュータ等の外部装置と通信可能に接続されている。外部ネットワーク209は、ホストコンピュータから圧縮符号化された画像データを受信して取得する。データ復号部202は、圧縮符号化された画像データの復号処理(解凍処理)を行う。詳細は後述するが、本実施形態においては、データ復号時に、予め定められた第1パラメータが表わす復号右端位置までの画素数を超えた部分の画像データを切り取り(クリップ処理)、予め定められた第2パラメータが表わす出力右端位置までの画素数で指定される位置まで白色の固定データを付加する。第1及び第2パラメータは、予めRAM206等の記憶領域に格納されている。画像処理部203は、復号された画像データに対して二値化処理を行い、印刷命令生成部204は、二値化処理された画像データに対応した印刷開始命令信号を生成する。そして、データ伝送部205は、二値化処理された画像データと、印刷開始命令信号とをフレキシブルケーブルを介して、キャリッジ102に搭載された印刷制御部108に送信する。   FIG. 2 is a diagram illustrating a block configuration of the image processing unit 107. The image processing unit 107 includes a CPU 201. The CPU 201 is, for example, a high-speed RISC type CPU, and comprehensively controls access to various devices connected to the system bus based on a control program stored in the ROM 207, a control program stored in the RAM 206, and the like. . The CPU 201 is communicably connected to an external device such as a host computer connected to the external network 209 via the I / O 208. The external network 209 receives and acquires compression-encoded image data from the host computer. The data decoding unit 202 performs a decoding process (decompression process) on the compression-encoded image data. Although details will be described later, in the present embodiment, at the time of data decoding, a part of the image data exceeding the number of pixels up to the decoding right end position represented by the predetermined first parameter is cut out (clip processing) and determined in advance. White fixed data is added up to the position specified by the number of pixels up to the output right end position represented by the second parameter. The first and second parameters are stored in a storage area such as the RAM 206 in advance. The image processing unit 203 performs binarization processing on the decoded image data, and the print command generation unit 204 generates a print start command signal corresponding to the binarized image data. Then, the data transmission unit 205 transmits the binarized image data and the print start command signal to the print control unit 108 mounted on the carriage 102 via the flexible cable.

なお、画像処理部107内の各ブロック間の通信は、システムデータバス210を介して行われる。ROM207には、CPU201が実行する制御プログラムや、印刷装置100を制御するために必要なデータが格納されている。また、RAM206には、上記各部が処理を実行したデータが格納され、画像処理部107の各部から読み出しや書き込み等のアクセスがされ得る。印刷装置100は、外部のホストコンピュータとネットワーク209を介して通信しても良いし、不図示のUSB等を介してホストコンピュータと接続されて通信を行うようにしても良い。   Note that communication between the blocks in the image processing unit 107 is performed via the system data bus 210. The ROM 207 stores a control program executed by the CPU 201 and data necessary for controlling the printing apparatus 100. The RAM 206 stores data processed by the above-described units, and can be accessed by reading and writing from each unit of the image processing unit 107. The printing apparatus 100 may communicate with an external host computer via the network 209, or may be connected to the host computer via a USB (not shown) to perform communication.

本実施形態の印刷装置100は、複数の画像データを回転および移動することで整列し、一つの画像データとして形成する集約印刷を実行する。具体的には、画像処理部107が複数の画像が整列された画像の画像データを作成して、その画像データをキャリッジ102に伝送することにより、複数の画像が整列された画像が印刷される。   The printing apparatus 100 according to this embodiment executes collective printing in which a plurality of pieces of image data are aligned by rotating and moving to form a single piece of image data. Specifically, the image processing unit 107 creates image data of an image in which a plurality of images are arranged, and transmits the image data to the carriage 102, thereby printing an image in which the plurality of images are arranged. .

本実施形態において、圧縮された画像データは、印刷媒体に印刷される複数の画像のそれぞれに対応するが、画像に付加される余白のデータは画像データに含まれていない。つまり、画像処理部107が、印刷対象の画像を作成する際に、余白のデータを挿入する必要がある。   In the present embodiment, the compressed image data corresponds to each of the plurality of images printed on the print medium, but the margin data added to the image is not included in the image data. That is, when the image processing unit 107 creates an image to be printed, it is necessary to insert margin data.

本実施形態では余白データを画像に付加する場合に、印刷対象の画像の各ラインが復号されたときに、そのラインの画像データに余白のデータを付加する。そして余白データが付加された画像データを、RAM206にラインに対応するデータを書き込む。よって、余白の書き込みのためにRAM206へアクセスしなくても、余白データを適切に付加することができる。   In this embodiment, when margin data is added to an image, when each line of the image to be printed is decoded, the margin data is added to the image data of that line. Then, the image data with the margin data added is written in the RAM 206 as data corresponding to the line. Therefore, margin data can be appropriately added without accessing the RAM 206 for margin writing.

次に、本実施形態における、画像データの復号化処理、クリップ処理、固定データの付加処理について詳細に説明する。以下、画像データは、周辺画素を予測値として参照して圧縮符号化する圧縮符号化方式が実行されているとする。しかしながら、圧縮符号化方式については、他の方式が用いられても良い。   Next, image data decoding processing, clip processing, and fixed data addition processing in the present embodiment will be described in detail. Hereinafter, it is assumed that the image data is subjected to a compression encoding method that performs compression encoding with reference to surrounding pixels as predicted values. However, other compression schemes may be used.

図3は、本実施形態における復号化処理を実行するデータ復号部202のブロック構成を示す図である。画像復号部301は、入力された圧縮コード(圧縮符号化された画像データ)と参照ライン(復号化の際の参照用の画像データ)に従って、画像データを復号化して復号データを固定データ付加部304に出力する。固定データ付加部304は、復号化された画像データに後続して固定データを付加する。固定データが付加されたデータは出力データとして、RAM206に格納する。制御部302は、画像復号部301に対する復号化終了指示と、固定データ付加部304に対するデータ出力終了指示を行う。制御部302内のカウンタ303は、復号化処理若しくは固定データの付加処理が終了した画素数をカウントする。制御部302は、カウンタ303のカウンタ値と、第1パラメータと、第2パラメータとに基づいて、上記の復号化終了指示とデータ出力終了指示を行う。   FIG. 3 is a diagram illustrating a block configuration of the data decoding unit 202 that executes the decoding process according to the present embodiment. The image decoding unit 301 decodes the image data according to the input compressed code (compressed and encoded image data) and the reference line (reference image data at the time of decoding), and adds the decoded data to the fixed data adding unit. It outputs to 304. The fixed data adding unit 304 adds fixed data subsequent to the decoded image data. The data to which the fixed data is added is stored in the RAM 206 as output data. The control unit 302 issues a decoding end instruction to the image decoding unit 301 and a data output end instruction to the fixed data adding unit 304. The counter 303 in the control unit 302 counts the number of pixels for which the decoding process or the fixed data addition process has been completed. The control unit 302 performs the decoding end instruction and the data output end instruction based on the counter value of the counter 303, the first parameter, and the second parameter.

上記第1パラメータは、復号化対象の画像の1ラインの画素数を示す。よって、復号済みの画素の数が、第1パラメータが示す画素数に達した場合に、当該ラインの復号化処理が完了したと判断することができる。また上記第2パラメータは、画像に付加される余白の大きさを示し、具体的には画像の各ラインに付加される余白の画素数を示す。よって、第2パラメータが示す画素数分の余白データをラインに挿入した場合に、当該ラインに対する余白の付加が完了したと判断することができる。   The first parameter indicates the number of pixels in one line of the image to be decoded. Therefore, when the number of decoded pixels reaches the number of pixels indicated by the first parameter, it can be determined that the decoding process for the line has been completed. The second parameter indicates the size of the margin added to the image, and specifically indicates the number of margin pixels added to each line of the image. Therefore, when margin data for the number of pixels indicated by the second parameter is inserted into a line, it can be determined that the addition of the margin to the line has been completed.

よって第1パラメータが示す画素数分の復号化が完了したときに上記の復号化終了指示を行い、第2のパラメータが示す画素数分の余白データを付加したときに上記のデータ出力指示を行うことで、当該ラインの印刷データを適切に生成することができる。   Therefore, when the decoding for the number of pixels indicated by the first parameter is completed, the above-mentioned decoding end instruction is given, and when the margin data for the number of pixels indicated by the second parameter is added, the above-mentioned data output instruction is given. Thus, the print data of the line can be appropriately generated.

なお、上記の第1パラメータ、第2パラメータは、ホストコンピュータから受信した印刷ジョブ内の情報を参照することで決定することができる。例えば印刷ジョブを解析し、印刷ジョブに含まれる画像データの画素数を取得することで第1パラメータを決定することができる。さらに、ホストコンピュータにより作成された印刷ジョブには、ホストコンピュータにおける印刷設定に応じて、用紙サイズや余白の設定情報(出力条件)が含まれる。よって、それらの情報を参照することにより、当該印刷における余白の大きさを判定し、その判定結果に応じて、余白の画素数を示す第2パラメータを決定することができる。このように、CPU201は、印刷ジョブを受信したときに、その印刷ジョブを参照して第1パラメータ、第2パラメータを特定し、それらのパラメータをRAM206に格納する。   The first parameter and the second parameter can be determined by referring to information in the print job received from the host computer. For example, the first parameter can be determined by analyzing the print job and acquiring the number of pixels of the image data included in the print job. Further, the print job created by the host computer includes paper size and margin setting information (output conditions) according to the print settings in the host computer. Therefore, by referring to the information, the size of the margin in the printing can be determined, and the second parameter indicating the number of pixels of the margin can be determined according to the determination result. In this way, when the CPU 201 receives a print job, the CPU 201 refers to the print job, identifies the first parameter and the second parameter, and stores these parameters in the RAM 206.

図4は、本実施形態の動作の概念を説明するための図である。図4を参照しながら、第1及び第2パラメータと、復号化処理と、余白部分に対応する固定データの付加処理との関係について説明する。まず、画像データの復号化処理では、システムバスを介してRAM206から読み出した圧縮コードと参照ラインを用いて復号化処理を行う。復号化された画像データは、印刷出力用のデータとして用いられる他、後続のライン分の復号化処理における参照データとしても用いられるので、順次、システムデータバスを介してRAM206に送出される。つまり、各ライン毎に復号化処理を行う際にはRAM206から既に復号化済みの復号データを参照ラインとして読み出して参照するようにする。   FIG. 4 is a diagram for explaining the concept of the operation of the present embodiment. With reference to FIG. 4, the relationship between the first and second parameters, the decoding process, and the process of adding fixed data corresponding to the margin part will be described. First, in the decoding process of the image data, the decoding process is performed using the compressed code and the reference line read from the RAM 206 via the system bus. The decoded image data is used not only as data for print output but also as reference data in the decoding process for the subsequent lines, so that it is sequentially sent to the RAM 206 via the system data bus. That is, when the decoding process is performed for each line, the decoded data that has already been decoded from the RAM 206 is read out as a reference line for reference.

本実施形態においては、復号化処理は、第1パラメータで指定された復号右端の画素位置までの画素数分、復号化処理を行う。第1パラメータとは、集約印刷を行う際の各画像403〜405(例えばA4サイズの画像)の1ライン分の画素数である。復号化の際に、復号右端の画素位置より右側に圧縮コードが存在する場合には、復号化処理は継続せずに圧縮コードの復号化を一旦終了し、固定データ付加部304に出力する。   In the present embodiment, the decoding process is performed for the number of pixels up to the rightmost pixel position specified by the first parameter. The first parameter is the number of pixels for one line of each of the images 403 to 405 (for example, an A4 size image) when performing aggregate printing. When decoding, if a compressed code exists on the right side of the pixel position on the right end of decoding, decoding of the compressed code is temporarily terminated without continuing the decoding process and output to the fixed data adding unit 304.

第1パラメータで指定された復号右端の画素位置までの復号化を行うと、第2パラメータで指定される出力右端の画素位置まで固定データを付加する。第2パラメータとは、集約印刷を行う際の各画像の周囲の余白幅を表わす。例えば、第2パラメータとは、画素数で表わされた図4中の余白402のライン方向の画素数を表わす。ここで、固定データは、任意に設定されて良く、例えば、インク不吐出を表わす白データである。出力右端の画素位置までの固定データを生成して付加すると、1ライン分の出力データをシステムデータバス210を介してRAM206に格納する。   When decoding is performed up to the rightmost pixel position specified by the first parameter, fixed data is added up to the rightmost pixel position specified by the second parameter. The second parameter represents a margin width around each image when performing aggregate printing. For example, the second parameter represents the number of pixels in the line direction of the margin 402 in FIG. 4 represented by the number of pixels. Here, the fixed data may be arbitrarily set, for example, white data representing ink non-ejection. When fixed data up to the pixel position on the output right end is generated and added, output data for one line is stored in the RAM 206 via the system data bus 210.

また最初の1ラインについて固定データ付加部304において固定データが付加されている間に、画像復号部301においては、後続する1ラインについて復号化処理が行われる。このように、本実施形態においては、1ラインの復号化処理と次のラインの固定データ付加処理とが同時に行われる。そして、各ラインの画像データと余白データが共に、ライン毎に順次、RAM206に格納されていく。   In addition, while the fixed data is added by the fixed data adding unit 304 for the first line, the image decoding unit 301 performs a decoding process for the subsequent one line. Thus, in this embodiment, the decoding process for one line and the fixed data addition process for the next line are performed simultaneously. Then, both the image data and the margin data of each line are sequentially stored in the RAM 206 for each line.

本実施形態のようにライン毎に画像の復号、余白の挿入、RAM206への格納を行うのではなく、配置対象の各画像403〜405をRAM206に格納してから余白を挿入する場合、RAM206へのアクセス回数が多くなってしまう場合がある。例えばRAM206に対して集約印刷領域401分の余白データを格納する処理と、各画像403〜405を形成する処理と、各画像403〜405を表わす画像データをRAM206に対して格納(上書き)する処理とを行う。この場合、余白データを格納する処理と各画像データを上書きする処理とのそれぞれの処理のためにRAM206にアクセスを行わなくてはならない。従って、印刷対象の画像をメモリに格納させるために多回数のメモリアクセスが発生し得るので、印刷を行うデータ処理の効率低下を招いてしまう場合がある。   Rather than decoding the image for each line, inserting a margin, and storing it in the RAM 206 as in the present embodiment, if the margin is to be inserted after the images 403 to 405 to be arranged are stored in the RAM 206, the RAM 206 is inserted. The number of accesses may increase. For example, processing for storing margin data for the aggregate print area 401 in the RAM 206, processing for forming the images 403 to 405, and processing for storing (overwriting) image data representing the images 403 to 405 in the RAM 206. And do. In this case, the RAM 206 must be accessed for each of the processing for storing the margin data and the processing for overwriting each image data. Accordingly, many times of memory accesses may occur in order to store the image to be printed in the memory, which may cause a reduction in the efficiency of data processing for printing.

しかしながら、本実施形態の構成によると、圧縮符号化された画像データをライン単位で復号化していきながら、復号化された画像データに対しては固定データを付加する。そして各ラインの画像データと余白データを共に、RAM206に格納する。これを全ライン分繰り返すことにより、全ライン分の画像データを格納していく。その結果、RAM206に対して上記の例と比較して少ないアクセス回数で画像データおよび余白データをRAM206に書き込むことができるため、印刷の際のデータ処理の効率を向上させることができる。   However, according to the configuration of this embodiment, fixed data is added to the decoded image data while decoding the compression-encoded image data in units of lines. Then, both the image data and margin data of each line are stored in the RAM 206. By repeating this for all lines, image data for all lines is stored. As a result, image data and margin data can be written to the RAM 206 with a smaller number of accesses to the RAM 206 than in the above example, so that the efficiency of data processing during printing can be improved.

以下、図5及び図6を参照しながら、印刷装置100が、圧縮符号化された画像データを受信してから印刷するまでの処理を説明する。   Hereinafter, processing from when the printing apparatus 100 receives compression-encoded image data to printing will be described with reference to FIGS. 5 and 6.

図5は、印刷装置100が外部のホストコンピュータから圧縮符号化された画像データを受信して印刷処理を行うまでの全体的な処理の手順を示すフローチャートである。以下、図5及び図6に示す処理は、例えば、画像処理部107のCPU201がROM207に格納されている制御プログラムを実行して、図2に示す各部を制御することにより実行される。   FIG. 5 is a flowchart illustrating an overall processing procedure from when the printing apparatus 100 receives image data that has been compression-encoded from an external host computer to printing processing. Hereinafter, the processing illustrated in FIGS. 5 and 6 is executed, for example, when the CPU 201 of the image processing unit 107 executes a control program stored in the ROM 207 and controls each unit illustrated in FIG. 2.

まず、印刷装置100は、ホストコンピュータから印刷処理対象の画像データを印刷ジョブとともに受信する(S501)。なお、このとき印刷ジョブを参照することで、画像の各ラインの画素数を示す第1パラメータと、各ラインの余白の画素数を示す第2パラメータとが取得され、RAM206に格納される。また、S501で受信された画像データは、ホストコンピュータにおいて圧縮符号化された画像データであり、上述の参照ラインを用いることで復号化が可能である。印刷装置100は、参照ラインを用いて、S501において受信された圧縮符号化された画像データを復号化する(S502)。S502における復号化処理の詳細については図6を用いて後述する。なお、参照ラインは、S501において、ホストコンピュータから受信するようにしても良い。次に、印刷装置100は、S502において復号化された画像データに対して、画像処理部203により二値化処理を実行し(S503)、印刷開始命令信号を生成する(S504)。印刷装置100は、S503において二値化処理された二値化データと、印刷開始命令信号とをフレキシブルケーブルを介して、記録ヘッド101に送信する(S505)。印刷装置100は、記録ヘッド101を主走査方向に走査させながら、二値化データに基づき各ノズルからインクを吐出させることにより、記録媒体106への印刷を行う(S506)。   First, the printing apparatus 100 receives image data to be printed together with a print job from a host computer (S501). At this time, by referring to the print job, a first parameter indicating the number of pixels of each line of the image and a second parameter indicating the number of pixels of the margin of each line are acquired and stored in the RAM 206. The image data received in step S501 is image data that has been compression-encoded in the host computer, and can be decoded by using the above-described reference line. The printing apparatus 100 decodes the compression-coded image data received in S501 using the reference line (S502). Details of the decoding process in S502 will be described later with reference to FIG. The reference line may be received from the host computer in S501. Next, the printing apparatus 100 executes binarization processing on the image data decoded in S502 by the image processing unit 203 (S503), and generates a print start command signal (S504). The printing apparatus 100 transmits the binarized data binarized in S503 and the print start command signal to the recording head 101 via the flexible cable (S505). The printing apparatus 100 performs printing on the recording medium 106 by ejecting ink from each nozzle based on the binarized data while scanning the recording head 101 in the main scanning direction (S506).

図6は、図5のS502の復号化処理の手順を示すフローチャートである。まず、データ復号部202は、ホストコンピュータにおいて圧縮符号化された画像データ(圧縮コード)と参照ライン、および、第1パラメータと第2パラメータをRAM206から読み出す。そして、CPU201は、処理対象の1ライン内での処理済み画素数をカウントするカウンタ303のカウント値を初期化する(S601)。次に、RAM206から読み出した圧縮コードと参照ラインを用いて、ライン単位での復号化処理を開始する(S602)。復号化処理は、1ラインの中で、第1パラメータで指定された画素数(若しくは、画素位置でも良い)に到達するまで継続して行われる。例えば図4の画像404を復号化しているときには、第1パラメータは画像404の幅に対応する画素数を示す。そして、その画素数分の画素を処理するまで復号化処理を継続する。   FIG. 6 is a flowchart showing the procedure of the decoding process in S502 of FIG. First, the data decoding unit 202 reads from the RAM 206 image data (compressed code) and reference lines that have been compression-encoded in the host computer, as well as first and second parameters. Then, the CPU 201 initializes the count value of the counter 303 that counts the number of processed pixels in one line to be processed (S601). Next, using the compressed code read from the RAM 206 and the reference line, decoding processing in units of lines is started (S602). The decoding process is continuously performed until the number of pixels specified by the first parameter (or the pixel position may be reached) in one line is reached. For example, when the image 404 in FIG. 4 is being decoded, the first parameter indicates the number of pixels corresponding to the width of the image 404. Then, the decoding process is continued until the pixels corresponding to the number of pixels are processed.

そこで、1つの画素を復号化処理する毎に処理済み画素数を表わすカウント値をインクリメントし(S603)、処理済み画素数が第1パラメータで指定されている画素数と一致するか否かを判定する(S604)。第1パラメータは画素数を表わすものとして説明しているが、図4中の横軸方向の画素位置を表わすものであっても良い。S604で処理済み画素数が第1パラメータで指定されている画素数と一致していないと判定された場合には、後続する画素についてS602以降の処理を繰り返す。一方、S604において、処理済み画素数が第1パラメータで指定されている画素数と一致していると判定された場合には、その時点で復号化処理を終了する(S605)。処理済み画素数が第1パラメータで指定されている画素数と一致する場合とは、当該復号対象となっている画像の幅について復号化処理が完了した場合である。よって画像復号部301は、復号化された1ライン分の画像データを固定データ付加部304に出力する。   Therefore, every time one pixel is decoded, the count value indicating the number of processed pixels is incremented (S603), and it is determined whether or not the number of processed pixels matches the number of pixels specified by the first parameter. (S604). Although the first parameter has been described as representing the number of pixels, it may represent the pixel position in the horizontal axis direction in FIG. If it is determined in S604 that the number of processed pixels does not match the number of pixels specified by the first parameter, the processing from S602 onward is repeated for subsequent pixels. On the other hand, if it is determined in S604 that the number of processed pixels matches the number of pixels specified by the first parameter, the decoding process ends at that point (S605). The case where the number of processed pixels matches the number of pixels specified by the first parameter is a case where the decoding process has been completed for the width of the image to be decoded. Therefore, the image decoding unit 301 outputs the decoded image data for one line to the fixed data adding unit 304.

次に、固定データ付加部304において、固定データの付加処理を行う(S606)。固定データの付加処理は、第2パラメータに指定された画素数分、継続して行われる。例えば図4の画像404の復号化処理が完了した場合、余白402の幅に対応する画素数分の固定データが、復号化された画像データに付加される。ここで、固定データを1画素分付加する毎に処理済み画素数のカウント値をインクリメントする(S607)。その際のカウント値は、S603でカウントされた処理済み画素数との合計値となる。CPU201は、S607でカウントされたカウント値が第2パラメータで指定された出力右端までの画素数と一致するか否かを判定する(S608)。ここで、カウント値が出力右端までの画素数と一致していないと判定された場合には、後続して固定データを付加してS607以降の処理を繰り返す。一方、S608においてカウント値が出力右端までの画素数と一致していると判定された場合には、当該処理対象の1ライン分の処理が全て完了したものと判断し、S609に進む。S609では、S602〜S604において復号化された画像データと、S606〜S608において付加された固定データとを共に、RAM206に記憶する。   Next, the fixed data adding unit 304 performs fixed data adding processing (S606). The fixed data adding process is continuously performed for the number of pixels specified in the second parameter. For example, when the decoding process of the image 404 in FIG. 4 is completed, fixed data for the number of pixels corresponding to the width of the margin 402 is added to the decoded image data. Here, the count value of the number of processed pixels is incremented every time one fixed data is added (S607). The count value at that time is the total value with the number of processed pixels counted in S603. The CPU 201 determines whether or not the count value counted in S607 matches the number of pixels up to the output right end specified by the second parameter (S608). Here, when it is determined that the count value does not match the number of pixels up to the output right end, subsequently, fixed data is added, and the processing from S607 is repeated. On the other hand, if it is determined in S608 that the count value matches the number of pixels up to the output right end, it is determined that the processing for one line to be processed has been completed, and the process proceeds to S609. In S609, the image data decoded in S602 to S604 and the fixed data added in S606 to S608 are both stored in the RAM 206.

S609で当該ラインの画像データ、余白データのRAM206への記憶が行われると、これまでの処理済みライン数が所定のライン数に到達しているか否かを判定する(S610)。所定のライン数とは、画像403〜405の各画像を構成するライン数である。S610で所定のライン数に到達していないと判定された場合には、後続のラインについてS601からの処理を繰り返す。一方、所定のライン数に到達していると判定された場合には、復号化対象の画像の全ラインについて復号化処理が完了したとして、図6に示す処理を終了する。   When the image data and margin data of the line are stored in the RAM 206 in S609, it is determined whether or not the number of processed lines so far has reached a predetermined number of lines (S610). The predetermined number of lines is the number of lines constituting each of the images 403 to 405. If it is determined in S610 that the predetermined number of lines has not been reached, the processing from S601 is repeated for the subsequent lines. On the other hand, when it is determined that the predetermined number of lines has been reached, it is determined that the decoding process has been completed for all the lines of the image to be decoded, and the process illustrated in FIG. 6 ends.

なお、図6では復号化対象の画像の右端に余白が設けられるラインに対する処理の例を示した。復号化対象の上下に設けられる余白に対応するラインについては、余白が設けられた画像の1ラインに対応する画素数の余白データが、ライン毎に順次RAM206に記憶される。   FIG. 6 shows an example of processing for a line in which a blank is provided at the right end of the decoding target image. For the lines corresponding to the margins provided above and below the decoding target, the margin data of the number of pixels corresponding to one line of the image provided with the margins is sequentially stored in the RAM 206 for each line.

図6においては、1つのライン分について着目して処理を説明しているが、S606以降において、後続するライン分についてS601〜S605が行われるように、CPU201が画像復号部301と固定データ付加部304とを制御する。このように、本実施形態においては、復号化処理、固定データ(余白データ)の付加処理を、画像を構成するラインごとに行い、余白データが付加された画像データをライン毎に順次RAM206に記憶させる(記憶制御)。よって、余白データをRAM206に記憶させる処理と、復号化された画像データをRAM206に記憶させる処理とを個別に行わなくてもよい。そのため、復号化データおよび余白データをRAM206に書き込むためのアクセス回数を低減することができる。従って、例えば複数の画像を整列して印刷する集約印刷を行う場合に、印刷対象の各画像の画像データを容易にメモリに記憶させることができる。   In FIG. 6, the processing is described focusing on one line. However, in S <b> 606 and subsequent steps, the CPU 201 performs the image decoding unit 301 and the fixed data adding unit so that S <b> 601 to S <b> 605 are performed for the subsequent lines. 304 is controlled. As described above, in this embodiment, the decoding process and the addition process of the fixed data (margin data) are performed for each line constituting the image, and the image data with the margin data added is sequentially stored in the RAM 206 for each line. (Memory control) Therefore, the process for storing the margin data in the RAM 206 and the process for storing the decoded image data in the RAM 206 may not be performed separately. Therefore, the number of accesses for writing the decoded data and the margin data into the RAM 206 can be reduced. Therefore, for example, when performing collective printing in which a plurality of images are aligned and printed, the image data of each image to be printed can be easily stored in the memory.

なお、本実施形態では、復号化処理が行われた画像データに、固定データ(余白データ)を付加する例を示したが、固定データ付加部304により作成された固定データに、画像復号部301により復号化された画像データを付加する場合であってもよい。   In the present embodiment, an example in which fixed data (margin data) is added to image data that has been subjected to decoding processing has been described. However, the image decoding unit 301 is added to fixed data created by the fixed data adding unit 304. It may be a case where the image data decoded by is added.

〔実施形態2〕
以上の説明では、画像の右側に余白を設ける例について説明したが、本実施形態では、画像の左側にも余白を設ける例について説明する。
[Embodiment 2]
In the above description, the example in which the margin is provided on the right side of the image has been described. In the present embodiment, an example in which the margin is provided on the left side of the image will be described.

図1〜図2、図5の説明は、本実施形態においても同じである。図7は、本実施形態におけるデータ復号部202の構成を示すブロック図である。画像復号部701は、図3の画像復号部301と同様に、入力された圧縮コードと参照ラインとに従って画像の復号を行う。固定データ付加部704は、図3の固定データ付加部304と同様に、復号データに対して固定データの付加処理を行う。   The description of FIGS. 1 to 2 and FIG. 5 is the same in this embodiment. FIG. 7 is a block diagram illustrating a configuration of the data decoding unit 202 in the present embodiment. Similar to the image decoding unit 301 in FIG. 3, the image decoding unit 701 decodes an image according to the input compressed code and reference line. The fixed data adding unit 704 performs the process of adding fixed data to the decoded data in the same manner as the fixed data adding unit 304 in FIG.

制御部702は、図3の制御部302と同様に、画像復号部701に対する復号開始指示と終了指示、固定データ付加部704に対するデータ出力開始指示と終了指示を行う。カウンタ703は、図3のカウンタ303と同様に、処理済み画素数をカウントする。但し、本実施形態においては、制御部702は、カウンタ値と第1パラメータと第2パラメータとに基づいて復号終了指示とデータ出力終了指示を行い、カウンタ値と第3パラメータと第4パラメータとに基づいて復号開始指示とデータ出力開始指示を行う。   Similar to the control unit 302 in FIG. 3, the control unit 702 issues a decoding start instruction and an end instruction to the image decoding unit 701 and a data output start instruction and an end instruction to the fixed data adding unit 704. The counter 703 counts the number of processed pixels similarly to the counter 303 in FIG. However, in the present embodiment, the control unit 702 issues a decoding end instruction and a data output end instruction based on the counter value, the first parameter, and the second parameter, and sets the counter value, the third parameter, and the fourth parameter. Based on this, a decoding start instruction and a data output start instruction are performed.

なお、第3パラメータ、第4パラメータはそれぞれ、余白が付加された印刷対象のア画像における、画像の左側に設けられる余白の左端の位置と、画像の左側に設けられる余白の右端(もしくは画像の左端)の位置を示す。また上記の第1パラメータ、第2パラメータはそれぞれ、画像の右側に設けられる余白の左端(もしくは画像の右端)の位置と、画像の右側に設けられる余白の右端の位置を示す。   The third parameter and the fourth parameter are respectively the left edge position of the margin provided on the left side of the image and the right edge of the margin provided on the left side of the image (or the image's right edge). The leftmost position is shown. The first parameter and the second parameter indicate the position of the left end of the margin (or the right end of the image) provided on the right side of the image and the position of the right end of the margin provided on the right side of the image, respectively.

また第3パラメータ、第4パラメータは、上記の第1パラメータ、第2パラメータと同様に、印刷ジョブ内の情報を参照して、左側の余白の大きさを判定することにより決定することができる。   Similarly to the first parameter and the second parameter, the third parameter and the fourth parameter can be determined by referring to the information in the print job and determining the size of the left margin.

図8は、本実施形態の動作の概念を説明するための図である。本実施形態においても、システムデータバス210を介してRAM206から読み出した圧縮コードと参照用の画像データを用いて復号処理を行う。復号された画像データは、印刷出力用のデータとして用いられる他、後続するライン分の復号化処理において参照データとしても用いられるので、順次、システムデータバスを介してRAM206に送出される。   FIG. 8 is a diagram for explaining the concept of the operation of the present embodiment. Also in the present embodiment, the decoding process is performed using the compressed code read from the RAM 206 via the system data bus 210 and the reference image data. The decoded image data is used not only as print output data but also as reference data in the decoding process for the subsequent lines, so that it is sequentially sent to the RAM 206 via the system data bus.

図7に示す第4パラメータは、図8に示す出力左端の画素位置を表わしている。例えば、図8中の集約印刷領域801の横軸方向の座標位置でも良い。本実施形態においては、例えば画像803の復号化処理に先立ち、第4パラメータで指定される出力左端の位置から、第3パラメータで指定される復号左端の位置まで固定データを付加する。固定データについては、実施形態1における説明と同じである。   The fourth parameter shown in FIG. 7 represents the pixel position at the output left end shown in FIG. For example, the coordinate position in the horizontal axis direction of the consolidated print area 801 in FIG. 8 may be used. In the present embodiment, for example, prior to the decoding process of the image 803, fixed data is added from the output left end position specified by the fourth parameter to the decoding left end position specified by the third parameter. The fixed data is the same as described in the first embodiment.

次に、復号化処理は、第3パラメータで指定される復号左端の位置から開始し、第1パラメータで指定される復号右端の位置まで行われる。図7に示す第1パラメータ及び第2パラメータは、図3における説明と同じである。図8における第3パラメータから第1パラメータの画素数分復号化処理を行い、後続して第2パラメータの画素数分固定データを付加する付加処理を行うことについても、図3における説明と同じである。   Next, the decoding process starts from the decoding left end position specified by the third parameter, and is performed up to the decoding right end position specified by the first parameter. The first parameter and the second parameter shown in FIG. 7 are the same as described in FIG. The decoding process for the number of pixels of the first parameter from the third parameter in FIG. 8 and the additional process for adding the fixed data for the number of pixels of the second parameter are also the same as the description in FIG. is there.

図9は、本実施形態における復号化処理の手順を示すフローチャートである。図9に示す処理は、例えば、画像処理部107のCPUが図2に示す各部を制御することにより実行される。まず、データ復号部202は、ホストコンピュータにおいて圧縮符号化された画像データ(圧縮コード)と参照ライン、および、第1パラメータと第2パラメータをRAM206から読み出す。そして、1ライン内の処理済み画素数をカウントするカウンタ703に対して、初期値として出力左端の位置を示す第4パラメータを設定する(S901)。次に、図8に示す出力左端位置から固定データの付加処理を行う(S902)。固定データの付加処理は、第3パラメータに指定されている復号左端の位置に到達するまで継続して行われる。固定データを1画素分付加する毎に、カウンタ703のカウント値をインクリメントし(S903)、カウント値が第3パラメータに指定されている復号左端の位置と一致するか否かを判定する(S904)。ここで、カウント値が復号左端の位置と一致していないと判定された場合には、S902以降の処理を繰り返す。一方、カウント値が復号左端の位置と一致していると判定された場合には、画像802の現在対象としているライン分の左端部に対して、固定データ付加処理が終了したと判定する(S905)。   FIG. 9 is a flowchart showing the procedure of the decoding process in the present embodiment. The process shown in FIG. 9 is executed, for example, when the CPU of the image processing unit 107 controls each unit shown in FIG. First, the data decoding unit 202 reads from the RAM 206 image data (compressed code) and reference lines that have been compression-encoded in the host computer, as well as first and second parameters. Then, the fourth parameter indicating the position of the output left end is set as an initial value for the counter 703 that counts the number of processed pixels in one line (S901). Next, fixed data addition processing is performed from the output left end position shown in FIG. 8 (S902). The process of adding fixed data is continuously performed until the position at the left end of decoding specified by the third parameter is reached. Each time one piece of fixed data is added, the count value of the counter 703 is incremented (S903), and it is determined whether or not the count value matches the position of the decoding left end specified in the third parameter (S904). . Here, if it is determined that the count value does not match the position at the left end of the decoding, the processing from S902 is repeated. On the other hand, if it is determined that the count value matches the position of the left end of decoding, it is determined that the fixed data addition processing has been completed for the left end portion of the current target line of the image 802 (S905). ).

S905の後、RAM206から読み出してきた圧縮コードと参照ラインを用いて、復号化処理を開始する(S906)。復号化処理は、1ラインの中で、第1パラメータで指定された画素位置に到達するまで継続して行われる。ここで、1つの画素を復号化処理する毎に処理済み画素数を表わすカウント値をインクリメントし(S907)、処理済み画素数に対応する画素位置が第1パラメータで指定されている画素位置と一致するか否かを判定する(S908)。S908で処理済み画素数に対応する画素位置が第1パラメータで指定されている画素位置と一致していないと判定された場合には、後続する画素についてS906以降の処理を繰り返す。一方、S908において、処理済み画素数に対応する画素位置が第1パラメータで指定されている画素位置と一致していると判定された場合には、その時点で復号化処理を終了する(S909)。画像復号部701は、復号化された1ライン分の画像データを固定データ付加部704に出力する。   After S905, the decoding process is started using the compressed code read from the RAM 206 and the reference line (S906). The decoding process is continuously performed until the pixel position designated by the first parameter is reached in one line. Here, every time one pixel is decoded, the count value indicating the number of processed pixels is incremented (S907), and the pixel position corresponding to the number of processed pixels matches the pixel position specified by the first parameter. It is determined whether or not to perform (S908). If it is determined in S908 that the pixel position corresponding to the number of processed pixels does not match the pixel position specified by the first parameter, the processing from S906 onward is repeated for subsequent pixels. On the other hand, if it is determined in S908 that the pixel position corresponding to the number of processed pixels matches the pixel position specified by the first parameter, the decoding process ends at that point (S909). . The image decoding unit 701 outputs the decoded image data for one line to the fixed data adding unit 704.

次に、固定データ付加部704において、固定データの付加処理を行う(S910)。固定データの付加処理は、第2パラメータに指定された画素数分、継続して行われる。ここで、固定データを1画素分付加する毎に処理済み画素数のカウント値をインクリメントする(S911)。その際のカウント値は、S907でカウントされた処理済み画素数との合計値となる。CPUは、S911でカウントされたカウント値が第2パラメータで指定された出力右端までの画素数と一致するか否かを判定する(S912)。ここで、カウント値が出力右端までの画素数と一致していないと判定された場合には、後続して固定データを付加してS910以降の処理を繰り返す。一方、S912においてカウント値が出力右端までの画素数と一致していると判定された場合には、当該処理対象の1ライン分の処理が全て完了したと判断して、S913に進む。S913では、S902〜S908において復号化された画像データと、S902〜S904、S910〜S912において付加された固定データとを共に、RAM206に記憶する。   Next, the fixed data adding unit 704 performs fixed data adding processing (S910). The fixed data adding process is continuously performed for the number of pixels specified in the second parameter. Here, every time the fixed data is added for one pixel, the count value of the number of processed pixels is incremented (S911). The count value at that time is the total value with the number of processed pixels counted in S907. The CPU determines whether or not the count value counted in S911 matches the number of pixels up to the output right end specified by the second parameter (S912). Here, when it is determined that the count value does not match the number of pixels up to the output right end, subsequently, fixed data is added, and the processing from S910 is repeated. On the other hand, if it is determined in S912 that the count value matches the number of pixels up to the output right end, it is determined that the processing for one line to be processed has been completed, and the process proceeds to S913. In S913, the image data decoded in S902 to S908 and the fixed data added in S902 to S904 and S910 to S912 are both stored in the RAM 206.

S913で当該ラインの画像データ、余白データのRAM206への記憶が行われると、これまでの処理済みライン数が所定のライン数に到達しているか否かを判定する(S914)。所定のライン数とは、画像データを構成しているライン数である。S914で所定のライン数に到達していないと判定された場合には、後続のラインについてS901からの処理を繰り返す。一方、所定のライン数に到達していると判定された場合には、復号化処理の画像の全ラインについて復号化処理が完了したとして、図9に示す処理を終了する。   When the image data and margin data of the line are stored in the RAM 206 in S913, it is determined whether or not the number of processed lines so far has reached a predetermined number of lines (S914). The predetermined number of lines is the number of lines constituting the image data. If it is determined in S914 that the predetermined number of lines has not been reached, the processing from S901 is repeated for subsequent lines. On the other hand, when it is determined that the predetermined number of lines has been reached, it is determined that the decoding process has been completed for all the lines of the image of the decoding process, and the process illustrated in FIG. 9 ends.

以上、実施形態1及び2において、図3及び図7で説明した画像復号部と、制御部と、カウンタと、固定データ付加部とは、1つのASICによる電気回路として構成しても良い。   As described above, in the first and second embodiments, the image decoding unit, the control unit, the counter, and the fixed data adding unit described with reference to FIGS. 3 and 7 may be configured as an electric circuit using one ASIC.

なお、以上の実施形態では、1ラインずつ復号化処理、余白データの付加処理を実行する例について説明したが、これに限らない。例えば所定の複数ライン毎に復号化処理、余白データの付加処理を実行してもよい。さらに、所定の条件に応じて、一度に符号化処理、余白データの付加処理を行うラインの数を切り替えてもよい。例えば画像データの内容に応じて、一度に処理を行うラインの数を切り替えてもよい。   In the above embodiment, the example in which the decoding process and the margin data adding process are executed line by line has been described. However, the present invention is not limited to this. For example, a decoding process and a margin data adding process may be executed for each predetermined plurality of lines. Furthermore, the number of lines on which encoding processing and margin data addition processing are performed at a time may be switched in accordance with predetermined conditions. For example, the number of lines to be processed at a time may be switched according to the contents of the image data.

また、以上の実施形態では画像の出力の例として、印刷装置による印刷を例に説明したが、これに限らない。以上の実施形態で示した処理は、表示装置による表示などの各種の出力処理に適用できるものである。   In the above embodiment, printing by a printing apparatus has been described as an example of image output. However, the present invention is not limited to this. The process shown in the above embodiment can be applied to various output processes such as display by a display device.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又はコンピュータ読取可能な各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。さらに、1つのコンピュータ(またはCPUやMPU等)が処理を実行する場合に限らない。複数のコンピュータ(またはCPUやMPU等)が協働することにより、処理を実行する場合であっても、以上の実施形態で示した処理を実現することができる。また、コンピュータ(またはCPUやMPU等)がROM等のメモリに記憶されているプログラムを実行する場合に限らず、以上の実施形態で示した処理を行うためのハードウェア(回路等)により、処理を行ってもよい。さらに、以上の実施形態で示した処理の一部をコンピュータ(またはCPUやMPU等)が実行し、残りの部分をハードウェアにより実行する場合であってもよい。   The present invention can also be realized by executing the following processing. In other words, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various computer-readable storage media, and the computer of the system or apparatus (or CPU, MPU, etc.) This is a process of reading and executing a program. Furthermore, it is not limited to the case where one computer (or CPU, MPU, or the like) executes processing. Even when a plurality of computers (or CPUs, MPUs, etc.) cooperate to execute the processing, the processing described in the above embodiments can be realized. Further, not only when a computer (or CPU, MPU, etc.) executes a program stored in a memory such as a ROM, but processing is performed by hardware (circuit, etc.) for performing the processing shown in the above embodiments. May be performed. Furthermore, a part of the processing shown in the above embodiment may be executed by a computer (or CPU, MPU, etc.) and the remaining part may be executed by hardware.

Claims (13)

出力対象の画像に対応する、圧縮された画像データを取得する取得手段と、
前記取得手段が取得した前記圧縮された画像データのうちの、前記出力対象の画像における1または複数のラインに対応する一部の画像データを復号化する復号化手段と、
前記復号化手段により前記1または複数のラインごとに順次復号化される画像データと、当該1または複数のラインに設けられる余白に対応する余白データとを含む、当該1または複数のラインに対応する記憶対象のデータを作成し、当該作成された記憶対象のデータを、当該1または複数のラインごとに順次メモリに記憶させる記憶制御手段と、
を備え、
前記記憶制御手段は、
前記画像データと前記余白データのうちの当該画像データのみの記憶のために前記メモリへアクセスせず、且つ、当該画像データと当該余白データのうちの当該余白データのみの記憶のために前記メモリへアクセスせずに、前記記憶対象のデータの記憶のために前記メモリにアクセスすることで、当該記憶対象のデータを前記メモリに記憶することを特徴とするデータ処理装置。
Acquisition means for acquiring compressed image data corresponding to an image to be output;
Decoding means for decoding a part of the image data corresponding to one or a plurality of lines in the output target image of the compressed image data acquired by the acquisition means;
Corresponding to the one or a plurality of lines including the image data sequentially decoded for each of the one or a plurality of lines by the decoding means and the margin data corresponding to the margins provided in the one or the plurality of lines. Storage control means for creating data to be stored, and storing the created data to be stored in the memory sequentially for each of the one or more lines;
With
The storage control means
The memory is not accessed to store only the image data of the image data and the margin data, and to the memory to store only the margin data of the image data and the margin data. A data processing apparatus that stores the data to be stored in the memory by accessing the memory for storing the data to be stored without accessing the data.
前記記憶制御手段は、
前記記憶対象のデータの作成まで、当該記憶対象のデータに含まれる前記画像データの前記メモリへのアクセスと、当該記憶対象のデータに含まれる前記余白データの前記メモリへのアクセスを待機し、当該記憶対象のデータが作成された後、前記メモリにアクセスすることで、当該記憶対象のデータを前記メモリに記憶することを特徴とする請求項1に記載のデータ処理装置。
The storage control means
Until the creation of the data to be stored, waiting for access to the memory of the image data included in the data to be stored and access to the memory of the margin data included in the data to be stored, The data processing apparatus according to claim 1, wherein the data to be stored is stored in the memory by accessing the memory after the data to be stored is created .
前記取得手段は、さらに前記出力対象の画像が出力されるときの出力条件を特定するための情報を取得し、前記記憶制御手段は、当該取得された情報により特定される前記出力条件に基づ前記余白データを含む前記記憶対象のデータを作成することを特徴とする請求項1又は2に記載のデータ処理装置。 The acquisition unit acquires the information for identifying the output condition when the still image of the output object is output, the storage control means based on the output conditions specified by the acquired information Ku data processing apparatus according to claim 1 or 2, characterized in that to create the data of the memory object, including the blank data. 前記記憶制御手段は、前記取得手段により取得された前記情報に基づいて、前記出力対象の画像に設けられる余白の大きさを決定し、当該決定された大きさに対応する余白データを含む前記記憶対象のデータを作成することを特徴とする請求項3に記載のデータ処理装置。 The storage control unit determines a size of a margin provided in the output target image based on the information acquired by the acquisition unit, and includes the margin data corresponding to the determined size. The data processing apparatus according to claim 3, wherein target data is created. 前記記憶制御手段は、前記取得手段により取得された前記情報に基づいて、前記出力対象の画像の前記1または複数のラインのうちの前記メモリに記憶される領域を決定し、当該決定された領域に対応する画像データを含む前記記憶対象のデータを前記メモリに記憶させることを特徴とする請求項3又は4に記載のデータ処理装置。 The storage control unit determines an area to be stored in the memory among the one or more lines of the image to be output based on the information acquired by the acquisition unit, and the determined area 5. The data processing apparatus according to claim 3, wherein the storage target data including image data corresponding to is stored in the memory. 前記取得手段は、前記出力条件を特定するための前記情報として、前記出力対象の画像が印刷されるときの印刷設定を示す情報を取得することを特徴とする請求項3乃至5のいずれか1項に記載のデータ処理装置。   6. The information acquisition apparatus according to claim 3, wherein the acquisition unit acquires information indicating a print setting when the output target image is printed, as the information for specifying the output condition. The data processing device according to item. 前記記憶制御手段により前記メモリに記憶された前記記憶対象のデータに基づき、前記出力対象の画像を出力する出力手段、を更に備えることを特徴とする請求項1乃至6のいずれか1項に記載のデータ処理装置。 The output device according to any one of claims 1 to 6, further comprising output means for outputting the output target image based on the storage target data stored in the memory by the storage control means. Data processing equipment. 前記出力手段は、印刷手段に、前記出力対象の画像を記録媒体へ印刷させることを特徴とする請求項7に記載のデータ処理装置。 And the output means, the printing means, the data processing apparatus according to claim 7, characterized in that to print the image of the output object to record medium. 前記印刷手段としての印刷部を備えることを特徴とする請求項8に記載のデータ処理装置。The data processing apparatus according to claim 8, further comprising a printing unit as the printing unit. 前記取得手段により取得された画像データに基づく複数の画像が前記記録媒体において前記1または複数のラインに沿った方向に配置された状態で前記印刷手段により印刷される場合に、前記記憶制御手段は、前記複数の画像に対応する前記記憶対象のデータを前記メモリに記憶することを特徴とする請求項8又は9に記載のデータ処理装置。When the plurality of images based on the image data acquired by the acquisition unit are printed by the printing unit in a state in which the plurality of images are arranged in the direction along the one or more lines on the recording medium, the storage control unit The data processing apparatus according to claim 8, wherein the data to be stored corresponding to the plurality of images is stored in the memory. 前記記憶制御手段は、The storage control means
第1の記憶制御として、前記複数の画像のうちの第1の画像における1または複数のラインごとに、前記記憶対象のデータを前記メモリに順次記憶し、且つ、第2の記憶制御として、前記複数の画像のうちの第2の画像における1または複数のラインごとに、前記記憶対象のデータを前記メモリに順次記憶することを特徴とする請求項10に記載のデータ処理装置。As the first storage control, the storage target data is sequentially stored in the memory for each one or a plurality of lines in the first image of the plurality of images, and as the second storage control, The data processing apparatus according to claim 10, wherein the data to be stored is sequentially stored in the memory for each of one or more lines in a second image of the plurality of images.
取得手段が、出力対象の画像に対応する、圧縮された画像データを取得する取得工程と、
復号化手段が、前記取得工程において取得された前記圧縮された画像データのうちの、前記出力対象の画像における1または複数のラインに対応する一部の画像データを復号化する復号化工程と、
記憶制御手段が、前記復号化工程において前記1または複数のラインごとに順次復号化される画像データと、当該1または複数のラインに設けられる余白に対応する余白データとを含む、当該1または複数のラインに対応する記憶対象のデータを作成し、当該作成された記憶対象のデータを、当該1または複数のラインごとに順次メモリに記憶させる所定の記憶制御を実行する記憶制御工程と、
を有し、
前記記憶制御工程では、
前記画像データと前記余白データのうちの当該画像データのみの記憶のために前記メモリへアクセスせず、且つ、当該画像データと当該余白データのうちの当該余白データのみの記憶のために前記メモリへアクセスせずに、前記記憶対象のデータの記憶のために前記メモリにアクセスすることで、当該記憶対象のデータを前記メモリに記憶することを特徴とするデータ処理方法。
An obtaining step for obtaining compressed image data corresponding to an image to be output;
A decoding step of decoding a part of the image data corresponding to one or a plurality of lines in the image to be output, of the compressed image data acquired in the acquisition step;
Storage control means includes an image data sequentially decoded per the one or more lines in the decoding step, a blank data corresponding to the margin provided in the one or more lines, the one or more A storage control step of creating a storage target data corresponding to the line, and executing a predetermined storage control for sequentially storing the generated storage target data in the memory for each of the one or a plurality of lines;
I have a,
In the storage control step,
The memory is not accessed to store only the image data of the image data and the margin data, and to the memory to store only the margin data of the image data and the margin data. A data processing method comprising: storing the storage target data in the memory by accessing the memory for storing the storage target data without accessing the storage target data .
請求項1乃至11のいずれか1項に記載のデータ処理装置の各手段としてコンピュータを機能させるプログラム。 Program for causing a computer to function as each means of the data processing apparatus according to any one of claims 1 to 11.
JP2012192289A 2012-08-31 2012-08-31 Data processing apparatus, data processing method and program Active JP6140952B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012192289A JP6140952B2 (en) 2012-08-31 2012-08-31 Data processing apparatus, data processing method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012192289A JP6140952B2 (en) 2012-08-31 2012-08-31 Data processing apparatus, data processing method and program

Publications (2)

Publication Number Publication Date
JP2014049978A JP2014049978A (en) 2014-03-17
JP6140952B2 true JP6140952B2 (en) 2017-06-07

Family

ID=50609222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012192289A Active JP6140952B2 (en) 2012-08-31 2012-08-31 Data processing apparatus, data processing method and program

Country Status (1)

Country Link
JP (1) JP6140952B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3303982B2 (en) * 1992-03-26 2002-07-22 株式会社リコー Terminal device
JP2005210488A (en) * 2004-01-23 2005-08-04 Canon Inc Data decryption device

Also Published As

Publication number Publication date
JP2014049978A (en) 2014-03-17

Similar Documents

Publication Publication Date Title
JP5728948B2 (en) RECORDING SYSTEM, RECORDING SYSTEM CONTROL METHOD, RECORDING CONTROL DEVICE, AND PROGRAM
US9317788B2 (en) Image processing apparatus for performing image processing for recording text and images, and image processing method for performing image processing for recording text and images
US9672450B2 (en) Image recording apparatus and control method therefor
JP6140952B2 (en) Data processing apparatus, data processing method and program
US20120044526A1 (en) Printing apparatus and processing method for the same
JP2011135558A (en) Image processing apparatus and image processing method
JP3613076B2 (en) Image processing apparatus, image processing method, and recording medium
JP5929128B2 (en) Printing device
JP4544141B2 (en) Image processing device, printer driver, printing system, program
US10095448B2 (en) Image data generating apparatus, an image data generating method, and a printing system
JP4603933B2 (en) Recording device
JP6160023B2 (en) Printing device
JP5699448B2 (en) Information processing device
JP2011230358A (en) Image forming apparatus, control method therefor and, computer program
JP4435106B2 (en) Data transfer system, electronic equipment
JP2011000826A (en) Method for encoding record mask, recording method, and recorder
JP4641459B2 (en) Information processing apparatus and printer driver
JP5851201B2 (en) Image processing apparatus and printing system
JP2019142144A (en) Image formation apparatus, image formation method, image processing apparatus and image processing method
JP4544142B2 (en) Image processing device, printer driver, printing system, program
JP4804311B2 (en) Image processing apparatus, control method therefor, computer program, and computer-readable storage medium
JP2007136845A (en) Printing system, image processing device, printer driver, program
JP2008147885A (en) Image processing method and image processing apparatus
KR100771714B1 (en) Recording apparatus and data processing method for recording apparatus
JP5714156B2 (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150820

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160818

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160826

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161024

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: 20170407

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170502

R151 Written notification of patent or utility model registration

Ref document number: 6140952

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151