JP2011151572A - Image data processor and operating method thereof - Google Patents

Image data processor and operating method thereof Download PDF

Info

Publication number
JP2011151572A
JP2011151572A JP2010010677A JP2010010677A JP2011151572A JP 2011151572 A JP2011151572 A JP 2011151572A JP 2010010677 A JP2010010677 A JP 2010010677A JP 2010010677 A JP2010010677 A JP 2010010677A JP 2011151572 A JP2011151572 A JP 2011151572A
Authority
JP
Japan
Prior art keywords
compression
data
image
image data
storage device
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.)
Withdrawn
Application number
JP2010010677A
Other languages
Japanese (ja)
Inventor
Kazuhiro Maeta
和洋 前多
Koichi Terui
孝一 照井
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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics Corp
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 Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2010010677A priority Critical patent/JP2011151572A/en
Publication of JP2011151572A publication Critical patent/JP2011151572A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To data-compress read data from a storage device without generating the deterioration of data accuracy by data compressing and storing image data in the storage device. <P>SOLUTION: An image data processor 1 includes an image processing portion 11 and a compression/decompression portion 14. The image processing portion 11 executes the image processing of stored image data of a storage device 2, stores the image data output to a display device 3 in the storage device 2 after the image processing. The compression/decompression portion 14 compressing-processes the image data by a writing operation to the storage device 2. The compression/decompression portion 14 decompressing-processes the image data by a reading operation from the storage device 2. The compression/decompression portion 14 generates the compression data of upper bits by run length compressing the upper bits of the image data, and generates image compression data by combining with the non-compressed data of the lower bits of the image data. The compression/decompression portion 14 reversibly decompresses the image compression data which utilizes the run length compression by decompressing processing. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像データ処理装置およびその動作方法に関し、特に画像データをデータ圧縮して記憶装置に格納可能とし、記憶装置からの読み出しデータのデータ精度の劣化を発生させることなくデータ圧縮を可能とするのに有効な技術に関するものである。   The present invention relates to an image data processing apparatus and an operation method thereof, and more particularly, enables image data to be compressed and stored in a storage device, and can be compressed without causing deterioration in data accuracy of read data from the storage device. It is related to a technology that is effective to do this.

最近のオーディオビデオ(AV)機器、携帯電話やパーソナルコンピュータ(PC)等では、年々処理データ量が増大している。その結果、システムLSI内部のデータ処理のためのデータプロセッサや画像プロセッサの消費電力が増大する一方、システムLSI外部の外部メモリのメモリ容量およびアクセス時の消費電力も増大すると言う問題が顕著となっている。   In recent audio video (AV) devices, cellular phones, personal computers (PCs), etc., the amount of processing data is increasing year by year. As a result, the power consumption of the data processor and the image processor for data processing inside the system LSI increases, while the memory capacity of the external memory outside the system LSI and the power consumption during access become significant. Yes.

一方、下記特許文献1には、デジタルスチルカメラのフレームメモリの容量を削減可能なメモリ制御回路が記載されている。サンプリング比率が4:2:2の輝度信号(Y)と色差信号(B−Y)と色差信号(R−Y)の一般的なデータ形式は、4:1:1と輝度信号(Y)はそのままで色差信号(B−Y、R−Y)のみダウンサンプリング(データ間引き)されて、フレームメモリに書き込まれる。フレームメモリの読み出し時には、色差信号(B−Y、R−Y)のみアップサンプリング(データ補間)されて、4:2:2のデータ形式が表示装置に供給され、フレームメモリの容量を削減できる。   On the other hand, Patent Document 1 below describes a memory control circuit capable of reducing the capacity of a frame memory of a digital still camera. The general data format of the luminance signal (Y), color difference signal (BY), and color difference signal (RY) with a sampling ratio of 4: 2: 2 is 4: 1: 1 and the luminance signal (Y) is As it is, only the color difference signals (BY, RY) are down-sampled (data thinned out) and written into the frame memory. At the time of reading out the frame memory, only the color difference signals (BY, RY) are up-sampled (data interpolation), and a 4: 2: 2 data format is supplied to the display device, so that the capacity of the frame memory can be reduced.

特開平10−210501号 公報Japanese Patent Laid-Open No. 10-210501

本発明者等は本発明に先立って、携帯電話等のバッテリー駆動のモバイル機器に搭載可能でモバイル機器のLCD表示デバイスの画面に動画像を表示可能なシステムLSIの研究・開発に従事した。   Prior to the present invention, the present inventors engaged in research and development of a system LSI that can be mounted on a battery-powered mobile device such as a mobile phone and can display a moving image on the screen of an LCD display device of the mobile device.

この研究・開発の経過で、本発明者等は本発明に先立って、上記特許文献1に記載されたデータ削減技術に関して検討を行った。本発明者等による検討の結果、上記特許文献1に記載のデータ削減技術によれば、フレームメモリの容量の削減は可能であるが、ダウンサンプリングとアップサンプリングとによるフレームメモリからの読み出しデータは最初のデータ精度に復元できず、データ精度の劣化が生じると言う問題が明とされた。   In the course of this research and development, the present inventors examined the data reduction technique described in Patent Document 1 prior to the present invention. As a result of the study by the present inventors, the data reduction technique described in Patent Document 1 can reduce the capacity of the frame memory, but the read data from the frame memory by downsampling and upsampling is the first. The problem that the data accuracy could not be restored and the data accuracy deteriorated was clarified.

本発明は、以上のような本発明に先立った本発明者等による検討の結果、なされたものである。   The present invention has been made as a result of the examination by the present inventors prior to the present invention as described above.

本発明の目的とするところは、画像データをデータ圧縮して記憶装置に格納可能とし、記憶装置からの読み出しデータのデータ精度の劣化を発生させることなくデータ圧縮を可能とすることにある。   An object of the present invention is to enable image data to be compressed and stored in a storage device, and to be compressed without causing deterioration in data accuracy of read data from the storage device.

本発明の前記ならびにその他の目的と新規な特徴は、本明細書の記述および添付図面から明らかになるであろう。   The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

本願において開示される発明のうちの代表的なものについて簡単に説明すれば下記のとおりである。   A typical one of the inventions disclosed in the present application will be briefly described as follows.

すなわち、本発明の代表的な実施の形態は、画像処理部(11)と圧縮/解凍部(14)とを具備する画像データ処理装置(1)である。   That is, a typical embodiment of the present invention is an image data processing device (1) including an image processing unit (11) and a compression / decompression unit (14).

前記画像データ処理装置(1)は、記憶装置(2)と表示装置(3)とに電気的に接続可能とされる。   The image data processing device (1) can be electrically connected to a storage device (2) and a display device (3).

前記画像処理部(11)は前記記憶装置(2)に格納された画像データの画像処理が実行可能とされ、前記画像処理部(11)は前記画像処理の後に前記表示装置(3)に出力される画像データを前記記憶装置(2)に格納可能とされる。   The image processing unit (11) can perform image processing on the image data stored in the storage device (2), and the image processing unit (11) outputs to the display device (3) after the image processing. The stored image data can be stored in the storage device (2).

前記圧縮/解凍部(14)は前記画像処理部(11)と接続されることにより、前記記憶装置(2)への書き込み動作が実行される際には前記圧縮/解凍部(14)は画像データの圧縮処理が実行可能とされ、前記記憶装置(2)から読み出し動作が実行される際には前記圧縮/解凍部(14)は画像データの解凍処理が実行可能とされる(図1参照)。   The compression / decompression unit (14) is connected to the image processing unit (11), so that when the write operation to the storage device (2) is executed, the compression / decompression unit (14) Data compression processing can be executed, and when a read operation is executed from the storage device (2), the compression / decompression unit (14) can execute image data decompression processing (see FIG. 1). ).

前記圧縮処理では、前記圧縮/解凍部(14)は前記記憶装置(2)へ書き込まれる画像データの画素データの上位ビットをランレングス圧縮して前記上位ビットの圧縮データを生成して、前記記憶装置(2)へ書き込まれる前記画像データの前記画素データの下位ビットの非圧縮データと前記上位ビットの前記圧縮データとを結合して前記記憶装置(2)へ書き込まれる画像圧縮データを生成可能とされる(図3乃至図5参照)。   In the compression processing, the compression / decompression unit (14) performs run-length compression on the upper bits of the pixel data of the image data written to the storage device (2) to generate compressed data of the upper bits, and stores the storage data. It is possible to generate compressed image data to be written to the storage device (2) by combining the lower-bit uncompressed data of the pixel data of the image data written to the device (2) and the compressed data of the upper bits. (See FIGS. 3 to 5).

前記解凍処理では、前記圧縮/解凍部(14)は前記記憶装置(2)から読み出される前記ランレングス圧縮を利用した前記画像圧縮データを可逆解凍可能とされたことを特徴とするものである(図1参照)。   In the decompression process, the compression / decompression unit (14) is capable of reversibly decompressing the compressed image data using the run-length compression read from the storage device (2). (See FIG. 1).

本願において開示される発明のうち代表的なものによって得られる効果を簡単に説明すれば下記の通りである。   The effects obtained by the representative ones of the inventions disclosed in the present application will be briefly described as follows.

すなわち、本発明によれば、画像データをデータ圧縮して記憶装置に格納可能とし、記憶装置からの読み出しデータのデータ精度の劣化を発生させることなくデータ圧縮を可能とすることができる。   That is, according to the present invention, image data can be compressed and stored in a storage device, and data compression can be performed without causing deterioration in data accuracy of read data from the storage device.

図1は、本発明の実施の形態1によるマイクロプロセッサ1の構成を示す図である。FIG. 1 is a diagram showing a configuration of a microprocessor 1 according to the first embodiment of the present invention. 図2は、図1に示すマイクロプロセッサ1に接続される記憶装置2の保存データのアドレスマップを示す図である。FIG. 2 is a diagram showing an address map of stored data in the storage device 2 connected to the microprocessor 1 shown in FIG. 図3は、図1に示した本発明の実施の形態1によるマイクロプロセッサ1の画像処理部11によって処理される画像データの変化を示す図である。FIG. 3 is a diagram showing changes in image data processed by the image processing unit 11 of the microprocessor 1 according to the first embodiment of the present invention shown in FIG. 図4は、図3に示した画像データの上位2ビットbit7、bit6と下位6ビットbit5〜bit0の計8ビットで構成されるデジタルカラー画像データの16画素の圧縮単位を示す図である。FIG. 4 is a diagram showing a compression unit of 16 pixels of digital color image data composed of a total of 8 bits, the upper 2 bits 7 and 6 and the lower 6 bits 5 to 5 of the image data shown in FIG. 図5は、図4に示す16画素の圧縮単位に対して上位2ビットを圧縮対象ビットとしてランレングス圧縮を行い、更に非圧縮ビットとヘッダとを結合したデータを示す図である。FIG. 5 is a diagram showing data obtained by performing run-length compression on the 16-pixel compression unit shown in FIG. 4 using the upper 2 bits as the compression target bits, and further combining the uncompressed bits and the header. 図6は、図13のフローのステップS107で非圧縮選択を行いステップS110で非圧縮データを出力する際には、非圧縮データのビット数を削減するために非圧縮データの所定の最下位ビットを削除する様子を示す図である。FIG. 6 shows a case where non-compression selection is performed in step S107 of the flow of FIG. 13 and non-compressed data is output in step S110. In order to reduce the number of bits of uncompressed data, predetermined least significant bits of uncompressed data are used. It is a figure which shows a mode that is deleted. 図7は、図3と同様に図1に示した本発明の実施の形態1によるマイクロプロセッサ1の画像処理部11によって処理される画像データの変化を示す図である。FIG. 7 is a diagram showing changes in image data processed by the image processing unit 11 of the microprocessor 1 according to the first embodiment of the present invention shown in FIG. 1 as in FIG. 図8は、図7に示した画像データの上位4ビットと下位4ビットの計8ビットで構成されるデジタルカラー画像データの16画素の圧縮単位を示す図である。FIG. 8 is a diagram showing a compression unit of 16 pixels of digital color image data composed of a total of 8 bits including the upper 4 bits and the lower 4 bits of the image data shown in FIG. 図9は、本発明の実施の形態1の圧縮処理による図7に示した16画素の圧縮単位の圧縮結果を示す図である。FIG. 9 is a diagram illustrating a compression result of the compression unit of 16 pixels illustrated in FIG. 7 by the compression processing according to the first embodiment of the present invention. 図10は、図7と全く同一の画像データの変化を、図8のように上位4ビットを圧縮対象ビットとするのではなく、上位2ビットを圧縮対象ビットとした場合の様子を示す図である。FIG. 10 is a diagram showing a change in the image data exactly the same as in FIG. 7 when the upper 4 bits are used as the compression target bits instead of the upper 4 bits as shown in FIG. is there. 図11は、図10に示した画像データの上位2ビットと下位6ビットの計8ビットで構成されるデジタルカラー画像データの16画素の圧縮単位を示す図である。FIG. 11 is a diagram showing a compression unit of 16 pixels of digital color image data composed of a total of 8 bits, the upper 2 bits and the lower 6 bits of the image data shown in FIG. 図12は、本発明の実施の形態1の圧縮処理による図10に示した16画素の圧縮単位の圧縮結果を示す図である。FIG. 12 is a diagram illustrating a compression result of the compression unit of 16 pixels illustrated in FIG. 10 by the compression processing according to the first embodiment of the present invention. 図13は、図4に示した16画素の圧縮単位の本発明の実施の形態1による圧縮処理のフローを示す図である。FIG. 13 is a diagram showing a flow of compression processing according to the first embodiment of the present invention in the compression unit of 16 pixels shown in FIG. 図14は、図4に示した16画素の圧縮単位を圧縮した際に付加されるヘッダを示す図である。FIG. 14 is a diagram showing a header added when the 16-pixel compression unit shown in FIG. 4 is compressed. 図15は、1枚の画像の中で画像データの値の変化が激しい部分と画像データの値の変化が緩やかな部分とを含む様子を示す図である。FIG. 15 is a diagram illustrating a state in which a change in the value of the image data is sharp and a part in which the change in the value of the image data is gentle in one image. 図16は、図1に示すマイクロプロセッサ1の圧縮/解凍部14の内部で圧縮処理を実行する部分の構成を示す図である。FIG. 16 is a diagram showing a configuration of a portion that executes compression processing within the compression / decompression unit 14 of the microprocessor 1 shown in FIG. 図17は、図16に示した圧縮/解凍部14の圧縮処理によって圧縮された画像データの各1圧縮単位で選択された最高圧縮率の圧縮対象ビット幅の変化を示す図である。FIG. 17 is a diagram showing a change in the compression target bit width of the highest compression rate selected for each compression unit of the image data compressed by the compression processing of the compression / decompression unit 14 shown in FIG. 図18は、図5に示した圧縮データを解凍するための解凍処理のフローを示す図である。FIG. 18 is a diagram showing a flow of decompression processing for decompressing the compressed data shown in FIG. 図19は、本発明の実施の形態2による図1に示すマイクロプロセッサ1の圧縮/解凍部14内部で圧縮処理を実行する部分の構成を示す図である。FIG. 19 is a diagram showing a configuration of a portion that executes compression processing inside the compression / decompression unit 14 of the microprocessor 1 shown in FIG. 1 according to the second embodiment of the present invention. 図20は、本発明の実施の形態2による図1に示すマイクロプロセッサ1の圧縮/解凍部14内部で圧縮処理を実行する部分の他の構成を示す図である。FIG. 20 is a diagram showing another configuration of a portion that executes compression processing within the compression / decompression unit 14 of the microprocessor 1 shown in FIG. 1 according to the second embodiment of the present invention. 図21は、図19に示した本発明の実施の形態2による圧縮/解凍部14内部の圧縮処理部で処理される圧縮処理フローを示す図である。FIG. 21 is a diagram showing a compression processing flow processed by the compression processing unit inside the compression / decompression unit 14 according to the second embodiment of the present invention shown in FIG. 図22は、図20に示した本発明の実施の形態2による圧縮/解凍部14内部の圧縮処理部で処理される圧縮処理フローを示す図である。FIG. 22 is a diagram showing a compression processing flow processed by the compression processing unit in the compression / decompression unit 14 according to the second embodiment of the present invention shown in FIG. 図23は、図21に示した本発明の実施の形態2による圧縮処理フローによる圧縮処理の様子を示す図である。FIG. 23 is a diagram showing a state of compression processing according to the compression processing flow according to the second embodiment of the present invention shown in FIG. 図24は、図22に示した本発明の実施の形態2による圧縮処理フローによる圧縮処理の様子を示す図である。FIG. 24 is a diagram showing a state of the compression processing by the compression processing flow according to the second embodiment of the present invention shown in FIG.

1.実施の形態の概要
まず、本願において開示される発明の代表的な実施の形態について概要を説明する。代表的な実施の形態についての概要説明で括弧を付して参照する図面の参照符号はそれが付された構成要素の概念に含まれるものを例示するに過ぎない。
1. First, an outline of a typical embodiment of the invention disclosed in the present application will be described. The reference numerals of the drawings referred to with parentheses in the outline description of the representative embodiments merely exemplify what are included in the concept of the components to which the reference numerals are attached.

〔1〕本発明の代表的な実施の形態は、画像処理部(11)と圧縮/解凍部(14)とを具備する画像データ処理装置(1)である。   [1] A typical embodiment of the present invention is an image data processing apparatus (1) including an image processing unit (11) and a compression / decompression unit (14).

前記画像データ処理装置(1)は、記憶装置(2)と表示装置(3)とに電気的に接続可能とされる。   The image data processing device (1) can be electrically connected to a storage device (2) and a display device (3).

前記画像処理部(11)は前記記憶装置(2)に格納された画像データの画像処理が実行可能とされ、前記画像処理部(11)は前記画像処理の後に前記表示装置(3)に出力される画像データを前記記憶装置(2)に格納可能とされる。   The image processing unit (11) can perform image processing on the image data stored in the storage device (2), and the image processing unit (11) outputs to the display device (3) after the image processing. The stored image data can be stored in the storage device (2).

前記圧縮/解凍部(14)は前記画像処理部(11)と接続されることにより、前記記憶装置(2)への書き込み動作が実行される際には前記圧縮/解凍部(14)は画像データの圧縮処理が実行可能とされ、前記記憶装置(2)から読み出し動作が実行される際には前記圧縮/解凍部(14)は画像データの解凍処理が実行可能とされる(図1参照)。   The compression / decompression unit (14) is connected to the image processing unit (11), so that when the write operation to the storage device (2) is executed, the compression / decompression unit (14) Data compression processing can be executed, and when a read operation is executed from the storage device (2), the compression / decompression unit (14) can execute image data decompression processing (see FIG. 1). ).

前記圧縮処理では、前記圧縮/解凍部(14)は前記記憶装置(2)へ書き込まれる画像データの画素データの上位ビットをランレングス圧縮して前記上位ビットの圧縮データを生成して、前記記憶装置(2)へ書き込まれる前記画像データの前記画素データの下位ビットの非圧縮データと前記上位ビットの前記圧縮データとを結合して前記記憶装置(2)へ書き込まれる画像圧縮データを生成可能とされる(図3乃至図5参照)。   In the compression processing, the compression / decompression unit (14) performs run-length compression on the upper bits of the pixel data of the image data written to the storage device (2) to generate compressed data of the upper bits, and stores the storage data. It is possible to generate compressed image data to be written to the storage device (2) by combining the lower-bit uncompressed data of the pixel data of the image data written to the device (2) and the compressed data of the upper bits. (See FIGS. 3 to 5).

前記解凍処理では、前記圧縮/解凍部(14)は前記記憶装置(2)から読み出される前記ランレングス圧縮を利用した前記画像圧縮データを可逆解凍可能とされたことを特徴とするものである(図1参照)。   In the decompression process, the compression / decompression unit (14) is capable of reversibly decompressing the compressed image data using the run-length compression read from the storage device (2). (See FIG. 1).

前記実施の形態によれば、画像データをデータ圧縮して記憶装置に格納可能とし、記憶装置からの読み出しデータのデータ精度の劣化を発生させることなくデータ圧縮を可能とすることができる。   According to the embodiment, image data can be compressed and stored in a storage device, and data compression can be performed without causing deterioration in data accuracy of read data from the storage device.

好適な実施の形態では、前記ランレングス圧縮では、前記記憶装置(2)へ書き込まれる前記画像データの前記画素データの前記上位ビットの連続する同一値を表示するデータ種別と、前記同一値がどれだけの長さで連続するかを表示する連続長とが利用されることを特徴とするものである(図3乃至図5参照)。   In a preferred embodiment, in the run-length compression, a data type for displaying the same value in which the higher-order bits of the pixel data of the image data written to the storage device (2) are continuous, and the same value In this case, a continuous length that indicates whether or not it is continuous is used (see FIGS. 3 to 5).

他の好適な実施の形態では、所定の画素数を少なくとも含む前記画像データの前記画素データの前記上位ビットを前記ランレングス圧縮して前記上位ビットの前記圧縮データを生成して、前記画像データの前記画素データの前記下位ビットの前記非圧縮データと前記上位ビットの前記圧縮データを結合して生成した前記画像圧縮データのデータ量が前記ランレングス圧縮を利用しない場合の画像非圧縮データのデータ量と比較される(図13:ステップS107参照)。   In another preferred embodiment, the high-order bits of the pixel data of the image data including at least a predetermined number of pixels are run-length compressed to generate the compressed data of the high-order bits, and the image data Data amount of the image uncompressed data when the data amount of the image compressed data generated by combining the uncompressed data of the lower bit and the compressed data of the upper bit of the pixel data does not use the run length compression (See FIG. 13: step S107).

前記ランレングス圧縮を利用した場合の前記画像圧縮データの前記データ量が前記ランレングス圧縮を利用しない場合の前記画像非圧縮データの前記データ量よりも大きいと判定された場合には、前記ランレングス圧縮を利用しない場合の前記画像非圧縮データが前記圧縮/解凍部(14)から出力されることを特徴とするものである(図13:ステップS110参照)。   When it is determined that the data amount of the image compressed data when the run length compression is used is larger than the data amount of the image uncompressed data when the run length compression is not used, the run length The image uncompressed data when compression is not used is output from the compression / decompression unit (14) (see FIG. 13: step S110).

より好適な実施の形態では、前記圧縮/解凍部(14)が前記記憶装置(2)へ書き込まれる前記画像データの前記画素データの前記上位ビットをランレングス圧縮する際に、ランレングス圧縮される前記上位ビットのビット数が可変可能とされることを特徴とするものである(図4、図8、図11参照)。   In a more preferred embodiment, the compression / decompression unit (14) performs run-length compression when the high-order bits of the pixel data of the image data written to the storage device (2) are run-length compressed. The number of upper bits can be varied (see FIGS. 4, 8, and 11).

具体的な実施の形態は、前記圧縮/解凍部(14)は、ランレングス圧縮される前記上位ビットのビット数を相違して設定可能な少なくとも2個の圧縮部(141、142:111、112)と、前記少なくとも2個の圧縮部に接続された選択部(149:113)とを含む。   In a specific embodiment, the compression / decompression unit (14) includes at least two compression units (141, 142: 111, 112) that can be set by differentiating the number of bits of the upper bits that are run-length compressed. ) And a selection unit (149: 113) connected to the at least two compression units.

前記選択部は、前記少なくとも2個の圧縮部から出力される圧縮出力データのデータ量の少ない方を選択して出力することを特徴とするものである(図16、図19、図20参照)。   The selection unit selects and outputs the smaller amount of compressed output data output from the at least two compression units (see FIGS. 16, 19, and 20). .

〔2〕本発明の別の観点の代表的な実施の形態は、画像処理部(11)と圧縮/解凍部(14)とを具備する画像データ処理装置(1)の動作方法である。   [2] A typical embodiment of another aspect of the present invention is an operation method of an image data processing apparatus (1) including an image processing unit (11) and a compression / decompression unit (14).

前記画像データ処理装置(1)は、記憶装置(2)と表示装置(3)とに電気的に接続可能とされる。   The image data processing device (1) can be electrically connected to a storage device (2) and a display device (3).

前記画像処理部(11)は前記記憶装置(2)に格納された画像データの画像処理が実行可能とされ、前記画像処理部(11)は前記画像処理の後に前記表示装置(3)に出力される画像データを前記記憶装置(2)に格納可能とされる。   The image processing unit (11) can perform image processing on the image data stored in the storage device (2), and the image processing unit (11) outputs to the display device (3) after the image processing. The stored image data can be stored in the storage device (2).

前記圧縮/解凍部(14)は前記画像処理部(11)と接続されることにより、前記記憶装置(2)への書き込み動作が実行される際には前記圧縮/解凍部(14)は画像データの圧縮処理が実行可能とされ、前記記憶装置(2)から読み出し動作が実行される際には前記圧縮/解凍部(14)は画像データの解凍処理が実行可能とされる(図1参照)。   The compression / decompression unit (14) is connected to the image processing unit (11), so that when the write operation to the storage device (2) is executed, the compression / decompression unit (14) Data compression processing can be executed, and when a read operation is executed from the storage device (2), the compression / decompression unit (14) can execute image data decompression processing (see FIG. 1). ).

前記圧縮処理では、前記圧縮/解凍部(14)は前記記憶装置(2)へ書き込まれる画像データの画素データの上位ビットをランレングス圧縮して前記上位ビットの圧縮データを生成して、前記記憶装置(2)へ書き込まれる前記画像データの前記画素データの下位ビットの非圧縮データと前記上位ビットの前記圧縮データとを結合して前記記憶装置(2)へ書き込まれる画像圧縮データを生成可能とされる(図3乃至図5参照)。   In the compression processing, the compression / decompression unit (14) performs run-length compression on the upper bits of the pixel data of the image data written to the storage device (2) to generate compressed data of the upper bits, and stores the storage data. It is possible to generate compressed image data to be written to the storage device (2) by combining the lower-bit uncompressed data of the pixel data of the image data written to the device (2) and the compressed data of the upper bits. (See FIGS. 3 to 5).

前記解凍処理では、前記圧縮/解凍部(14)は前記記憶装置(2)から読み出される前記ランレングス圧縮を利用した前記画像圧縮データを可逆解凍可能とされたことを特徴とするものである(図1参照)。   In the decompression process, the compression / decompression unit (14) is capable of reversibly decompressing the compressed image data using the run-length compression read from the storage device (2). (See FIG. 1).

前記実施の形態によれば、画像データをデータ圧縮して記憶装置に格納可能とする一方、記憶装置からの読み出しデータのデータ精度の劣化を発生させることなくデータ圧縮を可能とすることができる。   According to the embodiment, the image data can be compressed and stored in the storage device, and the data can be compressed without causing deterioration of the data accuracy of the read data from the storage device.

2.実施の形態の詳細
次に、実施の形態について更に詳述する。尚、発明を実施するための最良の形態を説明するための全図において、前記の図と同一の機能を有する部品には同一の符号を付して、その繰り返しの説明は省略する。
2. Details of Embodiment Next, the embodiment will be described in more detail. In all the drawings for explaining the best mode for carrying out the invention, components having the same functions as those in the above-mentioned drawings are denoted by the same reference numerals, and repeated description thereof is omitted.

[実施の形態1]
《マイクロプロセッサの構成》
図1は、本発明の実施の形態1によるマイクロプロセッサ1の構成を示す図である。
[Embodiment 1]
<Microprocessor configuration>
FIG. 1 is a diagram showing a configuration of a microprocessor 1 according to the first embodiment of the present invention.

図1に示すマイクロプロセッサ1は、画像処理部11、中央処理ユニット(CPU)12、圧縮/解凍判定部13、圧縮/解凍部14、記憶装置制御部15、表示装置制御部16、バス17、外部入出力インターフェース(I/O)部18によって構成されている。マイクロプロセッサ1は、記憶装置制御部15を介して記憶装置2と接続される一方、表示装置制御部16を介して表示部3と接続される。   The microprocessor 1 shown in FIG. 1 includes an image processing unit 11, a central processing unit (CPU) 12, a compression / decompression determination unit 13, a compression / decompression unit 14, a storage device control unit 15, a display device control unit 16, a bus 17, An external input / output interface (I / O) unit 18 is configured. The microprocessor 1 is connected to the storage device 2 via the storage device control unit 15 and is connected to the display unit 3 via the display device control unit 16.

画像処理部11は、CPU12からの指示に従って、例えば動画像データのデコードもしくはエンコード等の画像データの処理を実行する。更に画像処理部11は、表示装置3の表示画面サイズに適合するために画像の拡大や縮小や回転を実行する一方、複数面画像の重ね合わせ処理やフィルタ処理も実行する。   The image processing unit 11 executes image data processing such as decoding or encoding of moving image data, for example, in accordance with an instruction from the CPU 12. Further, the image processing unit 11 executes enlargement, reduction, and rotation of the image to fit the display screen size of the display device 3, and also executes superimposition processing and filtering processing of the multi-plane images.

圧縮/解凍判定部13は、マイクロプロセッサ1内部の画像処理装置11やCPU12、表示装置制御部16等のバスマスタが記憶装置2をアクセスする際のアクセス先を判定するものである。   The compression / decompression determination unit 13 determines an access destination when a bus master such as the image processing device 11, the CPU 12, or the display device control unit 16 in the microprocessor 1 accesses the storage device 2.

《記憶装置のアドレスマップ》
図2は、図1に示すマイクロプロセッサ1に接続される記憶装置2の保存データのアドレスマップを示す図である。
<Storage device address map>
FIG. 2 is a diagram showing an address map of stored data in the storage device 2 connected to the microprocessor 1 shown in FIG.

図2のアドレスマップに示すように記憶装置2のアドレス空間は、画像圧縮領域21と非圧縮領域22とに分割される。この分割の境界は、固定値として圧縮/解凍判定部13内部に設定可能であり、また可変値としてCPU12から圧縮/解凍判定部13に設定することが可能である。また図2では2つの領域に分割されているが、2つの領域以上の複数の領域に分割されることも可能である。   As shown in the address map of FIG. 2, the address space of the storage device 2 is divided into an image compression area 21 and a non-compression area 22. This division boundary can be set in the compression / decompression determination unit 13 as a fixed value, and can be set in the compression / decompression determination unit 13 from the CPU 12 as a variable value. Further, although it is divided into two regions in FIG. 2, it can be divided into a plurality of regions equal to or more than two regions.

画像処理部11のアクセス先が記憶装置2の画像圧縮領域21である場合には、記憶装置制御部15と圧縮/解凍部14と圧縮/解凍判定部13とバス17とを経由して記憶装置2と画像処理部11との間で処理に必要なデータの読み出し動作または書き込み動作が実行される。その際、圧縮/解凍部14が記憶装置2にデータを書き込む場合には画像圧縮を実行する一方、圧縮/解凍部14が記憶装置2からデータを読み出す場合には画像解凍を実行する。画像処理部11のアクセス先が記憶装置2の非圧縮領域22である場合には、記憶装置2と記憶装置制御部15と圧縮/解凍判定部13とバス17とを経由して記憶装置2と画像処理部11との間で処理に必要なデータの読み出し動作または書き込み動作が実行される。その際には、読み出しまたは書き込みの転送データが圧縮/解東部14を通過しないので、データの画像圧縮と画像解凍とは実行されない。   When the access destination of the image processing unit 11 is the image compression area 21 of the storage device 2, the storage device is connected via the storage device control unit 15, the compression / decompression unit 14, the compression / decompression determination unit 13, and the bus 17. 2 and the image processing unit 11 perform a data reading or writing operation necessary for processing. At that time, when the compression / decompression unit 14 writes data to the storage device 2, image compression is performed, while when the compression / decompression unit 14 reads data from the storage device 2, image decompression is performed. When the access destination of the image processing unit 11 is the uncompressed area 22 of the storage device 2, the storage device 2 is connected via the storage device 2, the storage device control unit 15, the compression / decompression determination unit 13, and the bus 17. A data reading operation or writing operation required for processing is performed with the image processing unit 11. At this time, since read or write transfer data does not pass through the compression / disassembly unit 14, image compression and image decompression of the data are not executed.

画像を表示するために、表示装置3が記憶装置2の画像圧縮領域21または非圧縮領域22からデータを読み出す際に、記憶装置制御部15と圧縮/解凍部14と圧縮/解凍判定部13とバス17を経由してまたは記憶装置制御部15と圧縮/解凍判定部13とバス17を経由して、表示装置3が記憶装置2の画像圧縮領域21または非圧縮領域22から必要なデータの読み出しを実行する。   When the display device 3 reads data from the image compression area 21 or the non-compression area 22 of the storage device 2 in order to display an image, the storage device control unit 15, the compression / decompression unit 14, and the compression / decompression determination unit 13 The display device 3 reads necessary data from the image compression area 21 or the non-compression area 22 of the storage device 2 via the bus 17 or via the storage device control unit 15, the compression / decompression determination unit 13 and the bus 17. Execute.

CPU12がプログラムやデータ等を記憶装置2から読み出しアクセスを実行するかCPU12がプログラムやデータ等を記憶装置2に書き込みアクセスを実行するためには、CPU12が圧縮/解凍部14を介して記憶装置2の非圧縮領域22にプログラムやデータを格納する一方、CPU12が圧縮/解凍部14を介することなく記憶装置2の非圧縮領域22へのデータの直接の読み出し動作または直接の書き込み動作が実行される。   In order for the CPU 12 to read out a program, data, or the like from the storage device 2, or for the CPU 12 to execute access to write the program, data, or the like to the storage device 2, the CPU 12 may store the storage device 2 via the compression / decompression unit 14. While the program and data are stored in the non-compressed area 22, the CPU 12 executes the data direct read operation or the direct write operation to the non-compressed area 22 of the storage device 2 without going through the compression / decompression unit 14. .

例えば、動画コンテンツをデコードすることによって表示装置3に表示する場合には、外部入出力インターフェース(I/O)部18から供給される動画コンテンツデータをCPU12が記憶装置2の非圧縮領域22への書き込みを実行する一方、CPU12は画像処理部11にデコード指示の命令を供給する。すると画像処理部11は動画コンテンツデータを記憶装置2の非圧縮領域22から読み出して、動画デコード処理を実行する。その後、画像処理部11は、デコード画像の記憶装置2の画像圧縮領域21への書き込み動作を実行する。画像の拡大/縮小/回転や複数面の画像の重ね合せ/フィルタ処理等の画像処理が必要な場合には、画像処理部11が記憶装置2の画像圧縮領域21の画像データの読み出し動作と画像処理を実行した後に、表示装置3へ出力する画像データの記憶装置2の画像圧縮領域21への書き込み動作が実行される。記憶装置2の画像圧縮領域21への書き込み動作を実行する際には、圧縮/解凍部14で画像データの圧縮処理が実行され、記憶装置2の画像圧縮領域21から読み出し動作を実行する際には、圧縮/解凍部14で画像データの解凍処理が実行される。   For example, when the moving image content is decoded and displayed on the display device 3, the CPU 12 stores the moving image content data supplied from the external input / output interface (I / O) unit 18 in the uncompressed area 22 of the storage device 2. While executing the writing, the CPU 12 supplies a decoding instruction command to the image processing unit 11. Then, the image processing unit 11 reads the moving image content data from the uncompressed area 22 of the storage device 2 and executes the moving image decoding process. Thereafter, the image processing unit 11 performs a write operation of the decoded image in the image compression area 21 of the storage device 2. When image processing such as image enlargement / reduction / rotation or image superimposition / filtering is required, the image processing unit 11 reads the image data in the image compression area 21 of the storage device 2 and the image. After the processing is executed, an operation for writing the image data to be output to the display device 3 to the image compression area 21 of the storage device 2 is executed. When a write operation to the image compression area 21 of the storage device 2 is executed, the compression / decompression unit 14 executes image data compression processing, and when a read operation is executed from the image compression area 21 of the storage device 2 The compression / decompression unit 14 executes image data decompression processing.

表示装置制御部16は、記憶装置2の画像圧縮領域21から画像データを読み出して圧縮/解凍部14で画像データを解凍した後、解凍した画像データを表示装置3へ転送する。表示装置3が解凍部31を含んでいる場合には、画像装置制御部16は圧縮/解凍判定部13に対して圧縮データを直接バス17へ出力するように要求して、圧縮データを表示装置3へ直接転送することも可能である。それによって、表示装置3とマイクロプロセッサ1との間の入出力信号線のデータ量が削減され、消費電力を削減することが可能になる。   The display device control unit 16 reads the image data from the image compression area 21 of the storage device 2 and decompresses the image data by the compression / decompression unit 14, and then transfers the decompressed image data to the display device 3. When the display device 3 includes the decompression unit 31, the image device control unit 16 requests the compression / decompression determination unit 13 to output the compressed data directly to the bus 17, and the compressed data is displayed on the display device. It is also possible to transfer to 3 directly. Thereby, the data amount of the input / output signal lines between the display device 3 and the microprocessor 1 is reduced, and the power consumption can be reduced.

圧縮処理では、圧縮/解凍部14は記憶装置2へ書き込まれる画像データの画素データの上位ビットをランレングス圧縮して上位ビットの圧縮データを生成する。また更に圧縮/解凍部14は、記憶装置2へ書き込まれる画像データの画素データの下位ビットの非圧縮データとランレングス圧縮による上位ビットの圧縮データとを結合して記憶装置2へ書き込まれる画像圧縮データを生成可能とされている。   In the compression process, the compression / decompression unit 14 performs run-length compression on the upper bits of the pixel data of the image data written to the storage device 2 to generate compressed data of the upper bits. Further, the compression / decompression unit 14 combines the lower bit uncompressed data of the pixel data of the image data to be written to the storage device 2 and the upper bit compressed data by the run-length compression to write the image compressed to the storage device 2. Data can be generated.

解凍処理では、圧縮/解凍部14は、記憶装置2から読み出されるランレングス圧縮を利用した画像圧縮データを可逆解凍可能とされている。   In the decompression process, the compression / decompression unit 14 is capable of reversibly decompressing image compression data using run-length compression read from the storage device 2.

《画像データの圧縮》
図3は、図1に示した本発明の実施の形態1によるマイクロプロセッサ1の画像処理部11によって処理される画像データの変化を示す図である。
《Image data compression》
FIG. 3 is a diagram showing changes in image data processed by the image processing unit 11 of the microprocessor 1 according to the first embodiment of the present invention shown in FIG.

図3に示した画像データはRGB形式のデジタルカラー画像データであり、1画素が24ビット(すなわち、R/G/B:各8ビット)で構成され、16画素を圧縮単位として圧縮する場合を例にして説明する。   The image data shown in FIG. 3 is digital color image data in RGB format, and each pixel is composed of 24 bits (that is, R / G / B: 8 bits each), and compression is performed using 16 pixels as a compression unit. An example will be described.

ただし、これに限定するものではなく、RGB565の形式、またはYUV444の形式、またはYUV422の形式、またはYUVの420形式、またはそれ以外の画像形式を利用することも可能である。図3は、RGB形式の画像データの1要素、例えばR(赤)の値の変化を示した例である。画像データ(特に、自然画データ)においては、隣接する複数の画素のデジタル値が、同じ値になることは少ないが、近いデジタル値である場合が多いものである。そこで、図3の場合において上位2ビットに着目した場合には、7画素の上位2ビットが連続して同じ値b´10であり、次に4画素の上位2ビットが連続した同じ値b´01であり、次に5画素の上位2ビットが連続した同じ値b´00となっている。   However, the present invention is not limited to this, and it is also possible to use an RGB565 format, a YUV444 format, a YUV422 format, a YUV 420 format, or other image formats. FIG. 3 shows an example of a change in the value of one element of RGB image data, for example, R (red). In image data (especially natural image data), the digital values of a plurality of adjacent pixels are rarely the same value, but are often close digital values. Therefore, when attention is paid to the upper 2 bits in the case of FIG. 3, the upper 2 bits of 7 pixels are the same value b′10 continuously, and then the same value b ′ of the upper 2 bits of 4 pixels is continued. Next, the upper 2 bits of 5 pixels are continuously the same value b′00.

図4は、図3に示した画像データの上位2ビットbit7、bit6と下位6ビットbit5〜bit0の計8ビットで構成されるデジタルカラー画像データの16画素の圧縮単位を示す図である。本発明の実施の形態1による圧縮処理では、連続した上位ビットに対してランレングス圧縮(Run Length Encoding)を行い、上位ビットの圧縮データと下位ビットの非圧縮データと結合するものである。尚、ランレングス圧縮は、可逆圧縮に分類されるデータ圧縮アルゴリズムの1つであって、連続したデータをそのデータ1個と連続長とで表現することによって圧縮が可能となるものである。   FIG. 4 is a diagram showing a compression unit of 16 pixels of digital color image data composed of a total of 8 bits, the upper 2 bits 7 and 6 and the lower 6 bits 5 to 5 of the image data shown in FIG. In the compression processing according to the first embodiment of the present invention, run length compression is performed on consecutive upper bits, and the compressed data of the upper bits and the uncompressed data of the lower bits are combined. Note that run-length compression is one of data compression algorithms classified as lossless compression, and compression is possible by expressing continuous data as one piece of data and a continuous length.

図13は、図4に示した16画素の圧縮単位の本発明の実施の形態1による圧縮処理のフローを示す図である。   FIG. 13 is a diagram showing a flow of compression processing according to the first embodiment of the present invention in the compression unit of 16 pixels shown in FIG.

図13に示すように、まず、ステップS101でマイクロプロセッサ1の圧縮・解凍部14に画像データが入力されて圧縮処理が開始される。RGB形式であれば、R、G、Bの各要素に分離され、更にステップS102にて圧縮対象ビット(上位ビット)と非圧縮ビット(下位ビット)とに分離される。図4の例であれば、圧縮対象ビットは最上位ビットから2ビットに設定され、非圧縮ビットは残りの6ビットに設定される。   As shown in FIG. 13, first, in step S101, image data is input to the compression / decompression unit 14 of the microprocessor 1 to start compression processing. In the case of the RGB format, it is separated into R, G, and B elements, and further separated into compression target bits (upper bits) and uncompressed bits (lower bits) in step S102. In the example of FIG. 4, the compression target bit is set to 2 bits from the most significant bit, and the uncompressed bit is set to the remaining 6 bits.

次に、ステップS103にて、分離された圧縮対象ビットに対してランレングス圧縮を実行することによって分離された圧縮対象ビットをデータ種別とその連続長とに変換する。   In step S103, the separated compression target bits are converted into data types and their continuous lengths by performing run-length compression on the separated compression target bits.

図5は、図4に示す16画素の圧縮単位に対して上位2ビットを圧縮対象ビットとしてランレングス圧縮を行い、更に非圧縮ビットとヘッダとを結合したデータを示す図である。ランレングス圧縮によって、同じ値がどれだけの長さで連続しているかが表現され、連続する同じ値を以降「データ種別」と呼び、連続する長さを以降「連続長」と呼ぶ。   FIG. 5 is a diagram showing data obtained by performing run-length compression on the 16-pixel compression unit shown in FIG. 4 using the upper 2 bits as the compression target bits, and further combining the uncompressed bits and the header. The run-length compression expresses how long the same value is continuous. The same continuous value is hereinafter referred to as “data type”, and the continuous length is hereinafter referred to as “continuous length”.

図5の例では、図4が、
データ種別:b’10 連続長:7、
データ種別:b’01 連続長:4、
データ種別:b’00 連続長:5、
に圧縮されたことを示している。
In the example of FIG. 5, FIG.
Data type: b'10 Continuous length: 7,
Data type: b'01 Continuous length: 4,
Data type: b'00 Continuous length: 5,
Indicates that it has been compressed.

次に、図13のフローのステップS104にて、連続長の最大値から連続長を表すビット幅を決定する。図5の場合には、連続長の最大値が7であるため、連続長ビット幅を3ビットとする。この際に、連続長はデータ種別の連続個数を示すので、連続長の値は1以上である。   Next, in step S104 of the flow of FIG. 13, a bit width representing the continuous length is determined from the maximum value of the continuous length. In the case of FIG. 5, since the maximum value of the continuous length is 7, the continuous length bit width is 3 bits. At this time, since the continuous length indicates the number of continuous data types, the value of the continuous length is 1 or more.

従って、連続長を「連続長−1」の値で表現することで3ビットでの表現範囲をd’1(“000”)、d’2(“001”)、d’3(“010”)、d’4(“011”)、d’5(“100”)、d’6(“101”)、d’7(“110”)、d’8(“111”)に割り当てるものとする。ここで、仮に連続長の最大値が9であれば、連続長ビット幅を4ビットとして、d’1〜d’16の広い表現範囲が可能となる。   Therefore, by expressing the continuous length as a value of “continuous length−1”, the expression range in 3 bits is d′ 1 (“000”), d′ 2 (“001”), d′ 3 (“010”). ), D′ 4 (“011”), d′ 5 (“100”), d′ 6 (“101”), d′ 7 (“110”), d′ 8 (“111”) To do. Here, if the maximum value of the continuous length is 9, a wide expression range of d′ 1 to d′ 16 is possible by setting the continuous length bit width to 4 bits.

次に、図13のフローのステップS105にて、ランレングス圧縮で圧縮された圧縮データと、非圧縮の下位ビットの非圧縮ビットとを結合し、圧縮されたことを示すヘッダを付加する。   Next, in step S105 of the flow of FIG. 13, the compressed data compressed by the run length compression and the uncompressed lower-order uncompressed bits are combined, and a header indicating that the compressed data is added.

図14は、図4に示した16画素の圧縮単位を圧縮した際に付加されるヘッダを示す図である。   FIG. 14 is a diagram showing a header added when the 16-pixel compression unit shown in FIG. 4 is compressed.

図4に示した16画素の圧縮単位では、16画素の圧縮であるため、連続長の取りうる最大値はd’1〜d’16となる。連続長ビット幅が1の場合には、連続長の最大値が2しか表現できないために圧縮効率が悪くなる。従って、図14の例では、連続長ビット幅は1を除外した2、3、4とされている。   Since the compression unit of 16 pixels shown in FIG. 4 is compression of 16 pixels, the maximum value that can be taken by the continuous length is d′ 1 to d′ 16. When the continuous length bit width is 1, since the maximum value of the continuous length can only be expressed, the compression efficiency deteriorates. Therefore, in the example of FIG. 14, the continuous length bit width is set to 2, 3, and 4 excluding 1.

また、図14には、連続長ビット幅と圧縮対象ビット幅の組み合わせがヘッダIDの値で示されている。図14ではヘッダIDの最大値が31であるため、ヘッダのビット幅は5ビットになる。   Further, in FIG. 14, the combination of the continuous length bit width and the compression target bit width is indicated by the value of the header ID. In FIG. 14, since the maximum value of the header ID is 31, the bit width of the header is 5 bits.

図5は、本発明の実施の形態1による圧縮処理による図4に示した16画素の圧縮単位の圧縮結果を示す図である。   FIG. 5 is a diagram showing a compression result of the compression unit of 16 pixels shown in FIG. 4 by the compression processing according to the first embodiment of the present invention.

図5の例では、圧縮対象ビット幅は2であり連続長ビット幅は3であるため、図14に従ってヘッダIDは4になる。連続長ビット幅1が除外されたパターンが図14に示されたが、連続長ビット幅1を追加することも可能である。その場合、ヘッダのビット幅を6ビットとして、圧縮対象ビット幅1〜8に対する連続長ビット幅1をすべて追加することも可能である。また、図14に示したようにヘッダのビット幅5ビットの場合に空きとなっているヘッダIDの値が24〜29の6箇所に割り当ることも可能である。   In the example of FIG. 5, since the compression target bit width is 2 and the continuous length bit width is 3, the header ID is 4 according to FIG. Although the pattern in which the continuous length bit width 1 is excluded is shown in FIG. 14, the continuous length bit width 1 can be added. In that case, it is also possible to set the header bit width to 6 bits and add all the continuous bit widths 1 to the compression target bit widths 1 to 8. Also, as shown in FIG. 14, when the header bit width is 5 bits, it is possible to assign the empty header ID values to 6 locations of 24-29.

次に、図13のフローのステップS107にて、圧縮データのデータ量と非圧縮のデータ量とを比較する。ステップS107にて非圧縮データに比較して圧縮データのデータ量が少ないと判定された場合には、ステップS108で圧縮データを出力する。ステップS107にて非圧縮データに比較して圧縮データのデータ量が大きいと判定された場合には、圧縮を行わずに、ステップS106で圧縮前の圧縮/解凍部14に入力されたデータにヘッダを付加して、ステップS110で非圧縮データを出力する。ステップS110で非圧縮データを出力する際には、図14の最後に示したように非圧縮を示す値「31」のヘッダIDを付加するものである。   Next, in step S107 of the flow of FIG. 13, the amount of compressed data is compared with the amount of uncompressed data. If it is determined in step S107 that the amount of compressed data is smaller than that of uncompressed data, compressed data is output in step S108. If it is determined in step S107 that the amount of compressed data is larger than that of uncompressed data, the header is added to the data input to the compression / decompression unit 14 before compression in step S106 without performing compression. Is added, and uncompressed data is output in step S110. When outputting uncompressed data in step S110, a header ID of a value “31” indicating non-compression is added as shown at the end of FIG.

図5から理解されるように圧縮データのデータ量=ヘッダサイズ+(8−圧縮対象ビット幅)×圧縮単位ブロック数+(圧縮対象ビット幅+連続長ビット幅)×データ種別数となるのに対して、図4から理解されるように非圧縮データのデータ量=ヘッダサイズ+8×圧縮単位ブロック数となる。   As can be understood from FIG. 5, the data amount of compressed data = header size + (8−compression target bit width) × number of compression unit blocks + (compression target bit width + continuous length bit width) × number of data types. On the other hand, as understood from FIG. 4, the amount of uncompressed data = header size + 8 × the number of compression unit blocks.

従って、図3に示した画像データの例では、圧縮データのデータ量=5+(8−2)×16+(2+3)×3=116ビットとなって、非圧縮データのデータ量=5+8×16=133ビットとなり、圧縮データの方が非圧縮データよりもデータ量が小さくなり、データ圧縮が有効となったことになる。   Therefore, in the example of the image data shown in FIG. 3, the amount of compressed data is 5+ (8-2) × 16 + (2 + 3) × 3 = 116 bits, and the amount of uncompressed data is 5 + 8 × 16 =. The data amount is 133 bits, and the data amount of compressed data is smaller than that of non-compressed data, and data compression is effective.

また、図13のフローのステップS107にて非圧縮選択を行いステップS110で非圧縮データを出力する際には、非圧縮データからヘッダ付加した分のデータ量を削除して出力する圧縮処理することも可能とする。その結果、非圧縮を選択した場合に、ヘッダ分のデータの増加を回避することが可能となる。ステップS110で非圧縮データを出力する際に、例えば、図4と図14に示した例では、ヘッダのビット数が5ビットと比較的大きいので、非圧縮データのビット数を削減することが望ましい。   In addition, when non-compression selection is performed in step S107 of the flow of FIG. 13 and uncompressed data is output in step S110, a compression process is performed in which the amount of data added to the header is deleted from the uncompressed data and output. Also possible. As a result, when non-compression is selected, an increase in data for the header can be avoided. When outputting the uncompressed data in step S110, for example, in the example shown in FIGS. 4 and 14, the number of bits of the header is relatively large as 5 bits, so it is desirable to reduce the number of bits of the uncompressed data. .

図6は、図13のフローのステップS107で非圧縮選択を行いステップS110で非圧縮データを出力する際には、非圧縮データのビット数を削減するために非圧縮データの所定の最下位ビットを削除する様子を示す図である。   FIG. 6 shows a case where non-compression selection is performed in step S107 of the flow of FIG. 13 and non-compressed data is output in step S110. In order to reduce the number of bits of uncompressed data, predetermined least significant bits of uncompressed data are used. It is a figure which shows a mode that is deleted.

図6に示したように所定の最下位ビットを削除する際には、図14の最後の1個上に示したように非圧縮(削除あり)を示す値「30」のヘッダIDを付加するものである。このように非圧縮(削除あり)が選択される状況では、画像データの変化量が大きく所定の最下位ビットを削除しても画像劣化は目視では判断が困難となる。またヘッダIDを値「31」の非圧縮とするか、値「30」の非圧縮(削除あり)とするかは、事前にCPU12から圧縮/解凍部14に選択情報を設定することで選択することも可能である。   As shown in FIG. 6, when the predetermined least significant bit is deleted, a header ID of a value “30” indicating uncompressed (with deletion) is added as shown on the last one in FIG. Is. In such a situation where non-compression (with deletion) is selected, even if the change amount of the image data is large and the predetermined least significant bit is deleted, it is difficult to visually judge the image deterioration. Whether the header ID is uncompressed with the value “31” or uncompressed with the value “30” (with deletion) is selected by setting selection information in the compression / decompression unit 14 from the CPU 12 in advance. It is also possible.

図7は、図3と同様に図1に示した本発明の実施の形態1によるマイクロプロセッサ1の画像処理部11によって処理される画像データの変化を示す図である。図7の場合において上位4ビットに着目した場合には、7画素の上位4ビットが連続して同じ値b´1011であり、次に4画素の上位4ビットが連続して同じ値b´1010であり、次に5画素の上位4ビットが連続して同じ値b´1001である。すなわち、図3と比較して図7ではデータ変化が小さいので、圧縮対象ビット数を4ビットに増加しても、上位ビットに着目すると連続した値になる傾向がある。   FIG. 7 is a diagram showing changes in image data processed by the image processing unit 11 of the microprocessor 1 according to the first embodiment of the present invention shown in FIG. 1 as in FIG. In the case of FIG. 7, when attention is paid to the upper 4 bits, the upper 4 bits of 7 pixels are continuously the same value b′1011, and then the upper 4 bits of 4 pixels are continuously the same value b′1010. Next, the upper 4 bits of 5 pixels are continuously the same value b′1001. That is, since the data change is small in FIG. 7 as compared with FIG. 3, even if the number of bits to be compressed is increased to 4 bits, there is a tendency to become a continuous value when attention is paid to the upper bits.

図8は、図7に示した画像データの上位4ビットと下位4ビットの計8ビットで構成されるデジタルカラー画像データの16画素の圧縮単位を示す図である。   FIG. 8 is a diagram showing a compression unit of 16 pixels of digital color image data composed of a total of 8 bits including the upper 4 bits and the lower 4 bits of the image data shown in FIG.

図9は、本発明の実施の形態1の圧縮処理による図7に示した16画素の圧縮単位の圧縮結果を示す図である。図9の例では、圧縮対象ビット幅は4であり連続長ビット幅は3である。このように、図8に示したように上位4ビットを圧縮対象ビットとした場合には、図9の圧縮結果に示すように、下記のようになる。   FIG. 9 is a diagram illustrating a compression result of the compression unit of 16 pixels illustrated in FIG. 7 by the compression processing according to the first embodiment of the present invention. In the example of FIG. 9, the compression target bit width is 4 and the continuous length bit width is 3. In this way, when the upper 4 bits are set as the compression target bits as shown in FIG. 8, as shown in the compression result of FIG.

データ種別:b’1011 連続長:7
データ種別:b’1010 連続長:4
データ種別:b’1001 連続長:5
Data type: b′1011 Continuous length: 7
Data type: b′1010 Continuous length: 4
Data type: b′1001 Continuous length: 5

従って、図9の圧縮データのデータ量=5+(8−4)×16+(4+3)×3=90ビットとなる。   Therefore, the amount of compressed data in FIG. 9 is 5+ (8-4) × 16 + (4 + 3) × 3 = 90 bits.

図10は、図7と全く同一の画像データの変化を、図8のように上位4ビットを圧縮対象ビットとするのではなく、上位2ビットを圧縮対象ビットとした場合の様子を示す図である。   FIG. 10 is a diagram showing a change in the image data exactly the same as in FIG. 7 when the upper 4 bits are used as the compression target bits instead of the upper 4 bits as shown in FIG. is there.

図11は、図10に示した画像データの上位2ビットと下位6ビットの計8ビットで構成されるデジタルカラー画像データの16画素の圧縮単位を示す図である。   FIG. 11 is a diagram showing a compression unit of 16 pixels of digital color image data composed of a total of 8 bits, the upper 2 bits and the lower 6 bits of the image data shown in FIG.

図12は、本発明の実施の形態1の圧縮処理による図10に示した16画素の圧縮単位の圧縮結果を示す図である。図12の例では、圧縮対象ビット幅は2であり連続長ビット幅は4である。このように、図11に示したように上位2ビットを圧縮対象ビットとした場合には、図12の圧縮結果に示すように下記のようになる。   FIG. 12 is a diagram illustrating a compression result of the compression unit of 16 pixels illustrated in FIG. 10 by the compression processing according to the first embodiment of the present invention. In the example of FIG. 12, the compression target bit width is 2 and the continuous length bit width is 4. As described above, when the upper 2 bits are the compression target bits as shown in FIG. 11, the result is as follows as shown in the compression result of FIG.

データ種別:b’10 連続長:16   Data type: b'10 Continuous length: 16

また、図12の圧縮結果では、圧縮データのデータ量=5+(8−2)×16+(2+4)×1=107ビットとなる。圧縮対象ビット幅が2の図12の圧縮データ量107ビットは圧縮対象ビット幅が4の図9の圧縮データ量90ビットよりも大きくなるので、圧縮対象ビット数を大きく場合にはデータ圧縮率を向上できることが理解される。しかし、圧縮結果は圧縮する画像データに依存するものであり、例えば圧縮対象ビット数を4ビットとした場合でも、データ種別数が15、連続長ビット幅が2となった場合には、下記のようになる。   In the compression result of FIG. 12, the amount of compressed data is 5+ (8-2) × 16 + (2 + 4) × 1 = 107 bits. The compressed data amount of 107 bits in FIG. 12 with the compression target bit width of 2 is larger than the compressed data amount of 90 bits of FIG. 9 with the compression target bit width of 4, so when the compression target bit number is large, the data compression rate is increased. It is understood that it can be improved. However, the compression result depends on the image data to be compressed. For example, even when the compression target bit number is 4 bits, when the number of data types is 15 and the continuous length bit width is 2, It becomes like this.

圧縮データのデータ量=5+(8−4)×16+(4+2)×15=159ビット、
従って、この159ビット圧縮データのデータ量は、図4の非圧縮データのデータ量133ビットよりも大きな値となってしまうので、無条件に圧縮対象ビット数を増大することはできない。この問題は、以下に説明する実施の形態によって解消されることが可能である。
Data amount of compressed data = 5 + (8-4) × 16 + (4 + 2) × 15 = 159 bits,
Therefore, the data amount of the 159-bit compressed data is larger than the data amount of 133 bits of the non-compressed data in FIG. 4, so the number of compression target bits cannot be increased unconditionally. This problem can be solved by the embodiment described below.

すなわち、画像データは、1枚の画像の中でも図3のように値の変化が激しい場合もあれば、図7のように変化が緩やかな場合もある。   That is, the image data may have a large change in value as shown in FIG. 3 in one image, or may be a gradual change as shown in FIG.

図15は、1枚の画像の中で画像データの値の変化が激しい部分と画像データの値の変化が緩やかな部分とを含む様子を示す図である。例えば、図15の人の顔部分の画像では、目や口などの情報が多くデータの変化量も大きくなる傾向がある。また図15の空では同じ色が続くことが多く、データ変化量も少ない傾向がある。これら1枚の画像中であっても変化量の多い部分と少ない部分が混在して変化していく特徴から、図15に示すように圧縮処理を一定画素数(例えば、16画素)の圧縮単位で圧縮処理を実行する際に、圧縮対象ビット幅を各1圧縮単位で変化する処理を実行することで、圧縮率の低下を防ぐことを可能とするものである。   FIG. 15 is a diagram illustrating a state in which a change in the value of the image data is sharp and a part in which the change in the value of the image data is gentle in one image. For example, in the human face image of FIG. 15, there is a large amount of information such as eyes and mouth, and the amount of change in data tends to be large. Further, in the sky of FIG. 15, the same color often continues and the amount of data change tends to be small. Due to the feature that a part with a large amount of change and a part with a small amount of change are mixed even in one image, the compression processing is performed in a compression unit of a fixed number of pixels (for example, 16 pixels) as shown in FIG. When the compression process is executed, the process of changing the compression target bit width for each compression unit is executed to prevent the compression rate from being lowered.

図16は、図1に示すマイクロプロセッサ1の圧縮/解凍部14の内部で圧縮処理を実行する部分の構成を示す図である。   FIG. 16 is a diagram showing a configuration of a portion that executes compression processing within the compression / decompression unit 14 of the microprocessor 1 shown in FIG.

1圧縮単位の画像データを圧縮するために図16に示す圧縮/解凍部14は、上位nビットの圧縮を実行する上位nビット圧縮部14n(n:1〜8の整数)を8個含むことによって、入力された画像データの圧縮を8個の上位nビット圧縮部14nで同時に実行する。圧縮データセレクタ149には上位nビット圧縮部141〜148の出力信号が並列に供給され、圧縮データ量の最も少ない上位nビット圧縮部の出力信号を選択して出力するものである。   In order to compress the image data of one compression unit, the compression / decompression unit 14 shown in FIG. 16 includes eight upper n-bit compression units 14n (n: an integer of 1 to 8) that perform upper n-bit compression. Thus, the compression of the input image data is simultaneously executed by the eight upper n-bit compression units 14n. The compressed data selector 149 is supplied with the output signals of the upper n-bit compression units 141 to 148 in parallel, and selects and outputs the output signal of the upper n-bit compression unit with the smallest amount of compressed data.

図17は、図16に示した圧縮/解凍部14の圧縮処理によって圧縮された画像データの各1圧縮単位で選択された最高圧縮率の圧縮対象ビット幅の変化を示す図である。図16に示した圧縮/解凍部14による圧縮処理では、8個の圧縮対象ビット幅の中から最高圧縮率の圧縮対象ビット幅を選択するものである。   FIG. 17 is a diagram showing a change in the compression target bit width of the highest compression rate selected for each compression unit of the image data compressed by the compression processing of the compression / decompression unit 14 shown in FIG. In the compression processing by the compression / decompression unit 14 shown in FIG. 16, the compression target bit width having the highest compression rate is selected from the eight compression target bit widths.

図16では、8個の上位nビット圧縮部14nによって同時に圧縮処理を実行する構成を示したが、それに限定されるものでなく、上位nビットが可変の上位nビット圧縮部を準備して、同一入力圧縮対象データに対して上位nビットを1〜8の範囲で変化させて圧縮処理を実行して、最高圧縮率の上位nビットを選択することも可能である。   FIG. 16 shows a configuration in which the compression processing is simultaneously performed by the eight upper n-bit compression units 14n. However, the present invention is not limited thereto, and an upper n-bit compression unit whose upper n bits are variable is prepared, It is also possible to select the upper n bits of the highest compression rate by executing compression processing while changing the upper n bits in the range of 1 to 8 for the same input compression target data.

図18は、図5に示した圧縮データを解凍するための解凍処理のフローを示す図である。   FIG. 18 is a diagram showing a flow of decompression processing for decompressing the compressed data shown in FIG.

ステップS201で解凍処理が開始されると、解凍処理フローでは、圧縮データの先頭からデータが読み出される。また、圧縮単位画素数とヘッダ情報とは、圧縮処理フローと解凍処理フローで共通とされている。   When the decompression process is started in step S201, data is read from the beginning of the compressed data in the decompression process flow. The compression unit pixel number and the header information are common in the compression processing flow and the decompression processing flow.

ステップS202で、まず図5に示した圧縮データの先頭から例えば5ビットのヘッダの情報を取得して解析する。ステップS202でのヘッダ情報解析の結果、データ圧縮ありと判定された場合には、図5の例では、ヘッダIDが「4」と判明するので、次のステップS203で図14に示したヘッダテーブルから連続長ビット幅が3ビットであり、圧縮対象ビット幅が2ビットであることが判断されるので、次に図5に示したヘッダに後続する圧縮データから連続長の3ビットデータとデータ種別の2ビットデータを読み出す。   In step S202, first, for example, 5-bit header information is acquired and analyzed from the head of the compressed data shown in FIG. As a result of the header information analysis in step S202, if it is determined that there is data compression, in the example of FIG. 5, since the header ID is found to be “4”, the header table shown in FIG. Therefore, it is determined that the continuous length bit width is 3 bits and the compression target bit width is 2 bits. Therefore, from the compressed data subsequent to the header shown in FIG. Read 2-bit data.

次のステップS204では、図5に示した圧縮データに後続する非圧縮データから6ビット(=8ビット−データ種別2ビット)の非圧縮ビットを順次に読み出し、上位ビット側にデータ種別を付加することによって1画素分の8ビット解凍データが順次に生成される。この時に、次のステップS205で解凍画素数<連続長と判定された場合には、ステップS204に戻って1画素分の非圧縮ビットの読み出し処理が反復され、解凍画素数=連続長と判定された場合には、次のステップS206で総解凍画素数判定が実行され、総解凍画素数<圧縮単位画素数(図3〜図12の例では、16画素)であれば、ステップS203に戻って1データ種別取得、連続長取得が実行される。ステップS206で総解凍画素数=圧縮単位画素数と判定された場合には、ステップS207にて解凍処理が終了される。一方、ステップS202のヘッダ情報の解析の結果、「データ圧縮無し」と判定された場合には、ステップS208にてヘッダデータが除去された残存データが圧縮単位画素数分出力され解凍処理が終了される。ここで、ステップS202のヘッダ情報解析の結果、図14の最後の1個上のように非圧縮(削除あり)を示す値「30」のヘッダIDが付加されていることが判定された場合には、削除された所定の最下位ビットを“0”もしく“1”のデータを補充して解凍処理を実行することも可能である。このように、ヘッダIDの値「30」の非圧縮(削除あり)の場合には、可逆圧縮ではない不可逆圧縮/不可逆解凍となるものである。   In the next step S204, 6-bit (= 8 bits-data type 2 bits) non-compressed bits are sequentially read from the non-compressed data subsequent to the compressed data shown in FIG. 5, and the data type is added to the upper bit side. As a result, 8-bit decompressed data for one pixel is sequentially generated. At this time, if it is determined in the next step S205 that the number of decompressed pixels <continuous length, the process returns to step S204 to repeat the process of reading one pixel of uncompressed bits, and it is determined that the number of decompressed pixels = the continuous length. If the total number of decompressed pixels is determined in the next step S206, and the total number of decompressed pixels <the number of compressed unit pixels (16 pixels in the examples of FIGS. 3 to 12), the process returns to step S203. One data type acquisition and continuous length acquisition are executed. If it is determined in step S206 that the total number of decompressed pixels = the number of compressed unit pixels, the decompression process ends in step S207. On the other hand, if it is determined as “no data compression” as a result of the analysis of the header information in step S202, the remaining data from which the header data has been removed in step S208 is output for the number of compressed unit pixels, and the decompression process is terminated. The Here, as a result of the header information analysis in step S202, when it is determined that the header ID of the value “30” indicating uncompressed (with deletion) is added as shown in the last one in FIG. It is also possible to supplement the deleted predetermined least significant bit with data of “0” or “1” and execute decompression processing. Thus, in the case of non-compression (with deletion) of the value “30” of the header ID, irreversible compression / irreversible decompression that is not lossless compression is performed.

以上説明した本発明の実施の形態1によれば、画像データを圧縮することでマイクロプロセッサ1と記憶装置2との間のデータ量の削減が可能となり、記憶装置2のアクセス時での消費電力の削減も可能となる。また画像データ圧縮処理の選択肢として「非圧縮(削除あり)」を選択対象外に設定することによって、可逆圧縮となって画像劣化を回避して高画質を保持した状態での低消費電力化が可能となる。また「非圧縮(削除あり)」を選択対象に設定した場合は不可逆圧縮/不可逆解凍となるが、不可逆な部分はデータ変化の激しい部分に限定することが可能なため、画像劣化も限定的に抑制することも可能である。   According to the first embodiment of the present invention described above, the amount of data between the microprocessor 1 and the storage device 2 can be reduced by compressing the image data, and the power consumption when the storage device 2 is accessed is reduced. Can be reduced. In addition, by setting “Non-compressed (with deletion)” as an option for image data compression processing, it is possible to reduce power consumption while maintaining high image quality by avoiding image degradation due to lossless compression. It becomes possible. In addition, when “Non-compressed (with deletion)” is set as the selection target, irreversible compression / irreversible decompression is performed. However, since the irreversible part can be limited to a part where the data changes rapidly, image degradation is limited It is also possible to suppress it.

[実施の形態2]
以下、本発明の実施の形態2を、図19乃至図24を参照して説明する。
[Embodiment 2]
The second embodiment of the present invention will be described below with reference to FIGS.

本発明の実施の形態2は、本発明の実施の形態1の図1に示すマイクロプロセッサ1の圧縮/解凍部14内部で圧縮処理を実行する部分の構成(図16)を変更したものである。   In the second embodiment of the present invention, the configuration (FIG. 16) of the portion that executes the compression processing inside the compression / decompression unit 14 of the microprocessor 1 shown in FIG. 1 of the first embodiment of the present invention is changed. .

本発明の実施の形態1における圧縮処理構成では、図16に示したよう8個の上位nビット圧縮部14n(n:1〜8の整数)で最高圧縮率となる圧縮対象ビット幅を選択する方式であったが、本発明の実施の形態2ではこの構成に変更を追加したものである。本発明の実施の形態2の圧縮処理フロー(図13)や解凍処理フロー(図18)等やその他については本発明の実施の形態1と同一であるために説明を省略して、本発明の実施の形態2における圧縮処理フローと構成を中心に以下に説明する。   In the compression processing configuration according to Embodiment 1 of the present invention, as shown in FIG. 16, the upper bit compression unit 14n (n is an integer from 1 to 8) selects the compression target bit width that provides the highest compression rate. Although it was a system, in Embodiment 2 of the present invention, a change is added to this configuration. The compression processing flow (FIG. 13), the decompression processing flow (FIG. 18), etc. of the second embodiment of the present invention are the same as those of the first embodiment of the present invention, and therefore the description thereof is omitted. The following description focuses on the compression processing flow and configuration in the second embodiment.

本発明の実施の形態1で説明した画像データ圧縮を実行する場合には、自然画であれば、隣接画素が近い画素値であることから、1個の圧縮単位で観測しても隣接した2個の圧縮単位は類似傾向を持つものであり、最高圧縮率の圧縮対象ビット幅も近い値となる傾向を有している。従って、本発明の実施の形態2は、この特徴を利用したものである。   When the image data compression described in the first embodiment of the present invention is executed, if the image is a natural image, adjacent pixels have close pixel values. Each compression unit has a similar tendency, and the compression target bit width of the highest compression rate tends to be a close value. Therefore, the second embodiment of the present invention utilizes this feature.

図19は、本発明の実施の形態2による図1に示すマイクロプロセッサ1の圧縮/解凍部14内部で圧縮処理を実行する部分の構成を示す図である。   FIG. 19 is a diagram showing a configuration of a portion that executes compression processing inside the compression / decompression unit 14 of the microprocessor 1 shown in FIG. 1 according to the second embodiment of the present invention.

尚、図19に示す本発明の実施の形態2による圧縮/解凍部14内部の圧縮処理部は、図16に示した本発明の実施の形態1による圧縮/解凍部14内部の圧縮処理部に対応するものである。   The compression processing unit inside the compression / decompression unit 14 according to the second embodiment of the present invention shown in FIG. 19 is the same as the compression processing unit inside the compression / decompression unit 14 according to the first embodiment of the present invention shown in FIG. Corresponding.

図19に示した本発明の実施の形態2による圧縮処理部は、第1と第2の上位mビット圧縮部111、112と、選択判定部113と、加算器114とによって構成される。第1と第2の上位mビット圧縮部111、112は、圧縮対象ビット幅mが外部から指定可能なものである。選択判定部113は第1と第2の上位mビット圧縮部111、112の出力端子から生成される圧縮データのデータ量を判定することにより、少ないデータ量の圧縮を選択する。また加算器114は、圧縮対象ビット幅mが第1の上位mビット圧縮部111に供給され指定される際に、+1インクリメントされた圧縮対象ビット幅m+1を第2の上位mビット圧縮部112に供給して指定するものである。選択判定部113から第1の上位mビット圧縮部111と加算器114に供給され指定される圧縮対象ビット幅mの値は、選択判定部113での判定選択動作により決定される。   The compression processing unit according to the second embodiment of the present invention illustrated in FIG. 19 includes first and second upper m-bit compression units 111 and 112, a selection determination unit 113, and an adder 114. The first and second upper m-bit compressing units 111 and 112 can specify the compression target bit width m from the outside. The selection determination unit 113 selects a compression with a small data amount by determining the data amount of the compressed data generated from the output terminals of the first and second upper m-bit compression units 111 and 112. Further, the adder 114 supplies the compression target bit width m + 1 incremented by +1 to the second upper m-bit compression unit 112 when the compression target bit width m is supplied to the first upper m-bit compression unit 111 and designated. Supply and specify. The value of the compression target bit width m that is supplied from the selection determination unit 113 to the first upper m-bit compression unit 111 and the adder 114 and is designated is determined by the determination selection operation in the selection determination unit 113.

図21は、図19に示した本発明の実施の形態2による圧縮/解凍部14内部の圧縮処理部で処理される圧縮処理フローを示す図である。   FIG. 21 is a diagram showing a compression processing flow processed by the compression processing unit inside the compression / decompression unit 14 according to the second embodiment of the present invention shown in FIG.

図21のステップS301で圧縮処理フローが開始されると、次のステップS302で選択判定部113から第1の上位mビット圧縮部111と加算器114に圧縮対象ビット幅mの初期値が供給され指定される。例えば圧縮対象ビット幅mの初期値として4が設定され、図21のステップS303で第1の上位mビット圧縮部111と第2の上位mビット圧縮部112とでそれぞれ圧縮対象ビット幅m(4)と圧縮対象ビット幅m+1(5)とによるデータ圧縮が実行される。   When the compression processing flow is started in step S301 in FIG. 21, the initial value of the compression target bit width m is supplied from the selection determination unit 113 to the first upper m-bit compression unit 111 and the adder 114 in the next step S302. It is specified. For example, 4 is set as the initial value of the compression target bit width m, and in step S303 in FIG. 21, the first upper m-bit compression unit 111 and the second upper m-bit compression unit 112 respectively compress the compression target bit width m (4 ) And the compression target bit width m + 1 (5).

選択判定部113は上位m(4)ビット圧縮と上位m+1(5)ビット圧縮とで、上位m+1(5)ビット圧縮の方が上位m(4)ビット圧縮よりも少ないデータ量で圧縮されたと判断する場合には、図21のステップS304で選択判定部113は第2の上位mビット圧縮部112の上位m+1(5)ビット圧縮出力を選択する。この際に、図21のステップS305で今回選択された第2の上位mビット圧縮部112の上位m+1(5)ビット圧縮出力を次回の圧縮単位のデータ圧縮で使用する圧縮ビット幅mに設定する。   The selection determination unit 113 determines that the upper m (4) bit compression and the upper m + 1 (5) bit compression compress the upper m + 1 (5) bit compression with a smaller amount of data than the upper m (4) bit compression. If so, the selection determination unit 113 selects the upper m + 1 (5) bit compressed output of the second upper m-bit compression unit 112 in step S304 of FIG. At this time, the upper m + 1 (5) -bit compressed output of the second upper m-bit compressor 112 selected this time in step S305 in FIG. 21 is set to the compression bit width m used in the next data compression of the compression unit. .

図23は、図21に示した本発明の実施の形態2による圧縮処理フローによる圧縮処理の様子を示す図である。図23の太い破線は、圧縮上位ビットが1ビットから8ビットまでの全てで圧縮処理を実行して最高圧縮率mを選択した場合の理想的な状況を示すものである。図23の圧縮処理フローで、圧縮単位軸で圧縮単位1→圧縮単位2への移行時期が図21のステップS304の選択と図21のステップS305の次回の圧縮ビット幅の設定とに該当するものである。   FIG. 23 is a diagram showing a state of compression processing according to the compression processing flow according to the second embodiment of the present invention shown in FIG. The thick broken line in FIG. 23 shows an ideal situation when the compression process is executed with all the compression upper bits from 1 bit to 8 bits and the maximum compression rate m is selected. In the compression processing flow of FIG. 23, the transition timing from the compression unit 1 to the compression unit 2 on the compression unit axis corresponds to the selection in step S304 in FIG. 21 and the next compression bit width setting in step S305 in FIG. It is.

図21のステップS304で上位m(4)ビット圧縮の方が上位m+1(5)ビット圧縮よりも少ないデータ量で圧縮されたと判断する場合には、図21のステップS304で選択判定部113は第1の上位mビット圧縮部111の上位m(4)ビット圧縮出力を選択する。この際には、図21のステップS306で今回選択された第1の上位mビット圧縮部111の上位m(4)ビットの値に−1デクリメントされた上位m−1(3)ビットを次回の圧縮単位のデータ圧縮で使用する圧縮ビット幅mに設定する。   If it is determined in step S304 in FIG. 21 that the upper m (4) bit compression is compressed with a smaller amount of data than the upper m + 1 (5) bit compression, the selection determining unit 113 in step S304 in FIG. 1 selects the upper m (4) bit compressed output of the upper m bit compression unit 111. At this time, the upper m−1 (3) bits decremented by −1 to the value of the upper m (4) bits of the first upper m bit compression unit 111 selected this time in step S306 in FIG. Set to the compression bit width m used in data compression of the compression unit.

図20は、本発明の実施の形態2による図1に示すマイクロプロセッサ1の圧縮/解凍部14内部で圧縮処理を実行する部分の他の構成を示す図である。   FIG. 20 is a diagram showing another configuration of a portion that executes compression processing within the compression / decompression unit 14 of the microprocessor 1 shown in FIG. 1 according to the second embodiment of the present invention.

尚、図20に示す本発明の実施の形態2による圧縮/解凍部14内部の圧縮処理部は、図16に示した本発明の実施の形態1による圧縮/解凍部14内部の圧縮処理部に対応するものである。   The compression processing unit inside the compression / decompression unit 14 according to the second embodiment of the present invention shown in FIG. 20 is the same as the compression processing unit inside the compression / decompression unit 14 according to the first embodiment of the present invention shown in FIG. Corresponding.

図20に示した本発明の実施の形態2による圧縮処理部は、図19に示した本発明の実施の形態2による圧縮処理部と同様に第1と第2の上位mビット圧縮部111、112と、選択判定部113と、加算器114とによって構成される一方、第3の上位mビット圧縮部110と減算器115とが追加されたものである。   The compression processing unit according to the second embodiment of the present invention shown in FIG. 20 is similar to the compression processing unit according to the second embodiment of the present invention shown in FIG. 112, a selection determination unit 113, and an adder 114, and a third upper m-bit compression unit 110 and a subtractor 115 are added.

第3の上位mビット圧縮部110も、圧縮対象ビット幅mが外部から指定可能である。選択判定部113は第1と第2と第3の上位mビット圧縮部111、112、110の出力端子から生成される圧縮データ量を判定することにより、少ないデータ量の圧縮を選択する。また減算器115は、圧縮対象ビット幅mが第1の上位mビット圧縮部111に供給され指定される際には、−1デクリメントされた圧縮対象ビット幅m−1を第3の上位mビット圧縮部110に供給して指定するものである。第1の上位mビット圧縮部111と加算器114と減算器115とに選択判定部113から供給され指定される圧縮対象ビット幅mの値は、選択判定部113での判定選択動作により決定される。   The third upper m-bit compression unit 110 can also specify the compression target bit width m from the outside. The selection determination unit 113 selects a compression with a small amount of data by determining the amount of compressed data generated from the output terminals of the first, second, and third upper m-bit compression units 111, 112, and 110. Further, when the compression target bit width m is supplied to the first upper m-bit compression unit 111 and designated, the subtractor 115 sets the compression target bit width m−1 decremented by −1 to the third upper m bits. This is supplied to the compression unit 110 and designated. The value of the compression target bit width m supplied and specified from the selection determination unit 113 to the first upper m-bit compression unit 111, the adder 114, and the subtractor 115 is determined by the determination selection operation in the selection determination unit 113. The

図22は、図20に示した本発明の実施の形態2による圧縮/解凍部14内部の圧縮処理部で処理される圧縮処理フローを示す図である。   FIG. 22 is a diagram showing a compression processing flow processed by the compression processing unit in the compression / decompression unit 14 according to the second embodiment of the present invention shown in FIG.

図22のステップS301で圧縮処理フローが開始されると、次のステップS302で選択判定部113から第1の上位mビット圧縮部111と加算器114減算器115とに圧縮対象ビット幅mの初期値が供給され指定される。例えば圧縮対象ビット幅mの初期値として4が設定され、図22のステップS303で第1の上位mビット圧縮部111と第2の上位mビット圧縮部112と第3の上位mビット圧縮部110とでそれぞれ圧縮対象ビット幅m(4)と圧縮対象ビット幅m+1(5)と圧縮対象ビット幅m−1(3)によるデータ圧縮が実行される。   When the compression processing flow is started in step S301 in FIG. 22, in the next step S302, the initial determination of the compression target bit width m is performed from the selection determination unit 113 to the first upper m-bit compression unit 111 and the adder 114 subtractor 115. A value is supplied and specified. For example, 4 is set as the initial value of the compression target bit width m, and the first upper m-bit compressor 111, the second upper m-bit compressor 112, and the third upper m-bit compressor 110 are set in step S303 in FIG. The data compression is performed by the compression target bit width m (4), the compression target bit width m + 1 (5), and the compression target bit width m-1 (3).

選択判定部113は上位m−1(3)ビット圧縮と上位m(4)ビット圧縮と上位m+1(5)ビット圧縮とで、上位m+1(5)ビット圧縮の方が上位m−1(3)ビット圧縮および上位m(4)ビット圧縮よりも少ないデータ量で圧縮されたと判断する場合には、図22のステップS304で選択判定部113は第2の上位mビット圧縮部112の上位m+1(5)ビット圧縮出力を選択する。この際には、図22のステップS305で今回選択された第2の上位mビット圧縮部112の上位m+1(5)ビット圧縮出力を、次回の圧縮単位のデータ圧縮で使用する圧縮ビット幅mに設定する。   The selection determining unit 113 performs upper m−1 (3) bit compression, upper m (4) bit compression, and upper m + 1 (5) bit compression, and upper m + 1 (5) bit compression is higher m−1 (3). If it is determined that the data has been compressed with a smaller amount of data than the bit compression and the upper m (4) bit compression, the selection determination unit 113 determines that the upper m + 1 (5) of the second upper m bit compression unit 112 in step S304 in FIG. ) Select bit compressed output. At this time, the upper m + 1 (5) -bit compressed output of the second upper m-bit compression unit 112 selected this time in step S305 in FIG. 22 is set to the compression bit width m used in the next data compression of the compression unit. Set.

図24は、図22に示した本発明の実施の形態2による圧縮処理フローによる圧縮処理の様子を示す図である。図24の太い破線は、圧縮上位ビットが1ビットから8ビットまでの全てで圧縮処理を実行して最高圧縮率mを選択した場合の理想的な状況を示すものである。図24の圧縮処理フローで、圧縮単位軸で圧縮単位1→圧縮単位2への移行時期が図22のステップS304の選択と図22のステップS305の次回の圧縮ビット幅の設定とに該当するものである。   FIG. 24 is a diagram showing a state of the compression processing by the compression processing flow according to the second embodiment of the present invention shown in FIG. The thick broken line in FIG. 24 shows an ideal situation when the highest compression rate m is selected by executing the compression process with all the compression upper bits from 1 bit to 8 bits. In the compression processing flow of FIG. 24, the transition timing from the compression unit 1 to the compression unit 2 on the compression unit axis corresponds to the selection in step S304 in FIG. 22 and the next setting of the compression bit width in step S305 in FIG. It is.

図22のステップS304で上位m(4)ビット圧縮の方が上位m−1(3)ビット圧縮および上位m+1(5)ビット圧縮よりも少ないデータ量で圧縮されたと判断する場合には、図22のステップS304で選択判定部113は第1の上位mビット圧縮部111の上位m(4)ビット圧縮出力を選択する。この際には、図22のステップS307にて今回選択された第1の上位mビット圧縮部111の上位m(4)ビットの値を、そのまま次回の圧縮単位のデータ圧縮で使用する圧縮ビット幅mに設定する。   If it is determined in step S304 in FIG. 22 that the upper m (4) bit compression is compressed with a smaller amount of data than the upper m−1 (3) bit compression and the upper m + 1 (5) bit compression, FIG. In step S304, the selection determination unit 113 selects the upper m (4) bit compressed output of the first upper m bit compression unit 111. At this time, the value of the upper m (4) bits of the first upper m-bit compression unit 111 selected this time in step S307 in FIG. 22 is used as the compression bit width to be used in the data compression of the next compression unit as it is. Set to m.

図22のステップS304で上位m−1(3)ビット圧縮の方が上位m(4)ビット圧縮および上位m+1(5)ビット圧縮よりも少ないデータ量で圧縮されたと判断する場合には、図22のステップS304で選択判定部113は第3の上位mビット圧縮部110の上位m−1(3)ビット圧縮出力を選択する。この際には、図22のステップS306にて今回選択された第3の上位mビット圧縮部110の上位m−1(3)ビット圧縮出力を、次回での圧縮単位のデータ圧縮で使用する圧縮ビット幅mに設定する。   If it is determined in step S304 in FIG. 22 that the upper m−1 (3) bit compression is compressed with a smaller amount of data than the upper m (4) bit compression and the upper m + 1 (5) bit compression, FIG. In step S <b> 304, the selection determination unit 113 selects the upper m−1 (3) -bit compressed output of the third upper m-bit compression unit 110. In this case, the upper m−1 (3) -bit compressed output of the third upper m-bit compression unit 110 selected this time in step S306 in FIG. 22 is used for the next compression unit data compression. Set to bit width m.

また、図20と図22と図24とで説明した本発明の実施の形態2は、3個の上位mビット圧縮部111、112、110を使用することで上位m−1ビット圧縮、上位mビット圧縮、上位m+1ビット圧縮の中で最高圧縮率となる上位ビット数を選択する構成である。図20の圧縮処理部は、図19の圧縮処理部と比較して圧縮処理部のハードウェアが増大するが、次のデータ圧縮で使用される圧縮ビット幅mの決定において、図22のステップS307で今回した圧縮ビット幅mをそのままとする選択肢が増加するため、2個の上位mビット圧縮部を使用する場合に比較して理想的な圧縮率とすることが可能となる。また更に、3個の上位mビット圧縮部を使用することに限定されるものではなく、4個以上の上位mビット圧縮部を使用することも可能である。   Further, the second embodiment of the present invention described with reference to FIG. 20, FIG. 22, and FIG. 24 uses the three upper m-bit compression units 111, 112, and 110, so that upper m-1 bit compression, upper m In this configuration, the number of upper bits having the highest compression rate is selected from among bit compression and upper m + 1 bit compression. The hardware of the compression processing unit of the compression processing unit of FIG. 20 increases as compared to the compression processing unit of FIG. 19, but in determining the compression bit width m used in the next data compression, step S307 of FIG. In this case, the number of options for maintaining the compression bit width m as it is increases, so that it is possible to obtain an ideal compression ratio as compared with the case where two upper m-bit compression units are used. Furthermore, the present invention is not limited to using three upper m-bit compression units, and it is possible to use four or more upper m-bit compression units.

以上、本発明者によってなされた発明を種々の実施の形態に基づいて具体的に説明したが、本発明はそれに限定されるものではなく、その要旨を逸脱しない範囲において種々変更可能であることは言うまでもない。   As mentioned above, the invention made by the present inventor has been specifically described based on various embodiments. However, the present invention is not limited thereto, and various modifications can be made without departing from the scope of the invention. Needless to say.

例えば、図21のステップS304または図22のステップS304での圧縮対象ビット幅mの初期値の決定は一回だけ実行される処理フローを使用して説明したが、それに限定されるものでなくあるタイミングでリセットした後に再度初期値を設定することも可能である。例えば、図1に示すマイクロプロセッサ1で画像処理部11から圧縮/解凍部14へ画像フレームの先頭アドレスやフレームの幅や高さ等の画像情報を通知して、フレームの先頭アドレスから画像データ圧縮を開始する際にリセットして再度初期値を設定することも可能である。これによって、フレームの終端映像の圧縮対象ビット幅mの値に影響されることなく、フレームの先頭アドレスから新しい初期設定に従って画像データ圧縮を開始することが可能となる。   For example, although the determination of the initial value of the compression target bit width m in step S304 of FIG. 21 or step S304 of FIG. 22 has been described using the processing flow executed only once, the present invention is not limited to this. It is also possible to set the initial value again after resetting at the timing. For example, the microprocessor 1 shown in FIG. 1 notifies the compression / decompression unit 14 of the image information such as the head address of the image frame, the width and the height of the frame, and compresses the image data from the head address of the frame. It is also possible to reset and set the initial value again when starting. As a result, image data compression can be started from the start address of the frame according to the new initial setting without being affected by the value of the compression target bit width m of the end video of the frame.

また、フレームの先頭アドレスだけではなく、水平方向の1ラインの先頭の画素でリセットと初期値設定とを実行することも可能である。これによってライン終端映像の圧縮対象ビット幅mの値に影響されることなく、ラインの先頭アドレスから新しい初期設定に従って画像データ圧縮を開始することが可能となる。   It is also possible to execute reset and initial value setting not only at the head address of the frame but also at the head pixel of one line in the horizontal direction. As a result, the image data compression can be started from the head address of the line according to the new initial setting without being affected by the value of the compression target bit width m of the line end video.

更に1ラインの先頭でリセットする際には、以前のライン先頭のデータ圧縮結果にて選択された圧縮対象ビット幅mの値を初期値とすることも可能である。画像データは横方向に連続性を持つだけではなく縦方向にも連続性を持つので、以前のラインで選択された圧縮対象ビット幅mを使用することで、図21と図22の圧縮処理フローによって水平方向で得られる効果と同様な効果を縦方向で得ることが可能となる。また、MPEGのデコード(復号処理)時には、複数のマクロブロックを含む1個のスライスの先頭でリセットすることも可能である。   Furthermore, when resetting at the head of one line, the value of the compression target bit width m selected from the data compression result at the head of the previous line can be set as the initial value. Since the image data has not only continuity in the horizontal direction but also continuity in the vertical direction, by using the compression target bit width m selected in the previous line, the compression processing flow of FIGS. Thus, the same effect as that obtained in the horizontal direction can be obtained in the vertical direction. In MPEG decoding (decoding processing), it is also possible to reset at the head of one slice including a plurality of macroblocks.

圧縮対象ビット幅mの初期値を決定する際には、図19または図20に示した圧縮処理部を使用して圧縮対象ビット幅mの特定の1つの値とするのではなく、1から8まで全て値でのデータ圧縮を実行して、最高圧縮率の高い圧縮対象ビット幅mを決定した後に、図21または図22に示した圧縮処理フローを実行することも可能である。   When determining the initial value of the compression target bit width m, the compression processing unit shown in FIG. 19 or FIG. 20 is not used to set a specific one value of the compression target bit width m. It is also possible to execute the compression processing flow shown in FIG. 21 or FIG. 22 after performing data compression with all values and determining the compression target bit width m having the highest maximum compression rate.

また、圧縮対象ビット幅mの初期値を図1に示すマイクロプロセッサ1の画像処理部11から通知されるフレーム単位で設定することも可能である。すなわち、奇数フレームと偶数フレームとが交互に転送されるインターレース走査画面では、先行の1枚のフレームの最終アドレスの画像と後続の1枚のフレームの先頭アドレスの画像との間には連続性が低いものである。このような場合には、1枚のフレームの先頭アドレスで新しい初期設定に従って画像データ圧縮を開始することが有効となる。   It is also possible to set the initial value of the compression target bit width m for each frame notified from the image processing unit 11 of the microprocessor 1 shown in FIG. That is, in an interlaced scan screen in which odd frames and even frames are transferred alternately, there is continuity between the image of the last address of the preceding one frame and the image of the leading address of the following one frame. It is low. In such a case, it is effective to start image data compression in accordance with a new initial setting at the start address of one frame.

また更に、図1に示すマイクロプロセッサ1で、圧縮/解凍部14と圧縮/解凍判定部13とを記憶装置制御部15とバス17との間の接続位置から画像処理部11とバス17との間の接続位置に変更することも可能である。それによって、画像処理部11の出力からバス17に画像データを送信する以前にデータ圧縮を実行して、バス17から画像処理部11の入力に画像データを受信した際にデータ解凍を実行することで、バス17の占有時間を低減することも可能である。   Further, in the microprocessor 1 shown in FIG. 1, the compression / decompression unit 14 and the compression / decompression determination unit 13 are connected between the image processing unit 11 and the bus 17 from the connection position between the storage device control unit 15 and the bus 17. It is also possible to change the connection position between. Thereby, data compression is performed before image data is transmitted from the output of the image processing unit 11 to the bus 17, and data decompression is performed when image data is received from the bus 17 to the input of the image processing unit 11. Thus, the occupation time of the bus 17 can be reduced.

1…マイクロプロセッサ
11…画像処理部
12…中央処理ユニット(CPU)
13…圧縮/解凍判定部
14…圧縮/解凍部
15…記憶装置制御部
16…表示装置制御部
17…バス
18…外部入出力インターフェース(I/O)部
2…記憶装置
3…表示装置
31…解凍部
21…画像圧縮領域
22…画像非圧縮領域
141…上位1ビット圧縮部
142…上位2ビット圧縮部
143…上位3ビット圧縮部
144…上位4ビット圧縮部
145…上位5ビット圧縮部
146…上位6ビット圧縮部
147…上位7ビット圧縮部
148…上位8ビット圧縮部
149…圧縮データセレクタ
110、111、112…上位mビット圧縮部
113…判定部
114…加算器
115…減算器
DESCRIPTION OF SYMBOLS 1 ... Microprocessor 11 ... Image processing part 12 ... Central processing unit (CPU)
DESCRIPTION OF SYMBOLS 13 ... Compression / decompression determination part 14 ... Compression / decompression part 15 ... Storage device control part 16 ... Display device control part 17 ... Bus 18 ... External input / output interface (I / O) part 2 ... Storage device 3 ... Display device 31 ... Decompression unit 21 ... Image compression area 22 ... Image uncompression area 141 ... Upper 1 bit compression part 142 ... Upper 2 bit compression part 143 ... Upper 3 bit compression part 144 ... Upper 4 bit compression part 145 ... Upper 5 bit compression part 146 ... Upper 6-bit compression unit 147 ... Upper 7-bit compression unit 148 ... Upper 8-bit compression unit 149 ... Compressed data selector 110, 111, 112 ... Upper m-bit compression unit 113 ... Determination unit 114 ... Adder 115 ... Subtractor

Claims (10)

画像処理部と圧縮/解凍部とを具備する画像データ処理装置であって、
前記画像データ処理装置は、記憶装置と表示装置とに電気的に接続可能とされ、
前記画像処理部は前記記憶装置に格納された画像データの画像処理が実行可能とされ、前記画像処理部は前記画像処理の後に前記表示装置に出力される画像データを前記記憶装置に格納可能とされ、
前記圧縮/解凍部は前記画像処理部と接続されることにより、前記記憶装置への書き込み動作が実行される際には前記圧縮/解凍部は画像データの圧縮処理が実行可能とされ、前記記憶装置から読み出し動作が実行される際には前記圧縮/解凍部は画像データの解凍処理が実行可能とされ、
前記圧縮処理では、前記圧縮/解凍部は前記記憶装置へ書き込まれる画像データの画素データの上位ビットをランレングス圧縮して前記上位ビットの圧縮データを生成して、前記記憶装置へ書き込まれる前記画像データの前記画素データの下位ビットの非圧縮データと前記上位ビットの前記圧縮データとを結合して前記記憶装置へ書き込まれる画像圧縮データを生成可能とされ、
前記解凍処理では、前記圧縮/解凍部は前記記憶装置から読み出される前記ランレングス圧縮を利用した前記画像圧縮データを可逆解凍可能とされたことを特徴とする画像データ処理装置。
An image data processing apparatus comprising an image processing unit and a compression / decompression unit,
The image data processing device can be electrically connected to a storage device and a display device,
The image processing unit can execute image processing of image data stored in the storage device, and the image processing unit can store image data output to the display device after the image processing in the storage device. And
The compression / decompression unit is connected to the image processing unit, so that when the writing operation to the storage device is executed, the compression / decompression unit can perform compression processing of image data, and the storage When a read operation is executed from the apparatus, the compression / decompression unit can perform image data decompression processing,
In the compression processing, the compression / decompression unit generates the compressed data of the upper bits by run-length compressing the upper bits of the pixel data of the image data to be written to the storage device, and the image to be written to the storage device It is possible to generate compressed image data to be written to the storage device by combining the uncompressed data of the lower bits of the pixel data of the data and the compressed data of the upper bits,
In the decompression process, the compression / decompression unit is capable of reversibly decompressing the compressed image data using the run-length compression read from the storage device.
前記ランレングス圧縮では、前記記憶装置へ書き込まれる前記画像データの前記画素データの前記上位ビットの連続する同一値を表示するデータ種別と、前記同一値がどれだけの長さで連続するかを表示する連続長とが利用されることを特徴とする請求項1に記載の画像データ処理装置。   In the run-length compression, a data type for displaying the same value of the higher-order bits of the pixel data of the image data written to the storage device and how long the same value continues are displayed. The image data processing apparatus according to claim 1, wherein a continuous length is used. 所定の画素数を少なくとも含む前記画像データの前記画素データの前記上位ビットを前記ランレングス圧縮して前記上位ビットの前記圧縮データを生成して、前記画像データの前記画素データの前記下位ビットの前記非圧縮データと前記上位ビットの前記圧縮データを結合して生成した前記画像圧縮データのデータ量が前記ランレングス圧縮を利用しない場合の画像非圧縮データのデータ量と比較され、
前記ランレングス圧縮を利用した場合の前記画像圧縮データの前記データ量が前記ランレングス圧縮を利用しない場合の前記画像非圧縮データの前記データ量よりも大きいと判定された場合には、前記ランレングス圧縮を利用しない場合の前記画像非圧縮データが前記圧縮/解凍部から出力されることを特徴とする請求項2に記載の画像データ処理装置。
The high-order bits of the pixel data of the image data including at least a predetermined number of pixels are run-length compressed to generate the compressed data of the high-order bits, and the low-order bits of the low-order bits of the pixel data of the image data The data amount of the image compressed data generated by combining the uncompressed data and the compressed data of the upper bits is compared with the data amount of the image uncompressed data when the run length compression is not used.
When it is determined that the data amount of the image compressed data when the run length compression is used is larger than the data amount of the image uncompressed data when the run length compression is not used, the run length The image data processing apparatus according to claim 2, wherein the image uncompressed data when compression is not used is output from the compression / decompression unit.
前記圧縮/解凍部が前記記憶装置へ書き込まれる前記画像データの前記画素データの前記上位ビットをランレングス圧縮する際に、ランレングス圧縮される前記上位ビットのビット数が可変可能とされることを特徴とする請求項3に記載の画像データ処理装置。   When the compression / decompression unit performs run-length compression on the high-order bits of the pixel data of the image data written to the storage device, the number of bits of the high-order bits to be run-length compressed can be changed. The image data processing apparatus according to claim 3, wherein: 前記圧縮/解凍部は、ランレングス圧縮される前記上位ビットのビット数を相違して設定可能な少なくとも2個の圧縮部と、前記少なくとも2個の圧縮部に接続された選択部とを含み、
前記選択部は、前記少なくとも2個の圧縮部から出力される圧縮出力データのデータ量の少ない方を選択して出力することを特徴とする請求項4に記載の画像データ処理装置。
The compression / decompression unit includes at least two compression units that can be set differently in the number of bits of the upper bits subjected to run length compression, and a selection unit connected to the at least two compression units,
The image data processing apparatus according to claim 4, wherein the selection unit selects and outputs the compressed data having a smaller data amount output from the at least two compression units.
画像処理部と圧縮/解凍部とを具備する画像データ処理装置の動作方法であって、
前記画像データ処理装置は、記憶装置と表示装置とに電気的に接続可能とされ、
前記画像処理部は前記記憶装置に格納された画像データの画像処理が実行可能とされ、前記画像処理部は前記画像処理の後に前記表示装置に出力される画像データを前記記憶装置に格納可能とされ、
前記圧縮/解凍部は前記画像処理部と接続されることにより、前記記憶装置への書き込み動作が実行される際には前記圧縮/解凍部は画像データの圧縮処理が実行可能とされ、前記記憶装置から読み出し動作が実行される際には前記圧縮/解凍部は画像データの解凍処理が実行可能とされ、
前記圧縮処理では、前記圧縮/解凍部は前記記憶装置へ書き込まれる画像データの画素データの上位ビットをランレングス圧縮して前記上位ビットの圧縮データを生成して、前記記憶装置へ書き込まれる前記画像データの前記画素データの下位ビットの非圧縮データと前記上位ビットの前記圧縮データとを結合して前記記憶装置へ書き込まれる画像圧縮データを生成可能とされ、
前記解凍処理では、前記圧縮/解凍部は前記記憶装置から読み出される前記ランレングス圧縮を利用した前記画像圧縮データを可逆解凍可能とされたことを特徴とする画像データ処理装置の動作方法。
An operation method of an image data processing apparatus comprising an image processing unit and a compression / decompression unit,
The image data processing device can be electrically connected to a storage device and a display device,
The image processing unit can execute image processing of image data stored in the storage device, and the image processing unit can store image data output to the display device after the image processing in the storage device. And
The compression / decompression unit is connected to the image processing unit, so that when the writing operation to the storage device is executed, the compression / decompression unit can perform compression processing of image data, and the storage When a read operation is executed from the apparatus, the compression / decompression unit can perform image data decompression processing,
In the compression processing, the compression / decompression unit generates the compressed data of the upper bits by run-length compressing the upper bits of the pixel data of the image data to be written to the storage device, and the image to be written to the storage device It is possible to generate compressed image data to be written to the storage device by combining the uncompressed data of the lower bits of the pixel data of the data and the compressed data of the upper bits,
In the decompression process, the compression / decompression unit is capable of reversibly decompressing the compressed image data using the run-length compression read from the storage device.
前記ランレングス圧縮では、前記記憶装置へ書き込まれる前記画像データの前記画素データの前記上位ビットの連続する同一値を表示するデータ種別と、前記同一値がどれだけの長さで連続するかを表示する連続長とが利用されることを特徴とする請求項6に記載の画像データ処理装置の動作方法。   In the run-length compression, a data type for displaying the same value of the higher-order bits of the pixel data of the image data written to the storage device and how long the same value continues are displayed. The operation method of the image data processing apparatus according to claim 6, wherein a continuous length is used. 所定の画素数を少なくとも含む前記画像データの前記画素データの前記上位ビットを前記ランレングス圧縮して前記上位ビットの前記圧縮データを生成して、前記画像データの前記画素データの前記下位ビットの前記非圧縮データと前記上位ビットの前記圧縮データを結合して生成した前記画像圧縮データのデータ量が前記ランレングス圧縮を利用しない場合の画像非圧縮データのデータ量と比較され、
前記ランレングス圧縮を利用した場合の前記画像圧縮データの前記データ量が前記ランレングス圧縮を利用しない場合の前記画像非圧縮データの前記データ量よりも大きいと判定された場合には、前記ランレングス圧縮を利用しない場合の前記画像非圧縮データが前記圧縮/解凍部から出力されることを特徴とする請求項7に記載の画像データ処理装置の動作方法。
The high-order bits of the pixel data of the image data including at least a predetermined number of pixels are run-length compressed to generate the compressed data of the high-order bits, and the low-order bits of the low-order bits of the pixel data of the image data The data amount of the image compressed data generated by combining the uncompressed data and the compressed data of the upper bits is compared with the data amount of the image uncompressed data when the run length compression is not used.
When it is determined that the data amount of the image compressed data when the run length compression is used is larger than the data amount of the image uncompressed data when the run length compression is not used, the run length The operation method of the image data processing apparatus according to claim 7, wherein the image uncompressed data when compression is not used is output from the compression / decompression unit.
前記圧縮/解凍部が前記記憶装置へ書き込まれる前記画像データの前記画素データの前記上位ビットをランレングス圧縮する際に、ランレングス圧縮される前記上位ビットのビット数が可変可能とされることを特徴とする請求項8に記載の画像データ処理装置の動作方法。   When the compression / decompression unit performs run-length compression on the high-order bits of the pixel data of the image data written to the storage device, the number of bits of the high-order bits to be run-length compressed can be changed. The method of operating an image data processing apparatus according to claim 8, wherein: 前記圧縮/解凍部は、ランレングス圧縮される前記上位ビットのビット数を相違して設定可能な少なくとも2個の圧縮部と、前記少なくとも2個の圧縮部に接続された選択部とを含み、
前記選択部は、前記少なくとも2個の圧縮部から出力される圧縮出力データのデータ量の少ない方を選択して出力することを特徴とする請求項9に記載の画像データ処理装置の動作方法。
The compression / decompression unit includes at least two compression units that can be set differently in the number of bits of the upper bits subjected to run length compression, and a selection unit connected to the at least two compression units,
The operation method of the image data processing apparatus according to claim 9, wherein the selection unit selects and outputs the smaller amount of compressed output data output from the at least two compression units.
JP2010010677A 2010-01-21 2010-01-21 Image data processor and operating method thereof Withdrawn JP2011151572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010010677A JP2011151572A (en) 2010-01-21 2010-01-21 Image data processor and operating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010010677A JP2011151572A (en) 2010-01-21 2010-01-21 Image data processor and operating method thereof

Publications (1)

Publication Number Publication Date
JP2011151572A true JP2011151572A (en) 2011-08-04

Family

ID=44538174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010010677A Withdrawn JP2011151572A (en) 2010-01-21 2010-01-21 Image data processor and operating method thereof

Country Status (1)

Country Link
JP (1) JP2011151572A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013074354A (en) * 2011-09-27 2013-04-22 Nec Corp Data transfer control device, data transfer control method, and data transfer control system
WO2014027429A1 (en) * 2012-08-17 2014-02-20 大日本スクリーン製造株式会社 Data compression method and device, and program therefor
JP2020141377A (en) * 2019-03-01 2020-09-03 キヤノン株式会社 Image encoding device, image decoding device, imaging device, image encoding method, image decoding method, and program
CN112600565A (en) * 2020-12-18 2021-04-02 上海集成电路研发中心有限公司 Digital circuit for decoding run length

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013074354A (en) * 2011-09-27 2013-04-22 Nec Corp Data transfer control device, data transfer control method, and data transfer control system
WO2014027429A1 (en) * 2012-08-17 2014-02-20 大日本スクリーン製造株式会社 Data compression method and device, and program therefor
JP2020141377A (en) * 2019-03-01 2020-09-03 キヤノン株式会社 Image encoding device, image decoding device, imaging device, image encoding method, image decoding method, and program
JP7444541B2 (en) 2019-03-01 2024-03-06 キヤノン株式会社 Image encoding device, image decoding device, imaging device, image encoding method, image decoding method, and program
CN112600565A (en) * 2020-12-18 2021-04-02 上海集成电路研发中心有限公司 Digital circuit for decoding run length

Similar Documents

Publication Publication Date Title
JP5069349B2 (en) An efficient image compression scheme that minimizes storage and bus bandwidth requirements
US8923613B2 (en) Image compression device, image compression method, integrated circuit, program, and picture display apparatus
JP6703032B2 (en) Backward compatibility extended image format
JP4151684B2 (en) Encoding apparatus, encoding method, encoding program, and imaging apparatus
US6828982B2 (en) Apparatus and method for converting of pixels from YUV format to RGB format using color look-up tables
JP5251758B2 (en) Compression encoding apparatus and image display control apparatus
JP2006014341A (en) Method and apparatus for storing image data using mcu buffer
US8908982B2 (en) Image encoding device and image encoding method
JP2011175085A (en) Display driving circuit
JP2014523703A (en) Selective lossless-lossy compression of image data based on bit allocation
CN101653005A (en) Frame buffer compression and decompression method for graphics rendering
JPWO2005029863A1 (en) Image processing display device and image processing display method
KR20160146542A (en) Video processing system
KR101587347B1 (en) Color buffer compression
JP2011151572A (en) Image data processor and operating method thereof
EP2843954B1 (en) Lossy color compression using adaptive quantization
US10304213B2 (en) Near lossless compression scheme and system for processing high dynamic range (HDR) images
US8655063B2 (en) Decoding system and method operable on encoded texture element blocks
JP5375372B2 (en) Compression encoding apparatus and decoding apparatus
US8233729B2 (en) Method and apparatus for generating coded block pattern for highpass coefficients
US8462168B2 (en) Decompression system and method for DCT-base compressed graphic data with transparent attribute
JP5367552B2 (en) Image processing apparatus and image processing program
US7576784B2 (en) Apparatus for acquiring image and method therefor
JP2006311435A (en) Image processor, imaging apparatus, and image processing system
JP2010136264A (en) Display data processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20130402