JP2000050263A - Image coder, decoder and image-pickup device using them - Google Patents

Image coder, decoder and image-pickup device using them

Info

Publication number
JP2000050263A
JP2000050263A JP21227298A JP21227298A JP2000050263A JP 2000050263 A JP2000050263 A JP 2000050263A JP 21227298 A JP21227298 A JP 21227298A JP 21227298 A JP21227298 A JP 21227298A JP 2000050263 A JP2000050263 A JP 2000050263A
Authority
JP
Japan
Prior art keywords
quantization
decoding
image
variable
inverse quantization
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
JP21227298A
Other languages
Japanese (ja)
Inventor
Yasushi Asada
耕史 浅田
Susumu Takahashi
将 高橋
Yukitoshi Tsuboi
幸利 坪井
Masuo Oku
万寿男 奥
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP21227298A priority Critical patent/JP2000050263A/en
Publication of JP2000050263A publication Critical patent/JP2000050263A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

PROBLEM TO BE SOLVED: To use common circuits to the utmost for duplicate processing in the case of simultaneously realizing coding/decoding of an MPEG stream and a JPEG stream and to use a coding/decoding means through hardware and a coding/decoding means by software in common. SOLUTION: Common sharing of a quantization circuit 5 and an inverse quantization circuit 6 is devised for MPEG and JPEG processing. This is realized by providing two planes of memories storing a quantization matrix, Intra.Non- Intra coefficients are used for the MPEG and coefficients for luminance and color difference signals are used for the JPEG as the coefficients stored in them to cope with the respective processing. In the JPEG processing, a coding table is selected freely, depending on the image by conducting variable length coding 13/decoding 27 using the variable coding table, even for the software in addition to variable length coding 10/decoding 21 which correspond to a fixed coding table by the hardware and the compression efficiency is improved.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は可変長符号化、復号
化を用いたデータ圧縮の技術に係り、特に動画像及び静
止画像の速やかな圧縮、伸長を行なう画像符号化、復号
化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data compression technique using variable length coding and decoding, and more particularly to an image coding and decoding apparatus for rapidly compressing and decompressing moving images and still images. It is.

【0002】[0002]

【従来の技術】動画像の符号化、復号化方式としては、
現在MPEG(Moving Picture Expe
rts Group)規格が国際標準として実用化され
ている。MPEG規格のうち、主に蓄積メディアを対象
としたMPEG−1に関しては、パソコン並びネットワ
ーク上における動画像の蓄積、伝送の標準規格としてそ
の製品化が進んでいる。また静止画の圧縮、伸長の国際
標準規格としてはJPEG(Joint Photog
raphic Experts Group)規格があ
り、こちらは現在ほぼ標準規格として各種メディアにお
いて使用されている。
2. Description of the Related Art Moving picture coding and decoding methods include:
Currently MPEG (Moving Picture Expe
(rts Group) standard has been put to practical use as an international standard. Of the MPEG standards, MPEG-1 mainly for storage media is being commercialized as a standard for storing and transmitting moving images on personal computers and networks. JPEG (Joint Photog) is an international standard for compression and decompression of still images.
There is a standard called "Radical Experts Group", which is currently used as a standard in various media.

【0003】一方、放送、通信等を視野に入れたMPE
G−2規格に関しては、その実用化が行われており、符
号化器と復号化器をまとめたLSI(CODEC)が発
表されている。
On the other hand, MPEs with a view to broadcasting, communications, etc.
The G-2 standard has been put to practical use, and an LSI (CODEC) integrating an encoder and a decoder has been announced.

【0004】MPEG方式の画像圧縮手法は直交変換を
用いた周波数変換と可変長符号化を組み合わせたもの
で、MPEG2規格についてはISO/IEC1381
8に記載されていている。
[0004] The image compression technique of the MPEG system is a combination of frequency conversion using orthogonal transformation and variable-length coding. The MPEG2 standard is ISO / IEC1381.
8 is described.

【0005】ここで言う直交変換はDCT(離散コサイ
ン変換)と呼ばれるもので、ブロック分割された画像を
そのまま周波数領域に変換する。次に、その周波数成分
に対し個別に重みつけ(量子化)をした後で、係数値0
が連続する数とその直後の非0の係数値との組み合わせ
で可変長符号化を行なう。MPEGではこれと、時間方
向での冗長度削減のための動き補償フレーム間予測とで
圧縮処理を行なう。一方JPEG方式の圧縮手法は、M
PEG規格の基礎となったもので、ISO/IEC10
918に記載されている。これもDCT変換と可変長符
号化を用いたもので、その符号化・復号化の方式はMP
EGとほぼ共通したものである。
[0005] The orthogonal transform referred to here is called DCT (Discrete Cosine Transform), and directly converts a block-divided image into a frequency domain. Next, after individually weighting (quantizing) the frequency components, the coefficient value 0
Are subjected to variable-length coding using a combination of the number of consecutive. In MPEG, compression processing is performed using this and motion-compensated inter-frame prediction for reducing redundancy in the time direction. On the other hand, the compression method of the JPEG method is M
It is the basis of the PEG standard and is based on ISO / IEC10
918. This also uses DCT transform and variable length coding, and the coding and decoding method is MP
It is almost common to EG.

【0006】[0006]

【発明が解決しようとする課題】今後重要なメディアと
して、MPEGストリームの記録・再生をするカメラの
ようなものが考えられるが、その使い勝手や利便性から
静止画(JPEGストリーム)も同時に記録・再生でき
ることが必要となる。しかしカメラ自体は軽量化、コン
パクト化、低電力化が要求されるので、MPEGストリ
ームの符号化、復号化とJPEGストリームの符号化、
復号化とは、処理が重なる部分に関しては共通の回路を
使用することが望ましいが、実現手段について、上記の
従来技術には触れられていない。本発明の第1の目的は
この課題を解決し、動画・静止画の圧縮・伸長処理を行
なうLSIを実現することにある。
As media that will be important in the future, such as a camera that records and reproduces an MPEG stream, a still image (JPEG stream) is simultaneously recorded and reproduced because of its convenience and convenience. You need to be able to do it. However, since the camera itself is required to be lightweight, compact, and low power, encoding and decoding of MPEG streams and encoding of JPEG streams,
For decoding, it is desirable to use a common circuit for a portion where processing overlaps, but the above-described prior art is not mentioned as to a means for realizing the same. A first object of the present invention is to solve this problem and to realize an LSI that performs compression / expansion processing of moving images and still images.

【0007】また、従来のJPEG処理ではLSIに設
けた固定の符号化テーブルに対応した可変長符号化・復
号化部分のみを用いて可変長符号化・復号化を行うため
に、圧縮効率は一定であり、それ以上向上させることは
できなかったし、処理の自由度もなかった。本発明の第
2の目的は、この課題を解決することにある。
Further, in the conventional JPEG processing, since the variable length encoding / decoding is performed using only the variable length encoding / decoding portion corresponding to the fixed encoding table provided in the LSI, the compression efficiency is constant. No further improvement was possible, and there was no freedom in processing. A second object of the present invention is to solve this problem.

【0008】[0008]

【課題を解決するための手段】本発明の第1の目的を達
成するために、以下の手段を採用する。
Means for Solving the Problems To achieve the first object of the present invention, the following means are adopted.

【0009】MPEG符号化とJPEG符号化を比較し
た場合、入力画像をブロック単位に変換する部分と、ブ
ロック変換された画像データをDCT変換する部分と、
DCT変換されたものを量子化する部分とが共通する。
復号化においては、可変長復号された周波数データを逆
量子化する部分と、逆量子化されたデータを逆DCT変
換する部分と、逆DCT変換されたデータをフレーム単
位の画像データに並べ替える部分とが共通する。したが
って、動画と静止画の圧縮・伸長をLSI等で行なう場
合、MPEGとJPEGの処理で上記処理部の回路を共
有させることにより、LSIの回路規模の削減、低消費
電力化が可能となる。そして、本発明では、MPEGと
JPEGの処理で共有されるべき上記回路のうち量子化
・逆量子化回路において工夫を行う。LSIに、量子化
マトリクスを記憶するメモリーを2面分持たせ、そこに
記憶される係数をMPEGではフレーム内符号化(In
tra)・フレーム間予測符号化(Non−Intr
a)用とし、JPEGでは輝度信号・色差信号用とし、
この量子化マトリクスを記憶するメモリーに、MPE
Gではフレーム内符号化(Intra)・フレーム間予
測符号化(Non−Intra)、JPEGでは輝度信
号・色差信号用の係数を書きこむことにより、MPEG
とJPEGのそれぞれの処理に対応させる。この構成に
より、MPEG処理とJPEG処理を1つの量子化回路
で行うことが出来る。
When the MPEG coding and the JPEG coding are compared, a part for converting an input image into blocks, a part for performing DCT conversion on the block-converted image data,
The part that quantizes the DCT-transformed one is common.
In the decoding, a part for inversely quantizing the variable-length decoded frequency data, a part for inverse DCT transform of the inversely quantized data, and a part for rearranging the inverse DCT transformed data into frame-based image data And are common. Therefore, when the moving image and the still image are compressed and decompressed by an LSI or the like, by sharing the circuit of the processing unit in the MPEG and JPEG processing, the circuit size of the LSI can be reduced and the power consumption can be reduced. In the present invention, the quantization / inverse quantization circuit among the above circuits to be shared in the processing of MPEG and JPEG is devised. The LSI has memories for storing quantization matrices for two planes, and the coefficients stored therein are subjected to intra-frame encoding (In
tra) inter-frame predictive coding (Non-Intr)
a), and in JPEG, for luminance and color difference signals,
MPE is stored in the memory for storing the quantization matrix.
In G, the coding for intra-frame coding (Intra) and inter-frame prediction coding (Non-Intra) is performed.
And JPEG. With this configuration, the MPEG processing and the JPEG processing can be performed by one quantization circuit.

【0010】この量子化マトリクスを記憶するメモリー
に係数を書きこむには、外部のCPUから書きこむ方法
も考えられるが、MPEG処理時に外部のCPUから量
子化係数を書きこむこととすると、外部CPUに非常に
負荷がかかる。外部CPUは通常、符号化手段を制御す
るだけでなく、他の処理を行う必要があるが、このよう
にMPEG処理時に外部CPUに非常に負荷がかかこと
となると、処理が重くなり、動作が遅くなったり、動作
しなくなったりするおそれがある。一方、MPEG処理
では固定の量子化係数を用いているため、MPEGで使
用する量子化係数をLSI内部のROMに持たせること
が出来る。このLSI内部のROMから量子化マトリク
スを記憶するメモリーにMPEGで使用する量子化係数
を書きこむ構成とすることにより、外部CPUに負担が
かかることを防止することが出来る。
In order to write the coefficients into the memory for storing the quantization matrix, a method of writing the coefficients from an external CPU is conceivable. Is very stressful. Generally, the external CPU needs to perform not only the encoding means but also other processing. However, when the external CPU becomes very heavy during the MPEG processing, the processing becomes heavy, and the operation becomes heavy. May slow down or stop working. On the other hand, since the fixed quantization coefficient is used in the MPEG processing, the quantization coefficient used in the MPEG can be stored in the ROM in the LSI. The configuration in which the quantization coefficient used in MPEG is written from the ROM in the LSI to the memory for storing the quantization matrix can prevent the load on the external CPU.

【0011】さらに、量子化マトリクスを記憶するメモ
リーにMPEGで使用する量子化係数を書きこむタイミ
ングを、電源投入時や、MPEGモード選択時に行うこ
とにより、使い勝手を向上させることが出来る。
Further, the usability can be improved by writing the quantization coefficient used in MPEG into the memory for storing the quantization matrix when the power is turned on or when the MPEG mode is selected.

【0012】なお、MPEG処理時においては、予測符
号化を行うために符号化時に逆量子化が必要となる。量
子化マトリクスを記憶するメモリーを1つだけ用いて逆
量子化も行わせることとすると、MPEG処理時におい
て量子化と逆量子化を交互に時間を分けて行う必要があ
り、MPEG処理の速度が低下する、あるいは処理速度
を向上させるために量子化回路の処理速度を上げなくて
はならないという問題点が生じる。そこで、量子化マト
リクスを記憶するためのメモリーと逆量子化マトリクス
を記憶するためのメモリーの2つを別々に分けて設ける
ことにより、量子化と逆量子化の両方を同時に行わせる
ことが可能となり、量子化回路の処理速度能力を上げな
くても、MPEG処理の速度を向上させることが出来
る。
In MPEG processing, inverse quantization is required at the time of encoding in order to perform predictive encoding. If only one memory for storing the quantization matrix is used to perform the inverse quantization, it is necessary to perform the quantization and the inverse quantization alternately at different times during the MPEG processing. There is a problem that the processing speed of the quantization circuit must be increased in order to decrease the processing speed or to improve the processing speed. Therefore, by separately providing two memories, one for storing the quantization matrix and the other for storing the inverse quantization matrix, it is possible to perform both quantization and inverse quantization simultaneously. The speed of the MPEG processing can be improved without increasing the processing speed capability of the quantization circuit.

【0013】本発明の第2の目的を達成するために、
LSI等のハードウェアで行なうべき処理をマイクロコ
ンピュータを用いたソフトウェア処理で行わせるる構成
とする。この構成により、処理の自由度を向上させるこ
とができる。JPEG処理で、LSIに設けた固定の符
号化テーブルに対応した可変長符号化・復号化部分とは
別に、ソフトウェアでも任意の符号化テーブルを用いた
可変長符号化・復号化を行なわせることにより、画像に
応じて符号化テーブル等を自由に選択でき、圧縮効率を
向上させることができる。
In order to achieve the second object of the present invention,
The processing to be performed by hardware such as an LSI is performed by software processing using a microcomputer. With this configuration, the degree of freedom in processing can be improved. In the JPEG processing, apart from the variable length coding / decoding part corresponding to the fixed coding table provided in the LSI, the software can perform variable length coding / decoding using an arbitrary coding table. The encoding table and the like can be freely selected according to the image, and the compression efficiency can be improved.

【0014】以上、本発明による動画(MPEG)及び
静止画(JPEG)の符号化・復号化装置によれば、動
画像処理と静止画処理で一部回路を共有することによ
り、処理をLSI化した場合などその回路規模が削減で
きる。また、処理の一部をLSI外部のソフトウェアで
行なうことで処理の自由度が向上し画像圧縮を効率良く
行なうことができる。
As described above, according to the moving picture (MPEG) and still picture (JPEG) encoding / decoding apparatus according to the present invention, the processing is implemented in an LSI by sharing a part of the circuit between the moving picture processing and the still picture processing. In such a case, the circuit scale can be reduced. Further, by performing a part of the processing with software external to the LSI, the degree of freedom of the processing is improved, and image compression can be performed efficiently.

【0015】[0015]

【発明の実施の形態】以下、本発明に係る実施例を図面
を用いて詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0016】図1は、本発明の第1の実施例であるMP
EG方式を用いた動画像符号化とJPEG方式を用いた
静止画像符号化を回路を共有して行なう符号化装置のブ
ロック図である。
FIG. 1 shows an MP according to a first embodiment of the present invention.
FIG. 1 is a block diagram of an encoding device that performs moving image encoding using an EG method and still image encoding using a JPEG method by sharing circuits.

【0017】同図において1は入力された画像データを
8画素×8画素のブロックに変換するブロック化器、2
は前フレームの予測データと現フレームのデータの差分
をとる減算器、3はMPEGのフレーム間予測(Non
−Intra)符号化と、フレーム内(Intra)符
号化及びJPEG符号化で処理を切り替える選択器、4
は入力された画像データをブロック単位でDCT変換す
るDCT演算器、5はDCT変換されたデータを所定の
係数で量子化する量子化器、6は量子化されたデータを
元に戻す逆量子化器、7は逆量子化されたデータをID
CT変換して元の画像データに戻すIDCT演算器、8
は前フレームの画像データとIDCT変換の結果を加算
する加算器、9は、現画像を次フレームの予測画像とし
て格納するための予測メモリ、10はJPEG符号化に
おいて量子化されたデータをデフォルト(固定値)の符
号化テーブルを用いて可変長符号化を行なう可変長符号
化器、11はMPEG符号化において量子化されたデー
タをMPEG規格で規定された固定値の符号化テーブル
(固定テーブル)を用いて可変長符号化を行なう可変長
符号化器、12は、1〜11の処理を高速にハードウェ
アで行なう符号化手段、13はJPEG符号化で量子化
されたデータを任意の符号化テーブル(可変テーブル)
を用いて可変長符号化を行なう可変長符号化器、14は
JPEG符号化において10の符号化結果と13の符号
化結果から任意の結果を選択する選択器、15はMPE
G符号化・JPEG符号化で処理を切り替える選択器、
16は符号化されたデータにMPEG・JPEGストリ
ーム作成に必要なヘッダその他を付加するストリーム多
重器、17は生成されたストリームを外部出力する前に
一旦保持するためのバッファ、18は13〜17の処理
を主にソフトウェアで処理する符号化手段を、それぞれ
表す。
In FIG. 1, reference numeral 1 denotes a block converter for converting input image data into a block of 8 × 8 pixels;
Is a subtractor that calculates the difference between the prediction data of the previous frame and the data of the current frame, and 3 is the inter-frame prediction (Non
A selector for switching processing between (Intra) coding, intra-frame (Intra) coding, and JPEG coding;
Is a DCT calculator for DCT-transforming the input image data in block units, 5 is a quantizer for quantizing the DCT-transformed data by a predetermined coefficient, and 6 is an inverse quantization for returning the quantized data to the original. , 7 is the ID of the dequantized data
IDCT calculator for performing CT conversion and returning to original image data, 8
Is an adder that adds the result of the IDCT transform to the image data of the previous frame, 9 is a prediction memory for storing the current image as a prediction image of the next frame, and 10 is default data that has been quantized in JPEG encoding. A variable-length encoder for performing variable-length encoding using a fixed-value) encoding table; 11 denotes a fixed-value encoding table (fixed table) that quantizes data quantized in MPEG encoding according to the MPEG standard A variable-length encoder for performing variable-length encoding by using H.264, encoding means for performing hardware processing at high speed for processings 1 to 11; and 13, arbitrary encoding of data quantized by JPEG encoding Table (variable table)
, A selector for selecting an arbitrary result from 10 encoding results and 13 encoding results in JPEG encoding, and 15 a MPE.
A selector for switching the processing between G encoding and JPEG encoding,
Reference numeral 16 denotes a stream multiplexer for adding a header or the like necessary for creating an MPEG / JPEG stream to encoded data, 17 a buffer for temporarily holding the generated stream before outputting it to the outside, and 18 a buffer for 13 to 17. Encoding means for performing processing mainly by software are shown.

【0018】MPEG方式の符号化の場合、各処理の動
作は以下に示す通りである。
In the case of the encoding of the MPEG system, the operation of each processing is as follows.

【0019】入力された画像データは、ブロック化器1
でブロックデータに変換される。変換されたブロックデ
ータは減算器2で前フレームのデータを減算される。フ
レーム間予測符号化モード時には、選択器3で減算器2
の出力が選択されDCT演算器4に送られる。フレーム
内符号化時には、選択器3はブロック化器1の出力を選
択する。DCT演算器4では入力したブロックデータが
DCT変換される。DCT変換されたデータは、量子化
器5で所定の係数を用いて量子化される。量子化された
データは可変長符号化器11に送られ、連続する0係数
の数と非0係数の組み合わせを事象として、MPEG規
格で定められた符号化テーブルを用いた可変長符号化が
行われる。選択器15では可変長符号化器11の出力が
選択されてストリーム多重器16に送られる。ストリー
ム多重器16では、可変長符号化されたデータに対し、
MPEGストリームとして必要な各種情報(ヘッダ、量
子化テーブル、量子化パラメータ、動きベクトル等)を
付加し、バッファ17に送る。バッファ17では、符号
化されたMPEGストリームを所定のレートで外部に出
力する。フレーム間予測符号化では、量子化されたデー
タに対し逆量子化器6で逆量子化を行なう。その結果は
IDCT変換器7に送られ元の画像データに戻された
後、前フレームのデータと加算器8で加算され、次フレ
ームの予測符号化のために予測メモリ9に記録される。
予測符号化の際には予測メモリ9からデータが読み出さ
れ、減算器2で現フレームのデータから減算された後、
減算されたデータが選択器3に送られる。
The input image data is converted into a block
Is converted to block data. The data of the previous frame is subtracted by the subtracter 2 from the converted block data. In the inter-frame prediction coding mode, the selector 3
Is selected and sent to the DCT calculator 4. At the time of intra-frame encoding, the selector 3 selects the output of the blocker 1. The DCT calculator 4 performs DCT conversion on the input block data. The DCT-transformed data is quantized by a quantizer 5 using a predetermined coefficient. The quantized data is sent to the variable-length encoder 11, and variable-length encoding using a coding table defined by the MPEG standard is performed using a combination of the number of consecutive 0 coefficients and non-zero coefficients as an event. Will be The selector 15 selects the output of the variable length encoder 11 and sends it to the stream multiplexer 16. In the stream multiplexer 16, the variable-length encoded data is
Various kinds of information (a header, a quantization table, a quantization parameter, a motion vector, and the like) necessary as an MPEG stream are added, and the information is sent to the buffer 17. The buffer 17 outputs the encoded MPEG stream to the outside at a predetermined rate. In the inter-frame prediction coding, inverse quantization is performed on the quantized data by the inverse quantizer 6. The result is sent to the IDCT converter 7 and returned to the original image data, then added to the data of the previous frame by the adder 8 and recorded in the prediction memory 9 for predictive coding of the next frame.
At the time of predictive encoding, data is read from the predictive memory 9 and subtracted by the subtracter 2 from the data of the current frame.
The subtracted data is sent to the selector 3.

【0020】JPEG方式の符号化の場合、各処理の動
作は以下に示す通りである。
In the case of JPEG encoding, the operation of each process is as follows.

【0021】入力された画像データは、ブロック化器1
でブロックデータに変換される。JPEG処理の場合、
選択器3では常にブロック化器1の出力が選択され、D
CT演算器4に送られる。DCT演算器4では、入力さ
れたブロックデータがDCT変換される。DCT変換さ
れたデータは、量子化器5で所定の係数を用いて量子化
される。量子化されたデータは可変長符号化器10と1
3に送られ、連続する0係数の数と非0係数の組み合わ
せを事象として可変長符号化が行われる。この時、JP
EG規格で推奨されている固定テーブルを用いたハード
ウェアによる可変長符号化器10と、その他の任意の可
変テーブルを用いたソフトウェアによる可変長符号化器
13のうち、どちらかが選択的に動作し、動作している
方の出力が選択器14で選択され、さらに選択器15で
選択されてストリーム多重器16に送られる。この選択
は、あらかじめ可変長符号化に固定テーブルを用いるか
可変テーブルを用いるかをユーザ−が決めておき、モー
ドが切り替えられることにより、どちらを選択するかを
定めて使用する。また、特殊な画像では、連続する0係
数の数と非0係数の組み合わせを事象が、固定テーブル
で行うよりも、他のテーブルを使用したほうが圧縮率を
向上させることが出来る場合もある。従って、連続する
0係数の数と非0係数の組み合わせが特殊な場合など、
画像の内容、特性に応じて可変長符号化器10(固定)
の出力を選択するか可変長符号化器13(可変)の出力
を選択するかを自動的に切り替える構成としてもよい。
どちらを選択するかは符号化効率が高い方を選択するよ
うにすれば、圧縮効率を向上させることが出来る。具体
的には、可変長符号化器10(固定)の出力データと可
変長符号化器13(可変)の出力データのデータ総量を
比較し、データ総量の少ない方が圧縮率が高いので、デ
ータ総量の少ない方の出力を選択する。この可変長符号
化器13に用いられる可変テーブルは、予め何種類かを
プログラムに組み込んでおいてものを使用することとし
てもよい。また、符号化手段18にインターフェースを
設け、使用者等が可変長符号化器13の可変テーブルを
書き換え可能な構成とすれば、さらに符号化の自由度を
向上させることができ、最適な圧縮率で符号を行うこと
が可能となる。ストリーム多重器16では、可変長符号
化されたデータに対し、JPEGストリームとして必要
な各種情報(ヘッダ、量子化テーブル、量子化パラメー
タ等)を付加し、各種情報が付加された可変長複合化後
のデータを外部に出力する。
The input image data is converted into a block
Is converted to block data. In the case of JPEG processing,
In the selector 3, the output of the blocker 1 is always selected.
It is sent to the CT calculator 4. The DCT calculator 4 performs DCT on the input block data. The DCT-transformed data is quantized by a quantizer 5 using a predetermined coefficient. The quantized data is transmitted to the variable length encoders 10 and 1
The variable length coding is performed using the combination of the number of consecutive 0 coefficients and the non-zero coefficient as an event. At this time, JP
Either the variable length encoder 10 using hardware using a fixed table recommended by the EG standard or the variable length encoder 13 using software using any other variable table selectively operates The output that is operating is selected by the selector 14, further selected by the selector 15, and sent to the stream multiplexer 16. For this selection, the user previously determines whether to use a fixed table or a variable table for variable-length coding, and the mode is switched to determine which to use. In a special image, the event may be a combination of the number of consecutive 0 coefficients and a non-zero coefficient. In some cases, the compression ratio can be improved by using another table rather than by using a fixed table. Therefore, when the combination of the number of consecutive 0 coefficients and the non-zero coefficient is special,
Variable length encoder 10 (fixed) according to image content and characteristics
Or the output of the variable-length encoder 13 (variable) may be automatically switched.
The compression efficiency can be improved by selecting which one has higher encoding efficiency. Specifically, the total data amount of the output data of the variable-length encoder 10 (fixed) and the output data of the variable-length encoder 13 (variable) are compared, and the smaller the total data amount, the higher the compression ratio. Select the output with the smaller total amount. The variable table used in the variable length encoder 13 may be one in which some types are incorporated in a program in advance. If an interface is provided in the encoding means 18 so that a user or the like can rewrite the variable table of the variable-length encoder 13, the degree of freedom of encoding can be further improved, and the optimal compression ratio can be improved. Can be used to perform the sign. The stream multiplexer 16 adds various information (header, quantization table, quantization parameter, etc.) necessary as a JPEG stream to the variable-length coded data, and performs variable-length decoding after adding the various information. Is output to the outside.

【0022】以上、第1の実施例によれば、ブロック化
器1およびDCT変換器4、量子化器5がJPEG符号
化とMPEG符号化とで同じものが使用できるので、M
PEG・JPEG符号化器のハードウェア回路が削減で
きる。このとき、可変長符号化器10と11は固定テー
ブルを切り替えることで、MPEG処理時とJPEG処
理時で回路が共有できる。
As described above, according to the first embodiment, since the same blocker 1, DCT transformer 4, and quantizer 5 can be used for JPEG encoding and MPEG encoding,
The hardware circuit of the PEG / JPEG encoder can be reduced. At this time, the variable length encoders 10 and 11 can share a circuit between the MPEG processing and the JPEG processing by switching the fixed table.

【0023】なお、第1の実施例では、選択器15によ
り可変長符号化器10の出力と11の出力を選択するこ
ととしたが、可変長符号化器10の出力と11の出力を
選択する選択器を符号化手段12内に設け、符号化手段
12から選択出力を出力させ、外部の選択器にて符号化
手段12と可変長符号化器13の出力を選択する構成と
してもよい。
In the first embodiment, the output of the variable length encoder 10 and the output of the variable length encoder 11 are selected by the selector 15, but the output of the variable length encoder 10 and the output of the variable length encoder 11 are selected. A selector may be provided in the encoding means 12 to output a selection output from the encoding means 12, and an output of the encoding means 12 and the variable length encoder 13 may be selected by an external selector.

【0024】また、第1の実施例では、選択器14によ
り可変長符号化器10の出力と13の出力を選択するこ
ととしたが、可変長符号化器10の出力と量子化回路の
出力を選択する選択器を符号化手段12内に設け、符号
化手段12から選択出力を符号化手段18に出力する構
成としてもよい。
In the first embodiment, the output of the variable length encoder 10 and the output of the variable length encoder 13 are selected by the selector 14. However, the output of the variable length encoder 10 and the output of the quantization circuit are selected. May be provided in the encoding means 12, and a selected output from the encoding means 12 may be output to the encoding means 18.

【0025】次にMPEG・JPEG処理での画像フォ
ーマットに関連した処理に要する期間につき説明を行な
う。 図5は、MPEG・JPEG規格における画像フ
ォーマットの説明図である。同図において(a)、
(c)は輝度信号及び色差信号のデータレート、
(b)、(d)は1フレームでの、輝度信号と色差信号
のサンプリングされた画素の比を現す。
Next, the period required for processing related to the image format in the MPEG / JPEG processing will be described. FIG. 5 is an explanatory diagram of an image format in the MPEG / JPEG standard. In FIG.
(C) is the data rate of the luminance signal and the color difference signal,
(B) and (d) show the ratio of the sampled pixels of the luminance signal and the chrominance signal in one frame.

【0026】MPEG2規格では、符号化・復号化処理
を行なう画素数は、標準的なサブセットであるMP@M
L(Main Profile at Main Le
vel)で、水平720画素×垂直480画素である。
この画像フォーマットは[4:2:0]と呼ばれるもの
で、(a)及び(b)に示すように輝度信号に対し色差
信号のサンプリング密度が1/4となる。JPEG規格
では、MPEG2のMP@MLと同じ[4:2:0]フ
ォーマット以外に、(c)及び(d)に示すような色差
信号(Cb、Cr)の画素数が垂直方向に2倍ある
[4:2:2]フォーマットが存在する。MP@MLに
は[4:2:2]フォーマットは存在しない。MPEG
及びJPEGの符号化・復号化では各フレームはマクロ
ブロック(16画素×16画素)に分割され、マクロブ
ロック単位で固定タイムスロットにより処理が行なわれ
る。JPEGではどちらのフォーマットを使用してもか
まわないので、JPEGの画像フォーマットが[4:
2:0]の場合には、MPEG2の処理回路を使用して
JPEG処理を行なえば、MPEG画像での1マクロブ
ロックの処理にかかるのと同じ期間でJPEG画像1マ
クロブロック分の処理が可能となる。よって、これによ
りモーションJPEG(動画像を1フレーム毎にJPE
G符号化・復号化を行なう処理方式)が実現できる。ま
たJPEG画像が[4:2:2]フォーマットの場合に
は、画素数が多いためにMPEG画像2マクロブロック
期間分をかけてJPEG画像1マクロブロック分の処理
を行なう。図6は、1マクロブロック分のMPEG及び
JPEG符号化・復号化処理に必要な期間と画像フォー
マットに関する説明図である。MPEG符号化・復号化
処理の回路を使用してJPEG符号化・復号化処理を行
なう場合、JPEGの画像フォーマットが[4:2:
0]の時には、1マクロブロックの符号化・復号化にか
かる期間がMPEGの1マクロブロック処理期間と同じ
になる((a)及び(b)参照)。よってこの時には、
JPEG1フレーム分の画像がリアルタイムで処理でき
る。これにより、NTSCの場合だと毎秒30フレーム
のJPEG符号化・復号化が可能となりモーションJP
EGが実現できる。またJPEGの画像フォーマットが
[4:2:2]の場合には、1マクロブロックあたりの
処理期間がMPEGの1マクロブロック処理期間をオー
バーするので、(c)に示すようにMPEGでの2マク
ロブロック期間の時間をかけてJPEG1マクロブロッ
ク分の処理を行なう。図6では1マクロブロック処理の
期間中2/3だけ動作し、1/3休止する様子を現す
が、動作・休止期間の割合はこれを変更することも可能
である。
According to the MPEG2 standard, the number of pixels to be subjected to the encoding / decoding processing is a standard subset MP @ M
L (Main Profile at Main Le)
vel), 720 horizontal pixels × 480 vertical pixels.
This image format is called [4: 2: 0], and the sampling density of the chrominance signal is 1/4 that of the luminance signal as shown in (a) and (b). According to the JPEG standard, in addition to the [4: 2: 0] format which is the same as the MP @ ML of MPEG2, the number of pixels of the color difference signals (Cb, Cr) as shown in (c) and (d) is twice as large in the vertical direction. [4: 2: 2] format exists. There is no [4: 2: 2] format in MP @ ML. MPEG
In JPEG encoding / decoding, each frame is divided into macroblocks (16 pixels × 16 pixels), and processing is performed in fixed time slots in macroblock units. Since either format can be used in JPEG, the JPEG image format is [4:
2: 0], if JPEG processing is performed using an MPEG2 processing circuit, processing of one macroblock of a JPEG image can be performed in the same period as processing of one macroblock of an MPEG image. Become. Therefore, by this, motion JPEG (moving image is JPE every frame)
G encoding / decoding). When the JPEG image is in the [4: 2: 2] format, the processing for one macroblock of the JPEG image is performed over two macroblock periods of the MPEG image because the number of pixels is large. FIG. 6 is a diagram for explaining a period and an image format required for MPEG and JPEG encoding / decoding processing for one macroblock. When the JPEG encoding / decoding processing is performed using the MPEG encoding / decoding processing circuit, the JPEG image format is [4: 2:
0], the period required for encoding / decoding one macroblock is the same as the one macroblock processing period of MPEG (see (a) and (b)). So at this time,
Images of one JPEG frame can be processed in real time. As a result, in the case of NTSC, JPEG encoding / decoding of 30 frames per second becomes possible, and motion JP
EG can be realized. When the JPEG image format is [4: 2: 2], the processing period for one macroblock exceeds the processing period for one macroblock of MPEG, and therefore, as shown in FIG. The processing for one JPEG macroblock is performed over the time of the block period. Although FIG. 6 shows a state in which only one-third of the operation is performed during one macroblock process and a one-third pause is performed, the ratio of the operation and pause period can be changed.

【0027】図2は、本発明の第2の実施例であるMP
EG方式を用いた動画像復号化とJPEG方式を用いた
静止画像復号化を、回路を共有して行なう復号化装置の
ブロック図である。
FIG. 2 shows a second embodiment of the present invention.
FIG. 3 is a block diagram of a decoding device that performs video decoding using the EG method and still image decoding using the JPEG method by sharing circuits.

【0028】同図において19は、MPEG復号化時に
入力されたストリームを一時蓄積するバッファ、51は
入力されたストリームから復号化に必要な付加情報を読
み出すストリーム分離器、20はバッファ19から読み
出されたMPEGストリームを、MPEG規格で規定さ
れた符号化テーブル(固定テーブル)を用いて復号する
可変長復号化器、21はJPEG復号化時にデフォルト
の固定テーブルを用いて復号する可変長復号化器、27
はJPEG復号化時に固定テーブル以外の任意の符号化
テーブル(可変テーブル)を用いて復号する可変長復号
化器、28は27の処理とストリームから画像圧縮時の
量子化テーブル、量子化パラメータ等各データを分離す
る51の処理を主にソフトウェアで行なう復号化手段、
22はJPEG復号化時に使用され符号化テーブルに応
じて復号結果を選択する選択器、23はMPEG復号処
理とJPEG復号処理とで復号化する信号を切り替える
選択器、24はMPEGフレーム内復号化と、MPEG
フレーム間予測復号化及びJPEG復号化で処理を切り
替える選択器、25は必要に応じて画像サイズの変換を
行なうフォーマット変換器、26は20〜25、6〜9
の処理をハードウェアで高速に行なう復号化手段を、そ
れぞれ表す。またその他のブロックは、図1で示した第
1の実施例と同じである。
In the figure, reference numeral 19 denotes a buffer for temporarily storing a stream inputted at the time of MPEG decoding, 51 a stream separator for reading additional information necessary for decoding from the inputted stream, and 20 a buffer for reading from the buffer 19. A variable-length decoder for decoding the MPEG stream obtained by using an encoding table (fixed table) defined by the MPEG standard, 21 is a variable-length decoder for decoding by using a default fixed table at the time of JPEG decoding , 27
Is a variable length decoder for decoding using an arbitrary encoding table (variable table) other than the fixed table at the time of JPEG decoding, and 28 is a quantization table for image compression at the time of image compression, a quantization parameter, etc. Decoding means for performing the processing of separating data 51 mainly by software;
Reference numeral 22 denotes a selector which is used at the time of JPEG decoding and selects a decoding result in accordance with an encoding table, 23 denotes a selector which switches signals to be decoded by MPEG decoding processing and JPEG decoding processing, and 24 denotes MPEG intra-frame decoding. , MPEG
A selector for switching processing between inter-frame prediction decoding and JPEG decoding, 25 is a format converter for performing image size conversion as needed, 26 is 20 to 25, and 6 to 9
And decoding means for performing the processing at high speed by hardware. Other blocks are the same as those in the first embodiment shown in FIG.

【0029】MPEG方式の復号化の場合、各処理の動
作は以下に示す通りである。
In the case of MPEG decoding, the operation of each process is as follows.

【0030】入力されたMPEGストリームはバッファ
19に蓄積された後、可変長復号化器20に入力され
る。選択器23では、可変長復号化器20の結果が選択
されて逆量子化器6に送られる。逆量子化器6では、ス
トリームに含まれストリーム分離器51で抜き出された
量子化テーブルと量子化パラメータを用いて逆量子化を
行なう。逆量子化されたデータは、IDCT演算器7で
IDCT変換され、ブロック単位の画像データに戻され
た後に予測メモリ9に蓄積された予測フレームのデータ
と加算器8で加算されてフォーマット変換器25に送ら
れる。フォーマット変換器25では画像サイズの変換が
行なわれ、外部に出力される。
The input MPEG stream is stored in the buffer 19 and then input to the variable length decoder 20. In the selector 23, the result of the variable length decoder 20 is selected and sent to the inverse quantizer 6. The inverse quantizer 6 performs inverse quantization using the quantization table and the quantization parameter included in the stream and extracted by the stream separator 51. The inversely quantized data is subjected to IDCT conversion by the IDCT calculator 7 and returned to image data in block units, and then added to the data of the prediction frame stored in the prediction memory 9 by the adder 8 to be converted by the format converter 25. Sent to The format converter 25 converts the image size and outputs it to the outside.

【0031】JPEG方式の復号化の場合、各処理の動
作は以下に示す通りである。
In the case of JPEG decoding, the operation of each process is as follows.

【0032】入力されたストリームは、ストリーム分離
器51でストリーム中のヘッダ情報が抜き出され符号化
に使用された符号化テーブルが読み出された後、それが
JPEG規格で推奨されている固定テーブルかそれ以外
かに応じて可変長復号化器21もしくは27が選択的に
動作する。復号化器21では固定テーブルを用いた復号
化が、27では可変テーブルを用いた復号化がそれぞれ
行われる。選択器22では用いられた符号化テーブルに
応じて、固定テーブルの場合は21の、その他の可変テ
ーブルの場合は27の復号化結果が選択され選択器23
に出力される。選択器23では、JPEG復号化の場合
では選択器22の出力が選択されて逆量子化器6に送ら
れる。逆量子化器6では、ストリームに含まれた量子化
テーブルと量子化パラメータを用いて逆量子化を行な
う。逆量子化されたデータは、IDCT演算器7でID
CT変換され、ブロック単位の画像データに戻されて選
択器24を通りフォーマット変換器25に送られ出力さ
れる。可変長複合化27の出力か可変長複合化21の出
力のどちらを選択するかは、ユーザ−がモードが切り替
えることによって、どちらを選択するかを定めて使用す
る構成にしてもよい。また、可変テーブルを用いて符号
化されていることを選択器22が判断し、可変長複号化
器21(固定)の出力を選択するか可変長複号化器27
(可変)の出力を選択するかを切り替える構成としても
よい。JPEGの場合、固定のものであっても、ストリ
ーム中に符号化テーブルをいれておく必要がある。従っ
て、このストリーム中の符号化テーブルを見て、固定値
と可変値のどちらの処理化かを判別すればよい。なお、
この可変長複号化13に用いられる可変テーブルは、予
め何種類かをプログラムに組み込んでおいたものを使用
することとしてもよいし、符号化手段18にインターフ
ェースを設け、使用者等が可変長複号化器27の可変テ
ーブルを書き換え可能な構成とすれば、さらに符号化の
自由度を向上させることができ、最適な圧縮率で符号を
行うことが可能となる。
The input stream is obtained by extracting the header information in the stream by the stream separator 51 and reading out the encoding table used for encoding, and then reading it out from the fixed table recommended by the JPEG standard. The variable-length decoder 21 or 27 operates selectively depending on whether it is or not. The decoder 21 performs decoding using the fixed table, and the decoder 27 performs decoding using the variable table. The selector 22 selects 21 decoding results for the fixed table and 27 decoding results for the other variable tables according to the encoding table used.
Is output to In the case of JPEG decoding, the output of the selector 22 is selected by the selector 23 and sent to the inverse quantizer 6. The inverse quantizer 6 performs inverse quantization using the quantization table and the quantization parameter included in the stream. The inversely quantized data is processed by
The image data is subjected to CT conversion, returned to image data in block units, sent to a format converter 25 through a selector 24, and output. As to which of the output of the variable-length composite 27 and the output of the variable-length composite 21 is to be selected, a configuration may be employed in which the user switches between modes to determine which to select. The selector 22 determines that the encoding is performed using the variable table, and selects the output of the variable-length decoding unit 21 (fixed) or selects the output of the variable-length decoding unit 27.
It may be configured to switch whether to select (variable) output. In the case of JPEG, even if it is fixed, it is necessary to put an encoding table in the stream. Therefore, it is sufficient to determine whether to process the fixed value or the variable value by looking at the encoding table in the stream. In addition,
The variable table used for the variable-length decoding 13 may be a table in which several types are incorporated in the program in advance, or an interface is provided in the encoding means 18 so that the user or the like can use the variable-length decoding. If the variable table of the decoder 27 is configured to be rewritable, the degree of freedom of encoding can be further improved, and encoding can be performed with an optimal compression ratio.

【0033】以上、第2の実施例によれば、JPEG復
号化の時とMPEG復号化で、逆量子化器6、IDCT
演算器7が共用でき、MPEG・JPEG復号化器のハ
ードウェア回路が削減できる。また、可変長復号化器2
0と21は固定テーブルを切り替えることで、MPEG
処理時とJPEG処理時で回路が共有できる。
As described above, according to the second embodiment, the inverse quantizer 6 and the IDCT are used for JPEG decoding and MPEG decoding.
The arithmetic unit 7 can be shared, and the hardware circuit of the MPEG / JPEG decoder can be reduced. Also, the variable length decoder 2
0 and 21 are MPEG tables by switching the fixed table.
Circuits can be shared between processing and JPEG processing.

【0034】第2の実施例では、可変長復号化器20と
21を別々に入力させる構成としたが、複号化手段26
の入力を共通にし、複号化手段26内で可変長復号化器
20と21に分配させる構成としてもよい。
In the second embodiment, the variable length decoders 20 and 21 are separately input.
May be shared and distributed to the variable length decoders 20 and 21 in the decoding means 26.

【0035】図3は、本発明の第3の実施例であるJP
EG方式を用いた静止画符号化装置のブロック図であ
る。同図において、29はJPEG方式の圧縮処理を高
速に行なうハードウェアの符号化手段、30は主にソフ
トウェアで処理を行なう符号化手段をそれぞれ表す。な
お、その他の符号で示したブロックは図1の場合と同じ
である。
FIG. 3 shows a third embodiment of the present invention, JP.
FIG. 2 is a block diagram of a still image encoding device using the EG method. In the figure, reference numeral 29 denotes hardware encoding means for performing high-speed JPEG compression processing, and reference numeral 30 denotes encoding means for mainly performing processing by software. The blocks denoted by other reference numerals are the same as those in FIG.

【0036】入力された画像データはブロック化器1に
おいて8画素×8画素のブロック単位のデータに変換さ
れる。変換されたデータはDCT演算器4に送られ、ブ
ロック単位でDCT変換される。DCT変換されたデー
タは、量子化器5で所定の係数を用いて量子化される。
量子化されたデータは可変長符号化器10に送られ、連
続する0係数の数と非0係数の組み合わせを事象とし
て、固定テーブルを用いた可変長符号化が行われる。量
子化結果は同時に可変長符号化器13に送られ、画像の
性質などに合わせて調節したそれ以外の可変テーブルを
用いて可変長符号化が行なわれる。選択器14は、圧縮
する画像の特性に応じて、固定テーブルを用いた符号化
結果と可変テーブルを用いた符号化結果のうち符号化効
率が高い方を選択してストリーム多重器16に送る。具
体的には、可変長符号化器10と可変長符号化器13の
出力データの総量を比較し、データ量の少ないほうを選
択することにより、圧縮率を高めることが出来る。な
お、選択器14がどちらを選択するかを使用者が決定
し、符号化手段30の外部から設定される構成としても
よい。ストリーム多重器16では、可変長符号化された
データに対し、JPEGストリームとして必要な各種情
報(ヘッダ、量子化テーブル、量子化パラメータ、画像
サイズ等)を付加し出力する。
The input image data is converted into data of 8 pixels × 8 pixels in a block unit by the block converter 1. The converted data is sent to the DCT calculator 4 where it is DCT-converted in block units. The DCT-transformed data is quantized by a quantizer 5 using a predetermined coefficient.
The quantized data is sent to the variable-length encoder 10, and variable-length encoding using a fixed table is performed using a combination of the number of consecutive 0 coefficients and a non-zero coefficient as an event. The quantization result is sent to the variable-length encoder 13 at the same time, and variable-length encoding is performed using another variable table adjusted according to the characteristics of the image and the like. The selector 14 selects one of the coding result using the fixed table and the coding result using the variable table, which has higher coding efficiency, according to the characteristics of the image to be compressed, and sends the selected result to the stream multiplexer 16. Specifically, the compression rate can be increased by comparing the total amount of output data of the variable length encoder 10 and the variable length encoder 13 and selecting the smaller amount of data. The user may determine which of the selectors 14 to select, and the setting may be made from outside the encoding unit 30. The stream multiplexer 16 adds various information (a header, a quantization table, a quantization parameter, an image size, etc.) necessary for a JPEG stream to the variable-length-encoded data, and outputs the data.

【0037】図4は、本発明の第4の実施例である、J
PEG方式を用いた静止画復号化装置のブロック図であ
る。同図において、51は入力されたストリームから復
号化に必要な情報を抜き出すストリーム分離器、27は
任意の符号化テーブル(可変テーブル)を用いて圧縮さ
れたストリームを復号化する可変長復号器、52は5
1、27等を含み主にソフトウェアを用いて処理を行な
う復号化手段、21は、JPEG規格により推奨されて
いる固定テーブルを用いて復号化を行なう可変長復号
器、29は復号に必要な各処理21、22、6、7、2
5をハードウェアを用いて高速に行なう復号化手段をそ
れぞれ表す。なおそれ以外のブロックは図2と同じもの
である。
FIG. 4 shows a fourth embodiment of the present invention.
It is a block diagram of the still image decoding device using PEG system. In the figure, reference numeral 51 denotes a stream separator for extracting information necessary for decoding from an input stream; 27, a variable-length decoder for decoding a stream compressed using an arbitrary encoding table (variable table); 52 is 5
Decoding means for performing processing mainly using software, including 1, 27, etc .; 21, a variable length decoder for performing decoding using a fixed table recommended by the JPEG standard; Processing 21, 22, 6, 7, 2
5 represents decoding means for performing high-speed decoding using hardware. The other blocks are the same as those in FIG.

【0038】入力されたストリームはストリーム分離器
51でヘッダ内の符号化テーブルが抜き出され、可変長
復号化器21および27に送られる。復号化器21では
固定テーブルを用いた復号化が、27では可変テーブル
を用いた復号化がそれぞれ選択的に行われる。選択器2
2ではストリーム中の符号化テーブルに応じて、復号化
結果が選択され逆量子化器6に送られる。なお、選択器
22がどちらを選択するかを使用者が決定し、符号化手
段29の外部からどちらを選択するかが設定される構成
としてもよい。逆量子化器6では、ストリームに含まれ
た量子化テーブルと量子化パラメータを用いて逆量子化
が行なわれる。逆量子化されたデータは、IDCT演算
器7でIDCT変換され、ブロック単位の画像データに
戻された後、フォーマット変換器25でフレーム画像に
並べ替えられて出力される。
From the input stream, the encoding table in the header is extracted by the stream separator 51 and sent to the variable length decoders 21 and 27. The decoder 21 selectively performs decoding using the fixed table, and the decoder 27 selectively performs decoding using the variable table. Selector 2
In 2, a decoding result is selected according to the encoding table in the stream and sent to the inverse quantizer 6. Note that a configuration may be adopted in which the user determines which of the selectors 22 is to be selected, and which is selected from outside the encoding unit 29. In the inverse quantizer 6, inverse quantization is performed using the quantization table and the quantization parameter included in the stream. The inversely quantized data is subjected to IDCT conversion by the IDCT calculator 7 and is returned to image data in block units, and is then rearranged into frame images by the format converter 25 and output.

【0039】図7、図8及び図9は、MPEG・JPE
G処理における量子化器・逆量子化器の説明図である。
FIGS. 7, 8 and 9 show MPEG / JPE
FIG. 3 is an explanatory diagram of a quantizer / inverse quantizer in G processing.

【0040】MPEG符号化・復号化とJPEG符号化
・復号化とで共通の処理回路を使用する時、画像のブロ
ック化、DCT変換、IDCT変換、フレーム化ではほ
ぼ同じ回路が使用できる。ただし、量子化、逆量子化の
際にはMPEGとJPEGで使用する量子化テーブルが
異なる。MPEGの符号化方式には、フレーム内符号化
で圧縮を行なう場合(Intra符号化)とフレーム間
の差分を用いて圧縮を行なう場合(Non−Intra
符号化)とがある。MPEG及びJPEGでの量子化
は、概ね以下の式に従って行われる。
When a common processing circuit is used for MPEG encoding / decoding and JPEG encoding / decoding, almost the same circuit can be used for image blocking, DCT transformation, IDCT transformation, and framing. However, the quantization tables used in MPEG and JPEG are different for quantization and inverse quantization. MPEG coding methods include a case where compression is performed by intra-frame coding (Intra coding) and a case where compression is performed using a difference between frames (Non-Intra coding).
Encoding). Quantization in MPEG and JPEG is generally performed according to the following equation.

【0041】 Q={D(i,j)×16}/{Qs × W(i,j)}(i,j=0〜7)・ ・・(式1) ここでD(i,j)は入力されたDCT結果、Qsは発
生符号量を制御するためのパラメータ、W(i,j)は
DCT結果の座標位置(i,j)に対応した量子化テー
ブル値、Qは量子化結果をそれぞれ表す。これを実現す
る回路は図7(a)に示すようになる。またこの時の座
標位置を(b)に示す。
Q = {D (i, j) × 16} / {Qs × W (i, j)} (i, j = 0 to 7) (Equation 1) where D (i, j) Is an input DCT result, Qs is a parameter for controlling the generated code amount, W (i, j) is a quantization table value corresponding to the coordinate position (i, j) of the DCT result, and Q is a quantization result. Respectively. A circuit for realizing this is as shown in FIG. The coordinate position at this time is shown in FIG.

【0042】MPEG及びJPEGにおける逆量子化
は、概ね以下の式に従って行われる。
The inverse quantization in MPEG and JPEG is generally performed according to the following equation.

【0043】 IQ=D’(i,j)×{Qs × W(i,j)}/16(i,j=0〜7)・ ・・(式2) ここでD’(i,j)は入力された可変長復号化結果、
Qsは発生符号量を制御するためのパラメータ、W
(i,j)は可変長復号化結果の座標位置(i,j)に
対応した量子化テーブル値、IQは逆量子化結果をそれ
ぞれ表す。これを実現する回路を図8に示す。またこの
時の座標位置を(b)に示す。
IQ = D ′ (i, j) × {Qs × W (i, j)} / 16 (i, j = 0 to 7) (Equation 2) where D ′ (i, j) Is the input variable-length decoding result,
Qs is a parameter for controlling the generated code amount, W
(I, j) represents a quantization table value corresponding to the coordinate position (i, j) of the variable length decoding result, and IQ represents an inverse quantization result. FIG. 8 shows a circuit for realizing this. The coordinate position at this time is shown in FIG.

【0044】MPEG規格では、Intra符号化とN
on−Intra符号化とでは異なる量子化テーブルを
使用する。この量子化テーブル(MPEG規格でのデフ
ォルト値)は図9に示す様に、それぞれブロック内の各
画素に対応した形で8×8個の要素を持つ。この量子化
テーブルの各値は画像により選ぶことができ、量子化・
逆量子化の際には任意のテーブル値(2ブロック:12
8個の要素)をメモリ等の記憶素子に書き込み、Int
ra符号化とNon−Intra符号化で適応的にそれ
らを切り替えて使用する。JPEG規格では輝度信号の
量子化・逆量子化と色差信号の量子化・逆量子化とで異
なった量子化テーブルを用いるので、輝度信号に対応し
た量子化テーブルと色差信号に対応した量子化テーブル
とをMPEG処理時と同様に上記メモリに書き込み、こ
れらを輝度信号・色差信号の処理時に切り替えて使用す
る。これによりMPEGとJPEGで量子化・逆量子化
処理回路が共有できる。
In the MPEG standard, Intra encoding and N
A different quantization table is used in on-Intra coding. As shown in FIG. 9, the quantization table (default value in the MPEG standard) has 8 × 8 elements corresponding to each pixel in the block. Each value of this quantization table can be selected according to the image.
At the time of inverse quantization, an arbitrary table value (2 blocks: 12
8 elements) into a storage element such as a memory, and Int
They are switched and used adaptively in ra encoding and Non-Intra encoding. According to the JPEG standard, different quantization tables are used for the quantization and inverse quantization of the luminance signal and the quantization and inverse quantization of the chrominance signal. Therefore, a quantization table corresponding to the luminance signal and a quantization table corresponding to the chrominance signal are used. Are written in the memory in the same manner as in the MPEG processing, and are switched and used in processing the luminance signal and the color difference signal. As a result, the quantization / inverse quantization circuit can be shared between MPEG and JPEG.

【0045】図10は、本発明の第5の実施例であり、
第1及び第2の実施例に用いられたMPEG・JPEG
共用の量子化器5と逆量子化器6を拡張したブロック図
である。
FIG. 10 shows a fifth embodiment of the present invention.
MPEG / JPEG used in the first and second embodiments
FIG. 2 is a block diagram in which a common quantizer 5 and an inverse quantizer 6 are expanded.

【0046】同図において、31は量子化テーブルの全
128個の要素値を記憶するメモリ、32はメモリ31
から順次読み出される量子化テーブル値、33は量子化
器5に入力されるDCT係数、34は量子化器5から出
力される量子化結果、35は逆量子化器6から出力され
るDCT係数、36は逆量子化器6に入力される可変長
復号化結果、37はメモリからデータを読み出すための
アドレス信号、38はアドレス0〜63の読み出しとア
ドレス64〜127の読み出しを選択する選択器、39
はアドレス0〜63を発生するアドレス発生器、40は
アドレス64〜127を発生するアドレス発生器、41
は選択器38の切り替え信号、42はMPEG処理とJ
PEG処理でアドレスの切り替えを制御する選択器、5
0は外部CPUから量子化テーブルの要素値をメモリ3
1に書き込むための入力信号を、それぞれ表す。
In the figure, 31 is a memory for storing all 128 element values of the quantization table, and 32 is a memory 31
, A quantization table value read out from the quantizer 5, a DCT coefficient input to the quantizer 5, a quantization result output from the quantizer 5, a DCT coefficient output from the inverse quantizer 6, 36 is a variable length decoding result input to the inverse quantizer 6, 37 is an address signal for reading data from the memory, 38 is a selector for selecting reading of addresses 0 to 63 and reading of addresses 64 to 127, 39
Is an address generator for generating addresses 0 to 63, 40 is an address generator for generating addresses 64-127, 41
Is a switching signal of the selector 38, 42 is MPEG processing and J
Selector for controlling switching of addresses in PEG processing, 5
0 is the value stored in the quantization table from the external CPU
1 represents an input signal to be written into “1”.

【0047】MPEG量子化・逆量子化では、デフォル
トの量子化テーブルを使用する場合、図9に示す量子化
テーブルを外部CPU等から入力50によりメモリ31
に書き込む。このとき、メモリ31のアドレス0〜63
(領域A)にはIntra量子化テーブル、アドレス6
4〜127(領域B)にはNon−Intra量子化テ
ーブルを書き込む。ただしこれは書き込む領域を逆にし
ても問題はない。MPEG処理では、選択器42でIn
tra及びNon−Intraの切り替え信号が選択さ
れ選択器38の切り替え信号となる。Intra符号化
・復号化の際には選択器38でアドレス発生器39の生
成するアドレス信号をメモリ31に入力し、領域Aから
量子化テーブルが読み出される。このとき量子化器5に
はDCT係数33の座標位置(i,j)に応じた量子化
テーブルが入力され、逆量子化器6には可変長復号化結
果36の座標位置(i,j)に応じた量子化テーブルが
入力される。Non−Intra符号化・復号化の際に
は選択器38でアドレス発生器40の生成するアドレス
信号がメモリ31に入力し、領域Bから量子化テーブル
が読み出される。このとき量子化器5にはDCT係数3
3の座標位置(i,j)に応じた量子化テーブルが入力
され、逆量子化器6には可変長復号化結果36の座標位
置(i,j)に応じた量子化テーブルが入力される。な
お上記(i,j)は、図7(b)及び図8(b)に示す
ものと対応する。
In the MPEG quantization / inverse quantization, when a default quantization table is used, the quantization table shown in FIG.
Write to. At this time, addresses 0 to 63 of the memory 31
(Area A) has an Intra quantization table, address 6
A Non-Intra quantization table is written in 4-127 (area B). However, there is no problem even if the writing area is reversed. In the MPEG processing, the selector 42 selects In
The switching signal of tra and Non-Intra is selected and becomes the switching signal of the selector 38. At the time of Intra encoding / decoding, the selector 38 inputs the address signal generated by the address generator 39 to the memory 31 and reads the quantization table from the area A. At this time, a quantization table corresponding to the coordinate position (i, j) of the DCT coefficient 33 is input to the quantizer 5, and the coordinate position (i, j) of the variable-length decoding result 36 is input to the inverse quantizer 6. Is input. At the time of Non-Intra encoding / decoding, the selector 38 inputs the address signal generated by the address generator 40 to the memory 31 and reads the quantization table from the area B. At this time, the DCT coefficient 3
The quantization table corresponding to the coordinate position (i, j) of the variable length decoding result 36 is input to the inverse quantizer 6. . Note that the above (i, j) corresponds to those shown in FIGS. 7B and 8B.

【0048】JPEG処理では、輝度信号用量子化テー
ブルを領域Aに、色差信号用量子化テーブルを領域B
に、外部CPUから入力50によりそれぞれ書き込む。
量子化・逆量子化の際には選択器42で輝度信号・色差
信号の切り替え信号が選択され選択器38の切り替え信
号となる。輝度信号の符号化・復号化の際には選択器3
8でアドレス発生器39の生成するアドレス信号がメモ
リ31に入力し、領域Aから量子化テーブルが読み出さ
れる。このとき量子化器5にはDCT係数33の座標位
置(i,j)に応じた量子化テーブルが入力され、逆量
子化器6には可変長復号化結果36の座標位置(i,
j)に応じた量子化テーブルが入力される。色差信号の
符号化・復号化の際には選択器38でアドレス発生器4
0の生成するアドレス信号がメモリ31に入力し、領域
Bから量子化テーブルが読み出される。このとき量子化
器5にはDCT係数33の座標位置(i,j)に応じた
量子化テーブルが入力され、逆量子化器6には可変長復
号化結果36の座標位置(i,j)に応じた量子化テー
ブルが入力される。なお上記(i,j)は、図7(b)
及び図8(b)に示すものと対応する。
In the JPEG processing, the quantization table for the luminance signal is set in the area A, and the quantization table for the color difference signal is set in the area B.
Are written by the input 50 from the external CPU.
At the time of quantization / inverse quantization, a selector 42 selects a switching signal for a luminance signal and a color difference signal, which becomes a switching signal for the selector 38. The selector 3 is used for encoding / decoding the luminance signal.
At 8, the address signal generated by the address generator 39 is input to the memory 31, and the quantization table is read from the area A. At this time, a quantization table corresponding to the coordinate position (i, j) of the DCT coefficient 33 is input to the quantizer 5, and the coordinate position (i, j) of the variable-length decoding result 36 is input to the inverse quantizer 6.
A quantization table corresponding to j) is input. When encoding / decoding the color difference signal, the selector 38 controls the address generator 4
The address signal generated by 0 is input to the memory 31, and the quantization table is read from the area B. At this time, a quantization table corresponding to the coordinate position (i, j) of the DCT coefficient 33 is input to the quantizer 5, and the coordinate position (i, j) of the variable-length decoding result 36 is input to the inverse quantizer 6. Is input. Note that the above (i, j) corresponds to FIG.
8 (b).

【0049】第5の実施例では、外部CPUから入力さ
れた量子化テーブルを書きこむ構成としたが、外部から
書きこむ構成とすると外部CPUに負担がかかる。MP
EG処理で使用する量子化テーブルは固定値であるため
にMPEG処理で使用するデフォルトの量子化テーブル
を符号化手段10の内部ROMに記憶させておき、内部
ROMからメモリ31にロードする構成とすれば、CP
Uに負荷がかかるのを防止することが出来る。
In the fifth embodiment, the quantization table input from the external CPU is written. However, if the configuration is written from the outside, a load is imposed on the external CPU. MP
Since the quantization table used in the EG processing is a fixed value, a default quantization table used in the MPEG processing is stored in the internal ROM of the encoding unit 10 and is loaded from the internal ROM to the memory 31. If, CP
U can be prevented from being overloaded.

【0050】このロードを、リセット時や、MPEG処
理・JPEG処理のそれぞれのモードの切り替え時な
ど、処理モードに応じて、対応するデフォルトの量子化
テーブルを内部ROMからメモリ31に自動的に行わせ
る構成とすれば、使い勝手を向上させることが出来、便
利である。
This loading is automatically performed from the internal ROM to the memory 31 according to the processing mode, such as at the time of resetting or switching between the respective modes of the MPEG processing and the JPEG processing. With this configuration, usability can be improved and it is convenient.

【0051】図11は、本発明の第6の実施例であり、
第1及び第2の実施例に用いられた、MPEG・JPE
G共用で、量子化・逆量子化の処理が独立で行なえる量
子化器5と逆量子化器6を拡張したブロック図である。
FIG. 11 shows a sixth embodiment of the present invention.
MPEG JPE used in the first and second embodiments
FIG. 3 is a block diagram in which a quantizer 5 and an inverse quantizer 6 that can perform independent quantization and inverse quantization processes for G sharing are expanded.

【0052】同図において、31は量子化のために量子
化テーブルの全128個の要素値を記憶するメモリ、3
2はメモリ31から順次読み出される量子化テーブル
値、33は量子化器5に入力されるDCT係数、34は
量子化器5から出力される量子化結果、37はメモリか
らデータを読み出すためのアドレス信号、38はアドレ
ス0〜63の読み出しとアドレス64〜127の読み出
しを選択する選択器、39はアドレス0〜63を発生す
るアドレス発生器、40はアドレス64〜127を発生
するアドレス発生器、41は選択器38の切り替え信
号、42はMPEG処理とJPEG処理でアドレスの切
り替えを制御する選択器、50は外部CPUから量子化
テーブルの要素値をメモリ31に書き込むための入力信
号、35は逆量子化器6から出力されるDCT係数、3
6は逆量子化器6に入力される可変長復号化結果、43
は逆量子化のために量子化テーブルの全128個の要素
値を記憶するメモリ、53はメモリ43から順次読み出
される量子化テーブル、44はメモリ43からデータを
読み出すためのアドレス信号、45は逆量子化時のアド
レス0〜63の読み出しとアドレス64〜127の読み
出しを選択する選択器、46はアドレス0〜63を発生
するアドレス発生器、47はアドレス64〜127を発
生するアドレス発生器、48は選択器45の切り替え信
号、49はMPEG処理とJPEG処理でアドレスの切
り替えを制御する選択器、50は外部CPUから量子化
テーブルの要素値をメモリ43に書き込むための入力信
号を、それぞれ表す。
In the figure, reference numeral 31 denotes a memory for storing all 128 element values of a quantization table for quantization;
2 is a quantization table value sequentially read from the memory 31, 33 is a DCT coefficient input to the quantizer 5, 34 is a quantization result output from the quantizer 5, and 37 is an address for reading data from the memory. A signal 38, a selector for selecting the reading of addresses 0 to 63 and a reading of addresses 64 to 127; 39, an address generator for generating addresses 0 to 63; 40, an address generator for generating addresses 64 to 127; Is a switching signal of the selector 38, 42 is a selector for controlling the switching of the addresses by the MPEG processing and the JPEG processing, 50 is an input signal for writing the element value of the quantization table from the external CPU to the memory 31, and 35 is the inverse quantization signal. DCT coefficient output from the transformer 6
6 is a variable length decoding result input to the inverse quantizer 6;
Is a memory for storing all 128 element values of the quantization table for inverse quantization, 53 is a quantization table sequentially read from the memory 43, 44 is an address signal for reading data from the memory 43, and 45 is an inverse signal. A selector for selecting the reading of addresses 0 to 63 and the reading of addresses 64 to 127 during quantization, 46 is an address generator for generating addresses 0 to 63, 47 is an address generator for generating addresses 64 to 127, 48 Represents a switching signal of the selector 45, 49 represents a selector for controlling the switching of addresses by MPEG processing and JPEG processing, and 50 represents an input signal for writing an element value of the quantization table from the external CPU to the memory 43.

【0053】MPEG量子化・逆量子化では、デフォル
トの量子化テーブルを使用する場合、図9に示す量子化
テーブルを外部CPU等から入力50によりメモリ32
及びメモリ43に同時に書き込む。このとき、メモリ3
2のアドレス0〜63(領域A)にはIntra量子化
テーブル、アドレス64〜127(領域B)にはNon
−Intra量子化テーブルを書き込むと同時に、メモ
リ43にも同じ値を書き込む。
In the case of using the default quantization table in the MPEG quantization / inverse quantization, the quantization table shown in FIG.
And writing to the memory 43 at the same time. At this time, memory 3
Intra quantization table for addresses 0 to 63 (area A) of 2 and Non for addresses 64 to 127 (area B)
At the same time as writing the Intra quantization table, the same value is also written to the memory 43.

【0054】以下、まず量子化処理の場合について、メ
モリ31の動作を中心に説明する。MPEG処理では、
選択器42でIntra及びNon−Intraの切り
替え信号が選択され選択器38の切り替え信号となる。
Intra符号化の際には選択器38でアドレス発生器
39の生成するアドレス信号をメモリ31に入力し、領
域Aから量子化テーブルが読み出される。このとき量子
化器5にはDCT係数33の座標位置(i,j)に応じ
た量子化テーブルが入力される。Non−Intra符
号化の際には選択器38でアドレス発生器40の生成す
るアドレス信号をメモリ31に入力し、領域Bから量子
化テーブルが読み出される。このとき量子化器5にはD
CT係数33の座標位置(i,j)に応じた量子化テー
ブルが入力される。なお上記(i,j)は、図7(b)
及び図8(b)に示すものと対応する。
Hereinafter, the operation of the memory 31 will be mainly described in the case of the quantization processing. In MPEG processing,
The selector 42 selects a signal for switching between Intra and Non-Intra and becomes a switching signal for the selector 38.
At the time of Intra encoding, the selector 38 inputs the address signal generated by the address generator 39 to the memory 31 and reads the quantization table from the area A. At this time, a quantization table corresponding to the coordinate position (i, j) of the DCT coefficient 33 is input to the quantizer 5. At the time of Non-Intra encoding, the selector 38 inputs the address signal generated by the address generator 40 to the memory 31 and reads the quantization table from the area B. At this time, the quantizer 5 has D
A quantization table corresponding to the coordinate position (i, j) of the CT coefficient 33 is input. Note that the above (i, j) corresponds to FIG.
8 (b).

【0055】JPEG処理では、輝度信号用量子化テー
ブルをメモリ31の領域Aに、色差信号用量子化テーブ
ルを領域Bに、外部CPUから入力50によりそれぞれ
書き込む。量子化の際には選択器42で輝度信号・色差
信号の切り替え信号が選択され選択器38の切り替え信
号となる。輝度信号の符号化の際には選択器38でアド
レス発生器39の生成するアドレス信号をメモリ31に
入力し、領域Aから量子化テーブルが読み出される。こ
のとき量子化器5にはDCT係数33の座標位置(i,
j)に応じた量子化テーブルが入力される。色差信号の
符号化の際には選択器38でアドレス発生器40の生成
するアドレス信号をメモリ31に入力し、領域Bから量
子化テーブルが読み出される。このとき量子化器5には
DCT係数33の座標位置(i,j)に応じた量子化テ
ーブルが入力される。なお上記(i,j)は、図7
(b)及び図8(b)に示すものと対応する。
In the JPEG processing, the quantization table for the luminance signal is written in the area A of the memory 31 and the quantization table for the color difference signal is written in the area B of the memory 31 by the input 50 from the external CPU. At the time of quantization, a selector 42 selects a luminance signal / color difference signal switching signal, which becomes a selector 38 switching signal. At the time of encoding the luminance signal, the selector 38 inputs the address signal generated by the address generator 39 to the memory 31 and reads the quantization table from the area A. At this time, the quantizer 5 stores the coordinate position (i,
A quantization table corresponding to j) is input. At the time of encoding the color difference signal, the selector 38 inputs the address signal generated by the address generator 40 to the memory 31 and reads the quantization table from the area B. At this time, a quantization table corresponding to the coordinate position (i, j) of the DCT coefficient 33 is input to the quantizer 5. Note that the above (i, j) corresponds to FIG.
8 (b) and FIG. 8 (b).

【0056】次に、逆量子化処理の場合について、メモ
リ43の動作を中心にの説明する。MPEG復号化で
は、選択器49でIntra及びNon−Intraの
切り替え信号が選択され選択器45の切り替え信号とな
る。Intra復号化の際には選択器45でアドレス発
生器46の生成するアドレス信号がメモリ43に入力
し、領域Aから量子化テーブルが読み出される。このと
き逆量子化器6には可変長復号化結果36の座標位置
(i,j)に応じた量子化テーブルが入力される。No
n−Intra復号化の際には選択器45でアドレス発
生器47の生成するアドレス信号がメモリ43に入力
し、領域Bから量子化テーブルが読み出される。このと
き逆量子化器6には可変長復号化結果36の座標位置
(i,j)に応じた量子化テーブルが入力される。なお
上記(i,j)は、図7(b)及び図8(b)に示すも
のと対応する。
Next, the operation of the inverse quantization process will be described focusing on the operation of the memory 43. In the MPEG decoding, the selector 49 selects a signal for switching between Intra and Non-Intra, and becomes a switching signal for the selector 45. At the time of Intra decoding, the selector 45 inputs the address signal generated by the address generator 46 to the memory 43, and reads the quantization table from the area A. At this time, a quantization table corresponding to the coordinate position (i, j) of the variable length decoding result 36 is input to the inverse quantizer 6. No
At the time of n-Intra decoding, the selector 45 inputs the address signal generated by the address generator 47 to the memory 43, and reads the quantization table from the area B. At this time, a quantization table corresponding to the coordinate position (i, j) of the variable length decoding result 36 is input to the inverse quantizer 6. Note that the above (i, j) corresponds to those shown in FIGS. 7B and 8B.

【0057】JPEG処理では、輝度信号用量子化テー
ブルをメモリ43の領域Aに、色差信号用量子化テーブ
ルを領域Bに、外部CPUから入力50によりそれぞれ
書き込む。逆量子化の際には選択器49で輝度信号・色
差信号の切り替え信号が選択され選択器45の切り替え
信号となる。輝度信号の復号化の際には選択器45でア
ドレス発生器46の生成するアドレス信号をメモリ43
に入力し、領域Aから量子化テーブルが読み出される。
このとき逆量子化器6には可変長復号結果36の座標位
置(i,j)に応じた量子化テーブルが入力される。色
差信号の復号化の際には選択器45でアドレス発生器4
7の生成するアドレス信号がメモリ43に入力し、領域
Bから量子化テーブルが読み出される。このとき逆量子
化器6には可変長復号化結果36の座標位置(i,j)
に応じた量子化テーブルが入力される。なお上記(i,
j)は、図7(b)及び図8(b)に示すものと対応す
る。
In the JPEG processing, the quantization table for the luminance signal is written in the area A of the memory 43, and the quantization table for the color difference signal is written in the area B of the memory 43 by the input 50 from the external CPU. At the time of inverse quantization, a selector 49 selects a switching signal of a luminance signal and a color difference signal, which is a switching signal of the selector 45. When decoding the luminance signal, the address signal generated by the address generator 46 is stored in the selector 43 by the selector 45.
, And the quantization table is read from the area A.
At this time, a quantization table corresponding to the coordinate position (i, j) of the variable length decoding result 36 is input to the inverse quantizer 6. When the color difference signal is decoded, the address generator 4 is selected by the selector 45.
7 is input to the memory 43, and the quantization table is read from the area B. At this time, the coordinate position (i, j) of the variable length decoding result 36 is stored in the inverse quantizer 6.
Is input. Note that (i,
j) corresponds to those shown in FIGS. 7B and 8B.

【0058】なおリセット時には、MPEG処理・JP
EG処理のそれぞれもモードに応じて、対応するデフォ
ルトの量子化テーブルを内部ROMからメモリ31とメ
モリ43に自動ロードするようにしてもよい。
At the time of reset, MPEG processing, JP
In each of the EG processes, a corresponding default quantization table may be automatically loaded from the internal ROM into the memories 31 and 43 according to the mode.

【0059】なお、第6の実施例では、外部CPUから
入力された量子化テーブルを書きこむ構成としたが、外
部から書きこむ構成とすると外部CPUに負担がかか
る。MPEG処理で使用する量子化テーブルは固定値で
あるためにMPEG処理で使用するデフォルトの量子化
テーブルと逆量子化テーブルを符号化手段10の内部R
OMに記憶させておき、内部ROMからメモリ31、4
3にロードする構成とすれば、CPUに負荷がかかるの
を防止することが出来る。
In the sixth embodiment, the quantization table input from the external CPU is written. However, if the quantization table is written from the outside, a load is imposed on the external CPU. Since the quantization table used in the MPEG processing is a fixed value, the default quantization table and the inverse quantization table used in the MPEG processing are stored in the internal R of the encoding means 10.
OM, and from the internal ROM to the memories 31, 4
3, the load on the CPU can be prevented.

【0060】このロードを、リセット時や、MPEG処
理・JPEG処理のそれぞれのモードの切り替え時な
ど、処理モードに応じて、対応するデフォルトの量子化
テーブルを内部ROMからメモリ31に自動的に行わせ
る構成とすれば、使い勝手を向上させることが出来、便
利である。
This loading is automatically performed from the internal ROM to the memory 31 according to the processing mode, such as at the time of resetting or switching between the respective modes of MPEG processing and JPEG processing. With this configuration, usability can be improved and it is convenient.

【0061】第6の実施例によれば、量子化・逆量子化
器を別々に設けることにより、量子化処理と逆量子化処
理を同時に独立で行なうことができ、量子化・逆量子化
を両方行なうMPEG符号化処理において、両処理を交
互に時間を分けて行なう必要がなくなり、時間的な制約
が軽減できる。
According to the sixth embodiment, by separately providing the quantizer / inverse quantizer, the quantization process and the inverse quantization process can be performed simultaneously and independently. In the MPEG encoding process that performs both processes, it is not necessary to perform both processes alternately at different times, and time constraints can be reduced.

【0062】上記図1と図2を統合して動画像・静止画
像の符号化復号化装置を同様に実現できる。また 図3
と図4を統合して静止画像の符号化復号化装置を同様に
実現できる。
By integrating FIGS. 1 and 2 above, a moving picture / still picture coding / decoding apparatus can be realized in the same manner. FIG.
And FIG. 4 can be integrated to realize a still image encoding / decoding device in the same manner.

【0063】次に、第1から第6の実施例の符号化装置
または複号化装置を用いた撮像装置の例を図12に示
す。60はレンズ、61は撮像素子、62は増幅器、6
3はアナログ信号をディジタル信号に変換するアナログ
ディジタル変換器、64はディジタル信号を処理して画
像信号を生成する信号処理回路、65は映像信号を一次
的に記憶するバッファメモリ、66は第1から第6の実
施例の符号化装置または複号化装置であるCODEC、
67は圧縮画像信号を記憶するフラッシュメモリなどの
メモリ、68は信号処理回路64、バッファメモリ6
5、CODEC66、メモリ67などを制御する制御回
路、69は電源投入や動画/静止画モードの切り替えを
指示する指示手段、70は共通通信手段である。被写体
像はレンズを通して撮像素子61上に結像され、撮像素
子61にて光電変換され、電気信号が生成される。電気
信号は増幅器62にて増幅され、増幅されたアナログ電
気信号は、A/D変換器63にてディジタル信号に変換
される。ディジタル信号は信号処理回路64にて所定の
処理を施され、いったんバッファメモリ65に書きこま
れる。バッファメモリ65に保持された画像信号をCO
DEC66にて符号化し、圧縮信号を生成し、メモリ6
7に記憶させる。本実施例では、CODEC66にて動
画処理を行うMPEG処理と静止画の処理を行うJPE
G処理で、一部共通の回路を使用できるので、回路規模
自体も低減することが出来るが、撮像装置自体も軽量
化、コンパクト化、低消費電力化することが出来る。
Next, FIG. 12 shows an example of an image pickup apparatus using the coding apparatus or the decoding apparatus according to the first to sixth embodiments. 60 is a lens, 61 is an image sensor, 62 is an amplifier, 6
Reference numeral 3 denotes an analog-to-digital converter for converting an analog signal into a digital signal; 64, a signal processing circuit for processing a digital signal to generate an image signal; 65, a buffer memory for temporarily storing a video signal; CODEC which is an encoding device or a decoding device of the sixth embodiment,
67 is a memory such as a flash memory for storing a compressed image signal, 68 is a signal processing circuit 64, a buffer memory 6
5, a control circuit for controlling the CODEC 66, the memory 67, and the like; 69, an instruction unit for instructing power-on and switching between a moving image / still image mode; and 70, a common communication unit. The subject image is formed on the image sensor 61 through the lens, and is photoelectrically converted by the image sensor 61 to generate an electric signal. The electric signal is amplified by the amplifier 62, and the amplified analog electric signal is converted into a digital signal by the A / D converter 63. The digital signal is subjected to predetermined processing in a signal processing circuit 64 and is once written in a buffer memory 65. The image signal held in the buffer memory 65 is
The encoded data is generated by the DEC 66 to generate a compressed signal.
7 is stored. In this embodiment, the MPEG processing for performing the moving image processing and the JPE processing for performing the still image processing in the CODEC 66
Since some common circuits can be used in the G processing, the circuit scale itself can be reduced, but the imaging device itself can be reduced in weight, size, and power consumption.

【0064】動画処理と静止画処理で共有する量子化に
使用するメモリに量子化テーブルをCPU68から書き
こませるのでなく、CODEC66内部に量子化テーブ
ルを記憶したROMを設け、このROMから量子化テー
ブルをCODEC66内のメモリに書きこむ構成とすれ
ば、CPU68の負荷が軽減され、撮像装置の制御を担
うCPUの処理が重くなったり、動作しなくなったりす
る不都合を解消できる。このときに、電源スイッチの操
作や静止画/動画モード切り替えの操作などが指示手段
69からCPU68に入力されることにより、電源スイ
ッチ投入時やも静止画/動画モード切り替え時に、量子
化テーブルをCODEC66内のメモリに31、32に
書きこむように制御する構成としてもよい。
Instead of writing the quantization table from the CPU 68 into the memory used for quantization shared by the moving image processing and the still image processing, a ROM storing the quantization table is provided in the CODEC 66. Is written in the memory in the CODEC 66, the load on the CPU 68 is reduced, and the inconvenience of the CPU processing the control of the imaging device becoming heavy or inoperable can be solved. At this time, the operation of the power switch and the operation of switching the still image / video mode are input from the instruction means 69 to the CPU 68, so that the quantization table is stored in the CODEC 66 when the power switch is turned on or when the still image / video mode is switched. It is also possible to adopt a configuration in which control is performed so that data is written into the memories 31 and 32 in the memory.

【0065】また、静止画処理時において、ハードウエ
アによる処理だけでなく、ソフトウエアによる可変テー
ブルの可変符号化処理を行うことにより、圧縮率を向上
させることが出来る。圧縮率を向上させることが出来る
ので、第1から第4の実施例で述べた符号化または複号
化手段を撮像装置に使用することにより、同じ記憶容量
で記憶できる静止画の枚数を増加させることが出来、ま
ら、同じ枚数であっても、圧縮画の画質を向上させるこ
とが出来るので、撮像装置にとって好都合であるという
効果を有する。
Further, at the time of still image processing, not only hardware processing but also variable coding processing of a variable table by software is performed, so that the compression ratio can be improved. Since the compression ratio can be improved, the number of still images that can be stored with the same storage capacity can be increased by using the encoding or decoding means described in the first to fourth embodiments in an imaging device. It is possible to improve the image quality of the compressed image even if the number of images is the same, which is advantageous for the imaging apparatus.

【0066】[0066]

【発明の効果】本発明によれば、動画及び静止画の符号
化、復号化を行なう処理回路において回路規模を削減で
きる。また、ソフトウエア処理を併用することにより、
画像に応じた自由度の高い符号化が実現できる。
According to the present invention, the circuit scale of a processing circuit for encoding and decoding moving images and still images can be reduced. Also, by using software processing together,
Encoding with a high degree of freedom according to an image can be realized.

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

【図1】本発明の第1の実施例であるMPEG方式を用
いた動画像符号化とJPEG方式を用いた静止画像符号
化を回路を共有して行なう符号化装置のブロック図であ
る。
FIG. 1 is a block diagram of an encoding apparatus that performs moving image encoding using an MPEG system and still image encoding using a JPEG system by sharing circuits as a first embodiment of the present invention.

【図2】本発明の第2の実施例であるMPEG方式を用
いた動画像復号化とJPEG方式を用いた静止画像復号
化を回路を共有して行なう復号化装置のブロック図であ
る。
FIG. 2 is a block diagram of a decoding apparatus that performs moving image decoding using the MPEG system and still image decoding using the JPEG system by sharing circuits as a second embodiment of the present invention.

【図3】本発明の第3の実施例であるJPEG方式を用
いた静止画符号化装置のブロック図である。
FIG. 3 is a block diagram of a still image encoding device using a JPEG system according to a third embodiment of the present invention.

【図4】本発明の第4の実施例である、JPEG方式を
用いた静止画復号化装置のブロック図である。
FIG. 4 is a block diagram of a still image decoding apparatus using a JPEG system according to a fourth embodiment of the present invention.

【図5】[4:2:0]及び[4:2:2]の画像フォ
ーマットに関する説明図である。
FIG. 5 is an explanatory diagram regarding image formats of [4: 2: 0] and [4: 2: 2].

【図6】[4:2:0]及び[4:2:2]の画像フォ
ーマットにおける処理期間を表す説明図である。
FIG. 6 is an explanatory diagram illustrating a processing period in the image formats of [4: 2: 0] and [4: 2: 2].

【図7】動画、静止画の符号化における量子化回路の説
明図である。
FIG. 7 is an explanatory diagram of a quantization circuit in encoding moving images and still images.

【図8】動画、静止画の復号化における逆量子化回路の
説明図である。
FIG. 8 is an explanatory diagram of an inverse quantization circuit in decoding a moving image and a still image.

【図9】MPEG規格におけるデフォルト量子化テーブ
ルの説明図である。
FIG. 9 is an explanatory diagram of a default quantization table in the MPEG standard.

【図10】本発明の第5の実施例である、MPEG/J
PEG共用の量子化/逆量子化器のブロック図である。
FIG. 10 shows a fifth embodiment of the present invention, MPEG / J.
FIG. 3 is a block diagram of a quantization / dequantizer shared by PEG.

【図11】本発明の第6の実施例である、MPEG/J
PEG共用の量子化/逆量子化器のブロック図である。
FIG. 11 shows a sixth embodiment of the present invention, MPEG / J.
FIG. 3 is a block diagram of a quantization / dequantizer shared by PEG.

【図12】本発明の第7の実施例である撮像装置のブロ
ック図である。
FIG. 12 is a block diagram of an imaging apparatus according to a seventh embodiment of the present invention.

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

1 ブロック化器 2 減算器 3、14、15 選択器 4 DCT演算器 5 量子化器 6 逆量子化器 7 IDCT演算器 8 加算器 9 予測メモリ 10 JPEG可変長符号化器(固定テーブル) 11 MPEG可変長符号化器 12 ハードウェア符号化器 13 JPEG可変長符号化器(可変テーブル) 16 ストリーム多重器 17 ストリームバッファ REFERENCE SIGNS LIST 1 block generator 2 subtractor 3, 14, 15 selector 4 DCT calculator 5 quantizer 6 inverse quantizer 7 IDCT calculator 8 adder 9 prediction memory 10 JPEG variable-length encoder (fixed table) 11 MPEG Variable length encoder 12 Hardware encoder 13 JPEG variable length encoder (variable table) 16 Stream multiplexer 17 Stream buffer

───────────────────────────────────────────────────── フロントページの続き (72)発明者 坪井 幸利 東京都小平市上水本町五丁目20番1号株式 会社日立製作所システムLSI開発センタ 内 (72)発明者 奥 万寿男 神奈川県横浜市戸塚区吉田町292番地株式 会社日立製作所マルチメディアシステム開 発本部内 Fターム(参考) 5C022 AA13 AC69 5C053 FA08 GA11 GB22 GB26 GB29 GB34 GB36 GB38 KA03 KA05 KA08 KA22 KA25 5C059 KK07 KK50 MA00 MA23 MC11 MC38 ME01 PP01 PP04 PP16 RC14 SS14 TA23 TA58 TB07 TC18 TC24 TD06 TD11 TD15 UA02 UA05 UA25 UA32 UA33 5C078 AA09 BA22 BA32 BA57 CA01 CA26 CA31 DA01 DA02  ──────────────────────────────────────────────────続 き Continuing from the front page (72) Inventor Yukitoshi Tsuboi 5-20-1, Josuihonmachi, Kodaira-shi, Tokyo Inside the System LSI Development Center, Hitachi, Ltd. F-term (Reference) 5C022 AA13 AC69 5C053 FA08 GA11 GB22 GB26 GB29 GB34 GB36 GB38 KA03 KA05 KA08 KA22 KA25 5C059 KK07 KK50 MA00 MA23 MC11 MC38 ME01 PP01 PP04 TA14 RC14 TA58 TB07 TC18 TC24 TD06 TD11 TD15 UA02 UA05 UA25 UA32 UA33 5C078 AA09 BA22 BA32 BA57 CA01 CA26 CA31 DA01 DA02

Claims (25)

【特許請求の範囲】[Claims] 【請求項1】 書き換え可能な記憶手段と、 該記憶手段に記憶された量子化テーブルを読み出して量
子化を行う量子化手段とを有し、 該記憶手段に書き込まれる量子化テーブルの値を動画処
理と静止画処理とで変更することにより、動画像処理と
静止画像処理の両方に対応した量子化を行うことを特徴
とする画像符号化装置。
1. A storage device comprising: a rewritable storage unit; and a quantization unit that reads out a quantization table stored in the storage unit and performs quantization, and stores a value of the quantization table written in the storage unit into a moving image. An image coding apparatus characterized by performing quantization corresponding to both moving image processing and still image processing by changing between processing and still image processing.
【請求項2】 書き換え可能な記憶手段と、 該記憶手段に記憶された逆量子化テーブルを読み出して
逆量子化を行う逆量子化手段とを有し、 該記憶手段に書き込まれる逆量子化テーブルの値を動画
処理と静止画処理とで変更することにより、動画像処理
と静止画像処理の両方に対応した逆量子化を行うことを
特徴とする画像複号化装置。
2. An inverse quantization table, comprising: a rewritable storage means; and an inverse quantization means for reading an inverse quantization table stored in the storage means and performing inverse quantization. An image decoding apparatus characterized in that the value of is changed between moving image processing and still image processing to perform inverse quantization corresponding to both moving image processing and still image processing.
【請求項3】 書き換え可能な記憶手段と、 該記憶手段に記憶された量子化テーブルを読み出して量
子化を行う量子化手段と該記憶手段に記憶された逆量子
化テーブルを読み出して逆量子化を行う逆量子化手段と
を有し、該記憶手段に書き込まれる量子化テーブル及び
逆量子化テーブルの値を動画処理と静止画処理とで変更
することにより、動画像処理と静止画像処理の両方に対
応した量子化及び逆量子化を行うことを特徴とする画像
符号化複号化装置。
3. A rewritable storage unit, a quantization unit that reads a quantization table stored in the storage unit and performs quantization, and reads an inverse quantization table stored in the storage unit and performs inverse quantization. Inverse quantization means for performing both the moving image processing and the still image processing by changing the values of the quantization table and the inverse quantization table written in the storage means between the moving image processing and the still image processing. An image encoding / decoding apparatus characterized by performing quantization and inverse quantization corresponding to (1).
【請求項4】 画像をブロック単位に分割する手段
と、 ブロック化した画像を周波数領域に変換する手段と、 該周波数領域に変換された信号を量子化する量子化手段
とを有する画像符号化装置において、 該量子化手段は書き換え可能な記憶手段を有し、該記憶
手段に記憶された量子化テーブルを読み出して量子化を
行い、 該記憶手段に書き込まれる量子化テーブルの値を動画処
理と静止画処理とで変更することにより、動画像処理と
静止画像処理の両方に対応した量子化を行うことを特徴
とする画像符号化装置。
4. An image coding apparatus comprising: means for dividing an image into blocks; means for converting a block-divided image into a frequency domain; and quantization means for quantizing a signal converted into the frequency domain. In the above, the quantization means has a rewritable storage means, reads out the quantization table stored in the storage means, performs quantization, and stores the value of the quantization table written in the storage means in moving image processing and static An image coding apparatus characterized by performing quantization corresponding to both moving image processing and still image processing by changing between image processing and image processing.
【請求項5】 圧縮ストリームを分離するストリーム分
離手段と、 分離されたストリームを複号化する複号化手段と、 複号化手段から出力されたデータを逆量子化する逆量子
化手段とを有する画像複号化装置において、 該量子化手段は、書き換え可能な記憶手段を有し、該記
憶手段に記憶された量子化テーブルを読み出して逆量子
化を行い、 該記憶手段に書き込まれる逆量子化テーブルの値を動画
処理と静止画処理とで変更することにより、動画像処理
と静止画像処理の両方に対応した逆量子化を行うことを
特徴とする画像複号化装置。
5. A stream separating means for separating a compressed stream, a decoding means for decoding the separated stream, and an inverse quantization means for inversely quantizing data output from the decoding means. In the image decoding apparatus having the above, the quantization means has a rewritable storage means, reads out a quantization table stored in the storage means, performs inverse quantization, and writes an inverse quantum stored in the storage means. An image decoding apparatus characterized in that inverse quantization corresponding to both moving image processing and still image processing is performed by changing the value of a conversion table between moving image processing and still image processing.
【請求項6】 画像をブロック単位に分割する手段と、 ブロック化した画像を周波数領域に変換する手段と、 周波数領域に変換された信号を量子化する量子化手段と
圧縮ストリームを分離するストリーム分離手段と、 分離されたストリームを複号化する複号化手段と、 複号化手段から出力されたデータを逆量子化する逆量子
化手段とを有する画像符号化複号化装置において、 該量子化手段又は該逆量子化手段は書き換え可能な記憶
手段を有し、該記憶手段に記憶された量子化テーブル又
は逆量子化テーブルを読み出して量子化又は逆量子化を
行い、 該記憶手段に書き込まれる量子化テーブル又は逆量子化
テーブルの値を動画処理と静止画処理とで変更すること
により、動画像処理と静止画像処理の両方に対応した量
子化又は逆量子化を行うことを特徴とする画像符号化複
号化装置。
6. A means for dividing an image into blocks, a means for converting a blocked image into a frequency domain, a quantization means for quantizing a signal converted into a frequency domain, and a stream separation for separating a compressed stream. Means; a decoding means for decoding the separated stream; and an inverse quantization means for inversely quantizing the data output from the decoding means. The quantization means or the inverse quantization means has a rewritable storage means, reads out the quantization table or the inverse quantization table stored in the storage means, performs quantization or inverse quantization, and writes the data in the storage means. Quantization or inverse quantization corresponding to both moving image processing and still image processing is performed by changing the value of the quantization table or inverse quantization table used for moving image processing and still image processing. An image encoding / decoding apparatus characterized by the above-mentioned.
【請求項7】 前記量子化手段から出力されたデータを
逆量子化する逆量子化手段を前記量子化手段とは独立に
有し、 前記量子化手段による量子化処理と該逆量子化手段によ
る逆量子化処理が同時に実行可能であることを特徴とす
る請求項1又は4に記載の画像符号化装置。
7. An inverse quantization unit for inversely quantizing data output from the quantization unit, independent of the quantization unit, wherein a quantization process by the quantization unit and an inverse quantization by the inverse quantization unit are performed. The image coding apparatus according to claim 1, wherein the inverse quantization processing can be performed simultaneously.
【請求項8】 前記記憶手段に書きこまれる量子化デー
タを記憶するROMを有し、 該ROMから前記記憶手段に量子化データを書きこむこ
とを特徴とする請求項1、4、7のいずれかに記載の画
像符号化装置。
8. A storage device according to claim 1, further comprising a ROM for storing the quantized data to be written in said storage means, wherein said quantized data is written from said ROM to said storage means. An image encoding device according to any one of claims 1 to 3.
【請求項9】 外部の指示により、前記ROMから量子
化データを書きこむことを特徴とする請求項8に記載の
画像符号化装置。
9. The image encoding apparatus according to claim 8, wherein the quantization data is written from the ROM in accordance with an external instruction.
【請求項10】 量子化手段と、逆量子化手段と独立に
有し、量子化処理と逆量子化処理を同時に実行可能であ
ることを特徴とする画像符号化装置。
10. An image coding apparatus having a quantization unit and an inverse quantization unit independently, and capable of simultaneously executing a quantization process and an inverse quantization process.
【請求項11】 量子化テーブルが記憶される第1の記
憶手段と、 逆量子化テーブルが記憶された第2の記憶手段と、 該第1の記憶手段に記憶された量子化テーブルを読み出
して量子化を行う量子化手段と、 該第2の記憶手段に記憶された逆量子化テーブルを読み
出して逆量子化を行う逆量子化手段とを有し、 第1の記憶手段と第2の記憶手段は独立であり、量子化
処理と逆量子化処理を同時に実行可能であることを特徴
とする画像符号化装置。
11. A first storage means for storing a quantization table, a second storage means for storing an inverse quantization table, and reading out a quantization table stored in the first storage means. A first storage unit and a second storage unit, comprising: a quantization unit that performs quantization; and an inverse quantization unit that reads an inverse quantization table stored in the second storage unit and performs inverse quantization. The image encoding apparatus is independent of the means, and is capable of simultaneously executing the quantization process and the inverse quantization process.
【請求項12】 画像をブロック単位に分割する手段
と、 ブロック化した画像を周波数領域に変換する手段と、 周波数領域に変換された信号を量子化する手段とを有す
る画像符号化装置であって、 量子化された信号に対し固定された第1の符号化テーブ
ルを用いて可変長符号化を行う第1の可変長符号化手段
と、 任意に設定可能な第2の符号化テーブルを用いて可変長
符号化を行なう第2の可変長符号化手段と、 第1の可変長符号化手段と第2可変長符号化の手段の選
択を行う選択手段と、を有することを特徴とする画像符
号化装置。
12. An image coding apparatus comprising: means for dividing an image into blocks; means for converting a block-divided image into a frequency domain; and means for quantizing a signal converted to a frequency domain. A first variable-length coding unit that performs variable-length coding on a quantized signal using a fixed first coding table, and a second coding table that can be arbitrarily set. An image code comprising: a second variable length coding unit that performs variable length coding; and a selection unit that selects between the first variable length coding unit and the second variable length coding unit. Device.
【請求項13】 前期選択手段は、外部からの設定また
は画像の特性に応じて第1の可変長符号化手段と第2の
可変長符号化手段を選択することを特徴とする請求項1
2に記載の画像符号化装置。
13. The method according to claim 1, wherein the selection means selects the first variable-length coding means and the second variable-length coding means according to an external setting or image characteristics.
3. The image encoding device according to 2.
【請求項14】 前期選択手段は、第1の可変長符号化
手段と第2の可変長符号化手段のうち圧縮率の高いほう
を選択することを特徴とする請求項12に記載の画像符
号化装置。
14. The image code according to claim 12, wherein said first selector selects one of the first variable-length encoder and the second variable-length encoder having a higher compression rate. Device.
【請求項15】 前記第2の符号化手段はソフトウエア
処理で行うことを特徴とする請求項12に記載の画像符
号化装置。
15. The image encoding apparatus according to claim 12, wherein said second encoding means performs the processing by software processing.
【請求項16】 前記第1の可変長符号化手段の出力す
る手段と、前記量子化手段の出力する手段とを有し、前
記量子化手段を常に出力するか、モードに応じて出力す
るかを選択する手段を有することを特徴とする画像符号
化装置。
16. The apparatus according to claim 16, further comprising: means for outputting from said first variable length coding means and means for outputting from said quantization means, wherein said quantization means is always outputted or outputted in accordance with a mode. An image encoding device, comprising: means for selecting
【請求項17】 圧縮ストリームを分離するストリーム
分離手段と、 分離されたストリームを複号化する複号化手段と、 複号化手段から出力されたデータを逆量子化する逆量子
化手段と固定された符号化テーブルに応じた第1の可変
長復号化を行なう手段と、 復号化する信号に含まれる任意の符号化テーブルを用い
て第2の可変長復号化を行なう手段とを有し、 第1の可変長復号化を行なう手段と第2の可変長復号化
を行なう手段を選択する選択手段とを有することを特徴
とする画像復号化装置。
17. A fixed stream decoding means for separating a compressed stream, a decoding means for decoding the separated stream, and an inverse quantization means for inversely quantizing data output from the decoding means. Means for performing a first variable length decoding according to the coding table obtained, and means for performing a second variable length decoding using an arbitrary coding table included in a signal to be decoded, An image decoding apparatus comprising: means for performing first variable-length decoding; and selecting means for selecting means for performing second variable-length decoding.
【請求項18】 前期選択手段は、第1の可変長復号化
を行なう手段と第2の可変長復号化を行なう手段を復号
化する信号の種類に応じて選択することを特徴とする請
求項17に記載の画像複号化装置。
18. The method as claimed in claim 18, wherein the selection means selects the first variable length decoding means and the second variable length decoding means according to the type of the signal to be decoded. 18. The image decoding device according to item 17.
【請求項19】 前記第1の複号化手段はハードウエア
処理で行い、 前記第2の複号化手段はソフトウエア処理で行うことを
特徴とする請求項17または18に記載の画像複号化装
置。
19. The image decoding apparatus according to claim 17, wherein said first decoding means is performed by hardware processing, and said second decoding means is performed by software processing. Device.
【請求項20】 前記ストリームが入力される入力手段
と、前記第2の可変長複号化手段の出力が入力される入
力手段とを有し、第1の可変長復号化を行なう手段第1
のモードと第2の可変長復号化を行なう第2のモードの
モード選択に応じて該入力手段を選択することを特徴と
する請求項16に記載の画像複号化装置。
20. An input means to which said stream is input, and an input means to which an output of said second variable-length decoding means are input, and means for performing first variable-length decoding.
17. The image decoding apparatus according to claim 16, wherein said input means is selected in accordance with a mode selection between a first mode and a second mode for performing a second variable length decoding.
【請求項21】 レンズと、 該レンズにより結像された光学像を光電変換する撮像手
段と、 該撮像手段から出力された画像信号を圧縮する圧縮手段
とを有する撮像装置において、 該圧縮手段は書き換え可能な記憶手段と、 該記憶手段に記憶された量子化テーブルを読み出して量
子化を行う量子化手段とを有し、 該記憶手段に書き込まれる量子化テーブルの値を動画処
理と静止画処理とで変更することにより、動画像処理と
静止画像処理の両方に対応した量子化を1つの圧縮手段
でを行うことを特徴とする撮像装置。
21. An imaging apparatus comprising: a lens; imaging means for photoelectrically converting an optical image formed by the lens; and compression means for compressing an image signal output from the imaging means. Rewritable storage means, and a quantization means for reading out a quantization table stored in the storage means and performing quantization, and performs a moving image processing and a still image processing on the values of the quantization table written in the storage means. An image pickup apparatus characterized in that the quantization corresponding to both the moving image processing and the still image processing is performed by a single compression unit by changing the above.
【請求項22】 電源の投入の指示を行う電源投入手段
を有し、 該電源投入手段の操作に応じて、前記記憶手段に前記量
子化テーブルを書きこむことを特徴とする請求項21に
記載の撮像装置。
22. The apparatus according to claim 21, further comprising power-on means for instructing power-on, wherein the quantization table is written in the storage means in response to an operation of the power-on means. Imaging device.
【請求項23】 前記圧縮手段は、前記量子化テーブル
が予め記憶されたROMを有し、 該ROMに記憶された量子化テーブルを前記記憶手段に
書きこむことを特徴とする請求項21に記載の撮像装
置。
23. The apparatus according to claim 21, wherein the compression unit has a ROM in which the quantization table is stored in advance, and writes the quantization table stored in the ROM into the storage unit. Imaging device.
【請求項24】 レンズと、 該レンズにより結像された光学像を光電変換する撮像手
段と、 該撮像手段から出力された画像信号を圧縮する圧縮手段
とを有する撮像装置において、 該圧縮手段は、量子化テーブルが記憶される第1の記憶
手段と、逆量子化テーブルが記憶された第2の記憶手段
と、該第1の記憶手段に記憶された量子化テーブルを読
み出して量子化を行う量子化手段と、該第2の記憶手段
に記憶された逆量子化テーブルを読み出して逆量子化を
行う逆量子化手段とを有し、 第1の記憶手段と第2の記憶手段は独立であり、量子化
処理と逆量子化処理を同時に実行可能であることを特徴
とする撮像装置。
24. An imaging apparatus comprising: a lens; imaging means for photoelectrically converting an optical image formed by the lens; and compression means for compressing an image signal output from the imaging means. A first storage unit in which a quantization table is stored, a second storage unit in which an inverse quantization table is stored, and a quantization table read out from the first storage unit to perform quantization. A quantizing unit, and an inverse quantizing unit that reads the inverse quantization table stored in the second storage unit and performs inverse quantization, wherein the first storage unit and the second storage unit are independent. And an imaging apparatus capable of simultaneously executing the quantization process and the inverse quantization process.
【請求項25】 レンズと、該レンズにより結像された
光学像を光電変換する撮像手段と、 該撮像手段から出力された画像信号を圧縮する圧縮手段
とを有する撮像装置において、 該圧縮手段は、量子化された信号に対し固定された第一
の符号化テーブルを用いて可変長符号化を行なう手段
と、任意に設定可能な第二の符号化テーブルを用いて可
変長符号化を行なう手段とを有し、 画像の特性または使用者の指示により第一の可変長符号
化の手段と第二の可変長符号化の手段の選択を行う選択
手段とを有することを特徴する撮像装置。
25. An image pickup apparatus comprising: a lens; image pickup means for photoelectrically converting an optical image formed by the lens; and compression means for compressing an image signal output from the image pickup means. Means for performing variable-length coding on a quantized signal using a fixed first coding table, and means for performing variable-length coding using an arbitrarily configurable second coding table An imaging apparatus comprising: a first variable-length encoding unit and a second variable-length encoding unit that are selected by a characteristic of an image or an instruction of a user.
JP21227298A 1998-07-28 1998-07-28 Image coder, decoder and image-pickup device using them Pending JP2000050263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21227298A JP2000050263A (en) 1998-07-28 1998-07-28 Image coder, decoder and image-pickup device using them

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21227298A JP2000050263A (en) 1998-07-28 1998-07-28 Image coder, decoder and image-pickup device using them

Publications (1)

Publication Number Publication Date
JP2000050263A true JP2000050263A (en) 2000-02-18

Family

ID=16619857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21227298A Pending JP2000050263A (en) 1998-07-28 1998-07-28 Image coder, decoder and image-pickup device using them

Country Status (1)

Country Link
JP (1) JP2000050263A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1148726A2 (en) * 2000-04-12 2001-10-24 Robert Bosch Gmbh Surveillance equipment
JP2002261623A (en) * 2001-02-28 2002-09-13 Canon Inc Decoding device, decoding method, storage medium and program software
WO2005088840A1 (en) * 2004-03-12 2005-09-22 Matsushita Electric Industrial Co., Ltd. Variable-length code decoding device
KR100551951B1 (en) * 2002-10-18 2006-02-20 주식회사 모티스 Variable Length/Code Decoding System and Moving Picture Decoding System
KR100589112B1 (en) * 2004-03-29 2006-06-14 (주)마무리안디자인 MPEG-JPEG multi coding/decoding system
JP2008053800A (en) * 2006-08-22 2008-03-06 Pentax Corp Digital camera
JP2008079238A (en) * 2006-09-25 2008-04-03 Nikon Corp Image compression method and apparatus, electronic camera, and program
WO2008120434A1 (en) * 2007-03-28 2008-10-09 Panasonic Corporation Decoding circuit, decoding method, encoding circuit, and encoding method
WO2008120433A1 (en) * 2007-03-28 2008-10-09 Panasonic Corporation Dequantization circuit, dequantization method, and image reproduction device
US7489348B2 (en) 1999-12-24 2009-02-10 Sanyo Electric Co., Ltd. Digital camera for recording a still image while shooting moving image
US8493462B2 (en) 2010-04-05 2013-07-23 Canon Kabushiki Kaisha Image processing apparatus, photographing apparatus and control method for compressing images
JP2013197984A (en) * 2012-03-21 2013-09-30 Brother Ind Ltd Jpeg compression device and image reader
US9124813B2 (en) 2011-12-20 2015-09-01 Fujitsu Limited Information processing device using compression ratio of still and moving image data
JP2016506187A (en) * 2013-01-30 2016-02-25 インテル コーポレイション Content adaptive entropy coding of partition data for next generation video
US9374594B2 (en) 2014-06-11 2016-06-21 Brother Kogyo Kabushiki Kaisha Converting apparatus
US10284855B2 (en) 2011-01-18 2019-05-07 Dolby International Ab Video decoder with reduced dynamic range transform with inverse transform shifting memory

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8120671B2 (en) 1999-12-24 2012-02-21 Sanyo Electric Co., Ltd. Digital camera for recording a still image while shooting a moving image
US7999859B2 (en) 1999-12-24 2011-08-16 Sanyo Electric Co., Ltd. Digital camera for recording a still image while shooting a moving image
US7990434B2 (en) 1999-12-24 2011-08-02 Sanyo Electric Co., Ltd. Digital camera for recording a still image while shooting a moving image
US7489348B2 (en) 1999-12-24 2009-02-10 Sanyo Electric Co., Ltd. Digital camera for recording a still image while shooting moving image
US8134612B2 (en) 1999-12-24 2012-03-13 Sanyo Electric Co., Ltd. Digital camera for recording a still image while shooting a moving image
US8120672B2 (en) 1999-12-24 2012-02-21 Sanyo Electric Co., Ltd. Digital camera for recording a still image while shooting a moving image
EP1148726A3 (en) * 2000-04-12 2002-03-27 Robert Bosch Gmbh Surveillance equipment
EP1148726A2 (en) * 2000-04-12 2001-10-24 Robert Bosch Gmbh Surveillance equipment
JP2002261623A (en) * 2001-02-28 2002-09-13 Canon Inc Decoding device, decoding method, storage medium and program software
KR100551951B1 (en) * 2002-10-18 2006-02-20 주식회사 모티스 Variable Length/Code Decoding System and Moving Picture Decoding System
WO2005088840A1 (en) * 2004-03-12 2005-09-22 Matsushita Electric Industrial Co., Ltd. Variable-length code decoding device
JPWO2005088840A1 (en) * 2004-03-12 2008-01-31 松下電器産業株式会社 Variable length code decoding device
US7683807B2 (en) 2004-03-12 2010-03-23 Panasonic Corporation Variable-length-code decoding device
JP4516068B2 (en) * 2004-03-12 2010-08-04 パナソニック株式会社 Variable length code decoding device
KR100589112B1 (en) * 2004-03-29 2006-06-14 (주)마무리안디자인 MPEG-JPEG multi coding/decoding system
JP2008053800A (en) * 2006-08-22 2008-03-06 Pentax Corp Digital camera
JP2008079238A (en) * 2006-09-25 2008-04-03 Nikon Corp Image compression method and apparatus, electronic camera, and program
US8253817B2 (en) 2006-09-25 2012-08-28 Nikon Corporation Image compression method, device, electronic camera, and program
WO2008120433A1 (en) * 2007-03-28 2008-10-09 Panasonic Corporation Dequantization circuit, dequantization method, and image reproduction device
WO2008120434A1 (en) * 2007-03-28 2008-10-09 Panasonic Corporation Decoding circuit, decoding method, encoding circuit, and encoding method
US8249182B2 (en) 2007-03-28 2012-08-21 Panasonic Corporation Decoding circuit, decoding method, encoding circuit, and encoding method
US8401073B2 (en) 2007-03-28 2013-03-19 Panasonic Corporation Inverse quantization circuit, inverse quantization method and image reproducing apparatus
US8493462B2 (en) 2010-04-05 2013-07-23 Canon Kabushiki Kaisha Image processing apparatus, photographing apparatus and control method for compressing images
US10284855B2 (en) 2011-01-18 2019-05-07 Dolby International Ab Video decoder with reduced dynamic range transform with inverse transform shifting memory
US10652545B2 (en) 2011-01-18 2020-05-12 Dolby International Ab Video decoder with reduced dynamic range transform with inverse transform shifting memory
US10958910B2 (en) 2011-01-18 2021-03-23 Dolby International Ab Video decoder with reduced dynamic range transform with inverse transform shifting memory
US11431982B2 (en) 2011-01-18 2022-08-30 Dolby International Ab Video decoder with reduced dynamic range transform with inverse transform shifting memory
US9124813B2 (en) 2011-12-20 2015-09-01 Fujitsu Limited Information processing device using compression ratio of still and moving image data
JP2013197984A (en) * 2012-03-21 2013-09-30 Brother Ind Ltd Jpeg compression device and image reader
JP2016506187A (en) * 2013-01-30 2016-02-25 インテル コーポレイション Content adaptive entropy coding of partition data for next generation video
US9374594B2 (en) 2014-06-11 2016-06-21 Brother Kogyo Kabushiki Kaisha Converting apparatus

Similar Documents

Publication Publication Date Title
JP4138056B2 (en) Multi-standard decompression and / or compression device
JP3395166B2 (en) Integrated video decoding system, frame buffer, encoded stream processing method, frame buffer allocation method, and storage medium
JP4778953B2 (en) Video decoder with extensible compression and having a buffer for storing and retrieving reference frame data
JPH118849A (en) Picture encoding method and device therefor
JP2000050263A (en) Image coder, decoder and image-pickup device using them
US20080123748A1 (en) Compression circuitry for generating an encoded bitstream from a plurality of video frames
US6999511B1 (en) Dynamically switching quant matrix tables within an MPEG-2 encoder
JP2006295721A (en) Image encoding apparatus and image encoding method
JP3918263B2 (en) Compression encoding apparatus and encoding method
JPH0818979A (en) Image processor
WO2012046366A1 (en) Image reproduction method, image reproduction device, image reproduction program, imaging system, and reproduction system
JPH10191341A (en) Image expansion device
KR100598093B1 (en) Apparatus and method with low memory bandwidth for video data compression
US6097843A (en) Compression encoding apparatus, encoding method, decoding apparatus, and decoding method
JP2898413B2 (en) Method for decoding and encoding compressed video data streams with reduced memory requirements
JP2002112268A (en) Compressed image data decoding apparatus
JP2001024919A (en) Device, system and method for processing image, image recording and reproducing device with integrated camera and storage medium
JP3990011B2 (en) Decoded image conversion circuit and decoded image conversion device
JP2003230148A (en) Image data coding unit
JP4515870B2 (en) Signal processing apparatus and video system
JP3141149B2 (en) Image coding device
JPH07107464A (en) Picture encoding device and decoding device
JP3147636B2 (en) Video data arranging method and its encoding device and decoding device
JP3674454B2 (en) Video playback system and display control apparatus
JPH07336681A (en) Picture converting device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050726

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050726

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20060417

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070608

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070821

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071019

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080819

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081216