JP2013197984A - Jpeg compression device and image reader - Google Patents

Jpeg compression device and image reader Download PDF

Info

Publication number
JP2013197984A
JP2013197984A JP2012064091A JP2012064091A JP2013197984A JP 2013197984 A JP2013197984 A JP 2013197984A JP 2012064091 A JP2012064091 A JP 2012064091A JP 2012064091 A JP2012064091 A JP 2012064091A JP 2013197984 A JP2013197984 A JP 2013197984A
Authority
JP
Japan
Prior art keywords
unit
image data
jpeg compression
identification information
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.)
Granted
Application number
JP2012064091A
Other languages
Japanese (ja)
Other versions
JP5843158B2 (en
Inventor
Junji Maeda
純司 前田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2012064091A priority Critical patent/JP5843158B2/en
Publication of JP2013197984A publication Critical patent/JP2013197984A/en
Application granted granted Critical
Publication of JP5843158B2 publication Critical patent/JP5843158B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To prevent an increase in circuit scale.SOLUTION: A JPEG compression section 40 includes an input data switching section 44 which acquires block data according to identification information and outputs the block data and identification data; a configuration up to a zigzag sequence section 50 that executes processes which can treat the block data output from the input data switching section 44 independently by the block data among a plurality of treatment processes constituting a JPEG compression process, and outputs the block data having been processed and the identification information; and an entropy encoding section 58 which executes other processes among the plurality of processes constituting the JPEG compression process using block data related to the same identification information as the identification information of the block data, and processed by the configuration up to the zigzag sequence section 50.

Description

本明細書に開示される発明は、JPEG圧縮装置に用いられる技術に関する。   The invention disclosed in this specification relates to a technique used in a JPEG compression apparatus.

従来から、画像データに対して圧縮処理を行い、圧縮画像データを生成する装置が知られている(例えば、特許文献1)。この装置では、原稿の表裏両面の画像データを読み取る表面用の画像読取手段及び裏面用の画像読取手段を更に備えることがあり、これらの画像読取手段を用いて読み取られた表裏両面の画像データに対して圧縮処理を行うことが求められることがある。従来技術では、原稿の表面を読み取った画像データと、原稿の裏面を読み取った画像データを、それぞれ別々の処理回路を用いて圧縮処理を行い、圧縮画像データを同時に生成する技術が開示されている。   2. Description of the Related Art Conventionally, an apparatus that performs compression processing on image data and generates compressed image data is known (for example, Patent Document 1). This apparatus may further include a front-side image reading unit and a back-side image reading unit for reading image data on both sides of the document, and the image data on the front and back sides read by using these image reading units. On the other hand, it may be required to perform compression processing. In the prior art, a technique is disclosed in which image data obtained by reading the front side of a document and image data obtained by reading the back side of the document are compressed using separate processing circuits to generate compressed image data simultaneously. .

特開2009−296352号公報JP 2009-296352 A

このように、圧縮画像データを生成する装置では、複数の圧縮画像データを生成することが求められることがある。しかし、従来技術のように複数の圧縮画像データを生成するのに、例えば、表面や裏面の圧縮画像データを生成するのに、複数の処理回路を用意する必要があると、処理回路の回路規模が増大する問題が生じる。   As described above, an apparatus that generates compressed image data may be required to generate a plurality of compressed image data. However, in order to generate a plurality of compressed image data as in the prior art, for example, if it is necessary to prepare a plurality of processing circuits to generate the compressed image data of the front surface and the back surface, the circuit scale of the processing circuit This increases the problem.

本明細書に開示される発明は、画像データにJPEG圧縮処理を行うJPEG圧縮装置において、回路規模の増大を抑制する技術を開示する。   The invention disclosed in this specification discloses a technique for suppressing an increase in circuit scale in a JPEG compression apparatus that performs JPEG compression processing on image data.

本明細書によって開示されるJPEG圧縮装置は、1又は複数の入力画像データに対して、複数の処理からなるJPEG圧縮処理を行うJPEG圧縮装置であって、少なくとも、いずれの前記入力画像データであるか否かを識別する情報を有する識別情報に応じて前記入力画像データを取得し、JPEG圧縮処理の最小処理単位であるブロック単位の画像データが単数又は複数からなる画像データと前記識別情報とを出力する取得出力部と、前記取得出力部から出力された前記ブロック単位の画像データに対して、前記複数の処理のうち、独立して処理を行うことが可能な処理を実行し、該処理を実行された前記ブロック単位の画像データと前記識別情報とを出力する独立圧縮処理部と、同じ識別情報である前記独立圧縮処理部から出力された前記画像データ毎に前記複数の処理のうち、その他の処理を実行し、前記識別情報に応じたJPEG圧縮処理された画像データとして出力する非独立圧縮処理部と、を備える。   The JPEG compression apparatus disclosed in this specification is a JPEG compression apparatus that performs JPEG compression processing including a plurality of processes on one or a plurality of input image data, and at least any of the input image data. The input image data is acquired according to identification information having information for identifying whether or not, and image data consisting of one or a plurality of block-unit image data, which is a minimum processing unit of JPEG compression processing, and the identification information An acquisition output unit that outputs, and processing that can be performed independently of the plurality of processes on the block-unit image data that is output from the acquisition output unit. The independent compression processing unit that outputs the executed block-unit image data and the identification information, and the independent compression processing unit that is the same identification information are output Among the plurality of processes for each of the image data, other processing is executed, and a non-independent compression processing section for outputting as a JPEG compressed image data corresponding to the identification information.

このJPEG圧縮装置では、JPEG圧縮処理を構成する複数の処理のうち、ブロック単位で独立して処理を行うことが可能な処理については、ブロック単位の画像データに対して独立圧縮処理部が処理を実行する。そのため、1又は複数の画像データに対してJPEG圧縮処理を行って複数の圧縮画像データを生成する際に、ブロック単位で独立して処理を行うことが可能な処理については、いずれの圧縮画像データに属するブロック単位の画像データに対しても共通の独立圧縮処理部を用いて処理を実行することができ、JPEG圧縮処理を構成する全ての処理について異なる処理回路を用いて処理を実行していた従来技術に比べて、回路規模の増大を抑制することができる。   In this JPEG compression apparatus, an independent compression processing unit performs processing on block-unit image data for processing that can be independently performed on a block-by-block basis among a plurality of processes constituting the JPEG compression processing. Run. Therefore, when performing JPEG compression processing on one or a plurality of image data to generate a plurality of compressed image data, any compressed image data can be processed independently for each block. Can be executed using a common independent compression processing unit, and all the processes constituting the JPEG compression process are executed using different processing circuits. Compared to the prior art, an increase in circuit scale can be suppressed.

このJPEG圧縮装置では、前記独立圧縮処理部は、前記ブロック単位で離散コサイン変換を行うDCT変換部と、前記離散コサイン変換により生成された前記ブロック単位の各成分に対して量子化を行う量子化部と、量子化された前記ブロック単位の各成分を、関連付けられた前記識別情報に応じて切り替えて出力する第1出力切替部と、を備え、前記非独立圧縮処理部は、同一の前記識別情報に関連付けられた前記ブロック単位の各成分に対してエントロピ符号化を行い、エントロピ符号化された前記ブロック単位の各成分を前記識別情報に応じて出力する複数のエントロピ符号化出力部と、を備える構成としても良い。このJPEG圧縮装置によれば、JPEG圧縮処理を構成する複数の処理を実行する構成のうち、エントロピ符号化出力部を除く他の構成を共通に使用することができ、回路規模の増大を抑制することができる。   In this JPEG compression apparatus, the independent compression processing unit includes a DCT transform unit that performs discrete cosine transform in units of blocks, and a quantization that performs quantization on each component in units of blocks generated by the discrete cosine transform And a first output switching unit that switches and outputs each quantized component in accordance with the associated identification information, and the non-independent compression processing units have the same identification A plurality of entropy coding output units that perform entropy coding on each component of the block unit associated with information and output each component of the block unit that has been entropy coded according to the identification information; and It is good also as a structure provided. According to this JPEG compression apparatus, the configuration other than the entropy encoding output unit can be used in common among the configurations that execute a plurality of processes constituting the JPEG compression process, and an increase in circuit scale is suppressed. be able to.

このJPEG圧縮装置では、前記独立圧縮処理部は、前記ブロック単位で離散コサイン変換を行うDCT変換部と、前記離散コサイン変換により生成された前記ブロック単位の各成分に対して量子化を行う量子化部と、を備え、前記非独立圧縮処理部は、前記量子化部により量子化された前記ブロック単位の各成分を、関連付けられた前記識別情報に応じてエントロピ符号化を行うエントロピ符号化部と、前記識別情報に応じて前記ブロック単位の各成分を出力する第2出力切替部と、を備え、前記エントロピ符号化部は、前記識別情報毎に1つ前に出力された前記ブロック単位の各成分の先頭成分を保持する複数の保持部と、前記ブロック単位の成分群の先頭成分から、当該ブロック単位の成分群に関連付けられた前記識別情報に対応する前記保持部に保持された前記先頭成分を差し引いて、前記先頭成分の差分を出力する差分取得部と、を有し、前記差分された前記先頭成分と、前記ブロック単位の成分群の先頭成分以外の成分とに対してエントロピ符号化を行う構成としても良い。このJPEG圧縮装置によれば、JPEG圧縮処理を構成する複数の処理を実行する構成のうち、エントロピ符号化部に含まれる保持部を除く他の構成を共通に使用することができ、回路規模の増大を抑制することができる。   In this JPEG compression apparatus, the independent compression processing unit includes a DCT transform unit that performs discrete cosine transform in units of blocks, and a quantization that performs quantization on each component in units of blocks generated by the discrete cosine transform An entropy encoding unit that performs entropy encoding on each component of the block unit quantized by the quantization unit according to the associated identification information, and the non-independent compression processing unit A second output switching unit that outputs each component of the block unit according to the identification information, and the entropy encoding unit outputs each of the block units output one before for each of the identification information Corresponding to the identification information associated with the component group of the block unit from a plurality of holding units that hold the head component of the component and the head component of the component unit of the block unit A difference acquisition unit that subtracts the head component held in the storage unit and outputs a difference between the head components, and the difference between the head component and the head component other than the head component of the block unit component group It is good also as a structure which performs entropy encoding with respect to these components. According to this JPEG compression apparatus, it is possible to use in common a configuration other than the holding unit included in the entropy encoding unit among the configurations that execute a plurality of processes constituting the JPEG compression process. The increase can be suppressed.

このJPEG圧縮装置では、前記独立圧縮処理部は、更に、前記識別情報に応じた複数の量子化テーブルと、前記識別情報に応じて前記量子化テーブルを切り替えて、切り替えられた量子化テーブルの情報を出力する第1セレクタと、を備え、前記量子化部は、前記第1セレクタによって出力された量子化テーブルの情報を用いて前記量子化を行う構成としても良い。このJPEG圧縮装置によれば、第1セレクタによって出力された量子化テーブルの情報を用いて入力画像データを好適に量子化することができる。   In this JPEG compression apparatus, the independent compression processing unit further switches a plurality of quantization tables according to the identification information and the quantization table according to the identification information, and information of the switched quantization table The quantization unit may be configured to perform the quantization using information of a quantization table output by the first selector. According to this JPEG compression apparatus, it is possible to suitably quantize the input image data using the information in the quantization table output by the first selector.

このJPEG圧縮装置では、前記非独立圧縮処理部は、更に、前記識別情報に応じた複数のエントロピ符号化テーブルと、前記識別情報に応じて前記エントロピ符号化テーブルを切り替えて、切り替えられたエントロピ符号化テーブルの情報を出力する第2セレクタと、を備え、前記エントロピ符号化部は、前記第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて前記エントロピ符号化を行う構成としても良い。このJPEG圧縮装置によれば、第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて入力画像データを好適にエントロピ符号化することができる。   In this JPEG compression apparatus, the non-independent compression processing unit further switches between a plurality of entropy encoding tables corresponding to the identification information and the entropy encoding tables corresponding to the identification information, and the switched entropy codes. A second selector that outputs the information of the encoding table, and the entropy encoding unit may perform the entropy encoding using the information of the entropy encoding table output by the second selector. According to this JPEG compression apparatus, the input image data can be suitably entropy-encoded using the information in the entropy encoding table output by the second selector.

このJPEG圧縮装置では、前記識別情報は、更に、JPEG圧縮処理の圧縮率に関する情報を有し、前記量子化テーブルは、前記JPEG圧縮処理の圧縮率に関する情報に応じた数有り、前記第1セレクタは、前記JPEG圧縮処理の圧縮率に関する情報に応じて、切り替えられた量子化テーブルの情報を出力し、前記量子化部は、前記第1セレクタによって出力された量子化テーブルの情報を用いて前記量子化を行う構成としても良い。このJPEG圧縮装置によれば、第1セレクタがJPEG圧縮処理の圧縮率に関する情報に応じて出力する量子化テーブルの情報を切り替えるので、入力画像データの圧縮率を効率的に増加させることができる。   In this JPEG compression apparatus, the identification information further includes information related to a compression rate of JPEG compression processing, and the quantization table includes a number corresponding to information related to the compression rate of the JPEG compression processing, and the first selector Outputs the information of the switched quantization table according to the information on the compression rate of the JPEG compression process, and the quantization unit uses the information of the quantization table output by the first selector to It is good also as a structure which performs quantization. According to this JPEG compression apparatus, the first selector switches the quantization table information to be output according to the information on the compression rate of the JPEG compression process, so that the compression rate of the input image data can be increased efficiently.

このJPEG圧縮装置では、前記識別情報は、更に、JPEG圧縮処理の圧縮率に関する情報を有し、前記エントロピ符号化テーブルは、前記JPEG圧縮処理の圧縮率に関する情報に応じた数有り、前記第2セレクタは、前記JPEG圧縮処理の圧縮率に関する情報に応じて、切り替えられたエントロピ符号化テーブルの情報を出力し、前記エントロピ符号化部は、前記第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて前記エントロピ符号化を行う構成としても良い。このJPEG圧縮装置によれば、第2セレクタがJPEG圧縮処理の圧縮率に関する情報に応じて出力するエントロピ符号化テーブルの情報を切り替えるので、入力画像データに応じた圧縮率に設定することができる。   In this JPEG compression apparatus, the identification information further includes information related to a compression rate of JPEG compression processing, and the entropy encoding table has a number corresponding to information related to the compression rate of the JPEG compression processing, and the second The selector outputs information of the switched entropy coding table according to the information regarding the compression rate of the JPEG compression process, and the entropy coding unit outputs information of the entropy coding table output by the second selector. It is good also as a structure which performs the said entropy encoding using. According to this JPEG compression apparatus, since the second selector switches the information of the entropy coding table to be output according to the information regarding the compression rate of the JPEG compression process, it is possible to set the compression rate according to the input image data.

このJPEG圧縮装置では、前記識別情報は、前記JPEG圧縮処理の処理条件を有し、1つの前記入力画像データに対して前記処理条件の異なる複数のJPEG圧縮処理を行う構成としても良い。このJPEG圧縮装置によれば、1つの入力画像データに対して処理条件の異なる複数のJPEG圧縮処理を行う場合において、回路規模の増大を抑制することができる。   In this JPEG compression apparatus, the identification information may have a processing condition for the JPEG compression process, and a plurality of JPEG compression processes with different processing conditions may be performed on one input image data. According to this JPEG compression apparatus, it is possible to suppress an increase in circuit scale when performing a plurality of JPEG compression processes with different processing conditions for one input image data.

本明細書に開示される発明は、上記のJPEG圧縮装置を備えた画像読取装置にも具現化される。本明細書によって開示される画像処理装置は、上記に記載のJPEG圧縮装置と、更に、前記入力画像データを取得し、取得された入力画像データを順に前記記憶部に記憶させる入力画像データ取得部、を備え、前記取得出力部は、前記記憶部に記憶された入力画像データが前記ブロック単位分の画像データが記憶されたことに応じて、前記識別情報とともに、少なくとも前記ブロック単位分の画像データを取得する。この画像処理装置によれば、記憶部には、ブロック単位分の画像データ程度を記憶する記憶容量しか必要なく、記憶部に必要とされる記憶容量を抑制することができる。   The invention disclosed in this specification is also embodied in an image reading apparatus including the above-described JPEG compression apparatus. An image processing apparatus disclosed in the present specification includes the JPEG compression apparatus described above, and an input image data acquisition unit that acquires the input image data and sequentially stores the acquired input image data in the storage unit The acquisition output unit includes at least the block unit image data together with the identification information in response to the input image data stored in the storage unit being stored in the block unit image data. To get. According to this image processing apparatus, the storage unit only needs a storage capacity for storing about the amount of image data for each block, and the storage capacity required for the storage unit can be suppressed.

この画像読取装置では、前記入力画像データ取得部は、少なくとも、読取対象物を読み取って前記画像データを生成する画像読取部、を備え、前記JPEG圧縮装置は、前記入力画像データに対してJPEG圧縮処理を行い、前記少なくとも1つの入力画像データは、前記画像読取部が読み取った前記画像データである構成としても良い。この画像読取装置によれば、画像読取部を用いて生成された画像データを含む複数の画像データに対してJPEG圧縮処理を行う画像読取装置において、当該画像読取装置に含まれるJPEG圧縮装置の回路規模が増大することを抑制することができる。   In this image reading apparatus, the input image data acquisition unit includes at least an image reading unit that reads the object to be read and generates the image data, and the JPEG compression device compresses the input image data using JPEG compression. Processing may be performed so that the at least one input image data is the image data read by the image reading unit. According to this image reading apparatus, in an image reading apparatus that performs JPEG compression processing on a plurality of image data including image data generated using an image reading unit, the circuit of the JPEG compression apparatus included in the image reading apparatus An increase in scale can be suppressed.

本明細書に開示される発明によれば、JPEG圧縮装置の回路規模の増大を抑制することができる。   According to the invention disclosed in this specification, an increase in the circuit scale of the JPEG compression apparatus can be suppressed.

画像読取装置10の断面図。2 is a cross-sectional view of the image reading apparatus 10. FIG. 画像読取装置10の電気的な構成を示す回路ブロック図。FIG. 2 is a circuit block diagram showing an electrical configuration of the image reading apparatus 10. 第1実施形態におけるCPU30とRAM33とJPEG圧縮部40との構成を示す図。The figure which shows the structure of CPU30, RAM33, and the JPEG compression part 40 in 1st Embodiment. 処理面フラグ切り替え処理を示すフローチャート。The flowchart which shows a process surface flag switching process. 8×8のブロックデータと画像データとの関係を示す図。The figure which shows the relationship between 8x8 block data and image data. 第2実施形態におけるCPU30とRAM33とJPEG圧縮部40との構成を示す図。The figure which shows the structure of CPU30, RAM33, and the JPEG compression part 40 in 2nd Embodiment. DC成分とAC成分とを説明する図。The figure explaining DC component and AC component. 第2実施形態におけるエントロピ符号化部58の構成を示す図。The figure which shows the structure of the entropy encoding part 58 in 2nd Embodiment. 他の実施形態におけるCPU30とRAM33とJPEG圧縮部40との構成を示す図。The figure which shows the structure of CPU30, RAM33, and the JPEG compression part 40 in other embodiment. 他の実施形態におけるJPEG圧縮部40の量子化部48近傍の構成を拡大して示す図The figure which expands and shows the structure of the quantization part 48 vicinity of the JPEG compression part 40 in other embodiment. 他の実施形態におけるエントロピ符号化部の構成を拡大して示す図The figure which expands and shows the structure of the entropy encoding part in other embodiment.

以下、本発明の実施形態について図面を用いて説明する。尚、本発明の実施の形態は、下記の実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の形態を採りうる。本形態は、JPEG圧縮装置の一例として、原稿の画像を読み取る画像読取装置10を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. The embodiments of the present invention are not limited to the following embodiments, and various forms can be adopted as long as they belong to the technical scope of the present invention. This embodiment will be described using an image reading apparatus 10 that reads an image of a document as an example of a JPEG compression apparatus.

1.画像読取装置の構成
図1は、画像読取装置10の断面図を示している。画像読取装置10は、搬送ローラ121〜129を用いて、給紙トレイ110に載置された原稿を、搬送路(鎖線)に沿って、排紙トレイ130まで搬送する。搬送路の上流側にはCIS(Contact Image Sensor)231が、搬送路の下流側には、CIS230が、それぞれ設けられている。CIS231は、上流側の位置で、搬送路上を搬送される図1における上方向の原稿の面を読み取る。また、CIS230は、搬送路上を搬送される原稿の図1における下方向の原稿の面を読み取る。
1. Configuration of Image Reading Device FIG. 1 is a cross-sectional view of an image reading device 10. The image reading apparatus 10 uses the conveyance rollers 121 to 129 to convey the document placed on the paper feed tray 110 to the paper discharge tray 130 along the conveyance path (chain line). A CIS (Contact Image Sensor) 231 is provided on the upstream side of the conveyance path, and a CIS 230 is provided on the downstream side of the conveyance path. The CIS 231 reads the upper surface of the original in FIG. 1 conveyed on the conveyance path at the upstream position. In addition, the CIS 230 reads the document surface in the downward direction in FIG. 1 of the document conveyed on the conveyance path.

なお、これ以降の説明において、原稿が給紙トレイ110に載置された際に、図1における上方向の原稿の面を原稿の表面とし、図1における下方向の原稿の面を原稿の裏面とする。   In the following description, when an original is placed on the paper feed tray 110, the upper side of the original in FIG. 1 is used as the front side of the original, and the lower side of the original in FIG. And

図2は、画像読取装置10の電気的な構成を示す回路ブロック図である。画像読取装置10は、CPU30と、ROM32と、RAM33と、デバイス駆動部34と、読取補正・画像処理部36と、JPEG圧縮部40と、画像読取部22(入力画像データ取得部、画像読取部の一例)と、USBインターフェイス(以下、I/F)24と、操作部28と、を主要部として備える。   FIG. 2 is a circuit block diagram showing an electrical configuration of the image reading apparatus 10. The image reading apparatus 10 includes a CPU 30, a ROM 32, a RAM 33, a device driving unit 34, a reading correction / image processing unit 36, a JPEG compression unit 40, and an image reading unit 22 (an input image data acquisition unit, an image reading unit). 1), a USB interface (hereinafter referred to as I / F) 24, and an operation unit 28 as main parts.

そして、CPU30と、ROM32と、RAM33と、デバイス駆動部34と、読取補正・画像処理部36と、JPEG圧縮部40と、USB I/F24(入力画像データ取得部の別例)と、操作部28とは、バス29を介して接続されている。   The CPU 30, ROM 32, RAM 33, device drive unit 34, reading correction / image processing unit 36, JPEG compression unit 40, USB I / F 24 (another example of the input image data acquisition unit), operation unit 28 is connected via a bus 29.

ROM32には、画像読取装置10の動作を制御するための各種のプログラムが記憶されており、CPU30はROM32から読み出したプログラムに従って各部の制御を行う。   The ROM 32 stores various programs for controlling the operation of the image reading apparatus 10, and the CPU 30 controls each unit according to the program read from the ROM 32.

デバイス駆動部34は、画像読取部22に接続されており、CPU30からの命令に基づいて読み取りを制御する信号を画像読取部22に送信する。画像読取部22は、デバイス駆動部34からの信号に基づいて原稿を読み取り、読み取った読取データを読取補正・画像処理部36に出力する。   The device driving unit 34 is connected to the image reading unit 22 and transmits a signal for controlling reading to the image reading unit 22 based on a command from the CPU 30. The image reading unit 22 reads a document based on a signal from the device driving unit 34 and outputs the read data read to the reading correction / image processing unit 36.

画像読取部22は、CIS231とCIS230とを備える。詳細には、画像読取部22は、CIS230を用いて原稿の表面を読み取り、アナログ信号の表面の読取データを生成する。また、画像読取部22は、CIS231を用いて原稿の裏面を読み取り、アナログ信号の裏面の読取データを生成する。   The image reading unit 22 includes a CIS 231 and a CIS 230. Specifically, the image reading unit 22 reads the surface of the document using the CIS 230 and generates read data of the surface of the analog signal. The image reading unit 22 reads the back side of the document using the CIS 231 and generates read data of the back side of the analog signal.

読取補正・画像処理部36は、画像読取部22に接続されており、画像読取部22から出力されるアナログ信号である読取データをデジタル信号である画像データに変換する。そして、読取補正・画像処理部36は、その変換された画像データにシェーディング補正等の各種読取補正や、拡大、縮小、強調処理といった画像処理を行う。そして、その各種補正された画像データは、輝度(Y)、色差(Cb、Cr)の3つからなる各色成分の画像データとしてRAM33に記憶される。   The reading correction / image processing unit 36 is connected to the image reading unit 22 and converts read data that is an analog signal output from the image reading unit 22 into image data that is a digital signal. The read correction / image processing unit 36 performs various read corrections such as shading correction and image processing such as enlargement, reduction, and enhancement processing on the converted image data. Then, the various corrected image data is stored in the RAM 33 as image data of each color component including luminance (Y) and color difference (Cb, Cr).

USB I/F24は、ネットワーク回線を介して画像読取装置10を外部のPCに接続する。RAM33には、読取補正・画像処理部36によって各種補正された画像データや、USB I/F24を介して画像読取装置10外部から入力された画像データである入力画像データが一時的に記憶される。   The USB I / F 24 connects the image reading apparatus 10 to an external PC via a network line. The RAM 33 temporarily stores image data that has been variously corrected by the reading correction / image processing unit 36 and input image data that is image data input from the outside of the image reading apparatus 10 via the USB I / F 24. .

JPEG圧縮部40は、RAM33に記憶された入力画像データ(表面の画像データ、裏面の画像データ、USB I/F24を介して入力された画像データ)をJPEG圧縮してJPEG圧縮画像データを生成する。そして、そのJPEG圧縮画像データが、再びRAM33に記憶される。   The JPEG compression unit 40 JPEG-compresses the input image data (front-side image data, back-side image data, and image data input via the USB I / F 24) stored in the RAM 33 to generate JPEG-compressed image data. . Then, the JPEG compressed image data is stored in the RAM 33 again.

操作部28は、スタートキー、ストップキー、テンキー等から構成されるボタン群からなり、使用者から動作指示を受けつける。   The operation unit 28 includes a group of buttons including a start key, a stop key, a numeric keypad, and the like, and receives an operation instruction from a user.

2.画像読取装置の両面読取について
次に、画像読取装置10によって、原稿の両面が読み取られた入力画像データ(表面の画像データ、裏面の画像データ)が順々にRAM33に記憶され、そのRAM33に記憶された入力画像データをJPEG圧縮する実施例について説明する。
2. Next, the input image data (front-side image data and back-side image data) obtained by reading both sides of the document by the image reading device 10 are sequentially stored in the RAM 33 and stored in the RAM 33. An embodiment in which the input image data thus compressed is JPEG-compressed will be described.

最初に、原稿の両面が読み取られた入力画像データ(表面の画像データ、裏面の画像データ)が順々にRAM33に記憶されることについて説明する。   First, a description will be given of how the input image data (front side image data and back side image data) obtained by reading both sides of the document is sequentially stored in the RAM 33.

画像読取装置10は、給紙トレイ110に載置された原稿は、CIS231の読取位置に到達すると、原稿の裏面の読み取りを開始する。すると、RAM33には、CIS231によって読み取られ、読取補正・画像処理部36によって各種補正された裏面の画像データがCIS231の1ライン毎に順に記憶される。   When the original placed on the paper feed tray 110 reaches the reading position of the CIS 231, the image reading apparatus 10 starts reading the back side of the original. Then, the back surface image data read by the CIS 231 and variously corrected by the reading correction / image processing unit 36 is sequentially stored in the RAM 33 for each line of the CIS 231.

次に、画像読取装置10は、原稿がCIS230の読取位置に到達すると、原稿の表面の読み取りを開始する。この時点では、原稿の後端が、CIS231の読取位置を通過していない。RAM33には、CIS230によって読み取られ、読取補正・画像処理部36によって各種補正された表面の画像データと、上述した裏面の画像データとが、それぞれ1ライン毎に順に記憶される。   Next, when the original reaches the reading position of the CIS 230, the image reading apparatus 10 starts reading the surface of the original. At this time, the trailing edge of the document has not passed the reading position of the CIS 231. In the RAM 33, the image data of the front surface read by the CIS 230 and variously corrected by the reading correction / image processing unit 36 and the image data of the back surface described above are sequentially stored for each line.

そして、原稿の後端が、CIS231の読取位置を通過すると、CIS231の原稿の裏面の読み取りは終了する。そして、RAM33には、表面の画像データが1ライン毎に順に記憶される。そして、CIS230の原稿の表面の読み取りは、CIS230の読取位置を原稿の後端が通過するまで行われる。   When the trailing edge of the document passes through the reading position of the CIS 231, the reading of the back side of the document of the CIS 231 ends. The RAM 33 stores image data on the surface in order for each line. Then, the reading of the surface of the document of the CIS 230 is performed until the trailing edge of the document passes through the reading position of the CIS 230.

3.画像データのJPEG圧縮について
次に、図3及び図6を用いて、RAM33に記憶された入力画像データを、JPEG圧縮部40を用いてJPEG圧縮することについて説明する。図3と図6とは、CPU30とRAM33とJPEG圧縮部40との構成を示す図を示している。図3と図6とは、入力データ切替部44と、間引き部45と、点線56に含まれる構成群(DCT変換部46からジグザグシーケンス部50まで、独立圧縮部の一例)は、同じ構成であるが、エントロピ符号化部58(非独立圧縮部の一例)が実施形態として異なる。
3. Next, JPEG compression of input image data stored in the RAM 33 using the JPEG compression unit 40 will be described with reference to FIGS. 3 and 6. FIGS. 3 and 6 are diagrams showing configurations of the CPU 30, the RAM 33, and the JPEG compression unit 40. 3 and FIG. 6 have the same configuration in the input data switching unit 44, the thinning unit 45, and the configuration group included in the dotted line 56 (from the DCT conversion unit 46 to the zigzag sequence unit 50, an example of an independent compression unit). However, an entropy encoding unit 58 (an example of a non-independent compression unit) is different as an embodiment.

以降の説明として、輝度(Y)、色差(Cb、Cr)の3つからなる各色成分の空間的な間引きを表すサンプリングファクタとして4:2:0の形式でJPEG圧縮を行うことを例示して説明する。   In the following description, JPEG compression is performed in the form of 4: 2: 0 as a sampling factor that represents spatial thinning of each of the three color components of luminance (Y) and color difference (Cb, Cr). explain.

図3は、CPU30とRAM33とJPEG圧縮部40との構成をそれぞれ示している。RAM33には、画像読取装置10の両面読取によって、表面の画像データと裏面の画像データが記憶される。図3は、RAM33に記憶された画像データが、JPEG圧縮部40によってJPEG圧縮され、再びRAM33にJPEG圧縮された画像データが記憶される構成を示している。   FIG. 3 shows the configurations of the CPU 30, RAM 33, and JPEG compression unit 40, respectively. The RAM 33 stores image data on the front side and image data on the back side by double-sided reading of the image reading device 10. FIG. 3 shows a configuration in which image data stored in the RAM 33 is JPEG-compressed by the JPEG compression unit 40 and image data that has been JPEG-compressed again is stored in the RAM 33.

JPEG圧縮部40は、複数の処理からなるJPEG圧縮処理を行う複数の構成から構成されている。JPEG圧縮部40は、入力データ切替部44と、間引き部45と、離散コサイン変換部(以下、DCT変換部)46と、量子化部48と、セレクタ48Aと、ジグザグシーケンス部50と、エントロピ符号化部58と、から構成されている。なお、入力データ切替部44と間引き部45とが、取得出力部の一例である。   The JPEG compression unit 40 includes a plurality of components that perform JPEG compression processing including a plurality of processes. The JPEG compression unit 40 includes an input data switching unit 44, a decimation unit 45, a discrete cosine transform unit (hereinafter referred to as DCT transform unit) 46, a quantization unit 48, a selector 48A, a zigzag sequence unit 50, and an entropy code. And a conversion unit 58. The input data switching unit 44 and the thinning unit 45 are examples of the acquisition output unit.

入力データ切替部44は、CPU30からの指示によって、RAM33に記憶されている表面の画像データ、裏面の画像データを取得し、16×16個の画素データから構成されているブロックデータ毎に、後述する識別情報と共に、間引き部45に出力する。   The input data switching unit 44 acquires the image data of the front surface and the image data of the back surface stored in the RAM 33 according to an instruction from the CPU 30, and will be described later for each block data composed of 16 × 16 pixel data. Together with the identification information to be output to the thinning unit 45.

図4は、CPU30の処理面フラグ切り替え処理を示すフローチャートを示している。「 2.画像読取装置の両面読取について 」において上述したように、表面の画像データ、裏面の画像データは1ライン毎に記憶される。   FIG. 4 is a flowchart showing the processing surface flag switching process of the CPU 30. As described above in “2. Double-sided scanning of image reading apparatus”, the image data on the front side and the image data on the back side are stored for each line.

CPU30は、RAM33に、表面の画像データが16ライン分、記憶されているかどうかを判断する(S2)。具体的には、CPU30は、RAM33に表面の画像データが何ライン記憶されたかどうかをカウントすることで判断できる。   The CPU 30 determines whether or not 16 lines of surface image data are stored in the RAM 33 (S2). Specifically, the CPU 30 can determine by counting how many lines of the surface image data are stored in the RAM 33.

CPU30は、RAM33に、表面の画像データが16ライン分、記憶されていない場合(S2:NO)、RAM33に裏面の画像データが16ライン分、記憶されているかどうかを判断する(S4)。CPU30は、RAM33に、裏面の画像データが16ライン分、記憶されていない場合(S4:NO)、S2に戻る。   If the front surface image data for 16 lines is not stored in the RAM 33 (S2: NO), the CPU 30 determines whether the back surface image data for 16 lines is stored in the RAM 33 (S4). When the back surface image data for 16 lines is not stored in the RAM 33 (S4: NO), the CPU 30 returns to S2.

CPU30は、RAM33に表面の画像データが16ライン分、記憶されている場合(S2:YES)、RAM33に記憶されている処理面フラグを表面に設定する(S6)。そして、CPU30は、入力データ切替部44に対して、表面であることを示す識別情報を入力する(S8)。   When the surface image data for 16 lines is stored in the RAM 33 (S2: YES), the CPU 30 sets the processing surface flag stored in the RAM 33 on the surface (S6). And CPU30 inputs the identification information which shows that it is the surface with respect to the input data switching part 44 (S8).

入力データ切替部44は、CPU30から表面であることを示す識別情報が入力されると、RAM33から表面の画像データの取得を開始する。そして、入力データ切替部44は、取得した表面の画像データから、16×16個の画素データ毎に、表面であることを示す識別情報とともに、間引き部45に出力する。   When the identification information indicating that the surface is the front surface is input from the CPU 30, the input data switching unit 44 starts to acquire the front surface image data from the RAM 33. Then, the input data switching unit 44 outputs the obtained surface image data to the thinning unit 45 together with identification information indicating the surface for every 16 × 16 pixel data.

図5は、輝度(Y)、色差(Cb、Cr)の3つのうち、輝度(Y)成分の画像データを示している。図5に示すように、輝度(Y)成分の画像データは、複数の画素データによって構成されており、残り2つの成分である色差(Cb、Cr)も、同様に構成されている。   FIG. 5 shows image data of a luminance (Y) component among three of luminance (Y) and color difference (Cb, Cr). As shown in FIG. 5, the luminance (Y) component image data is composed of a plurality of pixel data, and the remaining two components, ie, the color differences (Cb, Cr), are similarly constructed.

間引き部45は、JPEG圧縮のサンプリングファクタとして4:2:0の形式の場合、輝度(Y)成分に関しては、図5に示す、8×8個の画素データのブロックデータ(JPEG圧縮処理の最小処理単位であるブロック単位の画像データの一例)毎にDCT変換部46に出力する。一方、色差(Cb、Cr)成分に関しては、間引き部45は、16×16の画素データから縦横それぞれ2分の1に縮小することにより8×8個の画素データのブロックデータとしてDCT変換部46に出力する。   In the case of 4: 2: 0 as the sampling factor for JPEG compression, the thinning-out unit 45 has 8 × 8 pixel data block data (minimum of JPEG compression processing) shown in FIG. The image data is output to the DCT conversion unit 46 every block). On the other hand, with regard to the color difference (Cb, Cr) component, the thinning unit 45 reduces the 16 × 16 pixel data to 1/2 each of the vertical and horizontal directions, thereby converting the DCT conversion unit 46 into block data of 8 × 8 pixel data. Output to.

入力データ切替部44と間引き部45とによって、輝度(Y)のブロックデータY1、Y2、Y3、Y4と、色差(Cb、Cr)の2つのブロックデータの計6個のブロックデータを、各ブロックデータ毎に順番に、入力データ切替部44が出力する。この輝度(Y)のブロックデータY1、Y2、Y3、Y4と、色差(Cb、Cr)の2つの間引かれたブロックデータの計6個がJPEG圧縮処理の1単位(1MCU)となる。   By the input data switching unit 44 and the thinning-out unit 45, a total of 6 block data of block data Y1, Y2, Y3, Y4 of luminance (Y) and 2 block data of color difference (Cb, Cr) The input data switching unit 44 outputs in order for each data. A total of six pieces of block data Y1, Y2, Y3, Y4 of this luminance (Y) and two thinned out block data of color differences (Cb, Cr) constitute one unit (1 MCU) of JPEG compression processing.

入力データ切替部44と間引き部45とは、1MCUのブロックデータを生成し、各ブロックデータ毎に、DCT変換部46に出力し終えると、次の16×16個の画素データに対して、1MCUの6個のブロックデータを生成し、各ブロックデータ毎に、DCT変換部46に出力していく。   When the input data switching unit 44 and the thinning unit 45 generate 1 MCU block data and output the block data to the DCT conversion unit 46 for each block data, the next 16 × 16 pixel data is processed by 1 MCU. Are generated and output to the DCT converter 46 for each block data.

CPU30は、入力データ切替部44が表面の画像データを16ライン分、取得が完了しているかどうかを判断する(S10)。CPU30は、入力データ切替部44の16×16個の画素データの読み出しが完了するのを待機し(S10:NO)、16×16個の画素データの読み出しが完了すると(S10:YES)、S4の処理に進む。   The CPU 30 determines whether or not the input data switching unit 44 has acquired the image data of the front surface for 16 lines (S10). The CPU 30 waits for the reading of 16 × 16 pixel data of the input data switching unit 44 to be completed (S10: NO), and when reading of 16 × 16 pixel data is completed (S10: YES), S4 Proceed to the process.

CPU30は、RAM33に、裏面の画像データが16ライン分、記憶されているかどうかを判断する(S4)。CPU30は、RAM33に裏面の画像データが16ライン分、記憶されている場合(S4:YES)、RAM33に記憶されている処理面フラグを表面に設定する(S16)。そして、CPU30は、入力データ切替部44に対して、裏面であることを示す識別情報を入力する(S18)。   The CPU 30 determines whether or not 16 lines of back side image data are stored in the RAM 33 (S4). When the back surface image data for 16 lines is stored in the RAM 33 (S4: YES), the CPU 30 sets the processing surface flag stored in the RAM 33 on the front surface (S16). And CPU30 inputs the identification information which shows that it is a back surface with respect to the input data switching part 44 (S18).

入力データ切替部44と間引き部45とは、上述した表面の画像データのように、1MCUの6個のブロックデータを生成し、各ブロックデータ毎に、順番に、DCT変換部46に出力していく。   The input data switching unit 44 and the thinning-out unit 45 generate 6 block data of 1 MCU as in the above-described surface image data, and output each block data to the DCT conversion unit 46 in order. Go.

「 2.画像読取装置の両面読取について 」で説明したように、表面の画像データと裏面の画像データとは、読み取った順番に1ライン毎に記憶部33に記憶される。従来の画像読取装置では、表面の画像データに対してJPEG圧縮処理が完了するまで、裏面の画像データに対してJPEG圧縮処理をしない構成であったため、表面の画像データのJPEG圧縮処理が完了するまで、裏面の画像データを記憶部33に記憶しておかなければならない。その為、記憶部33の記憶容量が大きくなるという問題がある。   As described in “2. Double-Sided Reading of Image Reading Device”, the front side image data and the back side image data are stored in the storage unit 33 line by line in the order of reading. In the conventional image reading apparatus, the JPEG compression process is not performed on the back side image data until the JPEG compression process is completed on the front side image data. Therefore, the JPEG compression process on the front side image data is completed. Until then, the image data of the back surface must be stored in the storage unit 33. Therefore, there is a problem that the storage capacity of the storage unit 33 is increased.

一方、本発明の画像読取装置10は、上述したS2及びS4のフローチャートの処理を行い、入力データ切替部44と間引き部45とが、S2とS4の処理に対応する表面であるか裏面であるかを示す識別情報と、その識別情報に対応したブロックデータとを、順に、DCT変換部46に出力していく。そのため、画像読取装置10は、ブロックデータ毎に処理するので、記憶部33に1枚分の原稿の画像データ分の記憶容量を必要としない。   On the other hand, the image reading apparatus 10 of the present invention performs the processing of the flowcharts of S2 and S4 described above, and the input data switching unit 44 and the thinning-out unit 45 are the front surface or the back surface corresponding to the processing of S2 and S4. The identification information indicating these and the block data corresponding to the identification information are sequentially output to the DCT conversion unit 46. For this reason, since the image reading apparatus 10 processes each block data, the storage unit 33 does not need a storage capacity for the image data of one original.

次、JPEG圧縮においては、上述した間引き部45の間引処理の他に、DCT変換処理、量子化処理、ジグザクシーケンス処理、エントロピ符号化処理といった、いくつかの処理によって、最終的に、JPEG圧縮された画像データが作成される。そのうち、DCT変換、量子化処理、ジグザクシーケンス処理に関しては、ブロックデータ毎に独立して処理が行える。一方、エントロピ符号化処理に関しては、後述するブロックデータ間における依存関係によって処理を行うため、ブロックデータ毎に独立して処理は行えない。   Next, in JPEG compression, in addition to the thinning process of the thinning unit 45 described above, JPEG compression is finally performed by several processes such as a DCT conversion process, a quantization process, a zigzag sequence process, and an entropy encoding process. The created image data is created. Among them, DCT transformation, quantization processing, and zigzag sequence processing can be performed independently for each block data. On the other hand, the entropy encoding process is performed according to a dependency relationship between block data, which will be described later, and therefore cannot be performed independently for each block data.

DCT変換部46は、間引き部45から出力されたブロックデータを、当該ブロックデータ単位でDCT変換し、8×8個の周波数データに変換する。   The DCT conversion unit 46 performs DCT conversion on the block data output from the thinning unit 45 in units of the block data and converts the block data into 8 × 8 frequency data.

DCT変換部46は、8×8個の周波数データを、量子化部48に出力するとともに、該識別情報(表面であるか裏面であるか)を、量子化部48とセレクタ48Aとにそれぞれ出力する。   The DCT conversion unit 46 outputs 8 × 8 frequency data to the quantization unit 48, and outputs the identification information (whether it is the front side or the back side) to the quantization unit 48 and the selector 48A, respectively. To do.

量子化とは、DCT変換された8×8個の周波数データを、8×8個の定数からなるテーブル(量子化テーブル)で、それぞれ割り算し、小数点を切り捨て若しくは四捨五入等をすることで、周波数データの端数を切り捨てることである。DCT変換された8×8個の周波数データは、低周波数成分から高周波数成分といった形で並べられている。JPEG圧縮の圧縮率を上げる際には、この高周波成分の周波数データをできるだけ切り捨てるように量子化テーブルを設定することで、画像データの圧縮率が増加する。   Quantization means that 8 × 8 frequency data subjected to DCT conversion is divided by 8 × 8 constant table (quantization table), and the decimal point is rounded down or rounded off. The data is rounded down. The DCT-transformed 8 × 8 frequency data are arranged in the form of low frequency components to high frequency components. When the compression rate of JPEG compression is increased, the compression rate of the image data is increased by setting the quantization table so that the frequency data of this high frequency component is cut off as much as possible.

JPEG圧縮部40は、第1量子化テーブル48Bと、第2量子化テーブル48Cと、を有している。そして、CPU30から第1量子化テーブル48Bと、第2量子化テーブル48Cとをそれぞれ変更できるように構成されている。CPU30は、各面毎に量子化テーブルの定数を変更することで、表面や裏面といった各面に応じて画像データの圧縮率を変更することができる。   The JPEG compression unit 40 includes a first quantization table 48B and a second quantization table 48C. The CPU 30 is configured to be able to change the first quantization table 48B and the second quantization table 48C, respectively. The CPU 30 can change the compression rate of the image data according to each surface such as the front surface or the back surface by changing the constant of the quantization table for each surface.

セレクタ48Aは、DCT変換部46から出力される識別情報から、表面であれば第1量子化テーブル48Bと、裏面であれば第2量子化テーブル48Cと、いったように切り替えて、量子化部48に出力する。   The selector 48A switches from the identification information output from the DCT conversion unit 46 to the first quantization table 48B for the front surface and the second quantization table 48C for the back surface. Output to 48.

すると、量子化部48は、表面か裏面かいずれかに該当する量子化テーブル48B、48Cの定数に応じて、8×8個の周波数データを、量子化処理を行う。そして、量子化部48は、8×8個の量子化されたデータと該識別情報とを、ジグザグシーケンス部50に出力する。   Then, the quantization unit 48 performs quantization processing on 8 × 8 frequency data according to the constants of the quantization tables 48B and 48C corresponding to either the front surface or the back surface. Then, the quantizing unit 48 outputs the 8 × 8 quantized data and the identification information to the zigzag sequence unit 50.

ジグザグシーケンス部50は、量子化されたデータにジグザグスキャンを行い、8×8個のデータの各周波数成分が直流成分(以後、DC成分)、交流成分(以後、AC成分)の順に、またAC成分では低周波数から高周波数の順に並ぶように各周波数成分を並び替える。そして、ジグザグシーケンス部50は、ジグザグスキャンによって並び替えられたデータ(該処理を実行されたブロック単位の画像データの一例)と該識別情報とを、エントロピ符号化部58に出力する。   The zigzag sequence unit 50 performs zigzag scanning on the quantized data, and each frequency component of the 8 × 8 data is in the order of DC component (hereinafter DC component), AC component (hereinafter AC component), and AC. In the component, each frequency component is rearranged so as to be arranged in the order of low frequency to high frequency. Then, the zigzag sequence unit 50 outputs the data rearranged by the zigzag scan (an example of block-unit image data for which the processing has been performed) and the identification information to the entropy encoding unit 58.

4.エントロピ符号化処理について 〜第1実施形態〜
まず、図3のエントロピ符号化部58について説明する。図3のエントロピ符号化部58は、出力データ切替部52と第1エントロピ符号化器54Aと第2エントロピ符号化器54Bとを備えている。
4). Entropy encoding process -first embodiment-
First, the entropy encoding unit 58 in FIG. 3 will be described. The entropy encoding unit 58 of FIG. 3 includes an output data switching unit 52, a first entropy encoder 54A, and a second entropy encoder 54B.

出力データ切替部52は、ジグザグシーケンス部50から入力される識別情報に応じて、ジグザグスキャンされた8×8個のデータを、該当する識別情報に対応するエントロピ符号化器54A、54Bのいずれかに出力する。なお、第1実施形態では、識別情報が表面で有る場合は、第1エントロピ符号化器54Aに出力され、識別情報が裏面である場合は、第2エントロピ符号化器54Bに出力される。   The output data switching unit 52 selects any one of the entropy encoders 54 </ b> A and 54 </ b> B corresponding to the 8 × 8 pieces of data that are zigzag scanned according to the identification information input from the zigzag sequence unit 50. Output to. In the first embodiment, when the identification information is on the front side, it is output to the first entropy encoder 54A, and when the identification information is on the back side, it is output to the second entropy encoder 54B.

エントロピ符号化器54A、54Bは、DC成分とAC成分とからなる8×8のデータに対して、周知のエントロピ符号化処理を行う。しかし、DC成分とAC成分とでは、エントロピ符号化処理の方法が異なる。   The entropy encoders 54A and 54B perform a well-known entropy encoding process on 8 × 8 data including a DC component and an AC component. However, the entropy encoding processing method differs between the DC component and the AC component.

図7は、ジグザグスキャンによって並び替えられたDC成分とAC成分を示した図である。エントロピ符号化器54A、54Bは、エントロピ符号化器54A、54Bに入力されたDC成分(図7:DC(i))から、前回入力されたDC成分(図7:DC(i−1)、以下、前回DC成分)との差分の値に対して、エントロピ符号化処理を行う。   FIG. 7 is a diagram showing the DC component and the AC component rearranged by the zigzag scan. The entropy encoders 54A and 54B are configured so that the DC components (FIG. 7: DC (i−1), FIG. 7) input from the DC components (FIG. 7: DC (i)) input to the entropy encoders 54A and 54B Hereinafter, the entropy encoding process is performed on the difference value from the previous DC component).

エントロピ符号化器54A、54Bは、それぞれ保持部55A、55Bを有している。保持部55A、55Bには、前回DC成分、つまり、エントロピ符号化器54A、54Bに入力されたDC成分よりも1つ前に入力され、入力されたDC成分と同一の識別情報(表面、裏面)を有するDC成分が、保持部55A、55Bに保持されている。   The entropy encoders 54A and 54B have holding units 55A and 55B, respectively. The holding units 55A and 55B are input immediately before the previous DC component, that is, the DC component input to the entropy encoders 54A and 54B, and have the same identification information (front and back surfaces) as the input DC component. DC component having () is held in the holding portions 55A and 55B.

エントロピ符号化器54A、54Bは、入力されたDC成分から保持部55A、55Bに記憶された前回DC成分を差し引いてDC差分値を算出する。エントロピ符号化器54A、54Bは、DC差分値を算出後、保持部55A、55Bの前回DC成分を入力されたDC成分へと更新する。   The entropy encoders 54A and 54B subtract the previous DC component stored in the holding units 55A and 55B from the input DC component to calculate a DC difference value. After calculating the DC difference value, the entropy encoders 54A and 54B update the previous DC component of the holding units 55A and 55B to the input DC component.

エントロピ符号化器54A、54Bは、算出されたDC差分値とAC成分に対して、それぞれエントロピ符号化処理を行う。エントロピ符号化器54Aは、エントロピ符号化処理によって生成されたデータを表面のJPEG圧縮画像データとして、RAM33に出力する。また、エントロピ符号化器54Bは、エントロピ符号化処理によって生成されたデータを裏面のJPEG圧縮画像データとして、RAM33に出力する。   The entropy encoders 54A and 54B perform entropy encoding processing on the calculated DC difference value and AC component, respectively. The entropy encoder 54A outputs the data generated by the entropy encoding process to the RAM 33 as JPEG compressed image data of the surface. Further, the entropy encoder 54B outputs the data generated by the entropy encoding process to the RAM 33 as JPEG compressed image data on the back surface.

5.エントロピ符号化処理について 〜第2実施形態〜
まず、図6のエントロピ符号化部58について説明する。図6のエントロピ符号化部58は、第3のエントロピ符号化器70と、出力部72とを備えている。
5. Entropy encoding process -second embodiment-
First, the entropy encoding unit 58 in FIG. 6 will be described. The entropy encoding unit 58 in FIG. 6 includes a third entropy encoder 70 and an output unit 72.

図8は、エントロピ符号化部58の構成を示している。エントロピ符号化部58は、第1実施形態で説明した複数の処理を含むエントロピ符号化処理を行う複数の構成から構成されている。エントロピ符号化器70は、第1実施形態で説明した保持部55A、55Bの他に、第1選出部60と、第2選出部62と、差分取得部64と、更新部66と、符号化部68と、セレクタ68Aと、を含む。また、出力部72は、第1実施形態で説明した出力データ切替部52の他に、符号データ出力部76A、76Bを含む。   FIG. 8 shows the configuration of the entropy encoding unit 58. The entropy encoding unit 58 includes a plurality of configurations that perform entropy encoding processing including the plurality of processing described in the first embodiment. In addition to the holding units 55A and 55B described in the first embodiment, the entropy encoder 70 includes a first selection unit 60, a second selection unit 62, a difference acquisition unit 64, an update unit 66, and an encoding unit. Part 68 and selector 68A. The output unit 72 includes code data output units 76A and 76B in addition to the output data switching unit 52 described in the first embodiment.

第1選出部60は、ジグザグシーケンス部50から出力され、DC成分とAC成分とからなる8×8のデータからDC成分を選出し、差分取得部64及び更新部66に出力する。また、残ったAC成分を、符号化部68に出力する。   The first selection unit 60 outputs a DC component from 8 × 8 data that is output from the zigzag sequence unit 50 and includes a DC component and an AC component, and outputs the DC component to the difference acquisition unit 64 and the update unit 66. Further, the remaining AC component is output to the encoding unit 68.

第2選出部62は、ジグザグシーケンス部50から入力される識別情報に応じて、該当する識別情報に対応する保持部55A、55Bに記憶された前回DC成分を読み出し、差分取得部64に出力する。   The second selection unit 62 reads the previous DC component stored in the holding units 55 </ b> A and 55 </ b> B corresponding to the corresponding identification information in accordance with the identification information input from the zigzag sequence unit 50, and outputs it to the difference acquisition unit 64. .

差分取得部64は、第1選出部60から出力されたDC成分から、第2選出部62から出力された前回DC成分を差し引いてDC差分値を算出し、算出したDC差分値を符号化部68に出力する。   The difference acquisition unit 64 subtracts the previous DC component output from the second selection unit 62 from the DC component output from the first selection unit 60 to calculate a DC difference value, and the calculated DC difference value is an encoding unit. Output to 68.

符号化とは、一列に並んだ8×8個の2進数のデータを、ハフマンテーブルを使って置換することである。ハフマンテーブルでは、2進数のデータに含まれる「1」と「0」で示されるパターンを、「1」と「0」で示される異なるパターンへと置換する対応関係が設定されている。ハフマンテーブルでは、置換後におけるパターンの桁数が、置換前におけるパターンの桁数よりも少なくなるように決定されている。JPEG圧縮の圧縮率を上げる際には、8×8個の2進数のデータに多数含まれるパターンをできるだけ桁数の少ないパターンに置換されるように対応関係を設定することで、入力画像データの圧縮率が増加する。   Encoding is to replace 8 × 8 binary data arranged in a line using a Huffman table. In the Huffman table, a correspondence relationship is set in which a pattern indicated by “1” and “0” included in binary data is replaced with a different pattern indicated by “1” and “0”. In the Huffman table, the number of digits of the pattern after replacement is determined to be smaller than the number of digits of the pattern before replacement. When increasing the compression rate of JPEG compression, by setting the correspondence so that many patterns contained in 8 × 8 binary data are replaced with patterns with as few digits as possible, the input image data The compression rate increases.

JPEG圧縮部40は、第1ハフマンテーブル68Bと、第2ハフマンテーブル68Cと、を有している。そして、CPU30から第1ハフマンテーブル68Bと、第2ハフマンテーブル68Cとをそれぞれ変更できるように構成されている。CPU30は、各面毎にハフマンテーブルの対応関係を変更することで、表面や裏面といった各面に応じて入力画像データの圧縮率を変更することができる。   The JPEG compression unit 40 includes a first Huffman table 68B and a second Huffman table 68C. The CPU 30 can change the first Huffman table 68B and the second Huffman table 68C. The CPU 30 can change the compression ratio of the input image data according to each surface such as the front surface and the back surface by changing the correspondence relationship of the Huffman table for each surface.

セレクタ68Aは、ジグザグシーケンス部50から出力される識別情報から、表面であれば第1ハフマンテーブル68Bと、裏面であれば第2ハフマンテーブル68Cと、いったように切り替えて、符号化部68に出力する。   The selector 68A switches from the identification information output from the zigzag sequence unit 50 to the encoding unit 68 by switching between the first Huffman table 68B for the front side and the second Huffman table 68C for the back side. Output.

すると、符号化部68は、差分取得部64から出力されるDC差分値と、第1選出部60から出力されるAC成分と、をこの順に並べた8×8個の2進数のデータに対して、表面か裏面かいずれかに該当するハフマンテーブル68B、68Cの対応関係に応じてハフマン符号化処理を行う。そして、符号化部68は、符号化されたデータと該識別情報とを、出力部72に出力する。   Then, the encoding unit 68 performs the 8 × 8 binary number data in which the DC difference value output from the difference acquisition unit 64 and the AC component output from the first selection unit 60 are arranged in this order. Thus, the Huffman encoding process is performed according to the correspondence between the Huffman tables 68B and 68C corresponding to either the front surface or the back surface. Then, the encoding unit 68 outputs the encoded data and the identification information to the output unit 72.

更新部66は、符号化部68が符号化されたデータを出力後、ジグザグシーケンス部50から入力される識別情報に応じて、該当する識別情報に対応する保持部55A、55Bの前回DC成分を、第1選出部60から出力されるDC成分へと更新する。   The update unit 66 outputs the previous DC components of the holding units 55A and 55B corresponding to the corresponding identification information according to the identification information input from the zigzag sequence unit 50 after the encoding unit 68 outputs the encoded data. The DC component output from the first selection unit 60 is updated.

出力データ切替部52は、符号化部68から入力される識別情報に応じて、符号化されたデータを、該当する識別情報に対応する第1符号データ出力部76A、第2符号データ出力部76Bのいずれかに出力する。なお、第2実施形態では、識別情報が表面で有る場合は、第1符号データ出力部76Aに出力され、識別情報が裏面である場合は、第2符号データ出力部76Bに出力される。   The output data switching unit 52 converts the encoded data according to the identification information input from the encoding unit 68 into a first code data output unit 76A and a second code data output unit 76B corresponding to the corresponding identification information. Output to either of these. In the second embodiment, when the identification information is on the front surface, it is output to the first code data output unit 76A, and when the identification information is the back surface, it is output to the second code data output unit 76B.

第1符号データ出力部76Aは、エントロピ符号化処理によって生成されたデータを表面のJPEG圧縮画像データとして、RAM33に出力する。また、第2符号データ出力部76Bは、エントロピ符号化処理によって生成されたデータを裏面のJPEG圧縮画像データとして、RAM33に出力する。   The first code data output unit 76A outputs the data generated by the entropy encoding process to the RAM 33 as JPEG compressed image data of the surface. The second code data output unit 76B outputs the data generated by the entropy encoding process to the RAM 33 as JPEG compressed image data on the back surface.

3.本実施形態の効果
(1)実施形態1、2の画像読取装置10では、JPEG圧縮処理を構成する複数の処理のうち、ブロックデータ毎に独立して処理が行える一部の処理については、ブロックデータに対して共通の構成を用いて処理を行う。そのため、JPEG圧縮処理を構成する全ての処理について異なる構成を用いて処理を行う場合に比べて、JPEG圧縮部40の回路規模の増大を抑制することができる。
3. Advantages of the present embodiment (1) In the image reading apparatus 10 of the first and second embodiments, some of the plurality of processes constituting the JPEG compression process can be performed independently for each block data. Process data using a common configuration. Therefore, an increase in the circuit scale of the JPEG compression unit 40 can be suppressed as compared with a case where processing is performed using a different configuration for all the processes that constitute the JPEG compression process.

(2)具体的には、実施形態1、2の画像読取装置10では、JPEG圧縮処理を構成する複数の処理を行う構成のうち、ブロックデータ毎に独立して処理が行えるDCT変換部からジグザグシーケンス部50までの処理については、共通の構成を用いて処理を行い、エントロピ符号化部58におけるエントロピ符号化処理については、識別情報が共通となるブロックデータ間における依存関係によって処理を行う必要があることから、ブロックデータに関連付けられた識別情報毎の個別の構成を用いて処理を行う。ジグザグシーケンス部までの構成を共通化することで、JPEG圧縮部40の回路規模の増大を抑制することができる。 (2) Specifically, in the image reading apparatus 10 according to the first and second embodiments, a zigzag is performed from a DCT conversion unit that can perform processing independently for each block data among a plurality of processes that constitute JPEG compression processing. The processing up to the sequence unit 50 is performed using a common configuration, and the entropy encoding processing in the entropy encoding unit 58 needs to be performed according to the dependency between block data having common identification information. For this reason, processing is performed using an individual configuration for each piece of identification information associated with block data. By making the configuration up to the zigzag sequence unit common, an increase in the circuit scale of the JPEG compression unit 40 can be suppressed.

(3)さらに、実施形態2の画像読取装置10では、エントロピ符号化部58に含まれるエントロピ符号化器70において、一部の構成を共通化する。具体的には、ブロックデータ間における依存関係によって切り替える必要がある前回DC成分について、識別情報毎の保持部55A、55Bを用意し、エントロピ符号化器70に含まれるその他の構成について共通化する。これによって、JPEG圧縮部40の回路規模の増大をさらに抑制することができる。 (3) Furthermore, in the image reading apparatus 10 according to the second embodiment, a part of the configuration is shared by the entropy encoder 70 included in the entropy encoder 58. Specifically, holding units 55A and 55B for each identification information are prepared for the previous DC component that needs to be switched depending on the dependency relationship between the block data, and other configurations included in the entropy encoder 70 are shared. As a result, an increase in the circuit scale of the JPEG compression unit 40 can be further suppressed.

<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような種々の態様も本発明の技術的範囲に含まれる。
(1)上記実施形態では、読取機能を有する画像読取装置10を用いて説明を行ったが、本発明はこれに限られない。例えば、読取機能に加えて、プリンタ機能、コピー機能、ファクシミリ機能などのうちの少なくとも1つの機能を更に備えた複合機であっても良い。
<Other embodiments>
The present invention is not limited to the embodiments described with reference to the above description and the drawings, and for example, the following various aspects are also included in the technical scope of the present invention.
(1) Although the above embodiment has been described using the image reading apparatus 10 having a reading function, the present invention is not limited to this. For example, in addition to the reading function, it may be a multi-function device further provided with at least one of a printer function, a copy function, a facsimile function, and the like.

(2)また、読取機能を有していなくても良い。本発明は、画像データに対してJPEG圧縮処理のみを行う機能を備えており、例えばUSB I/F24を介して画像読取装置10外部のPCから入力された画像データに対してJPEG圧縮処理を行うのであれば、必ずしも読取機能を有していなくてもよい。 (2) The reading function may not be provided. The present invention has a function of performing only JPEG compression processing on image data. For example, JPEG compression processing is performed on image data input from a PC outside the image reading apparatus 10 via the USB I / F 24. In this case, the reading function is not necessarily required.

(3)上記実施形態では、画像データの圧縮形式として、JPEG圧縮を用いて説明を行ったが、本発明はこれに限られない。圧縮処理が複数の処理によって構成されており、その複数の処理に各データ毎に独立して処理が行える独立圧縮処理と、各データ毎に独立して処理が行えず、データ間における依存関係によって処理を行うる非独立圧縮処理を備えている圧縮形式であれば適用することができる。 (3) Although the above embodiment has been described using JPEG compression as the compression format of image data, the present invention is not limited to this. The compression process consists of multiple processes, and the multiple processes can be processed independently for each data, and the independent process for each data cannot be performed independently, depending on the dependency between the data Any compression format having a non-independent compression process that performs processing can be applied.

(4)上記実施形態では、複数の画像データをJPEG圧縮する例として、原稿の両面読取によって読み取った表面の画像データと裏面の画像データとをJPEG圧縮する場合について説明を行ったが、本発明はこれに限らない。例えば、図9に示すように、原稿の表面のみ読み取りを行い、表面の画像データとUSB I/F24を介して入力された画像データとをJPEG圧縮してもよい。また、USB I/F24を介して入力された複数の画像データをJPEG圧縮してもよい。 (4) In the above embodiment, as an example of JPEG compression of a plurality of image data, a case where JPEG compression is performed on the image data on the front side and the image data on the back side read by double-sided reading of the document has been described. Is not limited to this. For example, as shown in FIG. 9, only the surface of the document may be read, and the image data on the surface and the image data input via the USB I / F 24 may be JPEG compressed. Also, a plurality of image data input via the USB I / F 24 may be JPEG compressed.

(5)この場合、識別情報は、表面であることを示す情報や裏面であることを示す情報に代わって、該当する入力画像データの画像種類(テキスト、写真等)を示す情報であってもよい。識別情報が、画像種類を示す情報である場合、画像種類によって圧縮率が決定されることから、識別情報に基づいてハフマンテーブルを切り替えることで、画像データの圧縮率を効率的に増加させることができる。 (5) In this case, the identification information may be information indicating the image type (text, photograph, etc.) of the corresponding input image data instead of the information indicating the front surface or the information indicating the back surface. Good. When the identification information is information indicating the image type, the compression rate is determined by the image type. Therefore, the compression rate of the image data can be increased efficiently by switching the Huffman table based on the identification information. it can.

(6)また、識別情報は、該当する入力画像データの圧縮率などの圧縮条件に関する情報であってもよい。識別情報が、圧縮条件に関する情報である場合、識別情報に基づいて量子化テーブルを切り替えることで、入力画像データに応じた圧縮率に設定することができる。 (6) Further, the identification information may be information relating to compression conditions such as the compression rate of the corresponding input image data. When the identification information is information related to the compression condition, the compression rate corresponding to the input image data can be set by switching the quantization table based on the identification information.

(7)上記実施形態では、JPEG圧縮部40が第1量子化テーブル48Bと、第2量子化テーブル48Cと、を有する場合について説明を行ったが、本発明はこれに限らない。例えば、図9に示すように、JPEG圧縮部40がm個の量子化テーブル48B〜48Nを有していても良い。識別情報には、該当する入力画像データの圧縮率などの圧縮条件に関する情報が含まれており、量子化テーブル48B〜48Nには、各圧縮率に適した量子化テーブルが記憶されている。そして、セレクタ48Aは、識別情報の入力画像データの圧縮条件に関する情報から使用する量子化テーブル48B〜48Nを切り替る。これによって、量子化部48では、入力画像データを当該入力画像データに応じた圧縮率に設定することができる。 (7) Although the case where the JPEG compression unit 40 includes the first quantization table 48B and the second quantization table 48C has been described in the above embodiment, the present invention is not limited to this. For example, as shown in FIG. 9, the JPEG compression unit 40 may have m quantization tables 48B to 48N. The identification information includes information about compression conditions such as the compression rate of the corresponding input image data, and quantization tables suitable for each compression rate are stored in the quantization tables 48B to 48N. Then, the selector 48A switches the quantization tables 48B to 48N to be used from the information regarding the compression condition of the input image data of the identification information. As a result, the quantization unit 48 can set the input image data to a compression rate corresponding to the input image data.

(8)上記実施形態では、JPEG圧縮部40が第1ハフマンテーブル68Bと、第2ハフマンテーブル68Cと、を有する場合について説明を行ったが、本発明はこれに限らない。例えば、図10に示すように、JPEG圧縮部40がm個のハフマンテーブル68B〜68Nを有していても良い。識別情報には、該当する入力画像データの画像種類を示す情報が含まれており、ハフマンテーブル68B〜68Nには、各画像種類を示す情報に適したハフマンテーブルが記憶されている。そして、セレクタ68Aは、識別情報の入力画像データの画像種類を示す情報から使用するハフマンテーブル68B〜68Nを切り替る。これによって、符号化部68では、入力画像データの圧縮率を効率的に増加させることができる。 (8) Although the case where the JPEG compression unit 40 includes the first Huffman table 68B and the second Huffman table 68C has been described in the above embodiment, the present invention is not limited to this. For example, as illustrated in FIG. 10, the JPEG compression unit 40 may include m Huffman tables 68B to 68N. The identification information includes information indicating the image type of the corresponding input image data, and the Huffman tables 68B to 68N store Huffman tables suitable for the information indicating each image type. Then, the selector 68A switches the Huffman tables 68B to 68N to be used from information indicating the image type of the input image data of the identification information. As a result, the encoding unit 68 can efficiently increase the compression rate of the input image data.

(9)上記実施形態では、複数の画像データをJPEG圧縮する例を用いて説明を行ったが、1つの入力画像データに対して異なる複数の圧縮条件を設定してJPEG圧縮してもよい。この場合でも、異なる圧縮条件のJPEG圧縮を異なる構成を用いて処理を行う場合に比べて、JPEG圧縮部40の回路規模の増大を抑制することができる。 (9) Although the above embodiment has been described using an example in which a plurality of image data is JPEG compressed, JPEG compression may be performed by setting a plurality of different compression conditions for one input image data. Even in this case, an increase in the circuit scale of the JPEG compression unit 40 can be suppressed as compared with a case where JPEG compression under different compression conditions is performed using a different configuration.

10:画像読取装置、22:画像読取部、30:CPU、33:RAM、40:JPEG圧縮部、44:入力データ切替部、45:間引き部、46:DCT変換器、48:量子化部、50:ジグザグシーケンス部、52:出力データ切替部、54:エントロピ符号化器、55:保持部、58:エントロピ符号化部、64:差分取得部、66:更新部、68:符号化部、70:エントロピ符号化器、72:出力部、76:符号データ出力部 10: Image reading device, 22: Image reading unit, 30: CPU, 33: RAM, 40: JPEG compression unit, 44: Input data switching unit, 45: Decimation unit, 46: DCT converter, 48: Quantization unit, 50: Zigzag sequence unit, 52: Output data switching unit, 54: Entropy encoder, 55: Holding unit, 58: Entropy encoding unit, 64: Difference acquisition unit, 66: Update unit, 68: Encoding unit, 70 : Entropy encoder 72: Output unit 76: Code data output unit

Claims (10)

1又は複数の入力画像データに対して、複数の処理からなるJPEG圧縮処理を行うJPEG圧縮装置であって、
少なくとも、いずれの前記入力画像データであるか否かを識別する情報を有する識別情報に応じて前記入力画像データを取得し、JPEG圧縮処理の最小処理単位であるブロック単位の画像データが単数又は複数からなる画像データと前記識別情報とを出力する取得出力部と、
前記取得出力部から出力された前記ブロック単位の画像データに対して、前記複数の処理のうち、独立して処理を行うことが可能な処理を実行し、該処理を実行された前記ブロック単位の画像データと前記識別情報とを出力する独立圧縮処理部と、
同じ識別情報である前記独立圧縮処理部から出力された前記画像データ毎に前記複数の処理のうち、その他の処理を実行し、前記識別情報に応じたJPEG圧縮処理された画像データとして出力する非独立圧縮処理部と、
を備える、
JPEG圧縮装置。
A JPEG compression apparatus that performs JPEG compression processing consisting of a plurality of processes on one or a plurality of input image data,
The input image data is acquired in accordance with identification information having at least information for identifying which of the input image data, and one or a plurality of block-unit image data that is a minimum processing unit of JPEG compression processing An output unit for outputting the image data and the identification information, and
For the block-unit image data output from the acquisition output unit, a process that can be performed independently of the plurality of processes is executed, and the block unit that has been subjected to the process is executed. An independent compression processing unit for outputting image data and the identification information;
For each of the image data output from the independent compression processing unit having the same identification information, the other processing is executed among the plurality of processes and output as JPEG compressed image data corresponding to the identification information. An independent compression processing unit;
Comprising
JPEG compression device.
請求項1に記載のJPEG圧縮装置であって、
前記独立圧縮処理部は、
前記ブロック単位で離散コサイン変換を行うDCT変換部と、
前記離散コサイン変換により生成された前記ブロック単位の各成分に対して量子化を行う量子化部と、
量子化された前記ブロック単位の各成分を、関連付けられた前記識別情報に応じて切り替えて出力する第1出力切替部と、
を備え、
前記非独立圧縮処理部は、
同一の前記識別情報に関連付けられた前記ブロック単位の各成分に対してエントロピ符号化を行い、エントロピ符号化された前記ブロック単位の各成分を前記識別情報に応じて出力する複数のエントロピ符号化出力部と、
を備える、
JPEG圧縮装置。
The JPEG compression apparatus according to claim 1,
The independent compression processing unit
A DCT transform unit for performing discrete cosine transform in units of blocks;
A quantization unit that performs quantization on each block unit generated by the discrete cosine transform;
A first output switching unit that switches and outputs each quantized component in accordance with the associated identification information;
With
The non-independent compression processing unit is:
A plurality of entropy-encoded outputs that perform entropy coding on each component of the block unit associated with the same identification information, and output the entropy-coded component of the block unit according to the identification information And
Comprising
JPEG compression device.
請求項1に記載のJPEG圧縮装置であって、
前記独立圧縮処理部は、
前記ブロック単位で離散コサイン変換を行うDCT変換部と、
前記離散コサイン変換により生成された前記ブロック単位の各成分に対して量子化を行う量子化部と、
を備え、
前記非独立圧縮処理部は、
前記量子化部により量子化された前記ブロック単位の各成分を、関連付けられた前記識別情報に応じてエントロピ符号化を行うエントロピ符号化部と、
前記識別情報に応じて前記ブロック単位の各成分を出力する第2出力切替部と、
を備え、
前記エントロピ符号化部は、
前記識別情報毎に1つ前に出力された前記ブロック単位の各成分の先頭成分を保持する複数の保持部と、
前記ブロック単位の成分群の先頭成分から、当該ブロック単位の成分群に関連付けられた前記識別情報に対応する前記保持部に保持された前記先頭成分を差し引いて、前記先頭成分の差分を出力する差分取得部と、を有し、
前記差分された前記先頭成分と、前記ブロック単位の成分群の先頭成分以外の成分とに対してエントロピ符号化を行う、
JPEG圧縮装置。
The JPEG compression apparatus according to claim 1,
The independent compression processing unit
A DCT transform unit for performing discrete cosine transform in units of blocks;
A quantization unit that performs quantization on each block unit generated by the discrete cosine transform;
With
The non-independent compression processing unit is:
An entropy encoding unit that performs entropy encoding on each component of the block unit quantized by the quantization unit according to the associated identification information;
A second output switching unit that outputs each component of the block unit according to the identification information;
With
The entropy encoder is
A plurality of holding units that hold the leading component of each component of the block unit that was output immediately before each of the identification information;
Subtracting the head component held in the holding unit corresponding to the identification information associated with the block unit component group from the head component of the block unit component group, and outputting the difference of the head component An acquisition unit,
Entropy encoding is performed on the difference between the head component and a component other than the head component of the block-based component group.
JPEG compression device.
請求項2又は3に記載のJPEG圧縮装置であって、
前記独立圧縮処理部は、
更に、
前記識別情報に応じた複数の量子化テーブルと、
前記識別情報に応じて前記量子化テーブルを切り替えて、切り替えられた量子化テーブルの情報を出力する第1セレクタと、
を備え、
前記量子化部は、
前記第1セレクタによって出力された量子化テーブルの情報を用いて前記量子化を行う、
JPEG圧縮装置。
The JPEG compression apparatus according to claim 2 or 3,
The independent compression processing unit
Furthermore,
A plurality of quantization tables according to the identification information;
A first selector that switches the quantization table according to the identification information and outputs information of the switched quantization table;
With
The quantization unit is
Performing the quantization using information in the quantization table output by the first selector;
JPEG compression device.
請求項2及至請求項4のいずれか一項に記載のJPEG圧縮装置であって、
前記非独立圧縮処理部は、
更に、
前記識別情報に応じた複数のエントロピ符号化テーブルと、
前記識別情報に応じて前記エントロピ符号化テーブルを切り替えて、切り替えられたエントロピ符号化テーブルの情報を出力する第2セレクタと、
を備え、
前記エントロピ符号化部は、
前記第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて前記エントロピ符号化を行う、
JPEG圧縮装置。
A JPEG compression apparatus according to any one of claims 2 to 4,
The non-independent compression processing unit is:
Furthermore,
A plurality of entropy encoding tables according to the identification information;
A second selector that switches the entropy coding table according to the identification information and outputs information of the switched entropy coding table;
With
The entropy encoder is
Performing the entropy encoding using information in the entropy encoding table output by the second selector;
JPEG compression device.
請求項4に記載のJPEG圧縮装置であって、
前記識別情報は、更に、JPEG圧縮処理の圧縮率に関する情報を有し、
前記量子化テーブルは、前記JPEG圧縮処理の圧縮率に関する情報に応じた数有り、
前記第1セレクタは、前記JPEG圧縮処理の圧縮率に関する情報に応じて、切り替えられた量子化テーブルの情報を出力し、
前記量子化部は、
前記第1セレクタによって出力された量子化テーブルの情報を用いて前記量子化を行う、
JPEG圧縮装置。
The JPEG compression apparatus according to claim 4,
The identification information further includes information on the compression rate of the JPEG compression process,
The quantization table has a number corresponding to information related to the compression rate of the JPEG compression process,
The first selector outputs information of the switched quantization table according to information on the compression rate of the JPEG compression process,
The quantization unit is
Performing the quantization using information in the quantization table output by the first selector;
JPEG compression device.
請求項5に記載のJPEG圧縮装置であって、
前記識別情報は、更に、JPEG圧縮処理の圧縮率に関する情報を有し、
前記エントロピ符号化テーブルは、前記JPEG圧縮処理の圧縮率に関する情報に応じた数有り、
前記第2セレクタは、前記JPEG圧縮処理の圧縮率に関する情報に応じて、切り替えられたエントロピ符号化テーブルの情報を出力し、
前記エントロピ符号化部は、
前記第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて前記エントロピ符号化を行う、
JPEG圧縮装置。
The JPEG compression device according to claim 5,
The identification information further includes information on the compression rate of the JPEG compression process,
The entropy encoding table has a number corresponding to information related to the compression rate of the JPEG compression process,
The second selector outputs information of the switched entropy coding table according to the information regarding the compression rate of the JPEG compression process,
The entropy encoder is
Performing the entropy encoding using information in the entropy encoding table output by the second selector;
JPEG compression device.
請求項1及至7のいずれか一項に記載のJPEG圧縮装置であって、
前記識別情報は、前記JPEG圧縮処理の処理条件を有し、
1つの前記入力画像データに対して前記処理条件の異なる複数のJPEG圧縮処理を行う、
JPEG圧縮装置。
The JPEG compression apparatus according to any one of claims 1 to 7,
The identification information has processing conditions for the JPEG compression processing,
A plurality of JPEG compression processes with different processing conditions are performed on one input image data.
JPEG compression device.
請求項1及至8のいずれか一項に記載のJPEG圧縮装置と、
更に、
前記入力画像データを取得し、取得された入力画像データを順に前記記憶部に記憶させる入力画像データ取得部、
を備え、
前記取得出力部は、
前記記憶部に記憶された入力画像データが少なくとも前記ブロック単位分の画像データが記憶されたことに応じて、前記識別情報とともに、前記ブロック単位分の画像データを取得する、
画像読取装置。
A JPEG compression device according to any one of claims 1 to 8,
Furthermore,
An input image data acquisition unit for acquiring the input image data and sequentially storing the acquired input image data in the storage unit;
With
The acquisition output unit
The input image data stored in the storage unit acquires image data for the block unit together with the identification information in response to the image data for at least the block unit being stored.
Image reading device.
請求項9に記載の画像読取装置であって、
前記入力画像データ取得部は、
少なくとも、読取対象物を読み取って前記入力画像データを生成する画像読取部、
を備え、
前記JPEG圧縮装置は、前記入力画像データに対してJPEG圧縮処理を行い、
前記少なくとも1つの入力画像データは、前記画像読取部が読み取った前記画像データである、
画像読取装置。
The image reading apparatus according to claim 9, wherein
The input image data acquisition unit
An image reading unit that reads at least a reading object and generates the input image data;
With
The JPEG compression device performs JPEG compression processing on the input image data,
The at least one input image data is the image data read by the image reading unit,
Image reading device.
JP2012064091A 2012-03-21 2012-03-21 JPEG compression device, image reading device Active JP5843158B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012064091A JP5843158B2 (en) 2012-03-21 2012-03-21 JPEG compression device, image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012064091A JP5843158B2 (en) 2012-03-21 2012-03-21 JPEG compression device, image reading device

Publications (2)

Publication Number Publication Date
JP2013197984A true JP2013197984A (en) 2013-09-30
JP5843158B2 JP5843158B2 (en) 2016-01-13

Family

ID=49396380

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012064091A Active JP5843158B2 (en) 2012-03-21 2012-03-21 JPEG compression device, image reading device

Country Status (1)

Country Link
JP (1) JP5843158B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016001793A (en) * 2014-06-11 2016-01-07 ブラザー工業株式会社 Conversion device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0488752A (en) * 1990-07-31 1992-03-23 Canon Inc Picture processor
JPH0575875A (en) * 1991-09-18 1993-03-26 Tokyo Electric Co Ltd Picture encoding device
JPH06164939A (en) * 1992-11-16 1994-06-10 Fuji Xerox Co Ltd Encoder for picture signal
JPH0738761A (en) * 1993-07-22 1995-02-07 Minolta Co Ltd Encoder
JP2000050263A (en) * 1998-07-28 2000-02-18 Hitachi Ltd Image coder, decoder and image-pickup device using them
JP2001339728A (en) * 2000-05-29 2001-12-07 Matsushita Graphic Communication Systems Inc Image encoding method and encoding apparatus
JP2007274449A (en) * 2006-03-31 2007-10-18 Matsushita Electric Ind Co Ltd Double-sided image scanner

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0488752A (en) * 1990-07-31 1992-03-23 Canon Inc Picture processor
JPH0575875A (en) * 1991-09-18 1993-03-26 Tokyo Electric Co Ltd Picture encoding device
JPH06164939A (en) * 1992-11-16 1994-06-10 Fuji Xerox Co Ltd Encoder for picture signal
JPH0738761A (en) * 1993-07-22 1995-02-07 Minolta Co Ltd Encoder
JP2000050263A (en) * 1998-07-28 2000-02-18 Hitachi Ltd Image coder, decoder and image-pickup device using them
JP2001339728A (en) * 2000-05-29 2001-12-07 Matsushita Graphic Communication Systems Inc Image encoding method and encoding apparatus
JP2007274449A (en) * 2006-03-31 2007-10-18 Matsushita Electric Ind Co Ltd Double-sided image scanner

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016001793A (en) * 2014-06-11 2016-01-07 ブラザー工業株式会社 Conversion device
US9374594B2 (en) 2014-06-11 2016-06-21 Brother Kogyo Kabushiki Kaisha Converting apparatus

Also Published As

Publication number Publication date
JP5843158B2 (en) 2016-01-13

Similar Documents

Publication Publication Date Title
RU2708443C1 (en) Internal prediction method and an encoder and a decoder using it
JP6407389B2 (en) Data encoding and decoding
CN105847831B (en) Video coding apparatus and video decoder
CN110691244B (en) Method and apparatus for binarization and context adaptive coding of syntax in video coding
JP4949462B2 (en) Code amount estimation method, apparatus, program thereof, and recording medium
EP3139609B1 (en) Method and apparatus for block-based significance map and significance group flag context selection
KR20170108367A (en) Method and apparatus for processing a video signal based on intra prediction
EP3306930A1 (en) Encoding device, decoding device, and encoding and decoding method thereof
WO2012138032A1 (en) Method for encoding and decoding image information
CN107409224A (en) Method and apparatus for handling vision signal
CN107211153A (en) Method and apparatus for handling vision signal
US9729890B2 (en) Method and apparatus for unification of significance map context selection
JP5843158B2 (en) JPEG compression device, image reading device
EP3264771A1 (en) Coding device and decoding device
JP2011109460A (en) Image processing method and program, and image processing apparatus
CN105991895A (en) Apparatus and method for data decoding
JP6142833B2 (en) Electronics
CN114009036A (en) Image encoding device, image decoding device, image encoding method, and image decoding method
JP2012134776A (en) Image processing device, image processing method, and program
US11251808B2 (en) Image decoding device
JP3867857B2 (en) Color image processing device
JP2001309182A (en) Image processing unit and method
CN113994695A (en) Image encoding device, image decoding device, image encoding method, and image decoding method
JP2014099742A (en) Color/monochromatic determination
KR20190143418A (en) A method and an apparatus for encoding/decoding residual coefficient

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140312

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20140408

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150210

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150330

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151105

R150 Certificate of patent or registration of utility model

Ref document number: 5843158

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150