JPH1028226A - Method for converting compressed image data format and device therefor - Google Patents

Method for converting compressed image data format and device therefor

Info

Publication number
JPH1028226A
JPH1028226A JP8183594A JP18359496A JPH1028226A JP H1028226 A JPH1028226 A JP H1028226A JP 8183594 A JP8183594 A JP 8183594A JP 18359496 A JP18359496 A JP 18359496A JP H1028226 A JPH1028226 A JP H1028226A
Authority
JP
Japan
Prior art keywords
image data
block
address
compressed image
format
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.)
Pending
Application number
JP8183594A
Other languages
Japanese (ja)
Inventor
Mayumi Tenkai
真弓 天海
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP8183594A priority Critical patent/JPH1028226A/en
Publication of JPH1028226A publication Critical patent/JPH1028226A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method for converting a compressed image data format for format conversion in a short processing time, without requiring a large memory area. SOLUTION: An offset address in a Huffman code length for the (n) line block of luminance components is calculated for unit blocks, constituted of the (n)×(n) small blocks of original compressed picture data (step 902), the offset address in the Huffman code length of color difference components is calculated for each unit block (step 908), and the original compressed image data are stored, based on the offset address in the Huffman code length of the luminance components and the offset address in the Huffman code length of the color difference components (step 909). Thus, compressed image data with the desired format can be generated.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、圧縮画像データの
フォーマットを異なるフォーマットに変換する圧縮画像
データフォーマット変換方法およびその装置に関するも
のである。
[0001] 1. Field of the Invention [0002] The present invention relates to a compressed image data format conversion method and apparatus for converting a format of compressed image data into a different format.

【0002】[0002]

【従来の技術】JPEG(Joint Photographic Coding Exper
ts Group) 規格やDCT(Discrete Cosine Transform)方式
に基づく圧縮画像データは、データ内容は同じだがヘッ
ダが異なったり、同じファイル形式のものでもデータ構
造が異なるものが存在する。
2. Description of the Related Art JPEG (Joint Photographic Coding Exper)
Compressed image data based on the ts Group) standard or the DCT (Discrete Cosine Transform) method has the same data content but different headers, and there are data with the same file format but different data structures.

【0003】従って、このようにヘッダが異なったりデ
ータ構造が異なるものについて、他のファイルフォーマ
ットに変換して保存したいような場合は、そのままでは
対処できず、従来では、一旦圧縮画像データをメモリ上
で展開(デコード)し、改めて所望するファイルフォー
マットの圧縮画像データに変換するような方法を採って
いた。
Therefore, when it is desired to convert data having a different header or a different data structure into another file format and save it, the compressed image data cannot be temporarily stored in a memory. In such a manner that the image data is expanded (decoded) and converted to compressed image data of a desired file format.

【0004】[0004]

【発明が解決しようとする課題】ところが、このような
方法によると、他のファイルフォーマットに変換する際
に展開画像に相当するサイズの空きメモリが必要となる
ため、十分なメモリ容量が用意できない場合は対応でき
ず、また、メモリ上で展開してから、改めて所望するフ
ァイルフォーマットの圧縮画像データに変換するため、
変換処理に時間がかかり、さらには、改めて生成された
所望するファイルフォーマットのデータ精度が落ちると
いう問題があった。
However, according to such a method, when converting to another file format, a free memory of a size corresponding to a developed image is required, so that a sufficient memory capacity cannot be prepared. Is not supported, and after being expanded on the memory, it is converted to compressed image data of the desired file format again,
The conversion process takes a long time, and further, there is a problem that the data accuracy of the newly generated desired file format is reduced.

【0005】本発明は、上記事情に鑑みてなされたもの
で、大きなメモリ領域を必要とすることなく、しかも短
い処理時間でフォーマット変換を可能にした圧縮画像デ
ータフォーマット変換方法およびその装置を提供するこ
とを目的とする。
The present invention has been made in view of the above circumstances, and provides a compressed image data format conversion method and apparatus capable of performing format conversion in a short processing time without requiring a large memory area. The purpose is to:

【0006】[0006]

【課題を解決するための手段】請求項1記載の発明は、
ブロックごとに符号化された画像データを所定ユニット
ごとに所定のフォーマットで構成し、この所定のフォー
マットで構成された圧縮画像データを該所定ユニットと
は異なる他のユニットで構成される他のフォーマットに
変換する圧縮画像データフォーマット変換方法におい
て、前記所定ユニットのブロックごとのアドレスを求め
るステップと、この求めたアドレスに基づいて前記ブロ
ックを前記他のユニットに構成するステップとを有して
いる。
According to the first aspect of the present invention,
The image data encoded for each block is configured in a predetermined format for each predetermined unit, and the compressed image data configured in the predetermined format is converted to another format configured by another unit different from the predetermined unit. The method for converting a compressed image data format to be converted includes a step of obtaining an address of each block of the predetermined unit, and a step of configuring the block into the other unit based on the obtained address.

【0007】請求項2記載の発明は、請求項1記載にお
いて、前記アドレスを求めるステップは、前記ブロック
の符号長を求めるステップと、この符号長を加算するこ
とによりアドレスを求めるステップとを有している。
According to a second aspect of the present invention, in the first aspect, the step of obtaining an address includes a step of obtaining a code length of the block and a step of obtaining an address by adding the code length. ing.

【0008】請求項3記載の発明は、請求項1記載にお
いて、前記他のユニットを構成するステップは、前記符
号化された画像データのブロックを複数の周波数成分に
変換するステップと、前記求められたアドレスに基づい
てこの変換された画像データを周波数成分ごとに他のユ
ニットに構成するステップとを有している。
According to a third aspect of the present invention, in the first aspect, the step of configuring the other unit includes the step of converting the block of the encoded image data into a plurality of frequency components, and And configuring the converted image data into another unit for each frequency component based on the address.

【0009】請求項4記載の発明は、請求項1記載にお
いて、前記アドレスを求めるステップは、1ブロックラ
イン分の前記ブロックごとの圧縮画像データのアドレス
を求めるステップを有し、前記他のユニットを構成する
ステップは、前記求められたアドレスに基づいて1ブロ
ックライン分の圧縮画像データを1ラインごとに順次R
GB信号に変換するステップを有している。
According to a fourth aspect of the present invention, in the first aspect, the step of obtaining an address includes a step of obtaining an address of compressed image data for each block of one block line. The step of composing comprises sequentially compressing the compressed image data of one block line for each line based on the obtained address.
And converting to a GB signal.

【0010】請求項5記載の発明は、ブロックごとに符
号化された画像データを所定ユニットごとに所定のフォ
ーマットで構成し、この所定のフォーマットで構成され
た圧縮画像データを該所定ユニットとは異なる他のユニ
ットで構成される他のフォーマットに変換する圧縮画像
データフォーマット変換装置において、前記所定ユニッ
トのブロックごとのアドレスを求める手段と、このアド
レスを求める手段により求めたアドレスに基づいて前記
ブロックを前記他のユニットに変換する変換手段とを有
している。
According to a fifth aspect of the present invention, the image data encoded for each block is formed in a predetermined format for each predetermined unit, and the compressed image data formed in the predetermined format is different from the predetermined unit. In a compressed image data format conversion device for converting to another format constituted by another unit, a means for obtaining an address for each block of the predetermined unit, and the block for converting the block based on the address obtained by the means for obtaining the address. Conversion means for converting to another unit.

【0011】請求項6記載の発明は、請求項5記載にお
いて、前記アドレスを求める手段は、前記ブロックの符
号長を求めるブロック符号長検出手段と、このブロック
符号長検出手段により求められた符号長を加算してアド
レスを求める加算手段とを有している。
According to a sixth aspect of the present invention, in the fifth aspect, the means for obtaining the address includes: a block code length detecting means for obtaining a code length of the block; and a code length obtained by the block code length detecting means. And an adding means for obtaining an address by adding

【0012】請求項7記載の発明は、請求項5記載にお
いて、前記変換手段は、前記符号化された画像データの
ブロックを複数の周波数成分に変換する周波数成分変換
手段と、前記アドレスを求める手段により求められたア
ドレスに基づいて前記周波数成分変換手段により変換さ
れた画像データを周波数成分ごとに他のユニットに変換
する手段とを有している。
According to a seventh aspect of the present invention, in the fifth aspect, the conversion means converts the coded image data block into a plurality of frequency components, and the address obtaining means. Means for converting the image data converted by the frequency component conversion means on the basis of the address obtained by the above into other units for each frequency component.

【0013】請求項8記載の発明は、請求項5記載にお
いて、記アドレスを求める手段は、1ブロックライン分
の前記ブロックごとの圧縮画像データのアドレスを求め
る手段を有し、前記変換手段は、前記アドレスを求める
手段により求められたアドレスに基づいて1ブロックラ
イン分の圧縮画像データを1ラインごとに順次RGB信
号に変換する手段を有している。この結果、本発明によ
れば、フォーマット変換のために使用するメモリの容量
を小さくできるとともに、フォーマット変換の処理時間
も大幅に短縮できる。
According to an eighth aspect of the present invention, in the fifth aspect, the means for obtaining the address includes means for obtaining an address of the compressed image data for each block of one block line, and the converting means includes: There is provided means for sequentially converting the compressed image data for one block line into RGB signals for each line based on the address obtained by the address obtaining means. As a result, according to the present invention, the capacity of the memory used for format conversion can be reduced, and the processing time for format conversion can be significantly reduced.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態を図面
に従い説明する。なお、以下の実施の形態では、8×8
ドットを1ブロックとし、このブロックの行方向の1ラ
インを1ラインブロックとし、所定フォーマットに基づ
いた最小ブロックの集まりを単位ブロックとし、1ドッ
トの行方向の1ラインを単に1ラインとする。 (第1の実施の形態)図1は、本発明の圧縮画像データ
フォーマット変換方法に適用されるフォーマット変換装
置の概略構成を示している、図において、1は制御部
で、この制御部1には、入力部2、出力部3、ROM4
およびRAM5を接続している。ここで、入力部2は、
変換前のファイルフォーマットのデータが入力され、制
御部1は、入力されたファイルフォーマットのデータに
ついて、ROM4の制御プログラムによりフォーマット
変換処理を行い、ここで変換したファイルフォーマット
のデータを出力部3より出力するようにしている。な
お、RAM5は、フォーマット変換制御の際のデータを
記憶するものである。
Embodiments of the present invention will be described below with reference to the drawings. In the following embodiment, 8 × 8
A dot is defined as one block, one line in the row direction of this block is defined as one line block, a set of minimum blocks based on a predetermined format is defined as a unit block, and one line in the row direction of one dot is simply defined as one line. (First Embodiment) FIG. 1 shows a schematic configuration of a format conversion apparatus applied to a compressed image data format conversion method of the present invention. In FIG. Are input unit 2, output unit 3, ROM4
And RAM5. Here, the input unit 2
The data of the file format before conversion is input, and the control unit 1 performs a format conversion process on the input data of the file format by the control program of the ROM 4, and outputs the converted file format data from the output unit 3. I am trying to do it. The RAM 5 stores data for format conversion control.

【0015】次に、このようなフォーマット変換装置を
用いて、ノンインターリーブ方式の圧縮画像データのフ
ァイルフォーマットをJPEG形式のファイルフォーマット
に変換する例について述べる。
Next, an example of converting the file format of the non-interleaved compressed image data into the JPEG format file format by using such a format converter will be described.

【0016】ここで、ノンインターリーブ方式に基づく
圧縮画像データのファイルフォーマット構造は、図2に
示すようにヘッダ11、量子化テーブル12、圧縮画像
データ13からなっている。この場合、圧縮画像データ
13は、ノンインターリーブ方式より1画像単位で輝度
Y成分、色差Cb 、Cr 成分と続くようになっている。
Here, the file format structure of the compressed image data based on the non-interleave method includes a header 11, a quantization table 12, and compressed image data 13 as shown in FIG. In this case, the compressed image data 13 follows the luminance Y component, the color difference Cb, and the Cr component in one image unit according to the non-interleave method.

【0017】図3(a)(b)(c)および図4は、こ
のような圧縮画像データ13の生成手順を説明するもの
で、図3に示すように原画像データを480×240ド
ットとした場合、まず、輝度Y成分は、行ブロック番号
をi、列ブロック番号をjとすると、図4に示すフロー
において、ステップ401で、j=0とし、ステップ4
02で、i行、j列から8×8ドット(1ブロック)画
像データを符号化し、ステップ403で、j列を1ブロ
ックずつ列方向にシフトしながら(+8しながら)、ス
テップ404で、j<M(=480)が否定されるま
で、同じ動作を繰り返えす。そして、ステップ404
で、j<M(=480)が否定されると、ステップ40
5で、今度はi行を1ブロック行方向にシフトしなから
(+8しながら)、ステップ406で、i<N(=24
0)が否定されるまで、上述のステップ401〜ステッ
プ404の動作を繰り返し、輝度Y成分を生成する。
FIGS. 3 (a), 3 (b), 3 (c) and 4 illustrate the procedure for generating such compressed image data 13. As shown in FIG. 3, the original image data is composed of 480 × 240 dots. First, assuming that the row block number is i and the column block number is j, the luminance Y component is set to j = 0 in step 401 in the flow shown in FIG.
At step 02, 8 × 8 dot (one block) image data is encoded from the i row and j column. At step 403, the j column is shifted one block at a time in the column direction (while +8 is reached). The same operation is repeated until <M (= 480) is denied. Then, step 404
If j <M (= 480) is denied, step 40
5, the i-th row is not shifted in the direction of one block row (while +8).
Until the result of step 0) is negative, the operations in steps 401 to 404 are repeated to generate a luminance Y component.

【0018】また、色差Cb 、Cr 成分は、予め画像デ
ータを1/2に間引きしておいて、M(=240)、N
(=120)の状態から、上述した図4に示すフローを
実行することにより、色差Cb 、Cr 成分を生成する。
For the color difference Cb and Cr components, M (= 240), N
By executing the flow shown in FIG. 4 from the state of (= 120), the color difference Cb and Cr components are generated.

【0019】一方、JPEG形式のファイルフォーマット構
成は、図5に示すように量子化テーブルを含むヘッダ1
4と圧縮画像データ15からなっている。この場合の圧
縮画像データ15は、図6に示すように最小データ単位
であるMCU(Minimum Coded Unit) 単位ごとに輝度Y(Y
1 、Y2 、Y3 、Y4 )成分、色差Cb 、Cr 成分と続
くインターリーブ方式からなっている。
On the other hand, as shown in FIG. 5, the JPEG format file format has a header 1 including a quantization table.
4 and the compressed image data 15. As shown in FIG. 6, the compressed image data 15 in this case has luminance Y (YM) for each MCU (Minimum Coded Unit) unit which is the minimum data unit.
1, Y2, Y3, Y4) components, color difference Cb, Cr components, followed by an interleaving system.

【0020】図7(a)(b)(c)および図8は、こ
のような圧縮画像データ15の生成手順を説明するもの
で、この場合、図7に示すように原画像データを480
×240ドットとした場合、MCU 数を30×15=45
0とし、MCU の番号をkとすると、図8に示すフローに
おいて、ステップ801で、k=1とし、ステップ80
2で、1MCU 分の画像データの輝度Y(Y1 、Y2 、Y
3 、Y4 )、色差Cb、Cr を順に符号化し、ステップ
803で、k+1しながら、ステップ804で、k<4
50が否定されるまで、同じ動作を繰り返し、輝度Y成
分、色差Cb 、Cr を生成する。
FIGS. 7 (a), 7 (b), 7 (c) and 8 illustrate the procedure for generating such compressed image data 15. In this case, as shown in FIG.
In the case of × 240 dots, the number of MCUs is 30 × 15 = 45
Assuming that the MCU number is k and k is 0, in the flow shown in FIG.
2, the luminance Y (Y1, Y2, Y) of the image data for one MCU
3, Y 4) and the color differences Cb and Cr in this order, and in step 803, while k + 1, k <4 in step 804.
The same operation is repeated until 50 is denied to generate the luminance Y component and the color differences Cb and Cr.

【0021】しかして、図2で述べたノンインターリー
ブに基づく圧縮画像データのファイルフォーマットを、
図5で述べたJPEG形式の圧縮画像データファイルフォー
マットに変換するには、図9に示すフローが実行され
る。
Thus, the file format of the compressed image data based on the non-interleave described in FIG.
In order to convert to the JPEG format compressed image data file format described in FIG. 5, the flow shown in FIG. 9 is executed.

【0022】この場合、図7(a)に示す原画像データ
を480×240ドットとすると、8×8ドットを小ブ
ロック、この小ブロックの2×2の4個からなるものを
単位ブロックとして、この単位ブロックを横方向に30
個並べたものを大ブロックとして、これら大ブロックの
縦方向の番号をw(w=1、2、…15)とする。ま
た、単位ブロックの横列方向の番号(輝度Y成分用)を
i(i=1、2、…30)、同様に横列方向の番号(色
差Cb 、Cr 成分用)をk(k=1、2、…30)、各
単位ブロック内の縦列方向のブロック番号をj(j=
1、2)とし、さらに、輝度Y成分のブロック番号i
で、同ブロック番号iの単位ブロック内のj番目の2ブ
ック分のハフマン符号長のオフセットアドレスをPYj
[i]、色差Cb成分のk番目のハフマン符号長のオフ
セットアドレスをPCb[k]、色差Cr 成分のk番目の
ハフマン符号長のオフセットアドレスをPCr[k]とす
る。
In this case, assuming that the original image data shown in FIG. 7A is 480 × 240 dots, 8 × 8 dots are set as a small block, and a small block consisting of 4 × 2 × 2 is a unit block. This unit block is divided horizontally by 30
The arrangement of the large blocks is referred to as a large block, and the vertical numbers of these large blocks are w (w = 1, 2,..., 15). Also, the number of the unit block in the row direction (for the luminance Y component) is i (i = 1, 2,..., 30), and similarly, the number in the row direction (for the color difference Cb, Cr components) is k (k = 1, 2, 3). ,..., 30), and j (j = j)
1, 2), and the block number i of the luminance Y component.
And the offset address of the Huffman code length for the j-th two books in the unit block of the same block number i is PYj
[I], the offset address of the k-th Huffman code length of the color difference Cb component is PCb [k], and the offset address of the k-th Huffman code length of the color difference Cr component is PCr [k].

【0023】まず、ステップ901で、w=1、PYj
[i]=0、PCb[k]=0、PCr[k]=0とし、ス
テップ902で、i=j=k=1として、ステップ90
3に進む。
First, at step 901, w = 1, PYj
[I] = 0, PCb [k] = 0, PCr [k] = 0, and in step 902, i = j = k = 1 and step 90
Proceed to 3.

【0024】このステップ903では、まず、j(=
1)ラインブロックについてオフセットアドレスを求め
る。この場合、輝度Y成分のブロック番号i(=1)
で、同ブロック番号i(=1)の単位ブロック内のj
(=1)番目の2ブック分のハフマン符号長のオフセッ
トアドレスPYj[i]を求める。この場合、PYj[i]
は、ブロック番号i(=1)の単位ブロックのうち前の
単位ブロックのオフセットアドレスPYj[i−1]に、
次の2個の小ブロック分のハフマン符号長を加えたもの
から求める。
In step 903, first, j (=
1) Obtain an offset address for a line block. In this case, the block number i (= 1) of the luminance Y component
And j in the unit block of the same block number i (= 1)
The offset address PYj [i] of the Huffman code length for the (= 1) second book is obtained. In this case, PYj [i]
Is assigned to the offset address PYj [i-1] of the previous unit block of the unit block having the block number i (= 1),
It is determined from the sum of the Huffman code lengths of the next two small blocks.

【0025】次いで、ステップ904で、単位ブロック
ごとにインクリメントしながら(i+1しながら)、ス
テップ905で、1ラインブロック終了するまで(i≦
30が否定されるまで)、ステップ903の動作を繰り
返す。そして、ステップ905で、i≦30が否定され
ると、ステップ906で、jをインクリメント(j+
1)するとともに、前回ブロックの最終アドレスを今回
ブロックの先頭アドレスに設定する。
Next, at step 904, while incrementing for each unit block (while i + 1), at step 905, until one line block ends (i ≦
Until step 30 is denied), the operation of step 903 is repeated. Then, if i ≦ 30 is denied in step 905, in step 906, j is incremented (j +
1) At the same time, the last address of the previous block is set as the start address of the current block.

【0026】そして、ステップ9061で、i=1とし
て、さらにj(=2)ラインブロックについて上述した
と同様にしてオフセットアドレスを求める。そして、輝
度Y成分の2ラインブロック分のオフセットアドレスが
求まり、ステップ907で、j≦2が否定されると、ス
テップ908に進む。
In step 9061, i = 1, and an offset address is obtained for the j (= 2) line block in the same manner as described above. Then, offset addresses for two line blocks of the luminance Y component are obtained, and if j ≦ 2 is denied in step 907, the process proceeds to step 908.

【0027】ステップ908では、色差成分の単位ブロ
ックごとのオフセットアドレスを求める。この場合、色
差Cb 成分のk番目のハフマン符号長のオフセットアド
レスPCb[k]は、PCb[k−1]に1ブロック分のハ
フマン符号長を加えたものから求め、色差Cr 成分のk
番目のハフマン符号長のオフセットアドレスPCr[k]
は、PCr[k−1]に1ブロック分のハフマン符号長を
加えたものから求める。
In step 908, the offset address of each color difference component for each unit block is obtained. In this case, the offset address PCb [k] of the kth Huffman code length of the chrominance Cb component is obtained from the sum of PCb [k-1] and the Huffman code length of one block, and the kth of the chrominance Cr component is obtained.
Offset address PCr [k] of the Huffman code length
Is calculated from the sum of PCr [k-1] and the Huffman code length for one block.

【0028】次いで、ステップ909で、原画像データ
のノンインターリーブに基づく圧縮画像データをJFI
F方式で格納する。この場合の圧縮画像データの格納
は、オフセットアドレスPY1[k]、PY2[k]、PCb
[k]、PCr[k]の順に次のオフセットアドレスまで
行い、図6に示す1MCU 分に相当する輝度Y(Y1 、Y
2 、Y3 、Y4 )成分、色差Cb 、Cr 成分と続くイン
ターリーブ方式の圧縮画像データ15を生成する。
Next, in step 909, the compressed image data based on the non-interleave of the original image data is
Store in F system. In this case, the compressed image data is stored at the offset addresses PY1 [k], PY2 [k], PCb
[K] and PCr [k] in this order up to the next offset address, and the luminance Y (Y1, Y1) corresponding to one MCU shown in FIG.
2, Y3, Y4) components, color difference Cb, Cr components, and subsequent interleaved compressed image data 15 are generated.

【0029】そして、ステップ910で、k+1しなが
ら、ステップ911で、k≦30が否定されるまで、ス
テップ908、ステップ909の動作を繰り返す。そし
て、ステップ911で、k≦30が否定されると、ステ
ップ912で、アドレスを更新し、さらにステップ91
3で、wをインクリメントしながら(w+1しなが
ら)、ステップ914で、w≦15が否定されるまで、
ステップ902以降の動作を繰り返す。そして、ステッ
プ914で、w≦15が否定されると、1画面分につい
てフォーマット変換処理を終了する。
Then, the operations of steps 908 and 909 are repeated while k + 1 is determined in step 910 until k ≦ 30 is denied in step 911. Then, if k ≦ 30 is denied in step 911, the address is updated in step 912, and
In step 3, while w is incremented (while w + 1), in step 914, until w ≦ 15 is negated.
The operation after step 902 is repeated. Then, if w ≦ 15 is denied in step 914, the format conversion process is completed for one screen.

【0030】従って、このようにすれば、図2に示すノ
ンインターリーブに基づくファイルフォーマットの圧縮
画像データを、図5に示すようなJPEG形式のファイルフ
ォーマットに変換するには、これまで、メモリ上で展開
(デコード)してから、改めてJPEG形式のファイルフォ
ーマットに変換するようにしていたものを、ここでは、
n×nの小ブロックからなる単位ブロックについて、輝
度成分のnラインブロック分のハフマン符号長のオフセ
ットアドレスを求めるとともに、各単位ブロックについ
て色差成分のハフマン符号長のオフセットアドレスを求
め、これら輝度成分のハフマン符号長のオフセットアド
レスと色差成分のハフマン符号長のオフセットアドレス
に基づいてノンインターリーブに基づくファイルフォー
マットの圧縮画像データを格納するようにしたので、上
述のメモリ上で展開(デコード)で230k程度のメモ
リを使用するものと比べ、フォーマット変換のために使
用するメモリの容量を小さくできるとともに、フォーマ
ット変換の処理時間も大幅に短縮することができる。
Accordingly, in this manner, in order to convert the compressed image data of the file format based on the non-interleave shown in FIG. 2 to the JPEG format file format as shown in FIG. What has been expanded (decoded) and then converted to the JPEG file format again,
For a unit block consisting of n × n small blocks, an offset address of the Huffman code length of n line blocks of the luminance component is obtained, and an offset address of the Huffman code length of the chrominance component is obtained for each unit block. Compressed image data of a file format based on non-interleaving is stored based on the offset address of the Huffman code length and the offset address of the Huffman code length of the color difference component. Compared with the case using a memory, the capacity of the memory used for format conversion can be reduced, and the processing time for format conversion can be significantly reduced.

【0031】なお、この逆(JPEG形式からノンインター
リーブ方式)も可能である。これは、オフセットアドレ
スの求め方が少し複雑になる。JPEG形式では、MCU ごと
に記憶されているので、輝度に関して2ラインブロック
分のアドレスポインタおよび色差に関してそれぞれ1ラ
インブロック分のアドレスポインタ、さらにこれらに対
応するバッファが必要になる。まず、輝度および色差の
スタートポインタをアドレスポインタにセットする。ア
ドレスポインタが示している領域のデータをそれぞれ読
み出して、バッファに記憶する。このとき輝度に関して
は、最初の2ブロックは、1番目のラインブロックに対
応する領域に記憶し、続く2ブロックは、2番目のライ
ンブロックに対応する領域に記憶する。そして、1番目
および2番目のラインブロックアドレスをそれぞれ更新
する。これを2ラインブロック分繰り返し、輝度に関し
て2ラインブロック分の圧縮画像データを得る。そし
て、それぞれのラインブロックを行方向に順次ブロック
を読み出すことにより、ノンインターリーブ方式に変換
することができる。
The reverse (from the JPEG format to the non-interleaved format) is also possible. This makes the method of obtaining the offset address slightly complicated. In the JPEG format, since it is stored for each MCU, an address pointer for two line blocks for luminance, an address pointer for one line block for each color difference, and a buffer corresponding to these are required. First, a start pointer for luminance and color difference is set to an address pointer. The data in the area indicated by the address pointer is read out and stored in the buffer. At this time, regarding the luminance, the first two blocks are stored in an area corresponding to the first line block, and the subsequent two blocks are stored in an area corresponding to the second line block. Then, the first and second line block addresses are updated, respectively. This is repeated for two line blocks to obtain compressed image data for two line blocks in terms of luminance. Then, each line block can be converted into a non-interleaved system by sequentially reading the blocks in the row direction.

【0032】また、上述では、ブロックを8×8の正方
形ブロックとしたが、これに限ることなく、M×Nの長
方形ブロックでもよい。 (第2の実施の形態)この第2の実施の形態では、図1
で述べたフォーマット変換装置を用いて、上述したノン
インターリーブに基づく圧縮画像データのファイルフォ
ーマットを、プログレッシブビルトアップのJPEG形式の
圧縮画像データのファイルフォーマットに変換する場合
を示している。
In the above description, the blocks are 8 × 8 square blocks. However, the present invention is not limited to this, and M × N rectangular blocks may be used. (Second Embodiment) In this second embodiment, FIG.
The case where the file format of the compressed image data based on the non-interleave described above is converted into the file format of the progressively built-up JPEG format compressed image data by using the format conversion apparatus described in the above section is shown.

【0033】この場合、プログレッシブビルトアップの
JPEG形式のファイルフォーマット構成は、図10に示す
ように各種定義16、#1〜#Nのスキャンヘッダ17
にそれぞれ対応する#1〜#Nのスキャン圧縮画像デー
タ18からなっている。これらスキャン圧縮画像データ
18は、最小データ単位のMCU 単位で、輝度Y(Y1、
Y2 、Y3 、Y4 )成分、色差Cb 、Cr 成分と続くイ
ンターリーブ方式からなるもので、これら#1〜#Nの
スキャン圧縮画像データ18は、それぞれDC成分→A
C低周波成分→AC高周波成分の順になっている。
In this case, the progressive build-up
As shown in FIG. 10, the JPEG format file format has various definitions 16 and scan headers 17 of # 1 to #N.
And # 1 to #N scan compressed image data 18 respectively corresponding to. The scan compressed image data 18 has a luminance Y (Y1, Y1) in the MCU unit of the minimum data unit.
Y2, Y3, Y4) components, and color difference Cb, Cr components, followed by an interleave system. These # 1 to #N scan compressed image data 18 are DC components → A
The order is C low frequency component → AC high frequency component.

【0034】図11(a)(b)(c)および図12
は、このような圧縮画像データ18の生成手順を説明す
るもので、この場合も図11に示す原画像データを48
0×240ドットとした場合、MCU 数を30×15=4
50とし、MCU の番号をk、スキャン番号をiとする
と、図12に示すフローにおいて、ステップ1201
で、i=1、ステップ1202で、k=1とし、ステッ
プ1203で、i番目のスキャン内で指定されたバンド
幅と色成分に対し、1MCU 分の画像データの輝度Y(Y
1 、Y2 、Y3 、Y4 )、色差Cb 、Cr を順に符号化
し、ステップ1204で、kをインクリメントしながら
(k+1しながら)、ステップ1205で、k<450
が否定されるまで、同じ動作を繰り返し、ステップ12
05でk<450が否定されと、ステップ1206でi
をインクリメントしながら(i+1ながら)、ステップ
1207で、i<Nが否定されるまで、同じ動作を繰り
返すことで、MCU 単位ごとにスキャン数Nの分割が行わ
れ、それぞれMCU 単位に相当する輝度Y成分、色差Cb
、Cr が生成される。
FIGS. 11 (a), (b), (c) and FIG.
Explains the procedure for generating such compressed image data 18. In this case as well, the original image data shown in FIG.
If 0 × 240 dots, the number of MCUs is 30 × 15 = 4
Assuming that the MCU number is 50, the MCU number is k, and the scan number is i, in the flow shown in FIG.
In step 1202, i = 1, and k = 1. In step 1203, the luminance Y (Y) of the image data for one MCU for the bandwidth and the color component specified in the i-th scan.
1, Y2, Y3, Y4) and the color differences Cb, Cr are sequentially encoded, and in step 1204, while k is incremented (while k + 1), k <450 in step 1205.
Until the result is negative, the same operation is repeated.
When k <450 is denied in 05, i is determined in step 1206.
Is incremented (while i + 1), the same operation is repeated in step 1207 until i <N is denied, so that the number of scans N is divided for each MCU unit, and the luminance Y corresponding to each MCU unit is divided. Component, color difference Cb
, Cr are generated.

【0035】しかして、図2で述べたノンインターリー
ブに基づく圧縮画像データのファイルフォーマットを、
図10で述べたプログレッシブビルトアップのJPEG形式
の圧縮画像データファイルフォーマットに変換するに
は、図13に示すフローが実行される。
The file format of the compressed image data based on the non-interleave described in FIG.
The flow shown in FIG. 13 is executed in order to convert to the progressive built-up JPEG format compressed image data file format described in FIG.

【0036】この場合も、図11(a)に示すように原
画像データを480×240ドットとすると、8×8ド
ットを小ブロック、この小ブロックの2×2からなるも
のを単位ブロックとして、1画面としては、この単位ブ
ロックを横方向に30個、縦方向に15個並べたものと
なる。
Also in this case, if the original image data is 480 × 240 dots as shown in FIG. 11 (a), 8 × 8 dots are set as small blocks, and a unit block consisting of 2 × 2 small blocks is used as a unit block. As one screen, 30 unit blocks are arranged in the horizontal direction and 15 unit blocks are arranged in the vertical direction.

【0037】そして、これら単位ブロックの縦方向の番
号をwとすると、まず、ステップ1301で、w=1と
し、ステップ1302で、図10に示すフォーマットの
DC成分→AC低周波成分→AC高周波成分からなる#
1〜#Nのスキャン圧縮画像データ18を格納するメモ
リSi を確保し、各メモリSi に対するポインタPsiを
0にセットする。
Assuming that the vertical numbers of these unit blocks are w, first, in step 1301, w = 1, and in step 1302, the DC component → AC low frequency component → AC high frequency component in the format shown in FIG. Consisting of #
The memory Si for storing the scan compressed image data 18 of 1 to #N is secured, and the pointer Psi for each memory Si is set to 0.

【0038】次に、ステップ1303で、最初のブロッ
ク(w=1)について、輝度Y成分の16ライン分につ
いてハフマン復号化を行ってDCT 係数をメモリに格納
し、同時に、次に復号するオフセットを輝度Y成分のポ
インタPY にセット、つまり、次に読み込むデータのポ
インタPY を進めておく。次いで、色差Cb 、Cr 成分
(予め1/2に間引きされている。)の8ライン分につ
いてもハフマン復号化を行ってDCT 係数値をメモリに格
納し、同時に、次に復号するオフセットを色差Cb 、C
r 成分のポインタPCb、PCrにセット、つまり、次に読
み込むデータのポインタPCb、PCrを進めておく。
Next, in step 1303, for the first block (w = 1), Huffman decoding is performed for 16 lines of the luminance Y component, and the DCT coefficients are stored in the memory. The pointer PY of the luminance Y component is set, that is, the pointer PY of the data to be read next is advanced. Next, Huffman decoding is also performed on the eight lines of the color difference Cb and Cr components (which have been thinned out in advance to 1/2), and the DCT coefficient values are stored in the memory. , C
The pointers PCb and PCr of the r component are set, that is, the pointers PCb and PCr of the data to be read next are advanced.

【0039】そして、ステップ1305に進み、輝度
Y、色差Cb 、Cr の各成分の復号化したDCT 係数の値
を#1〜#Nのスキャンで取り扱うデータごと、つま
り、DC成分→AC低周波成分→AC高周波成分ごとに
分割し、スキャン番号の小さい順にメモリ上に格納す
る。
Then, the process proceeds to step 1305, where the decoded DCT coefficient values of the luminance Y and chrominance Cb, Cr components are processed for each of the data handled in the scans # 1 to #N, that is, the DC component → AC low frequency component → Divide for each AC high frequency component and store it in the memory in ascending order of scan number.

【0040】次に、ステップ1306で、#1〜#Nの
スキャンに対応するDCT 係数の値をハフマン符号化し、
これらをスキャン圧縮画像データ18として各メモリS
i [Psi](ただし、i=1、2、…N)の順に格納す
る。また、メモリSi に対するポインタPsiには、次に
格納する先のオフセットを入れる。
Next, in step 1306, the values of the DCT coefficients corresponding to the scans # 1 to #N are Huffman-coded,
These are stored as scan compressed image data 18 in each memory S
i [Psi] (where i = 1, 2,... N). In the pointer Psi to the memory Si, the offset to be stored next is inserted.

【0041】そして、ステップ1037で、wをインク
リメントしながら(w+1しながら)、ステップ130
8で、w≦15が否定されるまで、ステップ1303以
降の動作を繰り返す。そして、ステップ1308で、w
≦15が否定されると、1画面分の処理を終了し、ステ
ップ1309に進み、#1〜#Nの各スキャンに対応す
るメモリSi のスキャン圧縮画像データ18を図10に
示す#1〜#Nのスキャンヘッダ17の後にセーブし、
プログレッシブビルトアップのJPEG形式の圧縮データフ
ァイルフォーマットへの変換を終了する。
Then, at step 1037, w is incremented (while w + 1), while step 130 is executed.
In step 8, the operation from step 1303 is repeated until w ≦ 15 is denied. Then, in step 1308, w
If .ltoreq.15 is denied, the processing for one screen is terminated, and the flow advances to step 1309 to convert the scan compressed image data 18 in the memory Si corresponding to each of the scans # 1 to #N into # 1 to # shown in FIG. Save after N scan headers 17,
Finish the conversion of progressive build-up to JPEG compressed data file format.

【0042】従って、このようにすれば、図2に示すノ
ンインターリーブに基づくファイルフォーマットの圧縮
画像データを、図10に示すようなプログレッシブビル
トアップのJPEG形式の圧縮データファイルフォーマット
に変換するには、これまで、DCT 係数のデータをスペク
トル・セレクション方式により3領域に分割して符号化
し、それぞれをメモリにセーブすることで1画面分を展
開するとともに、さらにプログレッシブ方式により圧縮
をかけるようにしていたものを、ここでは、輝度Y、色
差Cb 、Cr の各成分をハフマン復号化して得られたDC
T 係数を、#1〜#Nのスキャンに対応させてDC成分
→AC低周波成分→AC高周波成分の順に領域分割し、
これら各領域のDCT 係数値をハフマン符号化して、各ス
キャンヘッダごとにセーブするようにしたので、上述の
1画面分の展開、さらにプログレッシブ方式による圧縮
を必要とするものに比べ、フォーマット変換のために使
用するメモリの容量を小さくできるとともに、フォーマ
ット変換の処理時間も大幅に短縮することができる。 (第3の実施の形態)この第3の実施の形態では、デジ
タルカメラなどにより入力された撮像画像のノンインタ
ーリーブに基づく圧縮画像データファイルを、表示画面
上に直接表示する場合を示している。
Accordingly, in order to convert the compressed image data of the file format based on the non-interleave shown in FIG. 2 into the compressed data file format of the progressive built-up JPEG format shown in FIG. Until now, DCT coefficient data was divided into three regions by the spectrum selection method and encoded, and each image was saved in the memory to expand one screen, and further compressed by the progressive method. Here, DC obtained by Huffman decoding each component of luminance Y and color difference Cb, Cr
The T coefficient is divided into regions in the order of DC component → AC low frequency component → AC high frequency component in correspondence with scans # 1 to #N,
Since the DCT coefficient values of these areas are Huffman-coded and saved for each scan header, compared to the above-described one requiring expansion of one screen and compression by the progressive method, the format conversion is required. In addition to reducing the capacity of the memory used for the data conversion, the processing time for format conversion can be greatly reduced. (Third Embodiment) In the third embodiment, a case is shown in which a compressed image data file based on non-interleaving of a captured image input by a digital camera or the like is directly displayed on a display screen.

【0043】図14は、かかる表示ブロックの概略構成
を示している。図において、21はデジタメカメラで、
このデジタメカメラ21には、ドライバ22を介してC
PU23に接続している。このCPU23には、ドライ
バ24を介してプリンタ25、ドライバ26を介してC
RT27をそれぞれ接続している。
FIG. 14 shows a schematic configuration of such a display block. In the figure, 21 is a digital camera,
This digital camera 21 is provided with a C
It is connected to PU23. The CPU 23 has a printer 25 via a driver 24 and a C
RT27 are connected respectively.

【0044】また、CPU23には、記憶部28、プロ
グラムROM29、ワークメモリ30および出力用メモ
リ31を接続している。ここで、デジタメカメラ21
は、撮像画像を、上述した図2に示すノンインターリー
ブに基づくファイルフォーマットの圧縮画像データとし
て出力するものである。記憶部28は、デジタメカメラ
21からの圧縮画像データファイルを記憶するものであ
る。出力用メモリ31は、CRT27に表示されるデコ
ードされたデータを記憶するものである。そして、CP
U23は、記憶部28に記憶されたファイルフォーマッ
トの圧縮画像データについて、プログラムROM29の
制御プログラムにより表示データへの変換処理を行うも
のである。
The storage unit 28, the program ROM 29, the work memory 30, and the output memory 31 are connected to the CPU 23. Here, the digital camera 21
Is for outputting a captured image as compressed image data in a file format based on the non-interleave shown in FIG. The storage unit 28 stores a compressed image data file from the digital camera 21. The output memory 31 stores the decoded data displayed on the CRT 27. And CP
U23 converts the compressed image data in the file format stored in the storage unit 28 into display data by the control program of the program ROM 29.

【0045】しかして、デジタメカメラ21より撮像さ
れた画像は、図2に示すノンインターリーブに基づくフ
ァイルフォーマットの圧縮画像データとして記憶部28
に一旦記憶される。この状態から図15に示すフローが
実行される。
The image captured by the digital camera 21 is stored as compressed image data in a file format based on the non-interleave shown in FIG.
Is stored once. From this state, the flow shown in FIG. 15 is executed.

【0046】この場合も原画像データを480×240
ドットとすると、上述したと同様に8×8ドットを小ブ
ロック、この小ブロックを2×2の4個の集めたものを
単位ブロック(16ライン分)として、この単位ブロッ
クを横方向に30個並べたものを大ブロックとして全体
を15ブロックに分割する。そして、これら大ブロック
の番号をwとすると、まず、ステップ1501で、w=
1とし、ステップ1502で、輝度Y成分、色差Cb 、
Cr 成分用のそれぞれのデコードポインタPY、PCb、
PCrを初期化する。そして、ステップ1503で、最初
のブロック(w=1)について、デコードポインタPY
、PCb、PCrの指示する輝度Y成分の16ライン分
と、色差Cb 、Cr 成分(予め1/2に間引きされてい
る。)の8ライン分についてデコードを実行し、これら
を出力用メモリ31に格納する。
Also in this case, the original image data is 480 × 240
Assuming dots, 8 × 8 dots are small blocks in the same manner as described above, and a collection of four 2 × 2 small blocks is a unit block (for 16 lines). The arrangement is taken as a large block and the whole is divided into 15 blocks. Assuming that the numbers of these large blocks are w, first, in step 1501, w =
In step 1502, the luminance Y component, the color difference Cb,
The respective decode pointers PY, PCb,
Initialize PCr. Then, in step 1503, for the first block (w = 1), the decode pointer PY
, PCb, and PCr, and decodes 16 lines of the luminance Y component and 8 lines of the chrominance Cb and Cr components (which have been thinned out in advance to 1/2), and stores them in the output memory 31. Store.

【0047】次いで、ステップ1504で、出力用メモ
リ31に格納した輝度Y、色差Cb、Cr の各成分をR
GB変換し、これを16ライン分の画像データとしてC
RT27に部分表示する。この場合、RGB変換した1
6ライン分の画像データを一旦記憶しからCRT27に
表示するようにしてもよい。
Next, in step 1504, the components of the luminance Y and the color differences Cb and Cr stored in the output
After performing GB conversion, this is converted into image data for 16 lines by C
Partial display on RT27. In this case, the RGB converted 1
The image data for six lines may be temporarily stored and then displayed on the CRT 27.

【0048】そして、ステップ1505で、デコードポ
インタPY 、PCb、PCrを更新し、ステップ1506
で、wをインクリメントしながら(w+1しながら)、
ステップ1507で、w≦15が否定されるまで、ステ
ップ1503以降の動作を繰り返すことで、1画面分が
表示されるようになる。
Then, in step 1505, the decode pointers PY, PCb, PCr are updated, and in step 1506
Then, while incrementing w (while w + 1),
Until w ≦ 15 is denied in step 1507, the operations in and after step 1503 are repeated to display one screen.

【0049】従って、このようにすれば、図2に示すノ
ンインターリーブに基づくファイルフォーマットの圧縮
画像データを、そのままデコードして表示させようとす
ると、表示メモリとして230K程度の専用メモリを必
要としていたものを、ここでは、輝度Y、色差Cb 、C
r の色成分ごとにデコードポインタPY 、PCb、PCrを
用意し、これらデコードポインタPY 、PCb、PCrの指
示にしたがってブロック単位で表示データに変換しなが
らCRT27に表示するようにしたので、上述の専用メ
モリを必要としたのに比べ、表示メモリの容量を小さく
できるとともに、表示データへの変換処理の時間も大幅
に短縮して速やかな画像表示を実現できる。
Therefore, if the compressed image data of the file format based on the non-interleave shown in FIG. 2 is to be decoded and displayed as it is, a dedicated memory of about 230 K is required as a display memory. Here, the luminance Y, the color differences Cb, C
The decode pointers PY, PCb, and PCr are prepared for each color component of r, and the data is displayed on the CRT 27 while being converted into display data in block units in accordance with the instructions of the decode pointers PY, PCb, and PCr. Compared with the necessity of a memory, the capacity of the display memory can be reduced, and the time required for the conversion process into the display data can be significantly reduced, so that a quick image display can be realized.

【0050】なお、本発明では、シーケンシャルノンイ
ンターリーブのJPEG形式のファイルをプログレッシブ方
式で画面に表示することもできる。この場合、まず、JP
EGファイルをブロック単位でハフマン復号化し、この結
果のDCT 係数行列をDC成分の領域と、低周波AC成
分、高周波AC成分の領域に分割し、領域1、2、3に
保存しておく、この動作を1画面分行い、まず、領域1
からIDCT変換を施し、輝度、色差の3成分をメモリに格
納し、RGB変換を行ってCRTに表示する。続いて領
域2をIDCT変換し、輝度、色差成分をメモリに格納し、
同様にCRTに表示し、最後に領域3に対して同様な処
理を施し、CRT表示することによりプログレッシブな
画面表示を可能にしている。
In the present invention, a sequential non-interleaved JPEG format file can be displayed on a screen in a progressive manner. In this case, first, JP
The EG file is Huffman-decoded in block units, and the resulting DCT coefficient matrix is divided into a DC component region, a low-frequency AC component region, and a high-frequency AC component region, and stored in regions 1, 2, and 3. The operation is performed for one screen.
Is subjected to IDCT conversion, the three components of luminance and chrominance are stored in a memory, and RGB conversion is performed to be displayed on a CRT. Subsequently, the area 2 is subjected to IDCT conversion, and the luminance and color difference components are stored in a memory.
Similarly, the image is displayed on the CRT, and the same processing is performed on the area 3 at last, and the CRT display enables the progressive screen display.

【0051】このようにすれば、シーケンシャルJPEG形
式のファイルに対し、DCT 係数を3領域に分割し、これ
ら領域に対してDC成分→AC低周波成分→AC高周波
成分と色成分の展開を付加するようにしているので、プ
ログレッシブが画面表示を実現することができる。
In this way, the DCT coefficient is divided into three regions in the file of the sequential JPEG format, and expansion of the DC component → AC low frequency component → AC high frequency component and color component is added to these regions. As a result, progressive screen display can be realized.

【0052】[0052]

【発明の効果】以上述べたように、本発明によれば、フ
ォーマット変換のために使用するメモリの容量を小さく
できるとともに、フォーマット変換の処理時間も大幅に
短縮することができる。
As described above, according to the present invention, the capacity of the memory used for format conversion can be reduced, and the processing time for format conversion can be greatly reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態の圧縮画像データフ
ォーマット変換方法に適用されるフォーマット変換装置
の概略構成を示す図。
FIG. 1 is a diagram showing a schematic configuration of a format conversion apparatus applied to a compressed image data format conversion method according to a first embodiment of the present invention.

【図2】第1の実施の形態のノンインターリーブに基づ
く圧縮画像データのファイルフォーマット構造を示す
図。
FIG. 2 is a view showing a file format structure of compressed image data based on non-interleaving according to the first embodiment;

【図3】第1の実施の形態のノンインターリーブに基づ
く圧縮画像データの輝度、色差の各成分を示す図。
FIG. 3 is a diagram showing each component of luminance and color difference of compressed image data based on non-interleaving according to the first embodiment;

【図4】第1の実施の形態のノンインターリーブに基づ
く圧縮画像データの生成方法を示す図。
FIG. 4 is a view showing a method for generating compressed image data based on non-interleaving according to the first embodiment;

【図5】第1の実施の形態のJPEG形式の圧縮画像データ
のファイルフォーマット構造を示す図。
FIG. 5 is a diagram showing a file format structure of JPEG format compressed image data according to the first embodiment.

【図6】第1の実施の形態のJPEG形式の圧縮画像データ
のMCU 単位のデータ構成を示す図。
FIG. 6 is a diagram showing a data structure in units of MCU of JPEG format compressed image data according to the first embodiment;

【図7】第1の実施の形態のJPEG形式の圧縮画像データ
の輝度、色差の各成分を示す図。
FIG. 7 is a diagram illustrating luminance and color difference components of JPEG format compressed image data according to the first embodiment;

【図8】第1の実施の形態のJPEG形式の圧縮画像データ
の生成方法を示す図。
FIG. 8 is a view showing a method of generating JPEG format compressed image data according to the first embodiment;

【図9】第1の実施の形態のフォーマット変換方法を説
明するフローチャート。
FIG. 9 is a flowchart illustrating a format conversion method according to the first embodiment;

【図10】本発明の第2の実施の形態のプログレッシブ
ビルトアップのJPEG形式の縮画像データのファイルフォ
ーマット構造を示す図。
FIG. 10 is a diagram showing a file format structure of progressive built-up JPEG format reduced image data according to the second embodiment of the present invention.

【図11】第2の実施の形態のプログレッシブビルトア
ップのJPEG形式の縮画像データの輝度、色差の各成分を
示す図。
FIG. 11 is a diagram showing each component of luminance and color difference of JPEG format reduced image data of progressive build-up according to the second embodiment.

【図12】第2の実施の形態のプログレッシブビルトア
ップのJPEG形式の縮画像データのの生成方法を示す図。
FIG. 12 is a view showing a method of generating JPEG format reduced image data of progressive build-up according to the second embodiment;

【図13】第2の実施の形態のフォーマット変換方法を
説明するフローチャート。
FIG. 13 is a flowchart illustrating a format conversion method according to the second embodiment;

【図14】本発明の第3の実施の形態の概略構成を示す
図。
FIG. 14 is a diagram showing a schematic configuration of a third embodiment of the present invention.

【図15】第3の実施のフォーマット変換方法を説明す
るフローチャート。
FIG. 15 is a flowchart illustrating a format conversion method according to a third embodiment.

【符号の説明】[Explanation of symbols]

1…制御部、 2…入力部、 3…出力部、 4…ROM、 5…RAM、 11…ヘッダ、 12…量子化テーブル、 13…圧縮画像データ、 14…量子化テーブルを含むヘッダ、 15…圧縮画像データ、 16…各種定義、 17…#1〜#Nのスキャンヘッダ、 18…#1〜#Nのスキャン圧縮画像データ、 21…デジタメカメラ、 22、24、26…ドライバ、 23…CPU、 25…プリンタ、 27…CRT、 28…記憶部、 29…プログラムROM、 30…ワークメモリ、 31…出力用メモリ。 DESCRIPTION OF SYMBOLS 1 ... Control part, 2 ... Input part, 3 ... Output part, 4 ... ROM, 5 ... RAM, 11 ... Header, 12 ... Quantization table, 13 ... Compressed image data, 14 ... Header including a quantization table, 15 ... Compressed image data, 16: Various definitions, 17: Scan header of # 1 to #N, 18: Scanned compressed image data of # 1 to #N, 21: Digital camera, 22, 24, 26: Driver, 23: CPU Reference numeral 25: printer, 27: CRT, 28: storage unit, 29: program ROM, 30: work memory, 31: output memory

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 ブロックごとに符号化された画像データ
を所定ユニットごとに所定のフォーマットで構成し、こ
の所定のフォーマットで構成された圧縮画像データを該
所定ユニットとは異なる他のユニットで構成される他の
フォーマットに変換する圧縮画像データフォーマット変
換方法において、 前記所定ユニットのブロックごとのアドレスを求めるス
テップと、 この求めたアドレスに基づいて前記ブロックを前記他の
ユニットに構成するステップとを有することを特徴とす
る圧縮画像データフォーマット変換方法。
1. An image data encoded for each block is configured in a predetermined format for each predetermined unit, and compressed image data configured in the predetermined format is configured by another unit different from the predetermined unit. A method of converting the compressed image data format into another format, the method comprising: obtaining an address for each block of the predetermined unit; and configuring the block into the other unit based on the obtained address. A method for converting a compressed image data format.
【請求項2】 前記アドレスを求めるステップは、 前記ブロックの符号長を求めるステップと、 この符号長を加算することによりアドレスを求めるステ
ップとを有することを特徴とする請求項1記載の圧縮画
像データフォーマット変換方法。
2. The compressed image data according to claim 1, wherein the step of obtaining the address includes a step of obtaining a code length of the block, and a step of obtaining an address by adding the code length. Format conversion method.
【請求項3】 前記他のユニットを構成するステップ
は、 前記符号化された画像データのブロックを複数の周波数
成分に変換するステップと、 前記求められたアドレスに基づいてこの変換された画像
データを周波数成分ごとに他のユニットに構成するステ
ップとを有することを特徴とする請求項1記載の圧縮画
像データフォーマット変換方法。
3. The step of configuring the other unit includes: converting the block of the encoded image data into a plurality of frequency components; and converting the converted image data based on the determined address. 2. A method of converting a compressed image data format according to claim 1, further comprising the step of configuring another unit for each frequency component.
【請求項4】 前記アドレスを求めるステップは、1ブ
ロックライン分の前記ブロックごとの圧縮画像データの
アドレスを求めるステップを有し、 前記他のユニットを構成するステップは、前記求められ
たアドレスに基づいて1ブロックライン分の圧縮画像デ
ータを1ラインごとに順次RGB信号に変換するステッ
プを有することを特徴とする請求項1記載の圧縮画像デ
ータフォーマット変換方法。
4. The step of obtaining an address includes the step of obtaining an address of compressed image data for each block of one block line, and the step of configuring the other unit is based on the obtained address. 2. The method according to claim 1, further comprising the step of sequentially converting the compressed image data for one block line into RGB signals line by line.
【請求項5】 ブロックごとに符号化された画像データ
を所定ユニットごとに所定のフォーマットで構成し、こ
の所定のフォーマットで構成された圧縮画像データを該
所定ユニットとは異なる他のユニットで構成される他の
フォーマットに変換する圧縮画像データフォーマット変
換装置において、 前記所定ユニットのブロックごとのアドレスを求める手
段と、 このアドレスを求める手段により求めたアドレスに基づ
いて前記ブロックを前記他のユニットに変換する変換手
段とを有することを特徴とする圧縮画像データフォーマ
ット変換装置。
5. The image data encoded for each block is configured in a predetermined format for each predetermined unit, and the compressed image data configured in the predetermined format is configured by another unit different from the predetermined unit. Means for obtaining an address for each block of the predetermined unit, and converting the block to the other unit based on the address obtained by the means for obtaining the address. A compressed image data format conversion device, comprising: conversion means.
【請求項6】 前記アドレスを求める手段は、 前記ブロックの符号長を求めるブロック符号長検出手段
と、 このブロック符号長検出手段により求められた符号長を
加算してアドレスを求める加算手段と、 を有することを特徴とする請求項5記載の圧縮画像デー
タフォーマット変換装置。
6. The means for obtaining an address comprises: a block code length detecting means for obtaining a code length of the block; and an adding means for adding an code length obtained by the block code length detecting means to obtain an address. 6. The compressed image data format conversion device according to claim 5, further comprising:
【請求項7】 前記変換手段は、 前記符号化された画像データのブロックを複数の周波数
成分に変換する周波数成分変換手段と、 前記アドレスを求める手段により求められたアドレスに
基づいて前記周波数成分変換手段により変換された画像
データを周波数成分ごとに他のユニットに変換する手段
とを有することを特徴とする請求項5記載の圧縮画像デ
ータフォーマット変換装置。
7. The frequency component conversion means for converting the encoded image data block into a plurality of frequency components, the frequency component conversion based on an address obtained by the address obtaining means. 6. The apparatus according to claim 5, further comprising means for converting the image data converted by the means into another unit for each frequency component.
【請求項8】 前記アドレスを求める手段は、 1ブロックライン分の前記ブロックごとの圧縮画像デー
タのアドレスを求める手段を有し、 前記変換手段は、前記アドレスを求める手段により求め
られたアドレスに基づいて1ブロックライン分の圧縮画
像データを1ラインごとに順次RGB信号に変換する手
段を有することを特徴とする請求項5記載の圧縮画像デ
ータフォーマット変換装置。
8. The means for obtaining an address includes means for obtaining an address of compressed image data for each block corresponding to one block line, and the converting means based on the address obtained by the means for obtaining the address. 6. The compressed image data format converter according to claim 5, further comprising means for sequentially converting the compressed image data for one block line into RGB signals for each line.
JP8183594A 1996-07-12 1996-07-12 Method for converting compressed image data format and device therefor Pending JPH1028226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8183594A JPH1028226A (en) 1996-07-12 1996-07-12 Method for converting compressed image data format and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8183594A JPH1028226A (en) 1996-07-12 1996-07-12 Method for converting compressed image data format and device therefor

Publications (1)

Publication Number Publication Date
JPH1028226A true JPH1028226A (en) 1998-01-27

Family

ID=16138559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8183594A Pending JPH1028226A (en) 1996-07-12 1996-07-12 Method for converting compressed image data format and device therefor

Country Status (1)

Country Link
JP (1) JPH1028226A (en)

Similar Documents

Publication Publication Date Title
US6643408B2 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
JP3224926B2 (en) Quantization / inverse quantization circuit
JPH06237386A (en) Picture processing unit
KR100502413B1 (en) Image processing apparatus and method for converting image data between raster scan order and block scan order
US7542611B2 (en) Image processing apparatus and method for converting first code data sets into second code data for JPEG 2000 and motion JPEG 2000
US20050169540A1 (en) Method for compression and expansion of display data
US7738718B2 (en) Block decoding method and apparatus capable of decoding and outputting data in a longitudinal direction
JPH1075448A (en) Image compressor and image expander
JP2006203270A (en) Image compression method and device
JPH1028226A (en) Method for converting compressed image data format and device therefor
JP2002229759A (en) Code converting method for supporting image conversion
JP3260925B2 (en) Image processing device
JP3382358B2 (en) Image processing apparatus and method
JPH1169147A (en) Image size conversion method for orthogonal transformation coded image
JP2839392B2 (en) Image data restoration method and apparatus
JP2791410B2 (en) Compressed image data extraction device
JP2698034B2 (en) Code conversion method, code conversion system, and digital data signal processing method
JPH08204957A (en) Image processing method
JP3604708B2 (en) Image output device
JP3392949B2 (en) Image compression device and image decompression device
JP3075935B2 (en) Still image coding method
JP2937455B2 (en) Image data compression device and image data decompression device
JPH06291987A (en) Picture output device
JP2841643B2 (en) Image processing device
JPH0468772A (en) Picture data decoding device