JP2002252853A - Image processor, method, program and recording medium - Google Patents

Image processor, method, program and recording medium

Info

Publication number
JP2002252853A
JP2002252853A JP2001380508A JP2001380508A JP2002252853A JP 2002252853 A JP2002252853 A JP 2002252853A JP 2001380508 A JP2001380508 A JP 2001380508A JP 2001380508 A JP2001380508 A JP 2001380508A JP 2002252853 A JP2002252853 A JP 2002252853A
Authority
JP
Japan
Prior art keywords
header information
information processing
encoding
variable
processing unit
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
JP2001380508A
Other languages
Japanese (ja)
Inventor
Makoto Sato
佐藤  誠
Susumu Igarashi
進 五十嵐
Katsumi Otsuka
克己 大塚
Tetsuya Tateno
徹也 立野
Yukiro Chiba
幸郎 千葉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2001380508A priority Critical patent/JP2002252853A/en
Priority to EP01310499A priority patent/EP1217843B1/en
Priority to US10/021,247 priority patent/US6947602B2/en
Publication of JP2002252853A publication Critical patent/JP2002252853A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • 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

PROBLEM TO BE SOLVED: To avoid unwanted successive operations of a header information processor, without prolonging the total process time, after issuing an operation start instruction for a coding process, etc. to be applied to prescribed process units to a variable-length coder, etc., eliminate the interrupts during processings and suppress power consumption to a minimal level in the system. SOLUTION: According to the number of steps to be executed, a header information processor adaptively selects between an operation for immediately turning to a program stop state, after issuing an operation start instruction for a coding process, etc., to be applied to prescribed process units to a variable- length coder, etc., and an operation for turning to the program stop state, immediately after completing steps to be executed successively.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はデジタル画像信号あ
るいはデジタル・ビデオ信号を符号化データ列に圧縮符
号化して記録蓄積あるいは伝送するデジタル画像符号化
を行うための画像処理装置、方法又は記憶媒体、及び符
号化データ列を伸張復号化してデジタル画像信号あるい
はデジタル・ビデオ信号に再構成するデジタル画像復号
化を行うための画像処理装置、方法又は記憶媒体に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, method, or storage medium for performing digital image encoding for compressing and encoding a digital image signal or digital video signal into an encoded data sequence, and recording, storing, or transmitting the same. Further, the present invention relates to an image processing apparatus, method, or storage medium for performing digital image decoding in which an encoded data sequence is decompressed and reconstructed into a digital image signal or digital video signal.

【0002】[0002]

【従来の技術】多くのデジタル・カメラおよびデジタル
・ビデオ・カムコーダが商品化されている。それらの中
には撮影モードを切り替えることによって動画像を撮影
記録することができるデジタル・カメラ、あるいは撮影
モードを切り替えることによって静止画像を撮影記録す
ることができるデジタル・ビデオ・カムコーダのよう
に、複数の符号化方式の符号化処理手段および復号化処
理手段を備えるものがある。一般的に、符号化方式が異
なるとその符号化データ列のシンタックスも異なる。ま
た多くの符号化方式において、扱われる符号化データ
列、は可変長符号と固定長符号とが混在して構成されて
いる。
BACKGROUND OF THE INVENTION Many digital cameras and digital video camcorders have been commercialized. Some of them, such as a digital camera that can capture and record moving images by switching shooting modes, and a digital video camcorder that can capture and record still images by switching shooting modes. Some of the coding methods include an encoding processing means and a decoding processing means of the above-mentioned encoding method. In general, different encoding schemes have different syntaxes for the encoded data strings. In many coding systems, a coded data sequence to be handled is composed of a mixture of variable-length codes and fixed-length codes.

【0003】符号化データ列に含まれる情報は大きく2
つに分類される。そのひとつは、ビデオ・シーケンス全
体の共通符号化パラメータや、ピクチャ毎に異なる符号
化パラメータに代表される所謂ヘッダ情報であり、もう
ひとつは画像情報そのものである。前記ヘッダ情報は、
その一部が可変長符号語で構成されることもあるが、基
本的には連続する複数個の固定長符号で構成される。一
方の画像情報は、符号化データ列を構成する主要素であ
り、符号化効率を優先してそのほとんどが連続する複数
個の可変長符号で構成される。
[0003] The information contained in the encoded data string is roughly 2
Are classified into two types. One of them is so-called header information typified by common coding parameters of the entire video sequence or different coding parameters for each picture, and the other is image information itself. The header information includes:
Some of them are composed of variable-length codewords, but are basically composed of a plurality of continuous fixed-length codes. On the other hand, the image information is a main element constituting the coded data sequence, and is composed of a plurality of continuous variable length codes, most of which are contiguous with priority given to coding efficiency.

【0004】このような固定長符号と可変長符号とが混
在する一般的な符号化データ列を高速に処理(符号化処
理あるいは復号化処理)するためには、ヘッダ情報を扱
う専用の処理部と画像情報を扱う専用の処理部とをそれ
ぞれ個別に備え、これら2つの処理部を協働させて動作
させるといった構成をとる、符号化処理装置あるいは復
号化処理装置が知られている。
In order to process (encode or decode) a general coded data sequence in which fixed-length codes and variable-length codes are mixed, a dedicated processing unit that handles header information is used. 2. Description of the Related Art There is known an encoding processing device or a decoding processing device having a configuration in which a dedicated processing unit for handling image information and a dedicated processing unit for processing image information are separately provided, and these two processing units are operated in cooperation with each other.

【0005】このような装置では、例えば復号化処理を
行なう場合、ヘッダ情報処理部は可変長符号復号化部が
一連の直交変換係数シーケンスに対する復号化処理を行
なっている期間中であっても常に動作しており(その上
でプログラムが動作中であり)、少しでもヘッダ情報処
理部によって進めることができる処理を前もって行なう
ことにより、停止状態で待機させた場合と比較して、全
体の復号化処理にかかる時間を短縮を図っている。尚、
ここで直交変換とは周波数変換を意味する。これ以降も
同様である。
[0005] In such an apparatus, for example, when performing a decoding process, the header information processing unit always performs the decoding process even when the variable length code decoding unit is performing the decoding process on a series of orthogonal transform coefficient sequences. Operating (the program is running on it) and performing a process that can be advanced by the header information processing unit even a little in advance, so that the entire The time required for processing is reduced. still,
Here, the orthogonal transform means frequency transform. The same applies hereafter.

【0006】しかし、一般的に可変長符号専用復号化部
が処理単位である一連の直交変換係数シーケンスに対す
る復号化処理を行なっている期間中に、同時に動作する
ヘッダ情報処理部によって進めるべき処理あるいは進め
て意味のある処理はそう多くは無い。
However, in general, during the period when the decoding unit for variable-length codes is performing the decoding process on a series of orthogonal transform coefficient sequences as a processing unit, the processing to be advanced by the header information processing unit operating simultaneously or There aren't many processes that make sense.

【0007】その代表例である動きベクトルの再構築処
理に必要とされる演算はごくわずかの実行ステップ数で
済み、実際あらかじめプログラムによって指示された一
連の処理を終えたヘッダ情報処理部は、可変長符号復号
化部からの復号化処理の終了通知信号による割り込みを
待つだけのアイドル・ルーチンを繰り返し実行している
ことがほとんどである。
The operation required for the motion vector reconstruction process, which is a typical example, requires only a small number of execution steps, and the header information processing unit that has actually completed a series of processes specified in advance by the program is variable. In most cases, the idle routine that only waits for an interruption by a decoding process end notification signal from the long code decoding unit is repeatedly executed.

【0008】もちろんスライス・レイヤの境界のよう
に、現在復号化している処理単位がシンタックスの階層
的に特殊な位置にある場合や、あるいは符号化データ列
中で検出された符号誤りに対する各種補償動作に際して
はヘッダ情報処理部で必要とされる処理は比較的重い。
割り込み入力待ち状態で、アイドル・ルーチンに陥って
いるヘッダ情報処理部が消費する電力は、その復号化処
理装置を搭載するシステムが携帯性を重視する機器であ
るならば、あながち無視できるものではない。
[0008] Of course, when the processing unit currently being decoded is at a hierarchically special position in the syntax, such as at the boundary of a slice layer, or various compensations for a code error detected in an encoded data string. In operation, the processing required by the header information processing unit is relatively heavy.
The power consumed by the header information processing unit that is in the idle routine while waiting for an interrupt input is not negligible if the system equipped with the decoding processing device is a device that emphasizes portability. .

【0009】また一般に、ヘッダ情報処理部における割
り込み処理に際しては、割り込み処理ルーチンへ移行す
る際と元のルーチンに戻る際に、それぞれ所定数の実行
ステップが消費されてしまう。画像符号化処理装置ある
いは復号化処理装置のように単位時間あたりの割り込み
イベントの発生回数が相対的に多いシステムでは、この
割り込み処理に伴うオーバーヘッドの総計もまた無視で
きないものになる。
In general, in the interrupt processing in the header information processing unit, a predetermined number of execution steps are consumed when shifting to the interrupt processing routine and when returning to the original routine. In a system such as an image encoding processing apparatus or a decoding processing apparatus in which the number of occurrences of interrupt events per unit time is relatively large, the total overhead associated with the interrupt processing cannot be ignored.

【0010】[0010]

【発明が解決しようとする課題】よって、本出願が解決
しようとする課題は、可変長符号符号化部あるいは可変
長符号復号化部に向けて所定の処理単位に対する符号化
処理、あるいは復号化処理の動作開始指示を発行した後
のヘッダ情報処理部の不要な継続的動作を、全体的な処
理時間を延長すること無く回避するとともに、処理中の
割込みをなくし、かつ、システムとしての消費電力を最
小限に抑えることである。
SUMMARY OF THE INVENTION Accordingly, an object of the present application is to provide an encoding process or a decoding process for a predetermined processing unit to a variable length code encoding unit or a variable length code decoding unit. Unnecessary continuous operation of the header information processing unit after issuing the operation start instruction is avoided without extending the overall processing time, eliminating interruption during processing, and reducing power consumption as a system. Is to minimize it.

【0011】[0011]

【課題を解決するための手段】前記課題を解決するため
に以下の手段を提供する。可変長符号符号化部に向けて
所定の処理単位に対する符号化処理の動作開始指示を発
行した時点で、ヘッダ情報処理部は速やかにプログラム
停止状態に移行するか、引き続き処理すべき実行ステッ
プを完遂した時点で、プログラム停止状態に移行するか
を処理すべき実行ステップ数の多少に応じて適応的に選
択する手段を提供する。
The following means are provided to solve the above-mentioned problems. Upon issuing an instruction to start the encoding process for a predetermined processing unit to the variable-length encoding unit, the header information processing unit immediately shifts to the program stop state or completes the execution step to be processed continuously. At this point, there is provided means for adaptively selecting whether to shift to the program stopped state according to the number of execution steps to be processed.

【0012】さらに、可変長符号復号化部に向けて所定
の処理単位に対する復号化処理の動作開始指示を発行し
た時点で、ヘッダ情報処理部は速やかにプログラム停止
状態に移行するか、引き続き処理すべき実行ステップを
終えた時点で、プログラム停止状態に移行するかを、処
理すべき実行ステップ数の多少に応じて適応的に選択す
る手段を提供する。
Further, when an instruction to start the decoding process for a predetermined processing unit is issued to the variable length code decoding unit, the header information processing unit immediately shifts to the program stop state or continues processing. A means is provided for adaptively selecting whether to shift to the program halt state at the time of completion of the execution step to be performed in accordance with the number of execution steps to be processed.

【0013】[0013]

【発明の実施の形態】以下、本発明の実施形態を図面と
ともに説明する。図1は、本発明を適用した画像符号化
装置の実施形態を表わす機能ブロック図である。図1に
おいて、1はヘッダ情報処理部、2は可変長符号符号化
部、3は原画像データ入力信号、4は画像データ変換
部、5はメモリ、6は符号化パラメータ信号、7は符号
化データ列出力信号、8は動作開始指示信号、9は動作
終了通知信号である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a functional block diagram illustrating an embodiment of an image encoding device to which the present invention has been applied. In FIG. 1, 1 is a header information processing unit, 2 is a variable length coding unit, 3 is an original image data input signal, 4 is an image data conversion unit, 5 is a memory, 6 is a coding parameter signal, and 7 is coding. A data string output signal, 8 is an operation start instruction signal, and 9 is an operation end notification signal.

【0014】さらに図3は、図1に示した画像符号化装
置の実施形態におけるヘッダ情報処理部1および可変長
符号符号化部2に係わる動作手順を表わすタイム・チャ
ートである。また、図5は、同様に動作手順を表すフロ
ーチャートである。図6aは、本発明における符号化処
理のフローチャートである。
FIG. 3 is a time chart showing an operation procedure relating to the header information processing section 1 and the variable length coding section 2 in the embodiment of the image coding apparatus shown in FIG. FIG. 5 is a flowchart similarly showing the operation procedure. FIG. 6A is a flowchart of the encoding process according to the present invention.

【0015】以後上記画像符号化装置の実施形態におけ
る動作形態について、その圧縮符号化処理に係わる一連
の動作、特に ヘッダ情報処理部1と可変長符号符号化
部2との間での動作状態の切り替えタイミングを中心に
図1、図3、図5及び図6aを用いて説明する。
Hereinafter, regarding the operation mode of the embodiment of the image encoding apparatus, a series of operations relating to the compression encoding process, in particular, the operation state between the header information processing section 1 and the variable length encoding section 2 will be described. The switching timing will be mainly described with reference to FIGS. 1, 3, 5, and 6a.

【0016】原画像データ入力信号3を介して入力され
た原画像データ(S601)は、画像データ変換部4に
おいて所定の大きさの矩形ブロックに分割された後、そ
のブロック単位に直交変換演算が施され、演算結果とし
て得られた直交変換係数が所定の順序で一次元データ列
に配列される。その後、別途指定された量子化ステップ
値によってスカラー量子化がなされ、量子化後の直交変
換係数に対して0の値を持つ無意係数の連続数を表わす
ランレングスと、0以外の値を持つ有意な係数との組み
合わせで表現された一連の直交変換係数シーケンスに変
換される(S602)。
The original image data (S 601) input via the original image data input signal 3 is divided into rectangular blocks of a predetermined size by the image data conversion unit 4, and then an orthogonal transformation operation is performed on a block basis. The orthogonal transform coefficients obtained as a result of the calculation are arranged in a one-dimensional data sequence in a predetermined order. Thereafter, scalar quantization is performed according to a separately specified quantization step value, and a run length indicating a continuous number of insignificant coefficients having a value of 0 with respect to the orthogonal transform coefficient after quantization and a significant value having a value other than 0 are provided. The sequence is transformed into a series of orthogonal transform coefficient sequences represented by a combination with various coefficients (S602).

【0017】画像データ変換部4において生成された、
矩形ブロック単位の画像データを表現する一連の直交変
換係数シーケンスは、メモリ5に順次格納される。ま
た、同画像データ変換部4において画像データの変換処
理に使用された、量子化ステップ値に代表される符号化
パラメータは、別途符号化パラメータ信号6を介してヘ
ッダ情報処理部1によって順次読み出される。
The image data generated by the image data converter 4
A series of orthogonal transform coefficient sequences representing image data in units of rectangular blocks are sequentially stored in the memory 5. In addition, the encoding parameters represented by the quantization step values used for the image data conversion processing in the image data conversion unit 4 are sequentially read out by the header information processing unit 1 via the encoding parameter signal 6 separately. .

【0018】ヘッダ情報処理部1は内部のプログラムに
よって、同画像データ変換部4から符号化パラメータを
符号化パラメータ信号6を介して読み出して、符号化デ
ータ列に含まれるヘッダ情報を構築して、そのヘッダ情
報を符号化データ列出力信号7に出力する(t1 - t
2、S501、S603)。
The header information processing unit 1 reads out the encoding parameters from the image data conversion unit 4 via the encoding parameter signal 6 according to an internal program, and constructs header information included in the encoded data sequence. The header information is output to the encoded data string output signal 7 (t1-t
2, S501, S603).

【0019】出力符号化データ列で次に配置すべき符号
が、画像情報、即ち前記画像データ変換部4によって生
成された一連の直交変換係数シーケンスを符号化した、
連続する複数の可変長符号である場合には、ヘッダ情報
処理部1は可変長符号符号化部2に向けて所定の処理単
位(例えばマクロブロック)に対する符号化処理の動作
開始指示を発行する(t2、S502)。
The next code to be arranged in the output coded data sequence is obtained by coding image information, that is, a series of orthogonal transform coefficient sequences generated by the image data conversion unit 4.
If there are a plurality of continuous variable-length codes, the header information processing unit 1 issues an operation start instruction for the coding process for a predetermined processing unit (for example, a macroblock) to the variable-length code coding unit 2 ( t2, S502).

【0020】ヘッダ情報処理部1によって発行された符
号化処理の動作開始指示は専用の動作開始指示信号8に
よって可変長符号符号化部2に通知される(t2、S5
02)。
The operation start instruction of the encoding process issued by the header information processing unit 1 is notified to the variable length code encoding unit 2 by a dedicated operation start instruction signal 8 (t2, S5).
02).

【0021】可変長符号符号化部2は、動作開始指示信
号8によって符号化処理に対する動作の開始が指示され
ると、メモリ5から一連の直交変換係数シーケンスを順
次読み出し、それぞれの変換係数シーケンスに対して別
途設定された可変長符号テーブルを参照しながら対応す
る可変長符号に順次変換して(S604)、結果として
得られた連続する複数の可変長符号を符号化データ列出
力信号7に出力する(t2 - t4、S514、S60
5)。
When the operation start instruction signal 8 instructs the start of the operation for the encoding process, the variable-length code encoder 2 sequentially reads out a series of orthogonal transform coefficient sequences from the memory 5 and converts the sequence into orthogonal transform coefficient sequences. On the other hand, the data is sequentially converted into a corresponding variable length code while referring to a separately set variable length code table (S604), and a plurality of continuous variable length codes obtained as a result are output to the encoded data string output signal 7. (T2-t4, S514, S60
5).

【0022】変換した一連の直交変換係数シーケンスの
データ量が、処理単位に達したならば(S515)、可
変長符号符号化部2は、メモリ5からの直交変換係数シ
ーケンスの読出し動作を停止し、ヘッダ情報処理部1に
向けて処理単位の符号化処理が終了したことを通知すべ
く、動作終了通知信号9を出力する(t4、S51
6)。
When the data amount of the series of transformed orthogonal transform coefficient sequences reaches the processing unit (S515), the variable-length code encoder 2 stops reading the orthogonal transform coefficient sequence from the memory 5. Then, an operation end notification signal 9 is output to the header information processing unit 1 to notify the end of the encoding processing in the processing unit (t4, S51).
6).

【0023】一方、ヘッダ情報処理部1は、可変長符号
符号化部2に対して符号化処理の動作開始指示を発行し
た後、次の処理単位の符号化処理に必要とされる実行ス
テップを完遂したならば(S503、S504)、速や
かにプログラム停止状態に移行する命令を発行する(t
3、S505)。
On the other hand, the header information processing unit 1 issues an operation start instruction of the encoding process to the variable length encoding unit 2 and then executes the execution steps required for the encoding process of the next processing unit. Upon completion (S503, S504), an instruction to immediately shift to the program stop state is issued (t
3, S505).

【0024】プログラム停止状態は一般的にサスペンド
状態とも呼ばれる状態である。プログラム停止状態にあ
る時ヘッダ情報処理部1内のすべてのステートマシンは
停止し、外部から供給されている動作クロックもストッ
プしている状態である(S506)。よって、プログラ
ム停止状態にある時のヘッダ情報処理部1が消費する電
力はごく僅かである。
The program stop state is a state generally called a suspend state. When the program is in the stopped state, all the state machines in the header information processing unit 1 are stopped, and the operation clock supplied from the outside is also stopped (S506). Therefore, the power consumed by the header information processing unit 1 when the program is stopped is very small.

【0025】前記プログラム停止状態にあるヘッダ情報
処理部1は、外部から印加されるレジューム・イベント
入力によって再び通常のプログラム動作状態に復帰する
ことができる(S507)。本実施形態においては可変
長符号符号化部2が出力した動作終了通知信号9が、レ
ジューム・イベント入力信号のひとつとしてヘッダ情報
処理部1に接続されている。
The header information processing section 1 in the program stopped state can return to the normal program operation state again by the input of the resume event applied from the outside (S507). In the present embodiment, the operation end notification signal 9 output by the variable length code encoder 2 is connected to the header information processor 1 as one of the resume event input signals.

【0026】可変長符号符号化部2が、処理単位に対す
る符号化処理が終了したことを通知すべく、ヘッダ情報
処理部1に向けて発行した動作終了通知信号9が検知さ
れると(S507)、ヘッダ情報処理部1には動作クロ
ックが供給され、内部のステートマシンもその動作を開
始し、結果的に ヘッダ情報処理部1上でのプログラム
の動作が再開される(t4、S508)。
When the variable-length code encoder 2 detects the operation end notification signal 9 issued to the header information processor 1 in order to notify that the encoding process for the processing unit has been completed (S507). Then, the operation clock is supplied to the header information processing unit 1, and the internal state machine also starts its operation, and as a result, the operation of the program on the header information processing unit 1 is restarted (t4, S508).

【0027】再びそのプログラム動作を開始したヘッダ
情報処理部1は、次の処理単位に係わるヘッダ情報を構
築して、得られたヘッダ情報を符号化データ列出力信号
7に出力する(t4 - t5、S509、S501)。そ
の後、ヘッダ情報処理部1は可変長符号符号化部2に向
けて次の処理単位に対する符号化処理の動作開始指示を
発行する(t5、S502)。
The header information processing section 1, which has again started the program operation, constructs header information relating to the next processing unit and outputs the obtained header information to the encoded data string output signal 7 (t4-t5). , S509, S501). Thereafter, the header information processing unit 1 issues an operation start instruction of the encoding process for the next processing unit to the variable length encoding unit 2 (t5, S502).

【0028】ヘッダ情報処理部1が可変長符号符号化部
2に対して符号化処理の動作開始指示を発行した後(t
2、S502)、次の処理単位に対する符号化処理のた
めに必要とされる処理は通常わずかなものであるので、
ヘッダ情報処理部1はそう大きな時間差無くプログラム
停止状態に移行する(t3、S505、S506)。し
かし、次の処理単位がスライスの境界に位置するような
場合(MPEG符号化方式)、あるいは、リスタート・
インターバルの境界に位置するような場合(JPEG符
号化方式)のように、シンタックスの階層的に特殊な位
置にある場合は、次の処理単位に対する符号化処理のた
めに必要とされる実行ステップ数は比較的多い。
After the header information processing unit 1 issues an operation start instruction of the encoding process to the variable length code encoding unit 2 (t
2, S502), since the processing required for the encoding processing for the next processing unit is usually slight,
The header information processing unit 1 shifts to the program stop state without a large time difference (t3, S505, S506). However, when the next processing unit is located at the boundary of a slice (MPEG encoding method),
If the syntax is at a hierarchically special position, such as at the boundary of the interval (JPEG encoding method), the execution steps required for the encoding process for the next processing unit The number is relatively large.

【0029】図3ではこのような場合も図示している。
具体的には、MPEG符号化方式において、次の処理単
位がスライスの最終マクロブロックの場合に、ヘッダ情
報処理部1が可変長符号符号化部2に向けて次の処理単
位に対する符号化処理の動作開始指示を発行した時点
(t6)から、実際に ヘッダ情報処理部1がプログラム
停止状態に移行する命令を発行するまで(t7)の間隔
(t6 - t7)が、他の場合に比べて長いことを示して
いる。
FIG. 3 also illustrates such a case.
Specifically, in the MPEG encoding method, when the next processing unit is the last macroblock of the slice, the header information processing unit 1 sends the encoding process for the next processing unit to the variable-length code encoding unit 2. The interval (t6−t7) between the time when the operation start instruction is issued (t6) and the time when the header information processing unit 1 actually issues the instruction to shift to the program halt state (t7−t7) is longer than in other cases. It is shown that.

【0030】図4は、図1に示した画像符号化装置の実
施形態におけるヘッダ情報処理部1、および可変長符号
符号化部2の間での動作切り替え手順を表わすタイム・
チャートである。図4(a)は、可変長符号符号化部2
が処理単位に対する符号化処理の終了通知を発行した時
点(t11)において、ヘッダ情報処理部1が既にプロ
グラム停止状態に移行していた場合を示している(S5
07)。この場合は前述したように、ヘッダ情報処理部
1は動作終了通知信号9を検知すると速やかにプログラ
ム動作状態に復帰する(t11、S508)。
FIG. 4 is a time chart showing an operation switching procedure between the header information processing section 1 and the variable length coding section 2 in the embodiment of the picture coding apparatus shown in FIG.
It is a chart. FIG. 4A shows the variable length code encoding unit 2.
Shows that the header information processing unit 1 has already transitioned to the program stopped state at the time (t11) when the notification of the end of the encoding process for the processing unit is issued (S5).
07). In this case, as described above, upon detecting the operation end notification signal 9, the header information processing unit 1 immediately returns to the program operation state (t11, S508).

【0031】一方、図4(b)は、可変長符号符号化部
2が処理単位に対する符号化処理の終了通知を発行した
時点(t12)において、ヘッダ情報処理部1が引き続
きプログラム動作状態にあった場合を示している(S5
10)。この場合ヘッダ情報処理部1は、いずれ処理す
べき実行ステップを完遂した時点でプログラム停止状態
に移行する命令を発行するが(t13)、既にレジュー
ム・イベントが到着しているので(t12)、プログラ
ム停止状態には移行せずに、プログラム停止状態に移行
する命令に続く命令を引き続き実行する(S511、S
512、S509)。
On the other hand, FIG. 4B shows that the header information processing unit 1 is still in the program operating state at the time (t12) when the variable length coding unit 2 issues a notice of the end of the coding process for the processing unit. (S5)
10). In this case, the header information processing unit 1 issues an instruction to shift to the program halt state when the execution step to be processed is completed (t13), but since the resume event has already arrived (t12), The instruction following the instruction to shift to the program halt state is not executed without shifting to the halt state (S511, S51).
512, S509).

【0032】以上説明してきたように、画像符号化装置
の実施形態では、可変長符号符号化部2に向けて処理単
位に対する符号化処理の動作開始指示を発行したヘッダ
情報処理部1は、その後の処理時間を短縮する目的で、
次の処理単位の符号化処理に必要とされる実行ステップ
を引き続いて進めることができる。さらに上記必要とさ
れる実行ステップを完遂したならば、いつでも消費電力
の低減を図る目的でプログラム停止状態に移行すること
ができる。
As described above, in the embodiment of the image encoding apparatus, the header information processing unit 1 which has issued the instruction to start the encoding process for the processing unit to the variable length encoding unit 2 In order to shorten the processing time of
Execution steps required for the encoding process of the next processing unit can be continued. Further, when the above-described required execution steps are completed, the program can be shifted to the program stopped state at any time for the purpose of reducing power consumption.

【0033】また、プログラム停止状態に移行する時点
で既に可変長符号符号化部2による処理単位に対する符
号化処理が終了していれば、ヘッダ情報処理部1はプロ
グラム停止状態に移行せずに引き続きその上でプログラ
ムが実行されるので余分なオーバーヘッドは生じない。
If the coding process for the processing unit by the variable length coding unit 2 has already been completed at the time of transition to the program halt state, the header information processing unit 1 continues without shifting to the program halt state. Since the program is executed on it, no extra overhead is generated.

【0034】[第2の実施形態]図2は、本発明を適用し
た画像復号化装置の実施形態を表わす機能ブロック図で
ある。図2において、11はヘッダ情報処理部、12は
可変長符号復号化部、13は符号化データ列入力信号、
14はメモリ、15は画像データ再構成部、16は符号
化パラメータ信号、17は動作開始指示信号、18は動
作終了通知信号、19は再構成画像データ出力信号であ
る。
[Second Embodiment] FIG. 2 is a functional block diagram showing an embodiment of an image decoding apparatus to which the present invention is applied. In FIG. 2, 11 is a header information processing unit, 12 is a variable length code decoding unit, 13 is an encoded data string input signal,
14 is a memory, 15 is an image data reconstruction unit, 16 is an encoding parameter signal, 17 is an operation start instruction signal, 18 is an operation end notification signal, and 19 is a reconstructed image data output signal.

【0035】さらに図3は、図2に示した画像復号化装
置の実施形態におけるヘッダ情報処理部11および可変
長符号復号化部12に係わる動作手順を表わすタイム・
チャートである。また、図5は、同様に動作手順を表す
フローチャートである。図6bは、本発明における復号
化処理のフローチャートである。
FIG. 3 is a time chart showing an operation procedure relating to the header information processing section 11 and the variable length code decoding section 12 in the embodiment of the image decoding apparatus shown in FIG.
It is a chart. FIG. 5 is a flowchart similarly showing the operation procedure. FIG. 6B is a flowchart of the decoding process according to the present invention.

【0036】以後、上記画像復号化装置の実施形態にお
ける動作形態について、その伸張復号化処理に係わる一
連の動作、特にヘッダ情報処理部11と可変長符号復号
化部12との間での動作状態の切り替えタイミングを中
心に、図2、図3、図5及び図6bを用いて説明する。
Hereinafter, a series of operations relating to the decompression decoding process, particularly the operation state between the header information processing unit 11 and the variable length code decoding unit 12, will be described with respect to the operation mode in the embodiment of the image decoding apparatus. The switching timing will be mainly described with reference to FIGS. 2, 3, 5, and 6b.

【0037】符号化データ列入力信号13を介して入力
された符号化データ列(S606)は、ヘッダ情報処理
部11および可変長符号復号部12の両方にそれぞれ供
給される。ヘッダ情報処理部11は内部プログラムによ
って符号化データ列入力信号13から符号化データ列に
含まれるヘッダ情報を読み出して、その内容を解析して
得られた符号化パラメータを符号化パラメータ信号16
を介して画像データ再構成部15に出力する(t1 - t
2、S501、S607)。
The coded data sequence (S606) input via the coded data sequence input signal 13 is supplied to both the header information processing unit 11 and the variable length code decoding unit 12, respectively. The header information processing unit 11 reads out header information included in the encoded data sequence from the encoded data sequence input signal 13 by an internal program, and analyzes the contents thereof to convert the encoding parameters into encoding parameter signals 16.
Is output to the image data reconstructing unit 15 via (t1-t)
2, S501, S607).

【0038】入力符号化データ列で次に続く符号が画像
情報、すなわち一連の直交変換係数シーケンスを符号化
処理した連続する複数の可変長符号である場合には、ヘ
ッダ情報処理部11は可変長符号復号化部12に向けて
所定の処理単位(例えばマクロブロック)に対する復号
化処理の動作開始指示を発行する(t2、S502)。
If the next code in the input coded data sequence is image information, that is, a plurality of continuous variable length codes obtained by encoding a series of orthogonal transform coefficient sequences, the header information processing section 11 An instruction to start a decoding process for a predetermined processing unit (for example, a macroblock) is issued to the code decoding unit 12 (t2, S502).

【0039】ヘッダ情報処理部11によって発行された
復号化処理の動作開始指示は専用の動作開始指示信号1
7によって可変長符号復号化部12に通知される(t
2、S502)。
The operation start instruction of the decoding process issued by the header information processing unit 11 is a dedicated operation start instruction signal 1
7 to the variable-length code decoding unit 12 (t
2, S502).

【0040】可変長符号復号化部12は、動作開始指示
信号17によって復号化処理に対する動作の開始が指示
されると、符号化データ列入力信号13から連続する複
数の可変長符号を順次読み出し、それぞれの可変長符号
に対して別途設定された可変長符号テーブルを参照しな
がら対応する直交変換係数シーケンスに順次変換して
(S607)、結果として得られた一連の直交変換係数
シーケンスをメモリ14に出力する(t2 - t4、S5
14、S608)。
When the operation start instruction signal 17 indicates that the operation for the decoding process is to be started, the variable length code decoding section 12 sequentially reads a plurality of continuous variable length codes from the coded data string input signal 13. Each variable-length code is sequentially converted into a corresponding orthogonal transform coefficient sequence while referring to a variable-length code table separately set (S607), and a series of orthogonal transform coefficient sequences obtained as a result is stored in the memory 14. Output (t2-t4, S5
14, S608).

【0041】メモリ5に格納された矩形ブロック単位の
画像データを表現する、一連の直交変換係数シーケンス
が、画像データ再構成部15によって順次読み出され
る。また、画像データの変換処理に使用された、量子化
ステップ値に代表される符号化パラメータは、別途符号
化パラメータ信号16を介して ヘッダ情報処理部11
から同画像データ再構成部15に順次供給される。
A series of orthogonal transformation coefficient sequences representing the image data in a rectangular block unit stored in the memory 5 are sequentially read out by the image data reconstructing unit 15. Further, the encoding parameter represented by the quantization step value used in the image data conversion processing is separately transmitted to the header information processing unit 11 through the encoding parameter signal 16.
Are sequentially supplied to the same image data reconstruction unit 15.

【0042】メモリ5から読み出された一連の直交変換
係数シーケンスに含まれる有意係数に対して、別途指定
された量子化ステップ値によってスカラー逆量子化がな
され、所定の順序で一次元データ列に配列されていた直
交変換係数が再び二次元配列に戻された後、そのブロッ
ク単位に直交逆変換演算が施され、矩形ブロックの再構
成画像データに復元され(S609)、最終的に再構成
された画像データが再構成画像データ出力信号19を介
して出力される(S610)。
The significant coefficients included in the series of orthogonal transform coefficients read from the memory 5 are subjected to scalar inverse quantization by a separately specified quantization step value, and are converted into a one-dimensional data sequence in a predetermined order. After the arranged orthogonal transform coefficients are returned to the two-dimensional array again, an orthogonal inverse transform operation is performed for each block unit to restore the reconstructed image data of the rectangular block (S609) and finally reconstructed. The output image data is output via the reconstructed image data output signal 19 (S610).

【0043】変換した一連の直交変換係数シーケンスの
データ量が、処理単位に達したならば(S515)、可
変長符号復号化部12は、符号化データ列入力信号13
からの可変長符号の読出し動作を停止し、ヘッダ情報処
理部11に向けて処理単位の復号化処理が終了したこと
を通知すべく、動作終了通知信号18を出力する(t
4、S516)。
When the data amount of the series of transformed orthogonal transform coefficient sequences reaches the processing unit (S515), the variable-length code decoding unit 12 outputs the coded data sequence input signal 13
To stop the operation of reading the variable-length code from, and outputs an operation end notification signal 18 to the header information processing unit 11 to notify the end of the decoding processing in the processing unit (t
4, S516).

【0044】一方、ヘッダ情報処理部11は、可変長符
号復号化部12に対して復号化処理の動作開始指示を発
行した後、次の処理単位の復号化処理に必要とされる実
行ステップを完遂したならば(S503、S504)、
速やかにプログラム停止状態に移行する命令を発行する
(t3、S505)。
On the other hand, after issuing an operation start instruction of the decoding process to the variable length code decoding unit 12, the header information processing unit 11 executes an execution step required for the decoding process of the next processing unit. If completed (S503, S504),
An instruction to immediately shift to the program stop state is issued (t3, S505).

【0045】プログラム停止状態は一般的にサスペンド
状態とも呼ばれる状態である。プログラム停止状態にあ
る時 ヘッダ情報処理部11内のすべてのステートマシ
ンは停止し、外部から供給されている動作クロックもス
トップしている状態である(S506)。プログラム停
止状態にある時のヘッダ情報処理部11が消費する電力
はごく僅かである。
The program stop state is a state generally called a suspend state. When the program is stopped, all the state machines in the header information processing unit 11 are stopped, and the operation clock supplied from the outside is also stopped (S506). The power consumed by the header information processing unit 11 in the program stop state is very small.

【0046】前記プログラム停止状態にあるヘッダ情報
処理部11は、外部から印加されるレジューム・イベン
ト入力によって再び通常のプログラム動作状態に復帰す
ることができる。本実施形態においては、可変長符号復
号化部12が出力した動作終了通知信号18が、レジュ
ーム・イベント入力信号のひとつとしてヘッダ情報処理
部11に接続されている。
The header information processing section 11 in the program stopped state can return to the normal program operation state again by the input of a resume event applied from the outside. In the present embodiment, the operation end notification signal 18 output from the variable length code decoding unit 12 is connected to the header information processing unit 11 as one of the resume event input signals.

【0047】可変長符号復号化部12が、処理単位に対
する復号化処理が終了したことを通知すべく、ヘッダ情
報処理部11に向けて発行した動作終了通知信号18が
検知されると(S507)、ヘッダ情報処理部11には
動作クロックが供給され、内部のステートマシンもその
動作を開始し、結果的に ヘッダ情報処理部11上での
プログラムの動作が再開される(t4、S508)。
When the variable-length code decoding unit 12 detects the operation end notification signal 18 issued to the header information processing unit 11 to notify that the decoding process for the processing unit has ended (S507). Then, the operation clock is supplied to the header information processing unit 11, and the internal state machine also starts its operation, and as a result, the operation of the program on the header information processing unit 11 is restarted (t4, S508).

【0048】再びそのプログラム動作を開始したヘッダ
情報処理部11は、符号化データ列入力信号13から続
くヘッダ情報を読み出して、次の処理単位に係わる符号
化パラメータを符号化パラメータ信号16に出力する
(t4 - t5、S509、S501)。その後、ヘッダ
情報処理部11は可変長符号復号化部12に向けて次の
処理単位に対する復号化処理の動作開始指示を発行する
(t5、S502)。
The header information processing section 11, which has started the program operation again, reads the following header information from the coded data string input signal 13, and outputs a coding parameter relating to the next processing unit to a coding parameter signal 16. (T4-t5, S509, S501). Thereafter, the header information processing unit 11 issues an instruction to start the decoding process for the next processing unit to the variable length code decoding unit 12 (t5, S502).

【0049】ヘッダ情報処理部11が可変長符号復号化
部12に対して復号化処理の動作開始指示を発行した後
(t2、S502)、次の処理単位に対する復号化処理
のために必要とされる処理は、通常わずかなものである
ので、ヘッダ情報処理部11はそう大きな時間差無くプ
ログラム停止状態に移行する(t3、S505、S50
6)。しかし、次の処理単位がスライスの境界に位置す
るような場合(MPEG符号化方式)、あるいはリスタ
ート・インターバルの境界に位置するような場合(JP
EG符号化方式)のように、シンタックスの階層的に特
殊な位置にある場合や、あるいは符号化データ列中で検
出された符号誤りに対する各種補償動作が必要な場合
は、次の処理単位に対する復号化処理のために必要とさ
れる実行ステップ数は比較的多い。
After the header information processing section 11 issues an instruction to start the operation of the decoding process to the variable length code decoding section 12 (t2, S502), it is necessary for the decoding process for the next processing unit. Since the processing is usually slight, the header information processing unit 11 shifts to the program stopped state without a large time difference (t3, S505, S50).
6). However, when the next processing unit is located at the boundary of the slice (MPEG coding method) or when it is located at the boundary of the restart interval (JP
EG coding method), or when various kinds of compensation operations for code errors detected in a coded data sequence are required, or when the The number of execution steps required for the decoding process is relatively large.

【0050】図3ではこのような場合も図示している。
具体的にはMPEG符号化方式において、次の処理単位
がスライスの最終マクロブロックの場合に、ヘッダ情報
処理部11が可変長符号復号化部12に向けて次の処理
単位に対する復号化処理の動作開始指示を発行した時点
(t6)から、実際にヘッダ情報処理部11がプログラ
ム停止状態に移行する命令を発行するまで(t7)の間
隔(t6 - t7)が、他の場合に比べて長いことを示し
ている。
FIG. 3 also illustrates such a case.
Specifically, in the MPEG encoding method, when the next processing unit is the last macroblock of the slice, the header information processing unit 11 directs the variable-length code decoding unit 12 to perform the decoding process on the next processing unit. The interval (t6−t7) between the time when the start instruction is issued (t6) and the time when the header information processing unit 11 actually issues the instruction to shift to the program stop state (t7−t7) is longer than in other cases. Is shown.

【0051】図4は、図2に示した画像復号化装置の実
施形態におけるヘッダ情報処理部11、および可変長符
号復号化部12の間での動作切り替え手順を表わすタイ
ム・チャートである。図4(a)は、可変長符号復号化
部12が、処理単位に対する復号化処理の終了通知を発
行した時点(t11)において、ヘッダ情報処理部11
が既にプログラム停止状態に移行していた場合を示して
いる(S507)。この場合は前記説明したように、ヘ
ッダ情報処理部11は動作終了通知信号18を検知する
と速やかにプログラム動作状態に復帰する(t11、S
508)。
FIG. 4 is a time chart showing an operation switching procedure between the header information processing section 11 and the variable length code decoding section 12 in the embodiment of the image decoding apparatus shown in FIG. FIG. 4A shows the header information processing unit 11 at the time (t11) at which the variable length code decoding unit 12 issues a decoding process end notification for a processing unit.
Indicates that the program has already shifted to the program stopped state (S507). In this case, as described above, upon detecting the operation end notification signal 18, the header information processing unit 11 quickly returns to the program operation state (t11, S
508).

【0052】一方、図4(b)は、可変長符号復号化部
12が処理単位に対する復号化処理の終了通知を発行し
た時点(t12)において、ヘッダ情報処理部11が引
き続きプログラム動作状態にあった場合を示している
(S510)。この場合ヘッダ情報処理部11は、いず
れ処理すべき実行ステップを完遂した時点で、プログラ
ム停止状態に移行する命令を発行するが(t13)、既
にレジューム・イベントが到着しているので(t1
2)、プログラム停止状態には移行せずに、プログラム
停止状態に移行する命令に続く命令を引き続き実行する
(S511、S512、S509)。
On the other hand, FIG. 4B shows that the header information processing unit 11 is still in the program operation state at the time (t12) when the variable length code decoding unit 12 issues a decoding process end notification for the processing unit. This is the case (S510). In this case, the header information processing unit 11 issues an instruction to shift to the program halt state at the time of completing the execution step to be processed (t13), but since the resume event has already arrived (t1).
2) The instruction following the instruction to shift to the program halt state is executed continuously without shifting to the program halt state (S511, S512, S509).

【0053】以上説明してきたように、画像復号化装置
の実施形態では、可変長符号復号化部12に向けて処理
単位に対する復号化処理の動作開始指示を発行したヘッ
ダ情報処理部11は、その後処理時間を短縮する目的で
次の処理単位の復号化処理に必要とされる実行ステップ
を引き続いて進めることができる。さらに上記必要とさ
れる実行ステップを完遂したならば、いつでも消費電力
の低減を図る目的でプログラム停止状態に移行すること
ができる。
As described above, in the embodiment of the image decoding apparatus, the header information processing unit 11 that has issued the instruction to start the decoding process for the processing unit to the variable length code decoding unit 12 For the purpose of reducing the processing time, the execution steps required for the decoding processing of the next processing unit can be continued. Further, when the above-described required execution steps are completed, the program can be shifted to the program stopped state at any time for the purpose of reducing power consumption.

【0054】また、プログラム停止状態に移行する時点
で既に可変長符号復号化部12による処理単位に対する
復号化処理が終了していれば、ヘッダ情報処理部11は
プログラム停止状態に移行せずに引き続きその上でプロ
グラムが実行されるので余分なオーバーヘッドは生じな
い。
If the decoding process for the processing unit by the variable-length code decoding unit 12 has already been completed at the time of transition to the program stop state, the header information processing unit 11 continues without shifting to the program stop state. Since the program is executed on it, no extra overhead is generated.

【0055】[他の実施形態]なお、本発明は、複数の機
器(例えばホストコンピュータ、インタフェイス機器、
リーダ、プリンタなど)から構成されるシステムに適用
しても、一つの機器からなる装置(例えば、複写機、フ
ァクシミリ装置など)に適用してもよい。
[Other Embodiments] In the present invention, a plurality of devices (for example, a host computer, an interface device,
The present invention may be applied to a system including a reader, a printer, or the like, or may be applied to an apparatus (for example, a copying machine, a facsimile machine, or the like) including one device.

【0056】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体(または記録媒体)を、システムあるい
は装置に供給し、そのシステムあるいは装置のコンピュ
ータ(またはCPUやMPU)が記憶媒体に格納された
プログラムコードを読み出し実行することによっても、
達成されることは言うまでもない。この場合、記憶媒体
から読み出されたプログラムコード自体が前述した実施
形態の機能を実現することになり、そのプログラムコー
ドを記憶した記憶媒体は本発明を構成することになる。
また、コンピュータが読み出したプログラムコードを実
行することにより、前述した実施形態の機能が実現され
るだけでなく、そのプログラムコードの指示に基づき、
コンピュータ上で稼働しているオペレーティングシステ
ム(OS)などが実際の処理の一部または全部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
Further, an object of the present invention is to supply a storage medium (or a recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or an apparatus, and to provide a computer (a computer) of the system or the apparatus. Or a CPU or MPU) reads out and executes the program code stored in the storage medium,
It goes without saying that this is achieved. In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
In addition, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also based on the instructions of the program code,
The operating system (OS) running on the computer performs part or all of the actual processing,
It goes without saying that a case where the function of the above-described embodiment is realized by the processing is also included.

【0057】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張カー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書込まれた後、そのプログラムコードの指示
に基づき、その機能拡張カードや機能拡張ユニットに備
わるCPUなどが実際の処理の一部または全部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written in the memory provided in the function expansion card inserted into the computer or the function expansion unit connected to the computer, the program code is read based on the instruction of the program code. , The CPU provided in the function expansion card or the function expansion unit performs part or all of the actual processing,
It goes without saying that a case where the function of the above-described embodiment is realized by the processing is also included.

【0058】[0058]

【発明の効果】以上述べてきたように、本発明において
は、固定長符号と可変長符号とが混在する一般的な符号
化データ列を高速に処理(符号化処理あるいは復号化処
理)するために、ヘッダ情報を扱う専用の処理部(ヘッ
ダ情報処理部1およびヘッダ情報処理部11)と、画像
情報を扱う専用の処理部(可変長符号符号化部2および
可変長符号復号化部12)とを協働させて動作させる構
成において、必要に応じて2つの専用処理部を同時に動
作させることも、またヘッダ情報を扱う専用の処理部を
停止状態に移行させて消費電力を抑えることも適応的に
自由に選択可能である。
As described above, according to the present invention, a general encoded data sequence in which fixed-length codes and variable-length codes are mixed is processed at high speed (encoding processing or decoding processing). In addition, a dedicated processing unit for handling header information (header information processing unit 1 and header information processing unit 11) and a dedicated processing unit for handling image information (variable length code encoding unit 2 and variable length code decoding unit 12) In this configuration, two dedicated processing units can be operated at the same time, if necessary, or the dedicated processing unit that handles header information can be switched to a stopped state to reduce power consumption. Can be freely selected.

【0059】また、割込み動作が排除されるので、不要
なオーバーヘッドが無くなり、処理の効率化が図れる。
Further, since the interrupt operation is eliminated, unnecessary overhead is eliminated, and the processing efficiency can be improved.

【0060】そのため、システムの中において本発明を
適用した符号化処理装置および復号化処理装置は柔軟に
動作することができるので、高い処理性能が要求される
システムあるいは低消費電力を要求されるようなシステ
ムのいずれに対してもその要求を満たすことが可能とな
る。
Therefore, the encoding processing apparatus and the decoding processing apparatus to which the present invention is applied in the system can operate flexibly, so that a system requiring high processing performance or low power consumption is required. The requirements can be satisfied for any of the simple systems.

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

【図1】本発明を適用した画像符号化装置の実施形態を
表わす機能ブロック図である。
FIG. 1 is a functional block diagram illustrating an embodiment of an image encoding device to which the present invention has been applied.

【図2】本発明を適用した画像復号化装置の実施形態を
表わす機能ブロック図である。
FIG. 2 is a functional block diagram illustrating an embodiment of an image decoding device to which the present invention has been applied.

【図3】本発明の画像符号化装置および画像復号化装置
における動作形態を表わす第1のタイムチャートであ
る。
FIG. 3 is a first time chart showing an operation mode in the image encoding device and the image decoding device of the present invention.

【図4a】本発明の画像符号化装置および画像復号化装
置における動作形態を示す第2のタイムチャートであ
る。
FIG. 4a is a second time chart showing an operation mode in the image encoding device and the image decoding device of the present invention.

【図4b】本発明の画像符号化装置および画像復号化装
置における動作形態を示す第3のタイムチャートであ
る。
FIG. 4B is a third time chart illustrating an operation mode in the image encoding device and the image decoding device according to the present invention.

【図5】本発明の画像符号化、復号化処理の流れを示し
たフローチャートである。
FIG. 5 is a flowchart showing a flow of image encoding and decoding processing of the present invention.

【図6a】本発明における符号化処理のフローチャート
である。
FIG. 6A is a flowchart of an encoding process according to the present invention.

【図6b】本発明における復号化処理のフローチャート
である。
FIG. 6b is a flowchart of a decoding process according to the present invention.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 大塚 克己 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 立野 徹也 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 千葉 幸郎 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 Fターム(参考) 5C053 FA27 GB37 JA30 KA03 KA30 LA01 LA03 LA11 LA15 5C059 KK49 MA21 MC38 ME01 RC24 SS06 SS11 SS20 TA01 TB07 TC10 UA02 UA04 UA05 5C078 AA04 BA53 CA31 DA01 5J064 AA02 AA04 BA09 BA16 BC01 BD03 BD04  ────────────────────────────────────────────────── ─── Continued on the front page (72) Katsumi Otsuka, Inventor 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc. (72) Inventor Tetsuya Tateno 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon (72) Inventor Yukio Chiba 3-30-2 Shimomaruko, Ota-ku, Tokyo F-term (reference) 5C053 FA27 GB37 JA30 KA03 KA30 LA01 LA03 LA11 LA15 5C059 KK49 MA21 MC38 ME01 RC24 SS06 SS11 SS20 TA01 TB07 TC10 UA02 UA04 UA05 5C078 AA04 BA53 CA31 DA01 5J064 AA02 AA04 BA09 BA16 BC01 BD03 BD04

Claims (17)

【特許請求の範囲】[Claims] 【請求項1】 入力原画像データから符号化パラメータ
と一連の直交変換係数シーケンスとを生成する画像デー
タ変換部と、前記符号化パラメータを基に符号化データ
列に含まれるヘッダ情報を構築するヘッダ情報処理部
と、前記一連の直交変換係数シーケンスを順次符号化し
て符号化データ列に含まれる連続する複数の可変長符号
からなる画像情報を生成する可変長符号符号化部を備え
る画像処理装置であって、 前記ヘッダ情報処理部から前記可変長符号符号化部に向
けて連続する複数の可変長符号に対する符号化処理の動
作開始指示を行なう指示手段と、 前記可変長符号符号化部から前記ヘッダ情報処理部に向
けて一連の直交変換係数シーケンスに対する符号化処理
の動作終了を通知する通知手段と、 前記符号化処理の動作開始指示を行なった後前記ヘッダ
情報処理部を任意のタイミングで動作停止状態に移行す
るように制御する第一の制御手段と、 動作停止状態にあるヘッダ情報処理部が前記符号化処理
の動作終了通知を受けて再び動作状態に戻るように制御
する第二の制御手段と、を備えることを特徴とする画像
処理装置。
1. An image data conversion unit for generating an encoding parameter and a series of orthogonal transformation coefficient sequences from input original image data, and a header for constructing header information included in an encoded data sequence based on the encoding parameter. An image processing apparatus including an information processing unit and a variable length code encoding unit that sequentially encodes the series of orthogonal transform coefficient sequences and generates image information including a plurality of continuous variable length codes included in an encoded data sequence. Instruction means for instructing a start of an encoding process for a plurality of continuous variable-length codes from the header information processing unit to the variable-length code encoding unit; and Notifying means for notifying the information processing unit of the end of the encoding process for the series of orthogonal transform coefficient sequences, and issuing an instruction to start the encoding process. The first control means controls the header information processing unit to shift to the operation stop state at an arbitrary timing after the operation, and the header information processing unit in the operation stop state receives the operation end notification of the encoding process. And a second control means for controlling to return to the operation state again.
【請求項2】 前記第一の制御手段が、前記ヘッダ情報
処理部が動作停止状態に移行する以前に、前記符号化処
理の動作終了通知が到着していた場合は、動作停止状態
に移行せず、動作を継続させることをさらに特徴とする
請求項1に記載の画像処理装置。
2. The method according to claim 1, wherein the first control means shifts to an operation stop state when the operation end notification of the encoding process arrives before the header information processing section shifts to an operation stop state. The image processing apparatus according to claim 1, wherein the operation is continued.
【請求項3】 前記ヘッダ情報処理部が動作停止状態に
ある場合は、前記ヘッダ情報処理部の内部のステートマ
シンが停止し、外部からのクロック供給が停止している
ことを特徴とする請求項1又は請求項2に記載の画像処
理装置。
3. When the header information processing unit is in an operation stop state, a state machine inside the header information processing unit is stopped and a clock supply from outside is stopped. The image processing device according to claim 1.
【請求項4】 入力符号化データ列のヘッダ情報を解析
して符号化パラメータを得るヘッダ情報処理部と、入力
符号化データ列の連続する複数の可変長符号からなる画
像情報を順次復号化して処理単位である一連の直交変換
係数シーケンスを得る可変長符号復号化部と、前記符号
化パラメータと前記一連の直交変換係数シーケンスを基
に画像データを再構成する画像データ再構成部を備える
画像処理装置において、 前記ヘッダ情報処理部から前記可変長符号復号化部に向
けて連続する複数の可変長符号に対する復号化処理の動
作開始指示を行なう指示手段と、 前記可変長符号復号化部から前記ヘッダ情報処理部に向
けて処理単位である一連の直交変換係数シーケンスに対
する復号化処理の動作終了通知を行なう通知手段と、 前記復号化処理の動作開始指示を行なった後、前記ヘッ
ダ情報処理部を任意のタイミングで動作停止状態に移行
させる第一の制御手段と、 動作停止状態にあるヘッダ情報処理部を前記復号化処理
の動作終了通知を受けて再び動作状態に戻す第二の制御
手段と、を備えることを特徴とする画像処理装置。
4. A header information processing section for analyzing header information of an input encoded data sequence to obtain an encoding parameter, and sequentially decoding image information comprising a plurality of continuous variable length codes of the input encoded data sequence. Image processing comprising a variable-length code decoding unit for obtaining a series of orthogonal transform coefficient sequences as a processing unit, and an image data reconstructing unit for reconstructing image data based on the encoding parameters and the series of orthogonal transform coefficient sequences In the apparatus, instructing means for instructing an operation start of a decoding process for a plurality of continuous variable-length codes from the header information processing unit to the variable-length code decoding unit, and the header from the variable-length code decoding unit A notifying unit for notifying the information processing unit of an operation end of a decoding process for a series of orthogonal transform coefficient sequences as a processing unit; After giving an operation start instruction, the first control means for shifting the header information processing unit to the operation stop state at an arbitrary timing, and the header information processing unit in the operation stop state sends the operation end notification of the decoding process to the header information processing unit. An image processing apparatus comprising: a second control unit that receives and returns to an operation state again.
【請求項5】 前記第一の制御手段が、前記ヘッダ情報
処理部が動作停止状態に移行する以前に前記復号化処理
の動作終了通知が到着していた場合は、動作停止状態に
移行せず、動作を継続させることを特徴とする請求項4
に記載の画像処理装置。
5. The method according to claim 1, wherein the first control means does not shift to the operation stop state if the operation end notification of the decoding process arrives before the header information processing unit shifts to the operation stop state. The operation is continued.
An image processing apparatus according to claim 1.
【請求項6】 前記ヘッダ情報処理部が動作停止状態に
ある場合は、前記ヘッダ情報処理部の内部のステートマ
シンが停止し、外部からのクロック供給が停止している
ことを特徴とする請求項4又は請求項5に記載の画像処
理装置。
6. When the header information processing unit is in an operation stop state, a state machine inside the header information processing unit is stopped and an external clock supply is stopped. An image processing apparatus according to claim 4 or claim 5.
【請求項7】 入力原画像データから符号化パラメータ
と一連の直交変換係数シーケンスとを生成する画像デー
タ変換工程と、前記符号化パラメータを基に符号化デー
タ列に含まれるヘッダ情報を構築するヘッダ情報処理工
程と、前記一連の直交変換係数シーケンスを順次符号化
して符号化データ列に含まれる連続する複数の可変長符
号からなる画像情報を生成する可変長符号符号化工程を
備える画像処理方法であって、 前記ヘッダ情報処理工程から前記可変長符号符号化工程
に向けて連続する複数の可変長符号に対する符号化処理
の動作開始指示を行なう指示工程と、 前記可変長符号符号化工程から前記ヘッダ情報処理工程
に向けて一連の直交変換係数シーケンスに対する符号化
処理の動作終了を通知する通知工程と、 前記符号化処理の動作開始指示を行なった後前記ヘッダ
情報処理工程を任意のタイミングで動作停止状態に移行
するように制御する第一の制御工程と、 動作停止状態にあるヘッダ情報処理工程が前記符号化処
理の動作終了通知を受けて再び動作状態に戻るように制
御する第二の制御工程と、を備えることを特徴とする画
像処理方法。
7. An image data conversion step of generating an encoding parameter and a series of orthogonal transformation coefficient sequences from input original image data, and a header for constructing header information included in an encoded data sequence based on the encoding parameter. An image processing method comprising: an information processing step; and a variable-length code encoding step of sequentially encoding the series of orthogonal transform coefficient sequences to generate image information including a plurality of continuous variable-length codes included in an encoded data sequence. An instruction step of instructing an operation start of an encoding process for a plurality of continuous variable-length codes from the header information processing step toward the variable-length code encoding step; and A notification step of notifying the end of the encoding process for the series of orthogonal transform coefficient sequences toward the information processing step; A first control step of controlling the header information processing step to shift to an operation stop state at an arbitrary timing after giving an operation start instruction; and a header information processing step in an operation stop state, the operation of the encoding processing. A second control step of controlling to return to the operation state upon receiving the end notification.
【請求項8】 前記第一の制御工程が、前記ヘッダ情報
処理工程が動作停止状態に移行する以前に、前記符号化
処理の動作終了通知が到着していた場合は、動作停止状
態に移行せず、動作を継続させることをさらに特徴とす
る請求項7に記載の画像処理方法。
8. The first control step shifts to an operation stop state if an operation end notification of the encoding process arrives before the header information processing step shifts to an operation stop state. The image processing method according to claim 7, further comprising: continuing the operation.
【請求項9】 前記ヘッダ情報処理工程が動作停止状態
にある場合は、前記ヘッダ情報処理工程の内部のステー
トマシンが停止し、外部からのクロック供給が停止して
いることを特徴とする請求項7又は請求項8に記載の画
像処理方法。
9. When the header information processing step is in an operation stop state, an internal state machine of the header information processing step is stopped and an external clock supply is stopped. An image processing method according to claim 7 or claim 8.
【請求項10】 入力符号化データ列のヘッダ情報を解
析して符号化パラメータを得るヘッダ情報処理工程と、
入力符号化データ列の連続する複数の可変長符号からな
る画像情報を順次復号化して処理単位である一連の直交
変換係数シーケンスを得る可変長符号復号化工程と、前
記符号化パラメータと前記一連の直交変換係数シーケン
スを基に画像データを再構成する画像データ再構成工程
を備える画像処理方法であって、 前記ヘッダ情報処理工程から前記可変長符号復号化工程
に向けて連続する複数の可変長符号に対する復号化処理
の動作開始指示を行なう指示工程と、 前記可変長符号復号化工程から前記ヘッダ情報処理工程
に向けて処理単位である一連の直交変換係数シーケンス
に対する復号化処理の動作終了通知を行なう通知工程
と、 前記復号化処理の動作開始指示を行なった後、前記ヘッ
ダ情報処理工程を任意のタイミングで動作停止状態に移
行させる第一の制御工程と、 動作停止状態にあるヘッダ情報処理工程を前記復号化処
理の動作終了通知を受けて再び動作状態に戻す第二の制
御工程と、を備えることを特徴とする画像処理方法。
10. A header information processing step of analyzing header information of an input encoded data sequence to obtain an encoding parameter,
A variable-length code decoding step of sequentially decoding image information consisting of a plurality of continuous variable-length codes of an input coded data sequence to obtain a series of orthogonal transform coefficient sequences as a processing unit; and An image processing method comprising an image data reconstructing step of reconstructing image data based on an orthogonal transform coefficient sequence, wherein a plurality of variable-length codes continuous from the header information processing step to the variable-length code decoding step An instruction step of instructing a start of a decoding process for the sequence, and a notification of an end of the decoding process operation for a series of orthogonal transform coefficient sequences as a processing unit from the variable length code decoding step to the header information processing step. A notification step, and after giving an instruction to start the operation of the decryption processing, the header information processing step is brought into an operation stop state at an arbitrary timing. An image characterized by comprising: a first control step of causing a header information processing step in an operation stop state to return to an operation state again upon receiving an operation end notification of the decoding processing. Processing method.
【請求項11】 前記第一の制御工程が、前記ヘッダ情
報処理工程が動作停止状態に移行する以前に、前記復号
化処理の動作終了通知が到着していた場合は、動作停止
状態に移行せず、動作を継続させることを特徴とする請
求項10に記載の画像処理方法。
11. The first control step shifts to an operation stop state when an operation end notification of the decoding process arrives before the header information processing step shifts to an operation stop state. 11. The image processing method according to claim 10, wherein the operation is continued.
【請求項12】 前記ヘッダ情報処理工程が動作停止状
態にある場合は、前記ヘッダ情報処理工程の内部のステ
ートマシンが停止し、外部からのクロック供給が停止し
ていることを特徴とする請求項10又は請求項11に記
載の画像処理方法。
12. When the header information processing step is in an operation stopped state, an internal state machine of the header information processing step is stopped, and an external clock supply is stopped. The image processing method according to claim 10.
【請求項13】 入力原画像データから符号化パラメー
タと一連の直交変換係数シーケンスとを生成する画像デ
ータ変換ステップのコードと、前記符号化パラメータを
基に符号化データ列に含まれるヘッダ情報を構築するヘ
ッダ情報処理ステップのコードと、前記一連の直交変換
係数シーケンスを順次符号化して符号化データ列に含ま
れる連続する複数の可変長符号からなる画像情報を生成
する可変長符号符号化ステップのコードを有する、コン
ピュータに画像処理を実行させるための画像処理プログ
ラムであって、 前記ヘッダ情報処理ステップから前記可変長符号符号化
ステップに向けて連続する複数の可変長符号に対する符
号化処理の動作開始指示を行なう指示ステップのコード
と、 前記可変長符号符号化ステップから前記ヘッダ情報処理
ステップに向けて一連の直交変換係数シーケンスに対す
る符号化処理の動作終了を通知する通知ステップのコー
ドと、 前記符号化処理の動作開始指示を行なった後前記ヘッダ
情報処理ステップを任意のタイミングで動作停止状態に
移行するように制御する第一の制御ステップのコード
と、 動作停止状態にあるヘッダ情報処理ステップが前記符号
化処理の動作終了通知を受けて再び動作状態に戻るよう
に制御する第二の制御ステップのコードと、を備えるこ
とを特徴とする画像処理プログラム。
13. A code for an image data conversion step of generating an encoding parameter and a series of orthogonal transform coefficient sequences from input original image data, and header information included in an encoded data sequence based on the encoding parameter. And a code for a variable-length code encoding step for sequentially encoding the series of orthogonal transform coefficient sequences to generate image information including a plurality of continuous variable-length codes included in an encoded data sequence. An image processing program for causing a computer to execute image processing, comprising: an instruction to start an operation of encoding processing for a plurality of variable-length codes continuous from the header information processing step to the variable-length code encoding step A code of an instruction step for performing the header information processing from the variable length code encoding step. A code for a notification step for notifying the end of the encoding process for a series of orthogonal transform coefficient sequences toward the step, and the header information processing step is stopped at an arbitrary timing after giving an instruction to start the encoding process. A code of a first control step for controlling to shift to a state, and a second control for controlling that the header information processing step in the inactive state receives the operation end notification of the encoding processing and returns to the operating state again. An image processing program comprising: a control step code.
【請求項14】 前記第一の制御ステップが、前記ヘッ
ダ情報処理ステップが動作停止状態に移行する以前に、
前記符号化処理の動作終了通知が到着していた場合は、
動作停止状態に移行せず、動作を継続させることをさら
に特徴とする請求項13に記載の画像処理プログラム。
14. The method according to claim 1, wherein the first control step is performed before the header information processing step shifts to an operation stop state.
When the operation end notification of the encoding process has arrived,
14. The image processing program according to claim 13, further comprising: continuing the operation without shifting to the operation stop state.
【請求項15】 入力符号化データ列のヘッダ情報を解
析して符号化パラメータを得るヘッダ情報処理ステップ
のコードと、入力符号化データ列の連続する複数の可変
長符号からなる画像情報を順次復号化して処理単位であ
る一連の直交変換係数シーケンスを得る可変長符号復号
化ステップのコードと、前記符号化パラメータと前記一
連の直交変換係数シーケンスを基に画像データを再構成
する画像データ再構成ステップのコードを備える、コン
ピュータに画像処理を実行させるための画像処理プログ
ラムであって、 前記ヘッダ情報処理ステップから前記可変長符号復号化
ステップに向けて連続する複数の可変長符号に対する復
号化処理の動作開始指示を行なう指示ステップのコード
と、 前記可変長符号復号化ステップから前記ヘッダ情報処理
ステップに向けて処理単位である一連の直交変換係数シ
ーケンスに対する復号化処理の動作終了通知を行なう通
知ステップのコードと、 前記復号化処理の動作開始指示を行なった後、前記ヘッ
ダ情報処理ステップを任意のタイミングで動作停止状態
に移行させる第一の制御ステップのコードと、 動作停止状態にあるヘッダ情報処理ステップを前記復号
化処理の動作終了通知を受けて再び動作状態に戻す第二
の制御ステップのコードと、を備えることを特徴とする
画像処理プログラム。
15. A code for a header information processing step of analyzing header information of an input coded data sequence to obtain a coding parameter, and sequentially decoding image information composed of a plurality of continuous variable length codes of the input coded data sequence. Code for a variable-length code decoding step for obtaining a series of orthogonal transform coefficient sequences as a processing unit, and an image data reconstructing step for reconstructing image data based on the encoding parameters and the series of orthogonal transform coefficient sequences An image processing program for causing a computer to execute image processing, the decoding processing for a plurality of variable-length codes continuous from the header information processing step to the variable-length code decoding step. A code of an instruction step for giving a start instruction, and the header information processing from the variable length code decoding step. A code of a notification step for notifying the end of the decoding process operation for a series of orthogonal transform coefficient sequences which is a processing unit toward the step, and the header information processing step is optional after giving an instruction to start the decoding process operation. The code of the first control step for shifting to the operation stop state at the timing of the second control step for returning the header information processing step in the operation stop state to the operation state again after receiving the operation end notification of the decoding process And an image processing program.
【請求項16】 前記第一の制御ステップが、前記ヘッ
ダ情報処理ステップが動作停止状態に移行する以前に、
前記復号化処理の動作終了通知が到着していた場合は、
動作停止状態に移行せず、動作を継続させることを特徴
とする請求項15に記載の画像処理プログラム。
16. The method according to claim 1, wherein the first control step is performed before the header information processing step shifts to an operation stop state.
When the operation end notification of the decryption process has arrived,
16. The image processing program according to claim 15, wherein the operation is continued without shifting to the operation stop state.
【請求項17】 請求項13乃至請求項16のいずれか
1項に記載の画像処理プログラムを記憶したコンピュー
タが読み取り可能な情報記憶媒体。
17. A computer-readable information storage medium storing the image processing program according to claim 13. Description:
JP2001380508A 2000-12-19 2001-12-13 Image processor, method, program and recording medium Pending JP2002252853A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2001380508A JP2002252853A (en) 2000-12-19 2001-12-13 Image processor, method, program and recording medium
EP01310499A EP1217843B1 (en) 2000-12-19 2001-12-17 Image processing method, apparatus, and storage medium
US10/021,247 US6947602B2 (en) 2000-12-19 2001-12-19 Image processing method, apparatus, and storage medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000385940 2000-12-19
JP2000-385940 2000-12-19
JP2001380508A JP2002252853A (en) 2000-12-19 2001-12-13 Image processor, method, program and recording medium

Publications (1)

Publication Number Publication Date
JP2002252853A true JP2002252853A (en) 2002-09-06

Family

ID=26606130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001380508A Pending JP2002252853A (en) 2000-12-19 2001-12-13 Image processor, method, program and recording medium

Country Status (1)

Country Link
JP (1) JP2002252853A (en)

Similar Documents

Publication Publication Date Title
USRE48845E1 (en) Video decoding system supporting multiple standards
US6947602B2 (en) Image processing method, apparatus, and storage medium
US5469273A (en) Decoding system having parallel-processing capability therein
US20060143615A1 (en) Multimedia processing system and multimedia processing method
JP6085065B2 (en) Image compression / decompression device
JP3802521B2 (en) Encoding apparatus, encoding control method, and encoding control program
US7760198B2 (en) Display controller
US8111753B2 (en) Video encoding method and video encoder for improving performance
JP2002252853A (en) Image processor, method, program and recording medium
JP2004282306A (en) Image processing apparatus
JP3927801B2 (en) Image processing apparatus and method
WO2010134238A1 (en) Video recording device
JP2007096738A (en) Image processing device, and program for allowing computer to perform image processing method
JP2000307818A (en) Scanner and method for selecting scanner resolution
JP5100561B2 (en) Image processing apparatus and image processing method
EP1351513A2 (en) Method of operating a video decoding system
JP4667348B2 (en) Encoded data memory storage control device, method, and image processing device
JP2006050571A (en) Image processing apparatus
JP2005123738A (en) Apparatus and method of image processing, and electronic camera
JP7451131B2 (en) Image encoding device, image encoding method, and program
JP5361577B2 (en) Video decoding apparatus and video decoding method
JP5732765B2 (en) Image data decoding device
JP4164388B2 (en) Image processing apparatus, image processing apparatus control method, and computer-readable control program
JPH1084287A (en) Module changeover type image compression and reproduction device
JP4461859B2 (en) Run-length code decoding apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061027

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061226

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070216